44 "You cannot execute the command \"" +
getOpalName() +
45 "\" without parameters.");
70 std::vector<Token> act;
75 if(token.
isDel(
',')) {
82 }
else if(token.
isDel(
'(')) {
84 }
else if(token.
isDel(
')')) {
std::string parseString(Statement &, const char msg[])
Parse string value.
void parseDelimiter(Statement &stat, char delim)
Test for one-character delimiter.
The base class for all OPAL objects.
const std::string & getOpalName() const
Return object name.
Interface for statements.
Token & getCurrent()
Return current token and skip it.
bool delimiter(char c)
Test for delimiter.
Representation of a single input token.
bool isDel(char del) const
Test for delimiter.
Abstract base class for macros.
virtual const std::string getCategory() const
Return the object category as a string.
virtual Macro * clone(const std::string &name)
Make clone.
virtual bool shouldUpdate() const
Update flag.
virtual void parseFormals(Statement &)
Parse formal arguments.
std::vector< std::string > formals
The formal argument list.
std::vector< std::vector< Token > > actuals
The actual argument list.
virtual void parseActuals(Statement &)
Parse actual arguments.
virtual bool shouldTrace() const
Trace flag.