amath
1.8.5
Simple command line calculator
|
Set prompt string. More...
#include <prompt.h>
Public Member Functions | |
PromptStatement (char *prompt) | |
~PromptStatement () | |
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 * | prompt |
Additional Inherited Members | |
Protected Attributes inherited from StatementNode | |
char * | statementText |
Protected Attributes inherited from SyntaxNode | |
CharBuffer * | output |
SyntaxNode * | parent |
SyntaxNode * | iterator |
bool | leftBottom |
PromptStatement::PromptStatement | ( | char * | prompt | ) |
Definition at line 34 of file prompt.cpp.
References AllocAndCopy(), prompt, and StatementNode::StatementNode().
Referenced by Parser::ParsePromptStatement().
PromptStatement::~PromptStatement | ( | ) |
Definition at line 40 of file prompt.cpp.
References prompt.
|
virtual |
Implements StatementNode.
Definition at line 45 of file prompt.cpp.
References CharBuffer::Append(), CharBuffer::CharBuffer(), CharBuffer::ClearAndCopy(), CharBuffer::GetString(), prompt, CharBuffer::RemoveTrailing(), Program::SetPrompt(), and StatementNode::statementText.
|
private |
Definition at line 48 of file prompt.h.
Referenced by Execute(), PromptStatement(), and ~PromptStatement().