33 #include "system/program.h"
void Attach(SyntaxNode *node)
Base class for all statements in a syntax tree.
Evaluate arithmetic expression.
Base class for all nodes in a syntax tree.
void Append(const char *source)
virtual Number * Clone()=0
virtual const char * GetText(Number *number)=0
ExpressionNode * expression
void Replace(SyntaxNode *n, SyntaxNode *x)
void SetParent(SyntaxNode *node)
virtual Number * Evaluate()=0
void Detach(SyntaxNode *node)
int StrLen(const char *string)
Get the length of a null terminated string.
virtual char * GetText()=0
Base class for all nodes related to mathematical expressions.
void SetLastResult(Number *number)
void EnsureSize(unsigned int size)
Ensure a memory block of specified size is allocated.
class NumeralSystem * Output
EvalStatement(ExpressionNode *expression)