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

12

/external/smali/smali/src/test/antlr/org/jf/smali/
H A 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/smalidea/src/main/java/org/jf/smalidea/
H A DSmaliLexicalElementType.java41 protected SmaliLexicalElementType(int tokenId, String tokenName, TextAttributesKey textAttributesKey) { argument
42 super(tokenName, SmaliLanguage.INSTANCE);
H A DSmaliTokens.java285 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 DGrammarUnreachableAltsMessage.java70 String tokenName =
74 probe.dfa.nfa.grammar.getRuleStartState(tokenName);
77 st.add("tokens", tokenName);
H A DGrammarNonDeterminismMessage.java78 String tokenName =
82 probe.dfa.nfa.grammar.getRuleStartState(tokenName);
85 st.add("disabled", tokenName);
114 String tokenName =
116 st.add("conflictingTokens", tokenName);
H A DInterp.java117 String tokenName = tk.nextToken();
118 tokens.setTokenTypeChannel(lexer.getTokenType(tokenName), 99);
H A DRule.java324 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 DTreePatternParser.cs126 string tokenName = tokenizer.sval.ToString();
128 if (tokenName.Equals("nil")) {
131 string text = tokenName;
141 int treeNodeType = wizard.GetTokenType(tokenName);
H A DTreeWizard.cs192 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 DTreePatternParser.cs148 string tokenName = tokenizer.sval.ToString();
150 if ( tokenName.Equals( "nil" ) )
154 string text = tokenName;
165 int treeNodeType = wizard.GetTokenType( tokenName );
H A DTreeWizard.cs217 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 DBaseRecognizer.java223 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 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
[all...]
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/
H A DBaseRecognizer.cs254 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 DBaseRecognizer.cs279 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 DTreePatternParser.java125 String tokenName = tokenizer.sval.toString();
127 if ( tokenName.equals("nil") ) {
130 String text = tokenName;
140 int treeNodeType = wizard.getTokenType(tokenName);
H A DTreeWizard.java156 public int getTokenType(String tokenName) { argument
160 Integer ttypeI = (Integer)tokenNameToTypeMap.get(tokenName);
/external/smali/smali/src/test/java/org/jf/smali/
H A DLexerTest.java188 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 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
[all...]
H A Dtreewizard.py242 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 Djson_reader.cpp407 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 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
[all...]
/external/antlr/antlr-3.4/tool/src/test/java/org/antlr/test/
H A DTestSymbolDefinitions.java886 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 DCodeGenerator.java829 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 DANTLRTreeWizard.h112 - (NSInteger)getTokenType:(NSString *)tokenName;

Completed in 397 milliseconds

12