#include <token_stream.h>
Inheritance diagram for TokenStream:
Public Methods | |
TokenStream ( CharSource *i ) | |
TokenStream ( int argc, char* argv[] ) | |
virtual | ~TokenStream () |
virtual bool | get_token ( Token& t ) |
returns true if succeeded. | |
virtual bool | peek_token ( Token& t ) |
virtual void | push_back ( Token& t ) |
virtual istream* | get_stream () |
Assume a "{" has been read off, read off tokens until the matching "}". More... | |
virtual bool | is_empty () |
Return true if no more token can be read. | |
virtual bool | is_at_end_of_command () |
Return true if next token is either ' ', ';' or no more token can be read. | |
Protected Methods | |
TokenStream (void) | |
subclass is responsible for initializing either _tokens or _input_stream; An empty suif_vector<Token> will be assigned to the _tokens slot. | |
Protected Attributes | |
Tokens* | _tokens |
CharSource* | _input_stream |
A token stream can be built from either
|
|
|
|
subclass is responsible for initializing either _tokens or _input_stream; An empty suif_vector<Token> will be assigned to the _tokens slot.
|
Assume a "{" has been read off, read off tokens until the matching "}".
Append all tokens read into a strstream and return it. The match "}" is not included in the strstream.
|
returns true if succeeded.
|
Return true if next token is either '
', ';' or no more token can be read.
|
Return true if no more token can be read.
|
|
|
|