org.inxar.syntacs.grammar.regular
Interface ExpressionTerminator
- All Superinterfaces:
- Cloneable, Interval, RegularExpression
- All Known Implementing Classes:
- REExpressionTerminator
- public interface ExpressionTerminator
- extends Interval
The ExpressionTerminator
interface describes a special
pseudo-abstract object that symbolizes the end of a particular
regular expression. By concatenation of a ExpressionTerminator
to the end of another extant regular expression, some algorithms
become simplified. However, there is generally no need to actually
do this in practice -- it is something that is done internally.
When a ExpressionTerminator
is encountered in certain specific
places in these algorithms, it is known that a token is
implied. Thus, a ExpressionTerminator
has a link back to the
Token
.
getToken
public RegularToken getToken()
- Returns the
Token
which this
ExpressionTerminator
implies.