Package eu.bandm.tools.lexic
Class TokenRule<T>
java.lang.Object
eu.bandm.tools.lexic.TokenRule<T>
- Type Parameters:
T- the type of token types
Associates a token type with a syntax fragment.
The fragment must not match an empty sequence of code points.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TokenRule
Creates a new instance.- Parameters:
type- the token type; whethernullis acceptable is application-dependentfragment- the syntax fragment- Throws:
NullPointerException- iffragmentis nullIllegalArgumentException- iffragmentmatches an empty sequence of code points
-
-
Method Details