OPALX (Object Oriented Parallel Accelerator Library for Exascal) MINIorX
OPALX
Parser Class Referenceabstract

Interface for abstract language parser. More...

#include <Parser.h>

Inheritance diagram for Parser:
Collaboration diagram for Parser:

Public Member Functions

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

Detailed Description

Interface for abstract language parser.

Definition at line 31 of file Parser.h.

Constructor & Destructor Documentation

◆ Parser() [1/2]

Parser::Parser ( )
inline

Definition at line 56 of file Parser.h.

Referenced by operator=(), and Parser().

Here is the caller graph for this function:

◆ ~Parser()

Parser::~Parser ( )
inlinevirtual

Definition at line 60 of file Parser.h.

◆ Parser() [2/2]

Parser::Parser ( const Parser & )
private

References Parser().

Here is the call graph for this function:

Member Function Documentation

◆ operator=()

void Parser::operator= ( const Parser & )
private

References Parser().

Here is the call graph for this function:

◆ parse()

virtual void Parser::parse ( Statement & stat) const
pure virtual

Parse and execute the statement.

Implemented in OpalParser, and SequenceParser.

Referenced by SimpleStatement::execute().

Here is the caller graph for this function:

◆ readStatement()

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().

Here is the caller graph for this function:

◆ run()

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

Read statements and parse.

Implemented in OpalParser.

Referenced by CompoundStatement::execute().

Here is the caller graph for this function:

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