fri.patterns.interpreter.parsergenerator
Interface Lexer.TokenListener
- Enclosing interface:
- Lexer
- public static interface Lexer.TokenListener
A way to receive every parsing syntax Token the Lexer reads, even it is ignored.
The implementer can install itself by calling addTokenListener().
Method Summary |
void |
tokenReceived(Token token,
boolean ignored)
The implementer receives every token the lexer reads, even if it is ignored. |
tokenReceived
public void tokenReceived(Token token,
boolean ignored)
- The implementer receives every token the lexer reads, even if it is ignored.
- Parameters:
token
- the Token that was successfully scanned from input.ignored
- true when this Token will be thrown away (not passed to Parser), else false.