fr.umlv.tatoo.runtime.buffer
Interface TokenBuffer<D>

Type Parameters:
D - type of the view's items.
All Known Implementing Classes:
ByteBufferWrapper, CharBufferWrapper, CharSequenceWrapper, InputStreamWrapper, ReadableByteChannelWrapper, ReadableWrapper, ReaderWrapper, UTF8Wrapper

public interface TokenBuffer<D>

A TokenBuffer provides a method used by developer to access tokens processed by a lexer.

Author:
Gilles
See Also:
LexerListener

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

Method Detail

discard

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


view

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

Returns:
a view of all available tokens