Home
last modified time | relevance | path

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

12

/external/antlr/tool/src/main/java/org/antlr/tool/
DAssignTokenTypesBehavior.java69 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()
DGrammar.java147 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 …]
DRule.java187 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()
DInterpreter.java82 if ( grammar.type!=Grammar.LEXER ) { in nextToken()
131 if ( grammar.type!=Grammar.LEXER ) { in scan()
DGrammarSerializerFoo.java172 if ( g.type!=Grammar.LEXER ) { in charLiteral()
DCompositeGrammarTree.java148 if ( p.grammar.type == Grammar.LEXER && p.parent!=null && in trimLexerImportsIntoCombined()
DBuildDependencyGenerator.java129 String suffix = Grammar.grammarTypeToFileNameSuffix[Grammar.LEXER]; in getGeneratedFileList()
DNFAFactory.java198 if ( nfa.grammar.type==Grammar.LEXER ) { in build_StringLiteralAtom()
317 if ( nfa.grammar.type==Grammar.LEXER ) { in build_EOFState()
DGrammarSanity.java219 if ( grammar.type!=Grammar.LEXER ) { in checkRuleReference()
/external/antlr/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/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/tool/src/main/antlr3/org/antlr/grammar/v3/
DTreeToNFAConverter.g240 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 …]
DDefineGrammarItemsWalker.g91 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 )
DCodeGenTreeWalker.g131 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 …]
DANTLR.g63 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/
DSimpleCalc.g22 * LEXER RULES
/external/antlr/tool/src/main/java/org/antlr/codegen/
DCodeGenerator.java193 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()
DCTarget.java91 case Grammar.LEXER: in isValidActionScope()
DTarget.java129 case Grammar.LEXER : in isValidActionScope()
DCppTarget.java122 case Grammar.LEXER: in isValidActionScope()
/external/antlr/runtime/Perl5/t/examples/
Dsimplecalc.t34 * LEXER RULES
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/ObjC/
DObjC.stg63 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/
DCpp.stg52 <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/
DSimpleExpression.g368 // LEXER
DFastSimpleExpression.g373 // LEXER

12