amath
1.8.5
Simple command line calculator
|
A syntax node able to define a user defined function. More...
#include <funcdef.h>
Public Member Functions | |
FunctionDefinitionNode () | |
char * | GetText () const |
char * | Execute () |
Public Member Functions inherited from StatementNode | |
StatementNode () | |
StatementNode (const char *text) | |
virtual | ~StatementNode () |
NodeType | GetNodeType () |
virtual SyntaxNode * | GetNext () |
virtual char * | GetTextCode () |
void | Attach (SyntaxNode *node) |
void | Detach (SyntaxNode *node) |
void | Replace (SyntaxNode *n, SyntaxNode *x) |
Public Member Functions inherited from SyntaxNode | |
SyntaxNode () | |
virtual | ~SyntaxNode () |
void | SetFirstNode () |
bool | GetFirstNode () const |
SyntaxNode * | GetParent () const |
void | SetParent (SyntaxNode *node) |
virtual ReductionType | GetReductionType () |
virtual void | ResetIterator () |
Additional Inherited Members | |
Protected Attributes inherited from StatementNode | |
char * | statementText |
Protected Attributes inherited from SyntaxNode | |
CharBuffer * | output |
SyntaxNode * | parent |
SyntaxNode * | iterator |
bool | leftBottom |
FunctionDefinitionNode::FunctionDefinitionNode | ( | ) |
Definition at line 32 of file funcdef.cpp.
References CharBuffer::Empty(), CharBuffer::EnsureMinimumSize(), SyntaxNode::output, and StatementNode::StatementNode().
Referenced by Parser::ParseFunctionDef().
|
virtual |
Implements StatementNode.
Definition at line 39 of file funcdef.cpp.
References CharBuffer::GetString(), and SyntaxNode::output.
char * FunctionDefinitionNode::GetText | ( | ) | const |
Definition at line 45 of file funcdef.cpp.
References CharBuffer::GetString(), and SyntaxNode::output.