fr.umlv.tatoo.runtime.lexer
Interface RuleActivator<R>

Type Parameters:
R - type of rules.
All Known Implementing Classes:
ParserLookaheadActivator, SingleVersionParserLookaheadActivator

public interface RuleActivator<R>

The lexer uses an object that implements this interface to change the set of active rule at the beginning of a token recognition. This can be use to enable/disable some rule depending on the context.

Version:
$Revision$
Author:
Julien Cervelle

Method Summary
 R[] activeRules()
          Determines the set of active rules.
 

Method Detail

activeRules

R[] activeRules()
Determines the set of active rules. The method activateRules is called before the beginning of new token recognition. The returned list must be random access for efficiency

Returns:
new set of active rules; must be random access