|
OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
|
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. | |
| virtual Statement * | readStatement (TokenStream *ts) const =0 |
| Read complete statement from token stream. | |
| virtual void | run (TokenStream *ts) const =0 |
| Read statements and parse. | |
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().