/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);
|
/external/webkit/LayoutTests/fast/xpath/ |
ambiguous-operators-expected.txt | 3 See bug 50366: XPath lexer misinterprets expression starting with "div".
|
/external/webkit/Tools/android/flex-2.5.4a/ |
FlexLexer.h | 28 // external interface provided to flex C++ lexer objects, and yyFlexLexer, 29 // which defines a particular lexer class. 31 // If you want to create multiple lexer classes, you use the -P flag 33 // 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 | 21 #include "clang/Lex/Lexer.h" 81 /// Preprocessor - This object engages in a tight little dance with the lexer to 197 /// avoid tearing the Lexer and etc. down). 240 /// place the lexer at the start of a line. 246 OwningPtr<Lexer> CurLexer; 267 /// \brief The kind of lexer we're currently working with. 281 Lexer *TheLexer; 287 IncludeStackInfo(enum CurLexerKind K, Lexer *L, PTHLexer* P, 494 /// lexer. 499 /// getCurrentLexer - Return the current lexer being lexed from. Not [all...] |
/external/llvm/tools/llvm-mc/ |
llvm-mc.cpp | 247 AsmLexer Lexer(MAI); 248 Lexer.setBuffer(SrcMgr.getMemoryBuffer(0)); 251 while (Lexer.Lex().isNot(AsmToken::Eof)) { 252 AsmToken Tok = Lexer.getTok(); 256 SrcMgr.PrintMessage(Lexer.getLoc(), SourceMgr::DK_Warning, 264 Out->os() << "identifier: " << Lexer.getTok().getString(); 267 Out->os() << "int: " << Lexer.getTok().getString(); 270 Out->os() << "real: " << Lexer.getTok().getString(); 273 Out->os() << "string: " << Lexer.getTok().getString(); 381 // Record the location of the include directories so that the lexer can fin [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/webkit/Source/JavaScriptCore/runtime/ |
LiteralParser.cpp | 31 #include "Lexer.h" 45 LiteralParser::TokenType LiteralParser::Lexer::lex(LiteralParserToken& token) 141 template <LiteralParser::ParserMode mode> inline LiteralParser::TokenType LiteralParser::Lexer::lexString(LiteralParserToken& token) 197 builder.append(JSC::Lexer::convertUnicode(m_ptr[1], m_ptr[2], m_ptr[3], m_ptr[4])); 216 LiteralParser::TokenType LiteralParser::Lexer::lexNumber(LiteralParserToken& token) 341 Lexer::LiteralParserToken identifierToken = m_lexer.currentToken(); 363 Lexer::LiteralParserToken identifierToken = m_lexer.currentToken(); 395 Lexer::LiteralParserToken stringToken = m_lexer.currentToken(); 401 Lexer::LiteralParserToken numberToken = m_lexer.currentToken();
|
/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);
|