Purple
0.1
Standard Language Specification
|
Component of the abstract syntax tree built during parsing. More...
#include <tree.h>
Public Attributes | |
TokenType | ttype |
The TokenType of the given token. More... | |
struct ASTNode * | left |
struct ASTNode * | mid |
struct ASTNode * | right |
Number | tree_type |
NumberType | largest_number_type |
bool | is_rvalue |
char | filename [256] |
int | line_number |
int | char_number |
unsigned long long int | num_args |
struct ASTNode ** | function_call_arguments |
union { | |
number_literal_type number_value | |
char symbol_name [MAX_IDENTIFIER_LENGTH] | |
} | value |
Component of the abstract syntax tree built during parsing.
int ASTNode::char_number |
Character number of this Token
char ASTNode::filename[256] |
Filename of this Token
struct ASTNode** ASTNode::function_call_arguments |
Array of arguments for a function call node
bool ASTNode::is_rvalue |
Whether or not this ASTNode contains an RValue
NumberType ASTNode::largest_number_type |
Largest NumberType in subtree
struct ASTNode* ASTNode::left |
The left child of the AST Node
int ASTNode::line_number |
Line number of this Token
struct ASTNode* ASTNode::mid |
The middle child of the AST Node
unsigned long long int ASTNode::num_args |
Size of function_call_arguments
number_literal_type ASTNode::number_value |
Value of integer token
struct ASTNode* ASTNode::right |
The right child of the AST Node
char ASTNode::symbol_name[MAX_IDENTIFIER_LENGTH] |
Name of this identifier token
Number ASTNode::tree_type |
Numerical type of tree
TokenType ASTNode::ttype |
The TokenType of the given token.
union { ... } ASTNode::value |
Value of AST Node's Token