OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
EditParser Class Reference

The parser for the OPAL sequence editor. More...

#include <EditParser.h>

Inheritance diagram for EditParser:
Inheritance graph
[legend]
Collaboration diagram for EditParser:
Collaboration graph
[legend]

Public Member Functions

 EditParser ()
 
virtual ~EditParser ()
 
- Public Member Functions inherited from OpalParser
 OpalParser ()
 
virtual ~OpalParser ()
 
virtual StatementreadStatement (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...
 
- Public Member Functions inherited from Parser
 Parser ()
 
virtual ~Parser ()
 

Protected Member Functions

virtual Objectfind (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...
 
- Protected Member Functions inherited from OpalParser
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 Public Member Functions inherited from OpalParser
static Token readToken ()
 Return next input token. More...
 

Detailed Description

The parser for the OPAL sequence editor.

Definition at line 34 of file EditParser.h.

Constructor & Destructor Documentation

EditParser::EditParser ( )

Definition at line 42 of file EditParser.cpp.

References editDirectory, and Directory::insert().

Here is the call graph for this function:

EditParser::~EditParser ( )
virtual

Definition at line 54 of file EditParser.cpp.

EditParser::EditParser ( const EditParser )
private

Member Function Documentation

Object * EditParser::find ( const std::string &  name) const
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().

Here is the call graph for this function:

void EditParser::operator= ( const EditParser )
private
void EditParser::parse ( Statement stat) const
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().

Here is the call graph for this function:

void EditParser::parseInstall ( Statement statement) const
protectedvirtual

Parse definition.

Definition at line 90 of file EditParser.cpp.

References OpalParser::execute(), Object::parse(), OpalParser::parseEnd(), and Statement::start().

Referenced by parse().

Here is the call graph for this function:

Member Data Documentation

Directory EditParser::editDirectory
private

Definition at line 60 of file EditParser.h.

Referenced by EditParser(), and find().


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