Returns a
Vocabulary instance from the specified set of token names. This method acts as a compatibility layer for the single
tokenNames array generated by previous releases of ANTLR.
The resulting vocabulary instance returns for GetLiteralName(int) and GetSymbolicName(int) , and the value from tokenNames for the display names.