OPALX (Object Oriented Parallel Accelerator Library for Exascal) MINIorX
OPALX
WhileStatement.h
Go to the documentation of this file.
1#ifndef OPAL_WhileStatement_HH
2#define OPAL_WhileStatement_HH 1
3
4// ------------------------------------------------------------------------
5// $RCSfile: WhileStatement.h,v $
6// ------------------------------------------------------------------------
7// $Revision: 1.1.1.1 $
8// ------------------------------------------------------------------------
9// Copyright: see Copyright.readme
10// ------------------------------------------------------------------------
11//
12// Class: WhileStatement
13//
14// ------------------------------------------------------------------------
15//
16// $Date: 2000/03/27 09:33:43 $
17// $Author: Andreas Adelmann $
18//
19// ------------------------------------------------------------------------
20
22#include <iosfwd>
23
24class Parser;
25class TokenStream;
26
27
28// class "WhileStatement":
29// ------------------------------------------------------------------------
31// A statement of the form "WHILE ( <condition> ) <statement>".
32// The condition is stored in the Token list inherited from Statement,
33// the block to be executed repeatedly in a Statement.
34
36
37public:
38
40 // Parse the statement on the given token stream, using the given parser.
42
43 virtual ~WhileStatement();
44
46 // Use the given parser to execute the controlled statements.
47 virtual void execute(const Parser &);
48
49private:
50
51 // Not implemented.
55
57};
58
59#endif // OPAL_WhileStatement_HH
Interface for abstract language parser.
Definition Parser.h:31
Statement(const std::string &name, int line)
Constructor.
Definition Statement.cpp:28
Abstract interface for a stream of input tokens.
Definition TokenStream.h:33
Statement * while_block
virtual void execute(const Parser &)
Execute.
void operator=(const WhileStatement &)
virtual ~WhileStatement()
WhileStatement(const WhileStatement &)
WhileStatement(const Parser &, TokenStream &)
Constructor.