Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
parse.h File Reference
#include <cgraph/list.h>
#include <stdlib.h>
Include dependency graph for parse.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  case_info
 
struct  parse_block
 
struct  parse_prog
 

Enumerations

enum  case_t {
  Begin , End , BeginG , EndG ,
  Node , Edge , Eof , Error
}
 

Functions

static void free_case_info (case_info c)
 
parse_progparseProg (char *, int)
 parses input into gpr sections
 
void freeParseProg (parse_prog *)
 

Enumeration Type Documentation

◆ case_t

enum case_t
Enumerator
Begin 
End 
BeginG 
EndG 
Node 
Edge 
Eof 
Error 

Definition at line 20 of file parse.h.

Function Documentation

◆ free_case_info()

static void free_case_info ( case_info  c)
inlinestatic

Definition at line 30 of file parse.h.

References case_info::action, free(), and case_info::guard.

Here is the call graph for this function:

◆ freeParseProg()

void freeParseProg ( parse_prog prog)
extern

Definition at line 491 of file parse.c.

References parse_prog::begin_stmt, parse_prog::blocks, parse_prog::end_stmt, parse_prog::endg_stmt, free(), and freeBlocks().

Referenced by gvpr(), and parseProg().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseProg()

parse_prog * parseProg ( char *  input,
int  isFile 
)
extern

Definition at line 381 of file parse.c.

References addBlock(), addCase(), Begin, parse_prog::begin_stmt, BeginG, bindAction(), parse_prog::blocks, col0, End, parse_prog::end_stmt, EndG, parse_prog::endg_stmt, Eof, error, Error, ERROR_ERROR, free(), freeParseProg(), getErrorErrors(), guard, kwLine, parse_prog::l_begin, parse_prog::l_end, parse_prog::l_endg, lineno, NULL, parseCase(), parse_prog::source, startLine, str, and UNREACHABLE.

Referenced by gvpr_core().

Here is the call graph for this function:
Here is the caller graph for this function: