/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/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()
|
/external/google-smali/smali/src/main/java/com/android/tools/smali/smali/ |
D | Smali.java | 213 String tokenName; in assembleSmaliFile() local 215 tokenName = "EOF"; in assembleSmaliFile() 217 tokenName = smaliParser.tokenNames[token.getType()]; in assembleSmaliFile() 219 System.out.println(tokenName + ": " + token.getText()); in assembleSmaliFile() 278 String tokenName; in printTokensForSingleFile() local 280 tokenName = "EOF"; in printTokensForSingleFile() 282 tokenName = smaliParser.tokenNames[token.getType()]; in printTokensForSingleFile() 284 … System.out.println(tokenName + "(\"" + StringUtils.escapeString(token.getText()) + "\")"); in printTokensForSingleFile()
|
/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/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/google-smali/third_party/smali/src/test/antlr/com/android/tools/smali/smali/ |
D | expectedTokensTestGrammar.g | 82 public final String tokenName; 85 public ExpectedToken(String tokenName, String tokenText) { 86 this.tokenName = tokenName; 90 public ExpectedToken(String tokenName) { 91 this.tokenName = 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/google-smali/smali/src/test/antlr/com/android/tools/smali/smali/ |
D | expectedTokensTestGrammar.g | 82 public final String tokenName; 85 public ExpectedToken(String tokenName, String tokenText) { 86 this.tokenName = tokenName; 90 public ExpectedToken(String tokenName) { 91 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 | 287 String tokenName = smaliParser.tokenNames[tokenId]; 291 field = SmaliTokens.class.getField(tokenName); 296 TextAttributesKey textAttributesKey = tokenColors.get(tokenName); 299 throw new RuntimeException("No color attribute for token " + tokenName); 302 …SmaliLexicalElementType elementType = new SmaliLexicalElementType(tokenId, tokenName, textAttribut…
|
/external/google-smali/smali/src/test/java/com/android/tools/smali/smali/ |
D | LexerTest.java | 204 if (!tokenTypesByName.containsKey(expectedToken.tokenName)) { in runTest() 205 Assert.fail("Unknown token: " + expectedToken.tokenName); in runTest() 207 int expectedTokenType = tokenTypesByName.get(expectedToken.tokenName); in runTest() 211 … expectedTokenIndex-1, expectedToken.tokenName, getTokenName(token.getType()), token.getText())); in runTest()
|
/external/jsoncpp/src/lib_json/ |
D | json_reader.cpp | 443 Token tokenName; in readObject() local 448 while (readToken(tokenName)) { in readObject() 450 while (tokenName.type_ == tokenComment && initialTokenOk) in readObject() 451 initialTokenOk = readToken(tokenName); in readObject() 454 if (tokenName.type_ == tokenObjectEnd && name.empty()) // empty object in readObject() 457 if (tokenName.type_ == tokenString) { in readObject() 458 if (!decodeString(tokenName, name)) in readObject() 460 } else if (tokenName.type_ == tokenNumber && features_.allowNumericKeys_) { in readObject() 462 if (!decodeNumber(tokenName, numberName)) in readObject() 494 return addErrorAndRecover("Missing '}' or object member name", tokenName, in readObject() [all …]
|
/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];
|
/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()
|