OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Public Member Functions | Private Member Functions | List of all members
Parser Class Referenceabstract

Interface for abstract language parser. More...

#include <Parser.h>

Inheritance diagram for Parser:
Inheritance graph
[legend]

Public Member Functions

 Parser ()
 
virtual ~Parser ()
 
virtual void parse (Statement &stat) const =0
 Parse and execute the statement. More...
 
virtual StatementreadStatement (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 &)
 

Detailed Description

Interface for abstract language parser.

Definition at line 31 of file Parser.h.

Constructor & Destructor Documentation

Parser::Parser ( )
inline

Definition at line 56 of file Parser.h.

Parser::~Parser ( )
inlinevirtual

Definition at line 60 of file Parser.h.

Parser::Parser ( const Parser )
private

Member Function Documentation

void Parser::operator= ( const Parser )
private
virtual void Parser::parse ( Statement stat) const
pure virtual

Parse and execute the statement.

Implemented in OpalParser, SequenceParser, and EditParser.

Referenced by SimpleStatement::execute().

virtual Statement* Parser::readStatement ( TokenStream ts) const
pure virtual

Read complete statement from token stream.

Implemented in OpalParser.

Referenced by IfStatement::IfStatement(), and WhileStatement::WhileStatement().

virtual void Parser::run ( TokenStream ts) const
pure virtual

Read statements and parse.

Implemented in OpalParser.

Referenced by MacroCmd::execute(), and CompoundStatement::execute().


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