Home
last modified time | relevance | path

Searched refs:tokenName (Results 1 – 25 of 44) sorted by relevance

12

/external/antlr/runtime/Java/src/main/java/org/antlr/runtime/
DBaseRecognizer.java223 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/CSharp3/Sources/Antlr3.Runtime/
DBaseRecognizer.cs281 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/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/
DBaseRecognizer.cs254 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/
DBaseRecognizer.js295 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/
DGrammarNonDeterminismMessage.java78 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()
DGrammarUnreachableAltsMessage.java71 String tokenName = in toString() local
75 probe.dfa.nfa.grammar.getRuleStartState(tokenName); in toString()
78 st.add("tokens", tokenName); in toString()
DInterp.java119 String tokenName = tk.nextToken(); in main() local
120 tokens.setTokenTypeChannel(lexer.getTokenType(tokenName), 99); in main()
/external/antlr/runtime/Python/antlr3/
Drecognizers.py322 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 …]
Dtreewizard.py242 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/
DTreePatternParser.cs126 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/CSharp3/Sources/Antlr3.Runtime/Tree/
DTreePatternParser.cs148 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/Java/src/main/java/org/antlr/runtime/tree/
DTreePatternParser.java125 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/
Drecognizers.py322 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 …]
Dtreewizard.py242 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/
DexpectedTokensTestGrammar.g84 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/
DLexerTest.java188 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/
DSmaliLexicalElementType.java41 …protected SmaliLexicalElementType(int tokenId, String tokenName, TextAttributesKey textAttributesK… in SmaliLexicalElementType() argument
42 super(tokenName, SmaliLanguage.INSTANCE); in SmaliLexicalElementType()
DSmaliTokens.java287 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/angle/third_party/jsoncpp/source/src/lib_json/
Djson_reader.cpp453 Token tokenName; in readObject() local
458 while (readToken(tokenName)) { in readObject()
460 while (tokenName.type_ == tokenComment && initialTokenOk) in readObject()
461 initialTokenOk = readToken(tokenName); in readObject()
464 if (tokenName.type_ == tokenObjectEnd && name.empty()) // empty object in readObject()
467 if (tokenName.type_ == tokenString) { in readObject()
468 if (!decodeString(tokenName, name)) in readObject()
470 } else if (tokenName.type_ == tokenNumber && features_.allowNumericKeys_) { in readObject()
472 if (!decodeNumber(tokenName, numberName)) in readObject()
504 return addErrorAndRecover("Missing '}' or object member name", tokenName, in readObject()
[all …]
/external/jsoncpp/src/lib_json/
Djson_reader.cpp407 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/
DGrammarLetterGenerator.java14 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/
DTreePatternParser.m164 NSString *tokenName = [tokenizer toString];
166 if ( [tokenName isEqualToString:@"nil"] ) {
169 NSString *text = tokenName;
179 int treeNodeType = [wizard getTokenType:tokenName];
DBaseRecognizer.m357 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/
DBaseRecognizer.as199 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/
DTestSymbolDefinitions.java888 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()

12