public interface ITokenFactory
Modifier and Type | Method and Description |
---|---|
Token |
makeToken(java.lang.String name,
java.lang.String lexeme)
Creates an instance of an Token from the given name and lexeme values
|
Token makeToken(java.lang.String name, java.lang.String lexeme)
name
- the name of the tokenlexeme
- the lexeme of the token