|
|
@ -13327,7 +13327,7 @@ static void capture_suspend(upb_json_parser *p, const char **ptr) { |
|
|
|
if (multipart_text(p, p->capture, *ptr - p->capture, false)) { |
|
|
|
if (multipart_text(p, p->capture, *ptr - p->capture, false)) { |
|
|
|
/* We use this as a signal that we were in the middle of capturing, and
|
|
|
|
/* We use this as a signal that we were in the middle of capturing, and
|
|
|
|
* that capturing should resume at the beginning of the next buffer. |
|
|
|
* that capturing should resume at the beginning of the next buffer. |
|
|
|
*
|
|
|
|
* |
|
|
|
* We can't use *ptr here, because we have no guarantee that this pointer |
|
|
|
* We can't use *ptr here, because we have no guarantee that this pointer |
|
|
|
* will be valid when we resume (if the underlying memory is freed, then |
|
|
|
* will be valid when we resume (if the underlying memory is freed, then |
|
|
|
* using the pointer at all, even to compare to NULL, is likely undefined |
|
|
|
* using the pointer at all, even to compare to NULL, is likely undefined |
|
|
@ -13877,7 +13877,7 @@ static bool end_any_stringval(upb_json_parser *p) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
json_parser_any_frame_set_payload_type(p, p->top->any_frame, payload_type); |
|
|
|
json_parser_any_frame_set_payload_type(p, p->top->any_frame, payload_type); |
|
|
|
|
|
|
|
|
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
upb_status_seterrf( |
|
|
|
upb_status_seterrf( |
|
|
@ -15134,242 +15134,242 @@ static bool is_fieldmask_object(upb_json_parser *p) { |
|
|
|
|
|
|
|
|
|
|
|
#line 2556 "upb/json/parser.c" |
|
|
|
#line 2556 "upb/json/parser.c" |
|
|
|
static const char _json_actions[] = { |
|
|
|
static const char _json_actions[] = { |
|
|
|
0, 1, 0, 1, 1, 1, 3, 1,
|
|
|
|
0, 1, 0, 1, 1, 1, 3, 1, |
|
|
|
4, 1, 6, 1, 7, 1, 8, 1,
|
|
|
|
4, 1, 6, 1, 7, 1, 8, 1, |
|
|
|
9, 1, 10, 1, 11, 1, 12, 1,
|
|
|
|
9, 1, 10, 1, 11, 1, 12, 1, |
|
|
|
13, 1, 24, 1, 26, 1, 28, 1,
|
|
|
|
13, 1, 24, 1, 26, 1, 28, 1, |
|
|
|
29, 1, 31, 1, 32, 1, 33, 1,
|
|
|
|
29, 1, 31, 1, 32, 1, 33, 1, |
|
|
|
35, 1, 37, 1, 38, 1, 39, 1,
|
|
|
|
35, 1, 37, 1, 38, 1, 39, 1, |
|
|
|
40, 1, 42, 1, 43, 2, 4, 9,
|
|
|
|
40, 1, 42, 1, 43, 2, 4, 9, |
|
|
|
2, 5, 6, 2, 7, 3, 2, 7,
|
|
|
|
2, 5, 6, 2, 7, 3, 2, 7, |
|
|
|
9, 2, 14, 15, 2, 16, 17, 2,
|
|
|
|
9, 2, 14, 15, 2, 16, 17, 2, |
|
|
|
18, 19, 2, 21, 23, 2, 22, 20,
|
|
|
|
18, 19, 2, 21, 23, 2, 22, 20, |
|
|
|
2, 27, 25, 2, 29, 31, 2, 34,
|
|
|
|
2, 27, 25, 2, 29, 31, 2, 34, |
|
|
|
2, 2, 35, 43, 2, 36, 25, 2,
|
|
|
|
2, 2, 35, 43, 2, 36, 25, 2, |
|
|
|
38, 43, 2, 39, 43, 2, 40, 43,
|
|
|
|
38, 43, 2, 39, 43, 2, 40, 43, |
|
|
|
2, 41, 30, 2, 42, 43, 3, 21,
|
|
|
|
2, 41, 30, 2, 42, 43, 3, 21, |
|
|
|
23, 24, 4, 14, 15, 16, 17 |
|
|
|
23, 24, 4, 14, 15, 16, 17 |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
static const short _json_key_offsets[] = { |
|
|
|
static const short _json_key_offsets[] = { |
|
|
|
0, 0, 12, 13, 18, 23, 28, 29,
|
|
|
|
0, 0, 12, 13, 18, 23, 28, 29, |
|
|
|
30, 31, 32, 33, 34, 35, 36, 37,
|
|
|
|
30, 31, 32, 33, 34, 35, 36, 37, |
|
|
|
38, 43, 44, 48, 53, 58, 63, 67,
|
|
|
|
38, 43, 44, 48, 53, 58, 63, 67, |
|
|
|
71, 74, 77, 79, 83, 87, 89, 91,
|
|
|
|
71, 74, 77, 79, 83, 87, 89, 91, |
|
|
|
96, 98, 100, 109, 115, 121, 127, 133,
|
|
|
|
96, 98, 100, 109, 115, 121, 127, 133, |
|
|
|
135, 139, 142, 144, 146, 149, 150, 154,
|
|
|
|
135, 139, 142, 144, 146, 149, 150, 154, |
|
|
|
156, 158, 160, 162, 163, 165, 167, 168,
|
|
|
|
156, 158, 160, 162, 163, 165, 167, 168, |
|
|
|
170, 172, 173, 175, 177, 178, 180, 182,
|
|
|
|
170, 172, 173, 175, 177, 178, 180, 182, |
|
|
|
183, 185, 187, 191, 193, 195, 196, 197,
|
|
|
|
183, 185, 187, 191, 193, 195, 196, 197, |
|
|
|
198, 199, 201, 206, 208, 210, 212, 221,
|
|
|
|
198, 199, 201, 206, 208, 210, 212, 221, |
|
|
|
222, 222, 222, 227, 232, 237, 238, 239,
|
|
|
|
222, 222, 222, 227, 232, 237, 238, 239, |
|
|
|
240, 241, 241, 242, 243, 244, 244, 245,
|
|
|
|
240, 241, 241, 242, 243, 244, 244, 245, |
|
|
|
246, 247, 247, 252, 253, 257, 262, 267,
|
|
|
|
246, 247, 247, 252, 253, 257, 262, 267, |
|
|
|
272, 276, 276, 279, 282, 285, 288, 291,
|
|
|
|
272, 276, 276, 279, 282, 285, 288, 291, |
|
|
|
294, 294, 294, 294, 294, 294 |
|
|
|
294, 294, 294, 294, 294, 294 |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
static const char _json_trans_keys[] = { |
|
|
|
static const char _json_trans_keys[] = { |
|
|
|
32, 34, 45, 91, 102, 110, 116, 123,
|
|
|
|
32, 34, 45, 91, 102, 110, 116, 123, |
|
|
|
9, 13, 48, 57, 34, 32, 93, 125,
|
|
|
|
9, 13, 48, 57, 34, 32, 93, 125, |
|
|
|
9, 13, 32, 44, 93, 9, 13, 32,
|
|
|
|
9, 13, 32, 44, 93, 9, 13, 32, |
|
|
|
93, 125, 9, 13, 97, 108, 115, 101,
|
|
|
|
93, 125, 9, 13, 97, 108, 115, 101, |
|
|
|
117, 108, 108, 114, 117, 101, 32, 34,
|
|
|
|
117, 108, 108, 114, 117, 101, 32, 34, |
|
|
|
125, 9, 13, 34, 32, 58, 9, 13,
|
|
|
|
125, 9, 13, 34, 32, 58, 9, 13, |
|
|
|
32, 93, 125, 9, 13, 32, 44, 125,
|
|
|
|
32, 93, 125, 9, 13, 32, 44, 125, |
|
|
|
9, 13, 32, 44, 125, 9, 13, 32,
|
|
|
|
9, 13, 32, 44, 125, 9, 13, 32, |
|
|
|
34, 9, 13, 45, 48, 49, 57, 48,
|
|
|
|
34, 9, 13, 45, 48, 49, 57, 48, |
|
|
|
49, 57, 46, 69, 101, 48, 57, 69,
|
|
|
|
49, 57, 46, 69, 101, 48, 57, 69, |
|
|
|
101, 48, 57, 43, 45, 48, 57, 48,
|
|
|
|
101, 48, 57, 43, 45, 48, 57, 48, |
|
|
|
57, 48, 57, 46, 69, 101, 48, 57,
|
|
|
|
57, 48, 57, 46, 69, 101, 48, 57, |
|
|
|
34, 92, 34, 92, 34, 47, 92, 98,
|
|
|
|
34, 92, 34, 92, 34, 47, 92, 98, |
|
|
|
102, 110, 114, 116, 117, 48, 57, 65,
|
|
|
|
102, 110, 114, 116, 117, 48, 57, 65, |
|
|
|
70, 97, 102, 48, 57, 65, 70, 97,
|
|
|
|
70, 97, 102, 48, 57, 65, 70, 97, |
|
|
|
102, 48, 57, 65, 70, 97, 102, 48,
|
|
|
|
102, 48, 57, 65, 70, 97, 102, 48, |
|
|
|
57, 65, 70, 97, 102, 34, 92, 45,
|
|
|
|
57, 65, 70, 97, 102, 34, 92, 45, |
|
|
|
48, 49, 57, 48, 49, 57, 46, 115,
|
|
|
|
48, 49, 57, 48, 49, 57, 46, 115, |
|
|
|
48, 57, 115, 48, 57, 34, 46, 115,
|
|
|
|
48, 57, 115, 48, 57, 34, 46, 115, |
|
|
|
48, 57, 48, 57, 48, 57, 48, 57,
|
|
|
|
48, 57, 48, 57, 48, 57, 48, 57, |
|
|
|
48, 57, 45, 48, 57, 48, 57, 45,
|
|
|
|
48, 57, 45, 48, 57, 48, 57, 45, |
|
|
|
48, 57, 48, 57, 84, 48, 57, 48,
|
|
|
|
48, 57, 48, 57, 84, 48, 57, 48, |
|
|
|
57, 58, 48, 57, 48, 57, 58, 48,
|
|
|
|
57, 58, 48, 57, 48, 57, 58, 48, |
|
|
|
57, 48, 57, 43, 45, 46, 90, 48,
|
|
|
|
57, 48, 57, 43, 45, 46, 90, 48, |
|
|
|
57, 48, 57, 58, 48, 48, 34, 48,
|
|
|
|
57, 48, 57, 58, 48, 48, 34, 48, |
|
|
|
57, 43, 45, 90, 48, 57, 34, 44,
|
|
|
|
57, 43, 45, 90, 48, 57, 34, 44, |
|
|
|
34, 44, 34, 44, 34, 45, 91, 102,
|
|
|
|
34, 44, 34, 44, 34, 45, 91, 102, |
|
|
|
110, 116, 123, 48, 57, 34, 32, 93,
|
|
|
|
110, 116, 123, 48, 57, 34, 32, 93, |
|
|
|
125, 9, 13, 32, 44, 93, 9, 13,
|
|
|
|
125, 9, 13, 32, 44, 93, 9, 13, |
|
|
|
32, 93, 125, 9, 13, 97, 108, 115,
|
|
|
|
32, 93, 125, 9, 13, 97, 108, 115, |
|
|
|
101, 117, 108, 108, 114, 117, 101, 32,
|
|
|
|
101, 117, 108, 108, 114, 117, 101, 32, |
|
|
|
34, 125, 9, 13, 34, 32, 58, 9,
|
|
|
|
34, 125, 9, 13, 34, 32, 58, 9, |
|
|
|
13, 32, 93, 125, 9, 13, 32, 44,
|
|
|
|
13, 32, 93, 125, 9, 13, 32, 44, |
|
|
|
125, 9, 13, 32, 44, 125, 9, 13,
|
|
|
|
125, 9, 13, 32, 44, 125, 9, 13, |
|
|
|
32, 34, 9, 13, 32, 9, 13, 32,
|
|
|
|
32, 34, 9, 13, 32, 9, 13, 32, |
|
|
|
9, 13, 32, 9, 13, 32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|
1, 0, 1, 1, 1, 1, 1, 1, |
|
|
|
0, 0, 0, 0, 0, 0 |
|
|
|
0, 0, 0, 0, 0, 0 |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
static const short _json_index_offsets[] = { |
|
|
|
static const short _json_index_offsets[] = { |
|
|
|
0, 0, 11, 13, 18, 23, 28, 30,
|
|
|
|
0, 0, 11, 13, 18, 23, 28, 30, |
|
|
|
32, 34, 36, 38, 40, 42, 44, 46,
|
|
|
|
32, 34, 36, 38, 40, 42, 44, 46, |
|
|
|
48, 53, 55, 59, 64, 69, 74, 78,
|
|
|
|
48, 53, 55, 59, 64, 69, 74, 78, |
|
|
|
82, 85, 89, 91, 95, 99, 101, 103,
|
|
|
|
82, 85, 89, 91, 95, 99, 101, 103, |
|
|
|
108, 111, 114, 124, 128, 132, 136, 140,
|
|
|
|
108, 111, 114, 124, 128, 132, 136, 140, |
|
|
|
143, 147, 150, 153, 155, 158, 160, 164,
|
|
|
|
143, 147, 150, 153, 155, 158, 160, 164, |
|
|
|
166, 168, 170, 172, 174, 176, 178, 180,
|
|
|
|
166, 168, 170, 172, 174, 176, 178, 180, |
|
|
|
182, 184, 186, 188, 190, 192, 194, 196,
|
|
|
|
182, 184, 186, 188, 190, 192, 194, 196, |
|
|
|
198, 200, 202, 207, 209, 211, 213, 215,
|
|
|
|
198, 200, 202, 207, 209, 211, 213, 215, |
|
|
|
217, 219, 221, 226, 229, 232, 235, 244,
|
|
|
|
217, 219, 221, 226, 229, 232, 235, 244, |
|
|
|
246, 247, 248, 253, 258, 263, 265, 267,
|
|
|
|
246, 247, 248, 253, 258, 263, 265, 267, |
|
|
|
269, 271, 272, 274, 276, 278, 279, 281,
|
|
|
|
269, 271, 272, 274, 276, 278, 279, 281, |
|
|
|
283, 285, 286, 291, 293, 297, 302, 307,
|
|
|
|
283, 285, 286, 291, 293, 297, 302, 307, |
|
|
|
312, 316, 317, 320, 323, 326, 329, 332,
|
|
|
|
312, 316, 317, 320, 323, 326, 329, 332, |
|
|
|
335, 336, 337, 338, 339, 340 |
|
|
|
335, 336, 337, 338, 339, 340 |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
static const unsigned char _json_indicies[] = { |
|
|
|
static const unsigned char _json_indicies[] = { |
|
|
|
0, 2, 3, 4, 5, 6, 7, 8,
|
|
|
|
0, 2, 3, 4, 5, 6, 7, 8, |
|
|
|
0, 3, 1, 9, 1, 11, 12, 1,
|
|
|
|
0, 3, 1, 9, 1, 11, 12, 1, |
|
|
|
11, 10, 13, 14, 12, 13, 1, 14,
|
|
|
|
11, 10, 13, 14, 12, 13, 1, 14, |
|
|
|
1, 1, 14, 10, 15, 1, 16, 1,
|
|
|
|
1, 1, 14, 10, 15, 1, 16, 1, |
|
|
|
17, 1, 18, 1, 19, 1, 20, 1,
|
|
|
|
17, 1, 18, 1, 19, 1, 20, 1, |
|
|
|
21, 1, 22, 1, 23, 1, 24, 1,
|
|
|
|
21, 1, 22, 1, 23, 1, 24, 1, |
|
|
|
25, 26, 27, 25, 1, 28, 1, 29,
|
|
|
|
25, 26, 27, 25, 1, 28, 1, 29, |
|
|
|
30, 29, 1, 30, 1, 1, 30, 31,
|
|
|
|
30, 29, 1, 30, 1, 1, 30, 31, |
|
|
|
32, 33, 34, 32, 1, 35, 36, 27,
|
|
|
|
32, 33, 34, 32, 1, 35, 36, 27, |
|
|
|
35, 1, 36, 26, 36, 1, 37, 38,
|
|
|
|
35, 1, 36, 26, 36, 1, 37, 38, |
|
|
|
39, 1, 38, 39, 1, 41, 42, 42,
|
|
|
|
39, 1, 38, 39, 1, 41, 42, 42, |
|
|
|
40, 43, 1, 42, 42, 43, 40, 44,
|
|
|
|
40, 43, 1, 42, 42, 43, 40, 44, |
|
|
|
44, 45, 1, 45, 1, 45, 40, 41,
|
|
|
|
44, 45, 1, 45, 1, 45, 40, 41, |
|
|
|
42, 42, 39, 40, 47, 48, 46, 50,
|
|
|
|
42, 42, 39, 40, 47, 48, 46, 50, |
|
|
|
51, 49, 52, 52, 52, 52, 52, 52,
|
|
|
|
51, 49, 52, 52, 52, 52, 52, 52, |
|
|
|
52, 52, 53, 1, 54, 54, 54, 1,
|
|
|
|
52, 52, 53, 1, 54, 54, 54, 1, |
|
|
|
55, 55, 55, 1, 56, 56, 56, 1,
|
|
|
|
55, 55, 55, 1, 56, 56, 56, 1, |
|
|
|
57, 57, 57, 1, 59, 60, 58, 61,
|
|
|
|
57, 57, 57, 1, 59, 60, 58, 61, |
|
|
|
62, 63, 1, 64, 65, 1, 66, 67,
|
|
|
|
62, 63, 1, 64, 65, 1, 66, 67, |
|
|
|
1, 68, 1, 67, 68, 1, 69, 1,
|
|
|
|
1, 68, 1, 67, 68, 1, 69, 1, |
|
|
|
66, 67, 65, 1, 70, 1, 71, 1,
|
|
|
|
66, 67, 65, 1, 70, 1, 71, 1, |
|
|
|
72, 1, 73, 1, 74, 1, 75, 1,
|
|
|
|
72, 1, 73, 1, 74, 1, 75, 1, |
|
|
|
76, 1, 77, 1, 78, 1, 79, 1,
|
|
|
|
76, 1, 77, 1, 78, 1, 79, 1, |
|
|
|
80, 1, 81, 1, 82, 1, 83, 1,
|
|
|
|
80, 1, 81, 1, 82, 1, 83, 1, |
|
|
|
84, 1, 85, 1, 86, 1, 87, 1,
|
|
|
|
84, 1, 85, 1, 86, 1, 87, 1, |
|
|
|
88, 1, 89, 89, 90, 91, 1, 92,
|
|
|
|
88, 1, 89, 89, 90, 91, 1, 92, |
|
|
|
1, 93, 1, 94, 1, 95, 1, 96,
|
|
|
|
1, 93, 1, 94, 1, 95, 1, 96, |
|
|
|
1, 97, 1, 98, 1, 99, 99, 100,
|
|
|
|
1, 97, 1, 98, 1, 99, 99, 100, |
|
|
|
98, 1, 102, 1, 101, 104, 105, 103,
|
|
|
|
98, 1, 102, 1, 101, 104, 105, 103, |
|
|
|
1, 1, 101, 106, 107, 108, 109, 110,
|
|
|
|
1, 1, 101, 106, 107, 108, 109, 110, |
|
|
|
111, 112, 107, 1, 113, 1, 114, 115,
|
|
|
|
111, 112, 107, 1, 113, 1, 114, 115, |
|
|
|
117, 118, 1, 117, 116, 119, 120, 118,
|
|
|
|
117, 118, 1, 117, 116, 119, 120, 118, |
|
|
|
119, 1, 120, 1, 1, 120, 116, 121,
|
|
|
|
119, 1, 120, 1, 1, 120, 116, 121, |
|
|
|
1, 122, 1, 123, 1, 124, 1, 125,
|
|
|
|
1, 122, 1, 123, 1, 124, 1, 125, |
|
|
|
126, 1, 127, 1, 128, 1, 129, 130,
|
|
|
|
126, 1, 127, 1, 128, 1, 129, 130, |
|
|
|
1, 131, 1, 132, 1, 133, 134, 135,
|
|
|
|
1, 131, 1, 132, 1, 133, 134, 135, |
|
|
|
136, 134, 1, 137, 1, 138, 139, 138,
|
|
|
|
136, 134, 1, 137, 1, 138, 139, 138, |
|
|
|
1, 139, 1, 1, 139, 140, 141, 142,
|
|
|
|
1, 139, 1, 1, 139, 140, 141, 142, |
|
|
|
143, 141, 1, 144, 145, 136, 144, 1,
|
|
|
|
143, 141, 1, 144, 145, 136, 144, 1, |
|
|
|
145, 135, 145, 1, 146, 147, 147, 1,
|
|
|
|
145, 135, 145, 1, 146, 147, 147, 1, |
|
|
|
148, 148, 1, 149, 149, 1, 150, 150,
|
|
|
|
148, 148, 1, 149, 149, 1, 150, 150, |
|
|
|
1, 151, 151, 1, 152, 152, 1, 1,
|
|
|
|
1, 151, 151, 1, 152, 152, 1, 1, |
|
|
|
1, 1, 1, 1, 1, 0 |
|
|
|
1, 1, 1, 1, 1, 0 |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
static const char _json_trans_targs[] = { |
|
|
|
static const char _json_trans_targs[] = { |
|
|
|
1, 0, 2, 107, 3, 6, 10, 13,
|
|
|
|
1, 0, 2, 107, 3, 6, 10, 13, |
|
|
|
16, 106, 4, 3, 106, 4, 5, 7,
|
|
|
|
16, 106, 4, 3, 106, 4, 5, 7, |
|
|
|
8, 9, 108, 11, 12, 109, 14, 15,
|
|
|
|
8, 9, 108, 11, 12, 109, 14, 15, |
|
|
|
110, 16, 17, 111, 18, 18, 19, 20,
|
|
|
|
110, 16, 17, 111, 18, 18, 19, 20, |
|
|
|
21, 22, 111, 21, 22, 24, 25, 31,
|
|
|
|
21, 22, 111, 21, 22, 24, 25, 31, |
|
|
|
112, 26, 28, 27, 29, 30, 33, 113,
|
|
|
|
112, 26, 28, 27, 29, 30, 33, 113, |
|
|
|
34, 33, 113, 34, 32, 35, 36, 37,
|
|
|
|
34, 33, 113, 34, 32, 35, 36, 37, |
|
|
|
38, 39, 33, 113, 34, 41, 42, 46,
|
|
|
|
38, 39, 33, 113, 34, 41, 42, 46, |
|
|
|
42, 46, 43, 45, 44, 114, 48, 49,
|
|
|
|
42, 46, 43, 45, 44, 114, 48, 49, |
|
|
|
50, 51, 52, 53, 54, 55, 56, 57,
|
|
|
|
50, 51, 52, 53, 54, 55, 56, 57, |
|
|
|
58, 59, 60, 61, 62, 63, 64, 65,
|
|
|
|
58, 59, 60, 61, 62, 63, 64, 65, |
|
|
|
66, 67, 73, 72, 68, 69, 70, 71,
|
|
|
|
66, 67, 73, 72, 68, 69, 70, 71, |
|
|
|
72, 115, 74, 67, 72, 76, 116, 76,
|
|
|
|
72, 115, 74, 67, 72, 76, 116, 76, |
|
|
|
116, 77, 79, 81, 82, 85, 90, 94,
|
|
|
|
116, 77, 79, 81, 82, 85, 90, 94, |
|
|
|
98, 80, 117, 117, 83, 82, 80, 83,
|
|
|
|
98, 80, 117, 117, 83, 82, 80, 83, |
|
|
|
84, 86, 87, 88, 89, 117, 91, 92,
|
|
|
|
84, 86, 87, 88, 89, 117, 91, 92, |
|
|
|
93, 117, 95, 96, 97, 117, 98, 99,
|
|
|
|
93, 117, 95, 96, 97, 117, 98, 99, |
|
|
|
105, 100, 100, 101, 102, 103, 104, 105,
|
|
|
|
105, 100, 100, 101, 102, 103, 104, 105, |
|
|
|
103, 104, 117, 106, 106, 106, 106, 106,
|
|
|
|
103, 104, 117, 106, 106, 106, 106, 106, |
|
|
|
106 |
|
|
|
106 |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
static const char _json_trans_actions[] = { |
|
|
|
static const char _json_trans_actions[] = { |
|
|
|
0, 0, 92, 86, 35, 0, 0, 0,
|
|
|
|
0, 0, 92, 86, 35, 0, 0, 0, |
|
|
|
104, 41, 27, 0, 37, 0, 0, 0,
|
|
|
|
104, 41, 27, 0, 37, 0, 0, 0, |
|
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, |
|
|
|
0, 0, 80, 33, 29, 0, 0, 27,
|
|
|
|
0, 0, 80, 33, 29, 0, 0, 27, |
|
|
|
31, 31, 83, 0, 0, 0, 0, 0,
|
|
|
|
31, 31, 83, 0, 0, 0, 0, 0, |
|
|
|
3, 0, 0, 0, 0, 0, 5, 15,
|
|
|
|
3, 0, 0, 0, 0, 0, 5, 15, |
|
|
|
0, 0, 53, 7, 13, 0, 56, 9,
|
|
|
|
0, 0, 53, 7, 13, 0, 56, 9, |
|
|
|
9, 9, 59, 62, 11, 17, 17, 17,
|
|
|
|
9, 9, 59, 62, 11, 17, 17, 17, |
|
|
|
0, 0, 0, 19, 0, 21, 23, 0,
|
|
|
|
0, 0, 0, 19, 0, 21, 23, 0, |
|
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, |
|
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, |
|
|
|
0, 114, 65, 114, 0, 0, 0, 0,
|
|
|
|
0, 114, 65, 114, 0, 0, 0, 0, |
|
|
|
0, 71, 0, 68, 68, 77, 25, 0,
|
|
|
|
0, 71, 0, 68, 68, 77, 25, 0, |
|
|
|
110, 74, 92, 86, 35, 0, 0, 0,
|
|
|
|
110, 74, 92, 86, 35, 0, 0, 0, |
|
|
|
104, 41, 51, 89, 27, 0, 37, 0,
|
|
|
|
104, 41, 51, 89, 27, 0, 37, 0, |
|
|
|
0, 0, 0, 0, 0, 98, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 98, 0, 0, |
|
|
|
0, 101, 0, 0, 0, 95, 0, 80,
|
|
|
|
0, 101, 0, 0, 0, 95, 0, 80, |
|
|
|
33, 29, 0, 0, 27, 31, 31, 83,
|
|
|
|
33, 29, 0, 0, 27, 31, 31, 83, |
|
|
|
0, 0, 107, 0, 39, 45, 47, 43,
|
|
|
|
0, 0, 107, 0, 39, 45, 47, 43, |
|
|
|
49 |
|
|
|
49 |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
static const char _json_eof_actions[] = { |
|
|
|
static const char _json_eof_actions[] = { |
|
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, |
|
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, |
|
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, |
|
|
|
0, 1, 0, 1, 0, 0, 1, 1,
|
|
|
|
0, 1, 0, 1, 0, 0, 1, 1, |
|
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, |
|
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, |
|
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, |
|
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, |
|
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, |
|
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, |
|
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, |
|
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, |
|
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, |
|
|
|
0, 0, 0, 39, 45, 47, 43, 49,
|
|
|
|
0, 0, 0, 39, 45, 47, 43, 49, |
|
|
|
0, 0, 0, 0, 0, 0 |
|
|
|
0, 0, 0, 0, 0, 0 |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
@ -15406,7 +15406,7 @@ size_t parse(void *closure, const void *hd, const char *buf, size_t size, |
|
|
|
|
|
|
|
|
|
|
|
capture_resume(parser, buf); |
|
|
|
capture_resume(parser, buf); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#line 2831 "upb/json/parser.c" |
|
|
|
#line 2831 "upb/json/parser.c" |
|
|
|
{ |
|
|
|
{ |
|
|
|
int _klen; |
|
|
|
int _klen; |
|
|
@ -15785,7 +15785,7 @@ static void json_parser_reset(upb_json_parser *p) { |
|
|
|
p->top->is_unknown_field = false; |
|
|
|
p->top->is_unknown_field = false; |
|
|
|
|
|
|
|
|
|
|
|
/* Emit Ragel initialization of the parser. */ |
|
|
|
/* Emit Ragel initialization of the parser. */ |
|
|
|
|
|
|
|
|
|
|
|
#line 3210 "upb/json/parser.c" |
|
|
|
#line 3210 "upb/json/parser.c" |
|
|
|
{ |
|
|
|
{ |
|
|
|
cs = json_start; |
|
|
|
cs = json_start; |
|
|
|