amath
1.8.5
Simple command line calculator
|
#include <execute.h>
Public Member Functions | |
ExecuteStatement (const char *file) | |
~ExecuteStatement () | |
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 () |
Private Attributes | |
char * | file |
Additional Inherited Members | |
Protected Attributes inherited from StatementNode | |
char * | statementText |
Protected Attributes inherited from SyntaxNode | |
CharBuffer * | output |
SyntaxNode * | parent |
SyntaxNode * | iterator |
bool | leftBottom |
|
explicit |
Definition at line 37 of file execute.cpp.
References AllocAndCopy(), file, and StatementNode::StatementNode().
Referenced by Parser::ParseFileStatement().
ExecuteStatement::~ExecuteStatement | ( | ) |
Definition at line 43 of file execute.cpp.
References file.
|
virtual |
Implements StatementNode.
Definition at line 48 of file execute.cpp.
References CharBuffer::ClearAndCopy(), SyntaxNode::Execute(), file, Program::Filesystem, CharBuffer::GetString(), FilesystemBase::LoadTextFile(), SyntaxNode::output, Parser::Parse(), and Parser::Parser().
|
private |
Definition at line 43 of file execute.h.
Referenced by Execute(), ExecuteStatement(), and ~ExecuteStatement().