org.antlr.v4.runtime.VocabularyImpl Java Examples

The following examples show how to use org.antlr.v4.runtime.VocabularyImpl. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Grammar.java    From codebuff with BSD 2-Clause "Simplified" License 4 votes vote down vote up
/**
 * Gets a {@link Vocabulary} instance describing the vocabulary used by the
 * grammar.
 */

public Vocabulary getVocabulary() {
	return new VocabularyImpl(getTokenLiteralNames(), getTokenSymbolicNames());
}