/external/antlr/antlr-3.4/runtime/C/src/ |
D | antlr3lexer.c | 42 static void mTokens (pANTLR3_LEXER lexer); 43 static void setCharStream (pANTLR3_LEXER lexer, pANTLR3_INPUT_STREAM input); 44 static void pushCharStream (pANTLR3_LEXER lexer, pANTLR3_INPUT_STREAM input); 45 static void popCharStream (pANTLR3_LEXER lexer); 47 static void emitNew (pANTLR3_LEXER lexer, pANTLR3_COMMON_TOKEN token); 48 static pANTLR3_COMMON_TOKEN emit (pANTLR3_LEXER lexer); 49 static ANTLR3_BOOLEAN matchs (pANTLR3_LEXER lexer, ANTLR3_UCHAR * string); 50 static ANTLR3_BOOLEAN matchc (pANTLR3_LEXER lexer, ANTLR3_UCHAR c); 51 static ANTLR3_BOOLEAN matchRange (pANTLR3_LEXER lexer, ANTLR3_UCHAR low, ANTLR3_UCHAR high); 52 static void matchAny (pANTLR3_LEXER lexer); [all …]
|
/external/nist-sip/java/gov/nist/javax/sip/parser/ |
D | ViaParser.java | 47 public ViaParser(Lexer lexer) { in ViaParser() argument 48 super(lexer); in ViaParser() 56 lexer.match(TokenTypes.ID); in parseVia() 57 Token protocolName = lexer.getNextToken(); in parseVia() 59 this.lexer.SPorHT(); in parseVia() 61 lexer.match('/'); in parseVia() 62 this.lexer.SPorHT(); in parseVia() 63 lexer.match(TokenTypes.ID); in parseVia() 64 this.lexer.SPorHT(); in parseVia() 65 Token protocolVersion = lexer.getNextToken(); in parseVia() [all …]
|
D | URLParser.java | 50 this.lexer = new Lexer("sip_urlLexer", url); in URLParser() 54 public URLParser(Lexer lexer) { in URLParser() argument 55 this.lexer = lexer; in URLParser() 56 this.lexer.selectLexer("sip_urlLexer"); in URLParser() 116 char next = lexer.lookAhead(0); in unreserved() 118 lexer.consume(1); in unreserved() 128 int startIdx = lexer.getPtr(); in paramNameOrValue() 129 while (lexer.hasMoreChars()) { in paramNameOrValue() 130 char next = lexer.lookAhead(0); in paramNameOrValue() 143 lexer.consume(1); in paramNameOrValue() [all …]
|
D | WarningParser.java | 63 protected WarningParser(Lexer lexer) { in WarningParser() argument 64 super(lexer); in WarningParser() 82 while (lexer.lookAhead(0) != '\n') { in parse() 87 this.lexer.match(TokenTypes.ID); in parse() 88 Token token = lexer.getNextToken(); in parse() 97 this.lexer.SPorHT(); in parse() 100 this.lexer.match(TokenTypes.ID); in parse() 101 token = lexer.getNextToken(); in parse() 103 if (lexer.lookAhead(0) == ':') { in parse() 104 this.lexer.match(':'); in parse() [all …]
|
D | SubscriptionStateParser.java | 56 protected SubscriptionStateParser(Lexer lexer) { in SubscriptionStateParser() argument 57 super(lexer); in SubscriptionStateParser() 77 lexer.match(TokenTypes.ID); in parse() 78 Token token = lexer.getNextToken(); in parse() 81 while (lexer.lookAhead(0) == ';') { in parse() 82 this.lexer.match(';'); in parse() 83 this.lexer.SPorHT(); in parse() 84 lexer.match(TokenTypes.ID); in parse() 85 token = lexer.getNextToken(); in parse() 88 this.lexer.match('='); in parse() [all …]
|
D | AddressParser.java | 40 public AddressParser(Lexer lexer) { in AddressParser() argument 41 this.lexer = lexer; in AddressParser() 42 this.lexer.selectLexer("charLexer"); in AddressParser() 46 this.lexer = new Lexer("charLexer", address); in AddressParser() 53 if (this.lexer.lookAhead(0) == '<') { in nameAddr() 54 this.lexer.consume(1); in nameAddr() 55 this.lexer.selectLexer("sip_urlLexer"); in nameAddr() 56 this.lexer.SPorHT(); in nameAddr() 57 URLParser uriParser = new URLParser((Lexer) lexer); in nameAddr() 62 this.lexer.SPorHT(); in nameAddr() [all …]
|
D | AcceptLanguageParser.java | 74 protected AcceptLanguageParser(Lexer lexer) { in AcceptLanguageParser() argument 75 super(lexer); in AcceptLanguageParser() 91 while (lexer.lookAhead(0) != '\n') { in parse() 94 if (lexer.lookAhead(0) != ';') { in parse() 96 lexer.match(TokenTypes.ID); in parse() 97 Token value = lexer.getNextToken(); in parse() 101 while (lexer.lookAhead(0) == ';') { in parse() 102 this.lexer.match(';'); in parse() 103 this.lexer.SPorHT(); in parse() 104 this.lexer.match('q'); in parse() [all …]
|
D | RetryAfterParser.java | 58 protected RetryAfterParser(Lexer lexer) { in RetryAfterParser() argument 59 super(lexer); in RetryAfterParser() 77 String value = lexer.number(); in parse() 87 this.lexer.SPorHT(); in parse() 88 if (lexer.lookAhead(0) == '(') { in parse() 89 String comment = this.lexer.comment(); in parse() 92 this.lexer.SPorHT(); in parse() 94 while (lexer.lookAhead(0) == ';') { in parse() 95 this.lexer.match(';'); in parse() 96 this.lexer.SPorHT(); in parse() [all …]
|
D | AcceptEncodingParser.java | 77 protected AcceptEncodingParser(Lexer lexer) { in AcceptEncodingParser() argument 78 super(lexer); in AcceptEncodingParser() 94 if (lexer.lookAhead(0) == '\n') { in parse() 98 while (lexer.lookAhead(0) != '\n') { in parse() 100 if (lexer.lookAhead(0) != ';') { in parse() 102 lexer.match(TokenTypes.ID); in parse() 103 Token value = lexer.getNextToken(); in parse() 107 while (lexer.lookAhead(0) == ';') { in parse() 108 this.lexer.match(';'); in parse() 109 this.lexer.SPorHT(); in parse() [all …]
|
D | InReplyToParser.java | 56 protected InReplyToParser(Lexer lexer) { in InReplyToParser() argument 57 super(lexer); in InReplyToParser() 74 while (lexer.lookAhead(0) != '\n') { in parse() 78 this.lexer.match(TokenTypes.ID); in parse() 79 Token token = lexer.getNextToken(); in parse() 80 if (lexer.lookAhead(0) == '@') { in parse() 81 this.lexer.match('@'); in parse() 82 this.lexer.match(TokenTypes.ID); in parse() 83 Token secToken = lexer.getNextToken(); in parse() 90 this.lexer.SPorHT(); in parse() [all …]
|
D | AcceptParser.java | 56 protected AcceptParser(Lexer lexer) { in AcceptParser() argument 57 super(lexer); in AcceptParser() 77 this.lexer.SPorHT(); in parse() 78 this.lexer.match(TokenTypes.ID); in parse() 79 Token token = lexer.getNextToken(); in parse() 81 this.lexer.match('/'); in parse() 82 this.lexer.match(TokenTypes.ID); in parse() 83 token = lexer.getNextToken(); in parse() 85 this.lexer.SPorHT(); in parse() 90 while (lexer.lookAhead(0) == ',') { in parse() [all …]
|
D | CallInfoParser.java | 55 protected CallInfoParser(Lexer lexer) { in CallInfoParser() argument 56 super(lexer); in CallInfoParser() 72 while (lexer.lookAhead(0) != '\n') { in parse() 76 this.lexer.SPorHT(); in parse() 77 this.lexer.match('<'); in parse() 78 URLParser urlParser=new URLParser((Lexer)this.lexer); in parse() 81 this.lexer.match('>'); in parse() 82 this.lexer.SPorHT(); in parse() 87 while (lexer.lookAhead(0) == ',') { in parse() 88 this.lexer.match(','); in parse() [all …]
|
D | ContentLanguageParser.java | 56 protected ContentLanguageParser(Lexer lexer) { in ContentLanguageParser() argument 57 super(lexer); in ContentLanguageParser() 74 while (lexer.lookAhead(0) != '\n') { in parse() 75 this.lexer.SPorHT(); in parse() 76 this.lexer.match(TokenTypes.ID); in parse() 78 Token token = lexer.getNextToken(); in parse() 80 this.lexer.SPorHT(); in parse() 83 while (lexer.lookAhead(0) == ',') { in parse() 84 this.lexer.match(','); in parse() 85 this.lexer.SPorHT(); in parse() [all …]
|
/external/antlr/antlr-3.4/runtime/Ruby/test/functional/lexer/ |
D | basic.rb | 18 lexer = Zero::Lexer.new( '0' ) 20 token = lexer.next_token 23 token = lexer.next_token 28 lexer = Zero::Lexer.new( '0' ) 30 token_types = lexer.map { |token| token.name } 35 lexer = Zero::Lexer.new( '1' ) 38 token = lexer.next_token 60 lexer = Binary::Lexer.new( '01' ) 62 token = lexer.next_token 65 token = lexer.next_token [all …]
|
/external/antlr/antlr-3.4/runtime/Python/tests/ |
D | t025lexerRulePropertyRef.py | 13 lexer = self.getLexer(stream) 16 token = lexer.nextToken() 20 assert len(lexer.properties) == 3, lexer.properties 22 text, type, line, pos, index, channel, start, stop = lexer.properties[0] 23 assert text == 'foobar', lexer.properties[0] 24 assert type == self.lexerModule.IDENTIFIER, lexer.properties[0] 25 assert line == 1, lexer.properties[0] 26 assert pos == 0, lexer.properties[0] 27 assert index == -1, lexer.properties[0] 28 assert channel == antlr3.DEFAULT_CHANNEL, lexer.properties[0] [all …]
|
/external/nist-sip/java/gov/nist/core/ |
D | HostNameParser.java | 66 this.lexer = new LexerCore("charLexer", hname); in HostNameParser() 75 public HostNameParser(LexerCore lexer) { in HostNameParser() argument 76 this.lexer = lexer; in HostNameParser() 77 lexer.selectLexer("charLexer"); in HostNameParser() 89 lexer.consumeValidChars(VALID_DOMAIN_LABEL_CHAR); in consumeDomainLabel() 104 while (lexer.hasMoreChars()) { in ipv6Reference() 105 char la = lexer.lookAhead(0); in ipv6Reference() 110 lexer.consume(1); in ipv6Reference() 113 lexer.consume(1); in ipv6Reference() 118 lexer.consume(1); in ipv6Reference() [all …]
|
/external/antlr/antlr-3.4/runtime/Ruby/test/functional/parser/ |
D | scopes.rb | 30 lexer = SimpleScope::Lexer.new( 'foobar' ) 31 parser = SimpleScope::Parser.new lexer 178 lexer = LotsaScopes::Lexer.new( "foobar" ) 179 parser = LotsaScopes::Parser.new lexer 184 lexer = LotsaScopes::Lexer.new( "foobar" ) 185 parser = LotsaScopes::Parser.new lexer 190 lexer = LotsaScopes::Lexer.new( "foobar" ) 191 parser = LotsaScopes::Parser.new lexer 196 lexer = LotsaScopes::Lexer.new( <<-END.here_indent! ) 203 parser = LotsaScopes::Parser.new lexer [all …]
|
D | nuances.rb | 28 lexer = EmptyAlt::Lexer.new( 'foo' ) 29 parser = EmptyAlt::Parser.new lexer 58 lexer = Subrule::Lexer.new( 'BEGIN A END' ) 59 parser = Subrule::Parser.new lexer 95 lexer = SpecialStates::Lexer.new 'foo' 96 parser = SpecialStates::Parser.new lexer 101 lexer = SpecialStates::Lexer.new 'foo name1' 102 parser = SpecialStates::Parser.new lexer 107 lexer = SpecialStates::Lexer.new 'bar name1' 108 parser = SpecialStates::Parser.new lexer [all …]
|
D | basic.rb | 38 lexer = Identifiers::Lexer.new( input ) 39 tokens = ANTLR3::CommonTokenStream.new( lexer ) 51 lexer = Identifiers::Lexer.new( '' ) 52 parser = Identifiers::Parser.new( lexer ) 116 lexer = SimpleLanguage::Lexer.new( "var foobar; gnarz(); var blupp; flupp ( ) ;" ) 117 parser = SimpleLanguage::Parser.new( lexer ) 131 lexer = SimpleLanguage::Lexer.new( 'var; foo()' ) 132 parser = SimpleLanguage::Parser.new( lexer ) 141 lexer = SimpleLanguage::Lexer.new( 'gnarz(; flupp();' ) 142 parser = SimpleLanguage::Parser.new( lexer ) [all …]
|
/external/antlr/antlr-3.4/runtime/Ruby/test/functional/ast-output/ |
D | 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" ) 1044 tokens = ANTLR3::CommonTokenStream.new( lexer ) 1056 lexer = AvoidDup::Lexer.new( "abc" ) 1057 tokens = ANTLR3::CommonTokenStream.new( lexer ) [all …]
|
/external/qemu/ |
D | json-lexer.c | 267 void json_lexer_init(JSONLexer *lexer, JSONLexerEmitter func) in json_lexer_init() argument 269 lexer->emit = func; in json_lexer_init() 270 lexer->state = IN_START; in json_lexer_init() 271 lexer->token = qstring_new(); in json_lexer_init() 272 lexer->x = lexer->y = 0; in json_lexer_init() 275 static int json_lexer_feed_char(JSONLexer *lexer, char ch) in json_lexer_feed_char() argument 279 lexer->x++; in json_lexer_feed_char() 281 lexer->x = 0; in json_lexer_feed_char() 282 lexer->y++; in json_lexer_feed_char() 286 new_state = json_lexer[lexer->state][(uint8_t)ch]; in json_lexer_feed_char() [all …]
|
/external/antlr/antlr-3.4/runtime/C/include/ |
D | antlr3lexer.h | 110 void (*setCharStream) (struct ANTLR3_LEXER_struct * lexer, pANTLR3_INPUT_STREAM input); 116 void (*pushCharStream) (struct ANTLR3_LEXER_struct * lexer, pANTLR3_INPUT_STREAM input); 121 void (*popCharStream) (struct ANTLR3_LEXER_struct * lexer); 126 void (*emitNew) (struct ANTLR3_LEXER_struct * lexer, pANTLR3_COMMON_TOKEN token); 130 pANTLR3_COMMON_TOKEN (*emit) (struct ANTLR3_LEXER_struct * lexer); 145 ANTLR3_BOOLEAN (*matchs) (struct ANTLR3_LEXER_struct * lexer, ANTLR3_UCHAR * string); 152 ANTLR3_BOOLEAN (*matchc) (struct ANTLR3_LEXER_struct * lexer, ANTLR3_UCHAR c); 158 …ANTLR3_BOOLEAN (*matchRange) (struct ANTLR3_LEXER_struct * lexer, ANTLR3_UCHAR low, ANTLR3_UCH… 163 void (*matchAny) (struct ANTLR3_LEXER_struct * lexer); 169 void (*recover) (struct ANTLR3_LEXER_struct * lexer); [all …]
|
/external/antlr/antlr-3.4/runtime/Ruby/test/functional/tree-parser/ |
D | 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" ) 146 tokens = ANTLR3::CommonTokenStream.new( lexer ) 182 lexer = CyclicDFALookahead::Lexer.new( "a 1 2 3." ) 183 tokens = ANTLR3::CommonTokenStream.new( lexer ) [all …]
|
/external/nist-sip/java/gov/nist/javax/sip/parser/ims/ |
D | SecurityAgreeParser.java | 61 protected SecurityAgreeParser(Lexer lexer) { in SecurityAgreeParser() argument 62 super(lexer); in SecurityAgreeParser() 98 this.lexer.SPorHT(); in parse() 99 lexer.match(TokenTypes.ID); in parse() 100 Token type = lexer.getNextToken(); in parse() 102 this.lexer.SPorHT(); in parse() 104 char la = lexer.lookAhead(0); in parse() 111 this.lexer.match(';'); in parse() 113 this.lexer.SPorHT(); in parse() 117 while (lexer.lookAhead(0) != '\n') { in parse() [all …]
|
D | PVisitedNetworkIDParser.java | 71 protected PVisitedNetworkIDParser(Lexer lexer) { in PVisitedNetworkIDParser() argument 72 super(lexer); in PVisitedNetworkIDParser() 87 this.lexer.match(TokenTypes.P_VISITED_NETWORK_ID); in parse() 88 this.lexer.SPorHT(); in parse() 89 this.lexer.match(':'); in parse() 90 this.lexer.SPorHT(); in parse() 96 if (this.lexer.lookAhead(0) == '\"') in parse() 103 this.lexer.SPorHT(); in parse() 104 char la = lexer.lookAhead(0); in parse() 106 this.lexer.match(','); in parse() [all …]
|