class
TokenStream
: public RCObject
(Return to index)
Abstract interface for a stream of input tokens.
Type: |
Abstract |
Superclasses: |
public RCObject |
Include file: |
./Parser/TokenStream.hh |
Inheritance
Synopsis (including inherited members):
- Public members:
- Protected Members:
-
string stream_name
;
-
int curr_line
;
-
bool put_back_flag
;
-
Token put_back
;
-
RCObject& operator=
(const RCObject&)
;
Documentation:
- Public members:
-
TokenStream
(const string&)
;
- Constructor.
Store the stream name.
-
int getLine
()const
;
- Return line number.
-
const string& getName
()const
;
- Return stream name.
-
void putBack
(const Token&)
;
- Put token back to stream.
This allows to reparse the token.
-
virtual Token readToken
()
= 0
;
- Read single token from stream.
- Protected members:
Documentation generated by fci on Mon Feb 7 11:41:55 2000