58 #if defined(DEBUGTREE) 59 Viewer* viewer =
new Viewer(node);
60 const char* vout = viewer->GetTree();
61 output->EnsureGrowth(StrLen(vout));
71 #if defined(DEBUGTREE) 72 viewer =
new Viewer(node);
73 vout = viewer->GetTree();
74 output->EnsureGrowth(StrLen(vout));
78 const char* out = node->Execute();
79 output->EnsureGrowth(StrLen(out));
Base class for all nodes in a syntax tree.
Optimizer(SyntaxNode *root)
void ClearBuffer()
Release memory in buffer.
CharBuffer()
Initialize without allocating memory.
virtual char * Execute()=0
Parser(const char *input)
Evaluator(const char *input)
SyntaxNode * GetRoot() const
void ClearAndCopy(const char *source)
Release memory, allocate and copy source.
SyntaxNode * Parse()
Parses the input into a syntax tree.
Encapsulate an character array which can be used as a string.
Encapsulates a recursive descent parser.