/external/antlr/antlr-3.4/runtime/Ruby/test/functional/template-output/ |
template-output.rb | 21 @lexer = grammar_module::Lexer.new( input ) 22 @parser = grammar_module::Parser.new( @lexer, parser_options ) 394 lexer = TreeRewrite::Lexer.new( input ) 395 tokens = ANTLR3::TokenRewriteStream.new( lexer )
|
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Test/SlimParsing/ |
SlimTokenStream.cs | 41 * directly. Every method call counts in the lexer. Java's 415 SlimLexer lexer = _tokenSource as SlimLexer; 416 if ( lexer != null ) 418 SlimStringStream input = lexer.CharStream as SlimStringStream;
|
/external/antlr/antlr-3.4/gunit/src/main/java/org/antlr/gunit/ |
gUnitExecutor.java | 114 /** Set up appropriate path for parser/lexer if using package */ 117 lexerName = grammarInfo.getGrammarPackage()+"."+grammarInfo.getGrammarName()+"Lexer"; 121 lexerName = grammarInfo.getGrammarName()+"Lexer"; 125 // Execute unit test of for parser, lexer and tree grammar 206 // the 2nd condition is used for the assertFAIL test of lexer rule because BooleanTest return err msg instead of 'FAIL' if isLexerTest 232 Class lexer = null; local 239 /** Use Reflection to create instances of lexer and parser */ 240 lexer = classForName(lexerName); 241 Class[] lexArgTypes = new Class[]{CharStream.class}; // assign type to lexer's args 242 Constructor lexConstructor = lexer.getConstructor(lexArgTypes) 308 Class lexer = null; local 440 Class lexer = null; local [all...] |
/external/antlr/antlr-3.4/runtime/C/src/ |
antlr3baserecognizer.c | 3 * Any function can be overridden by a lexer/parser/tree parser or by the 45 * almost completely but are overridden by the parser or tree parser as needed. Lexer overrides 272 pANTLR3_LEXER lexer; local 285 lexer = NULL; 293 lexer = (pANTLR3_LEXER) (recognizer->super); 294 ins = lexer->input; 1921 pANTLR3_LEXER lexer; local 1996 pANTLR3_LEXER lexer; local [all...] |
/external/antlr/antlr-3.4/runtime/Python/tests/ |
t048rewrite.py | 17 lexer = self.getLexer(cStream) 18 tStream = antlr3.TokenRewriteStream(lexer) 419 lexer = self.getLexer(cStream) 420 tStream = antlr3.TokenRewriteStream(lexer)
|
t053hetero.py | 67 lexer = lexerCls(cStream) 68 tStream = antlr3.CommonTokenStream(lexer) 83 lexer = lexerCls(cStream) 84 tStream = antlr3.CommonTokenStream(lexer)
|
t049treeparser.py | 40 lexer = lexerCls(cStream) 41 tStream = antlr3.CommonTokenStream(lexer)
|
t057autoAST.py | 68 lexer = lexerCls(cStream) 69 tStream = antlr3.CommonTokenStream(lexer) 97 lexer = lexerCls(cStream) 98 tStream = antlr3.CommonTokenStream(lexer)
|
t059debug.py | 90 lexer = lexerCls(cStream) 91 tStream = antlr3.CommonTokenStream(lexer)
|
/external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/ |
task.rb | 244 GRAMMAR_TYPES = %w(lexer parser tree combined) 284 if lexer? then base = @name 285 elsif combined? then base = @name + 'Lexer' 328 for target_type in %w( lexer parser tree_parser ) 404 @source =~ /^\s*(lexer|parser|tree)?\s*grammar\s*(\S+)\s*;/ or 474 message << "/^\s*(lexer|parser|tree)?\s*grammar\s*(\S+)\s*;/" 482 message << "/^\s*(lexer|parser|tree)?\s*grammar\s*(\S+)\s*;/"
|
error.rb | 71 # the various reporting methods in Parser and Lexer can be overridden 281 lexer = MissingTokenExample::Lexer.new( "ac" ) # <= notice the missing 'b' 282 tokens = ANTLR3::CommonTokenStream.new( lexer ) 430 lexer grammar EarlyExitDemo; 439 lexer = EarlyExitDemo::Lexer.new( input ) 440 lexer.next_token
|
/external/webkit/Source/JavaScriptCore/parser/ |
Parser.h | 30 #include "Lexer.h" 89 lexicalGlobalObject->globalData().lexer->setIsReparsing();
|
/cts/tools/dasm/src/java_cup/ |
lexer.java | 8 /** This class implements a small scanner (aka lexical analyzer or lexer) for 41 public class lexer { class 48 private lexer() { } method in class:lexer
|
/external/antlr/antlr-3.4/gunit/src/main/antlr3/org/antlr/gunit/swingui/parsers/ |
StGUnit.g | 46 @lexer::header {package org.antlr.gunit.swingui.parsers;}
|
/external/antlr/antlr-3.4/runtime/JavaScript/src/org/antlr/runtime/ |
Token.js | 27 /** In an action, a lexer rule can set token to this SKIP_TOKEN and ANTLR
|
/external/antlr/antlr-3.4/tool/src/main/antlr3/org/antlr/grammar/v3/ |
ActionAnalysis.g | 36 lexer grammar ActionAnalysis;
|
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/ |
BuildDependencyGenerator.java | 127 // add autogenerated lexer; e.g., TLexer.java TLexer.h TLexer.tokens 130 String suffix = Grammar.grammarTypeToFileNameSuffix[Grammar.LEXER]; 131 String lexer = grammar.name + suffix + extST.render(); local 132 files.add(new File(outputDir, lexer));
|
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/Python/ |
ST.stg | 57 '<name>Templates', lexer='angle-bracket'
|
/external/antlr/antlr-3.4/tool/src/test/java/org/antlr/test/ |
TestCommonTokenStream.java | 40 "lexer grammar t;\n"+ 61 "lexer grammar t;\n"+ 82 "lexer grammar t;\n"+ 112 "lexer grammar t;\n"+ 143 "lexer grammar t;\n"+ 172 TokenSource lexer = // simulate input " x =34 ;\n" local 188 tokens[0].setChannel(Lexer.HIDDEN); 189 tokens[2].setChannel(Lexer.HIDDEN); 190 tokens[5].setChannel(Lexer.HIDDEN); 191 tokens[6].setChannel(Lexer.HIDDEN) [all...] |
/external/antlr/antlr-3.4/runtime/ActionScript/project/src/org/antlr/runtime/ |
RecognizerSharedState.as | 55 // LEXER FIELDS (must be in same state object to avoid casting 56 // constantly in generated code and Lexer object) :( 59 /** The goal of all lexer rules/methods is to create a token object. 62 * matching lexer rule(s). If you subclass to allow multiple token
|
/external/antlr/antlr-3.4/runtime/Perl5/t/lib/ANTLR/Runtime/ |
Test.pm | 61 if ($grammar =~ /^(?:(?:lexer|parser|tree)\s+)? grammar \s+ (\w+)/xms) {
|
/external/antlr/antlr-3.4/runtime/Ruby/test/functional/ast-output/ |
hetero-nodes.rb | 595 lexer = grammar_module::Lexer.new( input ) 596 tokens = ANTLR3::CommonTokenStream.new( lexer ) 607 lexer = grammar_module::Lexer.new( input ) 608 tokens = ANTLR3::CommonTokenStream.new( lexer )
|
/external/antlr/antlr-3.4/runtime/Ruby/test/functional/debugging/ |
debug-mode.rb | 77 lexer = grammar_module::Lexer.new( input ) 78 tokens = ANTLR3::CommonTokenStream.new( lexer )
|
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/Ruby/ |
Ruby.stg | 18 outputFile(LEXER, PARSER, TREE_PARSER, actionScope, actions, docComment, recognizer, name, 325 <if(TREE_PARSER)>TreeParser<elseif(PARSER)>Parser<else>Lexer<endif> 673 <if(!LEXER)> 680 <if(LEXER)> 797 * error can be generated). This is used only in the lexer so 873 * The <name> attribute is inherited via the parser, lexer, ... [all...] |
/external/webkit/Source/JavaScriptCore/runtime/ |
Lookup.h | 89 intptr_t lexerValue() const { ASSERT(!m_attributes); return m_u.lexer.value; } 117 } lexer; member in union:JSC::HashEntry::__anon15936
|