Home
last modified time | relevance | path

Searched refs:LEXER (Results 1 – 25 of 45) sorted by relevance

12

/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/
DAssignTokenTypesBehavior.java70 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()
DGrammar.java104 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 …]
DRule.java181 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()
DInterpreter.java80 if ( grammar.type!=Grammar.LEXER ) { in nextToken()
129 if ( grammar.type!=Grammar.LEXER ) { in scan()
DGrammarSerializerFoo.java174 if ( g.type!=Grammar.LEXER ) { in charLiteral()
DCompositeGrammarTree.java148 if ( p.grammar.type == Grammar.LEXER && p.parent!=null && in trimLexerImportsIntoCombined()
DBuildDependencyGenerator.java130 String suffix = Grammar.grammarTypeToFileNameSuffix[Grammar.LEXER]; in getGeneratedFileList()
DNFAFactory.java198 if ( nfa.grammar.type==Grammar.LEXER ) { in build_StringLiteralAtom()
318 if ( nfa.grammar.type==Grammar.LEXER ) { in build_EOFState()
DGrammarSanity.java219 if ( grammar.type!=Grammar.LEXER ) { in checkRuleReference()
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/analysis/
DLL1Analyzer.java177 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/
DC.stg56 <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/
DTreeToNFAConverter.g239 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 …]
DDefineGrammarItemsWalker.g90 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 )
DCodeGenTreeWalker.g130 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 …]
DANTLR.g62 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/
DSimpleCalc.g22 * LEXER RULES
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/codegen/
DCodeGenerator.java199 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()
DCTarget.java90 case Grammar.LEXER: in isValidActionScope()
DTarget.java125 case Grammar.LEXER : in isValidActionScope()
/external/antlr/antlr-3.4/runtime/Perl5/t/examples/
Dsimplecalc.t34 * LEXER RULES
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/ObjC/
DObjC.stg52 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/
DFastSimpleExpression.g371 // LEXER
DSimpleExpression.g368 // LEXER
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/CPP/
DCPP.stg44 <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/
DRecognizerSharedState.as55 // LEXER FIELDS (must be in same state object to avoid casting

12