HomeSort by relevance Sort by last modified time
    Searched refs:lexer (Results 251 - 275 of 357) sorted by null

<<1112131415

  /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/runtime/Python/tests/
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)
testbase.py 200 m = re.match(r'\s*((lexer|parser|tree)\s+|)grammar\s+(\S+);', grammar, re.MULTILINE)
207 assert self.grammarType in ('lexer', 'parser', 'tree', 'combined'), self.grammarType
285 """Optionally build a subclass of generated lexer class"""
312 """Build lexer instance. Arguments are passed to lexer.__init__()."""
314 if self.grammarType == 'lexer':
318 self.lexerModule = self.__load_module(self.grammarName + 'Lexer')
319 cls = getattr(self.lexerModule, self.grammarName + 'Lexer')
323 lexer = cls(*args, **kwargs)
325 return lexer
    [all...]
t058rewriteAST.py 68 lexer = lexerCls(cStream)
69 tStream = antlr3.CommonTokenStream(lexer)
97 lexer = lexerCls(cStream)
98 tStream = antlr3.CommonTokenStream(lexer)
    [all...]
  /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/chromium_org/tools/idl_parser/
idl_ppapi_parser.py 278 def __init__(self, lexer, verbose=False, debug=False, mute_error=False):
279 IDLParser.__init__(self, lexer, verbose, debug, mute_error)
  /external/chromium_org/third_party/jinja2/
lexer.py 3 jinja2.lexer
6 This module implements a Jinja / Python combination lexer. The
7 `Lexer` class provided by this module is used to do some preprocessing
25 # environments with the same lexer
211 Used by the `Lexer` to specify known errors.
356 argument as :meth:`jinja2.lexer.Token.test`.
376 """Return a lexer which is probably cached."""
387 lexer = _lexer_cache.get(key)
388 if lexer is None:
389 lexer = Lexer(environment
    [all...]
  /external/chromium_org/third_party/ply/
lex.py 103 # The following Lexer class implements the lexer runtime. There are only
106 # input() - Store a new string in the lexer
108 # clone() - Clone the lexer
114 class Lexer:
121 self.lexstatere = {} # Dictionary mapping lexer states to master regexs
122 self.lexstateretext = {} # Dictionary mapping lexer states to regex strings
123 self.lexstaterenames = {} # Dictionary mapping lexer states to symbol names
124 self.lexstate = "INITIAL" # Current lexer state
125 self.lexstatestack = [] # Stack of lexer state
    [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/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/
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
streams.rb 71 The job of a TokenStream is to read lexer output and then provide ANTLR
280 usually a lexer. They provide the operations required by higher-level
290 to them for some other purpose, you have the lexer assign the comments and
311 # expected to return the token source object (such as a lexer) from which
346 feed text input into an ANTLR Lexer for token processing.
532 # This is an extra utility method for use inside lexer actions if needed.
540 # This is an extra utility method for use inside lexer actions if needed.
548 # This is an extra utility method for use inside lexer actions if needed.
556 # This is an extra utility method for use inside lexer actions if needed.
726 Using some TokenSource (such as a lexer), the stream collects a token sequence
    [all...]
  /external/chromium_org/third_party/angle_dx11/src/compiler/preprocessor/
ExpressionParser.cpp 99 #include "Lexer.h"
117 pp::Lexer* lexer; member in struct:__anon12978::Context
    [all...]
  /cts/tools/dasm/src/java_cup/
lalr_state.java 650 lexer.warning_count++;
695 lexer.warning_count++;
  /external/antlr/antlr-3.4/runtime/Delphi/Sources/Antlr3.Runtime.Tests/
Antlr.Runtime.Tests.pas 144 S1 := TANTLRStringStream.Create('lexer'#13#10);
  /external/nist-sip/java/gov/nist/javax/sip/parser/
StringMsgParser.java 408 String headerName = Lexer.getHeaderName(header);
448 Lexer lexer = new Lexer("charLexer", hostport);
449 return new HostNameParser(lexer).hostPort();
465 Lexer lexer = new Lexer("charLexer", host); local
466 return new HostNameParser(lexer).host();

Completed in 3381 milliseconds

<<1112131415