While statement.
More...
#include <WhileStatement.h>
|
| | WhileStatement (const Parser &, TokenStream &) |
| | Constructor.
|
| |
| virtual | ~WhileStatement () |
| |
| virtual void | execute (const Parser &) |
| | Execute.
|
| |
| | Statement (const std::string &name, int line) |
| | Constructor.
|
| |
| | Statement (const std::string &name, TokenList &) |
| | Constructor.
|
| |
| virtual | ~Statement () |
| |
| void | append (const Token &) |
| | Append a token.
|
| |
| bool | atEnd () const |
| | Test for end of command.
|
| |
| bool | boolean (bool &value) |
| | Return boolean value.
|
| |
| bool | delimiter (char c) |
| | Test for delimiter.
|
| |
| bool | delimiter (const char *s) |
| | Test for delimiter choice.
|
| |
| Token & | getCurrent () |
| | Return current token and skip it.
|
| |
| bool | integer (int &value) |
| | Return signed integer.
|
| |
| bool | integer (unsigned &value) |
| | Return unsigned integer.
|
| |
| bool | keyword (const char *s) |
| | Test for keyword.
|
| |
| bool | real (double &value) |
| | Return real value.
|
| |
| bool | str (std::string &value) |
| | Return string value.
|
| |
| bool | word (std::string &value) |
| | Return word value.
|
| |
| void | mark () |
| | Mark position in command.
|
| |
| void | restore () |
| | Return to marked position.
|
| |
| void | start () |
| | Return to start.
|
| |
| void | skip () |
| | Skip.
|
| |
| unsigned int | position () const |
| | Return current character number in line.
|
| |
| virtual void | print (std::ostream &os) const |
| | Print statement.
|
| |
| virtual void | printWhere (Inform &msg, bool withToken) const |
| | Print position.
|
| |
| std::string | str () const |
| |
While statement.
Definition at line 35 of file WhileStatement.h.
◆ WhileStatement() [1/3]
◆ ~WhileStatement()
| WhileStatement::~WhileStatement |
( |
| ) |
|
|
virtual |
◆ WhileStatement() [2/3]
| WhileStatement::WhileStatement |
( |
| ) |
|
|
private |
◆ WhileStatement() [3/3]
◆ execute()
| void WhileStatement::execute |
( |
const Parser & |
parser | ) |
|
|
virtual |
Execute.
Implements Statement.
Definition at line 72 of file WhileStatement.cpp.
References Statement::curr, ERRORMSG, Statement::execute(), Attributes::getBool(), OpalData::getInstance(), Statement::keep, Attributes::makeBool(), Attribute::parse(), Statement::print(), Statement::tokens, OpalData::update(), and while_block.
◆ operator=()
◆ while_block
The documentation for this class was generated from the following files: