amath
1.8.5
Simple command line calculator
|
Represents an error message encapsulated in a syntax tree. More...
#include <nodes.h>
Public Member Functions | |
ErrorNode (const char *input, int pos) | |
ErrorNode (const char *input, const char *message, const char *parameter, int pos) | |
virtual | ~ErrorNode () |
NodeType | GetNodeType () |
SyntaxNode * | GetNext () |
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 () |
Static Private Member Functions | |
static void | StrCopyVisible (char *destination, const char *source) |
Private Attributes | |
char * | message |
char * | input |
int | pos |
Additional Inherited Members | |
Protected Attributes inherited from SyntaxNode | |
CharBuffer * | output |
SyntaxNode * | parent |
SyntaxNode * | iterator |
bool | leftBottom |
ErrorNode::ErrorNode | ( | const char * | input, |
int | pos | ||
) |
Definition at line 147 of file nodes.cpp.
References AllocAndCopy(), input, message, pos, StrCopyVisible(), StrLen(), and SyntaxNode::SyntaxNode().
Referenced by Parser::Parse(), and Parser::TryParseStatement().
ErrorNode::ErrorNode | ( | const char * | input, |
const char * | message, | ||
const char * | parameter, | ||
int | pos | ||
) |
Definition at line 133 of file nodes.cpp.
References AllocAndCopy(), CharBuffer::Append(), CharBuffer::CharBuffer(), CharBuffer::EnsureSize(), CharBuffer::GetString(), input, message, pos, StrCopyVisible(), StrLen(), and SyntaxNode::SyntaxNode().
Referenced by Parser::ParseDigistStatement(), Parser::ParseFileStatement(), Parser::ParseFunctionDef(), Parser::ParseIdent(), and Parser::ParseNumeralStatement().
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Implements SyntaxNode.
Definition at line 173 of file nodes.cpp.
References CharBuffer::Append(), CharBuffer::ClearAndAlloc(), CharBuffer::Empty(), CharBuffer::GetString(), input, message, SyntaxNode::output, pos, and StrLen().
|
virtual |
|
virtual |
|
virtual |
Implements SyntaxNode.
|
virtual |
|
staticprivate |
Definition at line 188 of file nodes.cpp.
Referenced by ErrorNode().
|
private |
Definition at line 141 of file nodes.h.
Referenced by ErrorNode(), Execute(), and ~ErrorNode().
|
private |
Definition at line 140 of file nodes.h.
Referenced by ErrorNode(), Execute(), and ~ErrorNode().
|
private |
Definition at line 142 of file nodes.h.
Referenced by ErrorNode(), and Execute().