Lexeme Match
Represents a successful Lexeme match result.
A LexemeMatch describes how many characters were matched (length), and optionally provides a factory function for creating the corresponding T. The token factory is invoked by the Lexer after validating the match.
If factory is (or can be) null, the Lexeme producing this LexemeMatch must implement Lexeme.defaultFactory.
Matches must have a positive length; zero or negative lengths will cause the Lexer to throw an exception.
Parameters
T
The type of Token produced by this match