fr.umlv.tatoo.runtime.buffer.impl
Interface TokenBuffer

All Known Implementing Classes:
CharBufferWrapper, ReaderWrapper

public interface TokenBuffer

A TokenBuffer provides methods for the developper to access tokens processes by a lexer.

Version:
$Revision: 1.1 $
Author:
Gilles Roussel
See Also:
LexerListener

Method Summary
 void discard()
          Discards all characters already recognized by the lexer.
 CharSequence view()
          Provides a view of all available tokens.
 

Method Detail

discard

void discard()
Discards all characters already recognized by the lexer.


view

CharSequence view()
Provides a view of all available tokens. Tokens are not copied from the buffer and may change during lexer process.

Returns:
a view of all availale tokens