/external/smali/smali/src/test/antlr/org/jf/smali/ |
H A 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/smalidea/src/main/java/org/jf/smalidea/ |
H A D | SmaliLexicalElementType.java | 41 protected SmaliLexicalElementType(int tokenId, String tokenName, TextAttributesKey textAttributesKey) { argument 42 super(tokenName, SmaliLanguage.INSTANCE);
|
H A 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, textAttributesKey);
|
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/ |
H A D | GrammarUnreachableAltsMessage.java | 70 String tokenName = 74 probe.dfa.nfa.grammar.getRuleStartState(tokenName); 77 st.add("tokens", tokenName);
|
H A D | GrammarNonDeterminismMessage.java | 78 String tokenName = 82 probe.dfa.nfa.grammar.getRuleStartState(tokenName); 85 st.add("disabled", tokenName); 114 String tokenName = 116 st.add("conflictingTokens", tokenName);
|
H A D | Interp.java | 117 String tokenName = tk.nextToken(); 118 tokens.setTokenTypeChannel(lexer.getTokenType(tokenName), 99);
|
H A D | Rule.java | 324 for (String tokenName : m.keySet()) { 326 int ttype = grammar.getTokenType(tokenName);
|
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Tree/ |
H A D | TreePatternParser.cs | 126 string tokenName = tokenizer.sval.ToString(); 128 if (tokenName.Equals("nil")) { 131 string text = tokenName; 141 int treeNodeType = wizard.GetTokenType(tokenName);
|
H A D | TreeWizard.cs | 192 public virtual int GetTokenType(string tokenName) { argument 198 if (tokenNameToTypeMap.TryGetValue(tokenName, out value))
|
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/Tree/ |
H A D | TreePatternParser.cs | 148 string tokenName = tokenizer.sval.ToString(); 150 if ( tokenName.Equals( "nil" ) ) 154 string text = tokenName; 165 int treeNodeType = wizard.GetTokenType( tokenName );
|
H A D | TreeWizard.cs | 217 public virtual int GetTokenType( string tokenName ) 225 if ( tokenNameToTypeMap.TryGetValue( tokenName, out value ) )
|
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/ |
H A D | BaseRecognizer.java | 223 String tokenName="<unknown>"; 225 tokenName = "EOF"; 228 tokenName = tokenNames[ute.expecting]; 231 " expecting "+tokenName; 235 String tokenName="<unknown>"; 237 tokenName = "EOF"; 240 tokenName = tokenNames[mte.expecting]; 242 msg = "missing "+tokenName+" at "+getTokenErrorDisplay(e.token); 246 String tokenName="<unknown>"; 248 tokenName [all...] |
/external/antlr/antlr-3.4/runtime/JavaScript/src/org/antlr/runtime/ |
H A 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 [all...] |
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/ |
H A D | BaseRecognizer.cs | 254 string tokenName = "<unknown>"; 256 tokenName = "EndOfFile"; 258 tokenName = tokenNames[ute.Expecting]; 261 " expecting " + tokenName; 264 string tokenName = "<unknown>"; 266 tokenName = "EndOfFile"; 268 tokenName = tokenNames[mte.Expecting]; 270 msg = "missing " + tokenName + " at " + GetTokenErrorDisplay(e.Token); 273 string tokenName = "<unknown>"; 275 tokenName [all...] |
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/ |
H A D | BaseRecognizer.cs | 279 string tokenName = "<unknown>"; 282 tokenName = "EndOfFile"; 286 tokenName = tokenNames[ute.Expecting]; 289 " expecting " + tokenName; 294 string tokenName = "<unknown>"; 297 tokenName = "EndOfFile"; 301 tokenName = tokenNames[mte.Expecting]; 303 msg = "missing " + tokenName + " at " + GetTokenErrorDisplay( e.Token ); 308 string tokenName = "<unknown>"; 311 tokenName [all...] |
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/tree/ |
H A D | TreePatternParser.java | 125 String tokenName = tokenizer.sval.toString(); 127 if ( tokenName.equals("nil") ) { 130 String text = tokenName; 140 int treeNodeType = wizard.getTokenType(tokenName);
|
H A D | TreeWizard.java | 156 public int getTokenType(String tokenName) { argument 160 Integer ttypeI = (Integer)tokenNameToTypeMap.get(tokenName);
|
/external/smali/smali/src/test/java/org/jf/smali/ |
H A D | LexerTest.java | 188 if (!tokenTypesByName.containsKey(expectedToken.tokenName)) { 189 Assert.fail("Unknown token: " + expectedToken.tokenName); 191 int expectedTokenType = tokenTypesByName.get(expectedToken.tokenName); 195 expectedTokenIndex-1, expectedToken.tokenName, getTokenName(token.getType()), token.getText()));
|
/external/antlr/antlr-3.4/runtime/Python/antlr3/ |
H A 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 [all...] |
H A 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): 343 return self.tokenNameToTypeMap[tokenName]
|
/external/jsoncpp/src/lib_json/ |
H A D | json_reader.cpp | 407 Token tokenName; local 411 while (readToken(tokenName)) { 413 while (tokenName.type_ == tokenComment && initialTokenOk) 414 initialTokenOk = readToken(tokenName); 417 if (tokenName.type_ == tokenObjectEnd && name.empty()) // empty object 420 if (tokenName.type_ == tokenString) { 421 if (!decodeString(tokenName, name)) 423 } else if (tokenName.type_ == tokenNumber && features_.allowNumericKeys_) { 425 if (!decodeNumber(tokenName, numberName)) 458 "Missing '}' or object member name", tokenName, tokenObjectEn [all...] |
/external/antlr/antlr-3.4/runtime/ActionScript/project/src/org/antlr/runtime/ |
H A 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 [all...] |
/external/antlr/antlr-3.4/tool/src/test/java/org/antlr/test/ |
H A D | TestSymbolDefinitions.java | 886 String tokenName = st.nextToken(); 887 assertTrue("token "+tokenName+" expected", 888 g.getTokenType(tokenName)!=Label.INVALID); 889 tokens.remove(tokenName); 893 String tokenName = (String) iter.next(); 894 assertTrue("unexpected token name "+tokenName, 895 g.getTokenType(tokenName)<Label.MIN_TOKEN_TYPE);
|
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/codegen/ |
H A D | CodeGenerator.java | 829 String tokenName = grammar.getTokenDisplayName(t); 830 if ( tokenName!=null ) { 831 tokenName=target.getTargetStringLiteralFromString(tokenName, true); 832 code.add("tokenNames", tokenName);
|
/external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Headers/ |
H A D | ANTLRTreeWizard.h | 112 - (NSInteger)getTokenType:(NSString *)tokenName;
|