fr.umlv.tatoo.runtime.interfaces
Interface Rule


public interface Rule

A Rule represents a rule of the lexer. Implementations of this interface are, usually, values of enumerations produced by the Tatoo compiler compiler .

Version:
$Revision: 1.2 $
Author:
Julien Cervelle

Method Summary
 boolean beginningOfLineRequired()
          Indicates if he main regular expression associated with the rule must starts at the beginning of the line
 RegexTable getFollowRegex()
          Returns the regular expression that must follow the main regular expression associated with this rule.
 RegexTable getMainRegex()
          Returns the main regular expression associated with this rule.
 

Method Detail

getMainRegex

RegexTable getMainRegex()
Returns the main regular expression associated with this rule.

Returns:
a table implementation of the minimal automaton corresponding to the main regular expression.

beginningOfLineRequired

boolean beginningOfLineRequired()
Indicates if he main regular expression associated with the rule must starts at the beginning of the line

Returns:
true if the main regular expression must starts at the beginning a the line; false otherwise.

getFollowRegex

RegexTable getFollowRegex()
Returns the regular expression that must follow the main regular expression associated with this rule.

Returns:
a table implementation of the minimal automaton corresponding to the following regular expression.