org.inxar.syntacs.grammar.regular
Interface Option

All Superinterfaces:
Cloneable, RegularExpression
All Known Implementing Classes:
REOption

public interface Option
extends RegularExpression

The Option interface is another 'utility' regex which abstracts the '?' operator. It is not a 'fundamental' regular language construct. Therefore, the Option 'a?' is a shortcut for saying '(a|e)' where 'e' represents Epsilon.


Method Summary
 RegularExpression getInternal()
          Returns the RegularExpression which this '?' modifies.
 
Methods inherited from interface org.inxar.syntacs.grammar.regular.RegularExpression
clone, follow, getFirstSet, getLastSet, isNullable
 

Method Detail

getInternal

public RegularExpression getInternal()
Returns the RegularExpression which this '?' modifies.