/src/CMake/Utilities/cmllpkgc/llpkgc_file__internal.c
Line | Count | Source |
1 | | /* Distributed under the OSI-approved BSD 3-Clause License. |
2 | | See accompanying file LICENSE.rst for details. */ |
3 | | /* This code was generated by llpkgc, do not edit it by hand |
4 | | See: https://gitlab.kitware.com/utils/llpkgc */ |
5 | | |
6 | | |
7 | | #include <stdlib.h> |
8 | | #include <stdint.h> |
9 | | #include <string.h> |
10 | | |
11 | | #ifdef __SSE4_2__ |
12 | | #ifdef _MSC_VER |
13 | | #include <nmmintrin.h> |
14 | | #else /* !_MSC_VER */ |
15 | | #include <x86intrin.h> |
16 | | #endif /* _MSC_VER */ |
17 | | #endif /* __SSE4_2__ */ |
18 | | |
19 | | #if defined(__ARM_NEON__) || defined(__ARM_NEON) |
20 | | #include <arm_neon.h> |
21 | | #endif /* __ARM_NEON__ */ |
22 | | |
23 | | #ifdef __wasm__ |
24 | | #include <wasm_simd128.h> |
25 | | #endif /* __wasm__ */ |
26 | | |
27 | | #ifdef _MSC_VER |
28 | | #define ALIGN(n) _declspec(align(n)) |
29 | | #define UNREACHABLE __assume(0) |
30 | | #else /* !_MSC_VER */ |
31 | | #define ALIGN(n) __attribute__((aligned(n))) |
32 | 0 | #define UNREACHABLE __builtin_unreachable() |
33 | | #endif /* _MSC_VER */ |
34 | | |
35 | | #include "llpkgc_file__internal.h" |
36 | | |
37 | | typedef int (*llpkgc_file__internal__span_cb)( |
38 | | llpkgc_file__internal_t*, const char*, const char*); |
39 | | |
40 | | enum llparse_state_e { |
41 | | s_error, |
42 | | s_n_llpkgc_file__internal__n_comment, |
43 | | s_n_llpkgc_file__internal__n_start_lf, |
44 | | s_n_llpkgc_file__internal__n_start_cr, |
45 | | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__on_barewords_complete, |
46 | | s_n_llpkgc_file__internal__n_span_start_llpkgc_file__on_ident_1, |
47 | | s_n_llpkgc_file__internal__n_bareword_lf, |
48 | | s_n_llpkgc_file__internal__n_bareword_cr, |
49 | | s_n_llpkgc_file__internal__n_bareword_escape, |
50 | | s_n_llpkgc_file__internal__n_bareword_backslash, |
51 | | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__mark_1, |
52 | | s_n_llpkgc_file__internal__n_bareword, |
53 | | s_n_llpkgc_file__internal__n_span_start_llpkgc_file__on_ident, |
54 | | s_n_llpkgc_file__internal__n_start_escape, |
55 | | s_n_llpkgc_file__internal__n_start_backslash, |
56 | | s_n_llpkgc_file__internal__n_leading_lf, |
57 | | s_n_llpkgc_file__internal__n_leading_cr, |
58 | | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__clear_whitespace, |
59 | | s_n_llpkgc_file__internal__n_whitespace_lf, |
60 | | s_n_llpkgc_file__internal__n_whitespace_cr, |
61 | | s_n_llpkgc_file__internal__n_whitespace_escape, |
62 | | s_n_llpkgc_file__internal__n_whitespace_backslash, |
63 | | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__mark_3, |
64 | | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__flush_whitespace_all_3, |
65 | | s_n_llpkgc_file__internal__n_whitespace, |
66 | | s_n_llpkgc_file__internal__n_span_start_llpkgc_file__whitespace, |
67 | | s_n_llpkgc_file__internal__n_substitution_end, |
68 | | s_n_llpkgc_file__internal__n_substitution, |
69 | | s_n_llpkgc_file__internal__n_span_start_llpkgc_file__on_value_substitution, |
70 | | s_n_llpkgc_file__internal__n_dollar, |
71 | | s_n_llpkgc_file__internal__n_dollar_start, |
72 | | s_n_llpkgc_file__internal__n_value_lf, |
73 | | s_n_llpkgc_file__internal__n_value_cr, |
74 | | s_n_llpkgc_file__internal__n_value_escape, |
75 | | s_n_llpkgc_file__internal__n_value_backslash, |
76 | | s_n_llpkgc_file__internal__n_span_start_llpkgc_file__on_value_literal_1, |
77 | | s_n_llpkgc_file__internal__n_value, |
78 | | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__on_value_literal_complete, |
79 | | s_n_llpkgc_file__internal__n_text, |
80 | | s_n_llpkgc_file__internal__n_span_start_llpkgc_file__on_value_literal, |
81 | | s_n_llpkgc_file__internal__n_leading_escape, |
82 | | s_n_llpkgc_file__internal__n_leading_backslash, |
83 | | s_n_llpkgc_file__internal__n_leading_whitespace, |
84 | | s_n_llpkgc_file__internal__n_separator_lf, |
85 | | s_n_llpkgc_file__internal__n_separator_cr, |
86 | | s_n_llpkgc_file__internal__n_separator_escape, |
87 | | s_n_llpkgc_file__internal__n_separator_backslash, |
88 | | s_n_llpkgc_file__internal__n_separator, |
89 | | s_n_llpkgc_file__internal__n_invoke_update_finish_9, |
90 | | s_n_llpkgc_file__internal__n_identifier_lf, |
91 | | s_n_llpkgc_file__internal__n_identifier_cr, |
92 | | s_n_llpkgc_file__internal__n_identifier_escape, |
93 | | s_n_llpkgc_file__internal__n_identifier_backslash, |
94 | | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__mark_7, |
95 | | s_n_llpkgc_file__internal__n_identifier, |
96 | | s_n_llpkgc_file__internal__n_span_start_llpkgc_file__on_ident_2, |
97 | | s_n_llpkgc_file__internal__n_start, |
98 | | }; |
99 | | typedef enum llparse_state_e llparse_state_t; |
100 | | |
101 | | int llpkgc_file__on_ident( |
102 | | llpkgc_file__internal_t* s, const unsigned char* p, |
103 | | const unsigned char* endp); |
104 | | |
105 | | int llpkgc_file__on_value_literal( |
106 | | llpkgc_file__internal_t* s, const unsigned char* p, |
107 | | const unsigned char* endp); |
108 | | |
109 | | int llpkgc_file__on_value_substitution( |
110 | | llpkgc_file__internal_t* s, const unsigned char* p, |
111 | | const unsigned char* endp); |
112 | | |
113 | | int llpkgc_file__whitespace( |
114 | | llpkgc_file__internal_t* s, const unsigned char* p, |
115 | | const unsigned char* endp); |
116 | | |
117 | | int llpkgc_file__internal__c_update_finish( |
118 | | llpkgc_file__internal_t* state, |
119 | | const unsigned char* p, |
120 | 558k | const unsigned char* endp) { |
121 | 558k | state->finish = 0; |
122 | 558k | return 0; |
123 | 558k | } |
124 | | |
125 | | int llpkgc_file__mark( |
126 | | llpkgc_file__internal_t* s, const unsigned char* p, |
127 | | const unsigned char* endp); |
128 | | |
129 | | int llpkgc_file__internal__c_update_finish_1( |
130 | | llpkgc_file__internal_t* state, |
131 | | const unsigned char* p, |
132 | 23.6k | const unsigned char* endp) { |
133 | 23.6k | state->finish = 2; |
134 | 23.6k | return 0; |
135 | 23.6k | } |
136 | | |
137 | | int llpkgc_file__internal__c_update_finish_4( |
138 | | llpkgc_file__internal_t* state, |
139 | | const unsigned char* p, |
140 | 1.04M | const unsigned char* endp) { |
141 | 1.04M | state->finish = 1; |
142 | 1.04M | return 0; |
143 | 1.04M | } |
144 | | |
145 | | int llpkgc_file__on_barewords_complete( |
146 | | llpkgc_file__internal_t* s, const unsigned char* p, |
147 | | const unsigned char* endp); |
148 | | |
149 | | int llpkgc_file__on_value_complete( |
150 | | llpkgc_file__internal_t* s, const unsigned char* p, |
151 | | const unsigned char* endp); |
152 | | |
153 | | int llpkgc_file__emit_ident_mark( |
154 | | llpkgc_file__internal_t* s, const unsigned char* p, |
155 | | const unsigned char* endp); |
156 | | |
157 | | int llpkgc_file__on_property_complete( |
158 | | llpkgc_file__internal_t* s, const unsigned char* p, |
159 | | const unsigned char* endp); |
160 | | |
161 | | int llpkgc_file__internal__c_update_finish_10( |
162 | | llpkgc_file__internal_t* state, |
163 | | const unsigned char* p, |
164 | 1.86M | const unsigned char* endp) { |
165 | 1.86M | state->finish = 3; |
166 | 1.86M | return 0; |
167 | 1.86M | } |
168 | | |
169 | | int llpkgc_file__internal__c_update_finish_11( |
170 | | llpkgc_file__internal_t* state, |
171 | | const unsigned char* p, |
172 | 30.4k | const unsigned char* endp) { |
173 | 30.4k | state->finish = 5; |
174 | 30.4k | return 0; |
175 | 30.4k | } |
176 | | |
177 | | int llpkgc_file__internal__c_update_finish_15( |
178 | | llpkgc_file__internal_t* state, |
179 | | const unsigned char* p, |
180 | 468k | const unsigned char* endp) { |
181 | 468k | state->finish = 4; |
182 | 468k | return 0; |
183 | 468k | } |
184 | | |
185 | | int llpkgc_file__on_value_literal_complete( |
186 | | llpkgc_file__internal_t* s, const unsigned char* p, |
187 | | const unsigned char* endp); |
188 | | |
189 | | int llpkgc_file__clear_whitespace( |
190 | | llpkgc_file__internal_t* s, const unsigned char* p, |
191 | | const unsigned char* endp); |
192 | | |
193 | | int llpkgc_file__flush_whitespace_all( |
194 | | llpkgc_file__internal_t* s, const unsigned char* p, |
195 | | const unsigned char* endp); |
196 | | |
197 | | int llpkgc_file__emit_literal_mark( |
198 | | llpkgc_file__internal_t* s, const unsigned char* p, |
199 | | const unsigned char* endp); |
200 | | |
201 | | int llpkgc_file__internal__c_update_finish_22( |
202 | | llpkgc_file__internal_t* state, |
203 | | const unsigned char* p, |
204 | 245k | const unsigned char* endp) { |
205 | 245k | state->finish = 6; |
206 | 245k | return 0; |
207 | 245k | } |
208 | | |
209 | | int llpkgc_file__internal__c_update_finish_23( |
210 | | llpkgc_file__internal_t* state, |
211 | | const unsigned char* p, |
212 | 219k | const unsigned char* endp) { |
213 | 219k | state->finish = 7; |
214 | 219k | return 0; |
215 | 219k | } |
216 | | |
217 | | int llpkgc_file__on_value_substitution_complete( |
218 | | llpkgc_file__internal_t* s, const unsigned char* p, |
219 | | const unsigned char* endp); |
220 | | |
221 | | int llpkgc_file__on_variable_complete( |
222 | | llpkgc_file__internal_t* s, const unsigned char* p, |
223 | | const unsigned char* endp); |
224 | | |
225 | 111k | int llpkgc_file__internal_init(llpkgc_file__internal_t* state) { |
226 | 111k | memset(state, 0, sizeof(*state)); |
227 | 111k | state->_current = (void*) (intptr_t) s_n_llpkgc_file__internal__n_start; |
228 | 111k | return 0; |
229 | 111k | } |
230 | | |
231 | | static llparse_state_t llpkgc_file__internal__run( |
232 | | llpkgc_file__internal_t* state, |
233 | | const unsigned char* p, |
234 | 8.10k | const unsigned char* endp) { |
235 | 8.10k | int match; |
236 | 8.10k | switch ((llparse_state_t) (intptr_t) state->_current) { |
237 | 0 | case s_n_llpkgc_file__internal__n_comment: |
238 | 269k | s_n_llpkgc_file__internal__n_comment: { |
239 | 269k | if (p == endp) { |
240 | 152 | return s_n_llpkgc_file__internal__n_comment; |
241 | 152 | } |
242 | 268k | switch (*p) { |
243 | 4.53k | case 10: { |
244 | 4.53k | p++; |
245 | 4.53k | goto s_n_llpkgc_file__internal__n_invoke_update_finish; |
246 | 0 | } |
247 | 2.56k | case 13: { |
248 | 2.56k | p++; |
249 | 2.56k | goto s_n_llpkgc_file__internal__n_invoke_update_finish; |
250 | 0 | } |
251 | 261k | default: { |
252 | 261k | p++; |
253 | 261k | goto s_n_llpkgc_file__internal__n_comment; |
254 | 0 | } |
255 | 268k | } |
256 | 268k | UNREACHABLE; |
257 | 268k | } |
258 | 0 | case s_n_llpkgc_file__internal__n_start_lf: |
259 | 1.61k | s_n_llpkgc_file__internal__n_start_lf: { |
260 | 1.61k | if (p == endp) { |
261 | 10 | return s_n_llpkgc_file__internal__n_start_lf; |
262 | 10 | } |
263 | 1.60k | switch (*p) { |
264 | 745 | case 13: { |
265 | 745 | p++; |
266 | 745 | goto s_n_llpkgc_file__internal__n_invoke_update_finish; |
267 | 0 | } |
268 | 864 | default: { |
269 | 864 | goto s_n_llpkgc_file__internal__n_invoke_update_finish; |
270 | 0 | } |
271 | 1.60k | } |
272 | 1.60k | UNREACHABLE; |
273 | 1.60k | } |
274 | 0 | case s_n_llpkgc_file__internal__n_start_cr: |
275 | 2.51k | s_n_llpkgc_file__internal__n_start_cr: { |
276 | 2.51k | if (p == endp) { |
277 | 7 | return s_n_llpkgc_file__internal__n_start_cr; |
278 | 7 | } |
279 | 2.50k | switch (*p) { |
280 | 1.36k | case 10: { |
281 | 1.36k | p++; |
282 | 1.36k | goto s_n_llpkgc_file__internal__n_invoke_update_finish; |
283 | 0 | } |
284 | 1.14k | default: { |
285 | 1.14k | goto s_n_llpkgc_file__internal__n_invoke_update_finish; |
286 | 0 | } |
287 | 2.50k | } |
288 | 2.50k | UNREACHABLE; |
289 | 2.50k | } |
290 | 0 | case s_n_llpkgc_file__internal__n_invoke_llpkgc_file__on_barewords_complete: |
291 | 197k | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__on_barewords_complete: { |
292 | 197k | switch (llpkgc_file__on_barewords_complete(state, p, endp)) { |
293 | 197k | case 0: |
294 | 197k | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__on_value_complete; |
295 | 0 | case 5: |
296 | 0 | goto s_n_llpkgc_file__internal__n_error_4; |
297 | 0 | default: |
298 | 0 | goto s_n_llpkgc_file__internal__n_error_1; |
299 | 197k | } |
300 | 197k | UNREACHABLE; |
301 | 197k | } |
302 | 0 | case s_n_llpkgc_file__internal__n_span_start_llpkgc_file__on_ident_1: |
303 | 11.8k | s_n_llpkgc_file__internal__n_span_start_llpkgc_file__on_ident_1: { |
304 | 11.8k | if (p == endp) { |
305 | 24 | return s_n_llpkgc_file__internal__n_span_start_llpkgc_file__on_ident_1; |
306 | 24 | } |
307 | 11.7k | state->_span_pos0 = (void*) p; |
308 | 11.7k | state->_span_cb0 = llpkgc_file__on_ident; |
309 | 11.7k | goto s_n_llpkgc_file__internal__n_invoke_update_finish_4; |
310 | 11.8k | UNREACHABLE; |
311 | 11.8k | } |
312 | 0 | case s_n_llpkgc_file__internal__n_bareword_lf: |
313 | 1.29k | s_n_llpkgc_file__internal__n_bareword_lf: { |
314 | 1.29k | if (p == endp) { |
315 | 20 | return s_n_llpkgc_file__internal__n_bareword_lf; |
316 | 20 | } |
317 | 1.27k | switch (*p) { |
318 | 569 | case 13: { |
319 | 569 | p++; |
320 | 569 | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__on_ident_1; |
321 | 0 | } |
322 | 702 | default: { |
323 | 702 | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__on_ident_1; |
324 | 0 | } |
325 | 1.27k | } |
326 | 1.27k | UNREACHABLE; |
327 | 1.27k | } |
328 | 0 | case s_n_llpkgc_file__internal__n_bareword_cr: |
329 | 1.81k | s_n_llpkgc_file__internal__n_bareword_cr: { |
330 | 1.81k | if (p == endp) { |
331 | 10 | return s_n_llpkgc_file__internal__n_bareword_cr; |
332 | 10 | } |
333 | 1.80k | switch (*p) { |
334 | 753 | case 10: { |
335 | 753 | p++; |
336 | 753 | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__on_ident_1; |
337 | 0 | } |
338 | 1.04k | default: { |
339 | 1.04k | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__on_ident_1; |
340 | 0 | } |
341 | 1.80k | } |
342 | 1.80k | UNREACHABLE; |
343 | 1.80k | } |
344 | 0 | case s_n_llpkgc_file__internal__n_bareword_escape: |
345 | 9.05k | s_n_llpkgc_file__internal__n_bareword_escape: { |
346 | 9.05k | if (p == endp) { |
347 | 68 | return s_n_llpkgc_file__internal__n_bareword_escape; |
348 | 68 | } |
349 | 8.98k | switch (*p) { |
350 | 1.29k | case 10: { |
351 | 1.29k | p++; |
352 | 1.29k | goto s_n_llpkgc_file__internal__n_invoke_update_finish_6; |
353 | 0 | } |
354 | 1.81k | case 13: { |
355 | 1.81k | p++; |
356 | 1.81k | goto s_n_llpkgc_file__internal__n_invoke_update_finish_7; |
357 | 0 | } |
358 | 475 | case '#': { |
359 | 475 | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__on_ident; |
360 | 0 | } |
361 | 2.68k | case 92: { |
362 | 2.68k | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__emit_ident_mark; |
363 | 0 | } |
364 | 2.72k | default: { |
365 | 2.72k | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__emit_ident_mark_1; |
366 | 0 | } |
367 | 8.98k | } |
368 | 8.98k | UNREACHABLE; |
369 | 8.98k | } |
370 | 0 | case s_n_llpkgc_file__internal__n_bareword_backslash: |
371 | 9.05k | s_n_llpkgc_file__internal__n_bareword_backslash: { |
372 | 9.05k | if (p == endp) { |
373 | 0 | return s_n_llpkgc_file__internal__n_bareword_backslash; |
374 | 0 | } |
375 | 9.05k | p++; |
376 | 9.05k | goto s_n_llpkgc_file__internal__n_invoke_update_finish_5; |
377 | 9.05k | UNREACHABLE; |
378 | 9.05k | } |
379 | 0 | case s_n_llpkgc_file__internal__n_invoke_llpkgc_file__mark_1: |
380 | 9.05k | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__mark_1: { |
381 | 9.05k | switch (llpkgc_file__mark(state, p, endp)) { |
382 | 9.05k | case 0: |
383 | 9.05k | goto s_n_llpkgc_file__internal__n_bareword_backslash; |
384 | 0 | case 5: |
385 | 0 | goto s_n_llpkgc_file__internal__n_error_10; |
386 | 0 | default: |
387 | 0 | goto s_n_llpkgc_file__internal__n_error_5; |
388 | 9.05k | } |
389 | 9.05k | UNREACHABLE; |
390 | 9.05k | } |
391 | 0 | case s_n_llpkgc_file__internal__n_bareword: |
392 | 959k | s_n_llpkgc_file__internal__n_bareword: { |
393 | 959k | if (p == endp) { |
394 | 848 | return s_n_llpkgc_file__internal__n_bareword; |
395 | 848 | } |
396 | 958k | switch (*p) { |
397 | 103k | case 10: { |
398 | 103k | goto s_n_llpkgc_file__internal__n_span_end_llpkgc_file__on_ident; |
399 | 0 | } |
400 | 13.9k | case 13: { |
401 | 13.9k | goto s_n_llpkgc_file__internal__n_span_end_llpkgc_file__on_ident; |
402 | 0 | } |
403 | 1.20k | case '#': { |
404 | 1.20k | goto s_n_llpkgc_file__internal__n_span_end_llpkgc_file__on_ident; |
405 | 0 | } |
406 | 9.05k | case 92: { |
407 | 9.05k | goto s_n_llpkgc_file__internal__n_span_end_llpkgc_file__on_ident_1; |
408 | 0 | } |
409 | 830k | default: { |
410 | 830k | p++; |
411 | 830k | goto s_n_llpkgc_file__internal__n_bareword; |
412 | 0 | } |
413 | 958k | } |
414 | 958k | UNREACHABLE; |
415 | 958k | } |
416 | 0 | case s_n_llpkgc_file__internal__n_span_start_llpkgc_file__on_ident: |
417 | 6.60k | s_n_llpkgc_file__internal__n_span_start_llpkgc_file__on_ident: { |
418 | 6.60k | if (p == endp) { |
419 | 0 | return s_n_llpkgc_file__internal__n_span_start_llpkgc_file__on_ident; |
420 | 0 | } |
421 | 6.60k | state->_span_pos0 = (void*) p; |
422 | 6.60k | state->_span_cb0 = llpkgc_file__on_ident; |
423 | 6.60k | p++; |
424 | 6.60k | goto s_n_llpkgc_file__internal__n_invoke_update_finish_4; |
425 | 6.60k | UNREACHABLE; |
426 | 6.60k | } |
427 | 0 | case s_n_llpkgc_file__internal__n_start_escape: |
428 | 6.30k | s_n_llpkgc_file__internal__n_start_escape: { |
429 | 6.30k | if (p == endp) { |
430 | 31 | return s_n_llpkgc_file__internal__n_start_escape; |
431 | 31 | } |
432 | 6.27k | switch (*p) { |
433 | 1.61k | case 10: { |
434 | 1.61k | p++; |
435 | 1.61k | goto s_n_llpkgc_file__internal__n_invoke_update_finish_2; |
436 | 0 | } |
437 | 2.51k | case 13: { |
438 | 2.51k | p++; |
439 | 2.51k | goto s_n_llpkgc_file__internal__n_invoke_update_finish_3; |
440 | 0 | } |
441 | 449 | case '#': { |
442 | 449 | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__on_ident; |
443 | 0 | } |
444 | 662 | case 92: { |
445 | 662 | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__emit_ident_mark_2; |
446 | 0 | } |
447 | 1.03k | default: { |
448 | 1.03k | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__emit_ident_mark_3; |
449 | 0 | } |
450 | 6.27k | } |
451 | 6.27k | UNREACHABLE; |
452 | 6.27k | } |
453 | 0 | case s_n_llpkgc_file__internal__n_start_backslash: |
454 | 6.30k | s_n_llpkgc_file__internal__n_start_backslash: { |
455 | 6.30k | if (p == endp) { |
456 | 0 | return s_n_llpkgc_file__internal__n_start_backslash; |
457 | 0 | } |
458 | 6.30k | p++; |
459 | 6.30k | goto s_n_llpkgc_file__internal__n_invoke_update_finish_1; |
460 | 6.30k | UNREACHABLE; |
461 | 6.30k | } |
462 | 0 | case s_n_llpkgc_file__internal__n_leading_lf: |
463 | 1.33k | s_n_llpkgc_file__internal__n_leading_lf: { |
464 | 1.33k | if (p == endp) { |
465 | 9 | return s_n_llpkgc_file__internal__n_leading_lf; |
466 | 9 | } |
467 | 1.32k | switch (*p) { |
468 | 442 | case 13: { |
469 | 442 | p++; |
470 | 442 | goto s_n_llpkgc_file__internal__n_invoke_update_finish_13; |
471 | 0 | } |
472 | 879 | default: { |
473 | 879 | goto s_n_llpkgc_file__internal__n_invoke_update_finish_13; |
474 | 0 | } |
475 | 1.32k | } |
476 | 1.32k | UNREACHABLE; |
477 | 1.32k | } |
478 | 0 | case s_n_llpkgc_file__internal__n_leading_cr: |
479 | 1.89k | s_n_llpkgc_file__internal__n_leading_cr: { |
480 | 1.89k | if (p == endp) { |
481 | 13 | return s_n_llpkgc_file__internal__n_leading_cr; |
482 | 13 | } |
483 | 1.88k | switch (*p) { |
484 | 449 | case 10: { |
485 | 449 | p++; |
486 | 449 | goto s_n_llpkgc_file__internal__n_invoke_update_finish_13; |
487 | 0 | } |
488 | 1.43k | default: { |
489 | 1.43k | goto s_n_llpkgc_file__internal__n_invoke_update_finish_13; |
490 | 0 | } |
491 | 1.88k | } |
492 | 1.88k | UNREACHABLE; |
493 | 1.88k | } |
494 | 0 | case s_n_llpkgc_file__internal__n_invoke_llpkgc_file__clear_whitespace: |
495 | 346k | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__clear_whitespace: { |
496 | 346k | switch (llpkgc_file__clear_whitespace(state, p, endp)) { |
497 | 346k | case 0: |
498 | 346k | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__on_value_complete_1; |
499 | 0 | case 5: |
500 | 0 | goto s_n_llpkgc_file__internal__n_error_22; |
501 | 0 | default: |
502 | 0 | goto s_n_llpkgc_file__internal__n_error_19; |
503 | 346k | } |
504 | 346k | UNREACHABLE; |
505 | 346k | } |
506 | 0 | case s_n_llpkgc_file__internal__n_whitespace_lf: |
507 | 1.68k | s_n_llpkgc_file__internal__n_whitespace_lf: { |
508 | 1.68k | if (p == endp) { |
509 | 12 | return s_n_llpkgc_file__internal__n_whitespace_lf; |
510 | 12 | } |
511 | 1.67k | switch (*p) { |
512 | 523 | case 13: { |
513 | 523 | p++; |
514 | 523 | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__whitespace; |
515 | 0 | } |
516 | 1.15k | default: { |
517 | 1.15k | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__whitespace; |
518 | 0 | } |
519 | 1.67k | } |
520 | 1.67k | UNREACHABLE; |
521 | 1.67k | } |
522 | 0 | case s_n_llpkgc_file__internal__n_whitespace_cr: |
523 | 2.73k | s_n_llpkgc_file__internal__n_whitespace_cr: { |
524 | 2.73k | if (p == endp) { |
525 | 5 | return s_n_llpkgc_file__internal__n_whitespace_cr; |
526 | 5 | } |
527 | 2.73k | switch (*p) { |
528 | 1.11k | case 10: { |
529 | 1.11k | p++; |
530 | 1.11k | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__whitespace; |
531 | 0 | } |
532 | 1.61k | default: { |
533 | 1.61k | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__whitespace; |
534 | 0 | } |
535 | 2.73k | } |
536 | 2.73k | UNREACHABLE; |
537 | 2.73k | } |
538 | 0 | case s_n_llpkgc_file__internal__n_whitespace_escape: |
539 | 6.73k | s_n_llpkgc_file__internal__n_whitespace_escape: { |
540 | 6.73k | if (p == endp) { |
541 | 32 | return s_n_llpkgc_file__internal__n_whitespace_escape; |
542 | 32 | } |
543 | 6.70k | switch (*p) { |
544 | 1.68k | case 10: { |
545 | 1.68k | p++; |
546 | 1.68k | goto s_n_llpkgc_file__internal__n_invoke_update_finish_20; |
547 | 0 | } |
548 | 2.73k | case 13: { |
549 | 2.73k | p++; |
550 | 2.73k | goto s_n_llpkgc_file__internal__n_invoke_update_finish_21; |
551 | 0 | } |
552 | 410 | case '#': { |
553 | 410 | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__flush_whitespace_all; |
554 | 0 | } |
555 | 582 | case 92: { |
556 | 582 | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__flush_whitespace_all_1; |
557 | 0 | } |
558 | 1.28k | default: { |
559 | 1.28k | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__flush_whitespace_all_2; |
560 | 0 | } |
561 | 6.70k | } |
562 | 6.70k | UNREACHABLE; |
563 | 6.70k | } |
564 | 0 | case s_n_llpkgc_file__internal__n_whitespace_backslash: |
565 | 6.73k | s_n_llpkgc_file__internal__n_whitespace_backslash: { |
566 | 6.73k | if (p == endp) { |
567 | 0 | return s_n_llpkgc_file__internal__n_whitespace_backslash; |
568 | 0 | } |
569 | 6.73k | p++; |
570 | 6.73k | goto s_n_llpkgc_file__internal__n_invoke_update_finish_19; |
571 | 6.73k | UNREACHABLE; |
572 | 6.73k | } |
573 | 0 | case s_n_llpkgc_file__internal__n_invoke_llpkgc_file__mark_3: |
574 | 6.73k | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__mark_3: { |
575 | 6.73k | switch (llpkgc_file__mark(state, p, endp)) { |
576 | 6.73k | case 0: |
577 | 6.73k | goto s_n_llpkgc_file__internal__n_whitespace_backslash; |
578 | 0 | case 5: |
579 | 0 | goto s_n_llpkgc_file__internal__n_error_38; |
580 | 0 | default: |
581 | 0 | goto s_n_llpkgc_file__internal__n_error_23; |
582 | 6.73k | } |
583 | 6.73k | UNREACHABLE; |
584 | 6.73k | } |
585 | 0 | case s_n_llpkgc_file__internal__n_invoke_llpkgc_file__flush_whitespace_all_3: |
586 | 206k | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__flush_whitespace_all_3: { |
587 | 206k | switch (llpkgc_file__flush_whitespace_all(state, p, endp)) { |
588 | 206k | case 0: |
589 | 206k | goto s_n_llpkgc_file__internal__n_invoke_update_finish_16; |
590 | 0 | case 5: |
591 | 0 | goto s_n_llpkgc_file__internal__n_error_40; |
592 | 0 | default: |
593 | 0 | goto s_n_llpkgc_file__internal__n_error_39; |
594 | 206k | } |
595 | 206k | UNREACHABLE; |
596 | 206k | } |
597 | 0 | case s_n_llpkgc_file__internal__n_whitespace: |
598 | 488k | s_n_llpkgc_file__internal__n_whitespace: { |
599 | 488k | if (p == endp) { |
600 | 226 | return s_n_llpkgc_file__internal__n_whitespace; |
601 | 226 | } |
602 | 488k | switch (*p) { |
603 | 33.7k | case 9: { |
604 | 33.7k | p++; |
605 | 33.7k | goto s_n_llpkgc_file__internal__n_whitespace; |
606 | 0 | } |
607 | 1.57k | case 10: { |
608 | 1.57k | goto s_n_llpkgc_file__internal__n_span_end_llpkgc_file__whitespace; |
609 | 0 | } |
610 | 10.7k | case 11: { |
611 | 10.7k | p++; |
612 | 10.7k | goto s_n_llpkgc_file__internal__n_whitespace; |
613 | 0 | } |
614 | 6.58k | case 12: { |
615 | 6.58k | p++; |
616 | 6.58k | goto s_n_llpkgc_file__internal__n_whitespace; |
617 | 0 | } |
618 | 502 | case 13: { |
619 | 502 | goto s_n_llpkgc_file__internal__n_span_end_llpkgc_file__whitespace; |
620 | 0 | } |
621 | 221k | case ' ': { |
622 | 221k | p++; |
623 | 221k | goto s_n_llpkgc_file__internal__n_whitespace; |
624 | 0 | } |
625 | 410 | case '#': { |
626 | 410 | goto s_n_llpkgc_file__internal__n_span_end_llpkgc_file__whitespace; |
627 | 0 | } |
628 | 6.73k | case 92: { |
629 | 6.73k | goto s_n_llpkgc_file__internal__n_span_end_llpkgc_file__whitespace_1; |
630 | 0 | } |
631 | 206k | default: { |
632 | 206k | goto s_n_llpkgc_file__internal__n_span_end_llpkgc_file__whitespace_2; |
633 | 0 | } |
634 | 488k | } |
635 | 488k | UNREACHABLE; |
636 | 488k | } |
637 | 0 | case s_n_llpkgc_file__internal__n_span_start_llpkgc_file__whitespace: |
638 | 216k | s_n_llpkgc_file__internal__n_span_start_llpkgc_file__whitespace: { |
639 | 216k | if (p == endp) { |
640 | 13 | return s_n_llpkgc_file__internal__n_span_start_llpkgc_file__whitespace; |
641 | 13 | } |
642 | 216k | state->_span_pos0 = (void*) p; |
643 | 216k | state->_span_cb0 = llpkgc_file__whitespace; |
644 | 216k | goto s_n_llpkgc_file__internal__n_invoke_update_finish_17; |
645 | 216k | UNREACHABLE; |
646 | 216k | } |
647 | 0 | case s_n_llpkgc_file__internal__n_substitution_end: |
648 | 219k | s_n_llpkgc_file__internal__n_substitution_end: { |
649 | 219k | if (p == endp) { |
650 | 0 | return s_n_llpkgc_file__internal__n_substitution_end; |
651 | 0 | } |
652 | 219k | p++; |
653 | 219k | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__on_value_substitution_complete; |
654 | 219k | UNREACHABLE; |
655 | 219k | } |
656 | 0 | case s_n_llpkgc_file__internal__n_substitution: |
657 | 692k | s_n_llpkgc_file__internal__n_substitution: { |
658 | 692k | static uint8_t lookup_table[] = { |
659 | 692k | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
660 | 692k | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
661 | 692k | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, |
662 | 692k | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, |
663 | 692k | 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
664 | 692k | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, |
665 | 692k | 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
666 | 692k | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 2, 0, 0, |
667 | 692k | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
668 | 692k | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
669 | 692k | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
670 | 692k | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
671 | 692k | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
672 | 692k | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
673 | 692k | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
674 | 692k | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
675 | 692k | }; |
676 | 692k | if (p == endp) { |
677 | 45 | return s_n_llpkgc_file__internal__n_substitution; |
678 | 45 | } |
679 | 692k | switch (lookup_table[(uint8_t) *p]) { |
680 | 472k | case 1: { |
681 | 472k | p++; |
682 | 472k | goto s_n_llpkgc_file__internal__n_substitution; |
683 | 0 | } |
684 | 219k | case 2: { |
685 | 219k | goto s_n_llpkgc_file__internal__n_span_end_llpkgc_file__on_value_substitution; |
686 | 0 | } |
687 | 310 | default: { |
688 | 310 | goto s_n_llpkgc_file__internal__n_error_48; |
689 | 0 | } |
690 | 692k | } |
691 | 692k | UNREACHABLE; |
692 | 692k | } |
693 | 0 | case s_n_llpkgc_file__internal__n_span_start_llpkgc_file__on_value_substitution: |
694 | 219k | s_n_llpkgc_file__internal__n_span_start_llpkgc_file__on_value_substitution: { |
695 | 219k | if (p == endp) { |
696 | 40 | return s_n_llpkgc_file__internal__n_span_start_llpkgc_file__on_value_substitution; |
697 | 40 | } |
698 | 219k | state->_span_pos0 = (void*) p; |
699 | 219k | state->_span_cb0 = llpkgc_file__on_value_substitution; |
700 | 219k | goto s_n_llpkgc_file__internal__n_invoke_update_finish_23; |
701 | 219k | UNREACHABLE; |
702 | 219k | } |
703 | 0 | case s_n_llpkgc_file__internal__n_dollar: |
704 | 245k | s_n_llpkgc_file__internal__n_dollar: { |
705 | 245k | if (p == endp) { |
706 | 117 | return s_n_llpkgc_file__internal__n_dollar; |
707 | 117 | } |
708 | 245k | switch (*p) { |
709 | 4.45k | case '$': { |
710 | 4.45k | p++; |
711 | 4.45k | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__emit_literal_mark_2; |
712 | 0 | } |
713 | 219k | case '{': { |
714 | 219k | p++; |
715 | 219k | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__on_value_substitution; |
716 | 0 | } |
717 | 21.6k | default: { |
718 | 21.6k | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__emit_literal_mark_3; |
719 | 0 | } |
720 | 245k | } |
721 | 245k | UNREACHABLE; |
722 | 245k | } |
723 | 0 | case s_n_llpkgc_file__internal__n_dollar_start: |
724 | 245k | s_n_llpkgc_file__internal__n_dollar_start: { |
725 | 245k | if (p == endp) { |
726 | 0 | return s_n_llpkgc_file__internal__n_dollar_start; |
727 | 0 | } |
728 | 245k | p++; |
729 | 245k | goto s_n_llpkgc_file__internal__n_invoke_update_finish_22; |
730 | 245k | UNREACHABLE; |
731 | 245k | } |
732 | 0 | case s_n_llpkgc_file__internal__n_value_lf: |
733 | 2.89k | s_n_llpkgc_file__internal__n_value_lf: { |
734 | 2.89k | if (p == endp) { |
735 | 202 | return s_n_llpkgc_file__internal__n_value_lf; |
736 | 202 | } |
737 | 2.69k | switch (*p) { |
738 | 581 | case 13: { |
739 | 581 | p++; |
740 | 581 | goto s_n_llpkgc_file__internal__n_invoke_update_finish_16; |
741 | 0 | } |
742 | 2.11k | default: { |
743 | 2.11k | goto s_n_llpkgc_file__internal__n_invoke_update_finish_16; |
744 | 0 | } |
745 | 2.69k | } |
746 | 2.69k | UNREACHABLE; |
747 | 2.69k | } |
748 | 0 | case s_n_llpkgc_file__internal__n_value_cr: |
749 | 3.16k | s_n_llpkgc_file__internal__n_value_cr: { |
750 | 3.16k | if (p == endp) { |
751 | 17 | return s_n_llpkgc_file__internal__n_value_cr; |
752 | 17 | } |
753 | 3.14k | switch (*p) { |
754 | 1.18k | case 10: { |
755 | 1.18k | p++; |
756 | 1.18k | goto s_n_llpkgc_file__internal__n_invoke_update_finish_16; |
757 | 0 | } |
758 | 1.95k | default: { |
759 | 1.95k | goto s_n_llpkgc_file__internal__n_invoke_update_finish_16; |
760 | 0 | } |
761 | 3.14k | } |
762 | 3.14k | UNREACHABLE; |
763 | 3.14k | } |
764 | 0 | case s_n_llpkgc_file__internal__n_value_escape: |
765 | 18.5k | s_n_llpkgc_file__internal__n_value_escape: { |
766 | 18.5k | if (p == endp) { |
767 | 101 | return s_n_llpkgc_file__internal__n_value_escape; |
768 | 101 | } |
769 | 18.4k | switch (*p) { |
770 | 2.89k | case 10: { |
771 | 2.89k | p++; |
772 | 2.89k | goto s_n_llpkgc_file__internal__n_invoke_update_finish_25; |
773 | 0 | } |
774 | 3.16k | case 13: { |
775 | 3.16k | p++; |
776 | 3.16k | goto s_n_llpkgc_file__internal__n_invoke_update_finish_26; |
777 | 0 | } |
778 | 971 | case '#': { |
779 | 971 | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__on_value_literal; |
780 | 0 | } |
781 | 4.34k | case 92: { |
782 | 4.34k | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__emit_literal_mark_4; |
783 | 0 | } |
784 | 7.02k | default: { |
785 | 7.02k | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__emit_literal_mark_5; |
786 | 0 | } |
787 | 18.4k | } |
788 | 18.4k | UNREACHABLE; |
789 | 18.4k | } |
790 | 0 | case s_n_llpkgc_file__internal__n_value_backslash: |
791 | 18.5k | s_n_llpkgc_file__internal__n_value_backslash: { |
792 | 18.5k | if (p == endp) { |
793 | 0 | return s_n_llpkgc_file__internal__n_value_backslash; |
794 | 0 | } |
795 | 18.5k | p++; |
796 | 18.5k | goto s_n_llpkgc_file__internal__n_invoke_update_finish_24; |
797 | 18.5k | UNREACHABLE; |
798 | 18.5k | } |
799 | 0 | case s_n_llpkgc_file__internal__n_span_start_llpkgc_file__on_value_literal_1: |
800 | 461k | s_n_llpkgc_file__internal__n_span_start_llpkgc_file__on_value_literal_1: { |
801 | 461k | if (p == endp) { |
802 | 0 | return s_n_llpkgc_file__internal__n_span_start_llpkgc_file__on_value_literal_1; |
803 | 0 | } |
804 | 461k | state->_span_pos0 = (void*) p; |
805 | 461k | state->_span_cb0 = llpkgc_file__on_value_literal; |
806 | 461k | p++; |
807 | 461k | goto s_n_llpkgc_file__internal__n_invoke_update_finish_15; |
808 | 461k | UNREACHABLE; |
809 | 461k | } |
810 | 0 | case s_n_llpkgc_file__internal__n_value: |
811 | 1.28M | s_n_llpkgc_file__internal__n_value: { |
812 | 1.28M | if (p == endp) { |
813 | 223 | return s_n_llpkgc_file__internal__n_value; |
814 | 223 | } |
815 | 1.28M | switch (*p) { |
816 | 23.6k | case 9: { |
817 | 23.6k | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__whitespace; |
818 | 0 | } |
819 | 293k | case 10: { |
820 | 293k | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__clear_whitespace; |
821 | 0 | } |
822 | 2.35k | case 11: { |
823 | 2.35k | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__whitespace; |
824 | 0 | } |
825 | 2.76k | case 12: { |
826 | 2.76k | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__whitespace; |
827 | 0 | } |
828 | 46.7k | case 13: { |
829 | 46.7k | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__clear_whitespace; |
830 | 0 | } |
831 | 183k | case ' ': { |
832 | 183k | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__whitespace; |
833 | 0 | } |
834 | 3.47k | case '#': { |
835 | 3.47k | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__clear_whitespace; |
836 | 0 | } |
837 | 245k | case '$': { |
838 | 245k | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__mark_4; |
839 | 0 | } |
840 | 18.5k | case 92: { |
841 | 18.5k | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__mark_5; |
842 | 0 | } |
843 | 461k | default: { |
844 | 461k | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__on_value_literal_1; |
845 | 0 | } |
846 | 1.28M | } |
847 | 1.28M | UNREACHABLE; |
848 | 1.28M | } |
849 | 0 | case s_n_llpkgc_file__internal__n_invoke_llpkgc_file__on_value_literal_complete: |
850 | 465k | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__on_value_literal_complete: { |
851 | 465k | switch (llpkgc_file__on_value_literal_complete(state, p, endp)) { |
852 | 465k | case 0: |
853 | 465k | goto s_n_llpkgc_file__internal__n_invoke_update_finish_16; |
854 | 0 | case 5: |
855 | 0 | goto s_n_llpkgc_file__internal__n_error_64; |
856 | 0 | default: |
857 | 0 | goto s_n_llpkgc_file__internal__n_error_18; |
858 | 465k | } |
859 | 465k | UNREACHABLE; |
860 | 465k | } |
861 | 0 | case s_n_llpkgc_file__internal__n_text: |
862 | 3.69M | s_n_llpkgc_file__internal__n_text: { |
863 | 3.69M | if (p == endp) { |
864 | 3.14k | return s_n_llpkgc_file__internal__n_text; |
865 | 3.14k | } |
866 | 3.69M | switch (*p) { |
867 | 22.6k | case 9: { |
868 | 22.6k | goto s_n_llpkgc_file__internal__n_span_end_llpkgc_file__on_value_literal; |
869 | 0 | } |
870 | 37.4k | case 10: { |
871 | 37.4k | goto s_n_llpkgc_file__internal__n_span_end_llpkgc_file__on_value_literal; |
872 | 0 | } |
873 | 2.27k | case 11: { |
874 | 2.27k | goto s_n_llpkgc_file__internal__n_span_end_llpkgc_file__on_value_literal; |
875 | 0 | } |
876 | 2.42k | case 12: { |
877 | 2.42k | goto s_n_llpkgc_file__internal__n_span_end_llpkgc_file__on_value_literal; |
878 | 0 | } |
879 | 16.6k | case 13: { |
880 | 16.6k | goto s_n_llpkgc_file__internal__n_span_end_llpkgc_file__on_value_literal; |
881 | 0 | } |
882 | 165k | case ' ': { |
883 | 165k | goto s_n_llpkgc_file__internal__n_span_end_llpkgc_file__on_value_literal; |
884 | 0 | } |
885 | 1.39k | case '#': { |
886 | 1.39k | goto s_n_llpkgc_file__internal__n_span_end_llpkgc_file__on_value_literal; |
887 | 0 | } |
888 | 201k | case '$': { |
889 | 201k | goto s_n_llpkgc_file__internal__n_span_end_llpkgc_file__on_value_literal; |
890 | 0 | } |
891 | 15.4k | case 92: { |
892 | 15.4k | goto s_n_llpkgc_file__internal__n_span_end_llpkgc_file__on_value_literal; |
893 | 0 | } |
894 | 3.22M | default: { |
895 | 3.22M | p++; |
896 | 3.22M | goto s_n_llpkgc_file__internal__n_text; |
897 | 0 | } |
898 | 3.69M | } |
899 | 3.69M | UNREACHABLE; |
900 | 3.69M | } |
901 | 0 | case s_n_llpkgc_file__internal__n_span_start_llpkgc_file__on_value_literal: |
902 | 7.27k | s_n_llpkgc_file__internal__n_span_start_llpkgc_file__on_value_literal: { |
903 | 7.27k | if (p == endp) { |
904 | 0 | return s_n_llpkgc_file__internal__n_span_start_llpkgc_file__on_value_literal; |
905 | 0 | } |
906 | 7.27k | state->_span_pos0 = (void*) p; |
907 | 7.27k | state->_span_cb0 = llpkgc_file__on_value_literal; |
908 | 7.27k | p++; |
909 | 7.27k | goto s_n_llpkgc_file__internal__n_invoke_update_finish_15; |
910 | 7.27k | UNREACHABLE; |
911 | 7.27k | } |
912 | 0 | case s_n_llpkgc_file__internal__n_leading_escape: |
913 | 5.25k | s_n_llpkgc_file__internal__n_leading_escape: { |
914 | 5.25k | if (p == endp) { |
915 | 32 | return s_n_llpkgc_file__internal__n_leading_escape; |
916 | 32 | } |
917 | 5.22k | switch (*p) { |
918 | 1.33k | case 10: { |
919 | 1.33k | p++; |
920 | 1.33k | goto s_n_llpkgc_file__internal__n_invoke_update_finish_12; |
921 | 0 | } |
922 | 1.89k | case 13: { |
923 | 1.89k | p++; |
924 | 1.89k | goto s_n_llpkgc_file__internal__n_invoke_update_finish_14; |
925 | 0 | } |
926 | 453 | case '#': { |
927 | 453 | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__on_value_literal; |
928 | 0 | } |
929 | 510 | case 92: { |
930 | 510 | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__emit_literal_mark_6; |
931 | 0 | } |
932 | 1.03k | default: { |
933 | 1.03k | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__emit_literal_mark_7; |
934 | 0 | } |
935 | 5.22k | } |
936 | 5.22k | UNREACHABLE; |
937 | 5.22k | } |
938 | 0 | case s_n_llpkgc_file__internal__n_leading_backslash: |
939 | 5.25k | s_n_llpkgc_file__internal__n_leading_backslash: { |
940 | 5.25k | if (p == endp) { |
941 | 0 | return s_n_llpkgc_file__internal__n_leading_backslash; |
942 | 0 | } |
943 | 5.25k | p++; |
944 | 5.25k | goto s_n_llpkgc_file__internal__n_invoke_update_finish_11; |
945 | 5.25k | UNREACHABLE; |
946 | 5.25k | } |
947 | 0 | case s_n_llpkgc_file__internal__n_leading_whitespace: |
948 | 400k | s_n_llpkgc_file__internal__n_leading_whitespace: { |
949 | 400k | if (p == endp) { |
950 | 792 | return s_n_llpkgc_file__internal__n_leading_whitespace; |
951 | 792 | } |
952 | 399k | switch (*p) { |
953 | 2.17k | case 9: { |
954 | 2.17k | p++; |
955 | 2.17k | goto s_n_llpkgc_file__internal__n_leading_whitespace; |
956 | 0 | } |
957 | 703 | case 11: { |
958 | 703 | p++; |
959 | 703 | goto s_n_llpkgc_file__internal__n_leading_whitespace; |
960 | 0 | } |
961 | 856 | case 12: { |
962 | 856 | p++; |
963 | 856 | goto s_n_llpkgc_file__internal__n_leading_whitespace; |
964 | 0 | } |
965 | 42.4k | case ' ': { |
966 | 42.4k | p++; |
967 | 42.4k | goto s_n_llpkgc_file__internal__n_leading_whitespace; |
968 | 0 | } |
969 | 5.25k | case 92: { |
970 | 5.25k | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__mark_2; |
971 | 0 | } |
972 | 348k | default: { |
973 | 348k | goto s_n_llpkgc_file__internal__n_invoke_update_finish_16; |
974 | 0 | } |
975 | 399k | } |
976 | 399k | UNREACHABLE; |
977 | 399k | } |
978 | 0 | case s_n_llpkgc_file__internal__n_separator_lf: |
979 | 1.00k | s_n_llpkgc_file__internal__n_separator_lf: { |
980 | 1.00k | if (p == endp) { |
981 | 8 | return s_n_llpkgc_file__internal__n_separator_lf; |
982 | 8 | } |
983 | 998 | switch (*p) { |
984 | 492 | case 13: { |
985 | 492 | p++; |
986 | 492 | goto s_n_llpkgc_file__internal__n_invoke_update_finish_9; |
987 | 0 | } |
988 | 506 | default: { |
989 | 506 | goto s_n_llpkgc_file__internal__n_invoke_update_finish_9; |
990 | 0 | } |
991 | 998 | } |
992 | 998 | UNREACHABLE; |
993 | 998 | } |
994 | 0 | case s_n_llpkgc_file__internal__n_separator_cr: |
995 | 1.61k | s_n_llpkgc_file__internal__n_separator_cr: { |
996 | 1.61k | if (p == endp) { |
997 | 7 | return s_n_llpkgc_file__internal__n_separator_cr; |
998 | 7 | } |
999 | 1.60k | switch (*p) { |
1000 | 1.01k | case 10: { |
1001 | 1.01k | p++; |
1002 | 1.01k | goto s_n_llpkgc_file__internal__n_invoke_update_finish_9; |
1003 | 0 | } |
1004 | 589 | default: { |
1005 | 589 | goto s_n_llpkgc_file__internal__n_invoke_update_finish_9; |
1006 | 0 | } |
1007 | 1.60k | } |
1008 | 1.60k | UNREACHABLE; |
1009 | 1.60k | } |
1010 | 0 | case s_n_llpkgc_file__internal__n_separator_escape: |
1011 | 4.64k | s_n_llpkgc_file__internal__n_separator_escape: { |
1012 | 4.64k | if (p == endp) { |
1013 | 13 | return s_n_llpkgc_file__internal__n_separator_escape; |
1014 | 13 | } |
1015 | 4.63k | switch (*p) { |
1016 | 1.00k | case 10: { |
1017 | 1.00k | p++; |
1018 | 1.00k | goto s_n_llpkgc_file__internal__n_invoke_update_finish_29; |
1019 | 0 | } |
1020 | 1.61k | case 13: { |
1021 | 1.61k | p++; |
1022 | 1.61k | goto s_n_llpkgc_file__internal__n_invoke_update_finish_30; |
1023 | 0 | } |
1024 | 393 | case '#': { |
1025 | 393 | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__on_ident; |
1026 | 0 | } |
1027 | 1.04k | case 92: { |
1028 | 1.04k | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__emit_ident_mark_4; |
1029 | 0 | } |
1030 | 578 | default: { |
1031 | 578 | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__emit_ident_mark_5; |
1032 | 0 | } |
1033 | 4.63k | } |
1034 | 4.63k | UNREACHABLE; |
1035 | 4.63k | } |
1036 | 0 | case s_n_llpkgc_file__internal__n_separator_backslash: |
1037 | 4.64k | s_n_llpkgc_file__internal__n_separator_backslash: { |
1038 | 4.64k | if (p == endp) { |
1039 | 0 | return s_n_llpkgc_file__internal__n_separator_backslash; |
1040 | 0 | } |
1041 | 4.64k | p++; |
1042 | 4.64k | goto s_n_llpkgc_file__internal__n_invoke_update_finish_28; |
1043 | 4.64k | UNREACHABLE; |
1044 | 4.64k | } |
1045 | 0 | case s_n_llpkgc_file__internal__n_separator: |
1046 | 376k | s_n_llpkgc_file__internal__n_separator: { |
1047 | 376k | if (p == endp) { |
1048 | 89 | return s_n_llpkgc_file__internal__n_separator; |
1049 | 89 | } |
1050 | 376k | switch (*p) { |
1051 | 6.84k | case 9: { |
1052 | 6.84k | p++; |
1053 | 6.84k | goto s_n_llpkgc_file__internal__n_separator; |
1054 | 0 | } |
1055 | 886 | case 10: { |
1056 | 886 | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__on_barewords_complete; |
1057 | 0 | } |
1058 | 660 | case 11: { |
1059 | 660 | p++; |
1060 | 660 | goto s_n_llpkgc_file__internal__n_separator; |
1061 | 0 | } |
1062 | 584 | case 12: { |
1063 | 584 | p++; |
1064 | 584 | goto s_n_llpkgc_file__internal__n_separator; |
1065 | 0 | } |
1066 | 556 | case 13: { |
1067 | 556 | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__on_barewords_complete; |
1068 | 0 | } |
1069 | 6.42k | case ' ': { |
1070 | 6.42k | p++; |
1071 | 6.42k | goto s_n_llpkgc_file__internal__n_separator; |
1072 | 0 | } |
1073 | 518 | case '#': { |
1074 | 518 | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__on_barewords_complete; |
1075 | 0 | } |
1076 | 188k | case ':': { |
1077 | 188k | p++; |
1078 | 188k | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__on_property_complete; |
1079 | 0 | } |
1080 | 163k | case '=': { |
1081 | 163k | p++; |
1082 | 163k | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__on_variable_complete; |
1083 | 0 | } |
1084 | 4.64k | case 92: { |
1085 | 4.64k | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__mark_6; |
1086 | 0 | } |
1087 | 3.70k | default: { |
1088 | 3.70k | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__on_ident_1; |
1089 | 0 | } |
1090 | 376k | } |
1091 | 376k | UNREACHABLE; |
1092 | 376k | } |
1093 | 0 | case s_n_llpkgc_file__internal__n_invoke_update_finish_9: |
1094 | 361k | s_n_llpkgc_file__internal__n_invoke_update_finish_9: { |
1095 | 361k | switch (llpkgc_file__internal__c_update_finish_4(state, p, endp)) { |
1096 | 361k | default: |
1097 | 361k | goto s_n_llpkgc_file__internal__n_separator; |
1098 | 361k | } |
1099 | 361k | UNREACHABLE; |
1100 | 361k | } |
1101 | 0 | case s_n_llpkgc_file__internal__n_identifier_lf: |
1102 | 980 | s_n_llpkgc_file__internal__n_identifier_lf: { |
1103 | 980 | if (p == endp) { |
1104 | 8 | return s_n_llpkgc_file__internal__n_identifier_lf; |
1105 | 8 | } |
1106 | 972 | switch (*p) { |
1107 | 480 | case 13: { |
1108 | 480 | p++; |
1109 | 480 | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__on_ident_2; |
1110 | 0 | } |
1111 | 492 | default: { |
1112 | 492 | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__on_ident_2; |
1113 | 0 | } |
1114 | 972 | } |
1115 | 972 | UNREACHABLE; |
1116 | 972 | } |
1117 | 0 | case s_n_llpkgc_file__internal__n_identifier_cr: |
1118 | 1.04k | s_n_llpkgc_file__internal__n_identifier_cr: { |
1119 | 1.04k | if (p == endp) { |
1120 | 7 | return s_n_llpkgc_file__internal__n_identifier_cr; |
1121 | 7 | } |
1122 | 1.03k | switch (*p) { |
1123 | 503 | case 10: { |
1124 | 503 | p++; |
1125 | 503 | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__on_ident_2; |
1126 | 0 | } |
1127 | 535 | default: { |
1128 | 535 | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__on_ident_2; |
1129 | 0 | } |
1130 | 1.03k | } |
1131 | 1.03k | UNREACHABLE; |
1132 | 1.03k | } |
1133 | 0 | case s_n_llpkgc_file__internal__n_identifier_escape: |
1134 | 3.65k | s_n_llpkgc_file__internal__n_identifier_escape: { |
1135 | 3.65k | if (p == endp) { |
1136 | 18 | return s_n_llpkgc_file__internal__n_identifier_escape; |
1137 | 18 | } |
1138 | 3.63k | switch (*p) { |
1139 | 980 | case 10: { |
1140 | 980 | p++; |
1141 | 980 | goto s_n_llpkgc_file__internal__n_invoke_update_finish_32; |
1142 | 0 | } |
1143 | 1.04k | case 13: { |
1144 | 1.04k | p++; |
1145 | 1.04k | goto s_n_llpkgc_file__internal__n_invoke_update_finish_33; |
1146 | 0 | } |
1147 | 426 | case '#': { |
1148 | 426 | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__on_ident; |
1149 | 0 | } |
1150 | 470 | case 92: { |
1151 | 470 | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__emit_ident_mark_6; |
1152 | 0 | } |
1153 | 713 | default: { |
1154 | 713 | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__emit_ident_mark_7; |
1155 | 0 | } |
1156 | 3.63k | } |
1157 | 3.63k | UNREACHABLE; |
1158 | 3.63k | } |
1159 | 0 | case s_n_llpkgc_file__internal__n_identifier_backslash: |
1160 | 3.65k | s_n_llpkgc_file__internal__n_identifier_backslash: { |
1161 | 3.65k | if (p == endp) { |
1162 | 0 | return s_n_llpkgc_file__internal__n_identifier_backslash; |
1163 | 0 | } |
1164 | 3.65k | p++; |
1165 | 3.65k | goto s_n_llpkgc_file__internal__n_invoke_update_finish_31; |
1166 | 3.65k | UNREACHABLE; |
1167 | 3.65k | } |
1168 | 0 | case s_n_llpkgc_file__internal__n_invoke_llpkgc_file__mark_7: |
1169 | 3.65k | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__mark_7: { |
1170 | 3.65k | switch (llpkgc_file__mark(state, p, endp)) { |
1171 | 3.65k | case 0: |
1172 | 3.65k | goto s_n_llpkgc_file__internal__n_identifier_backslash; |
1173 | 0 | case 5: |
1174 | 0 | goto s_n_llpkgc_file__internal__n_error_88; |
1175 | 0 | default: |
1176 | 0 | goto s_n_llpkgc_file__internal__n_error_83; |
1177 | 3.65k | } |
1178 | 3.65k | UNREACHABLE; |
1179 | 3.65k | } |
1180 | 0 | case s_n_llpkgc_file__internal__n_identifier: |
1181 | 1.67M | s_n_llpkgc_file__internal__n_identifier: { |
1182 | 1.67M | static uint8_t lookup_table[] = { |
1183 | 1.67M | 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 1, 1, 2, 0, 0, |
1184 | 1.67M | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
1185 | 1.67M | 1, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, |
1186 | 1.67M | 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 1, 0, 0, 1, 0, 0, |
1187 | 1.67M | 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, |
1188 | 1.67M | 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 4, 0, 0, 3, |
1189 | 1.67M | 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, |
1190 | 1.67M | 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, |
1191 | 1.67M | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
1192 | 1.67M | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
1193 | 1.67M | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
1194 | 1.67M | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
1195 | 1.67M | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
1196 | 1.67M | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
1197 | 1.67M | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
1198 | 1.67M | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
1199 | 1.67M | }; |
1200 | 1.67M | if (p == endp) { |
1201 | 317 | return s_n_llpkgc_file__internal__n_identifier; |
1202 | 317 | } |
1203 | 1.67M | switch (lookup_table[(uint8_t) *p]) { |
1204 | 359k | case 1: { |
1205 | 359k | goto s_n_llpkgc_file__internal__n_span_end_llpkgc_file__on_ident_2; |
1206 | 0 | } |
1207 | 76.8k | case 2: { |
1208 | 76.8k | goto s_n_llpkgc_file__internal__n_span_end_llpkgc_file__on_ident; |
1209 | 0 | } |
1210 | 1.12M | case 3: { |
1211 | 1.12M | p++; |
1212 | 1.12M | goto s_n_llpkgc_file__internal__n_identifier; |
1213 | 0 | } |
1214 | 3.65k | case 4: { |
1215 | 3.65k | goto s_n_llpkgc_file__internal__n_span_end_llpkgc_file__on_ident_3; |
1216 | 0 | } |
1217 | 110k | default: { |
1218 | 110k | goto s_n_llpkgc_file__internal__n_invoke_update_finish_4; |
1219 | 0 | } |
1220 | 1.67M | } |
1221 | 1.67M | UNREACHABLE; |
1222 | 1.67M | } |
1223 | 0 | case s_n_llpkgc_file__internal__n_span_start_llpkgc_file__on_ident_2: |
1224 | 550k | s_n_llpkgc_file__internal__n_span_start_llpkgc_file__on_ident_2: { |
1225 | 550k | if (p == endp) { |
1226 | 17 | return s_n_llpkgc_file__internal__n_span_start_llpkgc_file__on_ident_2; |
1227 | 17 | } |
1228 | 550k | state->_span_pos0 = (void*) p; |
1229 | 550k | state->_span_cb0 = llpkgc_file__on_ident; |
1230 | 550k | goto s_n_llpkgc_file__internal__n_invoke_update_finish_8; |
1231 | 550k | UNREACHABLE; |
1232 | 550k | } |
1233 | 8.10k | case s_n_llpkgc_file__internal__n_start: |
1234 | 1.13M | s_n_llpkgc_file__internal__n_start: { |
1235 | 1.13M | if (p == endp) { |
1236 | 1.12k | return s_n_llpkgc_file__internal__n_start; |
1237 | 1.12k | } |
1238 | 1.13M | switch (*p) { |
1239 | 3.78k | case 9: { |
1240 | 3.78k | p++; |
1241 | 3.78k | goto s_n_llpkgc_file__internal__n_start; |
1242 | 0 | } |
1243 | 487k | case 10: { |
1244 | 487k | p++; |
1245 | 487k | goto s_n_llpkgc_file__internal__n_start; |
1246 | 0 | } |
1247 | 538 | case 11: { |
1248 | 538 | p++; |
1249 | 538 | goto s_n_llpkgc_file__internal__n_start; |
1250 | 0 | } |
1251 | 859 | case 12: { |
1252 | 859 | p++; |
1253 | 859 | goto s_n_llpkgc_file__internal__n_start; |
1254 | 0 | } |
1255 | 77.0k | case 13: { |
1256 | 77.0k | p++; |
1257 | 77.0k | goto s_n_llpkgc_file__internal__n_start; |
1258 | 0 | } |
1259 | 1.43k | case ' ': { |
1260 | 1.43k | p++; |
1261 | 1.43k | goto s_n_llpkgc_file__internal__n_start; |
1262 | 0 | } |
1263 | 7.25k | case '#': { |
1264 | 7.25k | p++; |
1265 | 7.25k | goto s_n_llpkgc_file__internal__n_comment; |
1266 | 0 | } |
1267 | 6.30k | case 92: { |
1268 | 6.30k | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__mark; |
1269 | 0 | } |
1270 | 548k | default: { |
1271 | 548k | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__on_ident_2; |
1272 | 0 | } |
1273 | 1.13M | } |
1274 | 1.13M | UNREACHABLE; |
1275 | 1.13M | } |
1276 | 0 | default: |
1277 | 0 | UNREACHABLE; |
1278 | 8.10k | } |
1279 | 208k | s_n_llpkgc_file__internal__n_invoke_update_finish: { |
1280 | 208k | switch (llpkgc_file__internal__c_update_finish(state, p, endp)) { |
1281 | 208k | default: |
1282 | 208k | goto s_n_llpkgc_file__internal__n_start; |
1283 | 208k | } |
1284 | 208k | UNREACHABLE; |
1285 | 208k | } |
1286 | 1.61k | s_n_llpkgc_file__internal__n_invoke_update_finish_2: { |
1287 | 1.61k | switch (llpkgc_file__internal__c_update_finish(state, p, endp)) { |
1288 | 1.61k | default: |
1289 | 1.61k | goto s_n_llpkgc_file__internal__n_start_lf; |
1290 | 1.61k | } |
1291 | 1.61k | UNREACHABLE; |
1292 | 1.61k | } |
1293 | 2.51k | s_n_llpkgc_file__internal__n_invoke_update_finish_3: { |
1294 | 2.51k | switch (llpkgc_file__internal__c_update_finish(state, p, endp)) { |
1295 | 2.51k | default: |
1296 | 2.51k | goto s_n_llpkgc_file__internal__n_start_cr; |
1297 | 2.51k | } |
1298 | 2.51k | UNREACHABLE; |
1299 | 2.51k | } |
1300 | 0 | s_n_llpkgc_file__internal__n_error_3: { |
1301 | 0 | state->error = 0x5; |
1302 | 0 | state->reason = "Internal parser error"; |
1303 | 0 | state->error_pos = (const char*) p; |
1304 | 0 | state->_current = (void*) (intptr_t) s_error; |
1305 | 0 | return s_error; |
1306 | 2.51k | UNREACHABLE; |
1307 | 2.51k | } |
1308 | 0 | s_n_llpkgc_file__internal__n_error_2: { |
1309 | 0 | state->error = 0x2; |
1310 | 0 | state->reason = "Callback error"; |
1311 | 0 | state->error_pos = (const char*) p; |
1312 | 0 | state->_current = (void*) (intptr_t) s_error; |
1313 | 0 | return s_error; |
1314 | 2.51k | UNREACHABLE; |
1315 | 2.51k | } |
1316 | 197k | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__on_value_complete: { |
1317 | 197k | switch (llpkgc_file__on_value_complete(state, p, endp)) { |
1318 | 197k | case 0: |
1319 | 197k | goto s_n_llpkgc_file__internal__n_invoke_update_finish; |
1320 | 0 | case 5: |
1321 | 0 | goto s_n_llpkgc_file__internal__n_error_3; |
1322 | 0 | default: |
1323 | 0 | goto s_n_llpkgc_file__internal__n_error_2; |
1324 | 197k | } |
1325 | 197k | UNREACHABLE; |
1326 | 197k | } |
1327 | 0 | s_n_llpkgc_file__internal__n_error_4: { |
1328 | 0 | state->error = 0x5; |
1329 | 0 | state->reason = "Internal parser error"; |
1330 | 0 | state->error_pos = (const char*) p; |
1331 | 0 | state->_current = (void*) (intptr_t) s_error; |
1332 | 0 | return s_error; |
1333 | 197k | UNREACHABLE; |
1334 | 197k | } |
1335 | 0 | s_n_llpkgc_file__internal__n_error_1: { |
1336 | 0 | state->error = 0x2; |
1337 | 0 | state->reason = "Callback error"; |
1338 | 0 | state->error_pos = (const char*) p; |
1339 | 0 | state->_current = (void*) (intptr_t) s_error; |
1340 | 0 | return s_error; |
1341 | 197k | UNREACHABLE; |
1342 | 197k | } |
1343 | 195k | s_n_llpkgc_file__internal__n_span_end_llpkgc_file__on_ident: { |
1344 | 195k | const unsigned char* start; |
1345 | 195k | int err; |
1346 | | |
1347 | 195k | start = state->_span_pos0; |
1348 | 195k | state->_span_pos0 = NULL; |
1349 | 195k | err = llpkgc_file__on_ident(state, start, p); |
1350 | 195k | if (err != 0) { |
1351 | 0 | state->error = err; |
1352 | 0 | state->error_pos = (const char*) p; |
1353 | 0 | state->_current = (void*) (intptr_t) s_n_llpkgc_file__internal__n_invoke_llpkgc_file__on_barewords_complete; |
1354 | 0 | return s_error; |
1355 | 0 | } |
1356 | 195k | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__on_barewords_complete; |
1357 | 195k | UNREACHABLE; |
1358 | 195k | } |
1359 | 1.29k | s_n_llpkgc_file__internal__n_invoke_update_finish_6: { |
1360 | 1.29k | switch (llpkgc_file__internal__c_update_finish_4(state, p, endp)) { |
1361 | 1.29k | default: |
1362 | 1.29k | goto s_n_llpkgc_file__internal__n_bareword_lf; |
1363 | 1.29k | } |
1364 | 1.29k | UNREACHABLE; |
1365 | 1.29k | } |
1366 | 1.81k | s_n_llpkgc_file__internal__n_invoke_update_finish_7: { |
1367 | 1.81k | switch (llpkgc_file__internal__c_update_finish_4(state, p, endp)) { |
1368 | 1.81k | default: |
1369 | 1.81k | goto s_n_llpkgc_file__internal__n_bareword_cr; |
1370 | 1.81k | } |
1371 | 1.81k | UNREACHABLE; |
1372 | 1.81k | } |
1373 | 0 | s_n_llpkgc_file__internal__n_error_7: { |
1374 | 0 | state->error = 0x5; |
1375 | 0 | state->reason = "Internal parser error"; |
1376 | 0 | state->error_pos = (const char*) p; |
1377 | 0 | state->_current = (void*) (intptr_t) s_error; |
1378 | 0 | return s_error; |
1379 | 1.81k | UNREACHABLE; |
1380 | 1.81k | } |
1381 | 0 | s_n_llpkgc_file__internal__n_error_6: { |
1382 | 0 | state->error = 0x2; |
1383 | 0 | state->reason = "Callback error"; |
1384 | 0 | state->error_pos = (const char*) p; |
1385 | 0 | state->_current = (void*) (intptr_t) s_error; |
1386 | 0 | return s_error; |
1387 | 1.81k | UNREACHABLE; |
1388 | 1.81k | } |
1389 | 2.68k | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__emit_ident_mark: { |
1390 | 2.68k | switch (llpkgc_file__emit_ident_mark(state, p, endp)) { |
1391 | 2.68k | case 0: |
1392 | 2.68k | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__on_ident; |
1393 | 0 | case 5: |
1394 | 0 | goto s_n_llpkgc_file__internal__n_error_7; |
1395 | 0 | default: |
1396 | 0 | goto s_n_llpkgc_file__internal__n_error_6; |
1397 | 2.68k | } |
1398 | 2.68k | UNREACHABLE; |
1399 | 2.68k | } |
1400 | 0 | s_n_llpkgc_file__internal__n_error_9: { |
1401 | 0 | state->error = 0x5; |
1402 | 0 | state->reason = "Internal parser error"; |
1403 | 0 | state->error_pos = (const char*) p; |
1404 | 0 | state->_current = (void*) (intptr_t) s_error; |
1405 | 0 | return s_error; |
1406 | 2.68k | UNREACHABLE; |
1407 | 2.68k | } |
1408 | 0 | s_n_llpkgc_file__internal__n_error_8: { |
1409 | 0 | state->error = 0x2; |
1410 | 0 | state->reason = "Callback error"; |
1411 | 0 | state->error_pos = (const char*) p; |
1412 | 0 | state->_current = (void*) (intptr_t) s_error; |
1413 | 0 | return s_error; |
1414 | 2.68k | UNREACHABLE; |
1415 | 2.68k | } |
1416 | 2.72k | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__emit_ident_mark_1: { |
1417 | 2.72k | switch (llpkgc_file__emit_ident_mark(state, p, endp)) { |
1418 | 2.72k | case 0: |
1419 | 2.72k | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__on_ident_1; |
1420 | 0 | case 5: |
1421 | 0 | goto s_n_llpkgc_file__internal__n_error_9; |
1422 | 0 | default: |
1423 | 0 | goto s_n_llpkgc_file__internal__n_error_8; |
1424 | 2.72k | } |
1425 | 2.72k | UNREACHABLE; |
1426 | 2.72k | } |
1427 | 9.05k | s_n_llpkgc_file__internal__n_invoke_update_finish_5: { |
1428 | 9.05k | switch (llpkgc_file__internal__c_update_finish_1(state, p, endp)) { |
1429 | 9.05k | default: |
1430 | 9.05k | goto s_n_llpkgc_file__internal__n_bareword_escape; |
1431 | 9.05k | } |
1432 | 9.05k | UNREACHABLE; |
1433 | 9.05k | } |
1434 | 0 | s_n_llpkgc_file__internal__n_error_10: { |
1435 | 0 | state->error = 0x5; |
1436 | 0 | state->reason = "Internal parser error"; |
1437 | 0 | state->error_pos = (const char*) p; |
1438 | 0 | state->_current = (void*) (intptr_t) s_error; |
1439 | 0 | return s_error; |
1440 | 9.05k | UNREACHABLE; |
1441 | 9.05k | } |
1442 | 0 | s_n_llpkgc_file__internal__n_error_5: { |
1443 | 0 | state->error = 0x2; |
1444 | 0 | state->reason = "Callback error"; |
1445 | 0 | state->error_pos = (const char*) p; |
1446 | 0 | state->_current = (void*) (intptr_t) s_error; |
1447 | 0 | return s_error; |
1448 | 9.05k | UNREACHABLE; |
1449 | 9.05k | } |
1450 | 9.05k | s_n_llpkgc_file__internal__n_span_end_llpkgc_file__on_ident_1: { |
1451 | 9.05k | const unsigned char* start; |
1452 | 9.05k | int err; |
1453 | | |
1454 | 9.05k | start = state->_span_pos0; |
1455 | 9.05k | state->_span_pos0 = NULL; |
1456 | 9.05k | err = llpkgc_file__on_ident(state, start, p); |
1457 | 9.05k | if (err != 0) { |
1458 | 0 | state->error = err; |
1459 | 0 | state->error_pos = (const char*) p; |
1460 | 0 | state->_current = (void*) (intptr_t) s_n_llpkgc_file__internal__n_invoke_llpkgc_file__mark_1; |
1461 | 0 | return s_error; |
1462 | 0 | } |
1463 | 9.05k | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__mark_1; |
1464 | 9.05k | UNREACHABLE; |
1465 | 9.05k | } |
1466 | 128k | s_n_llpkgc_file__internal__n_invoke_update_finish_4: { |
1467 | 128k | switch (llpkgc_file__internal__c_update_finish_4(state, p, endp)) { |
1468 | 128k | default: |
1469 | 128k | goto s_n_llpkgc_file__internal__n_bareword; |
1470 | 128k | } |
1471 | 128k | UNREACHABLE; |
1472 | 128k | } |
1473 | 0 | s_n_llpkgc_file__internal__n_error_12: { |
1474 | 0 | state->error = 0x5; |
1475 | 0 | state->reason = "Internal parser error"; |
1476 | 0 | state->error_pos = (const char*) p; |
1477 | 0 | state->_current = (void*) (intptr_t) s_error; |
1478 | 0 | return s_error; |
1479 | 128k | UNREACHABLE; |
1480 | 128k | } |
1481 | 0 | s_n_llpkgc_file__internal__n_error_11: { |
1482 | 0 | state->error = 0x2; |
1483 | 0 | state->reason = "Callback error"; |
1484 | 0 | state->error_pos = (const char*) p; |
1485 | 0 | state->_current = (void*) (intptr_t) s_error; |
1486 | 0 | return s_error; |
1487 | 128k | UNREACHABLE; |
1488 | 128k | } |
1489 | 662 | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__emit_ident_mark_2: { |
1490 | 662 | switch (llpkgc_file__emit_ident_mark(state, p, endp)) { |
1491 | 662 | case 0: |
1492 | 662 | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__on_ident; |
1493 | 0 | case 5: |
1494 | 0 | goto s_n_llpkgc_file__internal__n_error_12; |
1495 | 0 | default: |
1496 | 0 | goto s_n_llpkgc_file__internal__n_error_11; |
1497 | 662 | } |
1498 | 662 | UNREACHABLE; |
1499 | 662 | } |
1500 | 0 | s_n_llpkgc_file__internal__n_error_14: { |
1501 | 0 | state->error = 0x5; |
1502 | 0 | state->reason = "Internal parser error"; |
1503 | 0 | state->error_pos = (const char*) p; |
1504 | 0 | state->_current = (void*) (intptr_t) s_error; |
1505 | 0 | return s_error; |
1506 | 662 | UNREACHABLE; |
1507 | 662 | } |
1508 | 0 | s_n_llpkgc_file__internal__n_error_13: { |
1509 | 0 | state->error = 0x2; |
1510 | 0 | state->reason = "Callback error"; |
1511 | 0 | state->error_pos = (const char*) p; |
1512 | 0 | state->_current = (void*) (intptr_t) s_error; |
1513 | 0 | return s_error; |
1514 | 662 | UNREACHABLE; |
1515 | 662 | } |
1516 | 1.03k | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__emit_ident_mark_3: { |
1517 | 1.03k | switch (llpkgc_file__emit_ident_mark(state, p, endp)) { |
1518 | 1.03k | case 0: |
1519 | 1.03k | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__on_ident_1; |
1520 | 0 | case 5: |
1521 | 0 | goto s_n_llpkgc_file__internal__n_error_14; |
1522 | 0 | default: |
1523 | 0 | goto s_n_llpkgc_file__internal__n_error_13; |
1524 | 1.03k | } |
1525 | 1.03k | UNREACHABLE; |
1526 | 1.03k | } |
1527 | 6.30k | s_n_llpkgc_file__internal__n_invoke_update_finish_1: { |
1528 | 6.30k | switch (llpkgc_file__internal__c_update_finish_1(state, p, endp)) { |
1529 | 6.30k | default: |
1530 | 6.30k | goto s_n_llpkgc_file__internal__n_start_escape; |
1531 | 6.30k | } |
1532 | 6.30k | UNREACHABLE; |
1533 | 6.30k | } |
1534 | 0 | s_n_llpkgc_file__internal__n_error_15: { |
1535 | 0 | state->error = 0x5; |
1536 | 0 | state->reason = "Internal parser error"; |
1537 | 0 | state->error_pos = (const char*) p; |
1538 | 0 | state->_current = (void*) (intptr_t) s_error; |
1539 | 0 | return s_error; |
1540 | 6.30k | UNREACHABLE; |
1541 | 6.30k | } |
1542 | 0 | s_n_llpkgc_file__internal__n_error: { |
1543 | 0 | state->error = 0x2; |
1544 | 0 | state->reason = "Callback error"; |
1545 | 0 | state->error_pos = (const char*) p; |
1546 | 0 | state->_current = (void*) (intptr_t) s_error; |
1547 | 0 | return s_error; |
1548 | 6.30k | UNREACHABLE; |
1549 | 6.30k | } |
1550 | 6.30k | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__mark: { |
1551 | 6.30k | switch (llpkgc_file__mark(state, p, endp)) { |
1552 | 6.30k | case 0: |
1553 | 6.30k | goto s_n_llpkgc_file__internal__n_start_backslash; |
1554 | 0 | case 5: |
1555 | 0 | goto s_n_llpkgc_file__internal__n_error_15; |
1556 | 0 | default: |
1557 | 0 | goto s_n_llpkgc_file__internal__n_error; |
1558 | 6.30k | } |
1559 | 6.30k | UNREACHABLE; |
1560 | 6.30k | } |
1561 | 3.20k | s_n_llpkgc_file__internal__n_invoke_update_finish_13: { |
1562 | 3.20k | switch (llpkgc_file__internal__c_update_finish_10(state, p, endp)) { |
1563 | 3.20k | default: |
1564 | 3.20k | goto s_n_llpkgc_file__internal__n_leading_whitespace; |
1565 | 3.20k | } |
1566 | 3.20k | UNREACHABLE; |
1567 | 3.20k | } |
1568 | 1.33k | s_n_llpkgc_file__internal__n_invoke_update_finish_12: { |
1569 | 1.33k | switch (llpkgc_file__internal__c_update_finish_10(state, p, endp)) { |
1570 | 1.33k | default: |
1571 | 1.33k | goto s_n_llpkgc_file__internal__n_leading_lf; |
1572 | 1.33k | } |
1573 | 1.33k | UNREACHABLE; |
1574 | 1.33k | } |
1575 | 1.89k | s_n_llpkgc_file__internal__n_invoke_update_finish_14: { |
1576 | 1.89k | switch (llpkgc_file__internal__c_update_finish_10(state, p, endp)) { |
1577 | 1.89k | default: |
1578 | 1.89k | goto s_n_llpkgc_file__internal__n_leading_cr; |
1579 | 1.89k | } |
1580 | 1.89k | UNREACHABLE; |
1581 | 1.89k | } |
1582 | 346k | s_n_llpkgc_file__internal__n_invoke_update_finish_18: { |
1583 | 346k | switch (llpkgc_file__internal__c_update_finish(state, p, endp)) { |
1584 | 346k | default: |
1585 | 346k | goto s_n_llpkgc_file__internal__n_start; |
1586 | 346k | } |
1587 | 346k | UNREACHABLE; |
1588 | 346k | } |
1589 | 0 | s_n_llpkgc_file__internal__n_error_21: { |
1590 | 0 | state->error = 0x5; |
1591 | 0 | state->reason = "Internal parser error"; |
1592 | 0 | state->error_pos = (const char*) p; |
1593 | 0 | state->_current = (void*) (intptr_t) s_error; |
1594 | 0 | return s_error; |
1595 | 346k | UNREACHABLE; |
1596 | 346k | } |
1597 | 0 | s_n_llpkgc_file__internal__n_error_20: { |
1598 | 0 | state->error = 0x2; |
1599 | 0 | state->reason = "Callback error"; |
1600 | 0 | state->error_pos = (const char*) p; |
1601 | 0 | state->_current = (void*) (intptr_t) s_error; |
1602 | 0 | return s_error; |
1603 | 346k | UNREACHABLE; |
1604 | 346k | } |
1605 | 346k | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__on_value_complete_1: { |
1606 | 346k | switch (llpkgc_file__on_value_complete(state, p, endp)) { |
1607 | 346k | case 0: |
1608 | 346k | goto s_n_llpkgc_file__internal__n_invoke_update_finish_18; |
1609 | 0 | case 5: |
1610 | 0 | goto s_n_llpkgc_file__internal__n_error_21; |
1611 | 0 | default: |
1612 | 0 | goto s_n_llpkgc_file__internal__n_error_20; |
1613 | 346k | } |
1614 | 346k | UNREACHABLE; |
1615 | 346k | } |
1616 | 0 | s_n_llpkgc_file__internal__n_error_22: { |
1617 | 0 | state->error = 0x5; |
1618 | 0 | state->reason = "Internal parser error"; |
1619 | 0 | state->error_pos = (const char*) p; |
1620 | 0 | state->_current = (void*) (intptr_t) s_error; |
1621 | 0 | return s_error; |
1622 | 346k | UNREACHABLE; |
1623 | 346k | } |
1624 | 0 | s_n_llpkgc_file__internal__n_error_19: { |
1625 | 0 | state->error = 0x2; |
1626 | 0 | state->reason = "Callback error"; |
1627 | 0 | state->error_pos = (const char*) p; |
1628 | 0 | state->_current = (void*) (intptr_t) s_error; |
1629 | 0 | return s_error; |
1630 | 346k | UNREACHABLE; |
1631 | 346k | } |
1632 | 2.48k | s_n_llpkgc_file__internal__n_span_end_llpkgc_file__whitespace: { |
1633 | 2.48k | const unsigned char* start; |
1634 | 2.48k | int err; |
1635 | | |
1636 | 2.48k | start = state->_span_pos0; |
1637 | 2.48k | state->_span_pos0 = NULL; |
1638 | 2.48k | err = llpkgc_file__whitespace(state, start, p); |
1639 | 2.48k | if (err != 0) { |
1640 | 0 | state->error = err; |
1641 | 0 | state->error_pos = (const char*) p; |
1642 | 0 | state->_current = (void*) (intptr_t) s_n_llpkgc_file__internal__n_invoke_llpkgc_file__clear_whitespace; |
1643 | 0 | return s_error; |
1644 | 0 | } |
1645 | 2.48k | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__clear_whitespace; |
1646 | 2.48k | UNREACHABLE; |
1647 | 2.48k | } |
1648 | 1.68k | s_n_llpkgc_file__internal__n_invoke_update_finish_20: { |
1649 | 1.68k | switch (llpkgc_file__internal__c_update_finish_10(state, p, endp)) { |
1650 | 1.68k | default: |
1651 | 1.68k | goto s_n_llpkgc_file__internal__n_whitespace_lf; |
1652 | 1.68k | } |
1653 | 1.68k | UNREACHABLE; |
1654 | 1.68k | } |
1655 | 2.73k | s_n_llpkgc_file__internal__n_invoke_update_finish_21: { |
1656 | 2.73k | switch (llpkgc_file__internal__c_update_finish_10(state, p, endp)) { |
1657 | 2.73k | default: |
1658 | 2.73k | goto s_n_llpkgc_file__internal__n_whitespace_cr; |
1659 | 2.73k | } |
1660 | 2.73k | UNREACHABLE; |
1661 | 2.73k | } |
1662 | 0 | s_n_llpkgc_file__internal__n_error_25: { |
1663 | 0 | state->error = 0x5; |
1664 | 0 | state->reason = "Internal parser error"; |
1665 | 0 | state->error_pos = (const char*) p; |
1666 | 0 | state->_current = (void*) (intptr_t) s_error; |
1667 | 0 | return s_error; |
1668 | 2.73k | UNREACHABLE; |
1669 | 2.73k | } |
1670 | 0 | s_n_llpkgc_file__internal__n_error_24: { |
1671 | 0 | state->error = 0x2; |
1672 | 0 | state->reason = "Callback error"; |
1673 | 0 | state->error_pos = (const char*) p; |
1674 | 0 | state->_current = (void*) (intptr_t) s_error; |
1675 | 0 | return s_error; |
1676 | 2.73k | UNREACHABLE; |
1677 | 2.73k | } |
1678 | 410 | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__flush_whitespace_all: { |
1679 | 410 | switch (llpkgc_file__flush_whitespace_all(state, p, endp)) { |
1680 | 410 | case 0: |
1681 | 410 | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__on_value_literal; |
1682 | 0 | case 5: |
1683 | 0 | goto s_n_llpkgc_file__internal__n_error_25; |
1684 | 0 | default: |
1685 | 0 | goto s_n_llpkgc_file__internal__n_error_24; |
1686 | 410 | } |
1687 | 410 | UNREACHABLE; |
1688 | 410 | } |
1689 | 0 | s_n_llpkgc_file__internal__n_error_29: { |
1690 | 0 | state->error = 0x5; |
1691 | 0 | state->reason = "Internal parser error"; |
1692 | 0 | state->error_pos = (const char*) p; |
1693 | 0 | state->_current = (void*) (intptr_t) s_error; |
1694 | 0 | return s_error; |
1695 | 410 | UNREACHABLE; |
1696 | 410 | } |
1697 | 0 | s_n_llpkgc_file__internal__n_error_28: { |
1698 | 0 | state->error = 0x2; |
1699 | 0 | state->reason = "Callback error"; |
1700 | 0 | state->error_pos = (const char*) p; |
1701 | 0 | state->_current = (void*) (intptr_t) s_error; |
1702 | 0 | return s_error; |
1703 | 410 | UNREACHABLE; |
1704 | 410 | } |
1705 | 582 | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__on_value_literal_complete_1: { |
1706 | 582 | switch (llpkgc_file__on_value_literal_complete(state, p, endp)) { |
1707 | 582 | case 0: |
1708 | 582 | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__on_value_literal; |
1709 | 0 | case 5: |
1710 | 0 | goto s_n_llpkgc_file__internal__n_error_29; |
1711 | 0 | default: |
1712 | 0 | goto s_n_llpkgc_file__internal__n_error_28; |
1713 | 582 | } |
1714 | 582 | UNREACHABLE; |
1715 | 582 | } |
1716 | 0 | s_n_llpkgc_file__internal__n_error_30: { |
1717 | 0 | state->error = 0x5; |
1718 | 0 | state->reason = "Internal parser error"; |
1719 | 0 | state->error_pos = (const char*) p; |
1720 | 0 | state->_current = (void*) (intptr_t) s_error; |
1721 | 0 | return s_error; |
1722 | 582 | UNREACHABLE; |
1723 | 582 | } |
1724 | 0 | s_n_llpkgc_file__internal__n_error_27: { |
1725 | 0 | state->error = 0x2; |
1726 | 0 | state->reason = "Callback error"; |
1727 | 0 | state->error_pos = (const char*) p; |
1728 | 0 | state->_current = (void*) (intptr_t) s_error; |
1729 | 0 | return s_error; |
1730 | 582 | UNREACHABLE; |
1731 | 582 | } |
1732 | 582 | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__emit_literal_mark: { |
1733 | 582 | switch (llpkgc_file__emit_literal_mark(state, p, endp)) { |
1734 | 582 | case 0: |
1735 | 582 | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__on_value_literal_complete_1; |
1736 | 0 | case 5: |
1737 | 0 | goto s_n_llpkgc_file__internal__n_error_30; |
1738 | 0 | default: |
1739 | 0 | goto s_n_llpkgc_file__internal__n_error_27; |
1740 | 582 | } |
1741 | 582 | UNREACHABLE; |
1742 | 582 | } |
1743 | 0 | s_n_llpkgc_file__internal__n_error_31: { |
1744 | 0 | state->error = 0x5; |
1745 | 0 | state->reason = "Internal parser error"; |
1746 | 0 | state->error_pos = (const char*) p; |
1747 | 0 | state->_current = (void*) (intptr_t) s_error; |
1748 | 0 | return s_error; |
1749 | 582 | UNREACHABLE; |
1750 | 582 | } |
1751 | 0 | s_n_llpkgc_file__internal__n_error_26: { |
1752 | 0 | state->error = 0x2; |
1753 | 0 | state->reason = "Callback error"; |
1754 | 0 | state->error_pos = (const char*) p; |
1755 | 0 | state->_current = (void*) (intptr_t) s_error; |
1756 | 0 | return s_error; |
1757 | 582 | UNREACHABLE; |
1758 | 582 | } |
1759 | 582 | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__flush_whitespace_all_1: { |
1760 | 582 | switch (llpkgc_file__flush_whitespace_all(state, p, endp)) { |
1761 | 582 | case 0: |
1762 | 582 | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__emit_literal_mark; |
1763 | 0 | case 5: |
1764 | 0 | goto s_n_llpkgc_file__internal__n_error_31; |
1765 | 0 | default: |
1766 | 0 | goto s_n_llpkgc_file__internal__n_error_26; |
1767 | 582 | } |
1768 | 582 | UNREACHABLE; |
1769 | 582 | } |
1770 | 0 | s_n_llpkgc_file__internal__n_error_35: { |
1771 | 0 | state->error = 0x5; |
1772 | 0 | state->reason = "Internal parser error"; |
1773 | 0 | state->error_pos = (const char*) p; |
1774 | 0 | state->_current = (void*) (intptr_t) s_error; |
1775 | 0 | return s_error; |
1776 | 582 | UNREACHABLE; |
1777 | 582 | } |
1778 | 0 | s_n_llpkgc_file__internal__n_error_34: { |
1779 | 0 | state->error = 0x2; |
1780 | 0 | state->reason = "Callback error"; |
1781 | 0 | state->error_pos = (const char*) p; |
1782 | 0 | state->_current = (void*) (intptr_t) s_error; |
1783 | 0 | return s_error; |
1784 | 582 | UNREACHABLE; |
1785 | 582 | } |
1786 | 1.28k | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__on_value_literal_complete_2: { |
1787 | 1.28k | switch (llpkgc_file__on_value_literal_complete(state, p, endp)) { |
1788 | 1.28k | case 0: |
1789 | 1.28k | goto s_n_llpkgc_file__internal__n_invoke_update_finish_16; |
1790 | 0 | case 5: |
1791 | 0 | goto s_n_llpkgc_file__internal__n_error_35; |
1792 | 0 | default: |
1793 | 0 | goto s_n_llpkgc_file__internal__n_error_34; |
1794 | 1.28k | } |
1795 | 1.28k | UNREACHABLE; |
1796 | 1.28k | } |
1797 | 0 | s_n_llpkgc_file__internal__n_error_36: { |
1798 | 0 | state->error = 0x5; |
1799 | 0 | state->reason = "Internal parser error"; |
1800 | 0 | state->error_pos = (const char*) p; |
1801 | 0 | state->_current = (void*) (intptr_t) s_error; |
1802 | 0 | return s_error; |
1803 | 1.28k | UNREACHABLE; |
1804 | 1.28k | } |
1805 | 0 | s_n_llpkgc_file__internal__n_error_33: { |
1806 | 0 | state->error = 0x2; |
1807 | 0 | state->reason = "Callback error"; |
1808 | 0 | state->error_pos = (const char*) p; |
1809 | 0 | state->_current = (void*) (intptr_t) s_error; |
1810 | 0 | return s_error; |
1811 | 1.28k | UNREACHABLE; |
1812 | 1.28k | } |
1813 | 1.28k | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__emit_literal_mark_1: { |
1814 | 1.28k | switch (llpkgc_file__emit_literal_mark(state, p, endp)) { |
1815 | 1.28k | case 0: |
1816 | 1.28k | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__on_value_literal_complete_2; |
1817 | 0 | case 5: |
1818 | 0 | goto s_n_llpkgc_file__internal__n_error_36; |
1819 | 0 | default: |
1820 | 0 | goto s_n_llpkgc_file__internal__n_error_33; |
1821 | 1.28k | } |
1822 | 1.28k | UNREACHABLE; |
1823 | 1.28k | } |
1824 | 0 | s_n_llpkgc_file__internal__n_error_37: { |
1825 | 0 | state->error = 0x5; |
1826 | 0 | state->reason = "Internal parser error"; |
1827 | 0 | state->error_pos = (const char*) p; |
1828 | 0 | state->_current = (void*) (intptr_t) s_error; |
1829 | 0 | return s_error; |
1830 | 1.28k | UNREACHABLE; |
1831 | 1.28k | } |
1832 | 0 | s_n_llpkgc_file__internal__n_error_32: { |
1833 | 0 | state->error = 0x2; |
1834 | 0 | state->reason = "Callback error"; |
1835 | 0 | state->error_pos = (const char*) p; |
1836 | 0 | state->_current = (void*) (intptr_t) s_error; |
1837 | 0 | return s_error; |
1838 | 1.28k | UNREACHABLE; |
1839 | 1.28k | } |
1840 | 1.28k | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__flush_whitespace_all_2: { |
1841 | 1.28k | switch (llpkgc_file__flush_whitespace_all(state, p, endp)) { |
1842 | 1.28k | case 0: |
1843 | 1.28k | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__emit_literal_mark_1; |
1844 | 0 | case 5: |
1845 | 0 | goto s_n_llpkgc_file__internal__n_error_37; |
1846 | 0 | default: |
1847 | 0 | goto s_n_llpkgc_file__internal__n_error_32; |
1848 | 1.28k | } |
1849 | 1.28k | UNREACHABLE; |
1850 | 1.28k | } |
1851 | 6.73k | s_n_llpkgc_file__internal__n_invoke_update_finish_19: { |
1852 | 6.73k | switch (llpkgc_file__internal__c_update_finish_11(state, p, endp)) { |
1853 | 6.73k | default: |
1854 | 6.73k | goto s_n_llpkgc_file__internal__n_whitespace_escape; |
1855 | 6.73k | } |
1856 | 6.73k | UNREACHABLE; |
1857 | 6.73k | } |
1858 | 0 | s_n_llpkgc_file__internal__n_error_38: { |
1859 | 0 | state->error = 0x5; |
1860 | 0 | state->reason = "Internal parser error"; |
1861 | 0 | state->error_pos = (const char*) p; |
1862 | 0 | state->_current = (void*) (intptr_t) s_error; |
1863 | 0 | return s_error; |
1864 | 6.73k | UNREACHABLE; |
1865 | 6.73k | } |
1866 | 0 | s_n_llpkgc_file__internal__n_error_23: { |
1867 | 0 | state->error = 0x2; |
1868 | 0 | state->reason = "Callback error"; |
1869 | 0 | state->error_pos = (const char*) p; |
1870 | 0 | state->_current = (void*) (intptr_t) s_error; |
1871 | 0 | return s_error; |
1872 | 6.73k | UNREACHABLE; |
1873 | 6.73k | } |
1874 | 6.73k | s_n_llpkgc_file__internal__n_span_end_llpkgc_file__whitespace_1: { |
1875 | 6.73k | const unsigned char* start; |
1876 | 6.73k | int err; |
1877 | | |
1878 | 6.73k | start = state->_span_pos0; |
1879 | 6.73k | state->_span_pos0 = NULL; |
1880 | 6.73k | err = llpkgc_file__whitespace(state, start, p); |
1881 | 6.73k | if (err != 0) { |
1882 | 0 | state->error = err; |
1883 | 0 | state->error_pos = (const char*) p; |
1884 | 0 | state->_current = (void*) (intptr_t) s_n_llpkgc_file__internal__n_invoke_llpkgc_file__mark_3; |
1885 | 0 | return s_error; |
1886 | 0 | } |
1887 | 6.73k | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__mark_3; |
1888 | 6.73k | UNREACHABLE; |
1889 | 6.73k | } |
1890 | 0 | s_n_llpkgc_file__internal__n_error_40: { |
1891 | 0 | state->error = 0x5; |
1892 | 0 | state->reason = "Internal parser error"; |
1893 | 0 | state->error_pos = (const char*) p; |
1894 | 0 | state->_current = (void*) (intptr_t) s_error; |
1895 | 0 | return s_error; |
1896 | 6.73k | UNREACHABLE; |
1897 | 6.73k | } |
1898 | 0 | s_n_llpkgc_file__internal__n_error_39: { |
1899 | 0 | state->error = 0x2; |
1900 | 0 | state->reason = "Callback error"; |
1901 | 0 | state->error_pos = (const char*) p; |
1902 | 0 | state->_current = (void*) (intptr_t) s_error; |
1903 | 0 | return s_error; |
1904 | 6.73k | UNREACHABLE; |
1905 | 6.73k | } |
1906 | 206k | s_n_llpkgc_file__internal__n_span_end_llpkgc_file__whitespace_2: { |
1907 | 206k | const unsigned char* start; |
1908 | 206k | int err; |
1909 | | |
1910 | 206k | start = state->_span_pos0; |
1911 | 206k | state->_span_pos0 = NULL; |
1912 | 206k | err = llpkgc_file__whitespace(state, start, p); |
1913 | 206k | if (err != 0) { |
1914 | 0 | state->error = err; |
1915 | 0 | state->error_pos = (const char*) p; |
1916 | 0 | state->_current = (void*) (intptr_t) s_n_llpkgc_file__internal__n_invoke_llpkgc_file__flush_whitespace_all_3; |
1917 | 0 | return s_error; |
1918 | 0 | } |
1919 | 206k | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__flush_whitespace_all_3; |
1920 | 206k | UNREACHABLE; |
1921 | 206k | } |
1922 | 216k | s_n_llpkgc_file__internal__n_invoke_update_finish_17: { |
1923 | 216k | switch (llpkgc_file__internal__c_update_finish_10(state, p, endp)) { |
1924 | 216k | default: |
1925 | 216k | goto s_n_llpkgc_file__internal__n_whitespace; |
1926 | 216k | } |
1927 | 216k | UNREACHABLE; |
1928 | 216k | } |
1929 | 0 | s_n_llpkgc_file__internal__n_error_44: { |
1930 | 0 | state->error = 0x5; |
1931 | 0 | state->reason = "Internal parser error"; |
1932 | 0 | state->error_pos = (const char*) p; |
1933 | 0 | state->_current = (void*) (intptr_t) s_error; |
1934 | 0 | return s_error; |
1935 | 216k | UNREACHABLE; |
1936 | 216k | } |
1937 | 0 | s_n_llpkgc_file__internal__n_error_43: { |
1938 | 0 | state->error = 0x2; |
1939 | 0 | state->reason = "Callback error"; |
1940 | 0 | state->error_pos = (const char*) p; |
1941 | 0 | state->_current = (void*) (intptr_t) s_error; |
1942 | 0 | return s_error; |
1943 | 216k | UNREACHABLE; |
1944 | 216k | } |
1945 | 4.45k | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__on_value_literal_complete_3: { |
1946 | 4.45k | switch (llpkgc_file__on_value_literal_complete(state, p, endp)) { |
1947 | 4.45k | case 0: |
1948 | 4.45k | goto s_n_llpkgc_file__internal__n_invoke_update_finish_16; |
1949 | 0 | case 5: |
1950 | 0 | goto s_n_llpkgc_file__internal__n_error_44; |
1951 | 0 | default: |
1952 | 0 | goto s_n_llpkgc_file__internal__n_error_43; |
1953 | 4.45k | } |
1954 | 4.45k | UNREACHABLE; |
1955 | 4.45k | } |
1956 | 0 | s_n_llpkgc_file__internal__n_error_45: { |
1957 | 0 | state->error = 0x5; |
1958 | 0 | state->reason = "Internal parser error"; |
1959 | 0 | state->error_pos = (const char*) p; |
1960 | 0 | state->_current = (void*) (intptr_t) s_error; |
1961 | 0 | return s_error; |
1962 | 4.45k | UNREACHABLE; |
1963 | 4.45k | } |
1964 | 0 | s_n_llpkgc_file__internal__n_error_42: { |
1965 | 0 | state->error = 0x2; |
1966 | 0 | state->reason = "Callback error"; |
1967 | 0 | state->error_pos = (const char*) p; |
1968 | 0 | state->_current = (void*) (intptr_t) s_error; |
1969 | 0 | return s_error; |
1970 | 4.45k | UNREACHABLE; |
1971 | 4.45k | } |
1972 | 4.45k | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__emit_literal_mark_2: { |
1973 | 4.45k | switch (llpkgc_file__emit_literal_mark(state, p, endp)) { |
1974 | 4.45k | case 0: |
1975 | 4.45k | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__on_value_literal_complete_3; |
1976 | 0 | case 5: |
1977 | 0 | goto s_n_llpkgc_file__internal__n_error_45; |
1978 | 0 | default: |
1979 | 0 | goto s_n_llpkgc_file__internal__n_error_42; |
1980 | 4.45k | } |
1981 | 4.45k | UNREACHABLE; |
1982 | 4.45k | } |
1983 | 0 | s_n_llpkgc_file__internal__n_error_47: { |
1984 | 0 | state->error = 0x5; |
1985 | 0 | state->reason = "Internal parser error"; |
1986 | 0 | state->error_pos = (const char*) p; |
1987 | 0 | state->_current = (void*) (intptr_t) s_error; |
1988 | 0 | return s_error; |
1989 | 4.45k | UNREACHABLE; |
1990 | 4.45k | } |
1991 | 0 | s_n_llpkgc_file__internal__n_error_46: { |
1992 | 0 | state->error = 0x2; |
1993 | 0 | state->reason = "Callback error"; |
1994 | 0 | state->error_pos = (const char*) p; |
1995 | 0 | state->_current = (void*) (intptr_t) s_error; |
1996 | 0 | return s_error; |
1997 | 4.45k | UNREACHABLE; |
1998 | 4.45k | } |
1999 | 219k | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__on_value_substitution_complete: { |
2000 | 219k | switch (llpkgc_file__on_value_substitution_complete(state, p, endp)) { |
2001 | 219k | case 0: |
2002 | 219k | goto s_n_llpkgc_file__internal__n_invoke_update_finish_16; |
2003 | 0 | case 5: |
2004 | 0 | goto s_n_llpkgc_file__internal__n_error_47; |
2005 | 0 | default: |
2006 | 0 | goto s_n_llpkgc_file__internal__n_error_46; |
2007 | 219k | } |
2008 | 219k | UNREACHABLE; |
2009 | 219k | } |
2010 | 219k | s_n_llpkgc_file__internal__n_span_end_llpkgc_file__on_value_substitution: { |
2011 | 219k | const unsigned char* start; |
2012 | 219k | int err; |
2013 | | |
2014 | 219k | start = state->_span_pos0; |
2015 | 219k | state->_span_pos0 = NULL; |
2016 | 219k | err = llpkgc_file__on_value_substitution(state, start, p); |
2017 | 219k | if (err != 0) { |
2018 | 0 | state->error = err; |
2019 | 0 | state->error_pos = (const char*) p; |
2020 | 0 | state->_current = (void*) (intptr_t) s_n_llpkgc_file__internal__n_substitution_end; |
2021 | 0 | return s_error; |
2022 | 0 | } |
2023 | 219k | goto s_n_llpkgc_file__internal__n_substitution_end; |
2024 | 219k | UNREACHABLE; |
2025 | 219k | } |
2026 | 310 | s_n_llpkgc_file__internal__n_error_48: { |
2027 | 310 | state->error = 0x4; |
2028 | 310 | state->reason = "Invalid variable substitution character"; |
2029 | 310 | state->error_pos = (const char*) p; |
2030 | 310 | state->_current = (void*) (intptr_t) s_error; |
2031 | 310 | return s_error; |
2032 | 219k | UNREACHABLE; |
2033 | 219k | } |
2034 | 219k | s_n_llpkgc_file__internal__n_invoke_update_finish_23: { |
2035 | 219k | switch (llpkgc_file__internal__c_update_finish_23(state, p, endp)) { |
2036 | 219k | default: |
2037 | 219k | goto s_n_llpkgc_file__internal__n_substitution; |
2038 | 219k | } |
2039 | 219k | UNREACHABLE; |
2040 | 219k | } |
2041 | 0 | s_n_llpkgc_file__internal__n_error_51: { |
2042 | 0 | state->error = 0x5; |
2043 | 0 | state->reason = "Internal parser error"; |
2044 | 0 | state->error_pos = (const char*) p; |
2045 | 0 | state->_current = (void*) (intptr_t) s_error; |
2046 | 0 | return s_error; |
2047 | 219k | UNREACHABLE; |
2048 | 219k | } |
2049 | 0 | s_n_llpkgc_file__internal__n_error_50: { |
2050 | 0 | state->error = 0x2; |
2051 | 0 | state->reason = "Callback error"; |
2052 | 0 | state->error_pos = (const char*) p; |
2053 | 0 | state->_current = (void*) (intptr_t) s_error; |
2054 | 0 | return s_error; |
2055 | 219k | UNREACHABLE; |
2056 | 219k | } |
2057 | 21.6k | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__on_value_literal_complete_4: { |
2058 | 21.6k | switch (llpkgc_file__on_value_literal_complete(state, p, endp)) { |
2059 | 21.6k | case 0: |
2060 | 21.6k | goto s_n_llpkgc_file__internal__n_invoke_update_finish_16; |
2061 | 0 | case 5: |
2062 | 0 | goto s_n_llpkgc_file__internal__n_error_51; |
2063 | 0 | default: |
2064 | 0 | goto s_n_llpkgc_file__internal__n_error_50; |
2065 | 21.6k | } |
2066 | 21.6k | UNREACHABLE; |
2067 | 21.6k | } |
2068 | 0 | s_n_llpkgc_file__internal__n_error_52: { |
2069 | 0 | state->error = 0x5; |
2070 | 0 | state->reason = "Internal parser error"; |
2071 | 0 | state->error_pos = (const char*) p; |
2072 | 0 | state->_current = (void*) (intptr_t) s_error; |
2073 | 0 | return s_error; |
2074 | 21.6k | UNREACHABLE; |
2075 | 21.6k | } |
2076 | 0 | s_n_llpkgc_file__internal__n_error_49: { |
2077 | 0 | state->error = 0x2; |
2078 | 0 | state->reason = "Callback error"; |
2079 | 0 | state->error_pos = (const char*) p; |
2080 | 0 | state->_current = (void*) (intptr_t) s_error; |
2081 | 0 | return s_error; |
2082 | 21.6k | UNREACHABLE; |
2083 | 21.6k | } |
2084 | 21.6k | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__emit_literal_mark_3: { |
2085 | 21.6k | switch (llpkgc_file__emit_literal_mark(state, p, endp)) { |
2086 | 21.6k | case 0: |
2087 | 21.6k | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__on_value_literal_complete_4; |
2088 | 0 | case 5: |
2089 | 0 | goto s_n_llpkgc_file__internal__n_error_52; |
2090 | 0 | default: |
2091 | 0 | goto s_n_llpkgc_file__internal__n_error_49; |
2092 | 21.6k | } |
2093 | 21.6k | UNREACHABLE; |
2094 | 21.6k | } |
2095 | 245k | s_n_llpkgc_file__internal__n_invoke_update_finish_22: { |
2096 | 245k | switch (llpkgc_file__internal__c_update_finish_22(state, p, endp)) { |
2097 | 245k | default: |
2098 | 245k | goto s_n_llpkgc_file__internal__n_dollar; |
2099 | 245k | } |
2100 | 245k | UNREACHABLE; |
2101 | 245k | } |
2102 | 0 | s_n_llpkgc_file__internal__n_error_53: { |
2103 | 0 | state->error = 0x5; |
2104 | 0 | state->reason = "Internal parser error"; |
2105 | 0 | state->error_pos = (const char*) p; |
2106 | 0 | state->_current = (void*) (intptr_t) s_error; |
2107 | 0 | return s_error; |
2108 | 245k | UNREACHABLE; |
2109 | 245k | } |
2110 | 0 | s_n_llpkgc_file__internal__n_error_41: { |
2111 | 0 | state->error = 0x2; |
2112 | 0 | state->reason = "Callback error"; |
2113 | 0 | state->error_pos = (const char*) p; |
2114 | 0 | state->_current = (void*) (intptr_t) s_error; |
2115 | 0 | return s_error; |
2116 | 245k | UNREACHABLE; |
2117 | 245k | } |
2118 | 245k | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__mark_4: { |
2119 | 245k | switch (llpkgc_file__mark(state, p, endp)) { |
2120 | 245k | case 0: |
2121 | 245k | goto s_n_llpkgc_file__internal__n_dollar_start; |
2122 | 0 | case 5: |
2123 | 0 | goto s_n_llpkgc_file__internal__n_error_53; |
2124 | 0 | default: |
2125 | 0 | goto s_n_llpkgc_file__internal__n_error_41; |
2126 | 245k | } |
2127 | 245k | UNREACHABLE; |
2128 | 245k | } |
2129 | 2.89k | s_n_llpkgc_file__internal__n_invoke_update_finish_25: { |
2130 | 2.89k | switch (llpkgc_file__internal__c_update_finish_10(state, p, endp)) { |
2131 | 2.89k | default: |
2132 | 2.89k | goto s_n_llpkgc_file__internal__n_value_lf; |
2133 | 2.89k | } |
2134 | 2.89k | UNREACHABLE; |
2135 | 2.89k | } |
2136 | 3.16k | s_n_llpkgc_file__internal__n_invoke_update_finish_26: { |
2137 | 3.16k | switch (llpkgc_file__internal__c_update_finish_10(state, p, endp)) { |
2138 | 3.16k | default: |
2139 | 3.16k | goto s_n_llpkgc_file__internal__n_value_cr; |
2140 | 3.16k | } |
2141 | 3.16k | UNREACHABLE; |
2142 | 3.16k | } |
2143 | 0 | s_n_llpkgc_file__internal__n_error_57: { |
2144 | 0 | state->error = 0x5; |
2145 | 0 | state->reason = "Internal parser error"; |
2146 | 0 | state->error_pos = (const char*) p; |
2147 | 0 | state->_current = (void*) (intptr_t) s_error; |
2148 | 0 | return s_error; |
2149 | 3.16k | UNREACHABLE; |
2150 | 3.16k | } |
2151 | 0 | s_n_llpkgc_file__internal__n_error_56: { |
2152 | 0 | state->error = 0x2; |
2153 | 0 | state->reason = "Callback error"; |
2154 | 0 | state->error_pos = (const char*) p; |
2155 | 0 | state->_current = (void*) (intptr_t) s_error; |
2156 | 0 | return s_error; |
2157 | 3.16k | UNREACHABLE; |
2158 | 3.16k | } |
2159 | 4.34k | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__on_value_literal_complete_5: { |
2160 | 4.34k | switch (llpkgc_file__on_value_literal_complete(state, p, endp)) { |
2161 | 4.34k | case 0: |
2162 | 4.34k | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__on_value_literal; |
2163 | 0 | case 5: |
2164 | 0 | goto s_n_llpkgc_file__internal__n_error_57; |
2165 | 0 | default: |
2166 | 0 | goto s_n_llpkgc_file__internal__n_error_56; |
2167 | 4.34k | } |
2168 | 4.34k | UNREACHABLE; |
2169 | 4.34k | } |
2170 | 0 | s_n_llpkgc_file__internal__n_error_58: { |
2171 | 0 | state->error = 0x5; |
2172 | 0 | state->reason = "Internal parser error"; |
2173 | 0 | state->error_pos = (const char*) p; |
2174 | 0 | state->_current = (void*) (intptr_t) s_error; |
2175 | 0 | return s_error; |
2176 | 4.34k | UNREACHABLE; |
2177 | 4.34k | } |
2178 | 0 | s_n_llpkgc_file__internal__n_error_55: { |
2179 | 0 | state->error = 0x2; |
2180 | 0 | state->reason = "Callback error"; |
2181 | 0 | state->error_pos = (const char*) p; |
2182 | 0 | state->_current = (void*) (intptr_t) s_error; |
2183 | 0 | return s_error; |
2184 | 4.34k | UNREACHABLE; |
2185 | 4.34k | } |
2186 | 4.34k | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__emit_literal_mark_4: { |
2187 | 4.34k | switch (llpkgc_file__emit_literal_mark(state, p, endp)) { |
2188 | 4.34k | case 0: |
2189 | 4.34k | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__on_value_literal_complete_5; |
2190 | 0 | case 5: |
2191 | 0 | goto s_n_llpkgc_file__internal__n_error_58; |
2192 | 0 | default: |
2193 | 0 | goto s_n_llpkgc_file__internal__n_error_55; |
2194 | 4.34k | } |
2195 | 4.34k | UNREACHABLE; |
2196 | 4.34k | } |
2197 | 0 | s_n_llpkgc_file__internal__n_error_61: { |
2198 | 0 | state->error = 0x5; |
2199 | 0 | state->reason = "Internal parser error"; |
2200 | 0 | state->error_pos = (const char*) p; |
2201 | 0 | state->_current = (void*) (intptr_t) s_error; |
2202 | 0 | return s_error; |
2203 | 4.34k | UNREACHABLE; |
2204 | 4.34k | } |
2205 | 0 | s_n_llpkgc_file__internal__n_error_60: { |
2206 | 0 | state->error = 0x2; |
2207 | 0 | state->reason = "Callback error"; |
2208 | 0 | state->error_pos = (const char*) p; |
2209 | 0 | state->_current = (void*) (intptr_t) s_error; |
2210 | 0 | return s_error; |
2211 | 4.34k | UNREACHABLE; |
2212 | 4.34k | } |
2213 | 7.02k | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__on_value_literal_complete_6: { |
2214 | 7.02k | switch (llpkgc_file__on_value_literal_complete(state, p, endp)) { |
2215 | 7.02k | case 0: |
2216 | 7.02k | goto s_n_llpkgc_file__internal__n_invoke_update_finish_16; |
2217 | 0 | case 5: |
2218 | 0 | goto s_n_llpkgc_file__internal__n_error_61; |
2219 | 0 | default: |
2220 | 0 | goto s_n_llpkgc_file__internal__n_error_60; |
2221 | 7.02k | } |
2222 | 7.02k | UNREACHABLE; |
2223 | 7.02k | } |
2224 | 0 | s_n_llpkgc_file__internal__n_error_62: { |
2225 | 0 | state->error = 0x5; |
2226 | 0 | state->reason = "Internal parser error"; |
2227 | 0 | state->error_pos = (const char*) p; |
2228 | 0 | state->_current = (void*) (intptr_t) s_error; |
2229 | 0 | return s_error; |
2230 | 7.02k | UNREACHABLE; |
2231 | 7.02k | } |
2232 | 0 | s_n_llpkgc_file__internal__n_error_59: { |
2233 | 0 | state->error = 0x2; |
2234 | 0 | state->reason = "Callback error"; |
2235 | 0 | state->error_pos = (const char*) p; |
2236 | 0 | state->_current = (void*) (intptr_t) s_error; |
2237 | 0 | return s_error; |
2238 | 7.02k | UNREACHABLE; |
2239 | 7.02k | } |
2240 | 7.02k | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__emit_literal_mark_5: { |
2241 | 7.02k | switch (llpkgc_file__emit_literal_mark(state, p, endp)) { |
2242 | 7.02k | case 0: |
2243 | 7.02k | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__on_value_literal_complete_6; |
2244 | 0 | case 5: |
2245 | 0 | goto s_n_llpkgc_file__internal__n_error_62; |
2246 | 0 | default: |
2247 | 0 | goto s_n_llpkgc_file__internal__n_error_59; |
2248 | 7.02k | } |
2249 | 7.02k | UNREACHABLE; |
2250 | 7.02k | } |
2251 | 18.5k | s_n_llpkgc_file__internal__n_invoke_update_finish_24: { |
2252 | 18.5k | switch (llpkgc_file__internal__c_update_finish_11(state, p, endp)) { |
2253 | 18.5k | default: |
2254 | 18.5k | goto s_n_llpkgc_file__internal__n_value_escape; |
2255 | 18.5k | } |
2256 | 18.5k | UNREACHABLE; |
2257 | 18.5k | } |
2258 | 0 | s_n_llpkgc_file__internal__n_error_63: { |
2259 | 0 | state->error = 0x5; |
2260 | 0 | state->reason = "Internal parser error"; |
2261 | 0 | state->error_pos = (const char*) p; |
2262 | 0 | state->_current = (void*) (intptr_t) s_error; |
2263 | 0 | return s_error; |
2264 | 18.5k | UNREACHABLE; |
2265 | 18.5k | } |
2266 | 0 | s_n_llpkgc_file__internal__n_error_54: { |
2267 | 0 | state->error = 0x2; |
2268 | 0 | state->reason = "Callback error"; |
2269 | 0 | state->error_pos = (const char*) p; |
2270 | 0 | state->_current = (void*) (intptr_t) s_error; |
2271 | 0 | return s_error; |
2272 | 18.5k | UNREACHABLE; |
2273 | 18.5k | } |
2274 | 18.5k | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__mark_5: { |
2275 | 18.5k | switch (llpkgc_file__mark(state, p, endp)) { |
2276 | 18.5k | case 0: |
2277 | 18.5k | goto s_n_llpkgc_file__internal__n_value_backslash; |
2278 | 0 | case 5: |
2279 | 0 | goto s_n_llpkgc_file__internal__n_error_63; |
2280 | 0 | default: |
2281 | 0 | goto s_n_llpkgc_file__internal__n_error_54; |
2282 | 18.5k | } |
2283 | 18.5k | UNREACHABLE; |
2284 | 18.5k | } |
2285 | 1.28M | s_n_llpkgc_file__internal__n_invoke_update_finish_16: { |
2286 | 1.28M | switch (llpkgc_file__internal__c_update_finish_10(state, p, endp)) { |
2287 | 1.28M | default: |
2288 | 1.28M | goto s_n_llpkgc_file__internal__n_value; |
2289 | 1.28M | } |
2290 | 1.28M | UNREACHABLE; |
2291 | 1.28M | } |
2292 | 0 | s_n_llpkgc_file__internal__n_error_64: { |
2293 | 0 | state->error = 0x5; |
2294 | 0 | state->reason = "Internal parser error"; |
2295 | 0 | state->error_pos = (const char*) p; |
2296 | 0 | state->_current = (void*) (intptr_t) s_error; |
2297 | 0 | return s_error; |
2298 | 1.28M | UNREACHABLE; |
2299 | 1.28M | } |
2300 | 0 | s_n_llpkgc_file__internal__n_error_18: { |
2301 | 0 | state->error = 0x2; |
2302 | 0 | state->reason = "Callback error"; |
2303 | 0 | state->error_pos = (const char*) p; |
2304 | 0 | state->_current = (void*) (intptr_t) s_error; |
2305 | 0 | return s_error; |
2306 | 1.28M | UNREACHABLE; |
2307 | 1.28M | } |
2308 | 465k | s_n_llpkgc_file__internal__n_span_end_llpkgc_file__on_value_literal: { |
2309 | 465k | const unsigned char* start; |
2310 | 465k | int err; |
2311 | | |
2312 | 465k | start = state->_span_pos0; |
2313 | 465k | state->_span_pos0 = NULL; |
2314 | 465k | err = llpkgc_file__on_value_literal(state, start, p); |
2315 | 465k | if (err != 0) { |
2316 | 0 | state->error = err; |
2317 | 0 | state->error_pos = (const char*) p; |
2318 | 0 | state->_current = (void*) (intptr_t) s_n_llpkgc_file__internal__n_invoke_llpkgc_file__on_value_literal_complete; |
2319 | 0 | return s_error; |
2320 | 0 | } |
2321 | 465k | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__on_value_literal_complete; |
2322 | 465k | UNREACHABLE; |
2323 | 465k | } |
2324 | 468k | s_n_llpkgc_file__internal__n_invoke_update_finish_15: { |
2325 | 468k | switch (llpkgc_file__internal__c_update_finish_15(state, p, endp)) { |
2326 | 468k | default: |
2327 | 468k | goto s_n_llpkgc_file__internal__n_text; |
2328 | 468k | } |
2329 | 468k | UNREACHABLE; |
2330 | 468k | } |
2331 | 0 | s_n_llpkgc_file__internal__n_error_67: { |
2332 | 0 | state->error = 0x5; |
2333 | 0 | state->reason = "Internal parser error"; |
2334 | 0 | state->error_pos = (const char*) p; |
2335 | 0 | state->_current = (void*) (intptr_t) s_error; |
2336 | 0 | return s_error; |
2337 | 468k | UNREACHABLE; |
2338 | 468k | } |
2339 | 0 | s_n_llpkgc_file__internal__n_error_66: { |
2340 | 0 | state->error = 0x2; |
2341 | 0 | state->reason = "Callback error"; |
2342 | 0 | state->error_pos = (const char*) p; |
2343 | 0 | state->_current = (void*) (intptr_t) s_error; |
2344 | 0 | return s_error; |
2345 | 468k | UNREACHABLE; |
2346 | 468k | } |
2347 | 510 | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__on_value_literal_complete_7: { |
2348 | 510 | switch (llpkgc_file__on_value_literal_complete(state, p, endp)) { |
2349 | 510 | case 0: |
2350 | 510 | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__on_value_literal; |
2351 | 0 | case 5: |
2352 | 0 | goto s_n_llpkgc_file__internal__n_error_67; |
2353 | 0 | default: |
2354 | 0 | goto s_n_llpkgc_file__internal__n_error_66; |
2355 | 510 | } |
2356 | 510 | UNREACHABLE; |
2357 | 510 | } |
2358 | 0 | s_n_llpkgc_file__internal__n_error_68: { |
2359 | 0 | state->error = 0x5; |
2360 | 0 | state->reason = "Internal parser error"; |
2361 | 0 | state->error_pos = (const char*) p; |
2362 | 0 | state->_current = (void*) (intptr_t) s_error; |
2363 | 0 | return s_error; |
2364 | 510 | UNREACHABLE; |
2365 | 510 | } |
2366 | 0 | s_n_llpkgc_file__internal__n_error_65: { |
2367 | 0 | state->error = 0x2; |
2368 | 0 | state->reason = "Callback error"; |
2369 | 0 | state->error_pos = (const char*) p; |
2370 | 0 | state->_current = (void*) (intptr_t) s_error; |
2371 | 0 | return s_error; |
2372 | 510 | UNREACHABLE; |
2373 | 510 | } |
2374 | 510 | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__emit_literal_mark_6: { |
2375 | 510 | switch (llpkgc_file__emit_literal_mark(state, p, endp)) { |
2376 | 510 | case 0: |
2377 | 510 | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__on_value_literal_complete_7; |
2378 | 0 | case 5: |
2379 | 0 | goto s_n_llpkgc_file__internal__n_error_68; |
2380 | 0 | default: |
2381 | 0 | goto s_n_llpkgc_file__internal__n_error_65; |
2382 | 510 | } |
2383 | 510 | UNREACHABLE; |
2384 | 510 | } |
2385 | 0 | s_n_llpkgc_file__internal__n_error_71: { |
2386 | 0 | state->error = 0x5; |
2387 | 0 | state->reason = "Internal parser error"; |
2388 | 0 | state->error_pos = (const char*) p; |
2389 | 0 | state->_current = (void*) (intptr_t) s_error; |
2390 | 0 | return s_error; |
2391 | 510 | UNREACHABLE; |
2392 | 510 | } |
2393 | 0 | s_n_llpkgc_file__internal__n_error_70: { |
2394 | 0 | state->error = 0x2; |
2395 | 0 | state->reason = "Callback error"; |
2396 | 0 | state->error_pos = (const char*) p; |
2397 | 0 | state->_current = (void*) (intptr_t) s_error; |
2398 | 0 | return s_error; |
2399 | 510 | UNREACHABLE; |
2400 | 510 | } |
2401 | 1.03k | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__on_value_literal_complete_8: { |
2402 | 1.03k | switch (llpkgc_file__on_value_literal_complete(state, p, endp)) { |
2403 | 1.03k | case 0: |
2404 | 1.03k | goto s_n_llpkgc_file__internal__n_invoke_update_finish_16; |
2405 | 0 | case 5: |
2406 | 0 | goto s_n_llpkgc_file__internal__n_error_71; |
2407 | 0 | default: |
2408 | 0 | goto s_n_llpkgc_file__internal__n_error_70; |
2409 | 1.03k | } |
2410 | 1.03k | UNREACHABLE; |
2411 | 1.03k | } |
2412 | 0 | s_n_llpkgc_file__internal__n_error_72: { |
2413 | 0 | state->error = 0x5; |
2414 | 0 | state->reason = "Internal parser error"; |
2415 | 0 | state->error_pos = (const char*) p; |
2416 | 0 | state->_current = (void*) (intptr_t) s_error; |
2417 | 0 | return s_error; |
2418 | 1.03k | UNREACHABLE; |
2419 | 1.03k | } |
2420 | 0 | s_n_llpkgc_file__internal__n_error_69: { |
2421 | 0 | state->error = 0x2; |
2422 | 0 | state->reason = "Callback error"; |
2423 | 0 | state->error_pos = (const char*) p; |
2424 | 0 | state->_current = (void*) (intptr_t) s_error; |
2425 | 0 | return s_error; |
2426 | 1.03k | UNREACHABLE; |
2427 | 1.03k | } |
2428 | 1.03k | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__emit_literal_mark_7: { |
2429 | 1.03k | switch (llpkgc_file__emit_literal_mark(state, p, endp)) { |
2430 | 1.03k | case 0: |
2431 | 1.03k | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__on_value_literal_complete_8; |
2432 | 0 | case 5: |
2433 | 0 | goto s_n_llpkgc_file__internal__n_error_72; |
2434 | 0 | default: |
2435 | 0 | goto s_n_llpkgc_file__internal__n_error_69; |
2436 | 1.03k | } |
2437 | 1.03k | UNREACHABLE; |
2438 | 1.03k | } |
2439 | 5.25k | s_n_llpkgc_file__internal__n_invoke_update_finish_11: { |
2440 | 5.25k | switch (llpkgc_file__internal__c_update_finish_11(state, p, endp)) { |
2441 | 5.25k | default: |
2442 | 5.25k | goto s_n_llpkgc_file__internal__n_leading_escape; |
2443 | 5.25k | } |
2444 | 5.25k | UNREACHABLE; |
2445 | 5.25k | } |
2446 | 0 | s_n_llpkgc_file__internal__n_error_73: { |
2447 | 0 | state->error = 0x5; |
2448 | 0 | state->reason = "Internal parser error"; |
2449 | 0 | state->error_pos = (const char*) p; |
2450 | 0 | state->_current = (void*) (intptr_t) s_error; |
2451 | 0 | return s_error; |
2452 | 5.25k | UNREACHABLE; |
2453 | 5.25k | } |
2454 | 0 | s_n_llpkgc_file__internal__n_error_17: { |
2455 | 0 | state->error = 0x2; |
2456 | 0 | state->reason = "Callback error"; |
2457 | 0 | state->error_pos = (const char*) p; |
2458 | 0 | state->_current = (void*) (intptr_t) s_error; |
2459 | 0 | return s_error; |
2460 | 5.25k | UNREACHABLE; |
2461 | 5.25k | } |
2462 | 5.25k | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__mark_2: { |
2463 | 5.25k | switch (llpkgc_file__mark(state, p, endp)) { |
2464 | 5.25k | case 0: |
2465 | 5.25k | goto s_n_llpkgc_file__internal__n_leading_backslash; |
2466 | 0 | case 5: |
2467 | 0 | goto s_n_llpkgc_file__internal__n_error_73; |
2468 | 0 | default: |
2469 | 0 | goto s_n_llpkgc_file__internal__n_error_17; |
2470 | 5.25k | } |
2471 | 5.25k | UNREACHABLE; |
2472 | 5.25k | } |
2473 | 188k | s_n_llpkgc_file__internal__n_invoke_update_finish_10: { |
2474 | 188k | switch (llpkgc_file__internal__c_update_finish_10(state, p, endp)) { |
2475 | 188k | default: |
2476 | 188k | goto s_n_llpkgc_file__internal__n_leading_whitespace; |
2477 | 188k | } |
2478 | 188k | UNREACHABLE; |
2479 | 188k | } |
2480 | 0 | s_n_llpkgc_file__internal__n_error_74: { |
2481 | 0 | state->error = 0x5; |
2482 | 0 | state->reason = "Internal parser error"; |
2483 | 0 | state->error_pos = (const char*) p; |
2484 | 0 | state->_current = (void*) (intptr_t) s_error; |
2485 | 0 | return s_error; |
2486 | 188k | UNREACHABLE; |
2487 | 188k | } |
2488 | 0 | s_n_llpkgc_file__internal__n_error_16: { |
2489 | 0 | state->error = 0x2; |
2490 | 0 | state->reason = "Callback error"; |
2491 | 0 | state->error_pos = (const char*) p; |
2492 | 0 | state->_current = (void*) (intptr_t) s_error; |
2493 | 0 | return s_error; |
2494 | 188k | UNREACHABLE; |
2495 | 188k | } |
2496 | 188k | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__on_property_complete: { |
2497 | 188k | switch (llpkgc_file__on_property_complete(state, p, endp)) { |
2498 | 188k | case 0: |
2499 | 188k | goto s_n_llpkgc_file__internal__n_invoke_update_finish_10; |
2500 | 0 | case 5: |
2501 | 0 | goto s_n_llpkgc_file__internal__n_error_74; |
2502 | 0 | default: |
2503 | 0 | goto s_n_llpkgc_file__internal__n_error_16; |
2504 | 188k | } |
2505 | 188k | UNREACHABLE; |
2506 | 188k | } |
2507 | 163k | s_n_llpkgc_file__internal__n_invoke_update_finish_27: { |
2508 | 163k | switch (llpkgc_file__internal__c_update_finish_10(state, p, endp)) { |
2509 | 163k | default: |
2510 | 163k | goto s_n_llpkgc_file__internal__n_leading_whitespace; |
2511 | 163k | } |
2512 | 163k | UNREACHABLE; |
2513 | 163k | } |
2514 | 0 | s_n_llpkgc_file__internal__n_error_76: { |
2515 | 0 | state->error = 0x5; |
2516 | 0 | state->reason = "Internal parser error"; |
2517 | 0 | state->error_pos = (const char*) p; |
2518 | 0 | state->_current = (void*) (intptr_t) s_error; |
2519 | 0 | return s_error; |
2520 | 163k | UNREACHABLE; |
2521 | 163k | } |
2522 | 0 | s_n_llpkgc_file__internal__n_error_75: { |
2523 | 0 | state->error = 0x2; |
2524 | 0 | state->reason = "Callback error"; |
2525 | 0 | state->error_pos = (const char*) p; |
2526 | 0 | state->_current = (void*) (intptr_t) s_error; |
2527 | 0 | return s_error; |
2528 | 163k | UNREACHABLE; |
2529 | 163k | } |
2530 | 163k | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__on_variable_complete: { |
2531 | 163k | switch (llpkgc_file__on_variable_complete(state, p, endp)) { |
2532 | 163k | case 0: |
2533 | 163k | goto s_n_llpkgc_file__internal__n_invoke_update_finish_27; |
2534 | 0 | case 5: |
2535 | 0 | goto s_n_llpkgc_file__internal__n_error_76; |
2536 | 0 | default: |
2537 | 0 | goto s_n_llpkgc_file__internal__n_error_75; |
2538 | 163k | } |
2539 | 163k | UNREACHABLE; |
2540 | 163k | } |
2541 | 1.00k | s_n_llpkgc_file__internal__n_invoke_update_finish_29: { |
2542 | 1.00k | switch (llpkgc_file__internal__c_update_finish_4(state, p, endp)) { |
2543 | 1.00k | default: |
2544 | 1.00k | goto s_n_llpkgc_file__internal__n_separator_lf; |
2545 | 1.00k | } |
2546 | 1.00k | UNREACHABLE; |
2547 | 1.00k | } |
2548 | 1.61k | s_n_llpkgc_file__internal__n_invoke_update_finish_30: { |
2549 | 1.61k | switch (llpkgc_file__internal__c_update_finish_4(state, p, endp)) { |
2550 | 1.61k | default: |
2551 | 1.61k | goto s_n_llpkgc_file__internal__n_separator_cr; |
2552 | 1.61k | } |
2553 | 1.61k | UNREACHABLE; |
2554 | 1.61k | } |
2555 | 0 | s_n_llpkgc_file__internal__n_error_79: { |
2556 | 0 | state->error = 0x5; |
2557 | 0 | state->reason = "Internal parser error"; |
2558 | 0 | state->error_pos = (const char*) p; |
2559 | 0 | state->_current = (void*) (intptr_t) s_error; |
2560 | 0 | return s_error; |
2561 | 1.61k | UNREACHABLE; |
2562 | 1.61k | } |
2563 | 0 | s_n_llpkgc_file__internal__n_error_78: { |
2564 | 0 | state->error = 0x2; |
2565 | 0 | state->reason = "Callback error"; |
2566 | 0 | state->error_pos = (const char*) p; |
2567 | 0 | state->_current = (void*) (intptr_t) s_error; |
2568 | 0 | return s_error; |
2569 | 1.61k | UNREACHABLE; |
2570 | 1.61k | } |
2571 | 1.04k | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__emit_ident_mark_4: { |
2572 | 1.04k | switch (llpkgc_file__emit_ident_mark(state, p, endp)) { |
2573 | 1.04k | case 0: |
2574 | 1.04k | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__on_ident; |
2575 | 0 | case 5: |
2576 | 0 | goto s_n_llpkgc_file__internal__n_error_79; |
2577 | 0 | default: |
2578 | 0 | goto s_n_llpkgc_file__internal__n_error_78; |
2579 | 1.04k | } |
2580 | 1.04k | UNREACHABLE; |
2581 | 1.04k | } |
2582 | 0 | s_n_llpkgc_file__internal__n_error_81: { |
2583 | 0 | state->error = 0x5; |
2584 | 0 | state->reason = "Internal parser error"; |
2585 | 0 | state->error_pos = (const char*) p; |
2586 | 0 | state->_current = (void*) (intptr_t) s_error; |
2587 | 0 | return s_error; |
2588 | 1.04k | UNREACHABLE; |
2589 | 1.04k | } |
2590 | 0 | s_n_llpkgc_file__internal__n_error_80: { |
2591 | 0 | state->error = 0x2; |
2592 | 0 | state->reason = "Callback error"; |
2593 | 0 | state->error_pos = (const char*) p; |
2594 | 0 | state->_current = (void*) (intptr_t) s_error; |
2595 | 0 | return s_error; |
2596 | 1.04k | UNREACHABLE; |
2597 | 1.04k | } |
2598 | 578 | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__emit_ident_mark_5: { |
2599 | 578 | switch (llpkgc_file__emit_ident_mark(state, p, endp)) { |
2600 | 578 | case 0: |
2601 | 578 | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__on_ident_1; |
2602 | 0 | case 5: |
2603 | 0 | goto s_n_llpkgc_file__internal__n_error_81; |
2604 | 0 | default: |
2605 | 0 | goto s_n_llpkgc_file__internal__n_error_80; |
2606 | 578 | } |
2607 | 578 | UNREACHABLE; |
2608 | 578 | } |
2609 | 4.64k | s_n_llpkgc_file__internal__n_invoke_update_finish_28: { |
2610 | 4.64k | switch (llpkgc_file__internal__c_update_finish_1(state, p, endp)) { |
2611 | 4.64k | default: |
2612 | 4.64k | goto s_n_llpkgc_file__internal__n_separator_escape; |
2613 | 4.64k | } |
2614 | 4.64k | UNREACHABLE; |
2615 | 4.64k | } |
2616 | 0 | s_n_llpkgc_file__internal__n_error_82: { |
2617 | 0 | state->error = 0x5; |
2618 | 0 | state->reason = "Internal parser error"; |
2619 | 0 | state->error_pos = (const char*) p; |
2620 | 0 | state->_current = (void*) (intptr_t) s_error; |
2621 | 0 | return s_error; |
2622 | 4.64k | UNREACHABLE; |
2623 | 4.64k | } |
2624 | 0 | s_n_llpkgc_file__internal__n_error_77: { |
2625 | 0 | state->error = 0x2; |
2626 | 0 | state->reason = "Callback error"; |
2627 | 0 | state->error_pos = (const char*) p; |
2628 | 0 | state->_current = (void*) (intptr_t) s_error; |
2629 | 0 | return s_error; |
2630 | 4.64k | UNREACHABLE; |
2631 | 4.64k | } |
2632 | 4.64k | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__mark_6: { |
2633 | 4.64k | switch (llpkgc_file__mark(state, p, endp)) { |
2634 | 4.64k | case 0: |
2635 | 4.64k | goto s_n_llpkgc_file__internal__n_separator_backslash; |
2636 | 0 | case 5: |
2637 | 0 | goto s_n_llpkgc_file__internal__n_error_82; |
2638 | 0 | default: |
2639 | 0 | goto s_n_llpkgc_file__internal__n_error_77; |
2640 | 4.64k | } |
2641 | 4.64k | UNREACHABLE; |
2642 | 4.64k | } |
2643 | 359k | s_n_llpkgc_file__internal__n_span_end_llpkgc_file__on_ident_2: { |
2644 | 359k | const unsigned char* start; |
2645 | 359k | int err; |
2646 | | |
2647 | 359k | start = state->_span_pos0; |
2648 | 359k | state->_span_pos0 = NULL; |
2649 | 359k | err = llpkgc_file__on_ident(state, start, p); |
2650 | 359k | if (err != 0) { |
2651 | 0 | state->error = err; |
2652 | 0 | state->error_pos = (const char*) p; |
2653 | 0 | state->_current = (void*) (intptr_t) s_n_llpkgc_file__internal__n_invoke_update_finish_9; |
2654 | 0 | return s_error; |
2655 | 0 | } |
2656 | 359k | goto s_n_llpkgc_file__internal__n_invoke_update_finish_9; |
2657 | 359k | UNREACHABLE; |
2658 | 359k | } |
2659 | 980 | s_n_llpkgc_file__internal__n_invoke_update_finish_32: { |
2660 | 980 | switch (llpkgc_file__internal__c_update_finish_4(state, p, endp)) { |
2661 | 980 | default: |
2662 | 980 | goto s_n_llpkgc_file__internal__n_identifier_lf; |
2663 | 980 | } |
2664 | 980 | UNREACHABLE; |
2665 | 980 | } |
2666 | 1.04k | s_n_llpkgc_file__internal__n_invoke_update_finish_33: { |
2667 | 1.04k | switch (llpkgc_file__internal__c_update_finish_4(state, p, endp)) { |
2668 | 1.04k | default: |
2669 | 1.04k | goto s_n_llpkgc_file__internal__n_identifier_cr; |
2670 | 1.04k | } |
2671 | 1.04k | UNREACHABLE; |
2672 | 1.04k | } |
2673 | 0 | s_n_llpkgc_file__internal__n_error_85: { |
2674 | 0 | state->error = 0x5; |
2675 | 0 | state->reason = "Internal parser error"; |
2676 | 0 | state->error_pos = (const char*) p; |
2677 | 0 | state->_current = (void*) (intptr_t) s_error; |
2678 | 0 | return s_error; |
2679 | 1.04k | UNREACHABLE; |
2680 | 1.04k | } |
2681 | 0 | s_n_llpkgc_file__internal__n_error_84: { |
2682 | 0 | state->error = 0x2; |
2683 | 0 | state->reason = "Callback error"; |
2684 | 0 | state->error_pos = (const char*) p; |
2685 | 0 | state->_current = (void*) (intptr_t) s_error; |
2686 | 0 | return s_error; |
2687 | 1.04k | UNREACHABLE; |
2688 | 1.04k | } |
2689 | 470 | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__emit_ident_mark_6: { |
2690 | 470 | switch (llpkgc_file__emit_ident_mark(state, p, endp)) { |
2691 | 470 | case 0: |
2692 | 470 | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__on_ident; |
2693 | 0 | case 5: |
2694 | 0 | goto s_n_llpkgc_file__internal__n_error_85; |
2695 | 0 | default: |
2696 | 0 | goto s_n_llpkgc_file__internal__n_error_84; |
2697 | 470 | } |
2698 | 470 | UNREACHABLE; |
2699 | 470 | } |
2700 | 0 | s_n_llpkgc_file__internal__n_error_87: { |
2701 | 0 | state->error = 0x5; |
2702 | 0 | state->reason = "Internal parser error"; |
2703 | 0 | state->error_pos = (const char*) p; |
2704 | 0 | state->_current = (void*) (intptr_t) s_error; |
2705 | 0 | return s_error; |
2706 | 470 | UNREACHABLE; |
2707 | 470 | } |
2708 | 0 | s_n_llpkgc_file__internal__n_error_86: { |
2709 | 0 | state->error = 0x2; |
2710 | 0 | state->reason = "Callback error"; |
2711 | 0 | state->error_pos = (const char*) p; |
2712 | 0 | state->_current = (void*) (intptr_t) s_error; |
2713 | 0 | return s_error; |
2714 | 470 | UNREACHABLE; |
2715 | 470 | } |
2716 | 713 | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__emit_ident_mark_7: { |
2717 | 713 | switch (llpkgc_file__emit_ident_mark(state, p, endp)) { |
2718 | 713 | case 0: |
2719 | 713 | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__on_ident_1; |
2720 | 0 | case 5: |
2721 | 0 | goto s_n_llpkgc_file__internal__n_error_87; |
2722 | 0 | default: |
2723 | 0 | goto s_n_llpkgc_file__internal__n_error_86; |
2724 | 713 | } |
2725 | 713 | UNREACHABLE; |
2726 | 713 | } |
2727 | 3.65k | s_n_llpkgc_file__internal__n_invoke_update_finish_31: { |
2728 | 3.65k | switch (llpkgc_file__internal__c_update_finish_1(state, p, endp)) { |
2729 | 3.65k | default: |
2730 | 3.65k | goto s_n_llpkgc_file__internal__n_identifier_escape; |
2731 | 3.65k | } |
2732 | 3.65k | UNREACHABLE; |
2733 | 3.65k | } |
2734 | 0 | s_n_llpkgc_file__internal__n_error_88: { |
2735 | 0 | state->error = 0x5; |
2736 | 0 | state->reason = "Internal parser error"; |
2737 | 0 | state->error_pos = (const char*) p; |
2738 | 0 | state->_current = (void*) (intptr_t) s_error; |
2739 | 0 | return s_error; |
2740 | 3.65k | UNREACHABLE; |
2741 | 3.65k | } |
2742 | 0 | s_n_llpkgc_file__internal__n_error_83: { |
2743 | 0 | state->error = 0x2; |
2744 | 0 | state->reason = "Callback error"; |
2745 | 0 | state->error_pos = (const char*) p; |
2746 | 0 | state->_current = (void*) (intptr_t) s_error; |
2747 | 0 | return s_error; |
2748 | 3.65k | UNREACHABLE; |
2749 | 3.65k | } |
2750 | 3.65k | s_n_llpkgc_file__internal__n_span_end_llpkgc_file__on_ident_3: { |
2751 | 3.65k | const unsigned char* start; |
2752 | 3.65k | int err; |
2753 | | |
2754 | 3.65k | start = state->_span_pos0; |
2755 | 3.65k | state->_span_pos0 = NULL; |
2756 | 3.65k | err = llpkgc_file__on_ident(state, start, p); |
2757 | 3.65k | if (err != 0) { |
2758 | 0 | state->error = err; |
2759 | 0 | state->error_pos = (const char*) p; |
2760 | 0 | state->_current = (void*) (intptr_t) s_n_llpkgc_file__internal__n_invoke_llpkgc_file__mark_7; |
2761 | 0 | return s_error; |
2762 | 0 | } |
2763 | 3.65k | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__mark_7; |
2764 | 3.65k | UNREACHABLE; |
2765 | 3.65k | } |
2766 | 550k | s_n_llpkgc_file__internal__n_invoke_update_finish_8: { |
2767 | 550k | switch (llpkgc_file__internal__c_update_finish_4(state, p, endp)) { |
2768 | 550k | default: |
2769 | 550k | goto s_n_llpkgc_file__internal__n_identifier; |
2770 | 550k | } |
2771 | 550k | UNREACHABLE; |
2772 | 550k | } |
2773 | 550k | } |
2774 | | |
2775 | 8.10k | int llpkgc_file__internal_execute(llpkgc_file__internal_t* state, const char* p, const char* endp) { |
2776 | 8.10k | llparse_state_t next; |
2777 | | |
2778 | | /* check lingering errors */ |
2779 | 8.10k | if (state->error != 0) { |
2780 | 0 | return state->error; |
2781 | 0 | } |
2782 | | |
2783 | | /* restart spans */ |
2784 | 8.10k | if (state->_span_pos0 != NULL) { |
2785 | 0 | state->_span_pos0 = (void*) p; |
2786 | 0 | } |
2787 | | |
2788 | 8.10k | next = llpkgc_file__internal__run(state, (const unsigned char*) p, (const unsigned char*) endp); |
2789 | 8.10k | if (next == s_error) { |
2790 | 310 | return state->error; |
2791 | 310 | } |
2792 | 7.79k | state->_current = (void*) (intptr_t) next; |
2793 | | |
2794 | | /* execute spans */ |
2795 | 7.79k | if (state->_span_pos0 != NULL) { |
2796 | 4.57k | int error; |
2797 | | |
2798 | 4.57k | error = ((llpkgc_file__internal__span_cb) state->_span_cb0)(state, state->_span_pos0, (const char*) endp); |
2799 | 4.57k | if (error != 0) { |
2800 | 0 | state->error = error; |
2801 | 0 | state->error_pos = endp; |
2802 | 0 | return error; |
2803 | 0 | } |
2804 | 4.57k | } |
2805 | | |
2806 | 7.79k | return 0; |
2807 | 7.79k | } |
2808 | | #include <string.h> |
2809 | | #include "llpkgc_file.h" |
2810 | | int llpkgc_file__on_barewords_complete(llpkgc_file_t*, const unsigned char*, const unsigned char*); |
2811 | | int llpkgc_file__clear_whitespace(llpkgc_file_t*, const unsigned char*, const unsigned char*); |
2812 | | int llpkgc_file__on_value_complete(llpkgc_file_t*, const unsigned char*, const unsigned char*); |
2813 | | int llpkgc_file__emit_ident_mark(llpkgc_file_t*, const unsigned char*, const unsigned char*); |
2814 | | int llpkgc_file__on_value_literal_complete(llpkgc_file_t*, const unsigned char*, const unsigned char*); |
2815 | | int llpkgc_file__flush_whitespace_all(llpkgc_file_t*, const unsigned char*, const unsigned char*); |
2816 | | int llpkgc_file__emit_literal_mark(llpkgc_file_t*, const unsigned char*, const unsigned char*); |
2817 | | |
2818 | 7.75k | int llpkgc_file__on_pkgc_complete(llpkgc_file_t* s, const unsigned char* p, const unsigned char* endp) { |
2819 | 7.75k | const llpkgc_file_settings_t* settings = s->settings; |
2820 | 7.75k | int err; |
2821 | 7.75k | if (settings == NULL || settings->on_pkgc_complete == NULL) return 0; |
2822 | 0 | err = settings->on_pkgc_complete(s); |
2823 | 0 | if (err != 0) { |
2824 | 0 | if (s->reason == NULL) s->reason = "User callback error in on_pkgc_complete"; |
2825 | 0 | s->callback_reason = (void*) s->reason; |
2826 | 0 | return PFCE_USER; |
2827 | 0 | } |
2828 | 0 | return 0; |
2829 | 0 | } |
2830 | | |
2831 | 578k | int llpkgc_file__on_ident(llpkgc_file_t* s, const unsigned char* p, const unsigned char* endp) { |
2832 | 578k | const llpkgc_file_settings_t* settings = s->settings; |
2833 | 578k | int err; |
2834 | 578k | if (settings == NULL || settings->on_ident == NULL) return 0; |
2835 | 578k | err = settings->on_ident(s, (const char*) p, (size_t) (endp - p)); |
2836 | 578k | if (err != 0) { |
2837 | 0 | if (s->reason == NULL) s->reason = "User callback error in on_ident"; |
2838 | 0 | s->callback_reason = (void*) s->reason; |
2839 | 0 | return PFCE_USER; |
2840 | 0 | } |
2841 | 578k | return 0; |
2842 | 578k | } |
2843 | | |
2844 | 720k | int llpkgc_file__on_value_literal(llpkgc_file_t* s, const unsigned char* p, const unsigned char* endp) { |
2845 | 720k | const llpkgc_file_settings_t* settings = s->settings; |
2846 | 720k | int err; |
2847 | 720k | if (settings == NULL || settings->on_value_literal == NULL) return 0; |
2848 | 720k | err = settings->on_value_literal(s, (const char*) p, (size_t) (endp - p)); |
2849 | 720k | if (err != 0) { |
2850 | 0 | if (s->reason == NULL) s->reason = "User callback error in on_value_literal"; |
2851 | 0 | s->callback_reason = (void*) s->reason; |
2852 | 0 | return PFCE_USER; |
2853 | 0 | } |
2854 | 720k | return 0; |
2855 | 720k | } |
2856 | | |
2857 | 219k | int llpkgc_file__on_value_substitution(llpkgc_file_t* s, const unsigned char* p, const unsigned char* endp) { |
2858 | 219k | const llpkgc_file_settings_t* settings = s->settings; |
2859 | 219k | int err; |
2860 | 219k | if (settings == NULL || settings->on_value_substitution == NULL) return 0; |
2861 | 219k | err = settings->on_value_substitution(s, (const char*) p, (size_t) (endp - p)); |
2862 | 219k | if (err != 0) { |
2863 | 0 | if (s->reason == NULL) s->reason = "User callback error in on_value_substitution"; |
2864 | 0 | s->callback_reason = (void*) s->reason; |
2865 | 0 | return PFCE_USER; |
2866 | 0 | } |
2867 | 219k | return 0; |
2868 | 219k | } |
2869 | | |
2870 | 720k | int llpkgc_file__on_value_literal_complete(llpkgc_file_t* s, const unsigned char* p, const unsigned char* endp) { |
2871 | 720k | const llpkgc_file_settings_t* settings = s->settings; |
2872 | 720k | int err; |
2873 | 720k | if (settings == NULL || settings->on_value_literal_complete == NULL) return 0; |
2874 | 720k | err = settings->on_value_literal_complete(s); |
2875 | 720k | if (err != 0) { |
2876 | 0 | if (s->reason == NULL) s->reason = "User callback error in on_value_literal_complete"; |
2877 | 0 | s->callback_reason = (void*) s->reason; |
2878 | 0 | return PFCE_USER; |
2879 | 0 | } |
2880 | 720k | return 0; |
2881 | 720k | } |
2882 | | |
2883 | 549k | int llpkgc_file__on_value_complete(llpkgc_file_t* s, const unsigned char* p, const unsigned char* endp) { |
2884 | 549k | const llpkgc_file_settings_t* settings = s->settings; |
2885 | 549k | int err; |
2886 | 549k | if (settings == NULL || settings->on_value_complete == NULL) return 0; |
2887 | 549k | err = settings->on_value_complete(s); |
2888 | 549k | if (err != 0) { |
2889 | 0 | if (s->reason == NULL) s->reason = "User callback error in on_value_complete"; |
2890 | 0 | s->callback_reason = (void*) s->reason; |
2891 | 0 | return PFCE_USER; |
2892 | 0 | } |
2893 | 549k | return 0; |
2894 | 549k | } |
2895 | | |
2896 | 198k | int llpkgc_file__on_barewords_complete(llpkgc_file_t* s, const unsigned char* p, const unsigned char* endp) { |
2897 | 198k | const llpkgc_file_settings_t* settings = s->settings; |
2898 | 198k | int err; |
2899 | 198k | if (settings == NULL || settings->on_barewords_complete == NULL) return 0; |
2900 | 198k | err = settings->on_barewords_complete(s); |
2901 | 198k | if (err != 0) { |
2902 | 0 | if (s->reason == NULL) s->reason = "User callback error in on_barewords_complete"; |
2903 | 0 | s->callback_reason = (void*) s->reason; |
2904 | 0 | return PFCE_USER; |
2905 | 0 | } |
2906 | 198k | return 0; |
2907 | 198k | } |
2908 | | |
2909 | 188k | int llpkgc_file__on_property_complete(llpkgc_file_t* s, const unsigned char* p, const unsigned char* endp) { |
2910 | 188k | const llpkgc_file_settings_t* settings = s->settings; |
2911 | 188k | int err; |
2912 | 188k | if (settings == NULL || settings->on_property_complete == NULL) return 0; |
2913 | 188k | err = settings->on_property_complete(s); |
2914 | 188k | if (err != 0) { |
2915 | 0 | if (s->reason == NULL) s->reason = "User callback error in on_property_complete"; |
2916 | 0 | s->callback_reason = (void*) s->reason; |
2917 | 0 | return PFCE_USER; |
2918 | 0 | } |
2919 | 188k | return 0; |
2920 | 188k | } |
2921 | | |
2922 | 163k | int llpkgc_file__on_variable_complete(llpkgc_file_t* s, const unsigned char* p, const unsigned char* endp) { |
2923 | 163k | const llpkgc_file_settings_t* settings = s->settings; |
2924 | 163k | int err; |
2925 | 163k | if (settings == NULL || settings->on_variable_complete == NULL) return 0; |
2926 | 163k | err = settings->on_variable_complete(s); |
2927 | 163k | if (err != 0) { |
2928 | 0 | if (s->reason == NULL) s->reason = "User callback error in on_variable_complete"; |
2929 | 0 | s->callback_reason = (void*) s->reason; |
2930 | 0 | return PFCE_USER; |
2931 | 0 | } |
2932 | 163k | return 0; |
2933 | 163k | } |
2934 | | |
2935 | 219k | int llpkgc_file__on_value_substitution_complete(llpkgc_file_t* s, const unsigned char* p, const unsigned char* endp) { |
2936 | 219k | const llpkgc_file_settings_t* settings = s->settings; |
2937 | 219k | int err; |
2938 | 219k | if (settings == NULL || settings->on_value_substitution_complete == NULL) return 0; |
2939 | 219k | err = settings->on_value_substitution_complete(s); |
2940 | 219k | if (err != 0) { |
2941 | 0 | if (s->reason == NULL) s->reason = "User callback error in on_value_substitution_complete"; |
2942 | 0 | s->callback_reason = (void*) s->reason; |
2943 | 0 | return PFCE_USER; |
2944 | 0 | } |
2945 | 219k | return 0; |
2946 | 219k | } |
2947 | | |
2948 | 111k | void llpkgc_file_init(llpkgc_file_t* s, const llpkgc_file_settings_t* settings) { |
2949 | 111k | llpkgc_file__internal_init(s); |
2950 | 111k | s->settings = (void*) settings; |
2951 | 111k | } |
2952 | 0 | void llpkgc_file_reset(llpkgc_file_t* s) { |
2953 | 0 | const llpkgc_file_settings_t* settings = s->settings; |
2954 | 0 | void* data = s->data; |
2955 | 0 | llpkgc_file_init(s, settings); |
2956 | 0 | s->data = data; |
2957 | 0 | } |
2958 | 0 | void llpkgc_file_settings_init(llpkgc_file_settings_t* settings) { |
2959 | 0 | memset(settings, 0, sizeof(*settings)); |
2960 | 0 | } |
2961 | 8.10k | llpkgc_file_errno_t llpkgc_file_execute(llpkgc_file_t* s, const char* data, size_t len) { |
2962 | 8.10k | if (s->error != 0) return s->error; |
2963 | 8.10k | if (s->done) { |
2964 | 0 | s->reason = "Input after finish"; |
2965 | 0 | s->error_pos = data; |
2966 | 0 | return s->error = PFCE_INVALID; |
2967 | 0 | } |
2968 | 8.10k | if (s->whitespace_start != NULL && data != s->end && len != 0) { |
2969 | 0 | s->reason = "Retained input requires a contiguous extension"; |
2970 | 0 | s->error_pos = data; |
2971 | 0 | return s->error = PFCE_INVALID; |
2972 | 0 | } |
2973 | 8.10k | if (len == 0) return s->whitespace_start != NULL ? PFCE_NEED_MORE : PFCE_OK; |
2974 | 8.10k | s->end = (void*) (data + len); |
2975 | 8.10k | { |
2976 | 8.10k | int err = llpkgc_file__internal_execute(s, data, data + len); |
2977 | 8.10k | if (err == PFCE_USER && s->callback_reason != NULL) |
2978 | 0 | s->reason = s->callback_reason; |
2979 | 8.10k | if (err == 0 && s->whitespace_start != NULL) return PFCE_NEED_MORE; |
2980 | 7.82k | return err; |
2981 | 8.10k | } |
2982 | 8.10k | } |
2983 | 8.10k | llpkgc_file_errno_t llpkgc_file_finish(llpkgc_file_t* s) { |
2984 | 8.10k | int err; |
2985 | 8.10k | if (s->error != 0) return s->error; |
2986 | 7.79k | if (s->done) return PFCE_OK; |
2987 | 7.79k | switch (s->finish) { |
2988 | 1.29k | case 0: |
2989 | 1.29k | err = llpkgc_file__on_pkgc_complete(s, s->end, s->end); |
2990 | 1.29k | if (err != 0) { |
2991 | 0 | s->error = err; |
2992 | 0 | s->error_pos = s->end; |
2993 | 0 | return s->error; |
2994 | 0 | } |
2995 | 1.29k | break; |
2996 | 1.35k | case 1: |
2997 | 1.35k | err = llpkgc_file__on_barewords_complete(s, s->end, s->end); |
2998 | 1.35k | if (err != 0) { |
2999 | 0 | s->error = err; |
3000 | 0 | s->error_pos = s->end; |
3001 | 0 | return s->error; |
3002 | 0 | } |
3003 | | |
3004 | 1.35k | err = llpkgc_file__clear_whitespace(s, s->end, s->end); |
3005 | 1.35k | if (err != 0) { |
3006 | 0 | s->error = err; |
3007 | 0 | s->error_pos = s->end; |
3008 | 0 | return s->error; |
3009 | 0 | } |
3010 | | |
3011 | 1.35k | err = llpkgc_file__on_value_complete(s, s->end, s->end); |
3012 | 1.35k | if (err != 0) { |
3013 | 0 | s->error = err; |
3014 | 0 | s->error_pos = s->end; |
3015 | 0 | return s->error; |
3016 | 0 | } |
3017 | | |
3018 | 1.35k | err = llpkgc_file__on_pkgc_complete(s, s->end, s->end); |
3019 | 1.35k | if (err != 0) { |
3020 | 0 | s->error = err; |
3021 | 0 | s->error_pos = s->end; |
3022 | 0 | return s->error; |
3023 | 0 | } |
3024 | 1.35k | break; |
3025 | 1.35k | case 2: |
3026 | 130 | err = llpkgc_file__emit_ident_mark(s, s->end, s->end); |
3027 | 130 | if (err != 0) { |
3028 | 0 | s->error = err; |
3029 | 0 | s->error_pos = s->end; |
3030 | 0 | return s->error; |
3031 | 0 | } |
3032 | | |
3033 | 130 | err = llpkgc_file__on_barewords_complete(s, s->end, s->end); |
3034 | 130 | if (err != 0) { |
3035 | 0 | s->error = err; |
3036 | 0 | s->error_pos = s->end; |
3037 | 0 | return s->error; |
3038 | 0 | } |
3039 | | |
3040 | 130 | err = llpkgc_file__clear_whitespace(s, s->end, s->end); |
3041 | 130 | if (err != 0) { |
3042 | 0 | s->error = err; |
3043 | 0 | s->error_pos = s->end; |
3044 | 0 | return s->error; |
3045 | 0 | } |
3046 | | |
3047 | 130 | err = llpkgc_file__on_value_complete(s, s->end, s->end); |
3048 | 130 | if (err != 0) { |
3049 | 0 | s->error = err; |
3050 | 0 | s->error_pos = s->end; |
3051 | 0 | return s->error; |
3052 | 0 | } |
3053 | | |
3054 | 130 | err = llpkgc_file__on_pkgc_complete(s, s->end, s->end); |
3055 | 130 | if (err != 0) { |
3056 | 0 | s->error = err; |
3057 | 0 | s->error_pos = s->end; |
3058 | 0 | return s->error; |
3059 | 0 | } |
3060 | 130 | break; |
3061 | 1.51k | case 3: |
3062 | 1.51k | err = llpkgc_file__clear_whitespace(s, s->end, s->end); |
3063 | 1.51k | if (err != 0) { |
3064 | 0 | s->error = err; |
3065 | 0 | s->error_pos = s->end; |
3066 | 0 | return s->error; |
3067 | 0 | } |
3068 | | |
3069 | 1.51k | err = llpkgc_file__on_value_complete(s, s->end, s->end); |
3070 | 1.51k | if (err != 0) { |
3071 | 0 | s->error = err; |
3072 | 0 | s->error_pos = s->end; |
3073 | 0 | return s->error; |
3074 | 0 | } |
3075 | | |
3076 | 1.51k | err = llpkgc_file__on_pkgc_complete(s, s->end, s->end); |
3077 | 1.51k | if (err != 0) { |
3078 | 0 | s->error = err; |
3079 | 0 | s->error_pos = s->end; |
3080 | 0 | return s->error; |
3081 | 0 | } |
3082 | 1.51k | break; |
3083 | 3.14k | case 4: |
3084 | 3.14k | err = llpkgc_file__on_value_literal_complete(s, s->end, s->end); |
3085 | 3.14k | if (err != 0) { |
3086 | 0 | s->error = err; |
3087 | 0 | s->error_pos = s->end; |
3088 | 0 | return s->error; |
3089 | 0 | } |
3090 | | |
3091 | 3.14k | err = llpkgc_file__clear_whitespace(s, s->end, s->end); |
3092 | 3.14k | if (err != 0) { |
3093 | 0 | s->error = err; |
3094 | 0 | s->error_pos = s->end; |
3095 | 0 | return s->error; |
3096 | 0 | } |
3097 | | |
3098 | 3.14k | err = llpkgc_file__on_value_complete(s, s->end, s->end); |
3099 | 3.14k | if (err != 0) { |
3100 | 0 | s->error = err; |
3101 | 0 | s->error_pos = s->end; |
3102 | 0 | return s->error; |
3103 | 0 | } |
3104 | | |
3105 | 3.14k | err = llpkgc_file__on_pkgc_complete(s, s->end, s->end); |
3106 | 3.14k | if (err != 0) { |
3107 | 0 | s->error = err; |
3108 | 0 | s->error_pos = s->end; |
3109 | 0 | return s->error; |
3110 | 0 | } |
3111 | 3.14k | break; |
3112 | 3.14k | case 5: |
3113 | 165 | err = llpkgc_file__flush_whitespace_all(s, s->end, s->end); |
3114 | 165 | if (err != 0) { |
3115 | 0 | s->error = err; |
3116 | 0 | s->error_pos = s->end; |
3117 | 0 | return s->error; |
3118 | 0 | } |
3119 | | |
3120 | 165 | err = llpkgc_file__emit_literal_mark(s, s->end, s->end); |
3121 | 165 | if (err != 0) { |
3122 | 0 | s->error = err; |
3123 | 0 | s->error_pos = s->end; |
3124 | 0 | return s->error; |
3125 | 0 | } |
3126 | | |
3127 | 165 | err = llpkgc_file__on_value_literal_complete(s, s->end, s->end); |
3128 | 165 | if (err != 0) { |
3129 | 0 | s->error = err; |
3130 | 0 | s->error_pos = s->end; |
3131 | 0 | return s->error; |
3132 | 0 | } |
3133 | | |
3134 | 165 | err = llpkgc_file__clear_whitespace(s, s->end, s->end); |
3135 | 165 | if (err != 0) { |
3136 | 0 | s->error = err; |
3137 | 0 | s->error_pos = s->end; |
3138 | 0 | return s->error; |
3139 | 0 | } |
3140 | | |
3141 | 165 | err = llpkgc_file__on_value_complete(s, s->end, s->end); |
3142 | 165 | if (err != 0) { |
3143 | 0 | s->error = err; |
3144 | 0 | s->error_pos = s->end; |
3145 | 0 | return s->error; |
3146 | 0 | } |
3147 | | |
3148 | 165 | err = llpkgc_file__on_pkgc_complete(s, s->end, s->end); |
3149 | 165 | if (err != 0) { |
3150 | 0 | s->error = err; |
3151 | 0 | s->error_pos = s->end; |
3152 | 0 | return s->error; |
3153 | 0 | } |
3154 | 165 | break; |
3155 | 165 | case 6: |
3156 | 157 | err = llpkgc_file__emit_literal_mark(s, s->end, s->end); |
3157 | 157 | if (err != 0) { |
3158 | 0 | s->error = err; |
3159 | 0 | s->error_pos = s->end; |
3160 | 0 | return s->error; |
3161 | 0 | } |
3162 | | |
3163 | 157 | err = llpkgc_file__on_value_literal_complete(s, s->end, s->end); |
3164 | 157 | if (err != 0) { |
3165 | 0 | s->error = err; |
3166 | 0 | s->error_pos = s->end; |
3167 | 0 | return s->error; |
3168 | 0 | } |
3169 | | |
3170 | 157 | err = llpkgc_file__clear_whitespace(s, s->end, s->end); |
3171 | 157 | if (err != 0) { |
3172 | 0 | s->error = err; |
3173 | 0 | s->error_pos = s->end; |
3174 | 0 | return s->error; |
3175 | 0 | } |
3176 | | |
3177 | 157 | err = llpkgc_file__on_value_complete(s, s->end, s->end); |
3178 | 157 | if (err != 0) { |
3179 | 0 | s->error = err; |
3180 | 0 | s->error_pos = s->end; |
3181 | 0 | return s->error; |
3182 | 0 | } |
3183 | | |
3184 | 157 | err = llpkgc_file__on_pkgc_complete(s, s->end, s->end); |
3185 | 157 | if (err != 0) { |
3186 | 0 | s->error = err; |
3187 | 0 | s->error_pos = s->end; |
3188 | 0 | return s->error; |
3189 | 0 | } |
3190 | 157 | break; |
3191 | 157 | case 7: s->reason = "Invalid EOF state"; |
3192 | 45 | s->error = PFCE_UNFINISHED; s->error_pos = s->end; return s->error; |
3193 | 0 | default: s->reason = "Invalid finish action"; return s->error = PFCE_INTERNAL; |
3194 | 7.79k | } |
3195 | 7.75k | s->done = 1; |
3196 | 7.75k | return PFCE_OK; |
3197 | 7.79k | } |
3198 | 0 | llpkgc_file_errno_t llpkgc_file_get_errno(const llpkgc_file_t* s) { return s->error; } |
3199 | 0 | const char* llpkgc_file_get_error_reason(const llpkgc_file_t* s) { return s->reason; } |
3200 | 0 | void llpkgc_file_set_error_reason(llpkgc_file_t* s, const char* reason) { s->reason = reason; } |
3201 | 0 | const char* llpkgc_file_get_error_pos(const llpkgc_file_t* s) { return s->error_pos; } |
3202 | 0 | const char* llpkgc_file_errno_name(llpkgc_file_errno_t err) { |
3203 | 0 | switch (err) { |
3204 | 0 | case PFCE_OK: return "PFCE_OK"; |
3205 | 0 | case PFCE_USER: return "PFCE_USER"; |
3206 | 0 | case PFCE_UNFINISHED: return "PFCE_UNFINISHED"; |
3207 | 0 | case PFCE_INVALID: return "PFCE_INVALID"; |
3208 | 0 | case PFCE_NEED_MORE: return "PFCE_NEED_MORE"; |
3209 | 0 | default: return "PFCE_INTERNAL"; |
3210 | 0 | } |
3211 | 0 | } |
3212 | | |