|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LexerErrorRecoveryPolicy<R,B extends LexerBuffer>
Method Detail |
---|
void recoverOnError(Lexer<B> lexer, ActionProcessor<R> processor)
errorRecoveryNeedsContinuation()
returns true and continueRecoverOnError(fr.umlv.tatoo.runtime.lexer.Lexer, fr.umlv.tatoo.runtime.lexer.rules.ActionProcessor)
is called
processor
- the action processorProcessReturn continueRecoverOnError(Lexer<B> lexer, ActionProcessor<R> processor)
errorRecoveryNeedsContinuation()
returns true
lexer
- the lexerprocessor
- the action processor
MORE
if more characters are needed,
ERROR
, if error recovery fails
and TOKEN
if a new token is spawned.boolean errorRecoveryNeedsContinuation()
continueRecoverOnError(fr.umlv.tatoo.runtime.lexer.Lexer, fr.umlv.tatoo.runtime.lexer.rules.ActionProcessor)
needs to be called by processor
continueRecoverOnError(fr.umlv.tatoo.runtime.lexer.Lexer, fr.umlv.tatoo.runtime.lexer.rules.ActionProcessor)
needs to be called by processorvoid recoverOnUnexpectedEndOfFile(Lexer<B> lexer, ActionProcessor<R> processor)
unexpectedEndOfFileRecoveryNeedsContinuation()
returns true and continueRecoverOnUnexpectedEndOfFile(fr.umlv.tatoo.runtime.lexer.Lexer, fr.umlv.tatoo.runtime.lexer.rules.ActionProcessor)
is called
processor
- the action processorProcessReturn continueRecoverOnUnexpectedEndOfFile(Lexer<B> lexer, ActionProcessor<R> processor)
unexpectedEndOfFileRecoveryNeedsContinuation()
returns true
processor
- the action processor
MORE
if more characters are needed,
ERROR
, if error recovery fails
and TOKEN
if a new token is spawned.boolean unexpectedEndOfFileRecoveryNeedsContinuation()
continueRecoverOnUnexpectedEndOfFile(fr.umlv.tatoo.runtime.lexer.Lexer, fr.umlv.tatoo.runtime.lexer.rules.ActionProcessor)
needs to be called by processor
continueRecoverOnUnexpectedEndOfFile(fr.umlv.tatoo.runtime.lexer.Lexer, fr.umlv.tatoo.runtime.lexer.rules.ActionProcessor)
needs to be called by processor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |