1#ifndef OPAL_OpalParser_HH
2#define OPAL_OpalParser_HH
59 virtual void run()
const;
80 virtual Object *
find(
const std::string &)
const;
98 virtual void printHelp(
const std::string &)
const;
113 static std::string
getHint(
const std::string &,
const std::string & =
"attribute");
The base class for all OPAL objects.
Interface for abstract language parser.
Interface for statements.
Representation of a single input token.
Abstract interface for a stream of input tokens.
The default parser for OPAL-9.
virtual void parseAssign(Statement &) const
Parse assignment statement.
static Token readToken()
Return next input token.
static void parseTokenList(Statement &)
void operator=(const OpalParser &)
virtual void parseEnd(Statement &) const
Check for end of statement.
virtual void run() const
Read current stream.
virtual Object * find(const std::string &) const
Find object by name in the main directory.
virtual void parseMacro(const std::string &name, Statement &) const
Parse macro definition or call.
static void parseBracketList(char close, Statement &)
static std::vector< Pointer< TokenStream > > inputStack
virtual Statement * readStatement(TokenStream *) const
Read complete statement from a token stream.
virtual void printHelp(const std::string &) const
Print help on named command.
void execute(Object *, const std::string &) const
Execute or check the current command.
static std::string getHint(const std::string &, const std::string &="attribute")
virtual void parse(Statement &) const
Parse and execute current statement.
void stop() const
Set stop flag.
OpalParser(const OpalParser &)
virtual void parseDefine(Statement &) const
Parse definition.
virtual void parseAction(Statement &) const
Parse executable command.