/external/llvm/examples/OCaml-Kaleidoscope/Chapter3/ |
toy.ml | 17 let stream = Lexer.lex (Stream.of_channel stdin) in
|
/external/llvm/include/llvm/MC/MCParser/ |
MCAsmLexer.h | 1 //===-- llvm/MC/MCAsmLexer.h - Abstract Asm Lexer Interface -----*- C++ -*-===// 116 /// MCAsmLexer - Generic assembler lexer interface, for use by target specific 147 /// The lexer will continuosly return the end-of-file token once the end of 185 /// setSkipSpace - Set whether spaces should be ignored by the lexer
|
/external/llvm/lib/MC/MCParser/ |
MCAsmLexer.cpp | 1 //===-- MCAsmLexer.cpp - Abstract Asm Lexer Interface ---------------------===//
|
/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);
|
/frameworks/compile/mclinker/include/mcld/Script/ |
FlexLexer.h | 40 // external interface provided to flex C++ lexer objects, and yyFlexLexer, 41 // which defines a particular lexer class. 43 // If you want to create multiple lexer classes, you use the -P flag 45 // include <FlexLexer.h> in your other sources once per lexer class:
|
/external/antlr/antlr-3.4/runtime/Perl5/lib/ANTLR/Runtime/ |
Lexer.pm | 1 package ANTLR::Runtime::Lexer; 29 # wack Lexer state variables 92 # Instruct the lexer to skip creating a token for current lexer rule 94 # a lexer rule finishes with token set to SKIP_TOKEN. Recall that 104 # This is the lexer entry point that sets instance var 'token' 109 # Set the char stream and reset the lexer
|
/external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/ |
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/tool/src/main/java/org/antlr/codegen/ |
RubyTarget.java | 312 that are printed in both lexer and parser files from combined grammars. 313 ANTLR appears to first generate a parser, then generate an independent lexer, 315 and the lexer grammar object, as well as their respective code generator and 325 - if this method is called with an `implicit lexer' 327 there's an entry in sharedActionBlocks for the lexer's grammar name. 328 - if there is an action map entry, place it in the lexer's action map 334 before the lexer. If that changes at some point, this will 444 case Grammar.LEXER: 445 if ( scope.equals( "lexer" ) ) { 458 if ( scope.equals( "lexer" ) ) { [all...] |
/external/clang/include/clang/Lex/ |
Preprocessor.h | 22 #include "clang/Lex/Lexer.h" 82 /// \brief Engages in a tight little dance with the lexer to efficiently 202 /// avoid tearing the Lexer and etc. down). 250 /// of bytes will place the lexer at the start of a line. 259 std::unique_ptr<Lexer> CurLexer; 285 /// \brief The kind of lexer we're currently working with. 294 /// \brief If the current lexer is for a submodule that is being built, this 304 std::unique_ptr<Lexer> TheLexer; 313 std::unique_ptr<Lexer> &&TheLexer, 543 /// \brief Return true if we are lexing directly from the specified lexer [all...] |
/external/antlr/antlr-3.4/runtime/C/vsrulefiles/ |
antlr3lexerandparser.rules | 3 Name="ANTLR3 Combo Lexer and Parser" 9 DisplayName="ANTLR 3 Parser/Lexer Grammar Translation" 11 Outputs="[OutputDirectory]\$(InputName)Parser.c;[OutputDirectory]\$(InputName)Parser.h;[OutputDirectory]\$(InputName)Lexer.c;[OutputDirectory]\$(InputName)Lexer.h" 13 ExecutionDescription="Translating to parser/lexer combination"
|
/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/nist-sip/java/gov/nist/javax/sip/parser/ |
ProxyAuthenticateParser.java | 52 * @param Lexer lexer to set 54 protected ProxyAuthenticateParser(Lexer lexer) { 55 super(lexer);
|
ProxyAuthorizationParser.java | 53 * @param Lexer lexer to set 55 protected ProxyAuthorizationParser(Lexer lexer) { 56 super(lexer);
|
ReplyToParser.java | 52 * param lexer the lexer to use to parse the header 54 protected ReplyToParser(Lexer lexer) { 55 super(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/gunit/src/main/antlr3/org/antlr/gunit/swingui/parsers/ |
ANTLRv3.g | 40 LEXER; 89 @lexer::header { 96 ( 'lexer' {gtype=LEXER_GRAMMAR;} // pure lexer 99 | {gtype=COMBINED_GRAMMAR;} // merged parser/lexer 135 | l='lexer' -> ID[$l] 300 // if lexer rule in combined, leave as pred for lexer 314 // Args are only valid for lexer rules
|
/external/antlr/antlr-3.4/runtime/Delphi/ |
README.TXT | 28 -Antlr.Runtime: the main Antlr unit that contains the parser and lexer classes 95 you have a parser rule called "expression", then you shouldn't have a lexer rule 108 parser/lexer class. For example: 115 These declarations will appear inside the parser/lexer class declaration. 124 These statements will appear inside the constructor of the parser/lexer class. 137 the parser/lexer unit. This means that you need to specify the full name of 138 the method, including the parser/lexer class name (eg. TCParser.isTypeName). 140 or lexer. So, if your grammar is called "MyGrammar", then the lexer class will
|
/external/antlr/antlr-3.4/tool/src/main/antlr3/org/antlr/grammar/v3/ |
ANTLRv3.g | 39 LEXER; 83 @lexer::header 94 ( 'lexer' {gtype=LEXER_GRAMMAR;} // pure lexer 97 | {gtype=COMBINED_GRAMMAR;} // merged parser/lexer 133 | l='lexer' -> ID[$l] 303 // Args are only valid for lexer rules 329 // if lexer rule in combined, leave as pred for lexer
|
TreeToNFAConverter.g | 239 if (Rule.getRuleType(currentRuleName) == Grammar.PARSER || grammar.type==Grammar.LEXER) 359 if ( grammar.type==Grammar.LEXER ) { 490 if ( grammar.type==Grammar.LEXER ) 513 if ( grammar.type==Grammar.LEXER ) 579 && grammar.type!=Grammar.LEXER ) 589 if ( grammar.type==Grammar.LEXER ) 597 // don't add FOLLOW transitions in the lexer; 610 if ( grammar.type==Grammar.LEXER ) 623 if ( grammar.type==Grammar.LEXER ) 699 if ( grammar.type==Grammar.LEXER ) [all...] |
ANTLR.g | 62 LEXER='lexer'; 111 @lexer::header { 126 @lexer::members { 330 // if they want backtracking and it's not a lexer rule in combined grammar 338 Rule.getRuleType(currentRuleName) == Grammar.LEXER) && 427 if ( grammarType == Grammar.LEXER ) 467 : ( 'lexer' gr='grammar' {grammarType=Grammar.LEXER; grammar.type = Grammar.LEXER;} // pure lexe [all...] |
/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/tool/src/main/resources/org/antlr/codegen/templates/CPP/ |
CPP.stg | 42 // What we generate lexer/parser/treeparser, used a suffix in a few places 44 <if(LEXER)>Lexer<endif><if(PARSER)>Parser<endif><if(TREE_PARSER)>TreeParser<endif> 55 <if(LEXER)> 56 * - for the lexer : <name><\n> 84 outputFile(LEXER,PARSER,TREE_PARSER, actionScope, actions, 115 class <name> : public antlr3::Lexer\<StreamType,TokenType,TokenBuilder> { 136 <actions.lexer.members> 139 : antlr3::Lexer\<StreamType,TokenType,TokenBuilder>(input) 157 headerFile( LEXER, [all...] |
/external/clang/lib/Edit/ |
Commit.cpp | 13 #include "clang/Lex/Lexer.h" 252 unsigned tokLen = Lexer::MeasureTokenLength(spellLoc, SourceMgr, LangOpts); 269 loc = Lexer::getLocForEndOfToken(loc, 0, SourceMgr, LangOpts); 298 range = Lexer::makeFileCharRange(range, SM, LangOpts); 341 return Lexer::isAtStartOfMacroExpansion(loc, SourceMgr, LangOpts, MacroBegin); 345 return Lexer::isAtEndOfMacroExpansion(loc, SourceMgr, LangOpts, MacroEnd);
|
/external/bison/tests/ |
java.at | 98 %code lexer { 102 class CalcLexer implements Calc.Lexer { 413 # Check that a mininal parser with DIRECTIVES and a "%code lexer". 419 %code lexer 557 AT_CHECK_JAVA_GREP([[ *public YYParser (Lexer yylexer) {]]) 561 AT_CHECK_JAVA_GREP([[ *public YYParser (Lexer yylexer, *int parse_param1) {]]) 569 AT_CHECK_JAVA_GREP([[ *public YYParser (Lexer yylexer, *int parse_param1, *long parse_param2) {]]) 575 AT_CHECK_JAVA_GREP([[ *protected YYParser (Lexer yylexer) {]]) 581 AT_CHECK_JAVA_GREP([[ *protected YYParser (Lexer yylexer, *int parse_param1) {]]) 591 AT_CHECK_JAVA_GREP([[ *protected YYParser (Lexer yylexer, *int parse_param1, *long parse_param2) {]] [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);
|