/external/antlr/antlr-3.4/runtime/ObjC/Framework/examples/treeparser/ |
LangLexer.h | 28 /* interface lexer class */ 30 /* ObjC start of actions.lexer.memVars */ 31 /* ObjC end of actions.lexer.memVars */ 35 /* ObjC start actions.lexer.methodsDecl */ 36 /* ObjC end actions.lexer.methodsDecl */
|
/external/antlr/antlr-3.4/runtime/ObjC/Framework/examples/treerewrite/ |
TreeRewriteLexer.h | 23 /* interface lexer class */ 25 /* ObjC start of actions.lexer.memVars */ 26 /* ObjC end of actions.lexer.memVars */ 30 /* ObjC start actions.lexer.methodsDecl */ 31 /* ObjC end actions.lexer.methodsDecl */
|
/external/antlr/antlr-3.4/runtime/Python/tests/ |
t018llstar.py | 17 lexer = self.getLexer(cStream) 18 tStream = antlr3.CommonTokenStream(lexer) 60 ## lexer = Lexer(cStream) 61 ## tStream = antlr3.CommonTokenStream(lexer)
|
t044trace.py | 62 lexer = self.getLexer(cStream) 63 tStream = antlr3.CommonTokenStream(lexer) 68 lexer.traces, 84 lexer = self.getLexer(cStream) 85 tStream = antlr3.CommonTokenStream(lexer)
|
/external/antlr/antlr-3.4/runtime/Ruby/test/functional/main/ |
main-scripts.rb | 14 lexer grammar MainOverride; 37 example 'using Lexer.main() to run the built-in lexer utility script on a source file' do 42 lexer grammar LexerMainWithSourceFile; 52 LexerMainWithSourceFile::Lexer.main( [], :input => input, :output => output ) 61 example 'using Lexer.main to run the built-in lexer utility script on input from $stdin' do 66 lexer grammar LexerMainFromStdIO; 73 LexerMainFromStdIO::Lexer.main( [], :input => input, :output => output ) 92 %w(--rule r --lexer-name MainForCombined::Lexer) [all...] |
/external/antlr/antlr-3.4/runtime/Ruby/test/functional/token-rewrite/ |
basic.rb | 8 lexer grammar SimpleRewriting; 19 lexer = SimpleRewriting::Lexer.new( input ) 20 tokens = ANTLR3::TokenRewriteStream.new( lexer ) 227 lexer = SimpleRewriting::Lexer.new( 'abcc' ) 228 stream = ANTLR3::TokenRewriteStream.new( lexer ) 239 lexer = SimpleRewriting::Lexer.new( 'abcccba' ) 240 stream = ANTLR3::TokenRewriteStream.new( lexer ) [all...] |
/external/antlr/antlr-3.4/runtime/Ruby/test/functional/parser/ |
actions.rb | 40 lexer = ParserActions::Lexer.new "int foo;" 41 parser = ParserActions::Parser.new lexer 59 @lexer::members { 62 @lexer::init { @foobar = 'attribute' } 91 lexer = AllKindsOfActions::Lexer.new( "foobar _Ab98 \n A12sdf" ) 92 parser = AllKindsOfActions::Parser.new lexer 101 lexer.output.should == <<-END.fixed_indent( 0 ) 141 lexer = Finally::Lexer.new( 'foobar' [all...] |
/external/nist-sip/java/gov/nist/javax/sip/parser/ |
UserAgentParser.java | 57 * @param lexer - 58 * the lexer to use. 60 protected UserAgentParser(Lexer lexer) { 61 super(lexer); 78 if (this.lexer.lookAhead(0) == '\n') 86 while (this.lexer.lookAhead(0) != '\n' 87 && this.lexer.lookAhead(0) != '\0') { 89 if (this.lexer.lookAhead(0) == '(') { 90 String comment = this.lexer.comment() [all...] |
AllowEventsParser.java | 54 * @param lexer the lexer to use to parse the header 56 protected AllowEventsParser(Lexer lexer) { 57 super(lexer); 77 this.lexer.SPorHT(); 78 this.lexer.match(TokenTypes.ID); 79 Token token = lexer.getNextToken(); 83 this.lexer.SPorHT(); 84 while (lexer.lookAhead(0) == ',') [all...] |
AllowParser.java | 53 * @param lexer the lexer to use to parse the header 55 protected AllowParser(Lexer lexer) { 56 super(lexer); 76 this.lexer.SPorHT(); 77 this.lexer.match(TokenTypes.ID); 78 Token token = lexer.getNextToken(); 82 this.lexer.SPorHT(); 83 while (lexer.lookAhead(0) == ',') [all...] |
ContentEncodingParser.java | 56 * @param lexer the lexer to use to parse the header 58 protected ContentEncodingParser(Lexer lexer) { 59 super(lexer); 76 while (lexer.lookAhead(0) != '\n') { 80 this.lexer.SPorHT(); 81 this.lexer.match(TokenTypes.ID); 83 Token token = lexer.getNextToken(); 86 this.lexer.SPorHT() [all...] |
ContentLanguageParser.java | 54 * @param lexer the lexer to use to parse the header 56 protected ContentLanguageParser(Lexer lexer) { 57 super(lexer); 74 while (lexer.lookAhead(0) != '\n') { 75 this.lexer.SPorHT(); 76 this.lexer.match(TokenTypes.ID); 78 Token token = lexer.getNextToken(); 80 this.lexer.SPorHT() [all...] |
/external/antlr/antlr-3.4/runtime/ObjC/Framework/examples/simplecTreeParser/ |
main.m | 25 // create a stream over the input, so the lexer can seek back and forth, but don't copy the string, 32 // Actually create the lexer feeding of the character stream. 33 SimpleCLexer *lexer = [SimpleCLexer newSimpleCLexerWithCharStream:stream]; 35 // For fun, you could print all tokens the lexer recognized, but we can only do it once. After that 36 // we would need to reset the lexer, and lex again. 38 // while ((currentToken = [lexer nextToken]) && [currentToken type] != ANTLRTokenTypeEOF) { 41 // [lexer reset]; 44 ANTLRCommonTokenStream *tokenStream = [ANTLRCommonTokenStream newANTLRCommonTokenStreamWithTokenSource:lexer]; 72 [lexer release];
|
/external/antlr/antlr-3.4/runtime/Perl5/t/ |
lexer.t | 24 lexer grammar INTLexer; 28 /* Lexer rule for an integer. */ 38 my $lexer = INTLexer->new({ input => $input }); 39 while ((my $_ = $lexer->next_token())) { 48 lexer grammar IDLexer; 63 my $lexer = IDLexer->new({ input => $input }); 66 my $token = $lexer->next_token(); 117 my $lexer = IDLexer->new($input); 118 while ((my $_ = $lexer->next_token())) {
|
/external/nist-sip/java/gov/nist/javax/sip/parser/ims/ |
PAssertedServiceParser.java | 33 import gov.nist.javax.sip.parser.Lexer; 47 protected PAssertedServiceParser(Lexer lexer) { 48 super(lexer); 61 this.lexer.match(TokenTypes.P_ASSERTED_SERVICE); 62 this.lexer.SPorHT(); 63 this.lexer.match(':'); 64 this.lexer.SPorHT(); 67 String urn = this.lexer.getBuffer();
|
/external/antlr/antlr-3.4/runtime/Ruby/test/functional/ast-output/ |
tree-rewrite.rb | 1005 lexer = FlatList::Lexer.new( "abc 34" ) 1006 tokens = ANTLR3::CommonTokenStream.new( lexer ) 1019 lexer = SimpleTree::Lexer.new( "abc 34" ) 1020 tokens = ANTLR3::CommonTokenStream.new( lexer ) 1033 lexer = CombinedRewriteAndAuto::Lexer.new( "abc 34" ) 1034 tokens = ANTLR3::CommonTokenStream.new( lexer ) 1043 lexer = CombinedRewriteAndAuto::Lexer.new( "34" [all...] |
/external/antlr/antlr-3.4/runtime/Python/unittests/ |
testtreewizard.py | 39 lexer = TreePatternLexer('(') 40 type = lexer.nextToken() 42 self.failUnlessEqual(lexer.sval, '') 43 self.failUnlessEqual(lexer.error, False) 49 lexer = TreePatternLexer(')') 50 type = lexer.nextToken() 52 self.failUnlessEqual(lexer.sval, '') 53 self.failUnlessEqual(lexer.error, False) 59 lexer = TreePatternLexer('%') 60 type = lexer.nextToken( [all...] |
/external/antlr/antlr-3.4/runtime/JavaScript/tests/functional/ |
t017parser.html | 30 lexer = new t017parserLexer(cstream), 31 tstream = new org.antlr.runtime.CommonTokenStream(lexer), 40 lexer = new t017parserLexer(cstream), 41 tstream = new org.antlr.runtime.CommonTokenStream(lexer), 51 lexer = new t017parserLexer(cstream), 52 tstream = new org.antlr.runtime.CommonTokenStream(lexer),
|
t031emptyAlt.html | 33 lexer = new t031emptyAltLexer(cstream), 34 tstream = new org.antlr.runtime.CommonTokenStream(lexer), 43 lexer = new t031emptyAltLexer(cstream), 44 tstream = new org.antlr.runtime.CommonTokenStream(lexer), 53 lexer = new t031emptyAltLexer(cstream), 54 tstream = new org.antlr.runtime.CommonTokenStream(lexer),
|
t014parser.html | 20 lexer = new t014parserLexer(cstream), 21 tstream = new org.antlr.runtime.CommonTokenStream(lexer), 41 lexer = new t014parserLexer(cstream), 42 tstream = new org.antlr.runtime.CommonTokenStream(lexer), 53 lexer = new t014parserLexer(cstream), 54 tstream = new org.antlr.runtime.CommonTokenStream(lexer), 71 lexer = new t014parserLexer(cstream), 72 tstream = new org.antlr.runtime.CommonTokenStream(lexer),
|
/external/antlr/antlr-3.4/runtime/Ruby/ |
rakefile | 28 "test/functional/lexer/xml.rb", 29 "test/functional/lexer/properties.rb", 30 "test/functional/lexer/nuances.rb", 31 "test/functional/lexer/basic.rb", 32 "test/functional/lexer/filter-mode.rb", 33 "test/functional/lexer/syn-pred.rb",
|
/external/antlr/antlr-3.4/runtime/C/doxygen/ |
atsections.dox | 14 /// : '@' (( 'parser' | 'lexer' ) '::')? SECTIONNAME '{' yourcode '}' 18 /// If the 'parser' or lexer keywords are left out of the specification, then the 19 /// ANTLR tool assumes a lexer target for a lexer grammar, a parser target for a parser 20 /// or tree parser grammar, and a parser target for a combined lexer/parser grammar. You 21 /// are advised as a matter of course to include the parser or lexer target keyword. 29 /// of a rule (lexer, parser and tree parser rules). This allows you to both declare and initialize 63 /// The <code>\@parser::header</code> or <code>\@lexer::header</code> annotations cause the code they encapsulate 74 /// @lexer::header 88 /// The <code>\@parser::includes</code> or <code>\@lexer::includes</code> annotations caus [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...] |
/external/antlr/antlr-3.4/runtime/Perl5/examples/id/ |
id.pl | 13 my $lexer = IDLexer->new({ input => $input }); 16 my $token = $lexer->next_token();
|
/external/antlr/antlr-3.4/runtime/Perl5/examples/simplecalc/ |
simplecalc.pl | 13 my $lexer = SimpleCalcLexer->new({ input => $input }); 14 my $tokens = ANTLR::Runtime::CommonTokenStream->new({ token_source => $lexer });
|