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.
 

Method Detail

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 verified
lastTokenLength - the length of the token recognized by the rule
buffer - the buffer containing the token to extract