HomeSort by relevance Sort by last modified time
    Searched refs:lexer (Results 226 - 250 of 358) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /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/chromium_org/third_party/WebKit/Source/bindings/scripts/unstable/
blink_idl_lexer.py 29 """Lexer for Blink IDL.
31 The lexer uses the PLY (Python Lex-Yacc) library to build a tokenizer which
35 Blink IDL is identical to Web IDL at the token level, but the base lexer
40 FIXME: Change base lexer to discard comments, and simply used the base
41 lexer, eliminating this separate lexer.
57 # Base lexer is in Chromium src/tools/idl_parser
73 # Analogs to _AddToken/_AddTokens in base lexer
88 # If run by itself, attempt to build the lexer
90 lexer = BlinkIDLLexer( variable
    [all...]
  /external/chromium_org/third_party/angle/src/compiler/preprocessor/
MacroExpander.h 14 #include "Lexer.h"
23 class MacroExpander : public Lexer
26 MacroExpander(Lexer* lexer, MacroSet* macroSet, Diagnostics* diagnostics);
65 Lexer* mLexer;
MacroExpander.cpp 18 class TokenLexer : public Lexer
49 MacroExpander::MacroExpander(Lexer* lexer,
52 mLexer(lexer),
317 TokenLexer lexer(&arg);
318 MacroExpander expander(&lexer, mMacroSet, mDiagnostics);
  /external/chromium_org/tools/idl_parser/
idl_lexer.py 6 """ Lexer for PPAPI IDL
8 The lexer uses the PLY library to build a tokenizer which understands both
36 # IDL Lexer
116 # These need to be methods for lexer construction, despite not using self.
167 line = self.Lexer().lineno
176 self.index.append(self.Lexer().lexpos - offs)
179 pos = self.Lexer().lexpos - self.index[line]
186 # Set the lexer position for the beginning of the next line. In the case
190 self.Lexer().lineno += count
192 self.index.append(self.Lexer().lexpos
    [all...]
idl_parser.py 129 # The Parser inherits the from the Lexer to provide PLY with the tokenizing
874 return self.lexer.last
876 def __init__(self, lexer, verbose=False, debug=False, mute_error=False):
877 self.lexer = lexer
878 self.tokens = lexer.KnownTokens()
906 filename = self.lexer.Lexer().filename
990 # Access lexer errors, despite being private
992 return self._parse_errors + self.lexer._lex_error
    [all...]
  /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 )
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*;/"
  /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/smali/smali/src/main/java/org/jf/smali/
main.java 282 LexerErrorInterface lexer; local
287 lexer = new smaliFlexLexer(reader);
288 ((smaliFlexLexer)lexer).setSourceFile(smaliFile);
289 tokens = new CommonTokenStream((TokenSource)lexer);
311 if (parser.getNumberOfSyntaxErrors() > 0 || lexer.getNumberOfSyntaxErrors() > 0) {
  /cts/tools/dasm/src/java_cup/
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/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
  /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/chromium_org/chrome/common/extensions/docs/examples/howto/sandbox/
handlebars-1.0.0.beta.6.js 201 this.lexer.setInput(input);
202 this.lexer.yy = this.yy;
203 this.yy.lexer = this.lexer;
204 if (typeof this.lexer.yylloc == "undefined")
205 this.lexer.yylloc = {};
206 var yyloc = this.lexer.yylloc;
217 token = self.lexer.lex() || 1;
241 if (this.lexer.showPosition) {
242 errStr = "Parse error on line " + (yylineno + 1) + ":\n" + this.lexer.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + this.terminals_[symbol] + "'"
    [all...]
  /external/chromium_org/third_party/ply/
yacc.py 195 self.lexer = None
257 def parse(self,input=None,lexer=None,debug=0,tracking=0,tokenfunc=None):
261 return self.parsedebug(input,lexer,debug,tracking,tokenfunc)
263 return self.parseopt(input,lexer,debug,tracking,tokenfunc)
265 return self.parseopt_notrack(input,lexer,debug,tracking,tokenfunc)
282 def parsedebug(self,input=None,lexer=None,debug=None,tracking=0,tokenfunc=None):
295 # If no lexer was given, we will try to use the lex module
296 if not lexer:
298 lexer = lex.lexer
    [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)

Completed in 2217 milliseconds

1 2 3 4 5 6 7 8 91011>>