/external/antlr/tool/src/main/java/org/antlr/tool/ |
D | AssignTokenTypesBehavior.java | 69 if ( currentRuleName==null && grammar.type==Grammar.LEXER ) { in trackString() 89 if ( grammar.type==Grammar.LEXER ) { in trackString() 120 if ( grammar.type==Grammar.LEXER || grammar.type==Grammar.COMBINED ) { in trackTokenRule() 151 if ( grammar.type==Grammar.COMBINED || grammar.type==Grammar.LEXER ) { in trackTokenRule() 265 if ( root.type==Grammar.LEXER ) { in aliasTokenIDsAndLiterals()
|
D | Grammar.java | 147 public static final int LEXER = 1; field in Grammar 175 map(LEXER, LEXER); 176 map(LEXER, PARSER); 177 map(LEXER, COMBINED); 869 (type==Grammar.LEXER && implicitLexer) ) in getRecognizerName() 1596 case Grammar.LEXER : in getDefaultActionScope() 1813 if ( type==LEXER && in defineTokenRefLabel() 1952 if ( type==LEXER ) { in checkAllRulesForUselessLabels() 2043 if ( r!=null && type!=LEXER ) { in referenceRuleLabelPredefinedAttribute() 2119 (type != LEXER && ttype == ANTLRParser.TOKEN_REF); in isAtomTokenType() [all …]
|
D | Rule.java | 187 return Character.isUpperCase(ruleName.charAt(0)) ? Grammar.LEXER : Grammar.PARSER; in getRuleType() 413 if ( grammar.type != Grammar.LEXER && in getElementLabel() 440 if ( grammar.type != Grammar.LEXER && in getElementLabel()
|
D | Interpreter.java | 82 if ( grammar.type!=Grammar.LEXER ) { in nextToken() 131 if ( grammar.type!=Grammar.LEXER ) { in scan()
|
D | GrammarSerializerFoo.java | 172 if ( g.type!=Grammar.LEXER ) { in charLiteral()
|
D | CompositeGrammarTree.java | 148 if ( p.grammar.type == Grammar.LEXER && p.parent!=null && in trimLexerImportsIntoCombined()
|
D | BuildDependencyGenerator.java | 129 String suffix = Grammar.grammarTypeToFileNameSuffix[Grammar.LEXER]; in getGeneratedFileList()
|
D | NFAFactory.java | 198 if ( nfa.grammar.type==Grammar.LEXER ) { in build_StringLiteralAtom() 317 if ( nfa.grammar.type==Grammar.LEXER ) { in build_EOFState()
|
D | GrammarSanity.java | 219 if ( grammar.type!=Grammar.LEXER ) { in checkRuleReference()
|
/external/antlr/tool/src/main/java/org/antlr/analysis/ |
D | LL1Analyzer.java | 177 if ( grammar.type!=Grammar.LEXER && look.member(Label.EOR_TOKEN_TYPE) ) { in LOOK() 185 else if ( grammar.type==Grammar.LEXER && look.member(Label.EOT) ) { in LOOK() 204 if ( grammar.type==Grammar.LEXER ) { in _FIRST() 251 if ( grammar.type!=Grammar.LEXER && tset.member(Label.EOR_TOKEN_TYPE) ) { in _FIRST() 300 if ( grammar.type==Grammar.LEXER ) { in _detectConfoundingPredicates()
|
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/C/ |
D | C.stg | 56 <if(LEXER)> 76 outputFile( LEXER, 197 <if(LEXER)> 201 #undef LEXER 238 #define LEXER ctx->pLexer 239 #define RECOGNIZER LEXER->rec 242 #define GETCHARINDEX() LEXER->getCharIndex(LEXER) 243 #define GETLINE() LEXER->getLine(LEXER) 244 #define GETTEXT() LEXER->getText(LEXER) 245 #define GETCHARPOSITIONINLINE() LEXER->getCharPositionInLine(LEXER) [all …]
|
/external/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ |
D | TreeToNFAConverter.g | 240 if (Rule.getRuleType(currentRuleName) == Grammar.PARSER || grammar.type==Grammar.LEXER) 360 if ( grammar.type==Grammar.LEXER ) { 491 if ( grammar.type==Grammar.LEXER ) 514 if ( grammar.type==Grammar.LEXER ) 580 && grammar.type!=Grammar.LEXER ) 590 if ( grammar.type==Grammar.LEXER ) 611 if ( grammar.type==Grammar.LEXER ) 624 if ( grammar.type==Grammar.LEXER ) 700 if ( grammar.type==Grammar.LEXER ) 720 if ( grammar.type==Grammar.LEXER ) [all …]
|
D | DefineGrammarItemsWalker.g | 91 if (Rule.getRuleType(ruleName) == Grammar.LEXER) { 119 : ^( LEXER_GRAMMAR {grammar.type = Grammar.LEXER;} grammarSpec ) 223 if ( Rule.getRuleType(name) == Grammar.LEXER && grammar.type==Grammar.COMBINED ) 352 // if ( grammar.type!=Grammar.LEXER && grammar.GetOption("output")!=null && blockLevel==1 ) 480 if ( grammar.type!=Grammar.LEXER ) 515 if ( grammar.type == Grammar.LEXER ) 526 if ( grammar.type != Grammar.LEXER ) 535 if ( grammar.type != Grammar.LEXER )
|
D | CodeGenTreeWalker.g | 131 if (grammar.type == Grammar.LEXER) { 172 ….enclosingRuleName.length() > 0 && Rule.getRuleType(elementAST.enclosingRuleName) == Grammar.LEXER) 231 if ( grammar.type == Grammar.LEXER ) 313 if ( g.type!=Grammar.LEXER ) { 443 else if ( grammar.type==Grammar.LEXER ) 457 Rule.getRuleType(currentRuleName) == Grammar.LEXER) ) 486 if ( grammar.type==Grammar.LEXER ) 628 //if ( grammar.type!=Grammar.LEXER ) 805 if ( grammar.type==Grammar.LEXER ) 818 if ( grammar.type==Grammar.LEXER ) [all …]
|
D | ANTLR.g | 63 LEXER='lexer'; 354 Rule.getRuleType(currentRuleName) == Grammar.LEXER) && 443 if ( grammarType == Grammar.LEXER ) 483 …: ( 'lexer' gr='grammar' {grammarType=Grammar.LEXER; grammar.type = Grammar.LEXER;} // pure… 590 if ( grammarType==Grammar.LEXER && $p4==null ) 806 …-> {grammarType == Grammar.COMBINED && Rule.getRuleType(currentRuleName) == Grammar.LEXER}? ^(SYNP… 819 : {Rule.getRuleType(currentRuleName) == Grammar.LEXER}? =>
|
/external/antlr/runtime/Perl5/examples/simplecalc/ |
D | SimpleCalc.g | 22 * LEXER RULES
|
/external/antlr/tool/src/main/java/org/antlr/codegen/ |
D | CodeGenerator.java | 193 if ( debug && grammar.type!=Grammar.LEXER ) { in loadTemplates() 233 if ( debug && grammar.type!=Grammar.LEXER ) { in loadTemplates() 249 else if ( debug && grammar.type!=Grammar.LEXER ) { in loadTemplates() 372 if ( grammar.type==Grammar.LEXER ) { in genRecognizer() 430 if ( grammar.type!=Grammar.LEXER ) { in genRecognizer() 882 if ( grammar.type==Grammar.LEXER ) { in getTokenTypeAsTargetLabel()
|
D | CTarget.java | 91 case Grammar.LEXER: in isValidActionScope()
|
D | Target.java | 129 case Grammar.LEXER : in isValidActionScope()
|
D | CppTarget.java | 122 case Grammar.LEXER: in isValidActionScope()
|
/external/antlr/runtime/Perl5/t/examples/ |
D | simplecalc.t | 34 * LEXER RULES
|
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/ObjC/ |
D | ObjC.stg | 63 className() ::= "<name><!<if(LEXER)>Lexer<else><if(TREE_PARSER)>Tree<endif>Parser<endif>!>" 71 <if(LEXER)> 91 outputFile( LEXER, 138 #import "<name><!<if(LEXER)>Lexer<else><if(TREE_PARSER)>Tree<endif>Parser<endif>!>.h" 163 headerFile( LEXER, 208 <if(LEXER)> 220 lexerHeaderFile( LEXER, 293 <if(LEXER)> 456 parserHeaderFile( LEXER, 487 treeParserHeaderFile( LEXER, [all …]
|
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/Cpp/ |
D | Cpp.stg | 52 <if(LEXER)> 72 outputFile( LEXER, 204 headerFile( LEXER, 238 <if(LEXER)> 410 <if(LEXER)> 420 <if(!LEXER)> 462 <if(LEXER)> 474 <if(LEXER)> 486 <if(LEXER)> 498 <if(LEXER)> [all …]
|
/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime.Test/ |
D | SimpleExpression.g3 | 68 // LEXER
|
D | FastSimpleExpression.g3 | 73 // LEXER
|