28 :
Object(size, name, help), formals(), actuals() {}
31 :
Object(name, parent), formals(), actuals() {}
38 "You cannot execute the command \"" +
getOpalName() +
"\" without parameters.");
53 std::vector<Token> act;
58 if (token.
isDel(
',')) {
65 }
else if (token.
isDel(
'(')) {
67 }
else if (token.
isDel(
')')) {
Abstract base class for macros.
std::vector< std::vector< Token > > actuals
The actual argument list.
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.
virtual void parseActuals(Statement &)
Parse actual arguments.
virtual bool shouldTrace() const
Trace flag.
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.
std::string parseString(Statement &, const char msg[])
Parse string value.
void parseDelimiter(Statement &stat, char delim)
Test for one-character delimiter.