/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/ |
D | AssignTokenTypesBehavior.java | 70 if ( currentRuleName==null && grammar.type==Grammar.LEXER ) { in trackString() 90 if ( grammar.type==Grammar.LEXER ) { in trackString() 121 if ( grammar.type==Grammar.LEXER || grammar.type==Grammar.COMBINED ) { in trackTokenRule() 152 if ( grammar.type==Grammar.COMBINED || grammar.type==Grammar.LEXER ) { in trackTokenRule() 267 if ( root.type==Grammar.LEXER ) { in aliasTokenIDsAndLiterals()
|
D | Grammar.java | 104 public static final int LEXER = 1; field in Grammar 132 map(LEXER, LEXER); 133 map(LEXER, PARSER); 134 map(LEXER, COMBINED); 828 (type==Grammar.LEXER && implicitLexer) ) in getRecognizerName() 1555 case Grammar.LEXER : in getDefaultActionScope() 1772 if ( type==LEXER && in defineTokenRefLabel() 1912 if ( type==LEXER ) { in checkAllRulesForUselessLabels() 2005 if ( r!=null && type!=LEXER ) { in referenceRuleLabelPredefinedAttribute() 2074 (type != LEXER && ttype == ANTLRParser.TOKEN_REF); in isAtomTokenType() [all …]
|
D | Rule.java | 181 return Character.isUpperCase(ruleName.charAt(0)) ? Grammar.LEXER : Grammar.PARSER; in getRuleType() 407 if ( grammar.type != Grammar.LEXER && in getElementLabel() 434 if ( grammar.type != Grammar.LEXER && in getElementLabel()
|
D | Interpreter.java | 80 if ( grammar.type!=Grammar.LEXER ) { in nextToken() 129 if ( grammar.type!=Grammar.LEXER ) { in scan()
|
D | GrammarSerializerFoo.java | 174 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 | 130 String suffix = Grammar.grammarTypeToFileNameSuffix[Grammar.LEXER]; in getGeneratedFileList()
|
D | NFAFactory.java | 198 if ( nfa.grammar.type==Grammar.LEXER ) { in build_StringLiteralAtom() 318 if ( nfa.grammar.type==Grammar.LEXER ) { in build_EOFState()
|
D | GrammarSanity.java | 219 if ( grammar.type!=Grammar.LEXER ) { in checkRuleReference()
|
/external/antlr/antlr-3.4/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/antlr-3.4/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/antlr-3.4/tool/src/main/antlr3/org/antlr/grammar/v3/ |
D | TreeToNFAConverter.g | 239 if (Rule.getRuleType(currentRuleName) == Grammar.PARSER || grammar.type==Grammar.LEXER) 359 if ( grammar.type==Grammar.LEXER ) { 490 if ( grammar.type==Grammar.LEXER ) 513 if ( grammar.type==Grammar.LEXER ) 579 && grammar.type!=Grammar.LEXER ) 589 if ( grammar.type==Grammar.LEXER ) 610 if ( grammar.type==Grammar.LEXER ) 623 if ( grammar.type==Grammar.LEXER ) 699 if ( grammar.type==Grammar.LEXER ) 719 if ( grammar.type==Grammar.LEXER ) [all …]
|
D | DefineGrammarItemsWalker.g | 90 if (Rule.getRuleType(ruleName) == Grammar.LEXER) { 118 : ^( LEXER_GRAMMAR {grammar.type = Grammar.LEXER;} grammarSpec ) 222 if ( Rule.getRuleType(name) == Grammar.LEXER && grammar.type==Grammar.COMBINED ) 351 // if ( grammar.type!=Grammar.LEXER && grammar.GetOption("output")!=null && blockLevel==1 ) 479 if ( grammar.type!=Grammar.LEXER ) 514 if ( grammar.type == Grammar.LEXER ) 525 if ( grammar.type != Grammar.LEXER ) 534 if ( grammar.type != Grammar.LEXER )
|
D | CodeGenTreeWalker.g | 130 if (grammar.type == Grammar.LEXER) { 171 ….enclosingRuleName.length() > 0 && Rule.getRuleType(elementAST.enclosingRuleName) == Grammar.LEXER) 230 if ( grammar.type == Grammar.LEXER ) 312 if ( g.type!=Grammar.LEXER ) { 442 else if ( grammar.type==Grammar.LEXER ) 456 Rule.getRuleType(currentRuleName) == Grammar.LEXER) ) 485 if ( grammar.type==Grammar.LEXER ) 627 //if ( grammar.type!=Grammar.LEXER ) 804 if ( grammar.type==Grammar.LEXER ) 817 if ( grammar.type==Grammar.LEXER ) [all …]
|
D | ANTLR.g | 62 LEXER='lexer'; 338 Rule.getRuleType(currentRuleName) == Grammar.LEXER) && 427 if ( grammarType == Grammar.LEXER ) 467 …: ( 'lexer' gr='grammar' {grammarType=Grammar.LEXER; grammar.type = Grammar.LEXER;} // pure… 574 if ( grammarType==Grammar.LEXER && $p4==null ) 790 …-> {grammarType == Grammar.COMBINED && Rule.getRuleType(currentRuleName) == Grammar.LEXER}? ^(SYNP…
|
/external/antlr/antlr-3.4/runtime/Perl5/examples/simplecalc/ |
D | SimpleCalc.g | 22 * LEXER RULES
|
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/codegen/ |
D | CodeGenerator.java | 199 if ( debug && grammar.type!=Grammar.LEXER ) { in loadTemplates() 239 if ( debug && grammar.type!=Grammar.LEXER ) { in loadTemplates() 255 else if ( debug && grammar.type!=Grammar.LEXER ) { in loadTemplates() 378 if ( grammar.type==Grammar.LEXER ) { in genRecognizer() 436 if ( grammar.type!=Grammar.LEXER ) { in genRecognizer() 848 if ( grammar.type==Grammar.LEXER ) { in getTokenTypeAsTargetLabel()
|
D | CTarget.java | 90 case Grammar.LEXER: in isValidActionScope()
|
D | Target.java | 125 case Grammar.LEXER : in isValidActionScope()
|
/external/antlr/antlr-3.4/runtime/Perl5/t/examples/ |
D | simplecalc.t | 34 * LEXER RULES
|
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/ObjC/ |
D | ObjC.stg | 52 className() ::= "<name><!<if(LEXER)>Lexer<else><if(TREE_PARSER)>Tree<endif>Parser<endif>!>" 60 <if(LEXER)> 80 outputFile( LEXER, 127 #import "<name><!<if(LEXER)>Lexer<else><if(TREE_PARSER)>Tree<endif>Parser<endif>!>.h" 152 headerFile( LEXER, 197 <if(LEXER)> 209 lexerHeaderFile( LEXER, 279 <if(LEXER)> 442 parserHeaderFile( LEXER, 473 treeParserHeaderFile( LEXER, [all …]
|
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Test/ |
D | FastSimpleExpression.g3 | 71 // LEXER
|
D | SimpleExpression.g3 | 68 // LEXER
|
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/CPP/ |
D | CPP.stg | 44 <if(LEXER)>Lexer<endif><if(PARSER)>Parser<endif><if(TREE_PARSER)>TreeParser<endif> 55 <if(LEXER)> 84 outputFile(LEXER,PARSER,TREE_PARSER, actionScope, actions, 157 headerFile( LEXER, 193 <if(LEXER)> 737 <if(!LEXER)> 747 <if(LEXER)> 797 tokenid_type() ::= "<if(LEXER)>char_type<else>tokenid_type<endif>"
|
/external/antlr/antlr-3.4/runtime/ActionScript/project/src/org/antlr/runtime/ |
D | RecognizerSharedState.as | 55 // LEXER FIELDS (must be in same state object to avoid casting
|