Constructs a new instance of {@link VocabularyImpl} from the specified literal and symbolic token names.
Constructs a new instance of {@link VocabularyImpl} from the specified literal, symbolic, and display token names.
@uml Returns the highest token type value. It can be used to iterate from zero to that number, inclusively, thus querying all stored entries. @return the highest token type value
@uml Gets the string literal associated with a token type. The string returned by this method, when not {@code null}, can be used unaltered in a parser grammar to represent this token type.
@uml Gets the symbolic name associated with a token type. The string returned by this method, when not {@code null}, can be used unaltered in a parser grammar to represent this token type.
@uml Gets the display name of a token type.
This class provides a default implementation of the {@link Vocabulary} interface.