Home
last modified time | relevance | path

Searched full:parser (Results 1 – 25 of 5351) sorted by relevance

12345678910>>...215

/third_party/curl/lib/
Dftplistparser.c226 struct ftp_parselist_data *parser = *parserp; in Curl_ftp_parselist_data_free() local
227 if(parser) in Curl_ftp_parselist_data_free()
228 Curl_fileinfo_cleanup(parser->file_data); in Curl_ftp_parselist_data_free()
229 free(parser); in Curl_ftp_parselist_data_free()
314 struct ftp_parselist_data *parser = ftpwc->parser; in ftp_pl_insert_finfo() local
320 finfo->filename = str + parser->offsets.filename; in ftp_pl_insert_finfo()
321 finfo->strings.group = parser->offsets.group ? in ftp_pl_insert_finfo()
322 str + parser->offsets.group : NULL; in ftp_pl_insert_finfo()
323 finfo->strings.perm = parser->offsets.perm ? in ftp_pl_insert_finfo()
324 str + parser->offsets.perm : NULL; in ftp_pl_insert_finfo()
[all …]
Dhttp1.c43 void Curl_h1_req_parse_init(struct h1_req_parser *parser, size_t max_line_len) in Curl_h1_req_parse_init() argument
45 memset(parser, 0, sizeof(*parser)); in Curl_h1_req_parse_init()
46 parser->max_line_len = max_line_len; in Curl_h1_req_parse_init()
47 Curl_dyn_init(&parser->scratch, max_line_len); in Curl_h1_req_parse_init()
50 void Curl_h1_req_parse_free(struct h1_req_parser *parser) in Curl_h1_req_parse_free() argument
52 if(parser) { in Curl_h1_req_parse_free()
53 Curl_http_req_free(parser->req); in Curl_h1_req_parse_free()
54 Curl_dyn_free(&parser->scratch); in Curl_h1_req_parse_free()
55 parser->req = NULL; in Curl_h1_req_parse_free()
56 parser->done = FALSE; in Curl_h1_req_parse_free()
[all …]
/third_party/skia/third_party/externals/expat/expat/lib/
Dxmlparse.c7 |_| XML parser
235 static void copy_salt_to_sipkey(XML_Parser parser, struct sipkey *key);
298 A parser re-uses these structures, maintaining a list of allocated
432 XML_ACCOUNT_DIRECT, /* bytes directly passed to the Expat parser */
456 typedef enum XML_Error PTRCALL Processor(XML_Parser parser, const char *start,
478 static enum XML_Error handleUnknownEncoding(XML_Parser parser,
480 static enum XML_Error processXmlDecl(XML_Parser parser, int isGeneralTextEntity,
482 static enum XML_Error initializeEncoding(XML_Parser parser);
483 static enum XML_Error doProlog(XML_Parser parser, const ENCODING *enc,
488 static enum XML_Error processEntity(XML_Parser parser, ENTITY *entity,
[all …]
/third_party/python/Modules/expat/
Dxmlparse.c7 |_| XML parser
219 static void copy_salt_to_sipkey(XML_Parser parser, struct sipkey *key);
282 A parser re-uses these structures, maintaining a list of allocated
405 XML_ACCOUNT_DIRECT, /* bytes directly passed to the Expat parser */
429 typedef enum XML_Error PTRCALL Processor(XML_Parser parser, const char *start,
451 static enum XML_Error handleUnknownEncoding(XML_Parser parser,
453 static enum XML_Error processXmlDecl(XML_Parser parser, int isGeneralTextEntity,
455 static enum XML_Error initializeEncoding(XML_Parser parser);
456 static enum XML_Error doProlog(XML_Parser parser, const ENCODING *enc,
461 static enum XML_Error processInternalEntity(XML_Parser parser, ENTITY *entity,
[all …]
/third_party/skia/m133/third_party/externals/expat/expat/lib/
Dxmlparse.c7 |_| XML parser
242 static void copy_salt_to_sipkey(XML_Parser parser, struct sipkey *key);
305 A parser reuses these structures, maintaining a list of allocated
439 XML_ACCOUNT_DIRECT, /* bytes directly passed to the Expat parser */
463 typedef enum XML_Error PTRCALL Processor(XML_Parser parser, const char *start,
485 static enum XML_Error handleUnknownEncoding(XML_Parser parser,
487 static enum XML_Error processXmlDecl(XML_Parser parser, int isGeneralTextEntity,
489 static enum XML_Error initializeEncoding(XML_Parser parser);
490 static enum XML_Error doProlog(XML_Parser parser, const ENCODING *enc,
495 static enum XML_Error processEntity(XML_Parser parser, ENTITY *entity,
[all …]
/third_party/nghttp2/third-party/llhttp/src/
Dapi.c7 #define CALLBACK_MAYBE(PARSER, NAME) \ argument
10 settings = (const llhttp_settings_t*) (PARSER)->settings; \
15 err = settings->NAME((PARSER)); \
18 #define SPAN_CALLBACK_MAYBE(PARSER, NAME, START, LEN) \ argument
21 settings = (const llhttp_settings_t*) (PARSER)->settings; \
26 err = settings->NAME((PARSER), (START), (LEN)); \
29 llhttp_set_error_reason((PARSER), "Span callback error in " #NAME); \
33 void llhttp_init(llhttp_t* parser, llhttp_type_t type, in llhttp_init() argument
35 llhttp__internal_init(parser); in llhttp_init()
37 parser->type = type; in llhttp_init()
[all …]
Dhttp.c8 int llhttp_message_needs_eof(const llhttp_t* parser);
9 int llhttp_should_keep_alive(const llhttp_t* parser);
11 int llhttp__before_headers_complete(llhttp_t* parser, const char* p, in llhttp__before_headers_complete() argument
14 if ((parser->flags & F_UPGRADE) && in llhttp__before_headers_complete()
15 (parser->flags & F_CONNECTION_UPGRADE)) { in llhttp__before_headers_complete()
20 parser->upgrade = in llhttp__before_headers_complete()
21 (parser->type == HTTP_REQUEST || parser->status_code == 101); in llhttp__before_headers_complete()
23 parser->upgrade = (parser->method == HTTP_CONNECT); in llhttp__before_headers_complete()
37 int llhttp__after_headers_complete(llhttp_t* parser, const char* p, in llhttp__after_headers_complete() argument
41 hasBody = parser->flags & F_CHUNKED || parser->content_length > 0; in llhttp__after_headers_complete()
[all …]
/third_party/grpc/src/core/util/http_client/
Dparser.cc19 #include "src/core/util/http_client/parser.h"
38 static grpc_error_handle handle_response_line(grpc_http_parser* parser) { in handle_response_line() argument
39 uint8_t* beg = parser->cur_line; in handle_response_line()
41 uint8_t* end = beg + parser->cur_line_length; in handle_response_line()
79 parser->http.response->status = in handle_response_line()
90 static grpc_error_handle handle_request_line(grpc_http_parser* parser) { in handle_request_line() argument
91 uint8_t* beg = parser->cur_line; in handle_request_line()
93 uint8_t* end = beg + parser->cur_line_length; in handle_request_line()
102 parser->http.request->method = in handle_request_line()
111 parser->http.request->path = buf2str(beg, static_cast<size_t>(cur - beg - 1)); in handle_request_line()
[all …]
/third_party/mesa3d/src/compiler/glsl/glcpp/
Dglcpp-parse.y46 yyerror(YYLTYPE *locp, glcpp_parser_t *parser, const char *error);
49 _define_object_macro(glcpp_parser_t *parser,
55 _define_function_macro(glcpp_parser_t *parser,
62 _string_list_create(glcpp_parser_t *parser);
65 _string_list_append_item(glcpp_parser_t *parser, string_list_t *list,
81 _argument_list_create(glcpp_parser_t *parser);
84 _argument_list_append(glcpp_parser_t *parser, argument_list_t *list,
94 _token_create_str(glcpp_parser_t *parser, int type, char *str);
97 _token_create_ival(glcpp_parser_t *parser, int type, int ival);
100 _token_list_create(glcpp_parser_t *parser);
[all …]
/third_party/vk-gl-cts/external/amber/src/src/amberscript/
Dparser_run_test.cc16 #include "src/amberscript/parser.h"
38 Parser parser; in TEST_F() local
39 Result r = parser.Parse(in); in TEST_F()
42 auto script = parser.GetScript(); in TEST_F()
56 Parser parser; in TEST_F() local
57 Result r = parser.Parse(in); in TEST_F()
65 Parser parser; in TEST_F() local
66 Result r = parser.Parse(in); in TEST_F()
85 Parser parser; in TEST_F() local
86 Result r = parser.Parse(in); in TEST_F()
[all …]
Dparser_struct_test.cc16 #include "src/amberscript/parser.h"
32 Parser parser; in TEST_F() local
33 Result r = parser.Parse(in); in TEST_F()
36 auto script = parser.GetScript(); in TEST_F()
80 Parser parser; in TEST_F() local
81 Result r = parser.Parse(in); in TEST_F()
92 Parser parser; in TEST_F() local
93 Result r = parser.Parse(in); in TEST_F()
96 auto script = parser.GetScript(); in TEST_F()
112 Parser parser; in TEST_F() local
[all …]
Dparser_shader_test.cc16 #include "src/amberscript/parser.h"
27 Parser parser; in TEST_F() local
28 Result r = parser.Parse(in); in TEST_F()
31 auto script = parser.GetScript(); in TEST_F()
45 Parser parser; in TEST_F() local
46 Result r = parser.Parse(in); in TEST_F()
54 Parser parser; in TEST_F() local
55 Result r = parser.Parse(in); in TEST_F()
63 Parser parser; in TEST_F() local
64 Result r = parser.Parse(in); in TEST_F()
[all …]
Dparser_bind_test.cc16 #include "src/amberscript/parser.h"
38 Parser parser; in TEST_F() local
39 Result r = parser.Parse(in); in TEST_F()
42 auto script = parser.GetScript(); in TEST_F()
75 Parser parser; in TEST_F() local
76 Result r = parser.Parse(in); in TEST_F()
96 Parser parser; in TEST_F() local
97 Result r = parser.Parse(in); in TEST_F()
116 Parser parser; in TEST_F() local
117 Result r = parser.Parse(in); in TEST_F()
[all …]
Dparser_image_test.cc16 #include "src/amberscript/parser.h"
28 Parser parser; in TEST_F() local
29 Result r = parser.Parse(in); in TEST_F()
39 Parser parser; in TEST_F() local
40 Result r = parser.Parse(in); in TEST_F()
50 Parser parser; in TEST_F() local
51 Result r = parser.Parse(in); in TEST_F()
61 Parser parser; in TEST_F() local
62 Result r = parser.Parse(in); in TEST_F()
72 Parser parser; in TEST_F() local
[all …]
Dparser_expect_test.cc16 #include "src/amberscript/parser.h"
40 Parser parser; in TEST_F() local
41 Result r = parser.Parse(in); in TEST_F()
44 auto script = parser.GetScript(); in TEST_F()
82 Parser parser; in TEST_F() local
83 Result r = parser.Parse(in); in TEST_F()
86 auto script = parser.GetScript(); in TEST_F()
125 Parser parser; in TEST_F() local
126 Result r = parser.Parse(in); in TEST_F()
148 Parser parser; in TEST_F() local
[all …]
Dparser_attach_test.cc16 #include "src/amberscript/parser.h"
29 Parser parser; in TEST_F() local
30 Result r = parser.Parse(in); in TEST_F()
43 Parser parser; in TEST_F() local
44 Result r = parser.Parse(in); in TEST_F()
54 Parser parser; in TEST_F() local
55 Result r = parser.Parse(in); in TEST_F()
67 Parser parser; in TEST_F() local
68 Result r = parser.Parse(in); in TEST_F()
80 Parser parser; in TEST_F() local
[all …]
/third_party/python/Parser/
Dpegen.h81 } Parser; typedef
120 // Internal parser functions
126 int _PyPegen_insert_memo(Parser *p, int mark, int type, void *node);
127 int _PyPegen_update_memo(Parser *p, int mark, int type, void *node);
128 int _PyPegen_is_memoized(Parser *p, int type, void *pres);
130 int _PyPegen_lookahead_with_name(int, expr_ty (func)(Parser *), Parser *);
131 int _PyPegen_lookahead_with_int(int, Token *(func)(Parser *, int), Parser *, int);
132 int _PyPegen_lookahead_with_string(int , expr_ty (func)(Parser *, const char*), Parser *, const cha…
133 int _PyPegen_lookahead(int, void *(func)(Parser *), Parser *);
135 Token *_PyPegen_expect_token(Parser *p, int type);
[all …]
/third_party/typescript/tests/baselines/reference/
Dparser.numericSeparators.unicodeEscape.symbols1 === tests/cases/conformance/parser/ecmascript2021/numericSeparators/1.ts ===
5 === tests/cases/conformance/parser/ecmascript2021/numericSeparators/2.ts ===
9 === tests/cases/conformance/parser/ecmascript2021/numericSeparators/3.ts ===
13 === tests/cases/conformance/parser/ecmascript2021/numericSeparators/4.ts ===
17 === tests/cases/conformance/parser/ecmascript2021/numericSeparators/5.ts ===
21 === tests/cases/conformance/parser/ecmascript2021/numericSeparators/6.ts ===
25 === tests/cases/conformance/parser/ecmascript2021/numericSeparators/7.ts ===
29 === tests/cases/conformance/parser/ecmascript2021/numericSeparators/8.ts ===
33 === tests/cases/conformance/parser/ecmascript2021/numericSeparators/9.ts ===
37 === tests/cases/conformance/parser/ecmascript2021/numericSeparators/10.ts ===
[all …]
Dparser.numericSeparators.decmialNegative.symbols1 === tests/cases/conformance/parser/ecmascript2021/numericSeparators/1.ts ===
5 === tests/cases/conformance/parser/ecmascript2021/numericSeparators/2.ts ===
9 === tests/cases/conformance/parser/ecmascript2021/numericSeparators/3.ts ===
13 === tests/cases/conformance/parser/ecmascript2021/numericSeparators/4.ts ===
17 === tests/cases/conformance/parser/ecmascript2021/numericSeparators/5.ts ===
21 === tests/cases/conformance/parser/ecmascript2021/numericSeparators/6.ts ===
25 === tests/cases/conformance/parser/ecmascript2021/numericSeparators/7.ts ===
29 === tests/cases/conformance/parser/ecmascript2021/numericSeparators/8.ts ===
33 === tests/cases/conformance/parser/ecmascript2021/numericSeparators/9.ts ===
37 === tests/cases/conformance/parser/ecmascript2021/numericSeparators/10.ts ===
[all …]
Dparser.numericSeparators.unicodeEscape.errors.txt1 tests/cases/conformance/parser/ecmascript2021/numericSeparators/1.ts(1,7): error TS1199: Unterminat…
2 tests/cases/conformance/parser/ecmascript2021/numericSeparators/10.ts(1,5): error TS1125: Hexadecim…
3 tests/cases/conformance/parser/ecmascript2021/numericSeparators/11.ts(1,5): error TS1125: Hexadecim…
4 tests/cases/conformance/parser/ecmascript2021/numericSeparators/13.ts(1,5): error TS1125: Hexadecim…
5 tests/cases/conformance/parser/ecmascript2021/numericSeparators/14.ts(1,5): error TS1125: Hexadecim…
6 tests/cases/conformance/parser/ecmascript2021/numericSeparators/15.ts(1,5): error TS1125: Hexadecim…
7 tests/cases/conformance/parser/ecmascript2021/numericSeparators/17.ts(1,4): error TS1125: Hexadecim…
8 tests/cases/conformance/parser/ecmascript2021/numericSeparators/18.ts(1,4): error TS1125: Hexadecim…
9 tests/cases/conformance/parser/ecmascript2021/numericSeparators/19.ts(1,4): error TS1125: Hexadecim…
10 tests/cases/conformance/parser/ecmascript2021/numericSeparators/2.ts(1,7): error TS1199: Unterminat…
[all …]
/third_party/python/Lib/test/
Dtest_pyexpat.py20 self.parser = expat.ParserCreate(namespace_separator='!')
23 self.assertIs(self.parser.buffer_text, False)
25 self.parser.buffer_text = x
26 self.assertIs(self.parser.buffer_text, bool(x))
29 self.assertIs(self.parser.namespace_prefixes, False)
31 self.parser.namespace_prefixes = x
32 self.assertIs(self.parser.namespace_prefixes, bool(x))
35 self.assertIs(self.parser.ordered_attributes, False)
37 self.parser.ordered_attributes = x
38 self.assertIs(self.parser.ordered_attributes, bool(x))
[all …]
/third_party/vk-gl-cts/external/amber/src/src/
Dexecutor_test.cc25 #include "src/vkscript/parser.h"
230 Parser parser; in TEST_F() local
231 parser.SkipValidationForTest(); in TEST_F()
232 ASSERT_TRUE(parser.Parse(input).IsSuccess()); in TEST_F()
234 auto script = parser.GetScript(); in TEST_F()
260 Parser parser; in TEST_F() local
261 parser.SkipValidationForTest(); in TEST_F()
262 ASSERT_TRUE(parser.Parse(input).IsSuccess()); in TEST_F()
264 auto script = parser.GetScript(); in TEST_F()
290 Parser parser; in TEST_F() local
[all …]
/third_party/skia/third_party/externals/freetype/src/type1/
Dt1parse.c5 * Type 1 parser (body).
21 * The Type 1 parser is in charge of the following:
59 /***** INPUT STREAM PARSER *****/
135 T1_New_Parser( T1_Parser parser, in T1_New_Parser() argument
145 psaux->ps_parser_funcs->init( &parser->root, NULL, NULL, memory ); in T1_New_Parser()
147 parser->stream = stream; in T1_New_Parser()
148 parser->base_len = 0; in T1_New_Parser()
149 parser->base_dict = NULL; in T1_New_Parser()
150 parser->private_len = 0; in T1_New_Parser()
151 parser->private_dict = NULL; in T1_New_Parser()
[all …]
/third_party/mindspore/mindspore-src/source/mindspore/lite/tools/mslite_bench/mslite_bench/utils/
Darg_parser.py16 input argument parser functions
23 input argument parser functions
28 parser = argparse.ArgumentParser(description='Easy Infer for model benchmark')
29 cls.base_arg_parse(parser)
30 cls.model_arg_parse(parser)
31 cls.task_arg_parse(parser)
32 cls.converter_arg_parse(parser)
33 cls.auto_cmp_arg_parse(parser)
34 args = parser.parse_args()
38 def task_arg_parse(cls, parser): argument
[all …]
/third_party/mindspore/mindspore-src/source/mindspore/python/mindspore/rewrite/parsers/
Dparser_register.py15 """Parser register."""
18 from . import Parser
22 """Parser register."""
40 def reg_parser(parser: Parser): argument
42 Register a 'parser' to current ParserRegister.
45 parser (Parser): An instance of Parser to be registered.
47 if isinstance(parser, Parser):
48 ParserRegister.instance().get_parsers()[parser.target()] = parser
50 def get_parser(self, ast_type: type) -> Optional[Parser]:
52 Get parser from current ParserRegister by type of ast.
[all …]

12345678910>>...215