1 #ifndef CLASSIC_TokenStream_HH
2 #define CLASSIC_TokenStream_HH
51 const std::string &
getName()
const;
Abstract base class for reference counted objects.
Representation of a single input token.
Abstract interface for a stream of input tokens.
TokenStream(const TokenStream &)
int getLine() const
Return line number.
const std::string & getName() const
Return stream name.
void putBack(const Token &token)
Put token back to stream.
virtual Token readToken()=0
Read single token from stream.
void operator=(const TokenStream &)