amath
1.8.5
Simple command line calculator
|
Base class for all statements in a syntax tree. More...
#include <node.h>
Public Member Functions | |
StatementNode () | |
StatementNode (const char *text) | |
virtual | ~StatementNode () |
NodeType | GetNodeType () |
virtual SyntaxNode * | GetNext () |
virtual char * | GetTextCode () |
virtual char * | Execute ()=0 |
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 () |
Protected Attributes | |
char * | statementText |
Protected Attributes inherited from SyntaxNode | |
CharBuffer * | output |
SyntaxNode * | parent |
SyntaxNode * | iterator |
bool | leftBottom |
StatementNode::StatementNode | ( | ) |
Definition at line 34 of file node.cpp.
References AllocAndCopy(), statementText, and SyntaxNode::SyntaxNode().
Referenced by AboutStatement::AboutStatement(), ClearStatement::ClearStatement(), DeleteStatement::DeleteStatement(), DigitsStatement::DigitsStatement(), DrawStatement::DrawStatement(), EmptyStatement::EmptyStatement(), EvalStatement::EvalStatement(), ExecuteStatement::ExecuteStatement(), ExitStatement::ExitStatement(), FunctionDefinitionNode::FunctionDefinitionNode(), HelpStatement::HelpStatement(), InputStatement::InputStatement(), LicenseStatement::LicenseStatement(), ListFunctionsStatement::ListFunctionsStatement(), ListStatement::ListStatement(), ListVariablesStatement::ListVariablesStatement(), LoadStatement::LoadStatement(), MemoryStatement::MemoryStatement(), OutputStatement::OutputStatement(), PlotStatement::PlotStatement(), PrefsStatement::PrefsStatement(), PromptStatement::PromptStatement(), SaveStatement::SaveStatement(), ShowStatement::ShowStatement(), SilentStatement::SilentStatement(), and VersionStatement::VersionStatement().
StatementNode::StatementNode | ( | const char * | text | ) |
Definition at line 40 of file node.cpp.
References AllocAndCopy(), statementText, and SyntaxNode::SyntaxNode().
|
virtual |
|
virtual |
Implements SyntaxNode.
Reimplemented in SilentStatement, and EvalStatement.
|
virtual |
Implements SyntaxNode.
Reimplemented in SilentStatement, and EvalStatement.
|
pure virtual |
Implements SyntaxNode.
Implemented in ListVariablesStatement, SilentStatement, EmptyStatement, DeleteStatement, HelpStatement, DigitsStatement, EvalStatement, InputStatement, OutputStatement, PrefsStatement, PromptStatement, AboutStatement, ClearStatement, ExitStatement, FunctionDefinitionNode, ListFunctionsStatement, LicenseStatement, MemoryStatement, VersionStatement, ListStatement, PlotStatement, DrawStatement, ExecuteStatement, LoadStatement, SaveStatement, and ShowStatement.
Referenced by SilentStatement::Execute().
|
virtual |
Implements SyntaxNode.
Reimplemented in SilentStatement, and EvalStatement.
|
virtual |
|
virtual |
|
virtual |
Implements SyntaxNode.
Reimplemented in SilentStatement, and EvalStatement.
|
protected |
Definition at line 55 of file node.h.
Referenced by DrawStatement::Execute(), ClearStatement::Execute(), ExitStatement::Execute(), LicenseStatement::Execute(), AboutStatement::Execute(), VersionStatement::Execute(), PromptStatement::Execute(), DeleteStatement::Execute(), EmptyStatement::Execute(), SilentStatement::Execute(), GetTextCode(), StatementNode(), and ~StatementNode().