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