fr.umlv.tatoo.runtime.lexer
Interface LexerListener<R extends Rule,B>
- Type Parameters:
R - type of rules.B - type of buffers.
- All Known Implementing Classes:
- AbstractLexerListener
public interface LexerListener<R extends Rule,B>
Interface for an observer to register to receive notifications of
token recognized by a lexer.
- Version:
- $Revision$
- Author:
- Rémi Forax
|
Method Summary |
void |
ruleVerified(R rule,
int lastTokenLength,
B buffer)
This method is called each time a token is recognized by the lexer. |
ruleVerified
void ruleVerified(R rule,
int lastTokenLength,
B buffer)
- This method is called each time a token is recognized by the lexer.
- Parameters:
rule - the rule verifiedlastTokenLength - the length of the token recognized by the rulebuffer - the buffer containing the token to extract