HomeSort by relevance Sort by last modified time
    Searched refs:lexer (Results 201 - 225 of 318) sorted by null

1 2 3 4 5 6 7 891011>>

  /external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/modes/
filter.rb 9 If a lexer grammar specifies the <tt>filter = true</t> option, the generated
10 Lexer code will include this module. It modifies the standard
15 lexer filter mode.
  /external/smali/smali/src/test/antlr3/org/jf/smali/
expectedTokensTestGrammar.g 72 @lexer::header {
  /external/antlr/antlr-3.4/runtime/Python/antlr3/
main.py 191 lexer = self.lexerClass(inStream)
192 for token in lexer:
207 "--lexer",
233 lexer = self.lexerClass(inStream)
234 tokenStream = antlr3.CommonTokenStream(lexer)
255 "--lexer",
291 lexer = self.lexerClass(inStream)
292 tokenStream = antlr3.CommonTokenStream(lexer)
  /external/antlr/antlr-3.4/runtime/Python/tests/
t052import.py 85 lexer = lexerCls(cStream)
86 tStream = antlr3.CommonTokenStream(lexer)
106 lexer = lexerCls(cStream)
109 token = lexer.nextToken()
113 lexer._output += token.text
115 return lexer._output
758 # LEXER INHERITANCE
763 lexer grammar S7;
777 lexer grammar M7;
798 lexer grammar S8
    [all...]
  /external/smali/smali/src/main/antlr3/org/jf/smali/
smaliLexer.g 75 lexer grammar smaliLexer;
81 @lexer::header {
87 @lexer::members {
  /external/clang/lib/ARCMigrate/
Transforms.cpp 17 #include "clang/Lex/Lexer.h"
130 if (!Lexer::isAtEndOfMacroExpansion(loc, SM, Ctx.getLangOpts(), &loc))
133 loc = Lexer::getLocForEndOfToken(loc, /*Offset=*/0, SM, Ctx.getLangOpts());
147 Lexer lexer(SM.getLocForStartOfFile(locInfo.first),
151 lexer.LexFromRawLexer(tok);
393 Lexer lexer(SM.getLocForStartOfFile(locInfo.first),
397 lexer.LexFromRawLexer(tok);
399 lexer.LexFromRawLexer(tok)
    [all...]
  /external/smali/smali/src/main/java/org/jf/smali/
main.java 275 LexerErrorInterface lexer; local
281 lexer = new smaliLexer(input);
282 tokens = new CommonTokenStream((TokenSource)lexer);
287 lexer = new smaliFlexLexer(reader);
288 ((smaliFlexLexer)lexer).setSourceFile(smaliFile);
289 tokens = new CommonTokenStream((TokenSource)lexer);
311 if (parser.getNumberOfSyntaxErrors() > 0 || lexer.getNumberOfSyntaxErrors() > 0) {
410 Option oldLexerOption = OptionBuilder.withLongOpt("old-lexer")
411 .withDescription("Use the old lexer")
  /cts/tools/dasm/src/java_cup/
parser.java 326 lexer.init();
333 return lexer.next_token();
345 lexer.emit_error(message);
352 lexer.emit_error(message);
481 lexer.emit_error( "Symbol \"" + (/*non_term_id*/(java_cup.runtime.str_token)CUP$stack.elementAt(CUP$top-0)).str_val +
509 lexer.emit_error("Symbol \"" + (/*term_id*/(java_cup.runtime.str_token)CUP$stack.elementAt(CUP$top-0)).str_val +
600 if (lexer.error_count == 0)
601 lexer.emit_error("Symbol \"" + (/*symid*/(java_cup.runtime.str_token)CUP$stack.elementAt(CUP$top-1)).str_val +
690 lexer.emit_error("Syntax Error");
713 if (lexer.error_count == 0
    [all...]
parse_action_table.java 97 lexer.warning_count++;
Main.java 164 if (lexer.error_count == 0)
440 lexer.emit_error("Internal error: Unexpected exception");
475 lexer.warning_count++;
494 lexer.warning_count++;
573 lexer.error_count++;
626 System.err.println(" " + lexer.error_count + " error" +
627 plural(lexer.error_count) + " and " + lexer.warning_count +
628 " warning" + plural(lexer.warning_count));
  /external/antlr/antlr-3.4/gunit/src/main/java/org/antlr/gunit/
Interp.java 100 gUnitLexer lexer = new gUnitLexer(input); local
101 CommonTokenStream tokens = new CommonTokenStream(lexer);
gUnitBaseTest.java 63 // Invoke target lexer.rule
80 Class lexer = null; local
84 /** Use Reflection to create instances of lexer and parser */
85 lexer = Class.forName(lexerPath);
86 Class[] lexArgTypes = new Class[]{CharStream.class}; // assign type to lexer's args
87 Constructor lexConstructor = lexer.getConstructor(lexArgTypes);
88 Object[] lexArgs = new Object[]{input}; // assign value to lexer's args
89 Lexer lexObj = (Lexer)lexConstructor.newInstance(lexArgs); // makes new instance of lexer
171 Class lexer = null; local
317 Class lexer = null; local
    [all...]
  /external/antlr/antlr-3.4/runtime/Ruby/test/functional/parser/
backtracking.rb 238 lexer = Backtrack::Lexer.new( 'int a;' )
239 parser = Backtrack::Parser.new lexer
calc.rb 68 lexer = TestCalc::Lexer.new( expression )
69 parser = TestCalc::Parser.new lexer
ll-star.rb 120 lexer = LLStar::Lexer.new( <<-'END'.fixed_indent( 0 ) )
134 parser = LLStar::Parser.new lexer
  /external/antlr/antlr-3.4/gunit/src/main/java/org/antlr/gunit/swingui/model/
TestSuiteFactory.java 96 final ANTLRv3Lexer lexer = new ANTLRv3Lexer(new ANTLRReaderStream(reader)); local
97 final CommonTokenStream tokens = new CommonTokenStream(lexer);
162 final StGUnitLexer lexer = new StGUnitLexer(new ANTLRReaderStream(reader)); local
163 final CommonTokenStream tokens = new CommonTokenStream(lexer);
  /external/antlr/antlr-3.4/runtime/JavaScript/tests/functional/
t012lexerXML.g 2 lexer grammar t012lexerXML;
7 @lexer::members {
  /external/antlr/antlr-3.4/runtime/Ruby/test/functional/lexer/
filter-mode.rb 9 lexer grammar Filter;
90 lexer = Filter::Lexer.new( input )
91 tokens = lexer.map { |tk| tk }
101 lexer grammar Fuzzy;
238 lexer = Fuzzy::Lexer.new( input )
239 lexer.each { |tk| tk }
240 lexer.output.should == expected_output
  /external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/
main.rb 279 if name =~ /(\w+)::(Lexer|Parser|TreeParser)$/
315 generated lexer file is run directly from the command line.
325 lexer = @lexer_class.new( in_stream )
329 token = lexer.next_token
394 opt.on( '--lexer-name CLASS_NAME', "name of the lexer class to use" ) { |val|
399 opt.on( '--lexer-file PATH_TO_LIBRARY', "path to library defining the lexer class" ) { |val|
403 warn( "unable to load the library specified by --lexer-file: #{ $! }" )
431 fail( "unable to locate the lexer class ``#@lexer_class_name''"
    [all...]
template.rb 77 | does not appear to have an associated lexer class
91 autoload :Lexer, 'antlr3/template/group-file'
96 lexer = Lexer.new( source, options )
97 parser = Parser.new( lexer, options )
110 lexer = Lexer.new( input, options )
111 parser = Parser.new( lexer, options )
  /external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/test/
grammar.rb 45 GRAMMAR_TYPES = %w(lexer parser tree combined)
47 'lexer' => 'Lexer',
84 self.name + "::Lexer"
88 if lexer? then base = name
89 elsif combined? then base = name + 'Lexer'
116 @type == 'combined' || @type == 'lexer'
123 def lexer?
124 @type == "lexer"
144 for target_type in %w(lexer parser tree_parser
    [all...]
  /external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/C/
C.stg 56 <if(LEXER)>
57 * - for the lexer : <name>Lexer
76 outputFile( LEXER,
197 <if(LEXER)>
199 /* Macros for accessing things in a lexer
201 #undef LEXER
238 #define LEXER ctx->pLexer
239 #define RECOGNIZER LEXER->rec
242 #define GETCHARINDEX() LEXER->getCharIndex(LEXER
    [all...]
  /external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Test/
TestExpressionFeatures.g3 78 @lexer::namespace{Antlr3.Runtime.Test}
147 * Lexer Rules
  /external/antlr/antlr-3.4/runtime/Ruby/test/functional/debugging/
profile-mode.rb 126 lexer = SimpleC::Lexer.new( input )
127 tokens = ANTLR3::CommonTokenStream.new( lexer )
  /external/antlr/antlr-3.4/runtime/Perl5/lib/ANTLR/Runtime/
TokenSource.pm 28 Errors from the lexer are never passed to the parser. Either you want

Completed in 225 milliseconds

1 2 3 4 5 6 7 891011>>