25 #include "treeprint.h"
34 AST_VARIABLE_DECLARATION,
40 AST_POINTER_DECLARATOR,
42 AST_FUNCTION_DEFINITION,
43 AST_FUNCTION_DECLARATION,
44 AST_FUNCTION_PARAMETER_LIST,
45 AST_FUNCTION_PARAMETER,
48 AST_EXPRESSION_STATEMENT,
50 AST_RETURN_EXPRESSION_STATEMENT,
52 AST_DO_WHILE_STATEMENT,
55 AST_IF_ELSE_STATEMENT,
56 AST_STRUCT_TYPE_DEFINITION,
57 AST_UNION_TYPE_DEFINITION,
58 AST_FIELD_DEFINITION_LIST,
59 AST_BINARY_EXPRESSION,
61 AST_POSTFIX_EXPRESSION,
62 AST_CONDITIONAL_EXPRESSION,
64 AST_FUNCTION_CALL_EXPRESSION,
65 AST_FIELD_REF_EXPRESSION,
66 AST_INDIRECT_FIELD_REF_EXPRESSION,
67 AST_ARRAY_ELEMENT_REF_EXPRESSION,
68 AST_ARGUMENT_EXPRESSION_LIST,
71 AST_IMPLICIT_CONVERSION,
ASTNodeTag
Enumeration type providing tag values for AST nodes.
Definition: ast.h:32
Support for printing a text representation of an AST.
Definition: ast.h:75
virtual std::string node_tag_to_string(int tag) const
Override to convert a parse node's tag to a string.
Definition: ast.cpp:11
Print a parse tree.
Definition: grammar_symbols.h:146
This header defines the GrammarSymbol enumeration, which defines members for each symbol (terminal an...