Searched refs:tokenNames (Results 1 – 1 of 1) sorted by relevance
75 * `tokenNames` array generated by previous releases of ANTLR.79 * and the value from `tokenNames` for the display names.81 * @param array<string|null> $tokenNames The token names, or `null` if84 * @return Vocabulary A {@see Vocabulary} instance which uses `tokenNames`87 public static function fromTokenNames(array $tokenNames = []) : Vocabulary argument 89 if (\count($tokenNames) === 0) {93 $literalNames = $tokenNames; // copy array94 $symbolicNames = $tokenNames; // copy array96 foreach ($tokenNames as $i => $tokenName) {122 return new VocabularyImpl($literalNames, $symbolicNames, $tokenNames);[all...]