/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 | | static const unsigned char llparse_blob0[] = { |
41 | | '\\', '\\' |
42 | | }; |
43 | | static const unsigned char llparse_blob1[] = { |
44 | | '$', '{' |
45 | | }; |
46 | | static const unsigned char llparse_blob2[] = { |
47 | | '\\', '\\' |
48 | | }; |
49 | | static const unsigned char llparse_blob3[] = { |
50 | | '\\', '\\' |
51 | | }; |
52 | | |
53 | | enum llparse_match_status_e { |
54 | | kMatchComplete, |
55 | | kMatchPause, |
56 | | kMatchMismatch |
57 | | }; |
58 | | typedef enum llparse_match_status_e llparse_match_status_t; |
59 | | |
60 | | struct llparse_match_s { |
61 | | llparse_match_status_t status; |
62 | | const unsigned char* current; |
63 | | }; |
64 | | typedef struct llparse_match_s llparse_match_t; |
65 | | |
66 | | static llparse_match_t llparse__match_sequence_id( |
67 | | llpkgc_file__internal_t* s, const unsigned char* p, |
68 | | const unsigned char* endp, |
69 | 1 | const unsigned char* seq, uint32_t seq_len) { |
70 | 1 | uint32_t index; |
71 | 1 | llparse_match_t res; |
72 | | |
73 | 1 | index = s->_index; |
74 | 2 | for (; p != endp; p++) { |
75 | 2 | unsigned char current; |
76 | | |
77 | 2 | current = *p; |
78 | 2 | if (current == seq[index]) { |
79 | 2 | if (++index == seq_len) { |
80 | 1 | res.status = kMatchComplete; |
81 | 1 | goto reset; |
82 | 1 | } |
83 | 2 | } else { |
84 | 0 | res.status = kMatchMismatch; |
85 | 0 | goto reset; |
86 | 0 | } |
87 | 2 | } |
88 | 0 | s->_index = index; |
89 | 0 | res.status = kMatchPause; |
90 | 0 | res.current = p; |
91 | 0 | return res; |
92 | 1 | reset: |
93 | 1 | s->_index = 0; |
94 | 1 | res.current = p; |
95 | 1 | return res; |
96 | 1 | } |
97 | | |
98 | | enum llparse_state_e { |
99 | | s_error, |
100 | | s_n_llpkgc_file__internal__n_pkgc_file_comment, |
101 | | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__barewords_decl_complete, |
102 | | s_n_llpkgc_file__internal__n_pkgc_file_barewords_backslash_literal, |
103 | | s_n_llpkgc_file__internal__n_span_start_llpkgc_file__ident_span_1, |
104 | | s_n_llpkgc_file__internal__n_pkgc_file_barewords_maybe_cr, |
105 | | s_n_llpkgc_file__internal__n_pkgc_file_barewords_maybe_lf, |
106 | | s_n_llpkgc_file__internal__n_pkgc_file_barewords_line_end, |
107 | | s_n_llpkgc_file__internal__n_pkgc_file_barewords_continue_line, |
108 | | s_n_llpkgc_file__internal__n_span_start_llpkgc_file__ident_span_2, |
109 | | s_n_llpkgc_file__internal__n_pkgc_file_barewords_escaped_comment, |
110 | | s_n_llpkgc_file__internal__n_pkgc_file_barewords_double_backslash, |
111 | | s_n_llpkgc_file__internal__n_pkgc_file_barewords_backslash_eof, |
112 | | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lookahead_backslash_1, |
113 | | s_n_llpkgc_file__internal__n_pkgc_file_barewords, |
114 | | s_n_llpkgc_file__internal__n_span_start_llpkgc_file__ident_span, |
115 | | s_n_llpkgc_file__internal__n_pkgc_file_expect_ident_escaped_comment, |
116 | | s_n_llpkgc_file__internal__n_span_start_llpkgc_file__ident_span_3, |
117 | | s_n_llpkgc_file__internal__n_pkgc_file_start_barewords_backslash_eof, |
118 | | s_n_llpkgc_file__internal__n_span_start_llpkgc_file__ident_span_4, |
119 | | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lookahead_backslash, |
120 | | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lit_complete, |
121 | | s_n_llpkgc_file__internal__n_pkgc_file_value_literal_dollar_literal, |
122 | | s_n_llpkgc_file__internal__n_pkgc_file_value_dollar_doubled_literal, |
123 | | s_n_llpkgc_file__internal__n_span_start_llpkgc_file__lit_span_1, |
124 | | s_n_llpkgc_file__internal__n_pkgc_file_value_dollar_doubled, |
125 | | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lit_complete_2, |
126 | | s_n_llpkgc_file__internal__n_pkgc_file_value_dollar_eof, |
127 | | s_n_llpkgc_file__internal__n_span_start_llpkgc_file__lit_span_2, |
128 | | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lookahead_2, |
129 | | s_n_llpkgc_file__internal__n_pkgc_file_line_maybe_cr, |
130 | | s_n_llpkgc_file__internal__n_pkgc_file_line_maybe_lf, |
131 | | s_n_llpkgc_file__internal__n_pkgc_file_line_end, |
132 | | s_n_llpkgc_file__internal__n_pkgc_file_continue_line, |
133 | | s_n_llpkgc_file__internal__n_span_start_llpkgc_file__lit_span_3, |
134 | | s_n_llpkgc_file__internal__n_pkgc_file_value_escaped_comment, |
135 | | s_n_llpkgc_file__internal__n_pkgc_file_double_backslash, |
136 | | s_n_llpkgc_file__internal__n_span_start_llpkgc_file__lit_span_4, |
137 | | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lit_complete_3, |
138 | | s_n_llpkgc_file__internal__n_pkgc_file_value_backslash_eof, |
139 | | s_n_llpkgc_file__internal__n_span_start_llpkgc_file__lit_span_5, |
140 | | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lookahead_backslash_2, |
141 | | s_n_llpkgc_file__internal__n_pkgc_file_value, |
142 | | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__sub_complete, |
143 | | s_n_llpkgc_file__internal__n_pkgc_file_substitution, |
144 | | s_n_llpkgc_file__internal__n_span_start_llpkgc_file__sub_span, |
145 | | s_n_llpkgc_file__internal__n_pkgc_file_value_dollar_substitution, |
146 | | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lit_complete_1, |
147 | | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lit_complete_4, |
148 | | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lit_complete_5, |
149 | | s_n_llpkgc_file__internal__n_pkgc_file_value_literal_dollar_eof, |
150 | | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lookahead_1, |
151 | | s_n_llpkgc_file__internal__n_pkgc_file_backslash_literal, |
152 | | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lit_complete_6, |
153 | | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lit_complete_7, |
154 | | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lit_complete_8, |
155 | | s_n_llpkgc_file__internal__n_pkgc_file_value_literal_backslash_eof, |
156 | | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lookahead_backslash_3, |
157 | | s_n_llpkgc_file__internal__n_pkgc_file_value_literal, |
158 | | s_n_llpkgc_file__internal__n_span_start_llpkgc_file__lit_span, |
159 | | s_n_llpkgc_file__internal__n_span_start_llpkgc_file__lit_span_6, |
160 | | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lookahead, |
161 | | s_n_llpkgc_file__internal__n_span_start_llpkgc_file__lit_span_7, |
162 | | s_n_llpkgc_file__internal__n_span_start_llpkgc_file__lit_span_8, |
163 | | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lookahead_backslash_4, |
164 | | s_n_llpkgc_file__internal__n_pkgc_file_expect_value, |
165 | | s_n_llpkgc_file__internal__n_pkgc_file_maybe_separator_backslash_literal, |
166 | | s_n_llpkgc_file__internal__n_span_start_llpkgc_file__ident_span_6, |
167 | | s_n_llpkgc_file__internal__n_span_start_llpkgc_file__ident_span_7, |
168 | | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lookahead_backslash_5, |
169 | | s_n_llpkgc_file__internal__n_pkgc_file_maybe_separator, |
170 | | s_n_llpkgc_file__internal__n_pkgc_file_ident_backslash_literal, |
171 | | s_n_llpkgc_file__internal__n_pkgc_file_ident_maybe_cr, |
172 | | s_n_llpkgc_file__internal__n_pkgc_file_ident_maybe_lf, |
173 | | s_n_llpkgc_file__internal__n_pkgc_file_ident_line_end, |
174 | | s_n_llpkgc_file__internal__n_pkgc_file_ident_continue_line, |
175 | | s_n_llpkgc_file__internal__n_span_start_llpkgc_file__ident_span_8, |
176 | | s_n_llpkgc_file__internal__n_pkgc_file_ident_escaped_comment, |
177 | | s_n_llpkgc_file__internal__n_pkgc_file_ident_double_backslash, |
178 | | s_n_llpkgc_file__internal__n_pkgc_file_ident_backslash_eof, |
179 | | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lookahead_backslash_6, |
180 | | s_n_llpkgc_file__internal__n_pkgc_file_ident, |
181 | | s_n_llpkgc_file__internal__n_span_start_llpkgc_file__ident_span_5, |
182 | | s_n_llpkgc_file__internal__n_pkgc_file_expect_ident, |
183 | | }; |
184 | | typedef enum llparse_state_e llparse_state_t; |
185 | | |
186 | | int llpkgc_file__ident_span( |
187 | | llpkgc_file__internal_t* s, const unsigned char* p, |
188 | | const unsigned char* endp); |
189 | | |
190 | | int llpkgc_file__sub_span( |
191 | | llpkgc_file__internal_t* s, const unsigned char* p, |
192 | | const unsigned char* endp); |
193 | | |
194 | | int llpkgc_file__lit_span( |
195 | | llpkgc_file__internal_t* s, const unsigned char* p, |
196 | | const unsigned char* endp); |
197 | | |
198 | | int llpkgc_file__lookahead_backslash( |
199 | | llpkgc_file__internal_t* s, const unsigned char* p, |
200 | | const unsigned char* endp); |
201 | | |
202 | | int llpkgc_file__internal__c_update_llpkgc_file__unfinished( |
203 | | llpkgc_file__internal_t* state, |
204 | | const unsigned char* p, |
205 | 0 | const unsigned char* endp) { |
206 | 0 | state->llpkgc_file__unfinished = 2; |
207 | 0 | return 0; |
208 | 0 | } |
209 | | |
210 | | int llpkgc_file__barewords_decl_complete( |
211 | | llpkgc_file__internal_t* s, const unsigned char* p, |
212 | | const unsigned char* endp); |
213 | | |
214 | | int llpkgc_file__val_complete( |
215 | | llpkgc_file__internal_t* s, const unsigned char* p, |
216 | | const unsigned char* endp); |
217 | | |
218 | | int llpkgc_file__internal__c_update_llpkgc_file__unfinished_1( |
219 | | llpkgc_file__internal_t* state, |
220 | | const unsigned char* p, |
221 | 1.77k | const unsigned char* endp) { |
222 | 1.77k | state->llpkgc_file__unfinished = 0; |
223 | 1.77k | return 0; |
224 | 1.77k | } |
225 | | |
226 | | int llpkgc_file__internal__c_update_llpkgc_file__unfinished_4( |
227 | | llpkgc_file__internal_t* state, |
228 | | const unsigned char* p, |
229 | 1.77k | const unsigned char* endp) { |
230 | 1.77k | state->llpkgc_file__unfinished = 1; |
231 | 1.77k | return 0; |
232 | 1.77k | } |
233 | | |
234 | | int llpkgc_file__prop_decl_complete( |
235 | | llpkgc_file__internal_t* s, const unsigned char* p, |
236 | | const unsigned char* endp); |
237 | | |
238 | | int llpkgc_file__internal__c_update_llpkgc_file__unfinished_5( |
239 | | llpkgc_file__internal_t* state, |
240 | | const unsigned char* p, |
241 | 4 | const unsigned char* endp) { |
242 | 4 | state->llpkgc_file__unfinished = 3; |
243 | 4 | return 0; |
244 | 4 | } |
245 | | |
246 | | int llpkgc_file__lookahead( |
247 | | llpkgc_file__internal_t* s, const unsigned char* p, |
248 | | const unsigned char* endp); |
249 | | |
250 | | int llpkgc_file__internal__c_update_llpkgc_file__unfinished_6( |
251 | | llpkgc_file__internal_t* state, |
252 | | const unsigned char* p, |
253 | 5 | const unsigned char* endp) { |
254 | 5 | state->llpkgc_file__unfinished = 5; |
255 | 5 | return 0; |
256 | 5 | } |
257 | | |
258 | | int llpkgc_file__lit_complete( |
259 | | llpkgc_file__internal_t* s, const unsigned char* p, |
260 | | const unsigned char* endp); |
261 | | |
262 | | int llpkgc_file__internal__c_update_llpkgc_file__unfinished_7( |
263 | | llpkgc_file__internal_t* state, |
264 | | const unsigned char* p, |
265 | 0 | const unsigned char* endp) { |
266 | 0 | state->llpkgc_file__unfinished = 6; |
267 | 0 | return 0; |
268 | 0 | } |
269 | | |
270 | | int llpkgc_file__sub_complete( |
271 | | llpkgc_file__internal_t* s, const unsigned char* p, |
272 | | const unsigned char* endp); |
273 | | |
274 | | int llpkgc_file__internal__c_update_llpkgc_file__unfinished_8( |
275 | | llpkgc_file__internal_t* state, |
276 | | const unsigned char* p, |
277 | 0 | const unsigned char* endp) { |
278 | 0 | state->llpkgc_file__unfinished = 4; |
279 | 0 | return 0; |
280 | 0 | } |
281 | | |
282 | | int llpkgc_file__internal__c_update_llpkgc_file__value_resume( |
283 | | llpkgc_file__internal_t* state, |
284 | | const unsigned char* p, |
285 | 0 | const unsigned char* endp) { |
286 | 0 | state->llpkgc_file__value_resume = 1; |
287 | 0 | return 0; |
288 | 0 | } |
289 | | |
290 | | int llpkgc_file__internal__c_update_llpkgc_file__line_resume( |
291 | | llpkgc_file__internal_t* state, |
292 | | const unsigned char* p, |
293 | 0 | const unsigned char* endp) { |
294 | 0 | state->llpkgc_file__line_resume = 1; |
295 | 0 | return 0; |
296 | 0 | } |
297 | | |
298 | | int llpkgc_file__internal__c_load_llpkgc_file__line_resume( |
299 | | llpkgc_file__internal_t* state, |
300 | | const unsigned char* p, |
301 | 0 | const unsigned char* endp) { |
302 | 0 | return state->llpkgc_file__line_resume; |
303 | 0 | } |
304 | | |
305 | | int llpkgc_file__internal__c_load_llpkgc_file__value_resume( |
306 | | llpkgc_file__internal_t* state, |
307 | | const unsigned char* p, |
308 | 0 | const unsigned char* endp) { |
309 | 0 | return state->llpkgc_file__value_resume; |
310 | 0 | } |
311 | | |
312 | | int llpkgc_file__internal__c_update_llpkgc_file__text_resume( |
313 | | llpkgc_file__internal_t* state, |
314 | | const unsigned char* p, |
315 | 2 | const unsigned char* endp) { |
316 | 2 | state->llpkgc_file__text_resume = 0; |
317 | 2 | return 0; |
318 | 2 | } |
319 | | |
320 | | int llpkgc_file__internal__c_load_llpkgc_file__text_resume( |
321 | | llpkgc_file__internal_t* state, |
322 | | const unsigned char* p, |
323 | 2 | const unsigned char* endp) { |
324 | 2 | return state->llpkgc_file__text_resume; |
325 | 2 | } |
326 | | |
327 | | int llpkgc_file__internal__c_update_llpkgc_file__value_resume_2( |
328 | | llpkgc_file__internal_t* state, |
329 | | const unsigned char* p, |
330 | 0 | const unsigned char* endp) { |
331 | 0 | state->llpkgc_file__value_resume = 0; |
332 | 0 | return 0; |
333 | 0 | } |
334 | | |
335 | | int llpkgc_file__var_decl_complete( |
336 | | llpkgc_file__internal_t* s, const unsigned char* p, |
337 | | const unsigned char* endp); |
338 | | |
339 | | int llpkgc_file__internal__c_update_llpkgc_file__line_resume_3( |
340 | | llpkgc_file__internal_t* state, |
341 | | const unsigned char* p, |
342 | 0 | const unsigned char* endp) { |
343 | 0 | state->llpkgc_file__line_resume = 0; |
344 | 0 | return 0; |
345 | 0 | } |
346 | | |
347 | 1 | int llpkgc_file__internal_init(llpkgc_file__internal_t* state) { |
348 | 1 | memset(state, 0, sizeof(*state)); |
349 | 1 | state->_current = (void*) (intptr_t) s_n_llpkgc_file__internal__n_pkgc_file_expect_ident; |
350 | 1 | return 0; |
351 | 1 | } |
352 | | |
353 | | static llparse_state_t llpkgc_file__internal__run( |
354 | | llpkgc_file__internal_t* state, |
355 | | const unsigned char* p, |
356 | 1 | const unsigned char* endp) { |
357 | 1 | int match; |
358 | 1 | switch ((llparse_state_t) (intptr_t) state->_current) { |
359 | 0 | case s_n_llpkgc_file__internal__n_pkgc_file_comment: |
360 | 49 | s_n_llpkgc_file__internal__n_pkgc_file_comment: { |
361 | 49 | if (p == endp) { |
362 | 0 | return s_n_llpkgc_file__internal__n_pkgc_file_comment; |
363 | 0 | } |
364 | 49 | switch (*p) { |
365 | 6 | case 10: { |
366 | 6 | p++; |
367 | 6 | goto s_n_llpkgc_file__internal__n_pkgc_file_expect_ident; |
368 | 0 | } |
369 | 0 | case 13: { |
370 | 0 | p++; |
371 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_expect_ident; |
372 | 0 | } |
373 | 43 | default: { |
374 | 43 | p++; |
375 | 43 | goto s_n_llpkgc_file__internal__n_pkgc_file_comment; |
376 | 0 | } |
377 | 49 | } |
378 | 49 | UNREACHABLE; |
379 | 49 | } |
380 | 0 | case s_n_llpkgc_file__internal__n_invoke_llpkgc_file__barewords_decl_complete: |
381 | 1.77k | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__barewords_decl_complete: { |
382 | 1.77k | switch (llpkgc_file__barewords_decl_complete(state, p, endp)) { |
383 | 1.77k | case 0: |
384 | 1.77k | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__val_complete; |
385 | 0 | default: |
386 | 0 | goto s_n_llpkgc_file__internal__n_error_1; |
387 | 1.77k | } |
388 | 1.77k | UNREACHABLE; |
389 | 1.77k | } |
390 | 0 | case s_n_llpkgc_file__internal__n_pkgc_file_barewords_backslash_literal: |
391 | 1 | s_n_llpkgc_file__internal__n_pkgc_file_barewords_backslash_literal: { |
392 | 1 | if (p == endp) { |
393 | 0 | return s_n_llpkgc_file__internal__n_pkgc_file_barewords_backslash_literal; |
394 | 0 | } |
395 | 1 | switch (*p) { |
396 | 1 | case 92: { |
397 | 1 | p++; |
398 | 1 | goto s_n_llpkgc_file__internal__n_pkgc_file_barewords; |
399 | 0 | } |
400 | 0 | default: { |
401 | 0 | goto s_n_llpkgc_file__internal__n_error; |
402 | 0 | } |
403 | 1 | } |
404 | 1 | UNREACHABLE; |
405 | 1 | } |
406 | 0 | case s_n_llpkgc_file__internal__n_span_start_llpkgc_file__ident_span_1: |
407 | 0 | s_n_llpkgc_file__internal__n_span_start_llpkgc_file__ident_span_1: { |
408 | 0 | if (p == endp) { |
409 | 0 | return s_n_llpkgc_file__internal__n_span_start_llpkgc_file__ident_span_1; |
410 | 0 | } |
411 | 0 | state->_span_pos0 = (void*) p; |
412 | 0 | state->_span_cb0 = llpkgc_file__ident_span; |
413 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_barewords; |
414 | 0 | UNREACHABLE; |
415 | 0 | } |
416 | 0 | case s_n_llpkgc_file__internal__n_pkgc_file_barewords_maybe_cr: |
417 | 0 | s_n_llpkgc_file__internal__n_pkgc_file_barewords_maybe_cr: { |
418 | 0 | if (p == endp) { |
419 | 0 | return s_n_llpkgc_file__internal__n_pkgc_file_barewords_maybe_cr; |
420 | 0 | } |
421 | 0 | switch (*p) { |
422 | 0 | case 13: { |
423 | 0 | p++; |
424 | 0 | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__ident_span_1; |
425 | 0 | } |
426 | 0 | default: { |
427 | 0 | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__ident_span_1; |
428 | 0 | } |
429 | 0 | } |
430 | 0 | UNREACHABLE; |
431 | 0 | } |
432 | 0 | case s_n_llpkgc_file__internal__n_pkgc_file_barewords_maybe_lf: |
433 | 0 | s_n_llpkgc_file__internal__n_pkgc_file_barewords_maybe_lf: { |
434 | 0 | if (p == endp) { |
435 | 0 | return s_n_llpkgc_file__internal__n_pkgc_file_barewords_maybe_lf; |
436 | 0 | } |
437 | 0 | switch (*p) { |
438 | 0 | case 10: { |
439 | 0 | p++; |
440 | 0 | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__ident_span_1; |
441 | 0 | } |
442 | 0 | default: { |
443 | 0 | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__ident_span_1; |
444 | 0 | } |
445 | 0 | } |
446 | 0 | UNREACHABLE; |
447 | 0 | } |
448 | 0 | case s_n_llpkgc_file__internal__n_pkgc_file_barewords_line_end: |
449 | 0 | s_n_llpkgc_file__internal__n_pkgc_file_barewords_line_end: { |
450 | 0 | if (p == endp) { |
451 | 0 | return s_n_llpkgc_file__internal__n_pkgc_file_barewords_line_end; |
452 | 0 | } |
453 | 0 | switch (*p) { |
454 | 0 | case 10: { |
455 | 0 | p++; |
456 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_barewords_maybe_cr; |
457 | 0 | } |
458 | 0 | case 13: { |
459 | 0 | p++; |
460 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_barewords_maybe_lf; |
461 | 0 | } |
462 | 0 | default: { |
463 | 0 | goto s_n_llpkgc_file__internal__n_error; |
464 | 0 | } |
465 | 0 | } |
466 | 0 | UNREACHABLE; |
467 | 0 | } |
468 | 0 | case s_n_llpkgc_file__internal__n_pkgc_file_barewords_continue_line: |
469 | 0 | s_n_llpkgc_file__internal__n_pkgc_file_barewords_continue_line: { |
470 | 0 | if (p == endp) { |
471 | 0 | return s_n_llpkgc_file__internal__n_pkgc_file_barewords_continue_line; |
472 | 0 | } |
473 | 0 | switch (*p) { |
474 | 0 | case 92: { |
475 | 0 | p++; |
476 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_barewords_line_end; |
477 | 0 | } |
478 | 0 | default: { |
479 | 0 | goto s_n_llpkgc_file__internal__n_error; |
480 | 0 | } |
481 | 0 | } |
482 | 0 | UNREACHABLE; |
483 | 0 | } |
484 | 0 | case s_n_llpkgc_file__internal__n_span_start_llpkgc_file__ident_span_2: |
485 | 0 | s_n_llpkgc_file__internal__n_span_start_llpkgc_file__ident_span_2: { |
486 | 0 | if (p == endp) { |
487 | 0 | return s_n_llpkgc_file__internal__n_span_start_llpkgc_file__ident_span_2; |
488 | 0 | } |
489 | 0 | state->_span_pos0 = (void*) p; |
490 | 0 | state->_span_cb0 = llpkgc_file__ident_span; |
491 | 0 | p++; |
492 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_barewords; |
493 | 0 | UNREACHABLE; |
494 | 0 | } |
495 | 0 | case s_n_llpkgc_file__internal__n_pkgc_file_barewords_escaped_comment: |
496 | 1 | s_n_llpkgc_file__internal__n_pkgc_file_barewords_escaped_comment: { |
497 | 1 | if (p == endp) { |
498 | 0 | return s_n_llpkgc_file__internal__n_pkgc_file_barewords_escaped_comment; |
499 | 0 | } |
500 | 1 | switch (*p) { |
501 | 0 | case 92: { |
502 | 0 | p++; |
503 | 0 | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__ident_span_2; |
504 | 0 | } |
505 | 1 | default: { |
506 | 1 | goto s_n_llpkgc_file__internal__n_error; |
507 | 0 | } |
508 | 1 | } |
509 | 1 | UNREACHABLE; |
510 | 1 | } |
511 | 0 | case s_n_llpkgc_file__internal__n_pkgc_file_barewords_double_backslash: |
512 | 0 | s_n_llpkgc_file__internal__n_pkgc_file_barewords_double_backslash: { |
513 | 0 | llparse_match_t match_seq; |
514 | |
|
515 | 0 | if (p == endp) { |
516 | 0 | return s_n_llpkgc_file__internal__n_pkgc_file_barewords_double_backslash; |
517 | 0 | } |
518 | 0 | match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob0, 2); |
519 | 0 | p = match_seq.current; |
520 | 0 | switch (match_seq.status) { |
521 | 0 | case kMatchComplete: { |
522 | 0 | p++; |
523 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_barewords; |
524 | 0 | } |
525 | 0 | case kMatchPause: { |
526 | 0 | return s_n_llpkgc_file__internal__n_pkgc_file_barewords_double_backslash; |
527 | 0 | } |
528 | 0 | case kMatchMismatch: { |
529 | 0 | goto s_n_llpkgc_file__internal__n_error; |
530 | 0 | } |
531 | 0 | } |
532 | 0 | UNREACHABLE; |
533 | 0 | } |
534 | 0 | case s_n_llpkgc_file__internal__n_pkgc_file_barewords_backslash_eof: |
535 | 0 | s_n_llpkgc_file__internal__n_pkgc_file_barewords_backslash_eof: { |
536 | 0 | if (p == endp) { |
537 | 0 | return s_n_llpkgc_file__internal__n_pkgc_file_barewords_backslash_eof; |
538 | 0 | } |
539 | 0 | switch (*p) { |
540 | 0 | case 92: { |
541 | 0 | p++; |
542 | 0 | goto s_n_llpkgc_file__internal__n_span_end_llpkgc_file__ident_span; |
543 | 0 | } |
544 | 0 | default: { |
545 | 0 | goto s_n_llpkgc_file__internal__n_error; |
546 | 0 | } |
547 | 0 | } |
548 | 0 | UNREACHABLE; |
549 | 0 | } |
550 | 0 | case s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lookahead_backslash_1: |
551 | 2 | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lookahead_backslash_1: { |
552 | 2 | switch (llpkgc_file__lookahead_backslash(state, p, endp)) { |
553 | 1 | case 0: |
554 | 1 | goto s_n_llpkgc_file__internal__n_pkgc_file_barewords_backslash_literal; |
555 | 0 | case 1: |
556 | 0 | goto s_n_llpkgc_file__internal__n_span_end_llpkgc_file__ident_span_1; |
557 | 1 | case 2: |
558 | 1 | goto s_n_llpkgc_file__internal__n_span_end_llpkgc_file__ident_span_2; |
559 | 0 | case 3: |
560 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_barewords_double_backslash; |
561 | 0 | case 4: |
562 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_barewords_backslash_eof; |
563 | 0 | case 5: |
564 | 0 | goto s_n_llpkgc_file__internal__n_pause; |
565 | 0 | default: |
566 | 0 | goto s_n_llpkgc_file__internal__n_error; |
567 | 2 | } |
568 | 2 | UNREACHABLE; |
569 | 2 | } |
570 | 0 | case s_n_llpkgc_file__internal__n_pkgc_file_barewords: |
571 | 64.0k | s_n_llpkgc_file__internal__n_pkgc_file_barewords: { |
572 | 64.0k | if (p == endp) { |
573 | 0 | return s_n_llpkgc_file__internal__n_pkgc_file_barewords; |
574 | 0 | } |
575 | 64.0k | switch (*p) { |
576 | 1.77k | case 10: { |
577 | 1.77k | goto s_n_llpkgc_file__internal__n_span_end_llpkgc_file__ident_span; |
578 | 0 | } |
579 | 1 | case 13: { |
580 | 1 | goto s_n_llpkgc_file__internal__n_span_end_llpkgc_file__ident_span; |
581 | 0 | } |
582 | 1 | case '#': { |
583 | 1 | goto s_n_llpkgc_file__internal__n_span_end_llpkgc_file__ident_span; |
584 | 0 | } |
585 | 2 | case 92: { |
586 | 2 | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lookahead_backslash_1; |
587 | 0 | } |
588 | 62.2k | default: { |
589 | 62.2k | p++; |
590 | 62.2k | goto s_n_llpkgc_file__internal__n_pkgc_file_barewords; |
591 | 0 | } |
592 | 64.0k | } |
593 | 64.0k | UNREACHABLE; |
594 | 64.0k | } |
595 | 0 | case s_n_llpkgc_file__internal__n_span_start_llpkgc_file__ident_span: |
596 | 0 | s_n_llpkgc_file__internal__n_span_start_llpkgc_file__ident_span: { |
597 | 0 | if (p == endp) { |
598 | 0 | return s_n_llpkgc_file__internal__n_span_start_llpkgc_file__ident_span; |
599 | 0 | } |
600 | 0 | state->_span_pos0 = (void*) p; |
601 | 0 | state->_span_cb0 = llpkgc_file__ident_span; |
602 | 0 | p++; |
603 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_barewords; |
604 | 0 | UNREACHABLE; |
605 | 0 | } |
606 | 0 | case s_n_llpkgc_file__internal__n_pkgc_file_expect_ident_escaped_comment: |
607 | 0 | s_n_llpkgc_file__internal__n_pkgc_file_expect_ident_escaped_comment: { |
608 | 0 | if (p == endp) { |
609 | 0 | return s_n_llpkgc_file__internal__n_pkgc_file_expect_ident_escaped_comment; |
610 | 0 | } |
611 | 0 | switch (*p) { |
612 | 0 | case 92: { |
613 | 0 | p++; |
614 | 0 | goto s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__unfinished; |
615 | 0 | } |
616 | 0 | default: { |
617 | 0 | goto s_n_llpkgc_file__internal__n_error; |
618 | 0 | } |
619 | 0 | } |
620 | 0 | UNREACHABLE; |
621 | 0 | } |
622 | 0 | case s_n_llpkgc_file__internal__n_span_start_llpkgc_file__ident_span_3: |
623 | 0 | s_n_llpkgc_file__internal__n_span_start_llpkgc_file__ident_span_3: { |
624 | 0 | if (p == endp) { |
625 | 0 | return s_n_llpkgc_file__internal__n_span_start_llpkgc_file__ident_span_3; |
626 | 0 | } |
627 | 0 | state->_span_pos0 = (void*) p; |
628 | 0 | state->_span_cb0 = llpkgc_file__ident_span; |
629 | 0 | p++; |
630 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_barewords_double_backslash; |
631 | 0 | UNREACHABLE; |
632 | 0 | } |
633 | 0 | case s_n_llpkgc_file__internal__n_pkgc_file_start_barewords_backslash_eof: |
634 | 0 | s_n_llpkgc_file__internal__n_pkgc_file_start_barewords_backslash_eof: { |
635 | 0 | if (p == endp) { |
636 | 0 | return s_n_llpkgc_file__internal__n_pkgc_file_start_barewords_backslash_eof; |
637 | 0 | } |
638 | 0 | switch (*p) { |
639 | 0 | case 92: { |
640 | 0 | p++; |
641 | 0 | goto s_n_llpkgc_file__internal__n_span_end_llpkgc_file__ident_span; |
642 | 0 | } |
643 | 0 | default: { |
644 | 0 | goto s_n_llpkgc_file__internal__n_error; |
645 | 0 | } |
646 | 0 | } |
647 | 0 | UNREACHABLE; |
648 | 0 | } |
649 | 0 | case s_n_llpkgc_file__internal__n_span_start_llpkgc_file__ident_span_4: |
650 | 0 | s_n_llpkgc_file__internal__n_span_start_llpkgc_file__ident_span_4: { |
651 | 0 | if (p == endp) { |
652 | 0 | return s_n_llpkgc_file__internal__n_span_start_llpkgc_file__ident_span_4; |
653 | 0 | } |
654 | 0 | state->_span_pos0 = (void*) p; |
655 | 0 | state->_span_cb0 = llpkgc_file__ident_span; |
656 | 0 | p++; |
657 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_start_barewords_backslash_eof; |
658 | 0 | UNREACHABLE; |
659 | 0 | } |
660 | 0 | case s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lookahead_backslash: |
661 | 0 | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lookahead_backslash: { |
662 | 0 | switch (llpkgc_file__lookahead_backslash(state, p, endp)) { |
663 | 0 | case 0: |
664 | 0 | goto s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__unfinished; |
665 | 0 | case 1: |
666 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_expect_ident; |
667 | 0 | case 2: |
668 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_expect_ident_escaped_comment; |
669 | 0 | case 3: |
670 | 0 | goto s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__unfinished_2; |
671 | 0 | case 4: |
672 | 0 | goto s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__unfinished_3; |
673 | 0 | case 5: |
674 | 0 | goto s_n_llpkgc_file__internal__n_pause_1; |
675 | 0 | default: |
676 | 0 | goto s_n_llpkgc_file__internal__n_error; |
677 | 0 | } |
678 | 0 | UNREACHABLE; |
679 | 0 | } |
680 | 0 | case s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lit_complete: |
681 | 4 | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lit_complete: { |
682 | 4 | switch (llpkgc_file__lit_complete(state, p, endp)) { |
683 | 4 | case 0: |
684 | 4 | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__val_complete; |
685 | 0 | default: |
686 | 0 | goto s_n_llpkgc_file__internal__n_error_4; |
687 | 4 | } |
688 | 4 | UNREACHABLE; |
689 | 4 | } |
690 | 0 | case s_n_llpkgc_file__internal__n_pkgc_file_value_literal_dollar_literal: |
691 | 0 | s_n_llpkgc_file__internal__n_pkgc_file_value_literal_dollar_literal: { |
692 | 0 | if (p == endp) { |
693 | 0 | return s_n_llpkgc_file__internal__n_pkgc_file_value_literal_dollar_literal; |
694 | 0 | } |
695 | 0 | switch (*p) { |
696 | 0 | case '$': { |
697 | 0 | p++; |
698 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_value_literal; |
699 | 0 | } |
700 | 0 | default: { |
701 | 0 | goto s_n_llpkgc_file__internal__n_error; |
702 | 0 | } |
703 | 0 | } |
704 | 0 | UNREACHABLE; |
705 | 0 | } |
706 | 0 | case s_n_llpkgc_file__internal__n_pkgc_file_value_dollar_doubled_literal: |
707 | 0 | s_n_llpkgc_file__internal__n_pkgc_file_value_dollar_doubled_literal: { |
708 | 0 | if (p == endp) { |
709 | 0 | return s_n_llpkgc_file__internal__n_pkgc_file_value_dollar_doubled_literal; |
710 | 0 | } |
711 | 0 | switch (*p) { |
712 | 0 | case '$': { |
713 | 0 | p++; |
714 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_value_literal; |
715 | 0 | } |
716 | 0 | default: { |
717 | 0 | goto s_n_llpkgc_file__internal__n_error; |
718 | 0 | } |
719 | 0 | } |
720 | 0 | UNREACHABLE; |
721 | 0 | } |
722 | 0 | case s_n_llpkgc_file__internal__n_span_start_llpkgc_file__lit_span_1: |
723 | 0 | s_n_llpkgc_file__internal__n_span_start_llpkgc_file__lit_span_1: { |
724 | 0 | if (p == endp) { |
725 | 0 | return s_n_llpkgc_file__internal__n_span_start_llpkgc_file__lit_span_1; |
726 | 0 | } |
727 | 0 | state->_span_pos1 = (void*) p; |
728 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_value_dollar_doubled_literal; |
729 | 0 | UNREACHABLE; |
730 | 0 | } |
731 | 0 | case s_n_llpkgc_file__internal__n_pkgc_file_value_dollar_doubled: |
732 | 0 | s_n_llpkgc_file__internal__n_pkgc_file_value_dollar_doubled: { |
733 | 0 | if (p == endp) { |
734 | 0 | return s_n_llpkgc_file__internal__n_pkgc_file_value_dollar_doubled; |
735 | 0 | } |
736 | 0 | switch (*p) { |
737 | 0 | case '$': { |
738 | 0 | p++; |
739 | 0 | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__lit_span_1; |
740 | 0 | } |
741 | 0 | default: { |
742 | 0 | goto s_n_llpkgc_file__internal__n_error; |
743 | 0 | } |
744 | 0 | } |
745 | 0 | UNREACHABLE; |
746 | 0 | } |
747 | 0 | case s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lit_complete_2: |
748 | 0 | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lit_complete_2: { |
749 | 0 | switch (llpkgc_file__lit_complete(state, p, endp)) { |
750 | 0 | case 0: |
751 | 0 | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__val_complete; |
752 | 0 | default: |
753 | 0 | goto s_n_llpkgc_file__internal__n_error_7; |
754 | 0 | } |
755 | 0 | UNREACHABLE; |
756 | 0 | } |
757 | 0 | case s_n_llpkgc_file__internal__n_pkgc_file_value_dollar_eof: |
758 | 0 | s_n_llpkgc_file__internal__n_pkgc_file_value_dollar_eof: { |
759 | 0 | if (p == endp) { |
760 | 0 | return s_n_llpkgc_file__internal__n_pkgc_file_value_dollar_eof; |
761 | 0 | } |
762 | 0 | switch (*p) { |
763 | 0 | case '$': { |
764 | 0 | p++; |
765 | 0 | goto s_n_llpkgc_file__internal__n_span_end_llpkgc_file__lit_span_2; |
766 | 0 | } |
767 | 0 | default: { |
768 | 0 | goto s_n_llpkgc_file__internal__n_error; |
769 | 0 | } |
770 | 0 | } |
771 | 0 | UNREACHABLE; |
772 | 0 | } |
773 | 0 | case s_n_llpkgc_file__internal__n_span_start_llpkgc_file__lit_span_2: |
774 | 0 | s_n_llpkgc_file__internal__n_span_start_llpkgc_file__lit_span_2: { |
775 | 0 | if (p == endp) { |
776 | 0 | return s_n_llpkgc_file__internal__n_span_start_llpkgc_file__lit_span_2; |
777 | 0 | } |
778 | 0 | state->_span_pos1 = (void*) p; |
779 | 0 | p++; |
780 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_value_dollar_eof; |
781 | 0 | UNREACHABLE; |
782 | 0 | } |
783 | 0 | case s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lookahead_2: |
784 | 0 | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lookahead_2: { |
785 | 0 | switch (llpkgc_file__lookahead(state, p, endp)) { |
786 | 0 | case 0: |
787 | 0 | goto s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__unfinished_6; |
788 | 0 | case 1: |
789 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_value_dollar_substitution; |
790 | 0 | case 2: |
791 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_value_dollar_doubled; |
792 | 0 | case 3: |
793 | 0 | goto s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__unfinished_9; |
794 | 0 | case 4: |
795 | 0 | goto s_n_llpkgc_file__internal__n_pause_2; |
796 | 0 | default: |
797 | 0 | goto s_n_llpkgc_file__internal__n_error; |
798 | 0 | } |
799 | 0 | UNREACHABLE; |
800 | 0 | } |
801 | 0 | case s_n_llpkgc_file__internal__n_pkgc_file_line_maybe_cr: |
802 | 0 | s_n_llpkgc_file__internal__n_pkgc_file_line_maybe_cr: { |
803 | 0 | if (p == endp) { |
804 | 0 | return s_n_llpkgc_file__internal__n_pkgc_file_line_maybe_cr; |
805 | 0 | } |
806 | 0 | switch (*p) { |
807 | 0 | case 13: { |
808 | 0 | p++; |
809 | 0 | goto s_n_llpkgc_file__internal__n_invoke_load_llpkgc_file__line_resume; |
810 | 0 | } |
811 | 0 | default: { |
812 | 0 | goto s_n_llpkgc_file__internal__n_invoke_load_llpkgc_file__line_resume; |
813 | 0 | } |
814 | 0 | } |
815 | 0 | UNREACHABLE; |
816 | 0 | } |
817 | 0 | case s_n_llpkgc_file__internal__n_pkgc_file_line_maybe_lf: |
818 | 0 | s_n_llpkgc_file__internal__n_pkgc_file_line_maybe_lf: { |
819 | 0 | if (p == endp) { |
820 | 0 | return s_n_llpkgc_file__internal__n_pkgc_file_line_maybe_lf; |
821 | 0 | } |
822 | 0 | switch (*p) { |
823 | 0 | case 10: { |
824 | 0 | p++; |
825 | 0 | goto s_n_llpkgc_file__internal__n_invoke_load_llpkgc_file__line_resume; |
826 | 0 | } |
827 | 0 | default: { |
828 | 0 | goto s_n_llpkgc_file__internal__n_invoke_load_llpkgc_file__line_resume; |
829 | 0 | } |
830 | 0 | } |
831 | 0 | UNREACHABLE; |
832 | 0 | } |
833 | 0 | case s_n_llpkgc_file__internal__n_pkgc_file_line_end: |
834 | 0 | s_n_llpkgc_file__internal__n_pkgc_file_line_end: { |
835 | 0 | if (p == endp) { |
836 | 0 | return s_n_llpkgc_file__internal__n_pkgc_file_line_end; |
837 | 0 | } |
838 | 0 | switch (*p) { |
839 | 0 | case 10: { |
840 | 0 | p++; |
841 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_line_maybe_cr; |
842 | 0 | } |
843 | 0 | case 13: { |
844 | 0 | p++; |
845 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_line_maybe_lf; |
846 | 0 | } |
847 | 0 | default: { |
848 | 0 | goto s_n_llpkgc_file__internal__n_error; |
849 | 0 | } |
850 | 0 | } |
851 | 0 | UNREACHABLE; |
852 | 0 | } |
853 | 0 | case s_n_llpkgc_file__internal__n_pkgc_file_continue_line: |
854 | 0 | s_n_llpkgc_file__internal__n_pkgc_file_continue_line: { |
855 | 0 | if (p == endp) { |
856 | 0 | return s_n_llpkgc_file__internal__n_pkgc_file_continue_line; |
857 | 0 | } |
858 | 0 | switch (*p) { |
859 | 0 | case 92: { |
860 | 0 | p++; |
861 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_line_end; |
862 | 0 | } |
863 | 0 | default: { |
864 | 0 | goto s_n_llpkgc_file__internal__n_error; |
865 | 0 | } |
866 | 0 | } |
867 | 0 | UNREACHABLE; |
868 | 0 | } |
869 | 0 | case s_n_llpkgc_file__internal__n_span_start_llpkgc_file__lit_span_3: |
870 | 5 | s_n_llpkgc_file__internal__n_span_start_llpkgc_file__lit_span_3: { |
871 | 5 | if (p == endp) { |
872 | 0 | return s_n_llpkgc_file__internal__n_span_start_llpkgc_file__lit_span_3; |
873 | 0 | } |
874 | 5 | state->_span_pos1 = (void*) p; |
875 | 5 | goto s_n_llpkgc_file__internal__n_pkgc_file_value_literal; |
876 | 5 | UNREACHABLE; |
877 | 5 | } |
878 | 0 | case s_n_llpkgc_file__internal__n_pkgc_file_value_escaped_comment: |
879 | 2 | s_n_llpkgc_file__internal__n_pkgc_file_value_escaped_comment: { |
880 | 2 | if (p == endp) { |
881 | 0 | return s_n_llpkgc_file__internal__n_pkgc_file_value_escaped_comment; |
882 | 0 | } |
883 | 2 | switch (*p) { |
884 | 2 | case 92: { |
885 | 2 | p++; |
886 | 2 | goto s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__unfinished_10; |
887 | 0 | } |
888 | 0 | default: { |
889 | 0 | goto s_n_llpkgc_file__internal__n_error; |
890 | 0 | } |
891 | 2 | } |
892 | 2 | UNREACHABLE; |
893 | 2 | } |
894 | 0 | case s_n_llpkgc_file__internal__n_pkgc_file_double_backslash: |
895 | 1 | s_n_llpkgc_file__internal__n_pkgc_file_double_backslash: { |
896 | 1 | llparse_match_t match_seq; |
897 | | |
898 | 1 | if (p == endp) { |
899 | 0 | return s_n_llpkgc_file__internal__n_pkgc_file_double_backslash; |
900 | 0 | } |
901 | 1 | match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob2, 2); |
902 | 1 | p = match_seq.current; |
903 | 1 | switch (match_seq.status) { |
904 | 1 | case kMatchComplete: { |
905 | 1 | p++; |
906 | 1 | goto s_n_llpkgc_file__internal__n_invoke_load_llpkgc_file__text_resume; |
907 | 0 | } |
908 | 0 | case kMatchPause: { |
909 | 0 | return s_n_llpkgc_file__internal__n_pkgc_file_double_backslash; |
910 | 0 | } |
911 | 0 | case kMatchMismatch: { |
912 | 0 | goto s_n_llpkgc_file__internal__n_error; |
913 | 0 | } |
914 | 1 | } |
915 | 1 | UNREACHABLE; |
916 | 1 | } |
917 | 0 | case s_n_llpkgc_file__internal__n_span_start_llpkgc_file__lit_span_4: |
918 | 0 | s_n_llpkgc_file__internal__n_span_start_llpkgc_file__lit_span_4: { |
919 | 0 | if (p == endp) { |
920 | 0 | return s_n_llpkgc_file__internal__n_span_start_llpkgc_file__lit_span_4; |
921 | 0 | } |
922 | 0 | state->_span_pos1 = (void*) p; |
923 | 0 | goto s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__text_resume; |
924 | 0 | UNREACHABLE; |
925 | 0 | } |
926 | 0 | case s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lit_complete_3: |
927 | 0 | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lit_complete_3: { |
928 | 0 | switch (llpkgc_file__lit_complete(state, p, endp)) { |
929 | 0 | case 0: |
930 | 0 | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__val_complete; |
931 | 0 | default: |
932 | 0 | goto s_n_llpkgc_file__internal__n_error_8; |
933 | 0 | } |
934 | 0 | UNREACHABLE; |
935 | 0 | } |
936 | 0 | case s_n_llpkgc_file__internal__n_pkgc_file_value_backslash_eof: |
937 | 0 | s_n_llpkgc_file__internal__n_pkgc_file_value_backslash_eof: { |
938 | 0 | if (p == endp) { |
939 | 0 | return s_n_llpkgc_file__internal__n_pkgc_file_value_backslash_eof; |
940 | 0 | } |
941 | 0 | switch (*p) { |
942 | 0 | case 92: { |
943 | 0 | p++; |
944 | 0 | goto s_n_llpkgc_file__internal__n_span_end_llpkgc_file__lit_span_3; |
945 | 0 | } |
946 | 0 | default: { |
947 | 0 | goto s_n_llpkgc_file__internal__n_error; |
948 | 0 | } |
949 | 0 | } |
950 | 0 | UNREACHABLE; |
951 | 0 | } |
952 | 0 | case s_n_llpkgc_file__internal__n_span_start_llpkgc_file__lit_span_5: |
953 | 0 | s_n_llpkgc_file__internal__n_span_start_llpkgc_file__lit_span_5: { |
954 | 0 | if (p == endp) { |
955 | 0 | return s_n_llpkgc_file__internal__n_span_start_llpkgc_file__lit_span_5; |
956 | 0 | } |
957 | 0 | state->_span_pos1 = (void*) p; |
958 | 0 | p++; |
959 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_value_backslash_eof; |
960 | 0 | UNREACHABLE; |
961 | 0 | } |
962 | 0 | case s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lookahead_backslash_2: |
963 | 0 | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lookahead_backslash_2: { |
964 | 0 | switch (llpkgc_file__lookahead_backslash(state, p, endp)) { |
965 | 0 | case 0: |
966 | 0 | goto s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__unfinished_6; |
967 | 0 | case 1: |
968 | 0 | goto s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__value_resume; |
969 | 0 | case 2: |
970 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_value_escaped_comment; |
971 | 0 | case 3: |
972 | 0 | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__lit_span_4; |
973 | 0 | case 4: |
974 | 0 | goto s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__unfinished_11; |
975 | 0 | case 5: |
976 | 0 | goto s_n_llpkgc_file__internal__n_pause_3; |
977 | 0 | default: |
978 | 0 | goto s_n_llpkgc_file__internal__n_error; |
979 | 0 | } |
980 | 0 | UNREACHABLE; |
981 | 0 | } |
982 | 0 | case s_n_llpkgc_file__internal__n_pkgc_file_value: |
983 | 0 | s_n_llpkgc_file__internal__n_pkgc_file_value: { |
984 | 0 | if (p == endp) { |
985 | 0 | return s_n_llpkgc_file__internal__n_pkgc_file_value; |
986 | 0 | } |
987 | 0 | switch (*p) { |
988 | 0 | case 10: { |
989 | 0 | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__val_complete; |
990 | 0 | } |
991 | 0 | case 13: { |
992 | 0 | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__val_complete; |
993 | 0 | } |
994 | 0 | case '#': { |
995 | 0 | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__val_complete; |
996 | 0 | } |
997 | 0 | case '$': { |
998 | 0 | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lookahead_2; |
999 | 0 | } |
1000 | 0 | case 92: { |
1001 | 0 | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lookahead_backslash_2; |
1002 | 0 | } |
1003 | 0 | default: { |
1004 | 0 | goto s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__unfinished_10; |
1005 | 0 | } |
1006 | 0 | } |
1007 | 0 | UNREACHABLE; |
1008 | 0 | } |
1009 | 0 | case s_n_llpkgc_file__internal__n_invoke_llpkgc_file__sub_complete: |
1010 | 0 | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__sub_complete: { |
1011 | 0 | switch (llpkgc_file__sub_complete(state, p, endp)) { |
1012 | 0 | case 0: |
1013 | 0 | goto s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__unfinished_8; |
1014 | 0 | default: |
1015 | 0 | goto s_n_llpkgc_file__internal__n_error_6; |
1016 | 0 | } |
1017 | 0 | UNREACHABLE; |
1018 | 0 | } |
1019 | 0 | case s_n_llpkgc_file__internal__n_pkgc_file_substitution: |
1020 | 0 | s_n_llpkgc_file__internal__n_pkgc_file_substitution: { |
1021 | 0 | static uint8_t lookup_table[] = { |
1022 | 0 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
1023 | 0 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
1024 | 0 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, |
1025 | 0 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, |
1026 | 0 | 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
1027 | 0 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, |
1028 | 0 | 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
1029 | 0 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 2, 0, 0, |
1030 | 0 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
1031 | 0 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
1032 | 0 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
1033 | 0 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
1034 | 0 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
1035 | 0 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
1036 | 0 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
1037 | 0 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
1038 | 0 | }; |
1039 | 0 | if (p == endp) { |
1040 | 0 | return s_n_llpkgc_file__internal__n_pkgc_file_substitution; |
1041 | 0 | } |
1042 | 0 | switch (lookup_table[(uint8_t) *p]) { |
1043 | 0 | case 1: { |
1044 | 0 | p++; |
1045 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_substitution; |
1046 | 0 | } |
1047 | 0 | case 2: { |
1048 | 0 | goto s_n_llpkgc_file__internal__n_span_end_llpkgc_file__sub_span; |
1049 | 0 | } |
1050 | 0 | default: { |
1051 | 0 | goto s_n_llpkgc_file__internal__n_error_9; |
1052 | 0 | } |
1053 | 0 | } |
1054 | 0 | UNREACHABLE; |
1055 | 0 | } |
1056 | 0 | case s_n_llpkgc_file__internal__n_span_start_llpkgc_file__sub_span: |
1057 | 0 | s_n_llpkgc_file__internal__n_span_start_llpkgc_file__sub_span: { |
1058 | 0 | if (p == endp) { |
1059 | 0 | return s_n_llpkgc_file__internal__n_span_start_llpkgc_file__sub_span; |
1060 | 0 | } |
1061 | 0 | state->_span_pos0 = (void*) p; |
1062 | 0 | state->_span_cb0 = llpkgc_file__sub_span; |
1063 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_substitution; |
1064 | 0 | UNREACHABLE; |
1065 | 0 | } |
1066 | 0 | case s_n_llpkgc_file__internal__n_pkgc_file_value_dollar_substitution: |
1067 | 0 | s_n_llpkgc_file__internal__n_pkgc_file_value_dollar_substitution: { |
1068 | 0 | llparse_match_t match_seq; |
1069 | |
|
1070 | 0 | if (p == endp) { |
1071 | 0 | return s_n_llpkgc_file__internal__n_pkgc_file_value_dollar_substitution; |
1072 | 0 | } |
1073 | 0 | match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob1, 2); |
1074 | 0 | p = match_seq.current; |
1075 | 0 | switch (match_seq.status) { |
1076 | 0 | case kMatchComplete: { |
1077 | 0 | p++; |
1078 | 0 | goto s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__unfinished_7; |
1079 | 0 | } |
1080 | 0 | case kMatchPause: { |
1081 | 0 | return s_n_llpkgc_file__internal__n_pkgc_file_value_dollar_substitution; |
1082 | 0 | } |
1083 | 0 | case kMatchMismatch: { |
1084 | 0 | goto s_n_llpkgc_file__internal__n_error; |
1085 | 0 | } |
1086 | 0 | } |
1087 | 0 | UNREACHABLE; |
1088 | 0 | } |
1089 | 0 | case s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lit_complete_1: |
1090 | 0 | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lit_complete_1: { |
1091 | 0 | switch (llpkgc_file__lit_complete(state, p, endp)) { |
1092 | 0 | case 0: |
1093 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_value_dollar_substitution; |
1094 | 0 | default: |
1095 | 0 | goto s_n_llpkgc_file__internal__n_error_5; |
1096 | 0 | } |
1097 | 0 | UNREACHABLE; |
1098 | 0 | } |
1099 | 0 | case s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lit_complete_4: |
1100 | 0 | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lit_complete_4: { |
1101 | 0 | switch (llpkgc_file__lit_complete(state, p, endp)) { |
1102 | 0 | case 0: |
1103 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_value_dollar_doubled; |
1104 | 0 | default: |
1105 | 0 | goto s_n_llpkgc_file__internal__n_error_10; |
1106 | 0 | } |
1107 | 0 | UNREACHABLE; |
1108 | 0 | } |
1109 | 0 | case s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lit_complete_5: |
1110 | 0 | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lit_complete_5: { |
1111 | 0 | switch (llpkgc_file__lit_complete(state, p, endp)) { |
1112 | 0 | case 0: |
1113 | 0 | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__val_complete; |
1114 | 0 | default: |
1115 | 0 | goto s_n_llpkgc_file__internal__n_error_11; |
1116 | 0 | } |
1117 | 0 | UNREACHABLE; |
1118 | 0 | } |
1119 | 0 | case s_n_llpkgc_file__internal__n_pkgc_file_value_literal_dollar_eof: |
1120 | 0 | s_n_llpkgc_file__internal__n_pkgc_file_value_literal_dollar_eof: { |
1121 | 0 | if (p == endp) { |
1122 | 0 | return s_n_llpkgc_file__internal__n_pkgc_file_value_literal_dollar_eof; |
1123 | 0 | } |
1124 | 0 | switch (*p) { |
1125 | 0 | case '$': { |
1126 | 0 | p++; |
1127 | 0 | goto s_n_llpkgc_file__internal__n_span_end_llpkgc_file__lit_span_5; |
1128 | 0 | } |
1129 | 0 | default: { |
1130 | 0 | goto s_n_llpkgc_file__internal__n_error; |
1131 | 0 | } |
1132 | 0 | } |
1133 | 0 | UNREACHABLE; |
1134 | 0 | } |
1135 | 0 | case s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lookahead_1: |
1136 | 0 | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lookahead_1: { |
1137 | 0 | switch (llpkgc_file__lookahead(state, p, endp)) { |
1138 | 0 | case 0: |
1139 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_value_literal_dollar_literal; |
1140 | 0 | case 1: |
1141 | 0 | goto s_n_llpkgc_file__internal__n_span_end_llpkgc_file__lit_span_1; |
1142 | 0 | case 2: |
1143 | 0 | goto s_n_llpkgc_file__internal__n_span_end_llpkgc_file__lit_span_4; |
1144 | 0 | case 3: |
1145 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_value_literal_dollar_eof; |
1146 | 0 | case 4: |
1147 | 0 | goto s_n_llpkgc_file__internal__n_pause_4; |
1148 | 0 | default: |
1149 | 0 | goto s_n_llpkgc_file__internal__n_error; |
1150 | 0 | } |
1151 | 0 | UNREACHABLE; |
1152 | 0 | } |
1153 | 0 | case s_n_llpkgc_file__internal__n_pkgc_file_backslash_literal: |
1154 | 1 | s_n_llpkgc_file__internal__n_pkgc_file_backslash_literal: { |
1155 | 1 | if (p == endp) { |
1156 | 0 | return s_n_llpkgc_file__internal__n_pkgc_file_backslash_literal; |
1157 | 0 | } |
1158 | 1 | switch (*p) { |
1159 | 1 | case 92: { |
1160 | 1 | p++; |
1161 | 1 | goto s_n_llpkgc_file__internal__n_invoke_load_llpkgc_file__text_resume; |
1162 | 0 | } |
1163 | 0 | default: { |
1164 | 0 | goto s_n_llpkgc_file__internal__n_error; |
1165 | 0 | } |
1166 | 1 | } |
1167 | 1 | UNREACHABLE; |
1168 | 1 | } |
1169 | 0 | case s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lit_complete_6: |
1170 | 0 | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lit_complete_6: { |
1171 | 0 | switch (llpkgc_file__lit_complete(state, p, endp)) { |
1172 | 0 | case 0: |
1173 | 0 | goto s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__value_resume_1; |
1174 | 0 | default: |
1175 | 0 | goto s_n_llpkgc_file__internal__n_error_12; |
1176 | 0 | } |
1177 | 0 | UNREACHABLE; |
1178 | 0 | } |
1179 | 0 | case s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lit_complete_7: |
1180 | 2 | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lit_complete_7: { |
1181 | 2 | switch (llpkgc_file__lit_complete(state, p, endp)) { |
1182 | 2 | case 0: |
1183 | 2 | goto s_n_llpkgc_file__internal__n_pkgc_file_value_escaped_comment; |
1184 | 0 | default: |
1185 | 0 | goto s_n_llpkgc_file__internal__n_error_13; |
1186 | 2 | } |
1187 | 2 | UNREACHABLE; |
1188 | 2 | } |
1189 | 0 | case s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lit_complete_8: |
1190 | 0 | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lit_complete_8: { |
1191 | 0 | switch (llpkgc_file__lit_complete(state, p, endp)) { |
1192 | 0 | case 0: |
1193 | 0 | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__val_complete; |
1194 | 0 | default: |
1195 | 0 | goto s_n_llpkgc_file__internal__n_error_14; |
1196 | 0 | } |
1197 | 0 | UNREACHABLE; |
1198 | 0 | } |
1199 | 0 | case s_n_llpkgc_file__internal__n_pkgc_file_value_literal_backslash_eof: |
1200 | 0 | s_n_llpkgc_file__internal__n_pkgc_file_value_literal_backslash_eof: { |
1201 | 0 | if (p == endp) { |
1202 | 0 | return s_n_llpkgc_file__internal__n_pkgc_file_value_literal_backslash_eof; |
1203 | 0 | } |
1204 | 0 | switch (*p) { |
1205 | 0 | case 92: { |
1206 | 0 | p++; |
1207 | 0 | goto s_n_llpkgc_file__internal__n_span_end_llpkgc_file__lit_span_8; |
1208 | 0 | } |
1209 | 0 | default: { |
1210 | 0 | goto s_n_llpkgc_file__internal__n_error; |
1211 | 0 | } |
1212 | 0 | } |
1213 | 0 | UNREACHABLE; |
1214 | 0 | } |
1215 | 0 | case s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lookahead_backslash_3: |
1216 | 3 | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lookahead_backslash_3: { |
1217 | 3 | switch (llpkgc_file__lookahead_backslash(state, p, endp)) { |
1218 | 1 | case 0: |
1219 | 1 | goto s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__text_resume_1; |
1220 | 0 | case 1: |
1221 | 0 | goto s_n_llpkgc_file__internal__n_span_end_llpkgc_file__lit_span_6; |
1222 | 2 | case 2: |
1223 | 2 | goto s_n_llpkgc_file__internal__n_span_end_llpkgc_file__lit_span_7; |
1224 | 0 | case 3: |
1225 | 0 | goto s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__text_resume_2; |
1226 | 0 | case 4: |
1227 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_value_literal_backslash_eof; |
1228 | 0 | case 5: |
1229 | 0 | goto s_n_llpkgc_file__internal__n_pause_5; |
1230 | 0 | default: |
1231 | 0 | goto s_n_llpkgc_file__internal__n_error; |
1232 | 3 | } |
1233 | 3 | UNREACHABLE; |
1234 | 3 | } |
1235 | 0 | case s_n_llpkgc_file__internal__n_pkgc_file_value_literal: |
1236 | 11 | s_n_llpkgc_file__internal__n_pkgc_file_value_literal: { |
1237 | 11 | if (p == endp) { |
1238 | 0 | return s_n_llpkgc_file__internal__n_pkgc_file_value_literal; |
1239 | 0 | } |
1240 | 11 | switch (*p) { |
1241 | 0 | case 10: { |
1242 | 0 | goto s_n_llpkgc_file__internal__n_span_end_llpkgc_file__lit_span; |
1243 | 0 | } |
1244 | 0 | case 13: { |
1245 | 0 | goto s_n_llpkgc_file__internal__n_span_end_llpkgc_file__lit_span; |
1246 | 0 | } |
1247 | 4 | case '#': { |
1248 | 4 | goto s_n_llpkgc_file__internal__n_span_end_llpkgc_file__lit_span; |
1249 | 0 | } |
1250 | 0 | case '$': { |
1251 | 0 | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lookahead_1; |
1252 | 0 | } |
1253 | 3 | case 92: { |
1254 | 3 | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lookahead_backslash_3; |
1255 | 0 | } |
1256 | 4 | default: { |
1257 | 4 | p++; |
1258 | 4 | goto s_n_llpkgc_file__internal__n_pkgc_file_value_literal; |
1259 | 0 | } |
1260 | 11 | } |
1261 | 11 | UNREACHABLE; |
1262 | 11 | } |
1263 | 0 | case s_n_llpkgc_file__internal__n_span_start_llpkgc_file__lit_span: |
1264 | 0 | s_n_llpkgc_file__internal__n_span_start_llpkgc_file__lit_span: { |
1265 | 0 | if (p == endp) { |
1266 | 0 | return s_n_llpkgc_file__internal__n_span_start_llpkgc_file__lit_span; |
1267 | 0 | } |
1268 | 0 | state->_span_pos1 = (void*) p; |
1269 | 0 | p++; |
1270 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_value_literal; |
1271 | 0 | UNREACHABLE; |
1272 | 0 | } |
1273 | 0 | case s_n_llpkgc_file__internal__n_span_start_llpkgc_file__lit_span_6: |
1274 | 0 | s_n_llpkgc_file__internal__n_span_start_llpkgc_file__lit_span_6: { |
1275 | 0 | if (p == endp) { |
1276 | 0 | return s_n_llpkgc_file__internal__n_span_start_llpkgc_file__lit_span_6; |
1277 | 0 | } |
1278 | 0 | state->_span_pos1 = (void*) p; |
1279 | 0 | p++; |
1280 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_value_dollar_eof; |
1281 | 0 | UNREACHABLE; |
1282 | 0 | } |
1283 | 0 | case s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lookahead: |
1284 | 0 | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lookahead: { |
1285 | 0 | switch (llpkgc_file__lookahead(state, p, endp)) { |
1286 | 0 | case 0: |
1287 | 0 | goto s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__unfinished_6; |
1288 | 0 | case 1: |
1289 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_value_dollar_substitution; |
1290 | 0 | case 2: |
1291 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_value_dollar_doubled; |
1292 | 0 | case 3: |
1293 | 0 | goto s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__unfinished_12; |
1294 | 0 | case 4: |
1295 | 0 | goto s_n_llpkgc_file__internal__n_pause_6; |
1296 | 0 | default: |
1297 | 0 | goto s_n_llpkgc_file__internal__n_error; |
1298 | 0 | } |
1299 | 0 | UNREACHABLE; |
1300 | 0 | } |
1301 | 0 | case s_n_llpkgc_file__internal__n_span_start_llpkgc_file__lit_span_7: |
1302 | 1 | s_n_llpkgc_file__internal__n_span_start_llpkgc_file__lit_span_7: { |
1303 | 1 | if (p == endp) { |
1304 | 0 | return s_n_llpkgc_file__internal__n_span_start_llpkgc_file__lit_span_7; |
1305 | 0 | } |
1306 | 1 | state->_span_pos1 = (void*) p; |
1307 | 1 | goto s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__text_resume_3; |
1308 | 1 | UNREACHABLE; |
1309 | 1 | } |
1310 | 0 | case s_n_llpkgc_file__internal__n_span_start_llpkgc_file__lit_span_8: |
1311 | 0 | s_n_llpkgc_file__internal__n_span_start_llpkgc_file__lit_span_8: { |
1312 | 0 | if (p == endp) { |
1313 | 0 | return s_n_llpkgc_file__internal__n_span_start_llpkgc_file__lit_span_8; |
1314 | 0 | } |
1315 | 0 | state->_span_pos1 = (void*) p; |
1316 | 0 | p++; |
1317 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_value_backslash_eof; |
1318 | 0 | UNREACHABLE; |
1319 | 0 | } |
1320 | 0 | case s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lookahead_backslash_4: |
1321 | 1 | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lookahead_backslash_4: { |
1322 | 1 | switch (llpkgc_file__lookahead_backslash(state, p, endp)) { |
1323 | 0 | case 0: |
1324 | 0 | goto s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__unfinished_6; |
1325 | 0 | case 1: |
1326 | 0 | goto s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__value_resume_2; |
1327 | 0 | case 2: |
1328 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_value_escaped_comment; |
1329 | 1 | case 3: |
1330 | 1 | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__lit_span_7; |
1331 | 0 | case 4: |
1332 | 0 | goto s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__unfinished_13; |
1333 | 0 | case 5: |
1334 | 0 | goto s_n_llpkgc_file__internal__n_pause_7; |
1335 | 0 | default: |
1336 | 0 | goto s_n_llpkgc_file__internal__n_error; |
1337 | 1 | } |
1338 | 1 | UNREACHABLE; |
1339 | 1 | } |
1340 | 0 | case s_n_llpkgc_file__internal__n_pkgc_file_expect_value: |
1341 | 4 | s_n_llpkgc_file__internal__n_pkgc_file_expect_value: { |
1342 | 4 | if (p == endp) { |
1343 | 0 | return s_n_llpkgc_file__internal__n_pkgc_file_expect_value; |
1344 | 0 | } |
1345 | 4 | switch (*p) { |
1346 | 0 | case 10: { |
1347 | 0 | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__val_complete; |
1348 | 0 | } |
1349 | 0 | case 13: { |
1350 | 0 | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__val_complete; |
1351 | 0 | } |
1352 | 0 | case '#': { |
1353 | 0 | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__val_complete; |
1354 | 0 | } |
1355 | 0 | case '$': { |
1356 | 0 | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lookahead; |
1357 | 0 | } |
1358 | 1 | case 92: { |
1359 | 1 | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lookahead_backslash_4; |
1360 | 0 | } |
1361 | 3 | default: { |
1362 | 3 | goto s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__unfinished_10; |
1363 | 0 | } |
1364 | 4 | } |
1365 | 4 | UNREACHABLE; |
1366 | 4 | } |
1367 | 0 | case s_n_llpkgc_file__internal__n_pkgc_file_maybe_separator_backslash_literal: |
1368 | 0 | s_n_llpkgc_file__internal__n_pkgc_file_maybe_separator_backslash_literal: { |
1369 | 0 | if (p == endp) { |
1370 | 0 | return s_n_llpkgc_file__internal__n_pkgc_file_maybe_separator_backslash_literal; |
1371 | 0 | } |
1372 | 0 | switch (*p) { |
1373 | 0 | case 92: { |
1374 | 0 | p++; |
1375 | 0 | goto s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__unfinished; |
1376 | 0 | } |
1377 | 0 | default: { |
1378 | 0 | goto s_n_llpkgc_file__internal__n_error; |
1379 | 0 | } |
1380 | 0 | } |
1381 | 0 | UNREACHABLE; |
1382 | 0 | } |
1383 | 0 | case s_n_llpkgc_file__internal__n_span_start_llpkgc_file__ident_span_6: |
1384 | 0 | s_n_llpkgc_file__internal__n_span_start_llpkgc_file__ident_span_6: { |
1385 | 0 | if (p == endp) { |
1386 | 0 | return s_n_llpkgc_file__internal__n_span_start_llpkgc_file__ident_span_6; |
1387 | 0 | } |
1388 | 0 | state->_span_pos0 = (void*) p; |
1389 | 0 | state->_span_cb0 = llpkgc_file__ident_span; |
1390 | 0 | p++; |
1391 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_barewords_double_backslash; |
1392 | 0 | UNREACHABLE; |
1393 | 0 | } |
1394 | 0 | case s_n_llpkgc_file__internal__n_span_start_llpkgc_file__ident_span_7: |
1395 | 0 | s_n_llpkgc_file__internal__n_span_start_llpkgc_file__ident_span_7: { |
1396 | 0 | if (p == endp) { |
1397 | 0 | return s_n_llpkgc_file__internal__n_span_start_llpkgc_file__ident_span_7; |
1398 | 0 | } |
1399 | 0 | state->_span_pos0 = (void*) p; |
1400 | 0 | state->_span_cb0 = llpkgc_file__ident_span; |
1401 | 0 | p++; |
1402 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_start_barewords_backslash_eof; |
1403 | 0 | UNREACHABLE; |
1404 | 0 | } |
1405 | 0 | case s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lookahead_backslash_5: |
1406 | 0 | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lookahead_backslash_5: { |
1407 | 0 | switch (llpkgc_file__lookahead_backslash(state, p, endp)) { |
1408 | 0 | case 0: |
1409 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_maybe_separator_backslash_literal; |
1410 | 0 | case 1: |
1411 | 0 | goto s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__line_resume_3; |
1412 | 0 | case 2: |
1413 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_maybe_separator_backslash_literal; |
1414 | 0 | case 3: |
1415 | 0 | goto s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__unfinished_14; |
1416 | 0 | case 4: |
1417 | 0 | goto s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__unfinished_15; |
1418 | 0 | case 5: |
1419 | 0 | goto s_n_llpkgc_file__internal__n_pause_8; |
1420 | 0 | default: |
1421 | 0 | goto s_n_llpkgc_file__internal__n_error; |
1422 | 0 | } |
1423 | 0 | UNREACHABLE; |
1424 | 0 | } |
1425 | 0 | case s_n_llpkgc_file__internal__n_pkgc_file_maybe_separator: |
1426 | 4 | s_n_llpkgc_file__internal__n_pkgc_file_maybe_separator: { |
1427 | 4 | if (p == endp) { |
1428 | 0 | return s_n_llpkgc_file__internal__n_pkgc_file_maybe_separator; |
1429 | 0 | } |
1430 | 4 | switch (*p) { |
1431 | 0 | case 9: { |
1432 | 0 | p++; |
1433 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_maybe_separator; |
1434 | 0 | } |
1435 | 0 | case 10: { |
1436 | 0 | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__barewords_decl_complete; |
1437 | 0 | } |
1438 | 0 | case 13: { |
1439 | 0 | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__barewords_decl_complete; |
1440 | 0 | } |
1441 | 0 | case ' ': { |
1442 | 0 | p++; |
1443 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_maybe_separator; |
1444 | 0 | } |
1445 | 0 | case '#': { |
1446 | 0 | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__barewords_decl_complete; |
1447 | 0 | } |
1448 | 4 | case ':': { |
1449 | 4 | p++; |
1450 | 4 | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__prop_decl_complete; |
1451 | 0 | } |
1452 | 0 | case '=': { |
1453 | 0 | p++; |
1454 | 0 | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__var_decl_complete; |
1455 | 0 | } |
1456 | 0 | case 92: { |
1457 | 0 | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lookahead_backslash_5; |
1458 | 0 | } |
1459 | 0 | default: { |
1460 | 0 | goto s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__unfinished; |
1461 | 0 | } |
1462 | 4 | } |
1463 | 4 | UNREACHABLE; |
1464 | 4 | } |
1465 | 0 | case s_n_llpkgc_file__internal__n_pkgc_file_ident_backslash_literal: |
1466 | 0 | s_n_llpkgc_file__internal__n_pkgc_file_ident_backslash_literal: { |
1467 | 0 | if (p == endp) { |
1468 | 0 | return s_n_llpkgc_file__internal__n_pkgc_file_ident_backslash_literal; |
1469 | 0 | } |
1470 | 0 | switch (*p) { |
1471 | 0 | case 92: { |
1472 | 0 | p++; |
1473 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_barewords; |
1474 | 0 | } |
1475 | 0 | default: { |
1476 | 0 | goto s_n_llpkgc_file__internal__n_error; |
1477 | 0 | } |
1478 | 0 | } |
1479 | 0 | UNREACHABLE; |
1480 | 0 | } |
1481 | 0 | case s_n_llpkgc_file__internal__n_pkgc_file_ident_maybe_cr: |
1482 | 0 | s_n_llpkgc_file__internal__n_pkgc_file_ident_maybe_cr: { |
1483 | 0 | if (p == endp) { |
1484 | 0 | return s_n_llpkgc_file__internal__n_pkgc_file_ident_maybe_cr; |
1485 | 0 | } |
1486 | 0 | switch (*p) { |
1487 | 0 | case 13: { |
1488 | 0 | p++; |
1489 | 0 | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__ident_span_5; |
1490 | 0 | } |
1491 | 0 | default: { |
1492 | 0 | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__ident_span_5; |
1493 | 0 | } |
1494 | 0 | } |
1495 | 0 | UNREACHABLE; |
1496 | 0 | } |
1497 | 0 | case s_n_llpkgc_file__internal__n_pkgc_file_ident_maybe_lf: |
1498 | 0 | s_n_llpkgc_file__internal__n_pkgc_file_ident_maybe_lf: { |
1499 | 0 | if (p == endp) { |
1500 | 0 | return s_n_llpkgc_file__internal__n_pkgc_file_ident_maybe_lf; |
1501 | 0 | } |
1502 | 0 | switch (*p) { |
1503 | 0 | case 10: { |
1504 | 0 | p++; |
1505 | 0 | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__ident_span_5; |
1506 | 0 | } |
1507 | 0 | default: { |
1508 | 0 | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__ident_span_5; |
1509 | 0 | } |
1510 | 0 | } |
1511 | 0 | UNREACHABLE; |
1512 | 0 | } |
1513 | 0 | case s_n_llpkgc_file__internal__n_pkgc_file_ident_line_end: |
1514 | 0 | s_n_llpkgc_file__internal__n_pkgc_file_ident_line_end: { |
1515 | 0 | if (p == endp) { |
1516 | 0 | return s_n_llpkgc_file__internal__n_pkgc_file_ident_line_end; |
1517 | 0 | } |
1518 | 0 | switch (*p) { |
1519 | 0 | case 10: { |
1520 | 0 | p++; |
1521 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_ident_maybe_cr; |
1522 | 0 | } |
1523 | 0 | case 13: { |
1524 | 0 | p++; |
1525 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_ident_maybe_lf; |
1526 | 0 | } |
1527 | 0 | default: { |
1528 | 0 | goto s_n_llpkgc_file__internal__n_error; |
1529 | 0 | } |
1530 | 0 | } |
1531 | 0 | UNREACHABLE; |
1532 | 0 | } |
1533 | 0 | case s_n_llpkgc_file__internal__n_pkgc_file_ident_continue_line: |
1534 | 0 | s_n_llpkgc_file__internal__n_pkgc_file_ident_continue_line: { |
1535 | 0 | if (p == endp) { |
1536 | 0 | return s_n_llpkgc_file__internal__n_pkgc_file_ident_continue_line; |
1537 | 0 | } |
1538 | 0 | switch (*p) { |
1539 | 0 | case 92: { |
1540 | 0 | p++; |
1541 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_ident_line_end; |
1542 | 0 | } |
1543 | 0 | default: { |
1544 | 0 | goto s_n_llpkgc_file__internal__n_error; |
1545 | 0 | } |
1546 | 0 | } |
1547 | 0 | UNREACHABLE; |
1548 | 0 | } |
1549 | 0 | case s_n_llpkgc_file__internal__n_span_start_llpkgc_file__ident_span_8: |
1550 | 0 | s_n_llpkgc_file__internal__n_span_start_llpkgc_file__ident_span_8: { |
1551 | 0 | if (p == endp) { |
1552 | 0 | return s_n_llpkgc_file__internal__n_span_start_llpkgc_file__ident_span_8; |
1553 | 0 | } |
1554 | 0 | state->_span_pos0 = (void*) p; |
1555 | 0 | state->_span_cb0 = llpkgc_file__ident_span; |
1556 | 0 | p++; |
1557 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_barewords; |
1558 | 0 | UNREACHABLE; |
1559 | 0 | } |
1560 | 0 | case s_n_llpkgc_file__internal__n_pkgc_file_ident_escaped_comment: |
1561 | 0 | s_n_llpkgc_file__internal__n_pkgc_file_ident_escaped_comment: { |
1562 | 0 | if (p == endp) { |
1563 | 0 | return s_n_llpkgc_file__internal__n_pkgc_file_ident_escaped_comment; |
1564 | 0 | } |
1565 | 0 | switch (*p) { |
1566 | 0 | case 92: { |
1567 | 0 | p++; |
1568 | 0 | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__ident_span_8; |
1569 | 0 | } |
1570 | 0 | default: { |
1571 | 0 | goto s_n_llpkgc_file__internal__n_error; |
1572 | 0 | } |
1573 | 0 | } |
1574 | 0 | UNREACHABLE; |
1575 | 0 | } |
1576 | 0 | case s_n_llpkgc_file__internal__n_pkgc_file_ident_double_backslash: |
1577 | 0 | s_n_llpkgc_file__internal__n_pkgc_file_ident_double_backslash: { |
1578 | 0 | llparse_match_t match_seq; |
1579 | |
|
1580 | 0 | if (p == endp) { |
1581 | 0 | return s_n_llpkgc_file__internal__n_pkgc_file_ident_double_backslash; |
1582 | 0 | } |
1583 | 0 | match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob3, 2); |
1584 | 0 | p = match_seq.current; |
1585 | 0 | switch (match_seq.status) { |
1586 | 0 | case kMatchComplete: { |
1587 | 0 | p++; |
1588 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_barewords; |
1589 | 0 | } |
1590 | 0 | case kMatchPause: { |
1591 | 0 | return s_n_llpkgc_file__internal__n_pkgc_file_ident_double_backslash; |
1592 | 0 | } |
1593 | 0 | case kMatchMismatch: { |
1594 | 0 | goto s_n_llpkgc_file__internal__n_error; |
1595 | 0 | } |
1596 | 0 | } |
1597 | 0 | UNREACHABLE; |
1598 | 0 | } |
1599 | 0 | case s_n_llpkgc_file__internal__n_pkgc_file_ident_backslash_eof: |
1600 | 0 | s_n_llpkgc_file__internal__n_pkgc_file_ident_backslash_eof: { |
1601 | 0 | if (p == endp) { |
1602 | 0 | return s_n_llpkgc_file__internal__n_pkgc_file_ident_backslash_eof; |
1603 | 0 | } |
1604 | 0 | switch (*p) { |
1605 | 0 | case 92: { |
1606 | 0 | p++; |
1607 | 0 | goto s_n_llpkgc_file__internal__n_span_end_llpkgc_file__ident_span; |
1608 | 0 | } |
1609 | 0 | default: { |
1610 | 0 | goto s_n_llpkgc_file__internal__n_error; |
1611 | 0 | } |
1612 | 0 | } |
1613 | 0 | UNREACHABLE; |
1614 | 0 | } |
1615 | 0 | case s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lookahead_backslash_6: |
1616 | 0 | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lookahead_backslash_6: { |
1617 | 0 | switch (llpkgc_file__lookahead_backslash(state, p, endp)) { |
1618 | 0 | case 0: |
1619 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_ident_backslash_literal; |
1620 | 0 | case 1: |
1621 | 0 | goto s_n_llpkgc_file__internal__n_span_end_llpkgc_file__ident_span_4; |
1622 | 0 | case 2: |
1623 | 0 | goto s_n_llpkgc_file__internal__n_span_end_llpkgc_file__ident_span_5; |
1624 | 0 | case 3: |
1625 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_ident_double_backslash; |
1626 | 0 | case 4: |
1627 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_ident_backslash_eof; |
1628 | 0 | case 5: |
1629 | 0 | goto s_n_llpkgc_file__internal__n_pause_9; |
1630 | 0 | default: |
1631 | 0 | goto s_n_llpkgc_file__internal__n_error; |
1632 | 0 | } |
1633 | 0 | UNREACHABLE; |
1634 | 0 | } |
1635 | 0 | case s_n_llpkgc_file__internal__n_pkgc_file_ident: |
1636 | 1.78k | s_n_llpkgc_file__internal__n_pkgc_file_ident: { |
1637 | 1.78k | static uint8_t lookup_table[] = { |
1638 | 1.78k | 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 0, 0, 2, 0, 0, |
1639 | 1.78k | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
1640 | 1.78k | 1, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, |
1641 | 1.78k | 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 1, 0, 0, 1, 0, 0, |
1642 | 1.78k | 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, |
1643 | 1.78k | 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 4, 0, 0, 3, |
1644 | 1.78k | 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, |
1645 | 1.78k | 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, |
1646 | 1.78k | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
1647 | 1.78k | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
1648 | 1.78k | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
1649 | 1.78k | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
1650 | 1.78k | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
1651 | 1.78k | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
1652 | 1.78k | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
1653 | 1.78k | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
1654 | 1.78k | }; |
1655 | 1.78k | if (p == endp) { |
1656 | 0 | return s_n_llpkgc_file__internal__n_pkgc_file_ident; |
1657 | 0 | } |
1658 | 1.78k | switch (lookup_table[(uint8_t) *p]) { |
1659 | 4 | case 1: { |
1660 | 4 | goto s_n_llpkgc_file__internal__n_span_end_llpkgc_file__ident_span_3; |
1661 | 0 | } |
1662 | 1 | case 2: { |
1663 | 1 | goto s_n_llpkgc_file__internal__n_span_end_llpkgc_file__ident_span; |
1664 | 0 | } |
1665 | 6 | case 3: { |
1666 | 6 | p++; |
1667 | 6 | goto s_n_llpkgc_file__internal__n_pkgc_file_ident; |
1668 | 0 | } |
1669 | 0 | case 4: { |
1670 | 0 | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lookahead_backslash_6; |
1671 | 0 | } |
1672 | 1.77k | default: { |
1673 | 1.77k | goto s_n_llpkgc_file__internal__n_pkgc_file_barewords; |
1674 | 0 | } |
1675 | 1.78k | } |
1676 | 1.78k | UNREACHABLE; |
1677 | 1.78k | } |
1678 | 0 | case s_n_llpkgc_file__internal__n_span_start_llpkgc_file__ident_span_5: |
1679 | 1.77k | s_n_llpkgc_file__internal__n_span_start_llpkgc_file__ident_span_5: { |
1680 | 1.77k | if (p == endp) { |
1681 | 0 | return s_n_llpkgc_file__internal__n_span_start_llpkgc_file__ident_span_5; |
1682 | 0 | } |
1683 | 1.77k | state->_span_pos0 = (void*) p; |
1684 | 1.77k | state->_span_cb0 = llpkgc_file__ident_span; |
1685 | 1.77k | goto s_n_llpkgc_file__internal__n_pkgc_file_ident; |
1686 | 1.77k | UNREACHABLE; |
1687 | 1.77k | } |
1688 | 1 | case s_n_llpkgc_file__internal__n_pkgc_file_expect_ident: |
1689 | 3.55k | s_n_llpkgc_file__internal__n_pkgc_file_expect_ident: { |
1690 | 3.55k | if (p == endp) { |
1691 | 0 | return s_n_llpkgc_file__internal__n_pkgc_file_expect_ident; |
1692 | 0 | } |
1693 | 3.55k | switch (*p) { |
1694 | 0 | case 9: { |
1695 | 0 | p++; |
1696 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_expect_ident; |
1697 | 0 | } |
1698 | 1.77k | case 10: { |
1699 | 1.77k | p++; |
1700 | 1.77k | goto s_n_llpkgc_file__internal__n_pkgc_file_expect_ident; |
1701 | 0 | } |
1702 | 1 | case 13: { |
1703 | 1 | p++; |
1704 | 1 | goto s_n_llpkgc_file__internal__n_pkgc_file_expect_ident; |
1705 | 0 | } |
1706 | 0 | case ' ': { |
1707 | 0 | p++; |
1708 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_expect_ident; |
1709 | 0 | } |
1710 | 6 | case '#': { |
1711 | 6 | p++; |
1712 | 6 | goto s_n_llpkgc_file__internal__n_pkgc_file_comment; |
1713 | 0 | } |
1714 | 0 | case 92: { |
1715 | 0 | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lookahead_backslash; |
1716 | 0 | } |
1717 | 1.77k | default: { |
1718 | 1.77k | goto s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__unfinished_4; |
1719 | 0 | } |
1720 | 3.55k | } |
1721 | 3.55k | UNREACHABLE; |
1722 | 3.55k | } |
1723 | 0 | default: |
1724 | 0 | UNREACHABLE; |
1725 | 1 | } |
1726 | 1.77k | s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__unfinished_1: { |
1727 | 1.77k | switch (llpkgc_file__internal__c_update_llpkgc_file__unfinished_1(state, p, endp)) { |
1728 | 1.77k | default: |
1729 | 1.77k | goto s_n_llpkgc_file__internal__n_pkgc_file_expect_ident; |
1730 | 1.77k | } |
1731 | 1.77k | UNREACHABLE; |
1732 | 1.77k | } |
1733 | 0 | s_n_llpkgc_file__internal__n_error_2: { |
1734 | 0 | state->error = 0xa; |
1735 | 0 | state->reason = "Value complete error"; |
1736 | 0 | state->error_pos = (const char*) p; |
1737 | 0 | state->_current = (void*) (intptr_t) s_error; |
1738 | 0 | return s_error; |
1739 | 1.77k | UNREACHABLE; |
1740 | 1.77k | } |
1741 | 1.77k | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__val_complete: { |
1742 | 1.77k | switch (llpkgc_file__val_complete(state, p, endp)) { |
1743 | 1.77k | case 0: |
1744 | 1.77k | goto s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__unfinished_1; |
1745 | 0 | default: |
1746 | 0 | goto s_n_llpkgc_file__internal__n_error_2; |
1747 | 1.77k | } |
1748 | 1.77k | UNREACHABLE; |
1749 | 1.77k | } |
1750 | 0 | s_n_llpkgc_file__internal__n_error_1: { |
1751 | 0 | state->error = 0x9; |
1752 | 0 | state->reason = "Barewords complete error"; |
1753 | 0 | state->error_pos = (const char*) p; |
1754 | 0 | state->_current = (void*) (intptr_t) s_error; |
1755 | 0 | return s_error; |
1756 | 1.77k | UNREACHABLE; |
1757 | 1.77k | } |
1758 | 1.77k | s_n_llpkgc_file__internal__n_span_end_llpkgc_file__ident_span: { |
1759 | 1.77k | const unsigned char* start; |
1760 | 1.77k | int err; |
1761 | | |
1762 | 1.77k | start = state->_span_pos0; |
1763 | 1.77k | state->_span_pos0 = NULL; |
1764 | 1.77k | err = llpkgc_file__ident_span(state, start, p); |
1765 | 1.77k | if (err != 0) { |
1766 | 0 | state->error = err; |
1767 | 0 | state->error_pos = (const char*) p; |
1768 | 0 | state->_current = (void*) (intptr_t) s_n_llpkgc_file__internal__n_invoke_llpkgc_file__barewords_decl_complete; |
1769 | 0 | return s_error; |
1770 | 0 | } |
1771 | 1.77k | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__barewords_decl_complete; |
1772 | 1.77k | UNREACHABLE; |
1773 | 1.77k | } |
1774 | 1 | s_n_llpkgc_file__internal__n_error: { |
1775 | 1 | state->error = 0xe; |
1776 | 1 | state->reason = "Lookahead error"; |
1777 | 1 | state->error_pos = (const char*) p; |
1778 | 1 | state->_current = (void*) (intptr_t) s_error; |
1779 | 1 | return s_error; |
1780 | 1.77k | UNREACHABLE; |
1781 | 1.77k | } |
1782 | 0 | s_n_llpkgc_file__internal__n_span_end_llpkgc_file__ident_span_1: { |
1783 | 0 | const unsigned char* start; |
1784 | 0 | int err; |
1785 | |
|
1786 | 0 | start = state->_span_pos0; |
1787 | 0 | state->_span_pos0 = NULL; |
1788 | 0 | err = llpkgc_file__ident_span(state, start, p); |
1789 | 0 | if (err != 0) { |
1790 | 0 | state->error = err; |
1791 | 0 | state->error_pos = (const char*) (p + 1); |
1792 | 0 | state->_current = (void*) (intptr_t) s_n_llpkgc_file__internal__n_pkgc_file_barewords_continue_line; |
1793 | 0 | return s_error; |
1794 | 0 | } |
1795 | 0 | p++; |
1796 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_barewords_continue_line; |
1797 | 0 | UNREACHABLE; |
1798 | 0 | } |
1799 | 1 | s_n_llpkgc_file__internal__n_span_end_llpkgc_file__ident_span_2: { |
1800 | 1 | const unsigned char* start; |
1801 | 1 | int err; |
1802 | | |
1803 | 1 | start = state->_span_pos0; |
1804 | 1 | state->_span_pos0 = NULL; |
1805 | 1 | err = llpkgc_file__ident_span(state, start, p); |
1806 | 1 | if (err != 0) { |
1807 | 0 | state->error = err; |
1808 | 0 | state->error_pos = (const char*) (p + 1); |
1809 | 0 | state->_current = (void*) (intptr_t) s_n_llpkgc_file__internal__n_pkgc_file_barewords_escaped_comment; |
1810 | 0 | return s_error; |
1811 | 0 | } |
1812 | 1 | p++; |
1813 | 1 | goto s_n_llpkgc_file__internal__n_pkgc_file_barewords_escaped_comment; |
1814 | 1 | UNREACHABLE; |
1815 | 1 | } |
1816 | 0 | s_n_llpkgc_file__internal__n_pause: { |
1817 | 0 | state->error = 0x4; |
1818 | 0 | state->reason = "Lookahead required"; |
1819 | 0 | state->error_pos = (const char*) p; |
1820 | 0 | state->_current = (void*) (intptr_t) s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lookahead_backslash_1; |
1821 | 0 | return s_error; |
1822 | 1 | UNREACHABLE; |
1823 | 1 | } |
1824 | 0 | s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__unfinished: { |
1825 | 0 | switch (llpkgc_file__internal__c_update_llpkgc_file__unfinished(state, p, endp)) { |
1826 | 0 | default: |
1827 | 0 | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__ident_span; |
1828 | 0 | } |
1829 | 0 | UNREACHABLE; |
1830 | 0 | } |
1831 | 0 | s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__unfinished_2: { |
1832 | 0 | switch (llpkgc_file__internal__c_update_llpkgc_file__unfinished(state, p, endp)) { |
1833 | 0 | default: |
1834 | 0 | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__ident_span_3; |
1835 | 0 | } |
1836 | 0 | UNREACHABLE; |
1837 | 0 | } |
1838 | 0 | s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__unfinished_3: { |
1839 | 0 | switch (llpkgc_file__internal__c_update_llpkgc_file__unfinished(state, p, endp)) { |
1840 | 0 | default: |
1841 | 0 | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__ident_span_4; |
1842 | 0 | } |
1843 | 0 | UNREACHABLE; |
1844 | 0 | } |
1845 | 0 | s_n_llpkgc_file__internal__n_pause_1: { |
1846 | 0 | state->error = 0x4; |
1847 | 0 | state->reason = "Lookahead required"; |
1848 | 0 | state->error_pos = (const char*) p; |
1849 | 0 | state->_current = (void*) (intptr_t) s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lookahead_backslash; |
1850 | 0 | return s_error; |
1851 | 0 | UNREACHABLE; |
1852 | 0 | } |
1853 | 0 | s_n_llpkgc_file__internal__n_error_4: { |
1854 | 0 | state->error = 0xb; |
1855 | 0 | state->reason = "Value literal complete error"; |
1856 | 0 | state->error_pos = (const char*) p; |
1857 | 0 | state->_current = (void*) (intptr_t) s_error; |
1858 | 0 | return s_error; |
1859 | 0 | UNREACHABLE; |
1860 | 0 | } |
1861 | 4 | s_n_llpkgc_file__internal__n_span_end_llpkgc_file__lit_span: { |
1862 | 4 | const unsigned char* start; |
1863 | 4 | int err; |
1864 | | |
1865 | 4 | start = state->_span_pos1; |
1866 | 4 | state->_span_pos1 = NULL; |
1867 | 4 | err = llpkgc_file__lit_span(state, start, p); |
1868 | 4 | if (err != 0) { |
1869 | 0 | state->error = err; |
1870 | 0 | state->error_pos = (const char*) p; |
1871 | 0 | state->_current = (void*) (intptr_t) s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lit_complete; |
1872 | 0 | return s_error; |
1873 | 0 | } |
1874 | 4 | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lit_complete; |
1875 | 4 | UNREACHABLE; |
1876 | 4 | } |
1877 | 0 | s_n_llpkgc_file__internal__n_error_7: { |
1878 | 0 | state->error = 0xb; |
1879 | 0 | state->reason = "Value literal complete error"; |
1880 | 0 | state->error_pos = (const char*) p; |
1881 | 0 | state->_current = (void*) (intptr_t) s_error; |
1882 | 0 | return s_error; |
1883 | 4 | UNREACHABLE; |
1884 | 4 | } |
1885 | 0 | s_n_llpkgc_file__internal__n_span_end_llpkgc_file__lit_span_2: { |
1886 | 0 | const unsigned char* start; |
1887 | 0 | int err; |
1888 | |
|
1889 | 0 | start = state->_span_pos1; |
1890 | 0 | state->_span_pos1 = NULL; |
1891 | 0 | err = llpkgc_file__lit_span(state, start, p); |
1892 | 0 | if (err != 0) { |
1893 | 0 | state->error = err; |
1894 | 0 | state->error_pos = (const char*) p; |
1895 | 0 | state->_current = (void*) (intptr_t) s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lit_complete_2; |
1896 | 0 | return s_error; |
1897 | 0 | } |
1898 | 0 | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lit_complete_2; |
1899 | 0 | UNREACHABLE; |
1900 | 0 | } |
1901 | 0 | s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__unfinished_9: { |
1902 | 0 | switch (llpkgc_file__internal__c_update_llpkgc_file__unfinished_6(state, p, endp)) { |
1903 | 0 | default: |
1904 | 0 | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__lit_span_2; |
1905 | 0 | } |
1906 | 0 | UNREACHABLE; |
1907 | 0 | } |
1908 | 0 | s_n_llpkgc_file__internal__n_pause_2: { |
1909 | 0 | state->error = 0x4; |
1910 | 0 | state->reason = "Lookahead required"; |
1911 | 0 | state->error_pos = (const char*) p; |
1912 | 0 | state->_current = (void*) (intptr_t) s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lookahead_2; |
1913 | 0 | return s_error; |
1914 | 0 | UNREACHABLE; |
1915 | 0 | } |
1916 | 0 | s_n_llpkgc_file__internal__n_invoke_load_llpkgc_file__value_resume: { |
1917 | 0 | switch (llpkgc_file__internal__c_load_llpkgc_file__value_resume(state, p, endp)) { |
1918 | 0 | case 0: |
1919 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_expect_value; |
1920 | 0 | case 1: |
1921 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_value; |
1922 | 0 | default: |
1923 | 0 | goto s_n_llpkgc_file__internal__n_error; |
1924 | 0 | } |
1925 | 0 | UNREACHABLE; |
1926 | 0 | } |
1927 | 0 | s_n_llpkgc_file__internal__n_invoke_load_llpkgc_file__line_resume: { |
1928 | 0 | switch (llpkgc_file__internal__c_load_llpkgc_file__line_resume(state, p, endp)) { |
1929 | 0 | case 0: |
1930 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_maybe_separator; |
1931 | 0 | case 1: |
1932 | 0 | goto s_n_llpkgc_file__internal__n_invoke_load_llpkgc_file__value_resume; |
1933 | 0 | default: |
1934 | 0 | goto s_n_llpkgc_file__internal__n_error; |
1935 | 0 | } |
1936 | 0 | UNREACHABLE; |
1937 | 0 | } |
1938 | 0 | s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__line_resume: { |
1939 | 0 | switch (llpkgc_file__internal__c_update_llpkgc_file__line_resume(state, p, endp)) { |
1940 | 0 | default: |
1941 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_continue_line; |
1942 | 0 | } |
1943 | 0 | UNREACHABLE; |
1944 | 0 | } |
1945 | 0 | s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__value_resume: { |
1946 | 0 | switch (llpkgc_file__internal__c_update_llpkgc_file__value_resume(state, p, endp)) { |
1947 | 0 | default: |
1948 | 0 | goto s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__line_resume; |
1949 | 0 | } |
1950 | 0 | UNREACHABLE; |
1951 | 0 | } |
1952 | 5 | s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__unfinished_10: { |
1953 | 5 | switch (llpkgc_file__internal__c_update_llpkgc_file__unfinished_6(state, p, endp)) { |
1954 | 5 | default: |
1955 | 5 | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__lit_span_3; |
1956 | 5 | } |
1957 | 5 | UNREACHABLE; |
1958 | 5 | } |
1959 | 2 | s_n_llpkgc_file__internal__n_invoke_load_llpkgc_file__text_resume: { |
1960 | 2 | switch (llpkgc_file__internal__c_load_llpkgc_file__text_resume(state, p, endp)) { |
1961 | 2 | case 0: |
1962 | 2 | goto s_n_llpkgc_file__internal__n_pkgc_file_value_literal; |
1963 | 0 | default: |
1964 | 0 | goto s_n_llpkgc_file__internal__n_error; |
1965 | 2 | } |
1966 | 2 | UNREACHABLE; |
1967 | 2 | } |
1968 | 0 | s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__text_resume: { |
1969 | 0 | switch (llpkgc_file__internal__c_update_llpkgc_file__text_resume(state, p, endp)) { |
1970 | 0 | default: |
1971 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_double_backslash; |
1972 | 0 | } |
1973 | 0 | UNREACHABLE; |
1974 | 0 | } |
1975 | 0 | s_n_llpkgc_file__internal__n_error_8: { |
1976 | 0 | state->error = 0xb; |
1977 | 0 | state->reason = "Value literal complete error"; |
1978 | 0 | state->error_pos = (const char*) p; |
1979 | 0 | state->_current = (void*) (intptr_t) s_error; |
1980 | 0 | return s_error; |
1981 | 0 | UNREACHABLE; |
1982 | 0 | } |
1983 | 0 | s_n_llpkgc_file__internal__n_span_end_llpkgc_file__lit_span_3: { |
1984 | 0 | const unsigned char* start; |
1985 | 0 | int err; |
1986 | |
|
1987 | 0 | start = state->_span_pos1; |
1988 | 0 | state->_span_pos1 = NULL; |
1989 | 0 | err = llpkgc_file__lit_span(state, start, p); |
1990 | 0 | if (err != 0) { |
1991 | 0 | state->error = err; |
1992 | 0 | state->error_pos = (const char*) p; |
1993 | 0 | state->_current = (void*) (intptr_t) s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lit_complete_3; |
1994 | 0 | return s_error; |
1995 | 0 | } |
1996 | 0 | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lit_complete_3; |
1997 | 0 | UNREACHABLE; |
1998 | 0 | } |
1999 | 0 | s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__unfinished_11: { |
2000 | 0 | switch (llpkgc_file__internal__c_update_llpkgc_file__unfinished_6(state, p, endp)) { |
2001 | 0 | default: |
2002 | 0 | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__lit_span_5; |
2003 | 0 | } |
2004 | 0 | UNREACHABLE; |
2005 | 0 | } |
2006 | 0 | s_n_llpkgc_file__internal__n_pause_3: { |
2007 | 0 | state->error = 0x4; |
2008 | 0 | state->reason = "Lookahead required"; |
2009 | 0 | state->error_pos = (const char*) p; |
2010 | 0 | state->_current = (void*) (intptr_t) s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lookahead_backslash_2; |
2011 | 0 | return s_error; |
2012 | 0 | UNREACHABLE; |
2013 | 0 | } |
2014 | 0 | s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__unfinished_8: { |
2015 | 0 | switch (llpkgc_file__internal__c_update_llpkgc_file__unfinished_8(state, p, endp)) { |
2016 | 0 | default: |
2017 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_value; |
2018 | 0 | } |
2019 | 0 | UNREACHABLE; |
2020 | 0 | } |
2021 | 0 | s_n_llpkgc_file__internal__n_error_6: { |
2022 | 0 | state->error = 0xc; |
2023 | 0 | state->reason = "Value substitution complete error"; |
2024 | 0 | state->error_pos = (const char*) p; |
2025 | 0 | state->_current = (void*) (intptr_t) s_error; |
2026 | 0 | return s_error; |
2027 | 0 | UNREACHABLE; |
2028 | 0 | } |
2029 | 0 | s_n_llpkgc_file__internal__n_span_end_llpkgc_file__sub_span: { |
2030 | 0 | const unsigned char* start; |
2031 | 0 | int err; |
2032 | |
|
2033 | 0 | start = state->_span_pos0; |
2034 | 0 | state->_span_pos0 = NULL; |
2035 | 0 | err = llpkgc_file__sub_span(state, start, p); |
2036 | 0 | if (err != 0) { |
2037 | 0 | state->error = err; |
2038 | 0 | state->error_pos = (const char*) (p + 1); |
2039 | 0 | state->_current = (void*) (intptr_t) s_n_llpkgc_file__internal__n_invoke_llpkgc_file__sub_complete; |
2040 | 0 | return s_error; |
2041 | 0 | } |
2042 | 0 | p++; |
2043 | 0 | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__sub_complete; |
2044 | 0 | UNREACHABLE; |
2045 | 0 | } |
2046 | 0 | s_n_llpkgc_file__internal__n_error_9: { |
2047 | 0 | state->error = 0xd; |
2048 | 0 | state->reason = "Invalid variable substitution character"; |
2049 | 0 | state->error_pos = (const char*) p; |
2050 | 0 | state->_current = (void*) (intptr_t) s_error; |
2051 | 0 | return s_error; |
2052 | 0 | UNREACHABLE; |
2053 | 0 | } |
2054 | 0 | s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__unfinished_7: { |
2055 | 0 | switch (llpkgc_file__internal__c_update_llpkgc_file__unfinished_7(state, p, endp)) { |
2056 | 0 | default: |
2057 | 0 | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__sub_span; |
2058 | 0 | } |
2059 | 0 | UNREACHABLE; |
2060 | 0 | } |
2061 | 0 | s_n_llpkgc_file__internal__n_error_5: { |
2062 | 0 | state->error = 0xb; |
2063 | 0 | state->reason = "Value literal complete error"; |
2064 | 0 | state->error_pos = (const char*) p; |
2065 | 0 | state->_current = (void*) (intptr_t) s_error; |
2066 | 0 | return s_error; |
2067 | 0 | UNREACHABLE; |
2068 | 0 | } |
2069 | 0 | s_n_llpkgc_file__internal__n_span_end_llpkgc_file__lit_span_1: { |
2070 | 0 | const unsigned char* start; |
2071 | 0 | int err; |
2072 | |
|
2073 | 0 | start = state->_span_pos1; |
2074 | 0 | state->_span_pos1 = NULL; |
2075 | 0 | err = llpkgc_file__lit_span(state, start, p); |
2076 | 0 | if (err != 0) { |
2077 | 0 | state->error = err; |
2078 | 0 | state->error_pos = (const char*) p; |
2079 | 0 | state->_current = (void*) (intptr_t) s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lit_complete_1; |
2080 | 0 | return s_error; |
2081 | 0 | } |
2082 | 0 | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lit_complete_1; |
2083 | 0 | UNREACHABLE; |
2084 | 0 | } |
2085 | 0 | s_n_llpkgc_file__internal__n_error_10: { |
2086 | 0 | state->error = 0xb; |
2087 | 0 | state->reason = "Value literal complete error"; |
2088 | 0 | state->error_pos = (const char*) p; |
2089 | 0 | state->_current = (void*) (intptr_t) s_error; |
2090 | 0 | return s_error; |
2091 | 0 | UNREACHABLE; |
2092 | 0 | } |
2093 | 0 | s_n_llpkgc_file__internal__n_span_end_llpkgc_file__lit_span_4: { |
2094 | 0 | const unsigned char* start; |
2095 | 0 | int err; |
2096 | |
|
2097 | 0 | start = state->_span_pos1; |
2098 | 0 | state->_span_pos1 = NULL; |
2099 | 0 | err = llpkgc_file__lit_span(state, start, p); |
2100 | 0 | if (err != 0) { |
2101 | 0 | state->error = err; |
2102 | 0 | state->error_pos = (const char*) p; |
2103 | 0 | state->_current = (void*) (intptr_t) s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lit_complete_4; |
2104 | 0 | return s_error; |
2105 | 0 | } |
2106 | 0 | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lit_complete_4; |
2107 | 0 | UNREACHABLE; |
2108 | 0 | } |
2109 | 0 | s_n_llpkgc_file__internal__n_error_11: { |
2110 | 0 | state->error = 0xb; |
2111 | 0 | state->reason = "Value literal complete error"; |
2112 | 0 | state->error_pos = (const char*) p; |
2113 | 0 | state->_current = (void*) (intptr_t) s_error; |
2114 | 0 | return s_error; |
2115 | 0 | UNREACHABLE; |
2116 | 0 | } |
2117 | 0 | s_n_llpkgc_file__internal__n_span_end_llpkgc_file__lit_span_5: { |
2118 | 0 | const unsigned char* start; |
2119 | 0 | int err; |
2120 | |
|
2121 | 0 | start = state->_span_pos1; |
2122 | 0 | state->_span_pos1 = NULL; |
2123 | 0 | err = llpkgc_file__lit_span(state, start, p); |
2124 | 0 | if (err != 0) { |
2125 | 0 | state->error = err; |
2126 | 0 | state->error_pos = (const char*) p; |
2127 | 0 | state->_current = (void*) (intptr_t) s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lit_complete_5; |
2128 | 0 | return s_error; |
2129 | 0 | } |
2130 | 0 | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lit_complete_5; |
2131 | 0 | UNREACHABLE; |
2132 | 0 | } |
2133 | 0 | s_n_llpkgc_file__internal__n_pause_4: { |
2134 | 0 | state->error = 0x4; |
2135 | 0 | state->reason = "Lookahead required"; |
2136 | 0 | state->error_pos = (const char*) p; |
2137 | 0 | state->_current = (void*) (intptr_t) s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lookahead_1; |
2138 | 0 | return s_error; |
2139 | 0 | UNREACHABLE; |
2140 | 0 | } |
2141 | 1 | s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__text_resume_1: { |
2142 | 1 | switch (llpkgc_file__internal__c_update_llpkgc_file__text_resume(state, p, endp)) { |
2143 | 1 | default: |
2144 | 1 | goto s_n_llpkgc_file__internal__n_pkgc_file_backslash_literal; |
2145 | 1 | } |
2146 | 1 | UNREACHABLE; |
2147 | 1 | } |
2148 | 0 | s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__line_resume_1: { |
2149 | 0 | switch (llpkgc_file__internal__c_update_llpkgc_file__line_resume(state, p, endp)) { |
2150 | 0 | default: |
2151 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_continue_line; |
2152 | 0 | } |
2153 | 0 | UNREACHABLE; |
2154 | 0 | } |
2155 | 0 | s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__value_resume_1: { |
2156 | 0 | switch (llpkgc_file__internal__c_update_llpkgc_file__value_resume(state, p, endp)) { |
2157 | 0 | default: |
2158 | 0 | goto s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__line_resume_1; |
2159 | 0 | } |
2160 | 0 | UNREACHABLE; |
2161 | 0 | } |
2162 | 0 | s_n_llpkgc_file__internal__n_error_12: { |
2163 | 0 | state->error = 0xb; |
2164 | 0 | state->reason = "Value literal complete error"; |
2165 | 0 | state->error_pos = (const char*) p; |
2166 | 0 | state->_current = (void*) (intptr_t) s_error; |
2167 | 0 | return s_error; |
2168 | 0 | UNREACHABLE; |
2169 | 0 | } |
2170 | 0 | s_n_llpkgc_file__internal__n_span_end_llpkgc_file__lit_span_6: { |
2171 | 0 | const unsigned char* start; |
2172 | 0 | int err; |
2173 | |
|
2174 | 0 | start = state->_span_pos1; |
2175 | 0 | state->_span_pos1 = NULL; |
2176 | 0 | err = llpkgc_file__lit_span(state, start, p); |
2177 | 0 | if (err != 0) { |
2178 | 0 | state->error = err; |
2179 | 0 | state->error_pos = (const char*) p; |
2180 | 0 | state->_current = (void*) (intptr_t) s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lit_complete_6; |
2181 | 0 | return s_error; |
2182 | 0 | } |
2183 | 0 | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lit_complete_6; |
2184 | 0 | UNREACHABLE; |
2185 | 0 | } |
2186 | 0 | s_n_llpkgc_file__internal__n_error_13: { |
2187 | 0 | state->error = 0xb; |
2188 | 0 | state->reason = "Value literal complete error"; |
2189 | 0 | state->error_pos = (const char*) p; |
2190 | 0 | state->_current = (void*) (intptr_t) s_error; |
2191 | 0 | return s_error; |
2192 | 0 | UNREACHABLE; |
2193 | 0 | } |
2194 | 2 | s_n_llpkgc_file__internal__n_span_end_llpkgc_file__lit_span_7: { |
2195 | 2 | const unsigned char* start; |
2196 | 2 | int err; |
2197 | | |
2198 | 2 | start = state->_span_pos1; |
2199 | 2 | state->_span_pos1 = NULL; |
2200 | 2 | err = llpkgc_file__lit_span(state, start, p); |
2201 | 2 | if (err != 0) { |
2202 | 0 | state->error = err; |
2203 | 0 | state->error_pos = (const char*) p; |
2204 | 0 | state->_current = (void*) (intptr_t) s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lit_complete_7; |
2205 | 0 | return s_error; |
2206 | 0 | } |
2207 | 2 | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lit_complete_7; |
2208 | 2 | UNREACHABLE; |
2209 | 2 | } |
2210 | 0 | s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__text_resume_2: { |
2211 | 0 | switch (llpkgc_file__internal__c_update_llpkgc_file__text_resume(state, p, endp)) { |
2212 | 0 | default: |
2213 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_double_backslash; |
2214 | 0 | } |
2215 | 0 | UNREACHABLE; |
2216 | 0 | } |
2217 | 0 | s_n_llpkgc_file__internal__n_error_14: { |
2218 | 0 | state->error = 0xb; |
2219 | 0 | state->reason = "Value literal complete error"; |
2220 | 0 | state->error_pos = (const char*) p; |
2221 | 0 | state->_current = (void*) (intptr_t) s_error; |
2222 | 0 | return s_error; |
2223 | 0 | UNREACHABLE; |
2224 | 0 | } |
2225 | 0 | s_n_llpkgc_file__internal__n_span_end_llpkgc_file__lit_span_8: { |
2226 | 0 | const unsigned char* start; |
2227 | 0 | int err; |
2228 | |
|
2229 | 0 | start = state->_span_pos1; |
2230 | 0 | state->_span_pos1 = NULL; |
2231 | 0 | err = llpkgc_file__lit_span(state, start, p); |
2232 | 0 | if (err != 0) { |
2233 | 0 | state->error = err; |
2234 | 0 | state->error_pos = (const char*) p; |
2235 | 0 | state->_current = (void*) (intptr_t) s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lit_complete_8; |
2236 | 0 | return s_error; |
2237 | 0 | } |
2238 | 0 | goto s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lit_complete_8; |
2239 | 0 | UNREACHABLE; |
2240 | 0 | } |
2241 | 0 | s_n_llpkgc_file__internal__n_pause_5: { |
2242 | 0 | state->error = 0x4; |
2243 | 0 | state->reason = "Lookahead required"; |
2244 | 0 | state->error_pos = (const char*) p; |
2245 | 0 | state->_current = (void*) (intptr_t) s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lookahead_backslash_3; |
2246 | 0 | return s_error; |
2247 | 0 | UNREACHABLE; |
2248 | 0 | } |
2249 | 0 | s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__unfinished_6: { |
2250 | 0 | switch (llpkgc_file__internal__c_update_llpkgc_file__unfinished_6(state, p, endp)) { |
2251 | 0 | default: |
2252 | 0 | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__lit_span; |
2253 | 0 | } |
2254 | 0 | UNREACHABLE; |
2255 | 0 | } |
2256 | 0 | s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__unfinished_12: { |
2257 | 0 | switch (llpkgc_file__internal__c_update_llpkgc_file__unfinished_6(state, p, endp)) { |
2258 | 0 | default: |
2259 | 0 | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__lit_span_6; |
2260 | 0 | } |
2261 | 0 | UNREACHABLE; |
2262 | 0 | } |
2263 | 0 | s_n_llpkgc_file__internal__n_pause_6: { |
2264 | 0 | state->error = 0x4; |
2265 | 0 | state->reason = "Lookahead required"; |
2266 | 0 | state->error_pos = (const char*) p; |
2267 | 0 | state->_current = (void*) (intptr_t) s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lookahead; |
2268 | 0 | return s_error; |
2269 | 0 | UNREACHABLE; |
2270 | 0 | } |
2271 | 0 | s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__line_resume_2: { |
2272 | 0 | switch (llpkgc_file__internal__c_update_llpkgc_file__line_resume(state, p, endp)) { |
2273 | 0 | default: |
2274 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_continue_line; |
2275 | 0 | } |
2276 | 0 | UNREACHABLE; |
2277 | 0 | } |
2278 | 0 | s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__value_resume_2: { |
2279 | 0 | switch (llpkgc_file__internal__c_update_llpkgc_file__value_resume_2(state, p, endp)) { |
2280 | 0 | default: |
2281 | 0 | goto s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__line_resume_2; |
2282 | 0 | } |
2283 | 0 | UNREACHABLE; |
2284 | 0 | } |
2285 | 1 | s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__text_resume_3: { |
2286 | 1 | switch (llpkgc_file__internal__c_update_llpkgc_file__text_resume(state, p, endp)) { |
2287 | 1 | default: |
2288 | 1 | goto s_n_llpkgc_file__internal__n_pkgc_file_double_backslash; |
2289 | 1 | } |
2290 | 1 | UNREACHABLE; |
2291 | 1 | } |
2292 | 0 | s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__unfinished_13: { |
2293 | 0 | switch (llpkgc_file__internal__c_update_llpkgc_file__unfinished_6(state, p, endp)) { |
2294 | 0 | default: |
2295 | 0 | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__lit_span_8; |
2296 | 0 | } |
2297 | 0 | UNREACHABLE; |
2298 | 0 | } |
2299 | 0 | s_n_llpkgc_file__internal__n_pause_7: { |
2300 | 0 | state->error = 0x4; |
2301 | 0 | state->reason = "Lookahead required"; |
2302 | 0 | state->error_pos = (const char*) p; |
2303 | 0 | state->_current = (void*) (intptr_t) s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lookahead_backslash_4; |
2304 | 0 | return s_error; |
2305 | 0 | UNREACHABLE; |
2306 | 0 | } |
2307 | 4 | s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__unfinished_5: { |
2308 | 4 | switch (llpkgc_file__internal__c_update_llpkgc_file__unfinished_5(state, p, endp)) { |
2309 | 4 | default: |
2310 | 4 | goto s_n_llpkgc_file__internal__n_pkgc_file_expect_value; |
2311 | 4 | } |
2312 | 4 | UNREACHABLE; |
2313 | 4 | } |
2314 | 0 | s_n_llpkgc_file__internal__n_error_3: { |
2315 | 0 | state->error = 0x7; |
2316 | 0 | state->reason = "Property complete error"; |
2317 | 0 | state->error_pos = (const char*) p; |
2318 | 0 | state->_current = (void*) (intptr_t) s_error; |
2319 | 0 | return s_error; |
2320 | 4 | UNREACHABLE; |
2321 | 4 | } |
2322 | 4 | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__prop_decl_complete: { |
2323 | 4 | switch (llpkgc_file__prop_decl_complete(state, p, endp)) { |
2324 | 4 | case 0: |
2325 | 4 | goto s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__unfinished_5; |
2326 | 0 | default: |
2327 | 0 | goto s_n_llpkgc_file__internal__n_error_3; |
2328 | 4 | } |
2329 | 4 | UNREACHABLE; |
2330 | 4 | } |
2331 | 0 | s_n_llpkgc_file__internal__n_error_15: { |
2332 | 0 | state->error = 0x8; |
2333 | 0 | state->reason = "Variable complete error"; |
2334 | 0 | state->error_pos = (const char*) p; |
2335 | 0 | state->_current = (void*) (intptr_t) s_error; |
2336 | 0 | return s_error; |
2337 | 4 | UNREACHABLE; |
2338 | 4 | } |
2339 | 0 | s_n_llpkgc_file__internal__n_invoke_llpkgc_file__var_decl_complete: { |
2340 | 0 | switch (llpkgc_file__var_decl_complete(state, p, endp)) { |
2341 | 0 | case 0: |
2342 | 0 | goto s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__unfinished_5; |
2343 | 0 | default: |
2344 | 0 | goto s_n_llpkgc_file__internal__n_error_15; |
2345 | 0 | } |
2346 | 0 | UNREACHABLE; |
2347 | 0 | } |
2348 | 0 | s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__line_resume_3: { |
2349 | 0 | switch (llpkgc_file__internal__c_update_llpkgc_file__line_resume_3(state, p, endp)) { |
2350 | 0 | default: |
2351 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_continue_line; |
2352 | 0 | } |
2353 | 0 | UNREACHABLE; |
2354 | 0 | } |
2355 | 0 | s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__unfinished_14: { |
2356 | 0 | switch (llpkgc_file__internal__c_update_llpkgc_file__unfinished(state, p, endp)) { |
2357 | 0 | default: |
2358 | 0 | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__ident_span_6; |
2359 | 0 | } |
2360 | 0 | UNREACHABLE; |
2361 | 0 | } |
2362 | 0 | s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__unfinished_15: { |
2363 | 0 | switch (llpkgc_file__internal__c_update_llpkgc_file__unfinished(state, p, endp)) { |
2364 | 0 | default: |
2365 | 0 | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__ident_span_7; |
2366 | 0 | } |
2367 | 0 | UNREACHABLE; |
2368 | 0 | } |
2369 | 0 | s_n_llpkgc_file__internal__n_pause_8: { |
2370 | 0 | state->error = 0x4; |
2371 | 0 | state->reason = "Lookahead required"; |
2372 | 0 | state->error_pos = (const char*) p; |
2373 | 0 | state->_current = (void*) (intptr_t) s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lookahead_backslash_5; |
2374 | 0 | return s_error; |
2375 | 0 | UNREACHABLE; |
2376 | 0 | } |
2377 | 4 | s_n_llpkgc_file__internal__n_span_end_llpkgc_file__ident_span_3: { |
2378 | 4 | const unsigned char* start; |
2379 | 4 | int err; |
2380 | | |
2381 | 4 | start = state->_span_pos0; |
2382 | 4 | state->_span_pos0 = NULL; |
2383 | 4 | err = llpkgc_file__ident_span(state, start, p); |
2384 | 4 | if (err != 0) { |
2385 | 0 | state->error = err; |
2386 | 0 | state->error_pos = (const char*) p; |
2387 | 0 | state->_current = (void*) (intptr_t) s_n_llpkgc_file__internal__n_pkgc_file_maybe_separator; |
2388 | 0 | return s_error; |
2389 | 0 | } |
2390 | 4 | goto s_n_llpkgc_file__internal__n_pkgc_file_maybe_separator; |
2391 | 4 | UNREACHABLE; |
2392 | 4 | } |
2393 | 0 | s_n_llpkgc_file__internal__n_span_end_llpkgc_file__ident_span_4: { |
2394 | 0 | const unsigned char* start; |
2395 | 0 | int err; |
2396 | |
|
2397 | 0 | start = state->_span_pos0; |
2398 | 0 | state->_span_pos0 = NULL; |
2399 | 0 | err = llpkgc_file__ident_span(state, start, p); |
2400 | 0 | if (err != 0) { |
2401 | 0 | state->error = err; |
2402 | 0 | state->error_pos = (const char*) (p + 1); |
2403 | 0 | state->_current = (void*) (intptr_t) s_n_llpkgc_file__internal__n_pkgc_file_ident_continue_line; |
2404 | 0 | return s_error; |
2405 | 0 | } |
2406 | 0 | p++; |
2407 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_ident_continue_line; |
2408 | 0 | UNREACHABLE; |
2409 | 0 | } |
2410 | 0 | s_n_llpkgc_file__internal__n_span_end_llpkgc_file__ident_span_5: { |
2411 | 0 | const unsigned char* start; |
2412 | 0 | int err; |
2413 | |
|
2414 | 0 | start = state->_span_pos0; |
2415 | 0 | state->_span_pos0 = NULL; |
2416 | 0 | err = llpkgc_file__ident_span(state, start, p); |
2417 | 0 | if (err != 0) { |
2418 | 0 | state->error = err; |
2419 | 0 | state->error_pos = (const char*) (p + 1); |
2420 | 0 | state->_current = (void*) (intptr_t) s_n_llpkgc_file__internal__n_pkgc_file_ident_escaped_comment; |
2421 | 0 | return s_error; |
2422 | 0 | } |
2423 | 0 | p++; |
2424 | 0 | goto s_n_llpkgc_file__internal__n_pkgc_file_ident_escaped_comment; |
2425 | 0 | UNREACHABLE; |
2426 | 0 | } |
2427 | 0 | s_n_llpkgc_file__internal__n_pause_9: { |
2428 | 0 | state->error = 0x4; |
2429 | 0 | state->reason = "Lookahead required"; |
2430 | 0 | state->error_pos = (const char*) p; |
2431 | 0 | state->_current = (void*) (intptr_t) s_n_llpkgc_file__internal__n_invoke_llpkgc_file__lookahead_backslash_6; |
2432 | 0 | return s_error; |
2433 | 0 | UNREACHABLE; |
2434 | 0 | } |
2435 | 1.77k | s_n_llpkgc_file__internal__n_invoke_update_llpkgc_file__unfinished_4: { |
2436 | 1.77k | switch (llpkgc_file__internal__c_update_llpkgc_file__unfinished_4(state, p, endp)) { |
2437 | 1.77k | default: |
2438 | 1.77k | goto s_n_llpkgc_file__internal__n_span_start_llpkgc_file__ident_span_5; |
2439 | 1.77k | } |
2440 | 1.77k | UNREACHABLE; |
2441 | 1.77k | } |
2442 | 1.77k | } |
2443 | | |
2444 | 1 | int llpkgc_file__internal_execute(llpkgc_file__internal_t* state, const char* p, const char* endp) { |
2445 | 1 | llparse_state_t next; |
2446 | | |
2447 | | /* check lingering errors */ |
2448 | 1 | if (state->error != 0) { |
2449 | 0 | return state->error; |
2450 | 0 | } |
2451 | | |
2452 | | /* restart spans */ |
2453 | 1 | if (state->_span_pos0 != NULL) { |
2454 | 0 | state->_span_pos0 = (void*) p; |
2455 | 0 | } |
2456 | 1 | if (state->_span_pos1 != NULL) { |
2457 | 0 | state->_span_pos1 = (void*) p; |
2458 | 0 | } |
2459 | | |
2460 | 1 | next = llpkgc_file__internal__run(state, (const unsigned char*) p, (const unsigned char*) endp); |
2461 | 1 | if (next == s_error) { |
2462 | 1 | return state->error; |
2463 | 1 | } |
2464 | 0 | state->_current = (void*) (intptr_t) next; |
2465 | | |
2466 | | /* execute spans */ |
2467 | 0 | if (state->_span_pos0 != NULL) { |
2468 | 0 | int error; |
2469 | |
|
2470 | 0 | error = ((llpkgc_file__internal__span_cb) state->_span_cb0)(state, state->_span_pos0, (const char*) endp); |
2471 | 0 | if (error != 0) { |
2472 | 0 | state->error = error; |
2473 | 0 | state->error_pos = endp; |
2474 | 0 | return error; |
2475 | 0 | } |
2476 | 0 | } |
2477 | 0 | if (state->_span_pos1 != NULL) { |
2478 | 0 | int error; |
2479 | |
|
2480 | 0 | error = llpkgc_file__lit_span(state, state->_span_pos1, (const char*) endp); |
2481 | 0 | if (error != 0) { |
2482 | 0 | state->error = error; |
2483 | 0 | state->error_pos = endp; |
2484 | 0 | return error; |
2485 | 0 | } |
2486 | 0 | } |
2487 | | |
2488 | 0 | return 0; |
2489 | 0 | } |