fr.umlv.tatoo.runtime.lexer
Interface ErrorForwarder<B extends LexerBuffer>

All Known Implementing Classes:
DefaultErrorForwarder, ParserForwarder

public interface ErrorForwarder<B extends LexerBuffer>

Lexer error forwarding interface.

Author:
Julien

Method Summary
 ForwardReturn forwardUnexpectedCharacter(Lexer<B> buffer)
          Forwards unexpected character found during the lexing process.
 void forwardUnexpectedEndOfFile(Lexer<B> buffer)
          Forwards unexpected end of file during the lexing process.
 

Method Detail

forwardUnexpectedCharacter

ForwardReturn forwardUnexpectedCharacter(Lexer<B> buffer)
Forwards unexpected character found during the lexing process.

Parameters:
buffer - the buffer that push the character
Returns:
false if lexer must discard input

forwardUnexpectedEndOfFile

void forwardUnexpectedEndOfFile(Lexer<B> buffer)
Forwards unexpected end of file during the lexing process. If it returns, lexer considers that error is recovered and exits without exception nor warning.

Parameters:
buffer - the buffer