OPAL (Object Oriented Parallel Accelerator Library)
2.2.0
OPAL
|
The parser for the OPAL sequence editor. More...
#include <EditParser.h>
Public Member Functions | |
EditParser () | |
virtual | ~EditParser () |
![]() | |
OpalParser () | |
virtual | ~OpalParser () |
virtual Statement * | readStatement (TokenStream *) const |
Read complete statement from a token stream. More... | |
virtual void | run () const |
Read current stream. More... | |
virtual void | run (TokenStream *) const |
Read given stream. More... | |
void | stop () const |
Set stop flag. More... | |
![]() | |
Parser () | |
virtual | ~Parser () |
Protected Member Functions | |
virtual Object * | find (const std::string &) const |
Find object by name in the sequence editor command directory. More... | |
virtual void | parse (Statement &) const |
Parse and execute current statement. More... | |
virtual void | parseInstall (Statement &) const |
Parse definition. More... | |
![]() | |
void | execute (Object *, const std::string &) const |
Execute or check the current command. More... | |
virtual void | parseAction (Statement &) const |
Parse executable command. More... | |
virtual void | parseAssign (Statement &) const |
Parse assignment statement. More... | |
virtual void | parseDefine (Statement &) const |
Parse definition. More... | |
virtual void | parseEnd (Statement &) const |
Check for end of statement. More... | |
virtual void | parseMacro (const std::string &name, Statement &) const |
Parse macro definition or call. More... | |
virtual void | printHelp (const std::string &) const |
Print help on named command. More... | |
Private Member Functions | |
EditParser (const EditParser &) | |
void | operator= (const EditParser &) |
Private Attributes | |
Directory | editDirectory |
Additional Inherited Members | |
![]() | |
static Token | readToken () |
Return next input token. More... | |
The parser for the OPAL sequence editor.
Definition at line 34 of file EditParser.h.
EditParser::EditParser | ( | ) |
Definition at line 42 of file EditParser.cpp.
References editDirectory, and Directory::insert().
|
virtual |
Definition at line 54 of file EditParser.cpp.
|
private |
|
protectedvirtual |
Find object by name in the sequence editor command directory.
Reimplemented from OpalParser.
Definition at line 58 of file EditParser.cpp.
References editDirectory, and Directory::find().
Referenced by parse().
|
private |
|
protectedvirtual |
Parse and execute current statement.
Reimplemented from OpalParser.
Definition at line 63 of file EditParser.cpp.
References Statement::atEnd(), Statement::delimiter(), find(), name, OpalParser::parseAction(), parseInstall(), Expressions::parseString(), and OpalParser::printHelp().
|
protectedvirtual |
Parse definition.
Definition at line 90 of file EditParser.cpp.
References OpalParser::execute(), Object::parse(), OpalParser::parseEnd(), and Statement::start().
Referenced by parse().
|
private |
Definition at line 60 of file EditParser.h.
Referenced by EditParser(), and find().