/external/antlr/antlr-3.4/runtime/Ruby/test/functional/tree-parser/ |
basic.rb | 32 lexer = FlatList::Lexer.new( "abc 34" ) 33 tokens = ANTLR3::CommonTokenStream.new( lexer ) 68 lexer = SimpleTree::Lexer.new( "abc 34" ) 69 tokens = ANTLR3::CommonTokenStream.new( lexer ) 107 lexer = FlatVsTreeDecision::Lexer.new( "a 1 b 2" ) 108 tokens = ANTLR3::CommonTokenStream.new( lexer ) 145 lexer = FlatVsTreeDecision2::Lexer.new( "a 1 2 3 b 4 5" [all...] |
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/ |
RandomPhrase.java | 180 Grammar lexer = new Grammar(tool); local 181 lexer.importTokenVocabulary(parser); 182 lexer.fileName = grammarFileName; 184 lexer.setGrammarContent(lexerGrammarText); 187 System.err.println("no lexer grammar found in "+grammarFileName); 189 lexer.buildNFA(); 190 leftRecursiveRules = lexer.checkAllRulesForLeftRecursion(); 194 //System.out.println("lexer:\n"+lexer); 205 randomPhrase(lexer, charsInToken, ttypeDisplayName) [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
shlex.py | 66 "Push an input source onto the lexer's input source stack." 283 lexer = shlex() variable 286 lexer = shlex(open(file), file) variable 288 tt = lexer.get_token()
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
shlex.py | 66 "Push an input source onto the lexer's input source stack." 283 lexer = shlex() variable 286 lexer = shlex(open(file), file) variable 288 tt = lexer.get_token()
|
/external/antlr/antlr-3.4/antlr3-maven-archetype/src/main/resources/archetype-resources/src/main/java/ |
Main.java | 23 static TLexer lexer; field in class:Main 33 // Create the lexer, which we can keep reusing if we like 35 lexer = new TLexer(); 123 // and tell the lexer that that is the character source. 127 lexer.setCharStream(new ANTLRFileStream(source, "UTF8")); 129 // Using the lexer as the token source, we create a token 132 CommonTokenStream tokens = new CommonTokenStream(lexer); 142 System.out.println(" Lexer Start"); 146 // it is just for timing the lexer)
|
/external/antlr/antlr-3.4/runtime/JavaScript/tests/functional/ |
rhino-python.prog | 57 var lexer = new MyLexer(input); 58 var tokens = new ANTLR.runtime.CommonTokenStream(lexer);
|
/external/markdown/markdown/extensions/ |
codehilite.py | 93 lexer = get_lexer_by_name(self.lang) 96 lexer = guess_lexer(self.src) 98 lexer = TextLexer() 101 return highlight(self.src, lexer, formatter)
|
/external/smali/smali/src/test/java/ |
LexerTest.java | 156 smaliFlexLexer lexer = new smaliFlexLexer(smaliStream); local 157 lexer.setSourceFile(new File(test + ".smali")); 158 lexer.setSuppressErrors(true); 160 CommonTokenStream tokenStream = new CommonTokenStream(lexer);
|
/bootable/recovery/edify/ |
Android.mk | 6 lexer.l \
|
/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/chromium_org/third_party/WebKit/Source/bindings/scripts/ |
blink_idl_parser.py | 383 def __init__(self, lexer=None, verbose=False, debug=False, mute_error=False, outputdir=''): 384 lexer = lexer or BlinkIDLLexer() 385 self.lexer = lexer 386 self.tokens = lexer.KnownTokens()
|
/external/clang/lib/ARCMigrate/ |
Transforms.cpp | 18 #include "clang/Lex/Lexer.h" 140 if (!Lexer::isAtEndOfMacroExpansion(loc, SM, Ctx.getLangOpts(), &loc)) 143 loc = Lexer::getLocForEndOfToken(loc, /*Offset=*/0, SM, Ctx.getLangOpts()); 157 Lexer lexer(SM.getLocForStartOfFile(locInfo.first), 161 lexer.LexFromRawLexer(tok); 403 Lexer lexer(SM.getLocForStartOfFile(locInfo.first), 407 lexer.LexFromRawLexer(tok); 409 lexer.LexFromRawLexer(tok) [all...] |
/external/chromium_org/third_party/angle_dx11/src/compiler/preprocessor/ |
ExpressionParser.y | 40 #include "Lexer.h" 58 pp::Lexer* lexer; 238 if (type != 0) context->lexer->lex(token); 252 ExpressionParser::ExpressionParser(Lexer* lexer, Diagnostics* diagnostics) : 253 mLexer(lexer), 262 context.lexer = mLexer;
|
/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 37 # IDL Lexer 156 line = self.Lexer().lineno 165 self.index.append(self.Lexer().lexpos - offs) 168 pos = self.Lexer().lexpos - self.index[line] 175 # Set the lexer position for the beginning of the next line. In the case 179 self.Lexer().lineno += count 181 self.index.append(self.Lexer().lexpos) 185 filename = self.Lexer().filenam 279 lexer = IDLLexer() variable [all...] |
/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++;
|
/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);
|