OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
|
Interface for abstract language parser. More...
#include <Parser.h>
Public Member Functions | |
Parser () | |
virtual | ~Parser () |
virtual void | parse (Statement &stat) const =0 |
Parse and execute the statement. More... | |
virtual Statement * | readStatement (TokenStream *ts) const =0 |
Read complete statement from token stream. More... | |
virtual void | run (TokenStream *ts) const =0 |
Read statements and parse. More... | |
Private Member Functions | |
Parser (const Parser &) | |
void | operator= (const Parser &) |
|
private |
|
private |
|
pure virtual |
Parse and execute the statement.
Implemented in SequenceParser, and OpalParser.
Referenced by SimpleStatement::execute().
|
pure virtual |
Read complete statement from token stream.
Implemented in OpalParser.
Referenced by IfStatement::IfStatement(), and WhileStatement::WhileStatement().
|
pure virtual |
Read statements and parse.
Implemented in OpalParser.
Referenced by MacroCmd::execute(), and CompoundStatement::execute().