amath  1.8.5
Simple command line calculator
EmptyStatement Class Reference

An empty statement. More...

#include <empty.h>

Inheritance diagram for EmptyStatement:
Collaboration diagram for EmptyStatement:

Public Member Functions

 EmptyStatement ()
 
 ~EmptyStatement ()
 
char * Execute ()
 
- Public Member Functions inherited from StatementNode
 StatementNode ()
 
 StatementNode (const char *text)
 
virtual ~StatementNode ()
 
NodeType GetNodeType ()
 
virtual SyntaxNodeGetNext ()
 
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
 
SyntaxNodeGetParent () const
 
void SetParent (SyntaxNode *node)
 
virtual ReductionType GetReductionType ()
 
virtual void ResetIterator ()
 

Additional Inherited Members

- Protected Attributes inherited from StatementNode
char * statementText
 
- Protected Attributes inherited from SyntaxNode
CharBufferoutput
 
SyntaxNodeparent
 
SyntaxNodeiterator
 
bool leftBottom
 

Detailed Description

An empty statement.

Statement node which encapsulate an empty statment. This happens fx. if the user only enters a line feed.

Definition at line 42 of file empty.h.

Constructor & Destructor Documentation

◆ EmptyStatement()

EmptyStatement::EmptyStatement ( )

Definition at line 32 of file empty.cpp.

References StatementNode::StatementNode().

Referenced by Parser::Parse().

32  :
34 {
35 }
StatementNode()
Definition: node.cpp:34
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~EmptyStatement()

EmptyStatement::~EmptyStatement ( )

Definition at line 37 of file empty.cpp.

38 {
39 }

Member Function Documentation

◆ Execute()

char * EmptyStatement::Execute ( )
virtual

Implements StatementNode.

Definition at line 41 of file empty.cpp.

References StatementNode::statementText.

42 {
43  return statementText;
44 }
char * statementText
Definition: node.h:55

The documentation for this class was generated from the following files: