amath
1.8.5
Simple command line calculator
|
Logic related to the help statement. More...
#include <help.h>
Public Member Functions | |
HelpStatement () | |
HelpStatement (Symbol argument) | |
HelpStatement (const char *ident) | |
~HelpStatement () | |
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 Member Functions | |
char * | StatementHelp () const |
Private Attributes | |
Symbol | argument |
char * | ident |
Additional Inherited Members | |
Protected Attributes inherited from StatementNode | |
char * | statementText |
Protected Attributes inherited from SyntaxNode | |
CharBuffer * | output |
SyntaxNode * | parent |
SyntaxNode * | iterator |
bool | leftBottom |
HelpStatement::HelpStatement | ( | ) |
Definition at line 37 of file help.cpp.
References argument, ident, and StatementNode::StatementNode().
Referenced by Parser::ParseHelpStatement().
|
explicit |
Definition at line 44 of file help.cpp.
References argument, ident, and StatementNode::StatementNode().
Referenced by Parser::ParseHelpStatement().
|
explicit |
Definition at line 50 of file help.cpp.
References AllocAndCopy(), argument, ident, and symident.
Referenced by Parser::ParseHelpStatement().
HelpStatement::~HelpStatement | ( | ) |
|
virtual |
Implements StatementNode.
Definition at line 64 of file help.cpp.
References argument, CharBuffer::ClearAndCopy(), Language::GetHelpText(), CharBuffer::GetString(), ident, SyntaxNode::output, StatementHelp(), symident, and symstatement.
|
private |
Definition at line 87 of file help.cpp.
References CharBuffer::ClearBuffer(), CharBuffer::GetString(), and SyntaxNode::output.
Referenced by Execute().
|
private |
Definition at line 51 of file help.h.
Referenced by Execute(), and HelpStatement().
|
private |
Definition at line 52 of file help.h.
Referenced by Execute(), HelpStatement(), and ~HelpStatement().