OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
SimpleStatement.h
Go to the documentation of this file.
1#ifndef OPALX_SimpleStatement_HH
2#define OPALX_SimpleStatement_HH 1
3
4// ------------------------------------------------------------------------
5// $RCSfile: SimpleStatement.h,v $
6// ------------------------------------------------------------------------
7// $Revision: 1.1.1.1 $
8// ------------------------------------------------------------------------
9// Copyright: see Copyright.readme
10// ------------------------------------------------------------------------
11//
12// Class: Statement
13//
14// ------------------------------------------------------------------------
15// Class category: Parser
16// ------------------------------------------------------------------------
17//
18// $Date: 2000/03/27 09:32:37 $
19// $Author: fci $
20//
21// ------------------------------------------------------------------------
22
24
25// class SimpleStatement
26// ------------------------------------------------------------------------
28// The statement is stored as a list of Token's.
29
30class SimpleStatement : public Statement {
31public:
33 // Stores the name of the input stream and the line at which
34 // the statement begins.
35 SimpleStatement(const std::string& streamName, int streamLine);
36
38 // Stores a name (e.g. for a macro) and the token list.
39 SimpleStatement(const std::string& streamName, TokenList& list);
40
42 virtual ~SimpleStatement();
43
45 // This method provides a hook for structured statement execution.
46 // It is called by the parser, and may be overridden to execute
47 // e.g. a conditional or a loop statement.
48 virtual void execute(const Parser&);
49};
50
51#endif // OPALX_SimpleStatement_HH
Interface for abstract language parser.
Definition Parser.h:30
A simple input statement in token form.
virtual ~SimpleStatement()
Destructor.
virtual void execute(const Parser &)
Execute statement.
Interface for statements.
Definition Statement.h:37
std::list< Token > TokenList
The type of the enclosed token list.
Definition Statement.h:40