retro_idl 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/ext/retro_idl/asn/ext_parser/ext_common.h +27 -0
- data/ext/retro_idl/asn/ext_parser/ext_parser.l +201 -0
- data/ext/retro_idl/asn/ext_parser/ext_parser.y +1207 -0
- data/ext/retro_idl/asn/ext_parser/extconf.rb +3 -0
- data/ext/retro_idl/asn/ext_parser/lexer.c +2873 -0
- data/ext/retro_idl/asn/ext_parser/lexer.h +366 -0
- data/ext/retro_idl/asn/ext_parser/parser.c +2963 -0
- data/ext/retro_idl/asn/ext_parser/parser.h +175 -0
- data/lib/retro_idl/asn/alternative_type.rb +43 -0
- data/lib/retro_idl/asn/asn.rb +309 -0
- data/lib/retro_idl/asn/asn_error.rb +2 -0
- data/lib/retro_idl/asn/base_type.rb +87 -0
- data/lib/retro_idl/asn/base_value.rb +75 -0
- data/lib/retro_idl/asn/bit_string.rb +44 -0
- data/lib/retro_idl/asn/boolean.rb +50 -0
- data/lib/retro_idl/asn/builtin_value.rb +51 -0
- data/lib/retro_idl/asn/choice.rb +95 -0
- data/lib/retro_idl/asn/component_type.rb +56 -0
- data/lib/retro_idl/asn/constraint.rb +162 -0
- data/lib/retro_idl/asn/defined_type.rb +61 -0
- data/lib/retro_idl/asn/defined_value.rb +82 -0
- data/lib/retro_idl/asn/enumerated.rb +127 -0
- data/lib/retro_idl/asn/enumeration_item.rb +103 -0
- data/lib/retro_idl/asn/integer.rb +84 -0
- data/lib/retro_idl/asn/location.rb +10 -0
- data/lib/retro_idl/asn/named_number.rb +83 -0
- data/lib/retro_idl/asn/null.rb +41 -0
- data/lib/retro_idl/asn/octetstring.rb +48 -0
- data/lib/retro_idl/asn/real.rb +36 -0
- data/lib/retro_idl/asn/sequence.rb +132 -0
- data/lib/retro_idl/asn/sequenceof.rb +62 -0
- data/lib/retro_idl/asn/single_value.rb +26 -0
- data/lib/retro_idl/asn/tag.rb +163 -0
- data/lib/retro_idl/asn/type_list.rb +121 -0
- data/lib/retro_idl/asn/value_assignment.rb +21 -0
- data/lib/retro_idl/asn/value_list.rb +48 -0
- data/lib/retro_idl.rb +20 -0
- data/rakefile +33 -0
- data/test/asn/ext_parser/capture_stderr.rb +20 -0
- data/test/asn/ext_parser/tc_ext_parser.rb +94 -0
- data/test/asn/parser/capture_stderr.rb +20 -0
- data/test/asn/parser/tc_parser.rb +90 -0
- metadata +133 -0
@@ -0,0 +1,2873 @@
|
|
1
|
+
#line 2 "ext/retro_idl/asn/ext_parser/lexer.c"
|
2
|
+
#line 32 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
3
|
+
|
4
|
+
#include "ext_common.h"
|
5
|
+
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
#line 10 "ext/retro_idl/asn/ext_parser/lexer.c"
|
10
|
+
|
11
|
+
#define YY_INT_ALIGNED short int
|
12
|
+
|
13
|
+
/* A lexical scanner generated by flex */
|
14
|
+
|
15
|
+
#define FLEX_SCANNER
|
16
|
+
#define YY_FLEX_MAJOR_VERSION 2
|
17
|
+
#define YY_FLEX_MINOR_VERSION 5
|
18
|
+
#define YY_FLEX_SUBMINOR_VERSION 35
|
19
|
+
#if YY_FLEX_SUBMINOR_VERSION > 0
|
20
|
+
#define FLEX_BETA
|
21
|
+
#endif
|
22
|
+
|
23
|
+
/* First, we deal with platform-specific or compiler-specific issues. */
|
24
|
+
|
25
|
+
/* begin standard C headers. */
|
26
|
+
#include <stdio.h>
|
27
|
+
#include <string.h>
|
28
|
+
#include <errno.h>
|
29
|
+
#include <stdlib.h>
|
30
|
+
|
31
|
+
/* end standard C headers. */
|
32
|
+
|
33
|
+
/* flex integer type definitions */
|
34
|
+
|
35
|
+
#ifndef FLEXINT_H
|
36
|
+
#define FLEXINT_H
|
37
|
+
|
38
|
+
/* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
|
39
|
+
|
40
|
+
#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
|
41
|
+
|
42
|
+
/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
|
43
|
+
* if you want the limit (max/min) macros for int types.
|
44
|
+
*/
|
45
|
+
#ifndef __STDC_LIMIT_MACROS
|
46
|
+
#define __STDC_LIMIT_MACROS 1
|
47
|
+
#endif
|
48
|
+
|
49
|
+
#include <inttypes.h>
|
50
|
+
typedef int8_t flex_int8_t;
|
51
|
+
typedef uint8_t flex_uint8_t;
|
52
|
+
typedef int16_t flex_int16_t;
|
53
|
+
typedef uint16_t flex_uint16_t;
|
54
|
+
typedef int32_t flex_int32_t;
|
55
|
+
typedef uint32_t flex_uint32_t;
|
56
|
+
#else
|
57
|
+
typedef signed char flex_int8_t;
|
58
|
+
typedef short int flex_int16_t;
|
59
|
+
typedef int flex_int32_t;
|
60
|
+
typedef unsigned char flex_uint8_t;
|
61
|
+
typedef unsigned short int flex_uint16_t;
|
62
|
+
typedef unsigned int flex_uint32_t;
|
63
|
+
|
64
|
+
/* Limits of integral types. */
|
65
|
+
#ifndef INT8_MIN
|
66
|
+
#define INT8_MIN (-128)
|
67
|
+
#endif
|
68
|
+
#ifndef INT16_MIN
|
69
|
+
#define INT16_MIN (-32767-1)
|
70
|
+
#endif
|
71
|
+
#ifndef INT32_MIN
|
72
|
+
#define INT32_MIN (-2147483647-1)
|
73
|
+
#endif
|
74
|
+
#ifndef INT8_MAX
|
75
|
+
#define INT8_MAX (127)
|
76
|
+
#endif
|
77
|
+
#ifndef INT16_MAX
|
78
|
+
#define INT16_MAX (32767)
|
79
|
+
#endif
|
80
|
+
#ifndef INT32_MAX
|
81
|
+
#define INT32_MAX (2147483647)
|
82
|
+
#endif
|
83
|
+
#ifndef UINT8_MAX
|
84
|
+
#define UINT8_MAX (255U)
|
85
|
+
#endif
|
86
|
+
#ifndef UINT16_MAX
|
87
|
+
#define UINT16_MAX (65535U)
|
88
|
+
#endif
|
89
|
+
#ifndef UINT32_MAX
|
90
|
+
#define UINT32_MAX (4294967295U)
|
91
|
+
#endif
|
92
|
+
|
93
|
+
#endif /* ! C99 */
|
94
|
+
|
95
|
+
#endif /* ! FLEXINT_H */
|
96
|
+
|
97
|
+
#ifdef __cplusplus
|
98
|
+
|
99
|
+
/* The "const" storage-class-modifier is valid. */
|
100
|
+
#define YY_USE_CONST
|
101
|
+
|
102
|
+
#else /* ! __cplusplus */
|
103
|
+
|
104
|
+
/* C99 requires __STDC__ to be defined as 1. */
|
105
|
+
#if defined (__STDC__)
|
106
|
+
|
107
|
+
#define YY_USE_CONST
|
108
|
+
|
109
|
+
#endif /* defined (__STDC__) */
|
110
|
+
#endif /* ! __cplusplus */
|
111
|
+
|
112
|
+
#ifdef YY_USE_CONST
|
113
|
+
#define yyconst const
|
114
|
+
#else
|
115
|
+
#define yyconst
|
116
|
+
#endif
|
117
|
+
|
118
|
+
/* Returned upon end-of-file. */
|
119
|
+
#define YY_NULL 0
|
120
|
+
|
121
|
+
/* Promotes a possibly negative, possibly signed char to an unsigned
|
122
|
+
* integer for use as an array index. If the signed char is negative,
|
123
|
+
* we want to instead treat it as an 8-bit unsigned char, hence the
|
124
|
+
* double cast.
|
125
|
+
*/
|
126
|
+
#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
|
127
|
+
|
128
|
+
/* An opaque pointer. */
|
129
|
+
#ifndef YY_TYPEDEF_YY_SCANNER_T
|
130
|
+
#define YY_TYPEDEF_YY_SCANNER_T
|
131
|
+
typedef void* yyscan_t;
|
132
|
+
#endif
|
133
|
+
|
134
|
+
/* For convenience, these vars (plus the bison vars far below)
|
135
|
+
are macros in the reentrant scanner. */
|
136
|
+
#define yyin yyg->yyin_r
|
137
|
+
#define yyout yyg->yyout_r
|
138
|
+
#define yyextra yyg->yyextra_r
|
139
|
+
#define yyleng yyg->yyleng_r
|
140
|
+
#define yytext yyg->yytext_r
|
141
|
+
#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
|
142
|
+
#define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
|
143
|
+
#define yy_flex_debug yyg->yy_flex_debug_r
|
144
|
+
|
145
|
+
/* Enter a start condition. This macro really ought to take a parameter,
|
146
|
+
* but we do it the disgusting crufty way forced on us by the ()-less
|
147
|
+
* definition of BEGIN.
|
148
|
+
*/
|
149
|
+
#define BEGIN yyg->yy_start = 1 + 2 *
|
150
|
+
|
151
|
+
/* Translate the current start state into a value that can be later handed
|
152
|
+
* to BEGIN to return to the state. The YYSTATE alias is for lex
|
153
|
+
* compatibility.
|
154
|
+
*/
|
155
|
+
#define YY_START ((yyg->yy_start - 1) / 2)
|
156
|
+
#define YYSTATE YY_START
|
157
|
+
|
158
|
+
/* Action number for EOF rule of a given start state. */
|
159
|
+
#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
|
160
|
+
|
161
|
+
/* Special action meaning "start processing a new file". */
|
162
|
+
#define YY_NEW_FILE yyrestart(yyin ,yyscanner )
|
163
|
+
|
164
|
+
#define YY_END_OF_BUFFER_CHAR 0
|
165
|
+
|
166
|
+
/* Size of default input buffer. */
|
167
|
+
#ifndef YY_BUF_SIZE
|
168
|
+
#ifdef __ia64__
|
169
|
+
/* On IA-64, the buffer size is 16k, not 8k.
|
170
|
+
* Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
|
171
|
+
* Ditto for the __ia64__ case accordingly.
|
172
|
+
*/
|
173
|
+
#define YY_BUF_SIZE 32768
|
174
|
+
#else
|
175
|
+
#define YY_BUF_SIZE 16384
|
176
|
+
#endif /* __ia64__ */
|
177
|
+
#endif
|
178
|
+
|
179
|
+
/* The state buf must be large enough to hold one state per character in the main buffer.
|
180
|
+
*/
|
181
|
+
#define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
|
182
|
+
|
183
|
+
#ifndef YY_TYPEDEF_YY_BUFFER_STATE
|
184
|
+
#define YY_TYPEDEF_YY_BUFFER_STATE
|
185
|
+
typedef struct yy_buffer_state *YY_BUFFER_STATE;
|
186
|
+
#endif
|
187
|
+
|
188
|
+
#define EOB_ACT_CONTINUE_SCAN 0
|
189
|
+
#define EOB_ACT_END_OF_FILE 1
|
190
|
+
#define EOB_ACT_LAST_MATCH 2
|
191
|
+
|
192
|
+
#define YY_LESS_LINENO(n)
|
193
|
+
|
194
|
+
/* Return all but the first "n" matched characters back to the input stream. */
|
195
|
+
#define yyless(n) \
|
196
|
+
do \
|
197
|
+
{ \
|
198
|
+
/* Undo effects of setting up yytext. */ \
|
199
|
+
int yyless_macro_arg = (n); \
|
200
|
+
YY_LESS_LINENO(yyless_macro_arg);\
|
201
|
+
*yy_cp = yyg->yy_hold_char; \
|
202
|
+
YY_RESTORE_YY_MORE_OFFSET \
|
203
|
+
yyg->yy_c_buf_p = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
|
204
|
+
YY_DO_BEFORE_ACTION; /* set up yytext again */ \
|
205
|
+
} \
|
206
|
+
while ( 0 )
|
207
|
+
|
208
|
+
#define unput(c) yyunput( c, yyg->yytext_ptr , yyscanner )
|
209
|
+
|
210
|
+
#ifndef YY_TYPEDEF_YY_SIZE_T
|
211
|
+
#define YY_TYPEDEF_YY_SIZE_T
|
212
|
+
typedef size_t yy_size_t;
|
213
|
+
#endif
|
214
|
+
|
215
|
+
#ifndef YY_STRUCT_YY_BUFFER_STATE
|
216
|
+
#define YY_STRUCT_YY_BUFFER_STATE
|
217
|
+
struct yy_buffer_state
|
218
|
+
{
|
219
|
+
FILE *yy_input_file;
|
220
|
+
|
221
|
+
char *yy_ch_buf; /* input buffer */
|
222
|
+
char *yy_buf_pos; /* current position in input buffer */
|
223
|
+
|
224
|
+
/* Size of input buffer in bytes, not including room for EOB
|
225
|
+
* characters.
|
226
|
+
*/
|
227
|
+
yy_size_t yy_buf_size;
|
228
|
+
|
229
|
+
/* Number of characters read into yy_ch_buf, not including EOB
|
230
|
+
* characters.
|
231
|
+
*/
|
232
|
+
int yy_n_chars;
|
233
|
+
|
234
|
+
/* Whether we "own" the buffer - i.e., we know we created it,
|
235
|
+
* and can realloc() it to grow it, and should free() it to
|
236
|
+
* delete it.
|
237
|
+
*/
|
238
|
+
int yy_is_our_buffer;
|
239
|
+
|
240
|
+
/* Whether this is an "interactive" input source; if so, and
|
241
|
+
* if we're using stdio for input, then we want to use getc()
|
242
|
+
* instead of fread(), to make sure we stop fetching input after
|
243
|
+
* each newline.
|
244
|
+
*/
|
245
|
+
int yy_is_interactive;
|
246
|
+
|
247
|
+
/* Whether we're considered to be at the beginning of a line.
|
248
|
+
* If so, '^' rules will be active on the next match, otherwise
|
249
|
+
* not.
|
250
|
+
*/
|
251
|
+
int yy_at_bol;
|
252
|
+
|
253
|
+
int yy_bs_lineno; /**< The line count. */
|
254
|
+
int yy_bs_column; /**< The column count. */
|
255
|
+
|
256
|
+
/* Whether to try to fill the input buffer when we reach the
|
257
|
+
* end of it.
|
258
|
+
*/
|
259
|
+
int yy_fill_buffer;
|
260
|
+
|
261
|
+
int yy_buffer_status;
|
262
|
+
|
263
|
+
#define YY_BUFFER_NEW 0
|
264
|
+
#define YY_BUFFER_NORMAL 1
|
265
|
+
/* When an EOF's been seen but there's still some text to process
|
266
|
+
* then we mark the buffer as YY_EOF_PENDING, to indicate that we
|
267
|
+
* shouldn't try reading from the input source any more. We might
|
268
|
+
* still have a bunch of tokens to match, though, because of
|
269
|
+
* possible backing-up.
|
270
|
+
*
|
271
|
+
* When we actually see the EOF, we change the status to "new"
|
272
|
+
* (via yyrestart()), so that the user can continue scanning by
|
273
|
+
* just pointing yyin at a new input file.
|
274
|
+
*/
|
275
|
+
#define YY_BUFFER_EOF_PENDING 2
|
276
|
+
|
277
|
+
};
|
278
|
+
#endif /* !YY_STRUCT_YY_BUFFER_STATE */
|
279
|
+
|
280
|
+
/* We provide macros for accessing buffer states in case in the
|
281
|
+
* future we want to put the buffer states in a more general
|
282
|
+
* "scanner state".
|
283
|
+
*
|
284
|
+
* Returns the top of the stack, or NULL.
|
285
|
+
*/
|
286
|
+
#define YY_CURRENT_BUFFER ( yyg->yy_buffer_stack \
|
287
|
+
? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \
|
288
|
+
: NULL)
|
289
|
+
|
290
|
+
/* Same as previous macro, but useful when we know that the buffer stack is not
|
291
|
+
* NULL or when we need an lvalue. For internal use only.
|
292
|
+
*/
|
293
|
+
#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
|
294
|
+
|
295
|
+
void yyrestart (FILE *input_file ,yyscan_t yyscanner );
|
296
|
+
void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
|
297
|
+
YY_BUFFER_STATE yy_create_buffer (FILE *file,int size ,yyscan_t yyscanner );
|
298
|
+
void yy_delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
|
299
|
+
void yy_flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
|
300
|
+
void yypush_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
|
301
|
+
void yypop_buffer_state (yyscan_t yyscanner );
|
302
|
+
|
303
|
+
static void yyensure_buffer_stack (yyscan_t yyscanner );
|
304
|
+
static void yy_load_buffer_state (yyscan_t yyscanner );
|
305
|
+
static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file ,yyscan_t yyscanner );
|
306
|
+
|
307
|
+
#define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER ,yyscanner)
|
308
|
+
|
309
|
+
YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner );
|
310
|
+
YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str ,yyscan_t yyscanner );
|
311
|
+
YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,int len ,yyscan_t yyscanner );
|
312
|
+
|
313
|
+
void *yyalloc (yy_size_t ,yyscan_t yyscanner );
|
314
|
+
void *yyrealloc (void *,yy_size_t ,yyscan_t yyscanner );
|
315
|
+
void yyfree (void * ,yyscan_t yyscanner );
|
316
|
+
|
317
|
+
#define yy_new_buffer yy_create_buffer
|
318
|
+
|
319
|
+
#define yy_set_interactive(is_interactive) \
|
320
|
+
{ \
|
321
|
+
if ( ! YY_CURRENT_BUFFER ){ \
|
322
|
+
yyensure_buffer_stack (yyscanner); \
|
323
|
+
YY_CURRENT_BUFFER_LVALUE = \
|
324
|
+
yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \
|
325
|
+
} \
|
326
|
+
YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
|
327
|
+
}
|
328
|
+
|
329
|
+
#define yy_set_bol(at_bol) \
|
330
|
+
{ \
|
331
|
+
if ( ! YY_CURRENT_BUFFER ){\
|
332
|
+
yyensure_buffer_stack (yyscanner); \
|
333
|
+
YY_CURRENT_BUFFER_LVALUE = \
|
334
|
+
yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \
|
335
|
+
} \
|
336
|
+
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
|
337
|
+
}
|
338
|
+
|
339
|
+
#define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
|
340
|
+
|
341
|
+
/* Begin user sect3 */
|
342
|
+
|
343
|
+
#define yywrap(n) 1
|
344
|
+
#define YY_SKIP_YYWRAP
|
345
|
+
|
346
|
+
typedef unsigned char YY_CHAR;
|
347
|
+
|
348
|
+
typedef int yy_state_type;
|
349
|
+
|
350
|
+
#define yytext_ptr yytext_r
|
351
|
+
|
352
|
+
static yy_state_type yy_get_previous_state (yyscan_t yyscanner );
|
353
|
+
static yy_state_type yy_try_NUL_trans (yy_state_type current_state ,yyscan_t yyscanner);
|
354
|
+
static int yy_get_next_buffer (yyscan_t yyscanner );
|
355
|
+
static void yy_fatal_error (yyconst char msg[] ,yyscan_t yyscanner );
|
356
|
+
|
357
|
+
/* Done after the current pattern has been matched and before the
|
358
|
+
* corresponding action - sets up yytext.
|
359
|
+
*/
|
360
|
+
#define YY_DO_BEFORE_ACTION \
|
361
|
+
yyg->yytext_ptr = yy_bp; \
|
362
|
+
yyleng = (size_t) (yy_cp - yy_bp); \
|
363
|
+
yyg->yy_hold_char = *yy_cp; \
|
364
|
+
*yy_cp = '\0'; \
|
365
|
+
yyg->yy_c_buf_p = yy_cp;
|
366
|
+
|
367
|
+
#define YY_NUM_RULES 115
|
368
|
+
#define YY_END_OF_BUFFER 116
|
369
|
+
/* This struct is not used in this scanner,
|
370
|
+
but its presence is necessary. */
|
371
|
+
struct yy_trans_info
|
372
|
+
{
|
373
|
+
flex_int32_t yy_verify;
|
374
|
+
flex_int32_t yy_nxt;
|
375
|
+
};
|
376
|
+
static yyconst flex_int16_t yy_accept[574] =
|
377
|
+
{ 0,
|
378
|
+
0, 0, 0, 0, 116, 114, 103, 103, 14, 19,
|
379
|
+
114, 7, 8, 11, 114, 114, 20, 104, 104, 17,
|
380
|
+
18, 15, 16, 110, 110, 110, 110, 110, 110, 110,
|
381
|
+
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
|
382
|
+
110, 110, 110, 5, 6, 13, 109, 9, 12, 10,
|
383
|
+
3, 115, 3, 0, 0, 0, 4, 105, 24, 1,
|
384
|
+
0, 104, 0, 0, 110, 110, 110, 110, 110, 110,
|
385
|
+
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
|
386
|
+
110, 110, 110, 110, 110, 0, 110, 110, 110, 110,
|
387
|
+
110, 110, 110, 110, 110, 110, 110, 110, 110, 42,
|
388
|
+
|
389
|
+
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
|
390
|
+
110, 110, 110, 110, 110, 110, 110, 110, 110, 21,
|
391
|
+
22, 109, 2, 112, 111, 0, 4, 0, 105, 25,
|
392
|
+
107, 106, 23, 110, 46, 110, 110, 110, 37, 110,
|
393
|
+
110, 110, 110, 110, 110, 110, 110, 110, 110, 28,
|
394
|
+
110, 110, 110, 110, 110, 110, 110, 110, 0, 113,
|
395
|
+
0, 110, 110, 110, 110, 110, 110, 110, 48, 47,
|
396
|
+
110, 110, 110, 110, 110, 110, 110, 62, 110, 110,
|
397
|
+
110, 110, 110, 110, 110, 29, 110, 110, 110, 110,
|
398
|
+
110, 110, 110, 110, 110, 110, 110, 110, 108, 110,
|
399
|
+
|
400
|
+
110, 110, 110, 110, 110, 110, 110, 110, 110, 58,
|
401
|
+
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
|
402
|
+
89, 110, 110, 110, 110, 110, 110, 110, 110, 110,
|
403
|
+
110, 110, 110, 30, 110, 110, 110, 110, 110, 110,
|
404
|
+
110, 110, 110, 34, 110, 110, 110, 39, 110, 110,
|
405
|
+
96, 69, 49, 110, 110, 110, 110, 110, 110, 110,
|
406
|
+
110, 110, 110, 27, 110, 110, 110, 110, 110, 110,
|
407
|
+
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
|
408
|
+
110, 50, 110, 110, 110, 110, 110, 110, 110, 110,
|
409
|
+
110, 110, 110, 110, 110, 110, 110, 35, 110, 110,
|
410
|
+
|
411
|
+
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
|
412
|
+
110, 45, 110, 110, 110, 110, 110, 93, 110, 110,
|
413
|
+
110, 110, 110, 40, 110, 110, 110, 110, 110, 110,
|
414
|
+
110, 110, 43, 110, 110, 110, 110, 110, 110, 110,
|
415
|
+
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
|
416
|
+
110, 110, 65, 110, 110, 110, 110, 110, 110, 110,
|
417
|
+
110, 110, 38, 110, 110, 110, 110, 110, 110, 110,
|
418
|
+
110, 110, 110, 110, 31, 110, 110, 110, 110, 52,
|
419
|
+
110, 110, 110, 110, 110, 98, 110, 110, 110, 110,
|
420
|
+
110, 110, 110, 101, 99, 110, 110, 32, 110, 110,
|
421
|
+
|
422
|
+
110, 110, 110, 110, 94, 110, 92, 56, 110, 110,
|
423
|
+
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
|
424
|
+
110, 110, 110, 110, 110, 87, 110, 110, 60, 61,
|
425
|
+
110, 54, 110, 63, 110, 110, 110, 110, 53, 88,
|
426
|
+
110, 110, 110, 110, 110, 110, 51, 110, 110, 110,
|
427
|
+
41, 95, 110, 110, 110, 110, 110, 110, 110, 110,
|
428
|
+
110, 102, 74, 36, 90, 59, 110, 110, 110, 110,
|
429
|
+
110, 77, 110, 110, 110, 110, 110, 110, 110, 110,
|
430
|
+
110, 110, 82, 110, 110, 57, 110, 110, 110, 110,
|
431
|
+
110, 91, 110, 33, 110, 110, 110, 66, 110, 110,
|
432
|
+
|
433
|
+
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
|
434
|
+
84, 110, 110, 110, 55, 26, 110, 110, 110, 110,
|
435
|
+
110, 110, 110, 110, 110, 110, 110, 110, 110, 70,
|
436
|
+
110, 110, 110, 110, 110, 110, 110, 97, 44, 78,
|
437
|
+
110, 73, 110, 110, 110, 67, 68, 110, 110, 110,
|
438
|
+
110, 100, 75, 76, 110, 79, 71, 110, 110, 81,
|
439
|
+
110, 110, 86, 72, 110, 110, 110, 85, 80, 110,
|
440
|
+
83, 64, 0
|
441
|
+
} ;
|
442
|
+
|
443
|
+
static yyconst flex_int32_t yy_ec[256] =
|
444
|
+
{ 0,
|
445
|
+
1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
|
446
|
+
1, 1, 4, 1, 1, 1, 1, 1, 1, 1,
|
447
|
+
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
448
|
+
1, 2, 5, 6, 1, 1, 1, 1, 7, 8,
|
449
|
+
9, 10, 1, 11, 12, 13, 14, 15, 16, 17,
|
450
|
+
17, 18, 19, 20, 17, 21, 17, 22, 23, 24,
|
451
|
+
25, 26, 1, 1, 27, 28, 29, 30, 31, 32,
|
452
|
+
33, 34, 35, 36, 37, 38, 39, 40, 41, 42,
|
453
|
+
43, 44, 45, 46, 47, 48, 37, 49, 50, 51,
|
454
|
+
52, 53, 54, 55, 56, 1, 57, 58, 59, 60,
|
455
|
+
|
456
|
+
61, 62, 63, 64, 65, 66, 66, 67, 68, 69,
|
457
|
+
70, 71, 66, 72, 73, 74, 75, 76, 66, 77,
|
458
|
+
66, 66, 78, 79, 80, 1, 1, 1, 1, 1,
|
459
|
+
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
460
|
+
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
461
|
+
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
462
|
+
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
463
|
+
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
464
|
+
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
465
|
+
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
466
|
+
|
467
|
+
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
468
|
+
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
469
|
+
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
470
|
+
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
471
|
+
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
472
|
+
1, 1, 1, 1, 1
|
473
|
+
} ;
|
474
|
+
|
475
|
+
static yyconst flex_int32_t yy_meta[81] =
|
476
|
+
{ 0,
|
477
|
+
1, 1, 2, 2, 1, 1, 3, 1, 1, 1,
|
478
|
+
1, 4, 1, 1, 5, 5, 5, 5, 5, 5,
|
479
|
+
5, 1, 1, 1, 1, 1, 5, 5, 5, 5,
|
480
|
+
5, 5, 4, 4, 4, 4, 4, 4, 4, 4,
|
481
|
+
4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
|
482
|
+
4, 1, 1, 1, 1, 4, 5, 5, 5, 5,
|
483
|
+
5, 5, 4, 4, 4, 4, 4, 4, 4, 4,
|
484
|
+
4, 4, 4, 4, 4, 4, 4, 1, 1, 1
|
485
|
+
} ;
|
486
|
+
|
487
|
+
static yyconst flex_int16_t yy_base[581] =
|
488
|
+
{ 0,
|
489
|
+
0, 0, 78, 79, 695, 696, 696, 696, 696, 696,
|
490
|
+
76, 696, 696, 696, 78, 681, 683, 87, 96, 670,
|
491
|
+
696, 696, 696, 82, 87, 52, 92, 91, 57, 60,
|
492
|
+
685, 106, 0, 656, 100, 96, 120, 117, 658, 107,
|
493
|
+
130, 114, 623, 635, 632, 696, 0, 696, 696, 696,
|
494
|
+
696, 696, 671, 135, 151, 677, 0, 160, 670, 696,
|
495
|
+
177, 186, 0, 657, 0, 636, 642, 637, 632, 644,
|
496
|
+
630, 633, 633, 129, 145, 627, 640, 627, 642, 170,
|
497
|
+
179, 631, 627, 598, 609, 81, 646, 633, 621, 181,
|
498
|
+
621, 655, 611, 619, 612, 619, 588, 619, 608, 0,
|
499
|
+
|
500
|
+
607, 606, 603, 603, 137, 584, 182, 144, 597, 603,
|
501
|
+
630, 612, 605, 596, 575, 606, 608, 574, 151, 696,
|
502
|
+
696, 0, 696, 696, 696, 604, 0, 213, 222, 696,
|
503
|
+
229, 0, 696, 606, 0, 598, 594, 599, 0, 588,
|
504
|
+
594, 587, 595, 587, 582, 596, 187, 599, 594, 0,
|
505
|
+
585, 592, 174, 591, 576, 581, 558, 547, 135, 696,
|
506
|
+
614, 571, 575, 175, 576, 567, 581, 591, 0, 563,
|
507
|
+
597, 570, 546, 575, 574, 569, 557, 0, 557, 556,
|
508
|
+
552, 530, 560, 570, 549, 549, 563, 558, 547, 546,
|
509
|
+
559, 558, 527, 210, 566, 510, 524, 519, 244, 543,
|
510
|
+
|
511
|
+
547, 542, 540, 505, 547, 550, 547, 534, 547, 561,
|
512
|
+
525, 531, 524, 539, 537, 525, 531, 521, 142, 533,
|
513
|
+
0, 491, 498, 487, 514, 524, 514, 510, 512, 222,
|
514
|
+
537, 509, 526, 0, 480, 522, 504, 508, 517, 535,
|
515
|
+
515, 518, 470, 0, 497, 511, 506, 0, 500, 465,
|
516
|
+
0, 526, 0, 463, 496, 504, 489, 472, 462, 473,
|
517
|
+
484, 500, 501, 0, 455, 499, 496, 493, 483, 487,
|
518
|
+
475, 482, 484, 483, 487, 472, 469, 485, 467, 467,
|
519
|
+
471, 0, 453, 444, 436, 472, 223, 460, 475, 457,
|
520
|
+
472, 457, 481, 488, 487, 433, 451, 0, 456, 451,
|
521
|
+
|
522
|
+
459, 453, 446, 434, 455, 449, 448, 454, 414, 444,
|
523
|
+
423, 0, 439, 408, 409, 406, 412, 0, 451, 431,
|
524
|
+
411, 435, 428, 0, 442, 432, 436, 424, 423, 427,
|
525
|
+
436, 439, 0, 430, 419, 428, 435, 394, 401, 394,
|
526
|
+
426, 422, 426, 410, 423, 424, 408, 420, 405, 414,
|
527
|
+
408, 388, 0, 419, 405, 404, 397, 411, 383, 392,
|
528
|
+
410, 405, 0, 372, 404, 358, 389, 361, 359, 370,
|
529
|
+
369, 383, 393, 358, 0, 395, 385, 379, 384, 0,
|
530
|
+
387, 381, 390, 373, 372, 0, 389, 378, 370, 369,
|
531
|
+
344, 377, 365, 0, 0, 365, 363, 0, 379, 333,
|
532
|
+
|
533
|
+
366, 358, 359, 365, 0, 370, 0, 0, 334, 369,
|
534
|
+
368, 353, 328, 384, 350, 367, 328, 335, 314, 345,
|
535
|
+
354, 359, 324, 342, 339, 0, 353, 342, 0, 0,
|
536
|
+
351, 0, 346, 0, 306, 305, 315, 346, 0, 0,
|
537
|
+
341, 329, 302, 341, 333, 297, 0, 335, 308, 356,
|
538
|
+
0, 0, 304, 336, 291, 326, 294, 295, 316, 286,
|
539
|
+
318, 0, 0, 0, 313, 0, 317, 326, 317, 282,
|
540
|
+
281, 0, 308, 310, 315, 284, 313, 319, 274, 305,
|
541
|
+
299, 232, 0, 316, 270, 0, 278, 295, 265, 266,
|
542
|
+
297, 0, 291, 0, 300, 269, 268, 0, 292, 290,
|
543
|
+
|
544
|
+
261, 289, 297, 262, 291, 251, 280, 288, 272, 256,
|
545
|
+
0, 246, 247, 253, 0, 0, 271, 247, 246, 269,
|
546
|
+
273, 249, 276, 266, 240, 262, 235, 271, 275, 0,
|
547
|
+
235, 231, 237, 232, 250, 236, 235, 0, 0, 0,
|
548
|
+
251, 0, 233, 237, 215, 0, 260, 208, 205, 200,
|
549
|
+
205, 0, 0, 0, 207, 0, 0, 187, 218, 0,
|
550
|
+
167, 160, 0, 0, 156, 174, 96, 0, 0, 90,
|
551
|
+
0, 0, 696, 273, 276, 278, 280, 285, 80, 290
|
552
|
+
} ;
|
553
|
+
|
554
|
+
static yyconst flex_int16_t yy_def[581] =
|
555
|
+
{ 0,
|
556
|
+
573, 1, 574, 574, 573, 573, 573, 573, 573, 573,
|
557
|
+
575, 573, 573, 573, 573, 573, 573, 573, 573, 573,
|
558
|
+
573, 573, 573, 576, 576, 576, 576, 576, 576, 576,
|
559
|
+
576, 576, 576, 576, 576, 576, 576, 576, 576, 576,
|
560
|
+
576, 576, 576, 573, 573, 573, 577, 573, 573, 573,
|
561
|
+
573, 573, 573, 573, 575, 575, 578, 573, 573, 573,
|
562
|
+
573, 573, 579, 573, 576, 576, 576, 576, 576, 576,
|
563
|
+
576, 576, 576, 576, 576, 576, 576, 576, 576, 576,
|
564
|
+
576, 576, 576, 576, 576, 580, 576, 576, 576, 576,
|
565
|
+
576, 576, 576, 576, 576, 576, 576, 576, 576, 576,
|
566
|
+
|
567
|
+
576, 576, 576, 576, 576, 576, 576, 576, 576, 576,
|
568
|
+
576, 576, 576, 576, 576, 576, 576, 576, 576, 573,
|
569
|
+
573, 577, 573, 573, 573, 573, 578, 573, 573, 573,
|
570
|
+
573, 579, 573, 576, 576, 576, 576, 576, 576, 576,
|
571
|
+
576, 576, 576, 576, 576, 576, 576, 576, 576, 576,
|
572
|
+
576, 576, 576, 576, 576, 576, 576, 576, 580, 573,
|
573
|
+
580, 576, 576, 576, 576, 576, 576, 576, 576, 576,
|
574
|
+
576, 576, 576, 576, 576, 576, 576, 576, 576, 576,
|
575
|
+
576, 576, 576, 576, 576, 576, 576, 576, 576, 576,
|
576
|
+
576, 576, 576, 576, 576, 576, 576, 576, 573, 576,
|
577
|
+
|
578
|
+
576, 576, 576, 576, 576, 576, 576, 576, 576, 576,
|
579
|
+
576, 576, 576, 576, 576, 576, 576, 576, 576, 576,
|
580
|
+
576, 576, 576, 576, 576, 576, 576, 576, 576, 576,
|
581
|
+
576, 576, 576, 576, 576, 576, 576, 576, 576, 576,
|
582
|
+
576, 576, 576, 576, 576, 576, 576, 576, 576, 576,
|
583
|
+
576, 576, 576, 576, 576, 576, 576, 576, 576, 576,
|
584
|
+
576, 576, 576, 576, 576, 576, 576, 576, 576, 576,
|
585
|
+
576, 576, 576, 576, 576, 576, 576, 576, 576, 576,
|
586
|
+
576, 576, 576, 576, 576, 576, 576, 576, 576, 576,
|
587
|
+
576, 576, 576, 576, 576, 576, 576, 576, 576, 576,
|
588
|
+
|
589
|
+
576, 576, 576, 576, 576, 576, 576, 576, 576, 576,
|
590
|
+
576, 576, 576, 576, 576, 576, 576, 576, 576, 576,
|
591
|
+
576, 576, 576, 576, 576, 576, 576, 576, 576, 576,
|
592
|
+
576, 576, 576, 576, 576, 576, 576, 576, 576, 576,
|
593
|
+
576, 576, 576, 576, 576, 576, 576, 576, 576, 576,
|
594
|
+
576, 576, 576, 576, 576, 576, 576, 576, 576, 576,
|
595
|
+
576, 576, 576, 576, 576, 576, 576, 576, 576, 576,
|
596
|
+
576, 576, 576, 576, 576, 576, 576, 576, 576, 576,
|
597
|
+
576, 576, 576, 576, 576, 576, 576, 576, 576, 576,
|
598
|
+
576, 576, 576, 576, 576, 576, 576, 576, 576, 576,
|
599
|
+
|
600
|
+
576, 576, 576, 576, 576, 576, 576, 576, 576, 576,
|
601
|
+
576, 576, 576, 576, 576, 576, 576, 576, 576, 576,
|
602
|
+
576, 576, 576, 576, 576, 576, 576, 576, 576, 576,
|
603
|
+
576, 576, 576, 576, 576, 576, 576, 576, 576, 576,
|
604
|
+
576, 576, 576, 576, 576, 576, 576, 576, 576, 576,
|
605
|
+
576, 576, 576, 576, 576, 576, 576, 576, 576, 576,
|
606
|
+
576, 576, 576, 576, 576, 576, 576, 576, 576, 576,
|
607
|
+
576, 576, 576, 576, 576, 576, 576, 576, 576, 576,
|
608
|
+
576, 576, 576, 576, 576, 576, 576, 576, 576, 576,
|
609
|
+
576, 576, 576, 576, 576, 576, 576, 576, 576, 576,
|
610
|
+
|
611
|
+
576, 576, 576, 576, 576, 576, 576, 576, 576, 576,
|
612
|
+
576, 576, 576, 576, 576, 576, 576, 576, 576, 576,
|
613
|
+
576, 576, 576, 576, 576, 576, 576, 576, 576, 576,
|
614
|
+
576, 576, 576, 576, 576, 576, 576, 576, 576, 576,
|
615
|
+
576, 576, 576, 576, 576, 576, 576, 576, 576, 576,
|
616
|
+
576, 576, 576, 576, 576, 576, 576, 576, 576, 576,
|
617
|
+
576, 576, 576, 576, 576, 576, 576, 576, 576, 576,
|
618
|
+
576, 576, 0, 573, 573, 573, 573, 573, 573, 573
|
619
|
+
} ;
|
620
|
+
|
621
|
+
static yyconst flex_int16_t yy_nxt[777] =
|
622
|
+
{ 0,
|
623
|
+
6, 7, 8, 7, 9, 10, 11, 12, 13, 6,
|
624
|
+
14, 15, 16, 17, 18, 19, 19, 19, 19, 19,
|
625
|
+
19, 20, 21, 22, 6, 23, 24, 25, 26, 27,
|
626
|
+
28, 29, 30, 31, 32, 33, 33, 34, 35, 36,
|
627
|
+
37, 38, 33, 39, 40, 41, 42, 43, 33, 33,
|
628
|
+
33, 44, 6, 45, 46, 6, 47, 47, 47, 47,
|
629
|
+
47, 47, 47, 47, 47, 47, 47, 47, 47, 47,
|
630
|
+
47, 47, 47, 47, 47, 47, 47, 48, 49, 50,
|
631
|
+
52, 52, 54, 82, 132, 74, 160, 53, 53, 57,
|
632
|
+
55, 55, 75, 58, 58, 58, 58, 58, 58, 61,
|
633
|
+
|
634
|
+
83, 62, 62, 62, 62, 62, 62, 62, 61, 66,
|
635
|
+
62, 62, 62, 62, 62, 62, 62, 70, 76, 67,
|
636
|
+
84, 71, 77, 68, 572, 72, 93, 73, 69, 79,
|
637
|
+
80, 85, 87, 161, 94, 88, 95, 108, 78, 81,
|
638
|
+
160, 109, 96, 102, 89, 90, 103, 98, 99, 111,
|
639
|
+
91, 100, 110, 116, 104, 142, 112, 54, 571, 117,
|
640
|
+
105, 101, 124, 63, 113, 55, 55, 180, 125, 143,
|
641
|
+
97, 181, 128, 114, 129, 129, 129, 129, 129, 129,
|
642
|
+
129, 280, 118, 144, 145, 281, 185, 161, 106, 186,
|
643
|
+
115, 131, 131, 131, 131, 131, 131, 131, 61, 150,
|
644
|
+
|
645
|
+
62, 62, 62, 62, 62, 62, 62, 152, 183, 165,
|
646
|
+
197, 217, 226, 211, 218, 227, 151, 570, 569, 184,
|
647
|
+
153, 212, 568, 198, 154, 166, 167, 199, 199, 199,
|
648
|
+
199, 199, 199, 199, 128, 567, 129, 129, 129, 129,
|
649
|
+
129, 129, 129, 131, 131, 131, 131, 131, 131, 131,
|
650
|
+
255, 342, 566, 343, 291, 565, 564, 256, 199, 199,
|
651
|
+
199, 199, 199, 199, 199, 292, 507, 563, 562, 561,
|
652
|
+
560, 559, 508, 51, 51, 51, 51, 51, 56, 558,
|
653
|
+
56, 65, 65, 122, 122, 127, 557, 127, 127, 127,
|
654
|
+
159, 159, 159, 159, 159, 556, 555, 554, 553, 552,
|
655
|
+
|
656
|
+
551, 550, 549, 548, 547, 546, 545, 544, 543, 542,
|
657
|
+
541, 540, 539, 538, 537, 536, 535, 534, 533, 532,
|
658
|
+
531, 530, 529, 528, 527, 526, 525, 524, 523, 522,
|
659
|
+
521, 520, 519, 518, 517, 516, 515, 514, 513, 512,
|
660
|
+
511, 510, 509, 506, 505, 504, 503, 502, 501, 500,
|
661
|
+
499, 498, 497, 496, 495, 494, 493, 492, 491, 490,
|
662
|
+
489, 488, 487, 486, 485, 484, 483, 482, 481, 480,
|
663
|
+
479, 478, 477, 476, 475, 474, 473, 472, 471, 470,
|
664
|
+
469, 468, 467, 466, 465, 464, 463, 462, 461, 460,
|
665
|
+
459, 458, 457, 456, 455, 454, 453, 452, 451, 450,
|
666
|
+
|
667
|
+
449, 448, 447, 446, 445, 444, 443, 442, 441, 440,
|
668
|
+
439, 438, 437, 436, 435, 434, 433, 432, 431, 430,
|
669
|
+
429, 428, 427, 426, 425, 424, 423, 422, 421, 420,
|
670
|
+
419, 418, 417, 416, 415, 414, 413, 412, 411, 410,
|
671
|
+
409, 408, 407, 406, 405, 404, 403, 402, 401, 400,
|
672
|
+
399, 398, 397, 396, 395, 394, 393, 392, 391, 390,
|
673
|
+
389, 388, 387, 386, 385, 384, 383, 382, 381, 380,
|
674
|
+
379, 378, 377, 376, 375, 374, 373, 372, 371, 370,
|
675
|
+
369, 368, 367, 366, 365, 364, 363, 362, 361, 360,
|
676
|
+
359, 358, 357, 356, 355, 354, 353, 352, 351, 350,
|
677
|
+
|
678
|
+
349, 348, 347, 346, 345, 344, 341, 340, 339, 338,
|
679
|
+
337, 336, 335, 334, 333, 332, 331, 330, 329, 328,
|
680
|
+
327, 326, 325, 324, 323, 322, 321, 320, 319, 318,
|
681
|
+
317, 316, 315, 314, 313, 312, 311, 310, 309, 308,
|
682
|
+
307, 306, 305, 304, 303, 302, 301, 300, 299, 298,
|
683
|
+
297, 296, 295, 294, 293, 290, 289, 288, 287, 286,
|
684
|
+
285, 284, 283, 282, 279, 278, 277, 276, 275, 274,
|
685
|
+
273, 272, 271, 270, 269, 268, 267, 266, 265, 264,
|
686
|
+
263, 262, 261, 260, 259, 258, 257, 254, 253, 252,
|
687
|
+
251, 250, 249, 248, 247, 246, 245, 244, 243, 242,
|
688
|
+
|
689
|
+
241, 240, 239, 238, 237, 236, 235, 234, 233, 232,
|
690
|
+
231, 230, 229, 228, 225, 224, 573, 223, 222, 221,
|
691
|
+
220, 219, 216, 215, 214, 213, 210, 209, 208, 207,
|
692
|
+
206, 205, 204, 203, 202, 201, 200, 125, 196, 195,
|
693
|
+
194, 193, 192, 191, 190, 189, 188, 187, 182, 179,
|
694
|
+
178, 177, 176, 175, 174, 173, 172, 171, 170, 169,
|
695
|
+
86, 168, 164, 163, 162, 158, 157, 156, 155, 149,
|
696
|
+
148, 147, 146, 141, 140, 139, 138, 137, 136, 135,
|
697
|
+
134, 133, 130, 126, 123, 121, 120, 119, 107, 92,
|
698
|
+
86, 64, 60, 59, 573, 5, 573, 573, 573, 573,
|
699
|
+
|
700
|
+
573, 573, 573, 573, 573, 573, 573, 573, 573, 573,
|
701
|
+
573, 573, 573, 573, 573, 573, 573, 573, 573, 573,
|
702
|
+
573, 573, 573, 573, 573, 573, 573, 573, 573, 573,
|
703
|
+
573, 573, 573, 573, 573, 573, 573, 573, 573, 573,
|
704
|
+
573, 573, 573, 573, 573, 573, 573, 573, 573, 573,
|
705
|
+
573, 573, 573, 573, 573, 573, 573, 573, 573, 573,
|
706
|
+
573, 573, 573, 573, 573, 573, 573, 573, 573, 573,
|
707
|
+
573, 573, 573, 573, 573, 573
|
708
|
+
} ;
|
709
|
+
|
710
|
+
static yyconst flex_int16_t yy_chk[777] =
|
711
|
+
{ 0,
|
712
|
+
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
713
|
+
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
714
|
+
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
715
|
+
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
716
|
+
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
717
|
+
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
718
|
+
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
719
|
+
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
720
|
+
3, 4, 11, 29, 579, 26, 86, 3, 4, 15,
|
721
|
+
11, 11, 26, 15, 15, 15, 15, 15, 15, 18,
|
722
|
+
|
723
|
+
29, 18, 18, 18, 18, 18, 18, 18, 19, 24,
|
724
|
+
19, 19, 19, 19, 19, 19, 19, 25, 27, 24,
|
725
|
+
30, 25, 27, 24, 570, 25, 35, 25, 24, 28,
|
726
|
+
28, 30, 32, 86, 35, 32, 36, 40, 27, 28,
|
727
|
+
159, 40, 36, 38, 32, 32, 38, 37, 37, 41,
|
728
|
+
32, 37, 40, 42, 38, 74, 41, 55, 567, 42,
|
729
|
+
38, 37, 54, 18, 41, 55, 55, 105, 54, 74,
|
730
|
+
36, 105, 58, 41, 58, 58, 58, 58, 58, 58,
|
731
|
+
58, 219, 42, 75, 75, 219, 108, 159, 38, 108,
|
732
|
+
41, 61, 61, 61, 61, 61, 61, 61, 62, 80,
|
733
|
+
|
734
|
+
62, 62, 62, 62, 62, 62, 62, 81, 107, 90,
|
735
|
+
119, 153, 164, 147, 153, 164, 80, 566, 565, 107,
|
736
|
+
81, 147, 562, 119, 81, 90, 90, 128, 128, 128,
|
737
|
+
128, 128, 128, 128, 129, 561, 129, 129, 129, 129,
|
738
|
+
129, 129, 129, 131, 131, 131, 131, 131, 131, 131,
|
739
|
+
194, 287, 559, 287, 230, 558, 555, 194, 199, 199,
|
740
|
+
199, 199, 199, 199, 199, 230, 482, 551, 550, 549,
|
741
|
+
548, 547, 482, 574, 574, 574, 574, 574, 575, 545,
|
742
|
+
575, 576, 576, 577, 577, 578, 544, 578, 578, 578,
|
743
|
+
580, 580, 580, 580, 580, 543, 541, 537, 536, 535,
|
744
|
+
|
745
|
+
534, 533, 532, 531, 529, 528, 527, 526, 525, 524,
|
746
|
+
523, 522, 521, 520, 519, 518, 517, 514, 513, 512,
|
747
|
+
510, 509, 508, 507, 506, 505, 504, 503, 502, 501,
|
748
|
+
500, 499, 497, 496, 495, 493, 491, 490, 489, 488,
|
749
|
+
487, 485, 484, 481, 480, 479, 478, 477, 476, 475,
|
750
|
+
474, 473, 471, 470, 469, 468, 467, 465, 461, 460,
|
751
|
+
459, 458, 457, 456, 455, 454, 453, 450, 449, 448,
|
752
|
+
446, 445, 444, 443, 442, 441, 438, 437, 436, 435,
|
753
|
+
433, 431, 428, 427, 425, 424, 423, 422, 421, 420,
|
754
|
+
419, 418, 417, 416, 415, 414, 413, 412, 411, 410,
|
755
|
+
|
756
|
+
409, 406, 404, 403, 402, 401, 400, 399, 397, 396,
|
757
|
+
393, 392, 391, 390, 389, 388, 387, 385, 384, 383,
|
758
|
+
382, 381, 379, 378, 377, 376, 374, 373, 372, 371,
|
759
|
+
370, 369, 368, 367, 366, 365, 364, 362, 361, 360,
|
760
|
+
359, 358, 357, 356, 355, 354, 352, 351, 350, 349,
|
761
|
+
348, 347, 346, 345, 344, 343, 342, 341, 340, 339,
|
762
|
+
338, 337, 336, 335, 334, 332, 331, 330, 329, 328,
|
763
|
+
327, 326, 325, 323, 322, 321, 320, 319, 317, 316,
|
764
|
+
315, 314, 313, 311, 310, 309, 308, 307, 306, 305,
|
765
|
+
304, 303, 302, 301, 300, 299, 297, 296, 295, 294,
|
766
|
+
|
767
|
+
293, 292, 291, 290, 289, 288, 286, 285, 284, 283,
|
768
|
+
281, 280, 279, 278, 277, 276, 275, 274, 273, 272,
|
769
|
+
271, 270, 269, 268, 267, 266, 265, 263, 262, 261,
|
770
|
+
260, 259, 258, 257, 256, 255, 254, 252, 250, 249,
|
771
|
+
247, 246, 245, 243, 242, 241, 240, 239, 238, 237,
|
772
|
+
236, 235, 233, 232, 231, 229, 228, 227, 226, 225,
|
773
|
+
224, 223, 222, 220, 218, 217, 216, 215, 214, 213,
|
774
|
+
212, 211, 210, 209, 208, 207, 206, 205, 204, 203,
|
775
|
+
202, 201, 200, 198, 197, 196, 195, 193, 192, 191,
|
776
|
+
190, 189, 188, 187, 186, 185, 184, 183, 182, 181,
|
777
|
+
|
778
|
+
180, 179, 177, 176, 175, 174, 173, 172, 171, 170,
|
779
|
+
168, 167, 166, 165, 163, 162, 161, 158, 157, 156,
|
780
|
+
155, 154, 152, 151, 149, 148, 146, 145, 144, 143,
|
781
|
+
142, 141, 140, 138, 137, 136, 134, 126, 118, 117,
|
782
|
+
116, 115, 114, 113, 112, 111, 110, 109, 106, 104,
|
783
|
+
103, 102, 101, 99, 98, 97, 96, 95, 94, 93,
|
784
|
+
92, 91, 89, 88, 87, 85, 84, 83, 82, 79,
|
785
|
+
78, 77, 76, 73, 72, 71, 70, 69, 68, 67,
|
786
|
+
66, 64, 59, 56, 53, 45, 44, 43, 39, 34,
|
787
|
+
31, 20, 17, 16, 5, 573, 573, 573, 573, 573,
|
788
|
+
|
789
|
+
573, 573, 573, 573, 573, 573, 573, 573, 573, 573,
|
790
|
+
573, 573, 573, 573, 573, 573, 573, 573, 573, 573,
|
791
|
+
573, 573, 573, 573, 573, 573, 573, 573, 573, 573,
|
792
|
+
573, 573, 573, 573, 573, 573, 573, 573, 573, 573,
|
793
|
+
573, 573, 573, 573, 573, 573, 573, 573, 573, 573,
|
794
|
+
573, 573, 573, 573, 573, 573, 573, 573, 573, 573,
|
795
|
+
573, 573, 573, 573, 573, 573, 573, 573, 573, 573,
|
796
|
+
573, 573, 573, 573, 573, 573
|
797
|
+
} ;
|
798
|
+
|
799
|
+
/* The intent behind this definition is that it'll catch
|
800
|
+
* any uses of REJECT which flex missed.
|
801
|
+
*/
|
802
|
+
#define REJECT reject_used_but_not_detected
|
803
|
+
#define yymore() yymore_used_but_not_detected
|
804
|
+
#define YY_MORE_ADJ 0
|
805
|
+
#define YY_RESTORE_YY_MORE_OFFSET
|
806
|
+
#line 1 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
807
|
+
/* Flex Configuration */
|
808
|
+
#line 3 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
809
|
+
|
810
|
+
/* includes ***********************************************************/
|
811
|
+
|
812
|
+
#include <float.h>
|
813
|
+
#include <ruby.h>
|
814
|
+
#include "parser.h"
|
815
|
+
|
816
|
+
/* static prototypes **************************************************/
|
817
|
+
|
818
|
+
/**
|
819
|
+
* - Inserted into lexer as part of the YY_USER_ACTION macro
|
820
|
+
* -
|
821
|
+
*
|
822
|
+
* @param[in] loc pointer to Bison location record
|
823
|
+
* @param[in] text
|
824
|
+
* @param[in] textLen length of text in bytes
|
825
|
+
*
|
826
|
+
* */
|
827
|
+
static void updateLocation(YYLTYPE *loc, const char *text, int textLen);
|
828
|
+
|
829
|
+
/* macros *************************************************************/
|
830
|
+
|
831
|
+
#define YY_USER_ACTION updateLocation(yylloc, yytext, yyleng);
|
832
|
+
|
833
|
+
/* generated **********************************************************/
|
834
|
+
|
835
|
+
|
836
|
+
#define YY_NO_INPUT 1
|
837
|
+
|
838
|
+
#line 839 "ext/retro_idl/asn/ext_parser/lexer.c"
|
839
|
+
|
840
|
+
#define INITIAL 0
|
841
|
+
#define BLOCK_COMMENT 1
|
842
|
+
|
843
|
+
#ifndef YY_NO_UNISTD_H
|
844
|
+
/* Special case for "unistd.h", since it is non-ANSI. We include it way
|
845
|
+
* down here because we want the user's section 1 to have been scanned first.
|
846
|
+
* The user has a chance to override it with an option.
|
847
|
+
*/
|
848
|
+
#include <unistd.h>
|
849
|
+
#endif
|
850
|
+
|
851
|
+
#ifndef YY_EXTRA_TYPE
|
852
|
+
#define YY_EXTRA_TYPE void *
|
853
|
+
#endif
|
854
|
+
|
855
|
+
/* Holds the entire state of the reentrant scanner. */
|
856
|
+
struct yyguts_t
|
857
|
+
{
|
858
|
+
|
859
|
+
/* User-defined. Not touched by flex. */
|
860
|
+
YY_EXTRA_TYPE yyextra_r;
|
861
|
+
|
862
|
+
/* The rest are the same as the globals declared in the non-reentrant scanner. */
|
863
|
+
FILE *yyin_r, *yyout_r;
|
864
|
+
size_t yy_buffer_stack_top; /**< index of top of stack. */
|
865
|
+
size_t yy_buffer_stack_max; /**< capacity of stack. */
|
866
|
+
YY_BUFFER_STATE * yy_buffer_stack; /**< Stack as an array. */
|
867
|
+
char yy_hold_char;
|
868
|
+
int yy_n_chars;
|
869
|
+
int yyleng_r;
|
870
|
+
char *yy_c_buf_p;
|
871
|
+
int yy_init;
|
872
|
+
int yy_start;
|
873
|
+
int yy_did_buffer_switch_on_eof;
|
874
|
+
int yy_start_stack_ptr;
|
875
|
+
int yy_start_stack_depth;
|
876
|
+
int *yy_start_stack;
|
877
|
+
yy_state_type yy_last_accepting_state;
|
878
|
+
char* yy_last_accepting_cpos;
|
879
|
+
|
880
|
+
int yylineno_r;
|
881
|
+
int yy_flex_debug_r;
|
882
|
+
|
883
|
+
char *yytext_r;
|
884
|
+
int yy_more_flag;
|
885
|
+
int yy_more_len;
|
886
|
+
|
887
|
+
YYSTYPE * yylval_r;
|
888
|
+
|
889
|
+
YYLTYPE * yylloc_r;
|
890
|
+
|
891
|
+
}; /* end struct yyguts_t */
|
892
|
+
|
893
|
+
static int yy_init_globals (yyscan_t yyscanner );
|
894
|
+
|
895
|
+
/* This must go here because YYSTYPE and YYLTYPE are included
|
896
|
+
* from bison output in section 1.*/
|
897
|
+
# define yylval yyg->yylval_r
|
898
|
+
|
899
|
+
# define yylloc yyg->yylloc_r
|
900
|
+
|
901
|
+
int yylex_init (yyscan_t* scanner);
|
902
|
+
|
903
|
+
int yylex_init_extra (YY_EXTRA_TYPE user_defined,yyscan_t* scanner);
|
904
|
+
|
905
|
+
/* Accessor methods to globals.
|
906
|
+
These are made visible to non-reentrant scanners for convenience. */
|
907
|
+
|
908
|
+
int yylex_destroy (yyscan_t yyscanner );
|
909
|
+
|
910
|
+
int yyget_debug (yyscan_t yyscanner );
|
911
|
+
|
912
|
+
void yyset_debug (int debug_flag ,yyscan_t yyscanner );
|
913
|
+
|
914
|
+
YY_EXTRA_TYPE yyget_extra (yyscan_t yyscanner );
|
915
|
+
|
916
|
+
void yyset_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner );
|
917
|
+
|
918
|
+
FILE *yyget_in (yyscan_t yyscanner );
|
919
|
+
|
920
|
+
void yyset_in (FILE * in_str ,yyscan_t yyscanner );
|
921
|
+
|
922
|
+
FILE *yyget_out (yyscan_t yyscanner );
|
923
|
+
|
924
|
+
void yyset_out (FILE * out_str ,yyscan_t yyscanner );
|
925
|
+
|
926
|
+
int yyget_leng (yyscan_t yyscanner );
|
927
|
+
|
928
|
+
char *yyget_text (yyscan_t yyscanner );
|
929
|
+
|
930
|
+
int yyget_lineno (yyscan_t yyscanner );
|
931
|
+
|
932
|
+
void yyset_lineno (int line_number ,yyscan_t yyscanner );
|
933
|
+
|
934
|
+
YYSTYPE * yyget_lval (yyscan_t yyscanner );
|
935
|
+
|
936
|
+
void yyset_lval (YYSTYPE * yylval_param ,yyscan_t yyscanner );
|
937
|
+
|
938
|
+
YYLTYPE *yyget_lloc (yyscan_t yyscanner );
|
939
|
+
|
940
|
+
void yyset_lloc (YYLTYPE * yylloc_param ,yyscan_t yyscanner );
|
941
|
+
|
942
|
+
/* Macros after this point can all be overridden by user definitions in
|
943
|
+
* section 1.
|
944
|
+
*/
|
945
|
+
|
946
|
+
#ifndef YY_SKIP_YYWRAP
|
947
|
+
#ifdef __cplusplus
|
948
|
+
extern "C" int yywrap (yyscan_t yyscanner );
|
949
|
+
#else
|
950
|
+
extern int yywrap (yyscan_t yyscanner );
|
951
|
+
#endif
|
952
|
+
#endif
|
953
|
+
|
954
|
+
#ifndef yytext_ptr
|
955
|
+
static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner);
|
956
|
+
#endif
|
957
|
+
|
958
|
+
#ifdef YY_NEED_STRLEN
|
959
|
+
static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner);
|
960
|
+
#endif
|
961
|
+
|
962
|
+
#ifndef YY_NO_INPUT
|
963
|
+
|
964
|
+
#ifdef __cplusplus
|
965
|
+
static int yyinput (yyscan_t yyscanner );
|
966
|
+
#else
|
967
|
+
static int input (yyscan_t yyscanner );
|
968
|
+
#endif
|
969
|
+
|
970
|
+
#endif
|
971
|
+
|
972
|
+
/* Amount of stuff to slurp up with each read. */
|
973
|
+
#ifndef YY_READ_BUF_SIZE
|
974
|
+
#ifdef __ia64__
|
975
|
+
/* On IA-64, the buffer size is 16k, not 8k */
|
976
|
+
#define YY_READ_BUF_SIZE 16384
|
977
|
+
#else
|
978
|
+
#define YY_READ_BUF_SIZE 8192
|
979
|
+
#endif /* __ia64__ */
|
980
|
+
#endif
|
981
|
+
|
982
|
+
/* Copy whatever the last rule matched to the standard output. */
|
983
|
+
#ifndef ECHO
|
984
|
+
/* This used to be an fputs(), but since the string might contain NUL's,
|
985
|
+
* we now use fwrite().
|
986
|
+
*/
|
987
|
+
#define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
|
988
|
+
#endif
|
989
|
+
|
990
|
+
/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
|
991
|
+
* is returned in "result".
|
992
|
+
*/
|
993
|
+
#ifndef YY_INPUT
|
994
|
+
#define YY_INPUT(buf,result,max_size) \
|
995
|
+
if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
|
996
|
+
{ \
|
997
|
+
int c = '*'; \
|
998
|
+
size_t n; \
|
999
|
+
for ( n = 0; n < max_size && \
|
1000
|
+
(c = getc( yyin )) != EOF && c != '\n'; ++n ) \
|
1001
|
+
buf[n] = (char) c; \
|
1002
|
+
if ( c == '\n' ) \
|
1003
|
+
buf[n++] = (char) c; \
|
1004
|
+
if ( c == EOF && ferror( yyin ) ) \
|
1005
|
+
YY_FATAL_ERROR( "input in flex scanner failed" ); \
|
1006
|
+
result = n; \
|
1007
|
+
} \
|
1008
|
+
else \
|
1009
|
+
{ \
|
1010
|
+
errno=0; \
|
1011
|
+
while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
|
1012
|
+
{ \
|
1013
|
+
if( errno != EINTR) \
|
1014
|
+
{ \
|
1015
|
+
YY_FATAL_ERROR( "input in flex scanner failed" ); \
|
1016
|
+
break; \
|
1017
|
+
} \
|
1018
|
+
errno=0; \
|
1019
|
+
clearerr(yyin); \
|
1020
|
+
} \
|
1021
|
+
}\
|
1022
|
+
\
|
1023
|
+
|
1024
|
+
#endif
|
1025
|
+
|
1026
|
+
/* No semi-colon after return; correct usage is to write "yyterminate();" -
|
1027
|
+
* we don't want an extra ';' after the "return" because that will cause
|
1028
|
+
* some compilers to complain about unreachable statements.
|
1029
|
+
*/
|
1030
|
+
#ifndef yyterminate
|
1031
|
+
#define yyterminate() return YY_NULL
|
1032
|
+
#endif
|
1033
|
+
|
1034
|
+
/* Number of entries by which start-condition stack grows. */
|
1035
|
+
#ifndef YY_START_STACK_INCR
|
1036
|
+
#define YY_START_STACK_INCR 25
|
1037
|
+
#endif
|
1038
|
+
|
1039
|
+
/* Report a fatal error. */
|
1040
|
+
#ifndef YY_FATAL_ERROR
|
1041
|
+
#define YY_FATAL_ERROR(msg) yy_fatal_error( msg , yyscanner)
|
1042
|
+
#endif
|
1043
|
+
|
1044
|
+
/* end tables serialization structures and prototypes */
|
1045
|
+
|
1046
|
+
/* Default declaration of generated scanner - a define so the user can
|
1047
|
+
* easily add parameters.
|
1048
|
+
*/
|
1049
|
+
#ifndef YY_DECL
|
1050
|
+
#define YY_DECL_IS_OURS 1
|
1051
|
+
|
1052
|
+
extern int yylex \
|
1053
|
+
(YYSTYPE * yylval_param,YYLTYPE * yylloc_param ,yyscan_t yyscanner);
|
1054
|
+
|
1055
|
+
#define YY_DECL int yylex \
|
1056
|
+
(YYSTYPE * yylval_param, YYLTYPE * yylloc_param , yyscan_t yyscanner)
|
1057
|
+
#endif /* !YY_DECL */
|
1058
|
+
|
1059
|
+
/* Code executed at the beginning of each rule, after yytext and yyleng
|
1060
|
+
* have been set up.
|
1061
|
+
*/
|
1062
|
+
#ifndef YY_USER_ACTION
|
1063
|
+
#define YY_USER_ACTION
|
1064
|
+
#endif
|
1065
|
+
|
1066
|
+
/* Code executed at the end of each rule. */
|
1067
|
+
#ifndef YY_BREAK
|
1068
|
+
#define YY_BREAK break;
|
1069
|
+
#endif
|
1070
|
+
|
1071
|
+
#define YY_RULE_SETUP \
|
1072
|
+
YY_USER_ACTION
|
1073
|
+
|
1074
|
+
/** The main scanner function which does all the work.
|
1075
|
+
*/
|
1076
|
+
YY_DECL
|
1077
|
+
{
|
1078
|
+
register yy_state_type yy_current_state;
|
1079
|
+
register char *yy_cp, *yy_bp;
|
1080
|
+
register int yy_act;
|
1081
|
+
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
1082
|
+
|
1083
|
+
#line 45 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1084
|
+
|
1085
|
+
|
1086
|
+
#line 1087 "ext/retro_idl/asn/ext_parser/lexer.c"
|
1087
|
+
|
1088
|
+
yylval = yylval_param;
|
1089
|
+
|
1090
|
+
yylloc = yylloc_param;
|
1091
|
+
|
1092
|
+
if ( !yyg->yy_init )
|
1093
|
+
{
|
1094
|
+
yyg->yy_init = 1;
|
1095
|
+
|
1096
|
+
#ifdef YY_USER_INIT
|
1097
|
+
YY_USER_INIT;
|
1098
|
+
#endif
|
1099
|
+
|
1100
|
+
if ( ! yyg->yy_start )
|
1101
|
+
yyg->yy_start = 1; /* first start state */
|
1102
|
+
|
1103
|
+
if ( ! yyin )
|
1104
|
+
yyin = stdin;
|
1105
|
+
|
1106
|
+
if ( ! yyout )
|
1107
|
+
yyout = stdout;
|
1108
|
+
|
1109
|
+
if ( ! YY_CURRENT_BUFFER ) {
|
1110
|
+
yyensure_buffer_stack (yyscanner);
|
1111
|
+
YY_CURRENT_BUFFER_LVALUE =
|
1112
|
+
yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner);
|
1113
|
+
}
|
1114
|
+
|
1115
|
+
yy_load_buffer_state(yyscanner );
|
1116
|
+
}
|
1117
|
+
|
1118
|
+
while ( 1 ) /* loops until end-of-file is reached */
|
1119
|
+
{
|
1120
|
+
yy_cp = yyg->yy_c_buf_p;
|
1121
|
+
|
1122
|
+
/* Support of yytext. */
|
1123
|
+
*yy_cp = yyg->yy_hold_char;
|
1124
|
+
|
1125
|
+
/* yy_bp points to the position in yy_ch_buf of the start of
|
1126
|
+
* the current run.
|
1127
|
+
*/
|
1128
|
+
yy_bp = yy_cp;
|
1129
|
+
|
1130
|
+
yy_current_state = yyg->yy_start;
|
1131
|
+
yy_match:
|
1132
|
+
do
|
1133
|
+
{
|
1134
|
+
register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
|
1135
|
+
if ( yy_accept[yy_current_state] )
|
1136
|
+
{
|
1137
|
+
yyg->yy_last_accepting_state = yy_current_state;
|
1138
|
+
yyg->yy_last_accepting_cpos = yy_cp;
|
1139
|
+
}
|
1140
|
+
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
|
1141
|
+
{
|
1142
|
+
yy_current_state = (int) yy_def[yy_current_state];
|
1143
|
+
if ( yy_current_state >= 574 )
|
1144
|
+
yy_c = yy_meta[(unsigned int) yy_c];
|
1145
|
+
}
|
1146
|
+
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
|
1147
|
+
++yy_cp;
|
1148
|
+
}
|
1149
|
+
while ( yy_base[yy_current_state] != 696 );
|
1150
|
+
|
1151
|
+
yy_find_action:
|
1152
|
+
yy_act = yy_accept[yy_current_state];
|
1153
|
+
if ( yy_act == 0 )
|
1154
|
+
{ /* have to back up */
|
1155
|
+
yy_cp = yyg->yy_last_accepting_cpos;
|
1156
|
+
yy_current_state = yyg->yy_last_accepting_state;
|
1157
|
+
yy_act = yy_accept[yy_current_state];
|
1158
|
+
}
|
1159
|
+
|
1160
|
+
YY_DO_BEFORE_ACTION;
|
1161
|
+
|
1162
|
+
do_action: /* This label is used only to access EOF actions. */
|
1163
|
+
|
1164
|
+
switch ( yy_act )
|
1165
|
+
{ /* beginning of action switch */
|
1166
|
+
case 0: /* must back up */
|
1167
|
+
/* undo the effects of YY_DO_BEFORE_ACTION */
|
1168
|
+
*yy_cp = yyg->yy_hold_char;
|
1169
|
+
yy_cp = yyg->yy_last_accepting_cpos;
|
1170
|
+
yy_current_state = yyg->yy_last_accepting_state;
|
1171
|
+
goto yy_find_action;
|
1172
|
+
|
1173
|
+
case 1:
|
1174
|
+
YY_RULE_SETUP
|
1175
|
+
#line 47 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1176
|
+
{ BEGIN(BLOCK_COMMENT); }
|
1177
|
+
YY_BREAK
|
1178
|
+
case 2:
|
1179
|
+
YY_RULE_SETUP
|
1180
|
+
#line 48 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1181
|
+
{ BEGIN(INITIAL); }
|
1182
|
+
YY_BREAK
|
1183
|
+
case 3:
|
1184
|
+
YY_RULE_SETUP
|
1185
|
+
#line 49 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1186
|
+
{ }
|
1187
|
+
YY_BREAK
|
1188
|
+
case 4:
|
1189
|
+
YY_RULE_SETUP
|
1190
|
+
#line 51 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1191
|
+
{ /* skip comments */ }
|
1192
|
+
YY_BREAK
|
1193
|
+
case 5:
|
1194
|
+
#line 54 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1195
|
+
case 6:
|
1196
|
+
#line 55 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1197
|
+
case 7:
|
1198
|
+
#line 56 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1199
|
+
case 8:
|
1200
|
+
#line 57 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1201
|
+
case 9:
|
1202
|
+
#line 58 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1203
|
+
case 10:
|
1204
|
+
#line 59 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1205
|
+
case 11:
|
1206
|
+
#line 60 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1207
|
+
case 12:
|
1208
|
+
#line 61 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1209
|
+
case 13:
|
1210
|
+
#line 62 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1211
|
+
case 14:
|
1212
|
+
#line 63 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1213
|
+
case 15:
|
1214
|
+
#line 64 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1215
|
+
case 16:
|
1216
|
+
#line 65 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1217
|
+
case 17:
|
1218
|
+
#line 66 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1219
|
+
case 18:
|
1220
|
+
#line 67 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1221
|
+
case 19:
|
1222
|
+
#line 68 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1223
|
+
case 20:
|
1224
|
+
YY_RULE_SETUP
|
1225
|
+
#line 68 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1226
|
+
{ return *yytext; }
|
1227
|
+
YY_BREAK
|
1228
|
+
case 21:
|
1229
|
+
YY_RULE_SETUP
|
1230
|
+
#line 70 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1231
|
+
{ return TOK_LVERSION; }
|
1232
|
+
YY_BREAK
|
1233
|
+
case 22:
|
1234
|
+
YY_RULE_SETUP
|
1235
|
+
#line 71 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1236
|
+
{ *yylval = Qnil; return TOK_RVERSION; }
|
1237
|
+
YY_BREAK
|
1238
|
+
case 23:
|
1239
|
+
YY_RULE_SETUP
|
1240
|
+
#line 72 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1241
|
+
{ return TOK_ASSIGN; }
|
1242
|
+
YY_BREAK
|
1243
|
+
case 24:
|
1244
|
+
YY_RULE_SETUP
|
1245
|
+
#line 73 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1246
|
+
{ return TOK_RANGE; }
|
1247
|
+
YY_BREAK
|
1248
|
+
case 25:
|
1249
|
+
YY_RULE_SETUP
|
1250
|
+
#line 74 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1251
|
+
{ return TOK_ELLIPSES; }
|
1252
|
+
YY_BREAK
|
1253
|
+
case 26:
|
1254
|
+
YY_RULE_SETUP
|
1255
|
+
#line 77 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1256
|
+
{ return TOK_DEFINITIONS; }
|
1257
|
+
YY_BREAK
|
1258
|
+
case 27:
|
1259
|
+
YY_RULE_SETUP
|
1260
|
+
#line 78 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1261
|
+
{ return TOK_BEGIN; }
|
1262
|
+
YY_BREAK
|
1263
|
+
case 28:
|
1264
|
+
YY_RULE_SETUP
|
1265
|
+
#line 79 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1266
|
+
{ return TOK_END; }
|
1267
|
+
YY_BREAK
|
1268
|
+
case 29:
|
1269
|
+
YY_RULE_SETUP
|
1270
|
+
#line 80 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1271
|
+
{ return TOK_SET; }
|
1272
|
+
YY_BREAK
|
1273
|
+
case 30:
|
1274
|
+
YY_RULE_SETUP
|
1275
|
+
#line 81 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1276
|
+
{ *yylval = Qnil; return TOK_NULL; }
|
1277
|
+
YY_BREAK
|
1278
|
+
case 31:
|
1279
|
+
YY_RULE_SETUP
|
1280
|
+
#line 82 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1281
|
+
{ return TOK_BOOLEAN; }
|
1282
|
+
YY_BREAK
|
1283
|
+
case 32:
|
1284
|
+
YY_RULE_SETUP
|
1285
|
+
#line 83 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1286
|
+
{ return TOK_INTEGER; }
|
1287
|
+
YY_BREAK
|
1288
|
+
case 33:
|
1289
|
+
YY_RULE_SETUP
|
1290
|
+
#line 84 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1291
|
+
{ return TOK_ENUMERATED; }
|
1292
|
+
YY_BREAK
|
1293
|
+
case 34:
|
1294
|
+
YY_RULE_SETUP
|
1295
|
+
#line 85 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1296
|
+
{ return TOK_REAL; }
|
1297
|
+
YY_BREAK
|
1298
|
+
case 35:
|
1299
|
+
YY_RULE_SETUP
|
1300
|
+
#line 86 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1301
|
+
{ return TOK_OCTET; }
|
1302
|
+
YY_BREAK
|
1303
|
+
case 36:
|
1304
|
+
YY_RULE_SETUP
|
1305
|
+
#line 87 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1306
|
+
{ return TOK_CHARACTER; }
|
1307
|
+
YY_BREAK
|
1308
|
+
case 37:
|
1309
|
+
YY_RULE_SETUP
|
1310
|
+
#line 88 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1311
|
+
{ return TOK_BIT; }
|
1312
|
+
YY_BREAK
|
1313
|
+
case 38:
|
1314
|
+
YY_RULE_SETUP
|
1315
|
+
#line 89 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1316
|
+
{ return TOK_STRING; }
|
1317
|
+
YY_BREAK
|
1318
|
+
case 39:
|
1319
|
+
YY_RULE_SETUP
|
1320
|
+
#line 90 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1321
|
+
{ return TOK_SIZE; }
|
1322
|
+
YY_BREAK
|
1323
|
+
case 40:
|
1324
|
+
YY_RULE_SETUP
|
1325
|
+
#line 91 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1326
|
+
{ return TOK_CHOICE; }
|
1327
|
+
YY_BREAK
|
1328
|
+
case 41:
|
1329
|
+
YY_RULE_SETUP
|
1330
|
+
#line 92 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1331
|
+
{ return TOK_SEQUENCE; }
|
1332
|
+
YY_BREAK
|
1333
|
+
case 42:
|
1334
|
+
YY_RULE_SETUP
|
1335
|
+
#line 93 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1336
|
+
{ return TOK_OF; }
|
1337
|
+
YY_BREAK
|
1338
|
+
case 43:
|
1339
|
+
YY_RULE_SETUP
|
1340
|
+
#line 94 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1341
|
+
{ return TOK_EXCEPT; }
|
1342
|
+
YY_BREAK
|
1343
|
+
case 44:
|
1344
|
+
YY_RULE_SETUP
|
1345
|
+
#line 95 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1346
|
+
{ return TOK_INTERSECTION; }
|
1347
|
+
YY_BREAK
|
1348
|
+
case 45:
|
1349
|
+
YY_RULE_SETUP
|
1350
|
+
#line 96 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1351
|
+
{ return TOK_UNION; }
|
1352
|
+
YY_BREAK
|
1353
|
+
case 46:
|
1354
|
+
YY_RULE_SETUP
|
1355
|
+
#line 97 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1356
|
+
{ return TOK_ALL; }
|
1357
|
+
YY_BREAK
|
1358
|
+
case 47:
|
1359
|
+
YY_RULE_SETUP
|
1360
|
+
#line 98 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1361
|
+
{ return TOK_MIN; }
|
1362
|
+
YY_BREAK
|
1363
|
+
case 48:
|
1364
|
+
YY_RULE_SETUP
|
1365
|
+
#line 99 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1366
|
+
{ return TOK_MAX; }
|
1367
|
+
YY_BREAK
|
1368
|
+
case 49:
|
1369
|
+
YY_RULE_SETUP
|
1370
|
+
#line 100 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1371
|
+
{ *yylval = Qtrue; return TOK_TRUE; }
|
1372
|
+
YY_BREAK
|
1373
|
+
case 50:
|
1374
|
+
YY_RULE_SETUP
|
1375
|
+
#line 101 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1376
|
+
{ *yylval = Qfalse; return TOK_FALSE; }
|
1377
|
+
YY_BREAK
|
1378
|
+
case 51:
|
1379
|
+
YY_RULE_SETUP
|
1380
|
+
#line 102 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1381
|
+
{ return TOK_OPTIONAL; }
|
1382
|
+
YY_BREAK
|
1383
|
+
case 52:
|
1384
|
+
YY_RULE_SETUP
|
1385
|
+
#line 103 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1386
|
+
{ return TOK_DEFAULT; }
|
1387
|
+
YY_BREAK
|
1388
|
+
case 53:
|
1389
|
+
YY_RULE_SETUP
|
1390
|
+
#line 104 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1391
|
+
{ return TOK_IMPLICIT; }
|
1392
|
+
YY_BREAK
|
1393
|
+
case 54:
|
1394
|
+
YY_RULE_SETUP
|
1395
|
+
#line 105 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1396
|
+
{ return TOK_EXPLICIT; }
|
1397
|
+
YY_BREAK
|
1398
|
+
case 55:
|
1399
|
+
YY_RULE_SETUP
|
1400
|
+
#line 106 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1401
|
+
{ return TOK_APPLICATION; }
|
1402
|
+
YY_BREAK
|
1403
|
+
case 56:
|
1404
|
+
YY_RULE_SETUP
|
1405
|
+
#line 107 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1406
|
+
{ return TOK_PRIVATE; }
|
1407
|
+
YY_BREAK
|
1408
|
+
case 57:
|
1409
|
+
YY_RULE_SETUP
|
1410
|
+
#line 108 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1411
|
+
{ return TOK_UNIVERSAL; }
|
1412
|
+
YY_BREAK
|
1413
|
+
case 58:
|
1414
|
+
YY_RULE_SETUP
|
1415
|
+
#line 110 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1416
|
+
{ return TOK_DATE; }
|
1417
|
+
YY_BREAK
|
1418
|
+
case 59:
|
1419
|
+
YY_RULE_SETUP
|
1420
|
+
#line 111 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1421
|
+
{ return TOK_DATE_TIME; }
|
1422
|
+
YY_BREAK
|
1423
|
+
case 60:
|
1424
|
+
YY_RULE_SETUP
|
1425
|
+
#line 112 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1426
|
+
{ return TOK_DURATION; }
|
1427
|
+
YY_BREAK
|
1428
|
+
case 61:
|
1429
|
+
YY_RULE_SETUP
|
1430
|
+
#line 113 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1431
|
+
{ return TOK_EMBEDDED; }
|
1432
|
+
YY_BREAK
|
1433
|
+
case 62:
|
1434
|
+
YY_RULE_SETUP
|
1435
|
+
#line 114 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1436
|
+
{ return TOK_PDV; }
|
1437
|
+
YY_BREAK
|
1438
|
+
case 63:
|
1439
|
+
YY_RULE_SETUP
|
1440
|
+
#line 115 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1441
|
+
{ return TOK_EXTERNAL; }
|
1442
|
+
YY_BREAK
|
1443
|
+
case 64:
|
1444
|
+
YY_RULE_SETUP
|
1445
|
+
#line 116 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1446
|
+
{ return TOK_RELATIVE_OID_IRI; }
|
1447
|
+
YY_BREAK
|
1448
|
+
case 65:
|
1449
|
+
YY_RULE_SETUP
|
1450
|
+
#line 117 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1451
|
+
{ return TOK_OBJECT; }
|
1452
|
+
YY_BREAK
|
1453
|
+
case 66:
|
1454
|
+
YY_RULE_SETUP
|
1455
|
+
#line 118 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1456
|
+
{ return TOK_IDENTIFIER; }
|
1457
|
+
YY_BREAK
|
1458
|
+
case 67:
|
1459
|
+
YY_RULE_SETUP
|
1460
|
+
#line 119 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1461
|
+
{ return TOK_RELATIVE_IRI; }
|
1462
|
+
YY_BREAK
|
1463
|
+
case 68:
|
1464
|
+
YY_RULE_SETUP
|
1465
|
+
#line 120 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1466
|
+
{ return TOK_RELATIVE_OID; }
|
1467
|
+
YY_BREAK
|
1468
|
+
case 69:
|
1469
|
+
YY_RULE_SETUP
|
1470
|
+
#line 121 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1471
|
+
{ return TOK_TIME; }
|
1472
|
+
YY_BREAK
|
1473
|
+
case 70:
|
1474
|
+
YY_RULE_SETUP
|
1475
|
+
#line 122 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1476
|
+
{ return TOK_TIME_OF_DAY; }
|
1477
|
+
YY_BREAK
|
1478
|
+
case 71:
|
1479
|
+
YY_RULE_SETUP
|
1480
|
+
#line 124 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1481
|
+
{ *yylval = rb_float_new(INFINITY); return TOK_PLUS_INFINITY; }
|
1482
|
+
YY_BREAK
|
1483
|
+
case 72:
|
1484
|
+
YY_RULE_SETUP
|
1485
|
+
#line 125 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1486
|
+
{ *yylval = rb_float_new(-INFINITY); return TOK_MINUS_INFINITY; }
|
1487
|
+
YY_BREAK
|
1488
|
+
case 73:
|
1489
|
+
YY_RULE_SETUP
|
1490
|
+
#line 126 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1491
|
+
{ *yylval = rb_float_new(NAN); return TOK_NOT_A_NUMBER; }
|
1492
|
+
YY_BREAK
|
1493
|
+
case 74:
|
1494
|
+
YY_RULE_SETUP
|
1495
|
+
#line 128 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1496
|
+
{ return TOK_BMPString; }
|
1497
|
+
YY_BREAK
|
1498
|
+
case 75:
|
1499
|
+
YY_RULE_SETUP
|
1500
|
+
#line 129 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1501
|
+
{ return TOK_GeneralString; }
|
1502
|
+
YY_BREAK
|
1503
|
+
case 76:
|
1504
|
+
YY_RULE_SETUP
|
1505
|
+
#line 130 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1506
|
+
{ return TOK_GraphicString; }
|
1507
|
+
YY_BREAK
|
1508
|
+
case 77:
|
1509
|
+
YY_RULE_SETUP
|
1510
|
+
#line 131 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1511
|
+
{ return TOK_IA5String; }
|
1512
|
+
YY_BREAK
|
1513
|
+
case 78:
|
1514
|
+
YY_RULE_SETUP
|
1515
|
+
#line 132 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1516
|
+
{ return TOK_ISO646String; }
|
1517
|
+
YY_BREAK
|
1518
|
+
case 79:
|
1519
|
+
YY_RULE_SETUP
|
1520
|
+
#line 133 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1521
|
+
{ return TOK_NumericString; }
|
1522
|
+
YY_BREAK
|
1523
|
+
case 80:
|
1524
|
+
YY_RULE_SETUP
|
1525
|
+
#line 134 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1526
|
+
{ return TOK_PrintableString; }
|
1527
|
+
YY_BREAK
|
1528
|
+
case 81:
|
1529
|
+
YY_RULE_SETUP
|
1530
|
+
#line 135 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1531
|
+
{ return TOK_TeletexString; }
|
1532
|
+
YY_BREAK
|
1533
|
+
case 82:
|
1534
|
+
YY_RULE_SETUP
|
1535
|
+
#line 136 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1536
|
+
{ return TOK_T61String; }
|
1537
|
+
YY_BREAK
|
1538
|
+
case 83:
|
1539
|
+
YY_RULE_SETUP
|
1540
|
+
#line 137 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1541
|
+
{ return TOK_UniversalString; }
|
1542
|
+
YY_BREAK
|
1543
|
+
case 84:
|
1544
|
+
YY_RULE_SETUP
|
1545
|
+
#line 138 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1546
|
+
{ return TOK_UTF8String; }
|
1547
|
+
YY_BREAK
|
1548
|
+
case 85:
|
1549
|
+
YY_RULE_SETUP
|
1550
|
+
#line 139 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1551
|
+
{ return TOK_VideotexString; }
|
1552
|
+
YY_BREAK
|
1553
|
+
case 86:
|
1554
|
+
YY_RULE_SETUP
|
1555
|
+
#line 140 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1556
|
+
{ return TOK_VisibleString; }
|
1557
|
+
YY_BREAK
|
1558
|
+
case 87:
|
1559
|
+
YY_RULE_SETUP
|
1560
|
+
#line 142 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1561
|
+
{ return TOK_CONTAINS; }
|
1562
|
+
YY_BREAK
|
1563
|
+
case 88:
|
1564
|
+
YY_RULE_SETUP
|
1565
|
+
#line 143 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1566
|
+
{ return TOK_INCLUDES; }
|
1567
|
+
YY_BREAK
|
1568
|
+
case 89:
|
1569
|
+
YY_RULE_SETUP
|
1570
|
+
#line 144 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1571
|
+
{ return TOK_FROM; }
|
1572
|
+
YY_BREAK
|
1573
|
+
case 90:
|
1574
|
+
YY_RULE_SETUP
|
1575
|
+
#line 145 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1576
|
+
{ return TOK_COMPONENT; }
|
1577
|
+
YY_BREAK
|
1578
|
+
case 91:
|
1579
|
+
YY_RULE_SETUP
|
1580
|
+
#line 146 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1581
|
+
{ return TOK_COMPONENTS; }
|
1582
|
+
YY_BREAK
|
1583
|
+
case 92:
|
1584
|
+
YY_RULE_SETUP
|
1585
|
+
#line 147 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1586
|
+
{ return TOK_PRESENT; }
|
1587
|
+
YY_BREAK
|
1588
|
+
case 93:
|
1589
|
+
YY_RULE_SETUP
|
1590
|
+
#line 148 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1591
|
+
{ return TOK_ABSENT; }
|
1592
|
+
YY_BREAK
|
1593
|
+
case 94:
|
1594
|
+
YY_RULE_SETUP
|
1595
|
+
#line 149 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1596
|
+
{ return TOK_PATTERN; }
|
1597
|
+
YY_BREAK
|
1598
|
+
case 95:
|
1599
|
+
YY_RULE_SETUP
|
1600
|
+
#line 150 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1601
|
+
{ return TOK_SETTINGS; }
|
1602
|
+
YY_BREAK
|
1603
|
+
case 96:
|
1604
|
+
YY_RULE_SETUP
|
1605
|
+
#line 151 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1606
|
+
{ return TOK_TAGS; }
|
1607
|
+
YY_BREAK
|
1608
|
+
case 97:
|
1609
|
+
YY_RULE_SETUP
|
1610
|
+
#line 152 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1611
|
+
{ return TOK_INSTRUCTIONS; }
|
1612
|
+
YY_BREAK
|
1613
|
+
case 98:
|
1614
|
+
YY_RULE_SETUP
|
1615
|
+
#line 153 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1616
|
+
{ return TOK_EXPORTS; }
|
1617
|
+
YY_BREAK
|
1618
|
+
case 99:
|
1619
|
+
YY_RULE_SETUP
|
1620
|
+
#line 154 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1621
|
+
{ return TOK_IMPORTS; }
|
1622
|
+
YY_BREAK
|
1623
|
+
case 100:
|
1624
|
+
YY_RULE_SETUP
|
1625
|
+
#line 155 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1626
|
+
{ return TOK_EXTENSIBILITY; }
|
1627
|
+
YY_BREAK
|
1628
|
+
case 101:
|
1629
|
+
YY_RULE_SETUP
|
1630
|
+
#line 156 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1631
|
+
{ return TOK_IMPLIED; }
|
1632
|
+
YY_BREAK
|
1633
|
+
case 102:
|
1634
|
+
YY_RULE_SETUP
|
1635
|
+
#line 157 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1636
|
+
{ return TOK_AUTOMATIC; }
|
1637
|
+
YY_BREAK
|
1638
|
+
case 103:
|
1639
|
+
/* rule 103 can match eol */
|
1640
|
+
YY_RULE_SETUP
|
1641
|
+
#line 159 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1642
|
+
;
|
1643
|
+
YY_BREAK
|
1644
|
+
case 104:
|
1645
|
+
YY_RULE_SETUP
|
1646
|
+
#line 161 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1647
|
+
{ unsigned int tmp = 0; sscanf(yytext, "%u", &tmp); *yylval = UINT2NUM(tmp); return TOK_POSINT; }
|
1648
|
+
YY_BREAK
|
1649
|
+
case 105:
|
1650
|
+
YY_RULE_SETUP
|
1651
|
+
#line 162 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1652
|
+
{ int tmp = 0; sscanf(yytext, "%i", &tmp); *yylval = INT2NUM(tmp); return TOK_NEGINT; }
|
1653
|
+
YY_BREAK
|
1654
|
+
case 106:
|
1655
|
+
YY_RULE_SETUP
|
1656
|
+
#line 163 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1657
|
+
{ unsigned int tmp = 0; sscanf(yytext, "%x", &tmp); *yylval = UINT2NUM(tmp); return TOK_HEXINT; }
|
1658
|
+
YY_BREAK
|
1659
|
+
case 107:
|
1660
|
+
YY_RULE_SETUP
|
1661
|
+
#line 164 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1662
|
+
{ float tmp = 0; sscanf(yytext, "%f", &tmp); *yylval = rb_float_new(tmp); return TOK_POSREAL; }
|
1663
|
+
YY_BREAK
|
1664
|
+
case 108:
|
1665
|
+
YY_RULE_SETUP
|
1666
|
+
#line 165 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1667
|
+
{ float tmp = 0; sscanf(yytext, "%f", &tmp); *yylval = rb_float_new(tmp); return TOK_NEGREAL; }
|
1668
|
+
YY_BREAK
|
1669
|
+
case 109:
|
1670
|
+
YY_RULE_SETUP
|
1671
|
+
#line 167 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1672
|
+
{ *yylval = rb_str_new(yytext, yyleng); return TOK_ID; }
|
1673
|
+
YY_BREAK
|
1674
|
+
case 110:
|
1675
|
+
YY_RULE_SETUP
|
1676
|
+
#line 169 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1677
|
+
{ *yylval = rb_str_new(yytext, yyleng); return TOK_TYPEREF; }
|
1678
|
+
YY_BREAK
|
1679
|
+
case 111:
|
1680
|
+
YY_RULE_SETUP
|
1681
|
+
#line 171 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1682
|
+
{ *yylval = rb_str_new(yytext, yyleng); return TOK_HSTRING; }
|
1683
|
+
YY_BREAK
|
1684
|
+
case 112:
|
1685
|
+
YY_RULE_SETUP
|
1686
|
+
#line 172 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1687
|
+
{ *yylval = rb_str_new(yytext, yyleng); return TOK_BSTRING; }
|
1688
|
+
YY_BREAK
|
1689
|
+
case 113:
|
1690
|
+
/* rule 113 can match eol */
|
1691
|
+
YY_RULE_SETUP
|
1692
|
+
#line 174 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1693
|
+
{ *yylval = rb_str_new(yytext, yyleng); return TOK_CSTRING; }
|
1694
|
+
YY_BREAK
|
1695
|
+
case 114:
|
1696
|
+
YY_RULE_SETUP
|
1697
|
+
#line 176 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1698
|
+
;
|
1699
|
+
YY_BREAK
|
1700
|
+
case 115:
|
1701
|
+
YY_RULE_SETUP
|
1702
|
+
#line 178 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
1703
|
+
ECHO;
|
1704
|
+
YY_BREAK
|
1705
|
+
#line 1706 "ext/retro_idl/asn/ext_parser/lexer.c"
|
1706
|
+
case YY_STATE_EOF(INITIAL):
|
1707
|
+
case YY_STATE_EOF(BLOCK_COMMENT):
|
1708
|
+
yyterminate();
|
1709
|
+
|
1710
|
+
case YY_END_OF_BUFFER:
|
1711
|
+
{
|
1712
|
+
/* Amount of text matched not including the EOB char. */
|
1713
|
+
int yy_amount_of_matched_text = (int) (yy_cp - yyg->yytext_ptr) - 1;
|
1714
|
+
|
1715
|
+
/* Undo the effects of YY_DO_BEFORE_ACTION. */
|
1716
|
+
*yy_cp = yyg->yy_hold_char;
|
1717
|
+
YY_RESTORE_YY_MORE_OFFSET
|
1718
|
+
|
1719
|
+
if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
|
1720
|
+
{
|
1721
|
+
/* We're scanning a new file or input source. It's
|
1722
|
+
* possible that this happened because the user
|
1723
|
+
* just pointed yyin at a new source and called
|
1724
|
+
* yylex(). If so, then we have to assure
|
1725
|
+
* consistency between YY_CURRENT_BUFFER and our
|
1726
|
+
* globals. Here is the right place to do so, because
|
1727
|
+
* this is the first action (other than possibly a
|
1728
|
+
* back-up) that will match for the new input source.
|
1729
|
+
*/
|
1730
|
+
yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
|
1731
|
+
YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
|
1732
|
+
YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
|
1733
|
+
}
|
1734
|
+
|
1735
|
+
/* Note that here we test for yy_c_buf_p "<=" to the position
|
1736
|
+
* of the first EOB in the buffer, since yy_c_buf_p will
|
1737
|
+
* already have been incremented past the NUL character
|
1738
|
+
* (since all states make transitions on EOB to the
|
1739
|
+
* end-of-buffer state). Contrast this with the test
|
1740
|
+
* in input().
|
1741
|
+
*/
|
1742
|
+
if ( yyg->yy_c_buf_p <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] )
|
1743
|
+
{ /* This was really a NUL. */
|
1744
|
+
yy_state_type yy_next_state;
|
1745
|
+
|
1746
|
+
yyg->yy_c_buf_p = yyg->yytext_ptr + yy_amount_of_matched_text;
|
1747
|
+
|
1748
|
+
yy_current_state = yy_get_previous_state( yyscanner );
|
1749
|
+
|
1750
|
+
/* Okay, we're now positioned to make the NUL
|
1751
|
+
* transition. We couldn't have
|
1752
|
+
* yy_get_previous_state() go ahead and do it
|
1753
|
+
* for us because it doesn't know how to deal
|
1754
|
+
* with the possibility of jamming (and we don't
|
1755
|
+
* want to build jamming into it because then it
|
1756
|
+
* will run more slowly).
|
1757
|
+
*/
|
1758
|
+
|
1759
|
+
yy_next_state = yy_try_NUL_trans( yy_current_state , yyscanner);
|
1760
|
+
|
1761
|
+
yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
|
1762
|
+
|
1763
|
+
if ( yy_next_state )
|
1764
|
+
{
|
1765
|
+
/* Consume the NUL. */
|
1766
|
+
yy_cp = ++yyg->yy_c_buf_p;
|
1767
|
+
yy_current_state = yy_next_state;
|
1768
|
+
goto yy_match;
|
1769
|
+
}
|
1770
|
+
|
1771
|
+
else
|
1772
|
+
{
|
1773
|
+
yy_cp = yyg->yy_c_buf_p;
|
1774
|
+
goto yy_find_action;
|
1775
|
+
}
|
1776
|
+
}
|
1777
|
+
|
1778
|
+
else switch ( yy_get_next_buffer( yyscanner ) )
|
1779
|
+
{
|
1780
|
+
case EOB_ACT_END_OF_FILE:
|
1781
|
+
{
|
1782
|
+
yyg->yy_did_buffer_switch_on_eof = 0;
|
1783
|
+
|
1784
|
+
if ( yywrap(yyscanner ) )
|
1785
|
+
{
|
1786
|
+
/* Note: because we've taken care in
|
1787
|
+
* yy_get_next_buffer() to have set up
|
1788
|
+
* yytext, we can now set up
|
1789
|
+
* yy_c_buf_p so that if some total
|
1790
|
+
* hoser (like flex itself) wants to
|
1791
|
+
* call the scanner after we return the
|
1792
|
+
* YY_NULL, it'll still work - another
|
1793
|
+
* YY_NULL will get returned.
|
1794
|
+
*/
|
1795
|
+
yyg->yy_c_buf_p = yyg->yytext_ptr + YY_MORE_ADJ;
|
1796
|
+
|
1797
|
+
yy_act = YY_STATE_EOF(YY_START);
|
1798
|
+
goto do_action;
|
1799
|
+
}
|
1800
|
+
|
1801
|
+
else
|
1802
|
+
{
|
1803
|
+
if ( ! yyg->yy_did_buffer_switch_on_eof )
|
1804
|
+
YY_NEW_FILE;
|
1805
|
+
}
|
1806
|
+
break;
|
1807
|
+
}
|
1808
|
+
|
1809
|
+
case EOB_ACT_CONTINUE_SCAN:
|
1810
|
+
yyg->yy_c_buf_p =
|
1811
|
+
yyg->yytext_ptr + yy_amount_of_matched_text;
|
1812
|
+
|
1813
|
+
yy_current_state = yy_get_previous_state( yyscanner );
|
1814
|
+
|
1815
|
+
yy_cp = yyg->yy_c_buf_p;
|
1816
|
+
yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
|
1817
|
+
goto yy_match;
|
1818
|
+
|
1819
|
+
case EOB_ACT_LAST_MATCH:
|
1820
|
+
yyg->yy_c_buf_p =
|
1821
|
+
&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars];
|
1822
|
+
|
1823
|
+
yy_current_state = yy_get_previous_state( yyscanner );
|
1824
|
+
|
1825
|
+
yy_cp = yyg->yy_c_buf_p;
|
1826
|
+
yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
|
1827
|
+
goto yy_find_action;
|
1828
|
+
}
|
1829
|
+
break;
|
1830
|
+
}
|
1831
|
+
|
1832
|
+
default:
|
1833
|
+
YY_FATAL_ERROR(
|
1834
|
+
"fatal flex scanner internal error--no action found" );
|
1835
|
+
} /* end of action switch */
|
1836
|
+
} /* end of scanning one token */
|
1837
|
+
} /* end of yylex */
|
1838
|
+
|
1839
|
+
/* yy_get_next_buffer - try to read in a new buffer
|
1840
|
+
*
|
1841
|
+
* Returns a code representing an action:
|
1842
|
+
* EOB_ACT_LAST_MATCH -
|
1843
|
+
* EOB_ACT_CONTINUE_SCAN - continue scanning from current position
|
1844
|
+
* EOB_ACT_END_OF_FILE - end of file
|
1845
|
+
*/
|
1846
|
+
static int yy_get_next_buffer (yyscan_t yyscanner)
|
1847
|
+
{
|
1848
|
+
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
1849
|
+
register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
|
1850
|
+
register char *source = yyg->yytext_ptr;
|
1851
|
+
register int number_to_move, i;
|
1852
|
+
int ret_val;
|
1853
|
+
|
1854
|
+
if ( yyg->yy_c_buf_p > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] )
|
1855
|
+
YY_FATAL_ERROR(
|
1856
|
+
"fatal flex scanner internal error--end of buffer missed" );
|
1857
|
+
|
1858
|
+
if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
|
1859
|
+
{ /* Don't try to fill the buffer, so this is an EOF. */
|
1860
|
+
if ( yyg->yy_c_buf_p - yyg->yytext_ptr - YY_MORE_ADJ == 1 )
|
1861
|
+
{
|
1862
|
+
/* We matched a single character, the EOB, so
|
1863
|
+
* treat this as a final EOF.
|
1864
|
+
*/
|
1865
|
+
return EOB_ACT_END_OF_FILE;
|
1866
|
+
}
|
1867
|
+
|
1868
|
+
else
|
1869
|
+
{
|
1870
|
+
/* We matched some text prior to the EOB, first
|
1871
|
+
* process it.
|
1872
|
+
*/
|
1873
|
+
return EOB_ACT_LAST_MATCH;
|
1874
|
+
}
|
1875
|
+
}
|
1876
|
+
|
1877
|
+
/* Try to read more data. */
|
1878
|
+
|
1879
|
+
/* First move last chars to start of buffer. */
|
1880
|
+
number_to_move = (int) (yyg->yy_c_buf_p - yyg->yytext_ptr) - 1;
|
1881
|
+
|
1882
|
+
for ( i = 0; i < number_to_move; ++i )
|
1883
|
+
*(dest++) = *(source++);
|
1884
|
+
|
1885
|
+
if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
|
1886
|
+
/* don't do the read, it's not guaranteed to return an EOF,
|
1887
|
+
* just force an EOF
|
1888
|
+
*/
|
1889
|
+
YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars = 0;
|
1890
|
+
|
1891
|
+
else
|
1892
|
+
{
|
1893
|
+
int num_to_read =
|
1894
|
+
YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
|
1895
|
+
|
1896
|
+
while ( num_to_read <= 0 )
|
1897
|
+
{ /* Not enough room in the buffer - grow it. */
|
1898
|
+
|
1899
|
+
/* just a shorter name for the current buffer */
|
1900
|
+
YY_BUFFER_STATE b = YY_CURRENT_BUFFER;
|
1901
|
+
|
1902
|
+
int yy_c_buf_p_offset =
|
1903
|
+
(int) (yyg->yy_c_buf_p - b->yy_ch_buf);
|
1904
|
+
|
1905
|
+
if ( b->yy_is_our_buffer )
|
1906
|
+
{
|
1907
|
+
int new_size = b->yy_buf_size * 2;
|
1908
|
+
|
1909
|
+
if ( new_size <= 0 )
|
1910
|
+
b->yy_buf_size += b->yy_buf_size / 8;
|
1911
|
+
else
|
1912
|
+
b->yy_buf_size *= 2;
|
1913
|
+
|
1914
|
+
b->yy_ch_buf = (char *)
|
1915
|
+
/* Include room in for 2 EOB chars. */
|
1916
|
+
yyrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 ,yyscanner );
|
1917
|
+
}
|
1918
|
+
else
|
1919
|
+
/* Can't grow it, we don't own it. */
|
1920
|
+
b->yy_ch_buf = 0;
|
1921
|
+
|
1922
|
+
if ( ! b->yy_ch_buf )
|
1923
|
+
YY_FATAL_ERROR(
|
1924
|
+
"fatal error - scanner input buffer overflow" );
|
1925
|
+
|
1926
|
+
yyg->yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
|
1927
|
+
|
1928
|
+
num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
|
1929
|
+
number_to_move - 1;
|
1930
|
+
|
1931
|
+
}
|
1932
|
+
|
1933
|
+
if ( num_to_read > YY_READ_BUF_SIZE )
|
1934
|
+
num_to_read = YY_READ_BUF_SIZE;
|
1935
|
+
|
1936
|
+
/* Read in more data. */
|
1937
|
+
YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
|
1938
|
+
yyg->yy_n_chars, (size_t) num_to_read );
|
1939
|
+
|
1940
|
+
YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
|
1941
|
+
}
|
1942
|
+
|
1943
|
+
if ( yyg->yy_n_chars == 0 )
|
1944
|
+
{
|
1945
|
+
if ( number_to_move == YY_MORE_ADJ )
|
1946
|
+
{
|
1947
|
+
ret_val = EOB_ACT_END_OF_FILE;
|
1948
|
+
yyrestart(yyin ,yyscanner);
|
1949
|
+
}
|
1950
|
+
|
1951
|
+
else
|
1952
|
+
{
|
1953
|
+
ret_val = EOB_ACT_LAST_MATCH;
|
1954
|
+
YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
|
1955
|
+
YY_BUFFER_EOF_PENDING;
|
1956
|
+
}
|
1957
|
+
}
|
1958
|
+
|
1959
|
+
else
|
1960
|
+
ret_val = EOB_ACT_CONTINUE_SCAN;
|
1961
|
+
|
1962
|
+
if ((yy_size_t) (yyg->yy_n_chars + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
|
1963
|
+
/* Extend the array by 50%, plus the number we really need. */
|
1964
|
+
yy_size_t new_size = yyg->yy_n_chars + number_to_move + (yyg->yy_n_chars >> 1);
|
1965
|
+
YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size ,yyscanner );
|
1966
|
+
if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
|
1967
|
+
YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
|
1968
|
+
}
|
1969
|
+
|
1970
|
+
yyg->yy_n_chars += number_to_move;
|
1971
|
+
YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] = YY_END_OF_BUFFER_CHAR;
|
1972
|
+
YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
|
1973
|
+
|
1974
|
+
yyg->yytext_ptr = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
|
1975
|
+
|
1976
|
+
return ret_val;
|
1977
|
+
}
|
1978
|
+
|
1979
|
+
/* yy_get_previous_state - get the state just before the EOB char was reached */
|
1980
|
+
|
1981
|
+
static yy_state_type yy_get_previous_state (yyscan_t yyscanner)
|
1982
|
+
{
|
1983
|
+
register yy_state_type yy_current_state;
|
1984
|
+
register char *yy_cp;
|
1985
|
+
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
1986
|
+
|
1987
|
+
yy_current_state = yyg->yy_start;
|
1988
|
+
|
1989
|
+
for ( yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp )
|
1990
|
+
{
|
1991
|
+
register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
|
1992
|
+
if ( yy_accept[yy_current_state] )
|
1993
|
+
{
|
1994
|
+
yyg->yy_last_accepting_state = yy_current_state;
|
1995
|
+
yyg->yy_last_accepting_cpos = yy_cp;
|
1996
|
+
}
|
1997
|
+
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
|
1998
|
+
{
|
1999
|
+
yy_current_state = (int) yy_def[yy_current_state];
|
2000
|
+
if ( yy_current_state >= 574 )
|
2001
|
+
yy_c = yy_meta[(unsigned int) yy_c];
|
2002
|
+
}
|
2003
|
+
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
|
2004
|
+
}
|
2005
|
+
|
2006
|
+
return yy_current_state;
|
2007
|
+
}
|
2008
|
+
|
2009
|
+
/* yy_try_NUL_trans - try to make a transition on the NUL character
|
2010
|
+
*
|
2011
|
+
* synopsis
|
2012
|
+
* next_state = yy_try_NUL_trans( current_state );
|
2013
|
+
*/
|
2014
|
+
static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state , yyscan_t yyscanner)
|
2015
|
+
{
|
2016
|
+
register int yy_is_jam;
|
2017
|
+
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; /* This var may be unused depending upon options. */
|
2018
|
+
register char *yy_cp = yyg->yy_c_buf_p;
|
2019
|
+
|
2020
|
+
register YY_CHAR yy_c = 1;
|
2021
|
+
if ( yy_accept[yy_current_state] )
|
2022
|
+
{
|
2023
|
+
yyg->yy_last_accepting_state = yy_current_state;
|
2024
|
+
yyg->yy_last_accepting_cpos = yy_cp;
|
2025
|
+
}
|
2026
|
+
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
|
2027
|
+
{
|
2028
|
+
yy_current_state = (int) yy_def[yy_current_state];
|
2029
|
+
if ( yy_current_state >= 574 )
|
2030
|
+
yy_c = yy_meta[(unsigned int) yy_c];
|
2031
|
+
}
|
2032
|
+
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
|
2033
|
+
yy_is_jam = (yy_current_state == 573);
|
2034
|
+
|
2035
|
+
return yy_is_jam ? 0 : yy_current_state;
|
2036
|
+
}
|
2037
|
+
|
2038
|
+
#ifndef YY_NO_INPUT
|
2039
|
+
#ifdef __cplusplus
|
2040
|
+
static int yyinput (yyscan_t yyscanner)
|
2041
|
+
#else
|
2042
|
+
static int input (yyscan_t yyscanner)
|
2043
|
+
#endif
|
2044
|
+
|
2045
|
+
{
|
2046
|
+
int c;
|
2047
|
+
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
2048
|
+
|
2049
|
+
*yyg->yy_c_buf_p = yyg->yy_hold_char;
|
2050
|
+
|
2051
|
+
if ( *yyg->yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
|
2052
|
+
{
|
2053
|
+
/* yy_c_buf_p now points to the character we want to return.
|
2054
|
+
* If this occurs *before* the EOB characters, then it's a
|
2055
|
+
* valid NUL; if not, then we've hit the end of the buffer.
|
2056
|
+
*/
|
2057
|
+
if ( yyg->yy_c_buf_p < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] )
|
2058
|
+
/* This was really a NUL. */
|
2059
|
+
*yyg->yy_c_buf_p = '\0';
|
2060
|
+
|
2061
|
+
else
|
2062
|
+
{ /* need more input */
|
2063
|
+
int offset = yyg->yy_c_buf_p - yyg->yytext_ptr;
|
2064
|
+
++yyg->yy_c_buf_p;
|
2065
|
+
|
2066
|
+
switch ( yy_get_next_buffer( yyscanner ) )
|
2067
|
+
{
|
2068
|
+
case EOB_ACT_LAST_MATCH:
|
2069
|
+
/* This happens because yy_g_n_b()
|
2070
|
+
* sees that we've accumulated a
|
2071
|
+
* token and flags that we need to
|
2072
|
+
* try matching the token before
|
2073
|
+
* proceeding. But for input(),
|
2074
|
+
* there's no matching to consider.
|
2075
|
+
* So convert the EOB_ACT_LAST_MATCH
|
2076
|
+
* to EOB_ACT_END_OF_FILE.
|
2077
|
+
*/
|
2078
|
+
|
2079
|
+
/* Reset buffer status. */
|
2080
|
+
yyrestart(yyin ,yyscanner);
|
2081
|
+
|
2082
|
+
/*FALLTHROUGH*/
|
2083
|
+
|
2084
|
+
case EOB_ACT_END_OF_FILE:
|
2085
|
+
{
|
2086
|
+
if ( yywrap(yyscanner ) )
|
2087
|
+
return EOF;
|
2088
|
+
|
2089
|
+
if ( ! yyg->yy_did_buffer_switch_on_eof )
|
2090
|
+
YY_NEW_FILE;
|
2091
|
+
#ifdef __cplusplus
|
2092
|
+
return yyinput(yyscanner);
|
2093
|
+
#else
|
2094
|
+
return input(yyscanner);
|
2095
|
+
#endif
|
2096
|
+
}
|
2097
|
+
|
2098
|
+
case EOB_ACT_CONTINUE_SCAN:
|
2099
|
+
yyg->yy_c_buf_p = yyg->yytext_ptr + offset;
|
2100
|
+
break;
|
2101
|
+
}
|
2102
|
+
}
|
2103
|
+
}
|
2104
|
+
|
2105
|
+
c = *(unsigned char *) yyg->yy_c_buf_p; /* cast for 8-bit char's */
|
2106
|
+
*yyg->yy_c_buf_p = '\0'; /* preserve yytext */
|
2107
|
+
yyg->yy_hold_char = *++yyg->yy_c_buf_p;
|
2108
|
+
|
2109
|
+
return c;
|
2110
|
+
}
|
2111
|
+
#endif /* ifndef YY_NO_INPUT */
|
2112
|
+
|
2113
|
+
/** Immediately switch to a different input stream.
|
2114
|
+
* @param input_file A readable stream.
|
2115
|
+
* @param yyscanner The scanner object.
|
2116
|
+
* @note This function does not reset the start condition to @c INITIAL .
|
2117
|
+
*/
|
2118
|
+
void yyrestart (FILE * input_file , yyscan_t yyscanner)
|
2119
|
+
{
|
2120
|
+
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
2121
|
+
|
2122
|
+
if ( ! YY_CURRENT_BUFFER ){
|
2123
|
+
yyensure_buffer_stack (yyscanner);
|
2124
|
+
YY_CURRENT_BUFFER_LVALUE =
|
2125
|
+
yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner);
|
2126
|
+
}
|
2127
|
+
|
2128
|
+
yy_init_buffer(YY_CURRENT_BUFFER,input_file ,yyscanner);
|
2129
|
+
yy_load_buffer_state(yyscanner );
|
2130
|
+
}
|
2131
|
+
|
2132
|
+
/** Switch to a different input buffer.
|
2133
|
+
* @param new_buffer The new input buffer.
|
2134
|
+
* @param yyscanner The scanner object.
|
2135
|
+
*/
|
2136
|
+
void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner)
|
2137
|
+
{
|
2138
|
+
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
2139
|
+
|
2140
|
+
/* TODO. We should be able to replace this entire function body
|
2141
|
+
* with
|
2142
|
+
* yypop_buffer_state();
|
2143
|
+
* yypush_buffer_state(new_buffer);
|
2144
|
+
*/
|
2145
|
+
yyensure_buffer_stack (yyscanner);
|
2146
|
+
if ( YY_CURRENT_BUFFER == new_buffer )
|
2147
|
+
return;
|
2148
|
+
|
2149
|
+
if ( YY_CURRENT_BUFFER )
|
2150
|
+
{
|
2151
|
+
/* Flush out information for old buffer. */
|
2152
|
+
*yyg->yy_c_buf_p = yyg->yy_hold_char;
|
2153
|
+
YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p;
|
2154
|
+
YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
|
2155
|
+
}
|
2156
|
+
|
2157
|
+
YY_CURRENT_BUFFER_LVALUE = new_buffer;
|
2158
|
+
yy_load_buffer_state(yyscanner );
|
2159
|
+
|
2160
|
+
/* We don't actually know whether we did this switch during
|
2161
|
+
* EOF (yywrap()) processing, but the only time this flag
|
2162
|
+
* is looked at is after yywrap() is called, so it's safe
|
2163
|
+
* to go ahead and always set it.
|
2164
|
+
*/
|
2165
|
+
yyg->yy_did_buffer_switch_on_eof = 1;
|
2166
|
+
}
|
2167
|
+
|
2168
|
+
static void yy_load_buffer_state (yyscan_t yyscanner)
|
2169
|
+
{
|
2170
|
+
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
2171
|
+
yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
|
2172
|
+
yyg->yytext_ptr = yyg->yy_c_buf_p = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
|
2173
|
+
yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
|
2174
|
+
yyg->yy_hold_char = *yyg->yy_c_buf_p;
|
2175
|
+
}
|
2176
|
+
|
2177
|
+
/** Allocate and initialize an input buffer state.
|
2178
|
+
* @param file A readable stream.
|
2179
|
+
* @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
|
2180
|
+
* @param yyscanner The scanner object.
|
2181
|
+
* @return the allocated buffer state.
|
2182
|
+
*/
|
2183
|
+
YY_BUFFER_STATE yy_create_buffer (FILE * file, int size , yyscan_t yyscanner)
|
2184
|
+
{
|
2185
|
+
YY_BUFFER_STATE b;
|
2186
|
+
|
2187
|
+
b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ,yyscanner );
|
2188
|
+
if ( ! b )
|
2189
|
+
YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
|
2190
|
+
|
2191
|
+
b->yy_buf_size = size;
|
2192
|
+
|
2193
|
+
/* yy_ch_buf has to be 2 characters longer than the size given because
|
2194
|
+
* we need to put in 2 end-of-buffer characters.
|
2195
|
+
*/
|
2196
|
+
b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2 ,yyscanner );
|
2197
|
+
if ( ! b->yy_ch_buf )
|
2198
|
+
YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
|
2199
|
+
|
2200
|
+
b->yy_is_our_buffer = 1;
|
2201
|
+
|
2202
|
+
yy_init_buffer(b,file ,yyscanner);
|
2203
|
+
|
2204
|
+
return b;
|
2205
|
+
}
|
2206
|
+
|
2207
|
+
/** Destroy the buffer.
|
2208
|
+
* @param b a buffer created with yy_create_buffer()
|
2209
|
+
* @param yyscanner The scanner object.
|
2210
|
+
*/
|
2211
|
+
void yy_delete_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner)
|
2212
|
+
{
|
2213
|
+
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
2214
|
+
|
2215
|
+
if ( ! b )
|
2216
|
+
return;
|
2217
|
+
|
2218
|
+
if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
|
2219
|
+
YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
|
2220
|
+
|
2221
|
+
if ( b->yy_is_our_buffer )
|
2222
|
+
yyfree((void *) b->yy_ch_buf ,yyscanner );
|
2223
|
+
|
2224
|
+
yyfree((void *) b ,yyscanner );
|
2225
|
+
}
|
2226
|
+
|
2227
|
+
#ifndef __cplusplus
|
2228
|
+
extern int isatty (int );
|
2229
|
+
#endif /* __cplusplus */
|
2230
|
+
|
2231
|
+
/* Initializes or reinitializes a buffer.
|
2232
|
+
* This function is sometimes called more than once on the same buffer,
|
2233
|
+
* such as during a yyrestart() or at EOF.
|
2234
|
+
*/
|
2235
|
+
static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file , yyscan_t yyscanner)
|
2236
|
+
|
2237
|
+
{
|
2238
|
+
int oerrno = errno;
|
2239
|
+
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
2240
|
+
|
2241
|
+
yy_flush_buffer(b ,yyscanner);
|
2242
|
+
|
2243
|
+
b->yy_input_file = file;
|
2244
|
+
b->yy_fill_buffer = 1;
|
2245
|
+
|
2246
|
+
/* If b is the current buffer, then yy_init_buffer was _probably_
|
2247
|
+
* called from yyrestart() or through yy_get_next_buffer.
|
2248
|
+
* In that case, we don't want to reset the lineno or column.
|
2249
|
+
*/
|
2250
|
+
if (b != YY_CURRENT_BUFFER){
|
2251
|
+
b->yy_bs_lineno = 1;
|
2252
|
+
b->yy_bs_column = 0;
|
2253
|
+
}
|
2254
|
+
|
2255
|
+
b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
|
2256
|
+
|
2257
|
+
errno = oerrno;
|
2258
|
+
}
|
2259
|
+
|
2260
|
+
/** Discard all buffered characters. On the next scan, YY_INPUT will be called.
|
2261
|
+
* @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
|
2262
|
+
* @param yyscanner The scanner object.
|
2263
|
+
*/
|
2264
|
+
void yy_flush_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner)
|
2265
|
+
{
|
2266
|
+
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
2267
|
+
if ( ! b )
|
2268
|
+
return;
|
2269
|
+
|
2270
|
+
b->yy_n_chars = 0;
|
2271
|
+
|
2272
|
+
/* We always need two end-of-buffer characters. The first causes
|
2273
|
+
* a transition to the end-of-buffer state. The second causes
|
2274
|
+
* a jam in that state.
|
2275
|
+
*/
|
2276
|
+
b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
|
2277
|
+
b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
|
2278
|
+
|
2279
|
+
b->yy_buf_pos = &b->yy_ch_buf[0];
|
2280
|
+
|
2281
|
+
b->yy_at_bol = 1;
|
2282
|
+
b->yy_buffer_status = YY_BUFFER_NEW;
|
2283
|
+
|
2284
|
+
if ( b == YY_CURRENT_BUFFER )
|
2285
|
+
yy_load_buffer_state(yyscanner );
|
2286
|
+
}
|
2287
|
+
|
2288
|
+
/** Pushes the new state onto the stack. The new state becomes
|
2289
|
+
* the current state. This function will allocate the stack
|
2290
|
+
* if necessary.
|
2291
|
+
* @param new_buffer The new state.
|
2292
|
+
* @param yyscanner The scanner object.
|
2293
|
+
*/
|
2294
|
+
void yypush_buffer_state (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner)
|
2295
|
+
{
|
2296
|
+
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
2297
|
+
if (new_buffer == NULL)
|
2298
|
+
return;
|
2299
|
+
|
2300
|
+
yyensure_buffer_stack(yyscanner);
|
2301
|
+
|
2302
|
+
/* This block is copied from yy_switch_to_buffer. */
|
2303
|
+
if ( YY_CURRENT_BUFFER )
|
2304
|
+
{
|
2305
|
+
/* Flush out information for old buffer. */
|
2306
|
+
*yyg->yy_c_buf_p = yyg->yy_hold_char;
|
2307
|
+
YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p;
|
2308
|
+
YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
|
2309
|
+
}
|
2310
|
+
|
2311
|
+
/* Only push if top exists. Otherwise, replace top. */
|
2312
|
+
if (YY_CURRENT_BUFFER)
|
2313
|
+
yyg->yy_buffer_stack_top++;
|
2314
|
+
YY_CURRENT_BUFFER_LVALUE = new_buffer;
|
2315
|
+
|
2316
|
+
/* copied from yy_switch_to_buffer. */
|
2317
|
+
yy_load_buffer_state(yyscanner );
|
2318
|
+
yyg->yy_did_buffer_switch_on_eof = 1;
|
2319
|
+
}
|
2320
|
+
|
2321
|
+
/** Removes and deletes the top of the stack, if present.
|
2322
|
+
* The next element becomes the new top.
|
2323
|
+
* @param yyscanner The scanner object.
|
2324
|
+
*/
|
2325
|
+
void yypop_buffer_state (yyscan_t yyscanner)
|
2326
|
+
{
|
2327
|
+
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
2328
|
+
if (!YY_CURRENT_BUFFER)
|
2329
|
+
return;
|
2330
|
+
|
2331
|
+
yy_delete_buffer(YY_CURRENT_BUFFER ,yyscanner);
|
2332
|
+
YY_CURRENT_BUFFER_LVALUE = NULL;
|
2333
|
+
if (yyg->yy_buffer_stack_top > 0)
|
2334
|
+
--yyg->yy_buffer_stack_top;
|
2335
|
+
|
2336
|
+
if (YY_CURRENT_BUFFER) {
|
2337
|
+
yy_load_buffer_state(yyscanner );
|
2338
|
+
yyg->yy_did_buffer_switch_on_eof = 1;
|
2339
|
+
}
|
2340
|
+
}
|
2341
|
+
|
2342
|
+
/* Allocates the stack if it does not exist.
|
2343
|
+
* Guarantees space for at least one push.
|
2344
|
+
*/
|
2345
|
+
static void yyensure_buffer_stack (yyscan_t yyscanner)
|
2346
|
+
{
|
2347
|
+
int num_to_alloc;
|
2348
|
+
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
2349
|
+
|
2350
|
+
if (!yyg->yy_buffer_stack) {
|
2351
|
+
|
2352
|
+
/* First allocation is just for 2 elements, since we don't know if this
|
2353
|
+
* scanner will even need a stack. We use 2 instead of 1 to avoid an
|
2354
|
+
* immediate realloc on the next call.
|
2355
|
+
*/
|
2356
|
+
num_to_alloc = 1;
|
2357
|
+
yyg->yy_buffer_stack = (struct yy_buffer_state**)yyalloc
|
2358
|
+
(num_to_alloc * sizeof(struct yy_buffer_state*)
|
2359
|
+
, yyscanner);
|
2360
|
+
if ( ! yyg->yy_buffer_stack )
|
2361
|
+
YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
|
2362
|
+
|
2363
|
+
memset(yyg->yy_buffer_stack, 0, num_to_alloc * sizeof(struct yy_buffer_state*));
|
2364
|
+
|
2365
|
+
yyg->yy_buffer_stack_max = num_to_alloc;
|
2366
|
+
yyg->yy_buffer_stack_top = 0;
|
2367
|
+
return;
|
2368
|
+
}
|
2369
|
+
|
2370
|
+
if (yyg->yy_buffer_stack_top >= (yyg->yy_buffer_stack_max) - 1){
|
2371
|
+
|
2372
|
+
/* Increase the buffer to prepare for a possible push. */
|
2373
|
+
int grow_size = 8 /* arbitrary grow size */;
|
2374
|
+
|
2375
|
+
num_to_alloc = yyg->yy_buffer_stack_max + grow_size;
|
2376
|
+
yyg->yy_buffer_stack = (struct yy_buffer_state**)yyrealloc
|
2377
|
+
(yyg->yy_buffer_stack,
|
2378
|
+
num_to_alloc * sizeof(struct yy_buffer_state*)
|
2379
|
+
, yyscanner);
|
2380
|
+
if ( ! yyg->yy_buffer_stack )
|
2381
|
+
YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
|
2382
|
+
|
2383
|
+
/* zero only the new slots.*/
|
2384
|
+
memset(yyg->yy_buffer_stack + yyg->yy_buffer_stack_max, 0, grow_size * sizeof(struct yy_buffer_state*));
|
2385
|
+
yyg->yy_buffer_stack_max = num_to_alloc;
|
2386
|
+
}
|
2387
|
+
}
|
2388
|
+
|
2389
|
+
/** Setup the input buffer state to scan directly from a user-specified character buffer.
|
2390
|
+
* @param base the character buffer
|
2391
|
+
* @param size the size in bytes of the character buffer
|
2392
|
+
* @param yyscanner The scanner object.
|
2393
|
+
* @return the newly allocated buffer state object.
|
2394
|
+
*/
|
2395
|
+
YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size , yyscan_t yyscanner)
|
2396
|
+
{
|
2397
|
+
YY_BUFFER_STATE b;
|
2398
|
+
|
2399
|
+
if ( size < 2 ||
|
2400
|
+
base[size-2] != YY_END_OF_BUFFER_CHAR ||
|
2401
|
+
base[size-1] != YY_END_OF_BUFFER_CHAR )
|
2402
|
+
/* They forgot to leave room for the EOB's. */
|
2403
|
+
return 0;
|
2404
|
+
|
2405
|
+
b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ,yyscanner );
|
2406
|
+
if ( ! b )
|
2407
|
+
YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
|
2408
|
+
|
2409
|
+
b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
|
2410
|
+
b->yy_buf_pos = b->yy_ch_buf = base;
|
2411
|
+
b->yy_is_our_buffer = 0;
|
2412
|
+
b->yy_input_file = 0;
|
2413
|
+
b->yy_n_chars = b->yy_buf_size;
|
2414
|
+
b->yy_is_interactive = 0;
|
2415
|
+
b->yy_at_bol = 1;
|
2416
|
+
b->yy_fill_buffer = 0;
|
2417
|
+
b->yy_buffer_status = YY_BUFFER_NEW;
|
2418
|
+
|
2419
|
+
yy_switch_to_buffer(b ,yyscanner );
|
2420
|
+
|
2421
|
+
return b;
|
2422
|
+
}
|
2423
|
+
|
2424
|
+
/** Setup the input buffer state to scan a string. The next call to yylex() will
|
2425
|
+
* scan from a @e copy of @a str.
|
2426
|
+
* @param yystr a NUL-terminated string to scan
|
2427
|
+
* @param yyscanner The scanner object.
|
2428
|
+
* @return the newly allocated buffer state object.
|
2429
|
+
* @note If you want to scan bytes that may contain NUL values, then use
|
2430
|
+
* yy_scan_bytes() instead.
|
2431
|
+
*/
|
2432
|
+
YY_BUFFER_STATE yy_scan_string (yyconst char * yystr , yyscan_t yyscanner)
|
2433
|
+
{
|
2434
|
+
|
2435
|
+
return yy_scan_bytes(yystr,strlen(yystr) ,yyscanner);
|
2436
|
+
}
|
2437
|
+
|
2438
|
+
/** Setup the input buffer state to scan the given bytes. The next call to yylex() will
|
2439
|
+
* scan from a @e copy of @a bytes.
|
2440
|
+
* @param yybytes the byte buffer to scan
|
2441
|
+
* @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
|
2442
|
+
* @param yyscanner The scanner object.
|
2443
|
+
* @return the newly allocated buffer state object.
|
2444
|
+
*/
|
2445
|
+
YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, int _yybytes_len , yyscan_t yyscanner)
|
2446
|
+
{
|
2447
|
+
YY_BUFFER_STATE b;
|
2448
|
+
char *buf;
|
2449
|
+
yy_size_t n;
|
2450
|
+
int i;
|
2451
|
+
|
2452
|
+
/* Get memory for full buffer, including space for trailing EOB's. */
|
2453
|
+
n = _yybytes_len + 2;
|
2454
|
+
buf = (char *) yyalloc(n ,yyscanner );
|
2455
|
+
if ( ! buf )
|
2456
|
+
YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
|
2457
|
+
|
2458
|
+
for ( i = 0; i < _yybytes_len; ++i )
|
2459
|
+
buf[i] = yybytes[i];
|
2460
|
+
|
2461
|
+
buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
|
2462
|
+
|
2463
|
+
b = yy_scan_buffer(buf,n ,yyscanner);
|
2464
|
+
if ( ! b )
|
2465
|
+
YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
|
2466
|
+
|
2467
|
+
/* It's okay to grow etc. this buffer, and we should throw it
|
2468
|
+
* away when we're done.
|
2469
|
+
*/
|
2470
|
+
b->yy_is_our_buffer = 1;
|
2471
|
+
|
2472
|
+
return b;
|
2473
|
+
}
|
2474
|
+
|
2475
|
+
#ifndef YY_EXIT_FAILURE
|
2476
|
+
#define YY_EXIT_FAILURE 2
|
2477
|
+
#endif
|
2478
|
+
|
2479
|
+
static void yy_fatal_error (yyconst char* msg , yyscan_t yyscanner)
|
2480
|
+
{
|
2481
|
+
(void) fprintf( stderr, "%s\n", msg );
|
2482
|
+
exit( YY_EXIT_FAILURE );
|
2483
|
+
}
|
2484
|
+
|
2485
|
+
/* Redefine yyless() so it works in section 3 code. */
|
2486
|
+
|
2487
|
+
#undef yyless
|
2488
|
+
#define yyless(n) \
|
2489
|
+
do \
|
2490
|
+
{ \
|
2491
|
+
/* Undo effects of setting up yytext. */ \
|
2492
|
+
int yyless_macro_arg = (n); \
|
2493
|
+
YY_LESS_LINENO(yyless_macro_arg);\
|
2494
|
+
yytext[yyleng] = yyg->yy_hold_char; \
|
2495
|
+
yyg->yy_c_buf_p = yytext + yyless_macro_arg; \
|
2496
|
+
yyg->yy_hold_char = *yyg->yy_c_buf_p; \
|
2497
|
+
*yyg->yy_c_buf_p = '\0'; \
|
2498
|
+
yyleng = yyless_macro_arg; \
|
2499
|
+
} \
|
2500
|
+
while ( 0 )
|
2501
|
+
|
2502
|
+
/* Accessor methods (get/set functions) to struct members. */
|
2503
|
+
|
2504
|
+
/** Get the user-defined data for this scanner.
|
2505
|
+
* @param yyscanner The scanner object.
|
2506
|
+
*/
|
2507
|
+
YY_EXTRA_TYPE yyget_extra (yyscan_t yyscanner)
|
2508
|
+
{
|
2509
|
+
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
2510
|
+
return yyextra;
|
2511
|
+
}
|
2512
|
+
|
2513
|
+
/** Get the current line number.
|
2514
|
+
* @param yyscanner The scanner object.
|
2515
|
+
*/
|
2516
|
+
int yyget_lineno (yyscan_t yyscanner)
|
2517
|
+
{
|
2518
|
+
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
2519
|
+
|
2520
|
+
if (! YY_CURRENT_BUFFER)
|
2521
|
+
return 0;
|
2522
|
+
|
2523
|
+
return yylineno;
|
2524
|
+
}
|
2525
|
+
|
2526
|
+
/** Get the current column number.
|
2527
|
+
* @param yyscanner The scanner object.
|
2528
|
+
*/
|
2529
|
+
int yyget_column (yyscan_t yyscanner)
|
2530
|
+
{
|
2531
|
+
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
2532
|
+
|
2533
|
+
if (! YY_CURRENT_BUFFER)
|
2534
|
+
return 0;
|
2535
|
+
|
2536
|
+
return yycolumn;
|
2537
|
+
}
|
2538
|
+
|
2539
|
+
/** Get the input stream.
|
2540
|
+
* @param yyscanner The scanner object.
|
2541
|
+
*/
|
2542
|
+
FILE *yyget_in (yyscan_t yyscanner)
|
2543
|
+
{
|
2544
|
+
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
2545
|
+
return yyin;
|
2546
|
+
}
|
2547
|
+
|
2548
|
+
/** Get the output stream.
|
2549
|
+
* @param yyscanner The scanner object.
|
2550
|
+
*/
|
2551
|
+
FILE *yyget_out (yyscan_t yyscanner)
|
2552
|
+
{
|
2553
|
+
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
2554
|
+
return yyout;
|
2555
|
+
}
|
2556
|
+
|
2557
|
+
/** Get the length of the current token.
|
2558
|
+
* @param yyscanner The scanner object.
|
2559
|
+
*/
|
2560
|
+
int yyget_leng (yyscan_t yyscanner)
|
2561
|
+
{
|
2562
|
+
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
2563
|
+
return yyleng;
|
2564
|
+
}
|
2565
|
+
|
2566
|
+
/** Get the current token.
|
2567
|
+
* @param yyscanner The scanner object.
|
2568
|
+
*/
|
2569
|
+
|
2570
|
+
char *yyget_text (yyscan_t yyscanner)
|
2571
|
+
{
|
2572
|
+
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
2573
|
+
return yytext;
|
2574
|
+
}
|
2575
|
+
|
2576
|
+
/** Set the user-defined data. This data is never touched by the scanner.
|
2577
|
+
* @param user_defined The data to be associated with this scanner.
|
2578
|
+
* @param yyscanner The scanner object.
|
2579
|
+
*/
|
2580
|
+
void yyset_extra (YY_EXTRA_TYPE user_defined , yyscan_t yyscanner)
|
2581
|
+
{
|
2582
|
+
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
2583
|
+
yyextra = user_defined ;
|
2584
|
+
}
|
2585
|
+
|
2586
|
+
/** Set the current line number.
|
2587
|
+
* @param line_number
|
2588
|
+
* @param yyscanner The scanner object.
|
2589
|
+
*/
|
2590
|
+
void yyset_lineno (int line_number , yyscan_t yyscanner)
|
2591
|
+
{
|
2592
|
+
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
2593
|
+
|
2594
|
+
/* lineno is only valid if an input buffer exists. */
|
2595
|
+
if (! YY_CURRENT_BUFFER )
|
2596
|
+
yy_fatal_error( "yyset_lineno called with no buffer" , yyscanner);
|
2597
|
+
|
2598
|
+
yylineno = line_number;
|
2599
|
+
}
|
2600
|
+
|
2601
|
+
/** Set the current column.
|
2602
|
+
* @param line_number
|
2603
|
+
* @param yyscanner The scanner object.
|
2604
|
+
*/
|
2605
|
+
void yyset_column (int column_no , yyscan_t yyscanner)
|
2606
|
+
{
|
2607
|
+
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
2608
|
+
|
2609
|
+
/* column is only valid if an input buffer exists. */
|
2610
|
+
if (! YY_CURRENT_BUFFER )
|
2611
|
+
yy_fatal_error( "yyset_column called with no buffer" , yyscanner);
|
2612
|
+
|
2613
|
+
yycolumn = column_no;
|
2614
|
+
}
|
2615
|
+
|
2616
|
+
/** Set the input stream. This does not discard the current
|
2617
|
+
* input buffer.
|
2618
|
+
* @param in_str A readable stream.
|
2619
|
+
* @param yyscanner The scanner object.
|
2620
|
+
* @see yy_switch_to_buffer
|
2621
|
+
*/
|
2622
|
+
void yyset_in (FILE * in_str , yyscan_t yyscanner)
|
2623
|
+
{
|
2624
|
+
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
2625
|
+
yyin = in_str ;
|
2626
|
+
}
|
2627
|
+
|
2628
|
+
void yyset_out (FILE * out_str , yyscan_t yyscanner)
|
2629
|
+
{
|
2630
|
+
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
2631
|
+
yyout = out_str ;
|
2632
|
+
}
|
2633
|
+
|
2634
|
+
int yyget_debug (yyscan_t yyscanner)
|
2635
|
+
{
|
2636
|
+
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
2637
|
+
return yy_flex_debug;
|
2638
|
+
}
|
2639
|
+
|
2640
|
+
void yyset_debug (int bdebug , yyscan_t yyscanner)
|
2641
|
+
{
|
2642
|
+
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
2643
|
+
yy_flex_debug = bdebug ;
|
2644
|
+
}
|
2645
|
+
|
2646
|
+
/* Accessor methods for yylval and yylloc */
|
2647
|
+
|
2648
|
+
YYSTYPE * yyget_lval (yyscan_t yyscanner)
|
2649
|
+
{
|
2650
|
+
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
2651
|
+
return yylval;
|
2652
|
+
}
|
2653
|
+
|
2654
|
+
void yyset_lval (YYSTYPE * yylval_param , yyscan_t yyscanner)
|
2655
|
+
{
|
2656
|
+
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
2657
|
+
yylval = yylval_param;
|
2658
|
+
}
|
2659
|
+
|
2660
|
+
YYLTYPE *yyget_lloc (yyscan_t yyscanner)
|
2661
|
+
{
|
2662
|
+
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
2663
|
+
return yylloc;
|
2664
|
+
}
|
2665
|
+
|
2666
|
+
void yyset_lloc (YYLTYPE * yylloc_param , yyscan_t yyscanner)
|
2667
|
+
{
|
2668
|
+
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
2669
|
+
yylloc = yylloc_param;
|
2670
|
+
}
|
2671
|
+
|
2672
|
+
/* User-visible API */
|
2673
|
+
|
2674
|
+
/* yylex_init is special because it creates the scanner itself, so it is
|
2675
|
+
* the ONLY reentrant function that doesn't take the scanner as the last argument.
|
2676
|
+
* That's why we explicitly handle the declaration, instead of using our macros.
|
2677
|
+
*/
|
2678
|
+
|
2679
|
+
int yylex_init(yyscan_t* ptr_yy_globals)
|
2680
|
+
|
2681
|
+
{
|
2682
|
+
if (ptr_yy_globals == NULL){
|
2683
|
+
errno = EINVAL;
|
2684
|
+
return 1;
|
2685
|
+
}
|
2686
|
+
|
2687
|
+
*ptr_yy_globals = (yyscan_t) yyalloc ( sizeof( struct yyguts_t ), NULL );
|
2688
|
+
|
2689
|
+
if (*ptr_yy_globals == NULL){
|
2690
|
+
errno = ENOMEM;
|
2691
|
+
return 1;
|
2692
|
+
}
|
2693
|
+
|
2694
|
+
/* By setting to 0xAA, we expose bugs in yy_init_globals. Leave at 0x00 for releases. */
|
2695
|
+
memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t));
|
2696
|
+
|
2697
|
+
return yy_init_globals ( *ptr_yy_globals );
|
2698
|
+
}
|
2699
|
+
|
2700
|
+
/* yylex_init_extra has the same functionality as yylex_init, but follows the
|
2701
|
+
* convention of taking the scanner as the last argument. Note however, that
|
2702
|
+
* this is a *pointer* to a scanner, as it will be allocated by this call (and
|
2703
|
+
* is the reason, too, why this function also must handle its own declaration).
|
2704
|
+
* The user defined value in the first argument will be available to yyalloc in
|
2705
|
+
* the yyextra field.
|
2706
|
+
*/
|
2707
|
+
|
2708
|
+
int yylex_init_extra(YY_EXTRA_TYPE yy_user_defined,yyscan_t* ptr_yy_globals )
|
2709
|
+
|
2710
|
+
{
|
2711
|
+
struct yyguts_t dummy_yyguts;
|
2712
|
+
|
2713
|
+
yyset_extra (yy_user_defined, &dummy_yyguts);
|
2714
|
+
|
2715
|
+
if (ptr_yy_globals == NULL){
|
2716
|
+
errno = EINVAL;
|
2717
|
+
return 1;
|
2718
|
+
}
|
2719
|
+
|
2720
|
+
*ptr_yy_globals = (yyscan_t) yyalloc ( sizeof( struct yyguts_t ), &dummy_yyguts );
|
2721
|
+
|
2722
|
+
if (*ptr_yy_globals == NULL){
|
2723
|
+
errno = ENOMEM;
|
2724
|
+
return 1;
|
2725
|
+
}
|
2726
|
+
|
2727
|
+
/* By setting to 0xAA, we expose bugs in
|
2728
|
+
yy_init_globals. Leave at 0x00 for releases. */
|
2729
|
+
memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t));
|
2730
|
+
|
2731
|
+
yyset_extra (yy_user_defined, *ptr_yy_globals);
|
2732
|
+
|
2733
|
+
return yy_init_globals ( *ptr_yy_globals );
|
2734
|
+
}
|
2735
|
+
|
2736
|
+
static int yy_init_globals (yyscan_t yyscanner)
|
2737
|
+
{
|
2738
|
+
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
2739
|
+
/* Initialization is the same as for the non-reentrant scanner.
|
2740
|
+
* This function is called from yylex_destroy(), so don't allocate here.
|
2741
|
+
*/
|
2742
|
+
|
2743
|
+
yyg->yy_buffer_stack = 0;
|
2744
|
+
yyg->yy_buffer_stack_top = 0;
|
2745
|
+
yyg->yy_buffer_stack_max = 0;
|
2746
|
+
yyg->yy_c_buf_p = (char *) 0;
|
2747
|
+
yyg->yy_init = 0;
|
2748
|
+
yyg->yy_start = 0;
|
2749
|
+
|
2750
|
+
yyg->yy_start_stack_ptr = 0;
|
2751
|
+
yyg->yy_start_stack_depth = 0;
|
2752
|
+
yyg->yy_start_stack = NULL;
|
2753
|
+
|
2754
|
+
/* Defined in main.c */
|
2755
|
+
#ifdef YY_STDINIT
|
2756
|
+
yyin = stdin;
|
2757
|
+
yyout = stdout;
|
2758
|
+
#else
|
2759
|
+
yyin = (FILE *) 0;
|
2760
|
+
yyout = (FILE *) 0;
|
2761
|
+
#endif
|
2762
|
+
|
2763
|
+
/* For future reference: Set errno on error, since we are called by
|
2764
|
+
* yylex_init()
|
2765
|
+
*/
|
2766
|
+
return 0;
|
2767
|
+
}
|
2768
|
+
|
2769
|
+
/* yylex_destroy is for both reentrant and non-reentrant scanners. */
|
2770
|
+
int yylex_destroy (yyscan_t yyscanner)
|
2771
|
+
{
|
2772
|
+
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
2773
|
+
|
2774
|
+
/* Pop the buffer stack, destroying each element. */
|
2775
|
+
while(YY_CURRENT_BUFFER){
|
2776
|
+
yy_delete_buffer(YY_CURRENT_BUFFER ,yyscanner );
|
2777
|
+
YY_CURRENT_BUFFER_LVALUE = NULL;
|
2778
|
+
yypop_buffer_state(yyscanner);
|
2779
|
+
}
|
2780
|
+
|
2781
|
+
/* Destroy the stack itself. */
|
2782
|
+
yyfree(yyg->yy_buffer_stack ,yyscanner);
|
2783
|
+
yyg->yy_buffer_stack = NULL;
|
2784
|
+
|
2785
|
+
/* Destroy the start condition stack. */
|
2786
|
+
yyfree(yyg->yy_start_stack ,yyscanner );
|
2787
|
+
yyg->yy_start_stack = NULL;
|
2788
|
+
|
2789
|
+
/* Reset the globals. This is important in a non-reentrant scanner so the next time
|
2790
|
+
* yylex() is called, initialization will occur. */
|
2791
|
+
yy_init_globals( yyscanner);
|
2792
|
+
|
2793
|
+
/* Destroy the main struct (reentrant only). */
|
2794
|
+
yyfree ( yyscanner , yyscanner );
|
2795
|
+
yyscanner = NULL;
|
2796
|
+
return 0;
|
2797
|
+
}
|
2798
|
+
|
2799
|
+
/*
|
2800
|
+
* Internal utility routines.
|
2801
|
+
*/
|
2802
|
+
|
2803
|
+
#ifndef yytext_ptr
|
2804
|
+
static void yy_flex_strncpy (char* s1, yyconst char * s2, int n , yyscan_t yyscanner)
|
2805
|
+
{
|
2806
|
+
register int i;
|
2807
|
+
for ( i = 0; i < n; ++i )
|
2808
|
+
s1[i] = s2[i];
|
2809
|
+
}
|
2810
|
+
#endif
|
2811
|
+
|
2812
|
+
#ifdef YY_NEED_STRLEN
|
2813
|
+
static int yy_flex_strlen (yyconst char * s , yyscan_t yyscanner)
|
2814
|
+
{
|
2815
|
+
register int n;
|
2816
|
+
for ( n = 0; s[n]; ++n )
|
2817
|
+
;
|
2818
|
+
|
2819
|
+
return n;
|
2820
|
+
}
|
2821
|
+
#endif
|
2822
|
+
|
2823
|
+
void *yyalloc (yy_size_t size , yyscan_t yyscanner)
|
2824
|
+
{
|
2825
|
+
return (void *) malloc( size );
|
2826
|
+
}
|
2827
|
+
|
2828
|
+
void *yyrealloc (void * ptr, yy_size_t size , yyscan_t yyscanner)
|
2829
|
+
{
|
2830
|
+
/* The cast to (char *) in the following accommodates both
|
2831
|
+
* implementations that use char* generic pointers, and those
|
2832
|
+
* that use void* generic pointers. It works with the latter
|
2833
|
+
* because both ANSI C and C++ allow castless assignment from
|
2834
|
+
* any pointer type to void*, and deal with argument conversions
|
2835
|
+
* as though doing an assignment.
|
2836
|
+
*/
|
2837
|
+
return (void *) realloc( (char *) ptr, size );
|
2838
|
+
}
|
2839
|
+
|
2840
|
+
void yyfree (void * ptr , yyscan_t yyscanner)
|
2841
|
+
{
|
2842
|
+
free( (char *) ptr ); /* see yyrealloc() for (char *) cast */
|
2843
|
+
}
|
2844
|
+
|
2845
|
+
#define YYTABLES_NAME "yytables"
|
2846
|
+
|
2847
|
+
#line 178 "ext/retro_idl/asn/ext_parser/ext_parser.l"
|
2848
|
+
|
2849
|
+
|
2850
|
+
|
2851
|
+
/* static functions ***************************************************/
|
2852
|
+
|
2853
|
+
static void updateLocation(YYLTYPE *loc, const char *text, int textLen)
|
2854
|
+
{
|
2855
|
+
int i;
|
2856
|
+
|
2857
|
+
loc->first_line = loc->last_line;
|
2858
|
+
loc->first_column = loc->last_column;
|
2859
|
+
|
2860
|
+
for(i=0; i < textLen; i++){
|
2861
|
+
|
2862
|
+
if(text[i] == '\n'){
|
2863
|
+
|
2864
|
+
loc->last_line++;
|
2865
|
+
loc->last_column = 0;
|
2866
|
+
}
|
2867
|
+
else{
|
2868
|
+
|
2869
|
+
loc->last_column++;
|
2870
|
+
}
|
2871
|
+
}
|
2872
|
+
}
|
2873
|
+
|