OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
IfStatement.h
Go to the documentation of this file.
1#ifndef OPAL_IfStatement_HH
2#define OPAL_IfStatement_HH 1
3
4// ------------------------------------------------------------------------
5// $RCSfile: IfStatement.h,v $
6// ------------------------------------------------------------------------
7// $Revision: 1.1.1.1 $
8// ------------------------------------------------------------------------
9// Copyright: see Copyright.readme
10// ------------------------------------------------------------------------
11//
12// Class: IfStatement
13//
14// ------------------------------------------------------------------------
15//
16// $Date: 2000/03/27 09:33:43 $
17// $Author: Andreas Adelmann $
18//
19// ------------------------------------------------------------------------
20
23
24class Parser;
25class TokenStream;
26
27// class "IfStatement":
28// ------------------------------------------------------------------------
30// A statement of the form "IF ( <condition> ) <statement>".
31// The condition is stored in the Token list inherited from Statement,
32// the then and else blocks are stored in two Statements.
33
34class IfStatement : public Statement {
35public:
37 // Parse the statement on the given token stream, using the given parser.
39
40 virtual ~IfStatement();
41
43 // Use the given parser to execute the controlled statements.
44 virtual void execute(const Parser&);
45
46private:
47 // Not implemented.
50 void operator=(const IfStatement&);
51
54};
55
56#endif // OPAL_IfStatement_HH
If statement.
Definition IfStatement.h:34
virtual ~IfStatement()
Statement * else_block
Definition IfStatement.h:53
virtual void execute(const Parser &)
Execute.
Statement * then_block
Definition IfStatement.h:52
IfStatement(const IfStatement &)
void operator=(const IfStatement &)
Interface for abstract language parser.
Definition Parser.h:30
Interface for statements.
Definition Statement.h:37
Abstract interface for a stream of input tokens.
Definition TokenStream.h:30