39 while(! token.
isEOF()) {
40 if(token.
isDel(
'{')) {
42 }
else if(token.
isDel(
'}')) {
43 if(--level == 0)
return;
Interface for abstract language parser.
virtual void run(TokenStream *ts) const =0
Read statements and parse.
Interface for statements.
Representation of a single input token.
bool isDel(char del) const
Test for delimiter.
bool isEOF() const
Test for end of file.
int getLine() const
Return the token's line number.
const std::string & getFile() const
Return the token's file name.
Abstract interface for a stream of input tokens.
virtual Token readToken()=0
Read single token from stream.
virtual ~CompoundStatement()
Pointer< MacroStream > tokens
virtual void execute(const Parser &)
Execute.
An input buffer for macro commands.
void append(Token &)
Append a token to the stream.
void start()
Reset stream to start.