Searched defs:lexer (Results 1 - 25 of 116) sorted by relevance

12345

/external/javassist/src/main/javassist/compiler/
H A DSyntaxError.java19 public SyntaxError(Lex lexer) { argument
20 super("syntax error near \"" + lexer.getTextAround() + "\"", lexer);
/external/chromium_org/tools/idl_parser/
H A Didl_ppapi_lexer.py8 The lexer uses the PLY library to build a tokenizer which understands both
26 # These need to be methods for lexer construction, despite not using self.
66 # If run by itself, attempt to build the lexer
68 lexer = IDLPPAPILexer() variable
69 lexer.Tokenize(open('test_parser/inline_ppapi.idl').read())
70 for tok in lexer.GetTokens():
/external/antlr/antlr-3.4/antlr3-maven-archetype/src/main/resources/archetype-resources/src/main/java/
H A DMain.java23 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);
146 // it is just for timing the lexer)
/external/jsilver/src/com/google/clearsilver/jsilver/syntax/lexer/
H A DLexerException.java3 package com.google.clearsilver.jsilver.syntax.lexer;
/external/nist-sip/java/gov/nist/javax/sip/parser/
H A DAcceptEncodingParser.java75 * @param lexer Lexer to set
77 protected AcceptEncodingParser(Lexer lexer) { argument
78 super(lexer);
94 if (lexer.lookAhead(0) == '\n') {
98 while (lexer.lookAhead(0) != '\n') {
100 if (lexer.lookAhead(0) != ';') {
102 lexer.match(TokenTypes.ID);
103 Token value = lexer.getNextToken();
107 while (lexer.lookAhead(0) == ';') {
108 this.lexer
[all...]
H A DAcceptLanguageParser.java72 * @param lexer Lexer to set
74 protected AcceptLanguageParser(Lexer lexer) { argument
75 super(lexer);
91 while (lexer.lookAhead(0) != '\n') {
94 if (lexer.lookAhead(0) != ';') {
96 lexer.match(TokenTypes.ID);
97 Token value = lexer.getNextToken();
101 while (lexer.lookAhead(0) == ';') {
102 this.lexer.match(';');
103 this.lexer
[all...]
H A DAcceptParser.java54 * @param lexer the lexer to use to parse the header
56 protected AcceptParser(Lexer lexer) { argument
57 super(lexer);
77 this.lexer.SPorHT();
78 this.lexer.match(TokenTypes.ID);
79 Token token = lexer.getNextToken();
81 this.lexer.match('/');
82 this.lexer.match(TokenTypes.ID);
83 token = lexer
[all...]
H A DAddressParametersParser.java42 protected AddressParametersParser(Lexer lexer) { argument
43 super(lexer);
57 lexer.SPorHT();
58 char la = this.lexer.lookAhead(0);
59 if ( this.lexer.hasMoreChars() &&
62 this.lexer.startsId()) {
H A DAddressParser.java40 public AddressParser(Lexer lexer) { argument
41 this.lexer = lexer;
42 this.lexer.selectLexer("charLexer");
46 this.lexer = new Lexer("charLexer", address);
53 if (this.lexer.lookAhead(0) == '<') {
54 this.lexer.consume(1);
55 this.lexer.selectLexer("sip_urlLexer");
56 this.lexer.SPorHT();
57 URLParser uriParser = new URLParser((Lexer) lexer);
[all...]
H A DAlertInfoParser.java57 * @param lexer the lexer to use to parse the header
59 protected AlertInfoParser(Lexer lexer) { argument
60 super(lexer);
77 while (lexer.lookAhead(0) != '\n') {
84 this.lexer.SPorHT();
85 if (this.lexer.lookAhead(0) == '<') {
86 this.lexer.match('<');
87 urlParser = new URLParser((Lexer) this.lexer);
90 this.lexer
[all...]
H A DAllowEventsParser.java54 * @param lexer the lexer to use to parse the header
56 protected AllowEventsParser(Lexer lexer) { argument
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) == ',') {
85 this.lexer
[all...]
H A DAllowParser.java53 * @param lexer the lexer to use to parse the header
55 protected AllowParser(Lexer lexer) { argument
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) == ',') {
84 this.lexer
[all...]
H A DAuthenticationInfoParser.java53 * @param lexer the lexer to use to parse the header
55 protected AuthenticationInfoParser(Lexer lexer) { argument
56 super(lexer);
76 this.lexer.SPorHT();
80 this.lexer.SPorHT();
81 while (lexer.lookAhead(0) == ',') {
82 this.lexer.match(',');
83 this.lexer.SPorHT();
87 this.lexer
[all...]
H A DAuthorizationParser.java53 * @param lexer Lexer to set
55 protected AuthorizationParser(Lexer lexer) { argument
56 super(lexer);
H A DCSeqParser.java51 protected CSeqParser(Lexer lexer) { argument
52 super(lexer);
59 this.lexer.match(TokenTypes.CSEQ);
60 this.lexer.SPorHT();
61 this.lexer.match(':');
62 this.lexer.SPorHT();
63 String number = this.lexer.number();
65 this.lexer.SPorHT();
71 this.lexer.SPorHT();
72 this.lexer
[all...]
H A DCallIDParser.java51 * @param lexer Lexer to set
53 protected CallIDParser(Lexer lexer) { argument
54 super(lexer);
66 this.lexer.match(TokenTypes.CALL_ID);
67 this.lexer.SPorHT();
68 this.lexer.match(':');
69 this.lexer.SPorHT();
73 this.lexer.SPorHT();
74 String rest = lexer.getRest();
H A DCallInfoParser.java53 * @param lexer the lexer to use to parse the header
55 protected CallInfoParser(Lexer lexer) { argument
56 super(lexer);
72 while (lexer.lookAhead(0) != '\n') {
76 this.lexer.SPorHT();
77 this.lexer.match('<');
78 URLParser urlParser=new URLParser((Lexer)this.lexer);
81 this.lexer.match('>');
82 this.lexer
[all...]
H A DContactParser.java49 protected ContactParser(Lexer lexer) { argument
50 super(lexer);
51 this.lexer = lexer;
60 if (lexer.lookAhead(0) == '*') {
61 final char next = lexer.lookAhead(1);
63 this.lexer.match('*');
72 this.lexer.SPorHT();
73 char la = lexer.lookAhead(0);
75 this.lexer
[all...]
H A DContentDispositionParser.java54 * @param lexer the lexer to use to parse the header
56 protected ContentDispositionParser(Lexer lexer) { argument
57 super(lexer);
76 this.lexer.SPorHT();
77 this.lexer.match(TokenTypes.ID);
79 Token token = lexer.getNextToken();
81 this.lexer.SPorHT();
84 this.lexer.SPorHT();
85 this.lexer
[all...]
H A DContentEncodingParser.java56 * @param lexer the lexer to use to parse the header
58 protected ContentEncodingParser(Lexer lexer) { argument
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();
89 while (lexer
[all...]
H A DContentLanguageParser.java54 * @param lexer the lexer to use to parse the header
56 protected ContentLanguageParser(Lexer lexer) { argument
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();
83 while (lexer
[all...]
H A DContentLengthParser.java48 protected ContentLengthParser(Lexer lexer) { argument
49 super(lexer);
58 String number = this.lexer.number();
60 this.lexer.SPorHT();
61 this.lexer.match('\n');
H A DContentTypeParser.java52 protected ContentTypeParser(Lexer lexer) { argument
53 super(lexer);
66 lexer.match(TokenTypes.ID);
67 Token type = lexer.getNextToken();
68 this.lexer.SPorHT();
72 lexer.match('/');
73 lexer.match(TokenTypes.ID);
74 Token subType = lexer.getNextToken();
75 this.lexer.SPorHT();
78 this.lexer
[all...]
H A DDateParser.java47 protected DateParser(Lexer lexer) { argument
48 super(lexer);
62 lexer.match(',');
63 lexer.match(' ');
65 lexer.match(' ');
67 lexer.match(' ');
68 String tzone = this.lexer.ttoken().toLowerCase();
71 this.lexer.match('\n');
H A DErrorInfoParser.java54 * @param lexer the lexer to use to parse the header
56 protected ErrorInfoParser(Lexer lexer) { argument
57 super(lexer);
74 while (lexer.lookAhead(0) != '\n') {
79 this.lexer.SPorHT();
80 this.lexer.match('<');
81 URLParser urlParser = new URLParser((Lexer) this.lexer);
84 this.lexer.match('>');
85 this.lexer
[all...]

Completed in 1404 milliseconds

12345