/external/antlr/runtime/Java/src/main/java/org/antlr/runtime/ |
D | BaseRecognizer.java | 223 String tokenName; in getErrorMessage() local 225 tokenName = "EOF"; in getErrorMessage() 228 tokenName = tokenNames[ute.expecting]; in getErrorMessage() 231 " expecting "+tokenName; in getErrorMessage() 235 String tokenName; in getErrorMessage() local 237 tokenName = "EOF"; in getErrorMessage() 240 tokenName = tokenNames[mte.expecting]; in getErrorMessage() 242 msg = "missing "+tokenName+" at "+getTokenErrorDisplay(e.token); in getErrorMessage() 246 String tokenName; in getErrorMessage() local 248 tokenName = "EOF"; in getErrorMessage() [all …]
|
/external/antlr/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/ |
D | BaseRecognizer.cs | 254 string tokenName = "<unknown>"; in GetErrorMessage() 256 tokenName = "EndOfFile"; in GetErrorMessage() 258 tokenName = tokenNames[ute.Expecting]; in GetErrorMessage() 261 " expecting " + tokenName; in GetErrorMessage() 264 string tokenName = "<unknown>"; in GetErrorMessage() 266 tokenName = "EndOfFile"; in GetErrorMessage() 268 tokenName = tokenNames[mte.Expecting]; in GetErrorMessage() 270 msg = "missing " + tokenName + " at " + GetTokenErrorDisplay(e.Token); in GetErrorMessage() 273 string tokenName = "<unknown>"; in GetErrorMessage() 275 tokenName = "EndOfFile"; in GetErrorMessage() [all …]
|
/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime/ |
D | BaseRecognizer.cs | 281 string tokenName = "<unknown>"; in GetErrorMessage() 284 tokenName = "EndOfFile"; in GetErrorMessage() 288 tokenName = tokenNames[ute.Expecting]; in GetErrorMessage() 291 " expecting " + tokenName; in GetErrorMessage() 296 string tokenName = "<unknown>"; in GetErrorMessage() 299 tokenName = "EndOfFile"; in GetErrorMessage() 303 tokenName = tokenNames[mte.Expecting]; in GetErrorMessage() 305 msg = "missing " + tokenName + " at " + GetTokenErrorDisplay( e.Token ); in GetErrorMessage() 310 string tokenName = "<unknown>"; in GetErrorMessage() 313 tokenName = "EndOfFile"; in GetErrorMessage() [all …]
|
/external/antlr/runtime/JavaScript/src/org/antlr/runtime/ |
D | BaseRecognizer.js | 295 tokenName; 298 tokenName="<unknown>"; 300 tokenName = "EOF"; 302 tokenName = tokenNames[ute.expecting]; 305 " expecting "+tokenName; 309 tokenName="<unknown>"; 311 tokenName = "EOF"; 313 tokenName = tokenNames[mte.expecting]; 315 msg = "missing "+tokenName+" at "+this.getTokenErrorDisplay(e.token); 319 tokenName="<unknown>"; [all …]
|
/external/antlr/tool/src/main/java/org/antlr/tool/ |
D | GrammarNonDeterminismMessage.java | 78 String tokenName = in toString() local 82 probe.dfa.nfa.grammar.getRuleStartState(tokenName); in toString() 85 st.add("disabled", tokenName); in toString() 113 String tokenName = in toString() local 115 st.add("conflictingTokens", tokenName); in toString()
|
D | GrammarUnreachableAltsMessage.java | 71 String tokenName = in toString() local 75 probe.dfa.nfa.grammar.getRuleStartState(tokenName); in toString() 78 st.add("tokens", tokenName); in toString()
|
D | Interp.java | 119 String tokenName = tk.nextToken(); in main() local 120 tokens.setTokenTypeChannel(lexer.getTokenType(tokenName), 99); in main()
|
D | Grammar.java | 2122 public int getTokenType(String tokenName) { in getTokenType() argument 2124 if ( tokenName.charAt(0)=='\'') { in getTokenType() 2125 I = composite.stringLiteralToTypeMap.get(tokenName); in getTokenType() 2128 I = composite.tokenIDToTypeMap.get(tokenName); in getTokenType() 2457 String tokenName; in getTokenDisplayName() local 2467 tokenName = composite.typeToTokenList.get(Label.NUM_FAUX_LABELS+ttype); in getTokenDisplayName() 2475 tokenName = composite.typeToTokenList.get(index); in getTokenDisplayName() 2476 if ( tokenName!=null && in getTokenDisplayName() 2477 tokenName.startsWith(AUTO_GENERATED_TOKEN_NAME_PREFIX) ) in getTokenDisplayName() 2479 tokenName = composite.typeToStringLiteralList.get(ttype); in getTokenDisplayName() [all …]
|
/external/antlr/runtime/Python/antlr3/ |
D | recognizers.py | 322 tokenName = "<unknown>" 324 tokenName = "EOF" 327 tokenName = self.tokenNames[e.expecting] 331 tokenName 335 tokenName = "<unknown>" 337 tokenName = "EOF" 340 tokenName = self.tokenNames[e.expecting] 343 tokenName, self.getTokenErrorDisplay(e.token) 347 tokenName = "<unknown>" 349 tokenName = "EOF" [all …]
|
D | treewizard.py | 242 tokenName = self.tokenizer.sval 245 if tokenName == "nil": 248 text = tokenName 257 treeNodeType = self.wizard.getTokenType(tokenName) 339 def getTokenType(self, tokenName): argument 343 return self.tokenNameToTypeMap[tokenName]
|
/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime/Tree/ |
D | TreePatternParser.cs | 148 string tokenName = tokenizer.sval.ToString(); in ParseNode() 150 if ( tokenName.Equals( "nil" ) ) in ParseNode() 154 string text = tokenName; in ParseNode() 165 int treeNodeType = wizard.GetTokenType( tokenName ); in ParseNode()
|
/external/antlr/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Tree/ |
D | TreePatternParser.cs | 126 string tokenName = tokenizer.sval.ToString(); in ParseNode() 128 if (tokenName.Equals("nil")) { in ParseNode() 131 string text = tokenName; in ParseNode() 141 int treeNodeType = wizard.GetTokenType(tokenName); in ParseNode()
|
/external/antlr/runtime/Java/src/main/java/org/antlr/runtime/tree/ |
D | TreePatternParser.java | 125 String tokenName = tokenizer.sval.toString(); in parseNode() local 127 if ( tokenName.equals("nil") ) { in parseNode() 130 String text = tokenName; in parseNode() 140 int treeNodeType = wizard.getTokenType(tokenName); in parseNode()
|
/external/antlr/runtime/Python3/antlr3/ |
D | recognizers.py | 322 tokenName = "EOF" 324 tokenName = self.tokenNames[e.expecting] 328 tokenName 333 tokenName = "EOF" 335 tokenName = self.tokenNames[e.expecting] 338 tokenName, self.getTokenErrorDisplay(e.token) 343 tokenName = "EOF" 345 tokenName = self.tokenNames[e.expecting] 349 tokenName 354 tokenName = "EOF" [all …]
|
D | treewizard.py | 242 tokenName = self.tokenizer.sval 245 if tokenName == "nil": 248 text = tokenName 257 treeNodeType = self.wizard.getTokenType(tokenName) 339 def getTokenType(self, tokenName): argument 342 if tokenName in self.tokenNameToTypeMap: 343 return self.tokenNameToTypeMap[tokenName]
|
/external/smali/smali/src/test/antlr/org/jf/smali/ |
D | expectedTokensTestGrammar.g | 84 public final String tokenName; 87 public ExpectedToken(String tokenName, String tokenText) { 88 this.tokenName = tokenName; 92 public ExpectedToken(String tokenName) { 93 this.tokenName = tokenName;
|
/external/smali/smali/src/test/java/org/jf/smali/ |
D | LexerTest.java | 188 if (!tokenTypesByName.containsKey(expectedToken.tokenName)) { in runTest() 189 Assert.fail("Unknown token: " + expectedToken.tokenName); in runTest() 191 int expectedTokenType = tokenTypesByName.get(expectedToken.tokenName); in runTest() 195 … expectedTokenIndex-1, expectedToken.tokenName, getTokenName(token.getType()), token.getText())); in runTest()
|
/external/smali/smalidea/src/main/java/org/jf/smalidea/ |
D | SmaliLexicalElementType.java | 41 …protected SmaliLexicalElementType(int tokenId, String tokenName, TextAttributesKey textAttributesK… in SmaliLexicalElementType() argument 42 super(tokenName, SmaliLanguage.INSTANCE); in SmaliLexicalElementType()
|
D | SmaliTokens.java | 285 String tokenName = smaliParser.tokenNames[tokenId]; 289 field = SmaliTokens.class.getField(tokenName); 294 TextAttributesKey textAttributesKey = tokenColors.get(tokenName); 297 throw new RuntimeException("No color attribute for token " + tokenName); 300 …SmaliLexicalElementType elementType = new SmaliLexicalElementType(tokenId, tokenName, textAttribut…
|
/external/jsoncpp/src/lib_json/ |
D | json_reader.cpp | 407 Token tokenName; in readObject() local 411 while (readToken(tokenName)) { in readObject() 413 while (tokenName.type_ == tokenComment && initialTokenOk) in readObject() 414 initialTokenOk = readToken(tokenName); in readObject() 417 if (tokenName.type_ == tokenObjectEnd && name.empty()) // empty object in readObject() 420 if (tokenName.type_ == tokenString) { in readObject() 421 if (!decodeString(tokenName, name)) in readObject() 423 } else if (tokenName.type_ == tokenNumber && features_.allowNumericKeys_) { in readObject() 425 if (!decodeNumber(tokenName, numberName)) in readObject() 458 "Missing '}' or object member name", tokenName, tokenObjectEnd); in readObject()
|
/external/javaparser/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/other/ |
D | GrammarLetterGenerator.java | 14 private static void generate(String tokenName, Function<Integer, Boolean> f) { in generate() argument 16 System.out.println(" < #" + tokenName + ": ["); in generate()
|
/external/antlr/runtime/ObjC/Framework/ |
D | TreePatternParser.m | 164 NSString *tokenName = [tokenizer toString]; 166 if ( [tokenName isEqualToString:@"nil"] ) { 169 NSString *text = tokenName; 179 int treeNodeType = [wizard getTokenType:tokenName];
|
D | BaseRecognizer.m | 357 NSString *tokenName=@"<unknown>"; 359 tokenName = @"EOF"; 362 tokenName = (NSString *)[theTokNams objectAtIndex:ute.expecting]; 365 tokenName]; 369 NSString *tokenName=@"<unknown>"; 371 tokenName = @"EOF"; 374 tokenName = [theTokNams objectAtIndex:mte.expecting]; 376 …msg = [NSString stringWithFormat:@"missing %@ at %@", tokenName, [self getTokenErrorDisplay:(e.tok… 380 NSString *tokenName=@"<unknown>"; 382 tokenName = @"EOF"; [all …]
|
/external/antlr/runtime/ActionScript/project/src/org/antlr/runtime/ |
D | BaseRecognizer.as | 199 var tokenName:String = null; 202 tokenName="<unknown>"; 204 tokenName = "EOF"; 207 tokenName = tokenNames[ute.expecting]; 210 " expecting "+tokenName; 214 tokenName="<unknown>"; 216 tokenName = "EOF"; 219 tokenName = tokenNames[mite.expecting]; 221 msg = "missing "+tokenName+" at "+getTokenErrorDisplay(e.token); 225 tokenName="<unknown>"; [all …]
|
/external/antlr/tool/src/test/java/org/antlr/test/ |
D | TestSymbolDefinitions.java | 888 String tokenName = st.nextToken(); in checkSymbols() local 889 assertTrue("token "+tokenName+" expected", in checkSymbols() 890 g.getTokenType(tokenName)!=Label.INVALID); in checkSymbols() 891 tokens.remove(tokenName); in checkSymbols() 894 for (String tokenName : tokens) { in checkSymbols() 895 assertTrue("unexpected token name "+tokenName, in checkSymbols() 896 g.getTokenType(tokenName)<Label.MIN_TOKEN_TYPE); in checkSymbols()
|