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

Type Parameters:
R - type of rules.
All Known Implementing Classes:
EnumParserLookaheadActivator, HashParserLookaheadActivator

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
 Iterable<? extends R> activeRules()
          Determines the set of active rules.
 Iterable<? extends R> allRules()
           
 

Method Detail

activeRules

Iterable<? extends R> activeRules()
Determines the set of active rules. The method activateRules is called before the beginning of new token recognition.

Returns:
new set of active rules

allRules

Iterable<? extends R> allRules()