amath
1.8.5
Simple command line calculator
|
A sequence of statements in a syntax tree. More...
#include <nodes.h>
Public Member Functions | |
StatementBlockNode () | |
~StatementBlockNode () | |
NodeType | GetNodeType () |
SyntaxNode * | GetNext () |
void | Add (SyntaxNode *node) |
char * | GetTextCode () |
char * | Execute () |
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 () |
Private Attributes | |
StatementBlockElement * | first |
Additional Inherited Members | |
Protected Attributes inherited from SyntaxNode | |
CharBuffer * | output |
SyntaxNode * | parent |
SyntaxNode * | iterator |
bool | leftBottom |
StatementBlockNode::StatementBlockNode | ( | ) |
Definition at line 219 of file nodes.cpp.
References first, SyntaxNode::iterator, and SyntaxNode::SyntaxNode().
Referenced by Parser::Parse().
StatementBlockNode::~StatementBlockNode | ( | ) |
Definition at line 226 of file nodes.cpp.
References first, StatementBlockElement::next, and StatementBlockElement::statement.
void StatementBlockNode::Add | ( | SyntaxNode * | node | ) |
Definition at line 244 of file nodes.cpp.
References first, StatementBlockElement::next, and StatementBlockElement::statement.
Referenced by Parser::Parse().
|
virtual |
|
virtual |
Implements SyntaxNode.
|
virtual |
Implements SyntaxNode.
Definition at line 275 of file nodes.cpp.
References CharBuffer::Append(), CharBuffer::ClearBuffer(), CharBuffer::Empty(), CharBuffer::EnsureGrowth(), SyntaxNode::Execute(), first, CharBuffer::GetString(), StatementBlockElement::next, SyntaxNode::output, StatementBlockElement::statement, and StrLen().
|
virtual |
Implements SyntaxNode.
|
virtual |
|
virtual |
Implements SyntaxNode.
|
virtual |
Implements SyntaxNode.
|
private |
Definition at line 167 of file nodes.h.
Referenced by Add(), Execute(), StatementBlockNode(), and ~StatementBlockNode().