VICI
0.11.815
Visual Chart Interpreter
|
A node of the EBNF parse tree. More...
#include <vici/parseTree.h>
Public Types | |
enum | NodeType { Undefined, Grammar, Production, Terminal, Quotation, Name, Repetition, Option, Sequence, Choice } |
the type of node, which corresponds to the non-terminals of the EBNF for EBNF. More... | |
Public Member Functions | |
EbnfNode () | |
Constructor. | |
~EbnfNode () | |
Destructor. | |
std::string | typeOfNode () const |
get the type of the node More... | |
void | typeOfNode (const std::string &t) |
set the type of the node More... | |
Public Attributes | |
EbnfNode * | parent |
pointer to parent node | |
EbnfNode * | prev |
pointer to previous sibling node | |
EbnfNode * | next |
pointer to next sibling node | |
EbnfNode * | firstChild |
pointer to first child node | |
EbnfNode * | lastChild |
pointer to last child node | |
NodeType | nodeType |
defines what EBNF non-terminal the node represents | |
std::string | text |
the terminal leaves of the EBNF | |
A node of the EBNF parse tree.
A node of the EbnfTree used to pass the parsed form of an EBNF definition between modules.
the type of node, which corresponds to the non-terminals of the EBNF for EBNF.
string EbnfNode::typeOfNode | ( | ) | const |
get the type of the node
void EbnfNode::typeOfNode | ( | const std::string & | t | ) |
set the type of the node
t | the type of the node as a string |