/external/llvm/examples/OCaml-Kaleidoscope/Chapter6/ |
token.ml | 2 * Lexer Tokens 5 (* The lexer returns these 'Kwd' if it is an unknown character, otherwise one of
|
/external/llvm/examples/OCaml-Kaleidoscope/Chapter7/ |
token.ml | 2 * Lexer Tokens 5 (* The lexer returns these 'Kwd' if it is an unknown character, otherwise one of
|
/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...] |
/external/chromium_org/mojo/public/tools/bindings/pylib/mojom_tests/parse/ |
lexer_unittest.py | 30 import mojom.parse.lexer namespace 34 # we'll do it anyway. (I'm pretty sure ply's lexer never cares about comparing 56 """Tests |mojom.parse.lexer.Lexer|.""" 60 # Clone all lexer instances from this one, since making a lexer is slow. 61 self._zygote_lexer = lex.lex(mojom.parse.lexer.Lexer("my_file.mojom")) 97 mojom.parse.lexer.LexError, 101 mojom.parse.lexer.LexError [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 | 161 smaliFlexLexer lexer = new smaliFlexLexer(smaliStream); local 162 lexer.setSourceFile(new File(test + ".smali")); 163 lexer.setSuppressErrors(true); 165 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 | 373 lexer=None, verbose=False, mute_error=False, 392 lexer = lexer or BlinkIDLLexer(debug=debug, 395 self.lexer = lexer 396 self.tokens = lexer.KnownTokens()
|
/external/clang/lib/ARCMigrate/ |
Transforms.cpp | 18 #include "clang/Lex/Lexer.h" 141 if (!Lexer::isAtEndOfMacroExpansion(loc, SM, Ctx.getLangOpts(), &loc)) 144 loc = Lexer::getLocForEndOfToken(loc, /*Offset=*/0, SM, Ctx.getLangOpts()); 158 Lexer lexer(SM.getLocForStartOfFile(locInfo.first), 162 lexer.LexFromRawLexer(tok); 408 Lexer lexer(SM.getLocForStartOfFile(locInfo.first), 412 lexer.LexFromRawLexer(tok); 414 lexer.LexFromRawLexer(tok) [all...] |
/external/chromium_org/third_party/angle/src/compiler/preprocessor/ |
ExpressionParser.y | 46 #include "Lexer.h" 64 pp::Lexer* lexer; 263 context->lexer->lex(token); 277 ExpressionParser::ExpressionParser(Lexer *lexer, Diagnostics *diagnostics) 278 : mLexer(lexer), 287 context.lexer = mLexer;
|
/external/chromium_org/third_party/markdown/extensions/ |
codehilite.py | 122 lexer = get_lexer_by_name(self.lang) 126 lexer = guess_lexer(self.src) 128 lexer = TextLexer() 130 lexer = TextLexer() 135 return highlight(self.src, lexer, formatter)
|
/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...] |
/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);
|
/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
|