amath
1.8.5
Simple command line calculator
|
Change numeral input system. More...
#include <input.h>
Public Member Functions | |
InputStatement () | |
Constructor used to show number of active digits. More... | |
InputStatement (unsigned int base) | |
Constructor used to set number of active digits. More... | |
~InputStatement () | |
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 | |
unsigned int | base |
Additional Inherited Members | |
Protected Attributes inherited from StatementNode | |
char * | statementText |
Protected Attributes inherited from SyntaxNode | |
CharBuffer * | output |
SyntaxNode * | parent |
SyntaxNode * | iterator |
bool | leftBottom |
InputStatement::InputStatement | ( | ) |
Constructor used to show number of active digits.
Definition at line 38 of file input.cpp.
References base, and StatementNode::StatementNode().
Referenced by Parser::ParseNumeralStatement().
|
explicit |
Constructor used to set number of active digits.
Definition at line 47 of file input.cpp.
References base, and StatementNode::StatementNode().
Referenced by Parser::ParseNumeralStatement().
|
virtual |
Implements StatementNode.
Definition at line 56 of file input.cpp.
References CharBuffer::Append(), base, CharBuffer::Empty(), CharBuffer::EnsureSize(), NumeralSystem::GetDigits(), NumeralSystem::GetName(), CharBuffer::GetString(), Program::Input, Program::NewPositionalInput(), SyntaxNode::output, and StrLen().
|
private |
Definition at line 48 of file input.h.
Referenced by Execute(), and InputStatement().