#include <stdio.h>
#include "opt/parse/list.h"
Go to the source code of this file.
◆ PTR_TYPE
Pointer enumeration to store in PtrList.
Enumerator |
---|
STATEMENT | |
ARGUMENT | |
◆ STMT_TYPE
Statement type enum.
Enumerator |
---|
SYMBOL_DEF | Symbol definition (declaration of ANY nodes)
|
PROPERTY_DEF | Property association statement.
|
CONVERSION | Rule tree conversion statement.
|
◆ SUBGRAPH_TYPE
Rule tree node type.
Enumerator |
---|
SCALAR | Definitive scalar constant.
|
ANY | Rule tree leaf that represents any real node.
|
BRANCH | Branching node.
|
◆ arg_recursive_free()
void arg_recursive_free |
( |
struct Arg * |
arg | ) |
|
Recursively free the argument and all it's contents.
◆ conversion_recursive_free()
void conversion_recursive_free |
( |
struct Conversion * |
conv | ) |
|
Recursively free the conversion and its subgraphs.
◆ parse_file()
int parse_file |
( |
struct PtrList ** |
stmts, |
|
|
FILE * |
file |
|
) |
| |
Return 0 if successfully populate statements from parsed file.
◆ parse_str()
int parse_str |
( |
struct PtrList ** |
stmts, |
|
|
const char * |
str |
|
) |
| |
Return 0 if successfully populate statements from parsed string.
◆ statement_recursive_free()
void statement_recursive_free |
( |
void * |
ptr | ) |
|
◆ statements_free()
void statements_free |
( |
struct PtrList * |
stmts | ) |
|
Recursively free all statements and their contents.
◆ subgraph_recursive_free()
void subgraph_recursive_free |
( |
struct Subgraph * |
sg | ) |
|
Recursively free the subgraph and all of its descendants.