/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/Python/ |
Python.stg | 47 outputFile(LEXER,PARSER,TREE_PARSER, actionScope, actions, 82 <if(LEXER)> 88 main = ParserMain("<recognizer.grammar.name>Lexer", <recognizer.name>)<\n> 107 lexer(grammar, name, tokens, scopes, rules, numRules, filterMode, 108 labelType="CommonToken", superClass="Lexer") ::= << 139 <actions.lexer.init> 142 <actions.lexer.members> 157 /** A override of Lexer.nextToken() that backtracks over mTokens() looking 203 # is Lexer always superclass? 559 /** How to generate a rule in the lexer; naked blocks are used fo [all...] |
/external/antlr/antlr-3.4/tool/src/main/antlr3/org/antlr/grammar/v3/ |
ANTLR.g | 62 LEXER='lexer'; 111 @lexer::header { 126 @lexer::members { 330 // if they want backtracking and it's not a lexer rule in combined grammar 338 Rule.getRuleType(currentRuleName) == Grammar.LEXER) && 427 if ( grammarType == Grammar.LEXER ) 467 : ( 'lexer' gr='grammar' {grammarType=Grammar.LEXER; grammar.type = Grammar.LEXER;} // pure lexe [all...] |
ANTLRv3.g | 39 LEXER; 83 @lexer::header 94 ( 'lexer' {gtype=LEXER_GRAMMAR;} // pure lexer 97 | {gtype=COMBINED_GRAMMAR;} // merged parser/lexer 133 | l='lexer' -> ID[$l] 303 // Args are only valid for lexer rules 329 // if lexer rule in combined, leave as pred for lexer
|
ActionTranslator.g | 28 lexer grammar ActionTranslator; 285 * If in lexer grammar, only translate for strings and tokens (rule refs) 292 (grammar.type!=Grammar.LEXER || 433 /** $tokenref in a non-lexer grammar */ 435 : '$' ID {grammar.type!=Grammar.LEXER && enclosingRule!=null && isTokenRefInAlt($ID.text)}? 453 /** $lexerruleref from within the lexer */ 455 : '$' ID {grammar.type==Grammar.LEXER &&
|
/external/antlr/antlr-3.4/gunit/src/main/antlr3/org/antlr/gunit/swingui/parsers/ |
ANTLRv3.g | 40 LEXER; 89 @lexer::header { 96 ( 'lexer' {gtype=LEXER_GRAMMAR;} // pure lexer 99 | {gtype=COMBINED_GRAMMAR;} // merged parser/lexer 135 | l='lexer' -> ID[$l] 300 // if lexer rule in combined, leave as pred for lexer 314 // Args are only valid for lexer rules
|
/external/antlr/antlr-3.4/runtime/ActionScript/project/src/org/antlr/runtime/ |
DFA.as | 12 * lexer's Tokens rule DFA has 326 states roughly.
|
/external/antlr/antlr-3.4/runtime/Python/antlr3/ |
recognizers.py | 91 # LEXER FIELDS (must be in same state object to avoid casting 92 # constantly in generated code and Lexer object) :( 95 ## The goal of all lexer rules/methods is to create a token object. 98 # matching lexer rule(s). If you subclass to allow multiple token 131 lexer, parser, and tree grammars. This is all the parsing 156 ## State of a lexer, parser, or tree parser are collected into a state 403 Get number of recognition errors (lexer, parser, tree parser). Each 404 recognizer tracks its own number. So parser and lexer each have 431 your token objects because you don't have to go modify your lexer 777 If you change what tokens must be created by the lexer, [all...] |
/external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/ |
token.rb | 54 starting at zero. For example, the 22nd token pulled from a lexer by 225 general utility. Thus code generated for a standard combo lexer-parser grammar 444 grammar, ANTLR will add a lexer rule for the literal and give the token a name
|
/external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/tree/ |
wizard.rb | 187 lexer = PatternLexer.new( pattern ) 188 new( lexer, token_scheme, adaptor ).pattern
|
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/tool/templates/messages/languages/ |
en.stg | 59 problems creating lexer rule listing all tokens: <exception> 100 "lexer rule <arg> not allowed in parser" 102 "parser rule <arg> not allowed in lexer" 106 "no lexer rule corresponding to token: <arg>" 110 "literal has no associated lexer rule: <arg>" 112 "literals are illegal in lexer tokens{} section: <arg>" 222 "no lexer rules contributed to <arg> from imported grammar <arg2>"
|
/packages/apps/Calculator/ |
arity-2.1.2.jar | |
/external/antlr/antlr-3.4/runtime/Delphi/Sources/Antlr3.Runtime/ |
Antlr.Runtime.pas | 83 /// The Lexer tracks line/col info as well as input index so its markers are 180 /// pass the buck all the way to the lexer who can ask its input stream 186 /// <summary>A source of characters for an ANTLR lexer </summary> 199 /// LA(I). This will be used for labels in the generated lexer code. 280 /// Errors from the lexer are never passed to the parser. Either you want 582 // Lexer Specific Members 583 // LEXER FIELDS (must be in same state object to avoid casting 584 // constantly in generated code and Lexer object) :( 587 /// Token object normally returned by NextToken() after matching lexer rules. 590 /// The goal of all lexer rules/methods is to create a token object [all...] |
/external/antlr/antlr-3.4/runtime/Perl5/lib/ANTLR/Runtime/ |
BaseRecognizer.pm | 33 # State of a lexer, parser, or tree parser are collected into a state 615 lexer, parser, and tree grammars. This is all the parsing
|
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/ActionScript/ |
ActionScript.stg | 41 outputFile(LEXER,PARSER,TREE_PARSER, actionScope, actions, 64 lexer(grammar, name, tokens, scopes, rules, numRules, labelType="Token", 65 filterMode, superClass="Lexer") ::= << 69 <actions.lexer.members> 107 /** A override of Lexer.nextToken() that backtracks over mTokens() looking 442 /** How to generate a rule in the lexer; naked blocks are used for 479 /** How to generate code for the implicitly-defined lexer grammar rule 480 * that chooses between lexer rules. 661 <if(LEXER)> 670 <if(!LEXER)> [all...] |
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/CPP/ |
CPP.stg | 42 // What we generate lexer/parser/treeparser, used a suffix in a few places 44 <if(LEXER)>Lexer<endif><if(PARSER)>Parser<endif><if(TREE_PARSER)>TreeParser<endif> 55 <if(LEXER)> 56 * - for the lexer : <name><\n> 84 outputFile(LEXER,PARSER,TREE_PARSER, actionScope, actions, 115 class <name> : public antlr3::Lexer\<StreamType,TokenType,TokenBuilder> { 136 <actions.lexer.members> 139 : antlr3::Lexer\<StreamType,TokenType,TokenBuilder>(input) 157 headerFile( LEXER, [all...] |
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/Java/ |
Java.stg | 54 outputFile(LEXER,PARSER,TREE_PARSER, actionScope, actions, 84 lexer(grammar, name, tokens, scopes, rules, numRules, filterMode, labelType="CommonToken", 85 superClass="Lexer") ::= << 89 <actions.lexer.members> 134 /** A override of Lexer.nextToken() that backtracks over mTokens() looking 496 /** How to generate a rule in the lexer; naked blocks are used for 534 /** How to generate code for the implicitly-defined lexer grammar rule 535 * that chooses between lexer rules. 718 <if(LEXER)> 727 <if(!LEXER)> [all...] |
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/Perl5/ |
Perl5.stg | 35 outputFile(LEXER,PARSER,TREE_PARSER, actionScope, actions, 57 lexer(grammar, name, tokens, scopes, rules, numRules, labelType="Token", 58 filterMode, superClass="ANTLR::Runtime::Lexer") ::= << 72 extends 'ANTLR::Runtime::Lexer'; 81 <actions.lexer.members> 127 /** A override of Lexer.nextToken() that backtracks over mTokens() looking 469 /** How to generate a rule in the lexer; naked blocks are used for 508 /** How to generate code for the implicitly-defined lexer grammar rule 509 * that chooses between lexer rules. 694 <if(LEXER)> [all...] |
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/Scala/ |
Scala.stg | 45 outputFile(LEXER,PARSER,TREE_PARSER, actionScope, actions, 67 lexer(grammar, name, tokens, scopes, rules, numRules, filterMode, labelType="CommonToken", 68 superClass="Lexer") ::= << 77 <actions.lexer.members> 115 /** A override of Lexer.nextToken() that backtracks over mTokens() looking 474 /** How to generate a rule in the lexer; naked blocks are used for 512 /** How to generate code for the implicitly-defined lexer grammar rule 513 * that chooses between lexer rules. 700 <if(LEXER)> 709 <if(!LEXER)> [all...] |
/external/antlr/antlr-3.4/lib/ |
antlr-3.4-complete.jar | |
/prebuilts/misc/common/antlr/ |
antlr-3.4-complete.jar | |
/external/webkit/Source/JavaScriptCore/parser/ |
JSParser.cpp | 73 JSParser(Lexer*, JSGlobalData*, FunctionParameters*, bool isStrictContext, bool isFunction, SourceProvider*); 101 void next(Lexer::LexType lexType = Lexer::IdentifyReservedWords) 248 Lexer* m_lexer; 615 JSParser parser(globalData->lexer, globalData, parameters, strictness == JSParseStrict, parserMode == JSParseFunctionCode, source->provider()); 619 JSParser::JSParser(Lexer* lexer, JSGlobalData* globalData, FunctionParameters* parameters, bool inStrictContext, bool isFunction, SourceProvider* provider) 620 : m_lexer(lexer) [all...] |
ASTBuilder.h | 76 ASTBuilder(JSGlobalData* globalData, Lexer* lexer) 78 , m_lexer(lexer) 632 Lexer* m_lexer; [all...] |
/dalvik/docs/ |
prettify.js | 20 * The lexer should work on a number of languages including C and friends, 837 // Recurse using the non-markup lexer [all...] |
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/CSharp2/ |
CSharp2.stg | 43 outputFile( LEXER,PARSER,TREE_PARSER, actionScope, actions, 102 lexer(grammar, name, tokens, scopes, rules, numRules, filterMode, labelType="CommonToken", 103 superClass={<if(actions.(actionScope).superClass)><actions.(actionScope).superClass><else>Antlr.Runtime.Lexer<endif>}) ::= << 110 <actions.lexer.members> 199 /** A override of Lexer.nextToken() that backtracks over mTokens() looking 675 /** How to generate a rule in the lexer; naked blocks are used for 726 /** How to generate code for the implicitly-defined lexer grammar rule 727 * that chooses between lexer rules. 949 <if(!LEXER)>state.errorRecovery=false;<endif><if(backtracking)>state.failed=false;<endif> 957 <if(LEXER)> [all...] |
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/CSharp3/ |
CSharp3.stg | 44 outputFile( LEXER,PARSER,TREE_PARSER, actionScope, actions, 100 lexer(grammar, name, tokens, scopes, rules, numRules, filterMode, labelType="CommonToken", 101 superClass={<if(actions.(actionScope).superClass)><actions.(actionScope).superClass><else>Antlr.Runtime.Lexer<endif>}, 109 <actions.lexer.members> 194 /** A override of Lexer.nextToken() that backtracks over mTokens() looking 653 /** How to generate a rule in the lexer; naked blocks are used for 702 /** How to generate code for the implicitly-defined lexer grammar rule 703 * that chooses between lexer rules. 929 <if(!LEXER)>state.errorRecovery=false;<endif><if(backtracking)>state.failed=false;<endif> 937 <if(LEXER)> [all...] |