OPAL (Object Oriented Parallel Accelerator Library) 2022.1
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() [1/2]

Parser::Parser ( )
inline

Definition at line 56 of file Parser.h.

◆ ~Parser()

Parser::~Parser ( )
inlinevirtual

Definition at line 60 of file Parser.h.

◆ Parser() [2/2]

Parser::Parser ( const Parser )
private

Member Function Documentation

◆ operator=()

void Parser::operator= ( const Parser )
private

◆ parse()

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

Parse and execute the statement.

Implemented in SequenceParser, and OpalParser.

Referenced by SimpleStatement::execute().

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

◆ run()

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: