Joos1W Compiler Framework
|
A lex node in the parse tree representing a modifier. More...
#include <ParseTree.h>
Public Member Functions | |
Type | get_type () const |
std::ostream & | print (std::ostream &os) const override |
Virtual function to print the node. | |
![]() | |
size_t | num_children () const |
Gets the number of children. | |
Node * | child (size_t i) const |
Gets the child at index i. | |
Type | get_node_type () const |
Gets the type of the node. | |
std::string | type_string () const |
Operator to turn Type into a string. | |
bool | is_poisoned () const |
Check if the tree has been poisoned. | |
SourceRange | location () const |
Get the location of the node. | |
Node const * | parent () const |
Get the parent of the node. | |
Node * | parent () |
void | mark () |
bool | is_marked () const |
std::ostream & | printDot (std::ostream &os) const |
Print the node as a dot file. | |
Protected Member Functions | |
void | printDotNode (DotPrinter &dp) const override |
Custom function to print the DOT node. | |
![]() | |
Node (SourceRange loc, Type type) | |
The enum for each node type. More... | |
template<typename... Args> | |
Node (SourceRange loc, BumpAllocator &alloc, Type type, Args &&... args) | |
Protected constructor for non-leaf nodes. More... | |
Friends | |
class | ::Joos1WLexer |
class | ::Joos1WParser |
Additional Inherited Members | |
![]() | |
static std::string | type_string (Type type) |
Operator to turn Type into a string. | |
A lex node in the parse tree representing a modifier.
Definition at line 314 of file ParseTree.h.