Lines 1-85
Link Here
|
1 |
|
|
|
2 |
#line 3 "lex.yy.c" |
3 |
|
4 |
#define YY_INT_ALIGNED short int |
5 |
|
6 |
/* A lexical scanner generated by flex */ |
1 |
/* A lexical scanner generated by flex */ |
7 |
|
2 |
|
|
|
3 |
/* Scanner skeleton version: |
4 |
* $Header: /home/daffy/u0/vern/flex/RCS/flex.skl,v 2.91 96/09/10 16:58:48 vern Exp $ |
5 |
*/ |
6 |
|
8 |
#define FLEX_SCANNER |
7 |
#define FLEX_SCANNER |
9 |
#define YY_FLEX_MAJOR_VERSION 2 |
8 |
#define YY_FLEX_MAJOR_VERSION 2 |
10 |
#define YY_FLEX_MINOR_VERSION 5 |
9 |
#define YY_FLEX_MINOR_VERSION 5 |
11 |
#define YY_FLEX_SUBMINOR_VERSION 31 |
|
|
12 |
#if YY_FLEX_SUBMINOR_VERSION > 0 |
13 |
#define FLEX_BETA |
14 |
#endif |
15 |
|
10 |
|
16 |
/* First, we deal with platform-specific or compiler-specific issues. */ |
|
|
17 |
|
18 |
/* begin standard C headers. */ |
19 |
#include <stdio.h> |
11 |
#include <stdio.h> |
20 |
#include <string.h> |
12 |
#include <unistd.h> |
21 |
#include <errno.h> |
|
|
22 |
#include <stdlib.h> |
23 |
|
24 |
/* end standard C headers. */ |
25 |
|
26 |
/* flex integer type definitions */ |
27 |
|
28 |
#ifndef FLEXINT_H |
29 |
#define FLEXINT_H |
30 |
|
31 |
/* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */ |
32 |
|
13 |
|
33 |
#if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L |
|
|
34 |
#include <inttypes.h> |
35 |
typedef int8_t flex_int8_t; |
36 |
typedef uint8_t flex_uint8_t; |
37 |
typedef int16_t flex_int16_t; |
38 |
typedef uint16_t flex_uint16_t; |
39 |
typedef int32_t flex_int32_t; |
40 |
typedef uint32_t flex_uint32_t; |
41 |
#else |
42 |
typedef signed char flex_int8_t; |
43 |
typedef short int flex_int16_t; |
44 |
typedef int flex_int32_t; |
45 |
typedef unsigned char flex_uint8_t; |
46 |
typedef unsigned short int flex_uint16_t; |
47 |
typedef unsigned int flex_uint32_t; |
48 |
#endif /* ! C99 */ |
49 |
|
14 |
|
50 |
/* Limits of integral types. */ |
15 |
/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */ |
51 |
#ifndef INT8_MIN |
16 |
#ifdef c_plusplus |
52 |
#define INT8_MIN (-128) |
17 |
#ifndef __cplusplus |
53 |
#endif |
18 |
#define __cplusplus |
54 |
#ifndef INT16_MIN |
|
|
55 |
#define INT16_MIN (-32767-1) |
56 |
#endif |
57 |
#ifndef INT32_MIN |
58 |
#define INT32_MIN (-2147483647-1) |
59 |
#endif |
60 |
#ifndef INT8_MAX |
61 |
#define INT8_MAX (127) |
62 |
#endif |
63 |
#ifndef INT16_MAX |
64 |
#define INT16_MAX (32767) |
65 |
#endif |
66 |
#ifndef INT32_MAX |
67 |
#define INT32_MAX (2147483647) |
68 |
#endif |
69 |
#ifndef UINT8_MAX |
70 |
#define UINT8_MAX (255U) |
71 |
#endif |
72 |
#ifndef UINT16_MAX |
73 |
#define UINT16_MAX (65535U) |
74 |
#endif |
19 |
#endif |
75 |
#ifndef UINT32_MAX |
|
|
76 |
#define UINT32_MAX (4294967295U) |
77 |
#endif |
20 |
#endif |
78 |
|
21 |
|
79 |
#endif /* ! FLEXINT_H */ |
|
|
80 |
|
22 |
|
81 |
#ifdef __cplusplus |
23 |
#ifdef __cplusplus |
82 |
|
24 |
|
|
|
25 |
#include <stdlib.h> |
26 |
|
27 |
/* Use prototypes in function declarations. */ |
28 |
#define YY_USE_PROTOS |
29 |
|
83 |
/* The "const" storage-class-modifier is valid. */ |
30 |
/* The "const" storage-class-modifier is valid. */ |
84 |
#define YY_USE_CONST |
31 |
#define YY_USE_CONST |
85 |
|
32 |
|
Lines 87-103
Link Here
|
87 |
|
34 |
|
88 |
#if __STDC__ |
35 |
#if __STDC__ |
89 |
|
36 |
|
|
|
37 |
#define YY_USE_PROTOS |
90 |
#define YY_USE_CONST |
38 |
#define YY_USE_CONST |
91 |
|
39 |
|
92 |
#endif /* __STDC__ */ |
40 |
#endif /* __STDC__ */ |
93 |
#endif /* ! __cplusplus */ |
41 |
#endif /* ! __cplusplus */ |
94 |
|
42 |
|
|
|
43 |
#ifdef __TURBOC__ |
44 |
#pragma warn -rch |
45 |
#pragma warn -use |
46 |
#include <io.h> |
47 |
#include <stdlib.h> |
48 |
#define YY_USE_CONST |
49 |
#define YY_USE_PROTOS |
50 |
#endif |
51 |
|
95 |
#ifdef YY_USE_CONST |
52 |
#ifdef YY_USE_CONST |
96 |
#define yyconst const |
53 |
#define yyconst const |
97 |
#else |
54 |
#else |
98 |
#define yyconst |
55 |
#define yyconst |
99 |
#endif |
56 |
#endif |
100 |
|
57 |
|
|
|
58 |
|
59 |
#ifdef YY_USE_PROTOS |
60 |
#define YY_PROTO(proto) proto |
61 |
#else |
62 |
#define YY_PROTO(proto) () |
63 |
#endif |
64 |
|
101 |
/* Returned upon end-of-file. */ |
65 |
/* Returned upon end-of-file. */ |
102 |
#define YY_NULL 0 |
66 |
#define YY_NULL 0 |
103 |
|
67 |
|
Lines 112-182
Link Here
|
112 |
* but we do it the disgusting crufty way forced on us by the ()-less |
76 |
* but we do it the disgusting crufty way forced on us by the ()-less |
113 |
* definition of BEGIN. |
77 |
* definition of BEGIN. |
114 |
*/ |
78 |
*/ |
115 |
#define BEGIN (yy_start) = 1 + 2 * |
79 |
#define BEGIN yy_start = 1 + 2 * |
116 |
|
80 |
|
117 |
/* Translate the current start state into a value that can be later handed |
81 |
/* Translate the current start state into a value that can be later handed |
118 |
* to BEGIN to return to the state. The YYSTATE alias is for lex |
82 |
* to BEGIN to return to the state. The YYSTATE alias is for lex |
119 |
* compatibility. |
83 |
* compatibility. |
120 |
*/ |
84 |
*/ |
121 |
#define YY_START (((yy_start) - 1) / 2) |
85 |
#define YY_START ((yy_start - 1) / 2) |
122 |
#define YYSTATE YY_START |
86 |
#define YYSTATE YY_START |
123 |
|
87 |
|
124 |
/* Action number for EOF rule of a given start state. */ |
88 |
/* Action number for EOF rule of a given start state. */ |
125 |
#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) |
89 |
#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) |
126 |
|
90 |
|
127 |
/* Special action meaning "start processing a new file". */ |
91 |
/* Special action meaning "start processing a new file". */ |
128 |
#define YY_NEW_FILE yyrestart(yyin ) |
92 |
#define YY_NEW_FILE yyrestart( yyin ) |
129 |
|
93 |
|
130 |
#define YY_END_OF_BUFFER_CHAR 0 |
94 |
#define YY_END_OF_BUFFER_CHAR 0 |
131 |
|
95 |
|
132 |
/* Size of default input buffer. */ |
96 |
/* Size of default input buffer. */ |
133 |
#ifndef YY_BUF_SIZE |
|
|
134 |
#define YY_BUF_SIZE 16384 |
97 |
#define YY_BUF_SIZE 16384 |
135 |
#endif |
|
|
136 |
|
98 |
|
137 |
#ifndef YY_TYPEDEF_YY_BUFFER_STATE |
|
|
138 |
#define YY_TYPEDEF_YY_BUFFER_STATE |
139 |
typedef struct yy_buffer_state *YY_BUFFER_STATE; |
99 |
typedef struct yy_buffer_state *YY_BUFFER_STATE; |
140 |
#endif |
|
|
141 |
|
100 |
|
142 |
extern int yyleng; |
101 |
extern int yyleng; |
143 |
|
|
|
144 |
extern FILE *yyin, *yyout; |
102 |
extern FILE *yyin, *yyout; |
145 |
|
103 |
|
146 |
#define EOB_ACT_CONTINUE_SCAN 0 |
104 |
#define EOB_ACT_CONTINUE_SCAN 0 |
147 |
#define EOB_ACT_END_OF_FILE 1 |
105 |
#define EOB_ACT_END_OF_FILE 1 |
148 |
#define EOB_ACT_LAST_MATCH 2 |
106 |
#define EOB_ACT_LAST_MATCH 2 |
149 |
|
107 |
|
150 |
#define YY_LESS_LINENO(n) |
108 |
/* The funky do-while in the following #define is used to turn the definition |
151 |
|
109 |
* int a single C statement (which needs a semi-colon terminator). This |
152 |
/* Return all but the first "n" matched characters back to the input stream. */ |
110 |
* avoids problems with code like: |
|
|
111 |
* |
112 |
* if ( condition_holds ) |
113 |
* yyless( 5 ); |
114 |
* else |
115 |
* do_something_else(); |
116 |
* |
117 |
* Prior to using the do-while the compiler would get upset at the |
118 |
* "else" because it interpreted the "if" statement as being all |
119 |
* done when it reached the ';' after the yyless() call. |
120 |
*/ |
121 |
|
122 |
/* Return all but the first 'n' matched characters back to the input stream. */ |
123 |
|
153 |
#define yyless(n) \ |
124 |
#define yyless(n) \ |
154 |
do \ |
125 |
do \ |
155 |
{ \ |
126 |
{ \ |
156 |
/* Undo effects of setting up yytext. */ \ |
127 |
/* Undo effects of setting up yytext. */ \ |
157 |
int yyless_macro_arg = (n); \ |
128 |
*yy_cp = yy_hold_char; \ |
158 |
YY_LESS_LINENO(yyless_macro_arg);\ |
|
|
159 |
*yy_cp = (yy_hold_char); \ |
160 |
YY_RESTORE_YY_MORE_OFFSET \ |
129 |
YY_RESTORE_YY_MORE_OFFSET \ |
161 |
(yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ |
130 |
yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \ |
162 |
YY_DO_BEFORE_ACTION; /* set up yytext again */ \ |
131 |
YY_DO_BEFORE_ACTION; /* set up yytext again */ \ |
163 |
} \ |
132 |
} \ |
164 |
while ( 0 ) |
133 |
while ( 0 ) |
165 |
|
134 |
|
166 |
#define unput(c) yyunput( c, (yytext_ptr) ) |
135 |
#define unput(c) yyunput( c, yytext_ptr ) |
167 |
|
136 |
|
168 |
/* The following is because we cannot portably get our hands on size_t |
137 |
/* The following is because we cannot portably get our hands on size_t |
169 |
* (without autoconf's help, which isn't available because we want |
138 |
* (without autoconf's help, which isn't available because we want |
170 |
* flex-generated scanners to compile on their own). |
139 |
* flex-generated scanners to compile on their own). |
171 |
*/ |
140 |
*/ |
172 |
|
|
|
173 |
#ifndef YY_TYPEDEF_YY_SIZE_T |
174 |
#define YY_TYPEDEF_YY_SIZE_T |
175 |
typedef unsigned int yy_size_t; |
141 |
typedef unsigned int yy_size_t; |
176 |
#endif |
|
|
177 |
|
142 |
|
178 |
#ifndef YY_STRUCT_YY_BUFFER_STATE |
143 |
|
179 |
#define YY_STRUCT_YY_BUFFER_STATE |
|
|
180 |
struct yy_buffer_state |
144 |
struct yy_buffer_state |
181 |
{ |
145 |
{ |
182 |
FILE *yy_input_file; |
146 |
FILE *yy_input_file; |
Lines 213-228
Link Here
|
213 |
*/ |
177 |
*/ |
214 |
int yy_at_bol; |
178 |
int yy_at_bol; |
215 |
|
179 |
|
216 |
int yy_bs_lineno; /**< The line count. */ |
|
|
217 |
int yy_bs_column; /**< The column count. */ |
218 |
|
219 |
/* Whether to try to fill the input buffer when we reach the |
180 |
/* Whether to try to fill the input buffer when we reach the |
220 |
* end of it. |
181 |
* end of it. |
221 |
*/ |
182 |
*/ |
222 |
int yy_fill_buffer; |
183 |
int yy_fill_buffer; |
223 |
|
184 |
|
224 |
int yy_buffer_status; |
185 |
int yy_buffer_status; |
225 |
|
|
|
226 |
#define YY_BUFFER_NEW 0 |
186 |
#define YY_BUFFER_NEW 0 |
227 |
#define YY_BUFFER_NORMAL 1 |
187 |
#define YY_BUFFER_NORMAL 1 |
228 |
/* When an EOF's been seen but there's still some text to process |
188 |
/* When an EOF's been seen but there's still some text to process |
Lines 236-268
Link Here
|
236 |
* just pointing yyin at a new input file. |
196 |
* just pointing yyin at a new input file. |
237 |
*/ |
197 |
*/ |
238 |
#define YY_BUFFER_EOF_PENDING 2 |
198 |
#define YY_BUFFER_EOF_PENDING 2 |
239 |
|
|
|
240 |
}; |
199 |
}; |
241 |
#endif /* !YY_STRUCT_YY_BUFFER_STATE */ |
|
|
242 |
|
200 |
|
243 |
/* Stack of input buffers. */ |
201 |
static YY_BUFFER_STATE yy_current_buffer = 0; |
244 |
static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */ |
|
|
245 |
static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */ |
246 |
static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */ |
247 |
|
202 |
|
248 |
/* We provide macros for accessing buffer states in case in the |
203 |
/* We provide macros for accessing buffer states in case in the |
249 |
* future we want to put the buffer states in a more general |
204 |
* future we want to put the buffer states in a more general |
250 |
* "scanner state". |
205 |
* "scanner state". |
251 |
* |
|
|
252 |
* Returns the top of the stack, or NULL. |
253 |
*/ |
206 |
*/ |
254 |
#define YY_CURRENT_BUFFER ( (yy_buffer_stack) \ |
207 |
#define YY_CURRENT_BUFFER yy_current_buffer |
255 |
? (yy_buffer_stack)[(yy_buffer_stack_top)] \ |
|
|
256 |
: NULL) |
257 |
|
208 |
|
258 |
/* Same as previous macro, but useful when we know that the buffer stack is not |
|
|
259 |
* NULL or when we need an lvalue. For internal use only. |
260 |
*/ |
261 |
#define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] |
262 |
|
209 |
|
263 |
/* yy_hold_char holds the character lost when yytext is formed. */ |
210 |
/* yy_hold_char holds the character lost when yytext is formed. */ |
264 |
static char yy_hold_char; |
211 |
static char yy_hold_char; |
|
|
212 |
|
265 |
static int yy_n_chars; /* number of characters read into yy_ch_buf */ |
213 |
static int yy_n_chars; /* number of characters read into yy_ch_buf */ |
|
|
214 |
|
215 |
|
266 |
int yyleng; |
216 |
int yyleng; |
267 |
|
217 |
|
268 |
/* Points to current character in buffer. */ |
218 |
/* Points to current character in buffer. */ |
Lines 275-366
Link Here
|
275 |
*/ |
225 |
*/ |
276 |
static int yy_did_buffer_switch_on_eof; |
226 |
static int yy_did_buffer_switch_on_eof; |
277 |
|
227 |
|
278 |
void yyrestart (FILE *input_file ); |
228 |
void yyrestart YY_PROTO(( FILE *input_file )); |
279 |
void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ); |
229 |
|
280 |
YY_BUFFER_STATE yy_create_buffer (FILE *file,int size ); |
230 |
void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer )); |
281 |
void yy_delete_buffer (YY_BUFFER_STATE b ); |
231 |
void yy_load_buffer_state YY_PROTO(( void )); |
282 |
void yy_flush_buffer (YY_BUFFER_STATE b ); |
232 |
YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size )); |
283 |
void yypush_buffer_state (YY_BUFFER_STATE new_buffer ); |
233 |
void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b )); |
284 |
void yypop_buffer_state (void ); |
234 |
void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file )); |
285 |
|
235 |
void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b )); |
286 |
static void yyensure_buffer_stack (void ); |
236 |
#define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer ) |
287 |
static void yy_load_buffer_state (void ); |
237 |
|
288 |
static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file ); |
238 |
YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size )); |
289 |
|
239 |
YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str )); |
290 |
#define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER ) |
240 |
YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len )); |
291 |
|
241 |
|
292 |
YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size ); |
242 |
static void *yy_flex_alloc YY_PROTO(( yy_size_t )); |
293 |
YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str ); |
243 |
static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t )); |
294 |
YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,int len ); |
244 |
static void yy_flex_free YY_PROTO(( void * )); |
295 |
|
|
|
296 |
void *yyalloc (yy_size_t ); |
297 |
void *yyrealloc (void *,yy_size_t ); |
298 |
void yyfree (void * ); |
299 |
|
245 |
|
300 |
#define yy_new_buffer yy_create_buffer |
246 |
#define yy_new_buffer yy_create_buffer |
301 |
|
247 |
|
302 |
#define yy_set_interactive(is_interactive) \ |
248 |
#define yy_set_interactive(is_interactive) \ |
303 |
{ \ |
249 |
{ \ |
304 |
if ( ! YY_CURRENT_BUFFER ){ \ |
250 |
if ( ! yy_current_buffer ) \ |
305 |
yyensure_buffer_stack (); \ |
251 |
yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \ |
306 |
YY_CURRENT_BUFFER_LVALUE = \ |
252 |
yy_current_buffer->yy_is_interactive = is_interactive; \ |
307 |
yy_create_buffer(yyin,YY_BUF_SIZE ); \ |
|
|
308 |
} \ |
309 |
YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ |
310 |
} |
253 |
} |
311 |
|
254 |
|
312 |
#define yy_set_bol(at_bol) \ |
255 |
#define yy_set_bol(at_bol) \ |
313 |
{ \ |
256 |
{ \ |
314 |
if ( ! YY_CURRENT_BUFFER ){\ |
257 |
if ( ! yy_current_buffer ) \ |
315 |
yyensure_buffer_stack (); \ |
258 |
yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \ |
316 |
YY_CURRENT_BUFFER_LVALUE = \ |
259 |
yy_current_buffer->yy_at_bol = at_bol; \ |
317 |
yy_create_buffer(yyin,YY_BUF_SIZE ); \ |
|
|
318 |
} \ |
319 |
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ |
320 |
} |
260 |
} |
321 |
|
261 |
|
322 |
#define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) |
262 |
#define YY_AT_BOL() (yy_current_buffer->yy_at_bol) |
323 |
|
|
|
324 |
/* Begin user sect3 */ |
325 |
|
263 |
|
326 |
typedef unsigned char YY_CHAR; |
264 |
typedef unsigned char YY_CHAR; |
327 |
|
|
|
328 |
FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0; |
265 |
FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0; |
329 |
|
|
|
330 |
typedef int yy_state_type; |
266 |
typedef int yy_state_type; |
331 |
|
|
|
332 |
extern int yylineno; |
333 |
|
334 |
int yylineno = 1; |
335 |
|
336 |
extern char *yytext; |
267 |
extern char *yytext; |
337 |
#define yytext_ptr yytext |
268 |
#define yytext_ptr yytext |
338 |
|
269 |
|
339 |
static yy_state_type yy_get_previous_state (void ); |
270 |
static yy_state_type yy_get_previous_state YY_PROTO(( void )); |
340 |
static yy_state_type yy_try_NUL_trans (yy_state_type current_state ); |
271 |
static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state )); |
341 |
static int yy_get_next_buffer (void ); |
272 |
static int yy_get_next_buffer YY_PROTO(( void )); |
342 |
static void yy_fatal_error (yyconst char msg[] ); |
273 |
static void yy_fatal_error YY_PROTO(( yyconst char msg[] )); |
343 |
|
274 |
|
344 |
/* Done after the current pattern has been matched and before the |
275 |
/* Done after the current pattern has been matched and before the |
345 |
* corresponding action - sets up yytext. |
276 |
* corresponding action - sets up yytext. |
346 |
*/ |
277 |
*/ |
347 |
#define YY_DO_BEFORE_ACTION \ |
278 |
#define YY_DO_BEFORE_ACTION \ |
348 |
(yytext_ptr) = yy_bp; \ |
279 |
yytext_ptr = yy_bp; \ |
349 |
yyleng = (size_t) (yy_cp - yy_bp); \ |
280 |
yyleng = (int) (yy_cp - yy_bp); \ |
350 |
(yy_hold_char) = *yy_cp; \ |
281 |
yy_hold_char = *yy_cp; \ |
351 |
*yy_cp = '\0'; \ |
282 |
*yy_cp = '\0'; \ |
352 |
(yy_c_buf_p) = yy_cp; |
283 |
yy_c_buf_p = yy_cp; |
353 |
|
284 |
|
354 |
#define YY_NUM_RULES 151 |
285 |
#define YY_NUM_RULES 151 |
355 |
#define YY_END_OF_BUFFER 152 |
286 |
#define YY_END_OF_BUFFER 152 |
356 |
/* This struct is not used in this scanner, |
287 |
static yyconst short int yy_accept[615] = |
357 |
but its presence is necessary. */ |
|
|
358 |
struct yy_trans_info |
359 |
{ |
360 |
flex_int32_t yy_verify; |
361 |
flex_int32_t yy_nxt; |
362 |
}; |
363 |
static yyconst flex_int16_t yy_accept[615] = |
364 |
{ 0, |
288 |
{ 0, |
365 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
289 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
366 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
290 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
Lines 432-438
Link Here
|
432 |
41, 8, 22, 0 |
356 |
41, 8, 22, 0 |
433 |
} ; |
357 |
} ; |
434 |
|
358 |
|
435 |
static yyconst flex_int32_t yy_ec[256] = |
359 |
static yyconst int yy_ec[256] = |
436 |
{ 0, |
360 |
{ 0, |
437 |
1, 1, 1, 1, 1, 1, 1, 2, 3, 4, |
361 |
1, 1, 1, 1, 1, 1, 1, 2, 3, 4, |
438 |
1, 2, 2, 1, 1, 1, 1, 1, 1, 1, |
362 |
1, 2, 2, 1, 1, 1, 1, 1, 1, 1, |
Lines 464-470
Link Here
|
464 |
1, 1, 1, 1, 1 |
388 |
1, 1, 1, 1, 1 |
465 |
} ; |
389 |
} ; |
466 |
|
390 |
|
467 |
static yyconst flex_int32_t yy_meta[72] = |
391 |
static yyconst int yy_meta[72] = |
468 |
{ 0, |
392 |
{ 0, |
469 |
1, 1, 1, 2, 3, 1, 4, 1, 1, 1, |
393 |
1, 1, 1, 2, 3, 1, 4, 1, 1, 1, |
470 |
1, 1, 1, 5, 5, 5, 1, 1, 1, 1, |
394 |
1, 1, 1, 5, 5, 5, 1, 1, 1, 1, |
Lines 476-482
Link Here
|
476 |
1 |
400 |
1 |
477 |
} ; |
401 |
} ; |
478 |
|
402 |
|
479 |
static yyconst flex_int16_t yy_base[642] = |
403 |
static yyconst short int yy_base[642] = |
480 |
{ 0, |
404 |
{ 0, |
481 |
0, 3, 16, 5, 87, 9, 158, 229, 300, 176, |
405 |
0, 3, 16, 5, 87, 9, 158, 229, 300, 176, |
482 |
370, 440, 207, 510, 382, 555, 184, 399, 600, 645, |
406 |
370, 440, 207, 510, 382, 555, 184, 399, 600, 645, |
Lines 551-557
Link Here
|
551 |
958 |
475 |
958 |
552 |
} ; |
476 |
} ; |
553 |
|
477 |
|
554 |
static yyconst flex_int16_t yy_def[642] = |
478 |
static yyconst short int yy_def[642] = |
555 |
{ 0, |
479 |
{ 0, |
556 |
615, 615, 614, 3, 614, 5, 616, 616, 614, 9, |
480 |
615, 615, 614, 3, 614, 5, 616, 616, 614, 9, |
557 |
617, 617, 618, 618, 619, 619, 620, 620, 621, 621, |
481 |
617, 617, 618, 618, 619, 619, 620, 620, 621, 621, |
Lines 626-632
Link Here
|
626 |
614 |
550 |
614 |
627 |
} ; |
551 |
} ; |
628 |
|
552 |
|
629 |
static yyconst flex_int16_t yy_nxt[1262] = |
553 |
static yyconst short int yy_nxt[1262] = |
630 |
{ 0, |
554 |
{ 0, |
631 |
614, 31, 31, 32, 31, 34, 32, 45, 35, 614, |
555 |
614, 31, 31, 32, 31, 34, 32, 45, 35, 614, |
632 |
46, 74, 33, 614, 75, 33, 36, 37, 37, 32, |
556 |
46, 74, 33, 614, 75, 33, 36, 37, 37, 32, |
Lines 769-775
Link Here
|
769 |
614 |
693 |
614 |
770 |
} ; |
694 |
} ; |
771 |
|
695 |
|
772 |
static yyconst flex_int16_t yy_chk[1262] = |
696 |
static yyconst short int yy_chk[1262] = |
773 |
{ 0, |
697 |
{ 0, |
774 |
0, 1, 1, 1, 2, 2, 2, 4, 2, 0, |
698 |
0, 1, 1, 1, 2, 2, 2, 4, 2, 0, |
775 |
4, 6, 1, 0, 6, 2, 3, 3, 3, 3, |
699 |
4, 6, 1, 0, 6, 2, 3, 3, 3, 3, |
Lines 915-923
Link Here
|
915 |
static yy_state_type yy_last_accepting_state; |
839 |
static yy_state_type yy_last_accepting_state; |
916 |
static char *yy_last_accepting_cpos; |
840 |
static char *yy_last_accepting_cpos; |
917 |
|
841 |
|
918 |
extern int yy_flex_debug; |
|
|
919 |
int yy_flex_debug = 0; |
920 |
|
921 |
/* The intent behind this definition is that it'll catch |
842 |
/* The intent behind this definition is that it'll catch |
922 |
* any uses of REJECT which flex missed. |
843 |
* any uses of REJECT which flex missed. |
923 |
*/ |
844 |
*/ |
Lines 927-934
Link Here
|
927 |
#define YY_RESTORE_YY_MORE_OFFSET |
848 |
#define YY_RESTORE_YY_MORE_OFFSET |
928 |
char *yytext; |
849 |
char *yytext; |
929 |
#line 1 "moc.l" |
850 |
#line 1 "moc.l" |
|
|
851 |
#define INITIAL 0 |
930 |
/**************************************************************************** |
852 |
/**************************************************************************** |
931 |
** $Id: qt/moc_lex.cpp 3.3.8 edited Feb 2 14:59 $ |
853 |
** $Id: qt/moc_lex.cpp 3.3.8 edited Mar 23 02:24 $ |
932 |
** |
854 |
** |
933 |
** Lexical analyzer for meta object compiler |
855 |
** Lexical analyzer for meta object compiler |
934 |
** |
856 |
** |
Lines 1028-1037
Link Here
|
1028 |
extern void addExpressionChar( const char ); |
950 |
extern void addExpressionChar( const char ); |
1029 |
extern void addExpressionString( const char * ); |
951 |
extern void addExpressionString( const char * ); |
1030 |
extern void moc_warn( const char *msg ); |
952 |
extern void moc_warn( const char *msg ); |
1031 |
|
|
|
1032 |
#line 1033 "lex.yy.c" |
1033 |
|
1034 |
#define INITIAL 0 |
1035 |
#define OUTSIDE 1 |
953 |
#define OUTSIDE 1 |
1036 |
#define QT_DEF 2 |
954 |
#define QT_DEF 2 |
1037 |
#define IN_CLASS 3 |
955 |
#define IN_CLASS 3 |
Lines 1046-1062
Link Here
|
1046 |
#define IN_PROPERTY 12 |
964 |
#define IN_PROPERTY 12 |
1047 |
#define IN_CLASSINFO 13 |
965 |
#define IN_CLASSINFO 13 |
1048 |
|
966 |
|
1049 |
#ifndef YY_NO_UNISTD_H |
967 |
#line 968 "lex.yy.c" |
1050 |
/* Special case for "unistd.h", since it is non-ANSI. We include it way |
|
|
1051 |
* down here because we want the user's section 1 to have been scanned first. |
1052 |
* The user has a chance to override it with an option. |
1053 |
*/ |
1054 |
#include <unistd.h> |
1055 |
#endif |
1056 |
|
1057 |
#ifndef YY_EXTRA_TYPE |
1058 |
#define YY_EXTRA_TYPE void * |
1059 |
#endif |
1060 |
|
968 |
|
1061 |
/* Macros after this point can all be overridden by user definitions in |
969 |
/* Macros after this point can all be overridden by user definitions in |
1062 |
* section 1. |
970 |
* section 1. |
Lines 1064-1093
Link Here
|
1064 |
|
972 |
|
1065 |
#ifndef YY_SKIP_YYWRAP |
973 |
#ifndef YY_SKIP_YYWRAP |
1066 |
#ifdef __cplusplus |
974 |
#ifdef __cplusplus |
1067 |
extern "C" int yywrap (void ); |
975 |
extern "C" int yywrap YY_PROTO(( void )); |
1068 |
#else |
976 |
#else |
1069 |
extern int yywrap (void ); |
977 |
extern int yywrap YY_PROTO(( void )); |
|
|
978 |
#endif |
1070 |
#endif |
979 |
#endif |
|
|
980 |
|
981 |
#ifndef YY_NO_UNPUT |
982 |
static void yyunput YY_PROTO(( int c, char *buf_ptr )); |
1071 |
#endif |
983 |
#endif |
1072 |
|
984 |
|
1073 |
static void yyunput (int c,char *buf_ptr ); |
|
|
1074 |
|
1075 |
#ifndef yytext_ptr |
985 |
#ifndef yytext_ptr |
1076 |
static void yy_flex_strncpy (char *,yyconst char *,int ); |
986 |
static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int )); |
1077 |
#endif |
987 |
#endif |
1078 |
|
988 |
|
1079 |
#ifdef YY_NEED_STRLEN |
989 |
#ifdef YY_NEED_STRLEN |
1080 |
static int yy_flex_strlen (yyconst char * ); |
990 |
static int yy_flex_strlen YY_PROTO(( yyconst char * )); |
1081 |
#endif |
991 |
#endif |
1082 |
|
992 |
|
1083 |
#ifndef YY_NO_INPUT |
993 |
#ifndef YY_NO_INPUT |
1084 |
|
|
|
1085 |
#ifdef __cplusplus |
994 |
#ifdef __cplusplus |
1086 |
static int yyinput (void ); |
995 |
static int yyinput YY_PROTO(( void )); |
1087 |
#else |
996 |
#else |
1088 |
static int input (void ); |
997 |
static int input YY_PROTO(( void )); |
|
|
998 |
#endif |
1089 |
#endif |
999 |
#endif |
1090 |
|
1000 |
|
|
|
1001 |
#if YY_STACK_USED |
1002 |
static int yy_start_stack_ptr = 0; |
1003 |
static int yy_start_stack_depth = 0; |
1004 |
static int *yy_start_stack = 0; |
1005 |
#ifndef YY_NO_PUSH_STATE |
1006 |
static void yy_push_state YY_PROTO(( int new_state )); |
1007 |
#endif |
1008 |
#ifndef YY_NO_POP_STATE |
1009 |
static void yy_pop_state YY_PROTO(( void )); |
1010 |
#endif |
1011 |
#ifndef YY_NO_TOP_STATE |
1012 |
static int yy_top_state YY_PROTO(( void )); |
1013 |
#endif |
1014 |
|
1015 |
#else |
1016 |
#define YY_NO_PUSH_STATE 1 |
1017 |
#define YY_NO_POP_STATE 1 |
1018 |
#define YY_NO_TOP_STATE 1 |
1019 |
#endif |
1020 |
|
1021 |
#ifdef YY_MALLOC_DECL |
1022 |
YY_MALLOC_DECL |
1023 |
#else |
1024 |
#if __STDC__ |
1025 |
#ifndef __cplusplus |
1026 |
#include <stdlib.h> |
1027 |
#endif |
1028 |
#else |
1029 |
/* Just try to get by without declaring the routines. This will fail |
1030 |
* miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int) |
1031 |
* or sizeof(void*) != sizeof(int). |
1032 |
*/ |
1033 |
#endif |
1091 |
#endif |
1034 |
#endif |
1092 |
|
1035 |
|
1093 |
/* Amount of stuff to slurp up with each read. */ |
1036 |
/* Amount of stuff to slurp up with each read. */ |
Lines 1096-1101
Link Here
|
1096 |
#endif |
1039 |
#endif |
1097 |
|
1040 |
|
1098 |
/* Copy whatever the last rule matched to the standard output. */ |
1041 |
/* Copy whatever the last rule matched to the standard output. */ |
|
|
1042 |
|
1099 |
#ifndef ECHO |
1043 |
#ifndef ECHO |
1100 |
/* This used to be an fputs(), but since the string might contain NUL's, |
1044 |
/* This used to be an fputs(), but since the string might contain NUL's, |
1101 |
* we now use fwrite(). |
1045 |
* we now use fwrite(). |
Lines 1108-1117
Link Here
|
1108 |
*/ |
1052 |
*/ |
1109 |
#ifndef YY_INPUT |
1053 |
#ifndef YY_INPUT |
1110 |
#define YY_INPUT(buf,result,max_size) \ |
1054 |
#define YY_INPUT(buf,result,max_size) \ |
1111 |
if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ |
1055 |
if ( yy_current_buffer->yy_is_interactive ) \ |
1112 |
{ \ |
1056 |
{ \ |
1113 |
int c = '*'; \ |
1057 |
int c = '*', n; \ |
1114 |
size_t n; \ |
|
|
1115 |
for ( n = 0; n < max_size && \ |
1058 |
for ( n = 0; n < max_size && \ |
1116 |
(c = getc( yyin )) != EOF && c != '\n'; ++n ) \ |
1059 |
(c = getc( yyin )) != EOF && c != '\n'; ++n ) \ |
1117 |
buf[n] = (char) c; \ |
1060 |
buf[n] = (char) c; \ |
Lines 1121-1142
Link Here
|
1121 |
YY_FATAL_ERROR( "input in flex scanner failed" ); \ |
1064 |
YY_FATAL_ERROR( "input in flex scanner failed" ); \ |
1122 |
result = n; \ |
1065 |
result = n; \ |
1123 |
} \ |
1066 |
} \ |
1124 |
else \ |
1067 |
else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \ |
1125 |
{ \ |
1068 |
&& ferror( yyin ) ) \ |
1126 |
errno=0; \ |
1069 |
YY_FATAL_ERROR( "input in flex scanner failed" ); |
1127 |
while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \ |
|
|
1128 |
{ \ |
1129 |
if( errno != EINTR) \ |
1130 |
{ \ |
1131 |
YY_FATAL_ERROR( "input in flex scanner failed" ); \ |
1132 |
break; \ |
1133 |
} \ |
1134 |
errno=0; \ |
1135 |
clearerr(yyin); \ |
1136 |
} \ |
1137 |
}\ |
1138 |
\ |
1139 |
|
1140 |
#endif |
1070 |
#endif |
1141 |
|
1071 |
|
1142 |
/* No semi-colon after return; correct usage is to write "yyterminate();" - |
1072 |
/* No semi-colon after return; correct usage is to write "yyterminate();" - |
Lines 1157-1174
Link Here
|
1157 |
#define YY_FATAL_ERROR(msg) yy_fatal_error( msg ) |
1087 |
#define YY_FATAL_ERROR(msg) yy_fatal_error( msg ) |
1158 |
#endif |
1088 |
#endif |
1159 |
|
1089 |
|
1160 |
/* end tables serialization structures and prototypes */ |
|
|
1161 |
|
1162 |
/* Default declaration of generated scanner - a define so the user can |
1090 |
/* Default declaration of generated scanner - a define so the user can |
1163 |
* easily add parameters. |
1091 |
* easily add parameters. |
1164 |
*/ |
1092 |
*/ |
1165 |
#ifndef YY_DECL |
1093 |
#ifndef YY_DECL |
1166 |
#define YY_DECL_IS_OURS 1 |
1094 |
#define YY_DECL int yylex YY_PROTO(( void )) |
1167 |
|
1095 |
#endif |
1168 |
extern int yylex (void); |
|
|
1169 |
|
1170 |
#define YY_DECL int yylex (void) |
1171 |
#endif /* !YY_DECL */ |
1172 |
|
1096 |
|
1173 |
/* Code executed at the beginning of each rule, after yytext and yyleng |
1097 |
/* Code executed at the beginning of each rule, after yytext and yyleng |
1174 |
* have been set up. |
1098 |
* have been set up. |
Lines 1184-1216
Link Here
|
1184 |
|
1108 |
|
1185 |
#define YY_RULE_SETUP \ |
1109 |
#define YY_RULE_SETUP \ |
1186 |
if ( yyleng > 0 ) \ |
1110 |
if ( yyleng > 0 ) \ |
1187 |
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \ |
1111 |
yy_current_buffer->yy_at_bol = \ |
1188 |
(yytext[yyleng - 1] == '\n'); \ |
1112 |
(yytext[yyleng - 1] == '\n'); \ |
1189 |
YY_USER_ACTION |
1113 |
YY_USER_ACTION |
1190 |
|
1114 |
|
1191 |
/** The main scanner function which does all the work. |
|
|
1192 |
*/ |
1193 |
YY_DECL |
1115 |
YY_DECL |
1194 |
{ |
1116 |
{ |
1195 |
register yy_state_type yy_current_state; |
1117 |
register yy_state_type yy_current_state; |
1196 |
register char *yy_cp, *yy_bp; |
1118 |
register char *yy_cp = NULL, *yy_bp = NULL; |
1197 |
register int yy_act; |
1119 |
register int yy_act; |
1198 |
|
1120 |
|
1199 |
#line 110 "moc.l" |
1121 |
#line 110 "moc.l" |
1200 |
|
1122 |
|
1201 |
|
1123 |
|
1202 |
#line 1203 "lex.yy.c" |
1124 |
#line 1125 "lex.yy.c" |
1203 |
|
1125 |
|
1204 |
if ( (yy_init) ) |
1126 |
if ( yy_init ) |
1205 |
{ |
1127 |
{ |
1206 |
(yy_init) = 0; |
1128 |
yy_init = 0; |
1207 |
|
1129 |
|
1208 |
#ifdef YY_USER_INIT |
1130 |
#ifdef YY_USER_INIT |
1209 |
YY_USER_INIT; |
1131 |
YY_USER_INIT; |
1210 |
#endif |
1132 |
#endif |
1211 |
|
1133 |
|
1212 |
if ( ! (yy_start) ) |
1134 |
if ( ! yy_start ) |
1213 |
(yy_start) = 1; /* first start state */ |
1135 |
yy_start = 1; /* first start state */ |
1214 |
|
1136 |
|
1215 |
if ( ! yyin ) |
1137 |
if ( ! yyin ) |
1216 |
yyin = stdin; |
1138 |
yyin = stdin; |
Lines 1218-1245
Link Here
|
1218 |
if ( ! yyout ) |
1140 |
if ( ! yyout ) |
1219 |
yyout = stdout; |
1141 |
yyout = stdout; |
1220 |
|
1142 |
|
1221 |
if ( ! YY_CURRENT_BUFFER ) { |
1143 |
if ( ! yy_current_buffer ) |
1222 |
yyensure_buffer_stack (); |
1144 |
yy_current_buffer = |
1223 |
YY_CURRENT_BUFFER_LVALUE = |
1145 |
yy_create_buffer( yyin, YY_BUF_SIZE ); |
1224 |
yy_create_buffer(yyin,YY_BUF_SIZE ); |
|
|
1225 |
} |
1226 |
|
1146 |
|
1227 |
yy_load_buffer_state( ); |
1147 |
yy_load_buffer_state(); |
1228 |
} |
1148 |
} |
1229 |
|
1149 |
|
1230 |
while ( 1 ) /* loops until end-of-file is reached */ |
1150 |
while ( 1 ) /* loops until end-of-file is reached */ |
1231 |
{ |
1151 |
{ |
1232 |
yy_cp = (yy_c_buf_p); |
1152 |
yy_cp = yy_c_buf_p; |
1233 |
|
1153 |
|
1234 |
/* Support of yytext. */ |
1154 |
/* Support of yytext. */ |
1235 |
*yy_cp = (yy_hold_char); |
1155 |
*yy_cp = yy_hold_char; |
1236 |
|
1156 |
|
1237 |
/* yy_bp points to the position in yy_ch_buf of the start of |
1157 |
/* yy_bp points to the position in yy_ch_buf of the start of |
1238 |
* the current run. |
1158 |
* the current run. |
1239 |
*/ |
1159 |
*/ |
1240 |
yy_bp = yy_cp; |
1160 |
yy_bp = yy_cp; |
1241 |
|
1161 |
|
1242 |
yy_current_state = (yy_start); |
1162 |
yy_current_state = yy_start; |
1243 |
yy_current_state += YY_AT_BOL(); |
1163 |
yy_current_state += YY_AT_BOL(); |
1244 |
yy_match: |
1164 |
yy_match: |
1245 |
do |
1165 |
do |
Lines 1247-1254
Link Here
|
1247 |
register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; |
1167 |
register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; |
1248 |
if ( yy_accept[yy_current_state] ) |
1168 |
if ( yy_accept[yy_current_state] ) |
1249 |
{ |
1169 |
{ |
1250 |
(yy_last_accepting_state) = yy_current_state; |
1170 |
yy_last_accepting_state = yy_current_state; |
1251 |
(yy_last_accepting_cpos) = yy_cp; |
1171 |
yy_last_accepting_cpos = yy_cp; |
1252 |
} |
1172 |
} |
1253 |
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) |
1173 |
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) |
1254 |
{ |
1174 |
{ |
Lines 1265-1286
Link Here
|
1265 |
yy_act = yy_accept[yy_current_state]; |
1185 |
yy_act = yy_accept[yy_current_state]; |
1266 |
if ( yy_act == 0 ) |
1186 |
if ( yy_act == 0 ) |
1267 |
{ /* have to back up */ |
1187 |
{ /* have to back up */ |
1268 |
yy_cp = (yy_last_accepting_cpos); |
1188 |
yy_cp = yy_last_accepting_cpos; |
1269 |
yy_current_state = (yy_last_accepting_state); |
1189 |
yy_current_state = yy_last_accepting_state; |
1270 |
yy_act = yy_accept[yy_current_state]; |
1190 |
yy_act = yy_accept[yy_current_state]; |
1271 |
} |
1191 |
} |
1272 |
|
1192 |
|
1273 |
YY_DO_BEFORE_ACTION; |
1193 |
YY_DO_BEFORE_ACTION; |
1274 |
|
1194 |
|
|
|
1195 |
|
1275 |
do_action: /* This label is used only to access EOF actions. */ |
1196 |
do_action: /* This label is used only to access EOF actions. */ |
1276 |
|
1197 |
|
|
|
1198 |
|
1277 |
switch ( yy_act ) |
1199 |
switch ( yy_act ) |
1278 |
{ /* beginning of action switch */ |
1200 |
{ /* beginning of action switch */ |
1279 |
case 0: /* must back up */ |
1201 |
case 0: /* must back up */ |
1280 |
/* undo the effects of YY_DO_BEFORE_ACTION */ |
1202 |
/* undo the effects of YY_DO_BEFORE_ACTION */ |
1281 |
*yy_cp = (yy_hold_char); |
1203 |
*yy_cp = yy_hold_char; |
1282 |
yy_cp = (yy_last_accepting_cpos); |
1204 |
yy_cp = yy_last_accepting_cpos; |
1283 |
yy_current_state = (yy_last_accepting_state); |
1205 |
yy_current_state = yy_last_accepting_state; |
1284 |
goto yy_find_action; |
1206 |
goto yy_find_action; |
1285 |
|
1207 |
|
1286 |
case 1: |
1208 |
case 1: |
Lines 1853-1859
Link Here
|
1853 |
{ X; return ','; } |
1775 |
{ X; return ','; } |
1854 |
YY_BREAK |
1776 |
YY_BREAK |
1855 |
case 104: |
1777 |
case 104: |
1856 |
/* rule 104 can match eol */ |
|
|
1857 |
YY_RULE_SETUP |
1778 |
YY_RULE_SETUP |
1858 |
#line 278 "moc.l" |
1779 |
#line 278 "moc.l" |
1859 |
{ |
1780 |
{ |
Lines 1879-1885
Link Here
|
1879 |
; |
1800 |
; |
1880 |
YY_BREAK |
1801 |
YY_BREAK |
1881 |
case 108: |
1802 |
case 108: |
1882 |
/* rule 108 can match eol */ |
|
|
1883 |
YY_RULE_SETUP |
1803 |
YY_RULE_SETUP |
1884 |
#line 289 "moc.l" |
1804 |
#line 289 "moc.l" |
1885 |
{ /* discard strings */ |
1805 |
{ /* discard strings */ |
Lines 1887-1893
Link Here
|
1887 |
} |
1807 |
} |
1888 |
YY_BREAK |
1808 |
YY_BREAK |
1889 |
case 109: |
1809 |
case 109: |
1890 |
/* rule 109 can match eol */ |
|
|
1891 |
YY_RULE_SETUP |
1810 |
YY_RULE_SETUP |
1892 |
#line 293 "moc.l" |
1811 |
#line 293 "moc.l" |
1893 |
{ /* discard strings */ |
1812 |
{ /* discard strings */ |
Lines 1895-1901
Link Here
|
1895 |
} |
1814 |
} |
1896 |
YY_BREAK |
1815 |
YY_BREAK |
1897 |
case 110: |
1816 |
case 110: |
1898 |
/* rule 110 can match eol */ |
|
|
1899 |
YY_RULE_SETUP |
1817 |
YY_RULE_SETUP |
1900 |
#line 297 "moc.l" |
1818 |
#line 297 "moc.l" |
1901 |
{ /* discard strings */ |
1819 |
{ /* discard strings */ |
Lines 1903-1909
Link Here
|
1903 |
} |
1821 |
} |
1904 |
YY_BREAK |
1822 |
YY_BREAK |
1905 |
case 111: |
1823 |
case 111: |
1906 |
/* rule 111 can match eol */ |
|
|
1907 |
YY_RULE_SETUP |
1824 |
YY_RULE_SETUP |
1908 |
#line 301 "moc.l" |
1825 |
#line 301 "moc.l" |
1909 |
{ /* discard strings */ |
1826 |
{ /* discard strings */ |
Lines 1913-1919
Link Here
|
1913 |
} |
1830 |
} |
1914 |
YY_BREAK |
1831 |
YY_BREAK |
1915 |
case 112: |
1832 |
case 112: |
1916 |
/* rule 112 can match eol */ |
|
|
1917 |
YY_RULE_SETUP |
1833 |
YY_RULE_SETUP |
1918 |
#line 308 "moc.l" |
1834 |
#line 308 "moc.l" |
1919 |
{ |
1835 |
{ |
Lines 1924-1930
Link Here
|
1924 |
} |
1840 |
} |
1925 |
YY_BREAK |
1841 |
YY_BREAK |
1926 |
case 113: |
1842 |
case 113: |
1927 |
/* rule 113 can match eol */ |
|
|
1928 |
YY_RULE_SETUP |
1843 |
YY_RULE_SETUP |
1929 |
#line 315 "moc.l" |
1844 |
#line 315 "moc.l" |
1930 |
{ |
1845 |
{ |
Lines 2089-2096
Link Here
|
2089 |
} |
2004 |
} |
2090 |
YY_BREAK |
2005 |
YY_BREAK |
2091 |
case 133: |
2006 |
case 133: |
2092 |
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ |
2007 |
*yy_cp = yy_hold_char; /* undo effects of setting up yytext */ |
2093 |
(yy_c_buf_p) = yy_cp -= 1; |
2008 |
yy_c_buf_p = yy_cp -= 1; |
2094 |
YY_DO_BEFORE_ACTION; /* set up yytext again */ |
2009 |
YY_DO_BEFORE_ACTION; /* set up yytext again */ |
2095 |
YY_RULE_SETUP |
2010 |
YY_RULE_SETUP |
2096 |
#line 420 "moc.l" |
2011 |
#line 420 "moc.l" |
Lines 2225-2231
Link Here
|
2225 |
} |
2140 |
} |
2226 |
YY_BREAK |
2141 |
YY_BREAK |
2227 |
case 150: |
2142 |
case 150: |
2228 |
/* rule 150 can match eol */ |
|
|
2229 |
YY_RULE_SETUP |
2143 |
YY_RULE_SETUP |
2230 |
#line 488 "moc.l" |
2144 |
#line 488 "moc.l" |
2231 |
{ |
2145 |
{ |
Lines 2237-2243
Link Here
|
2237 |
#line 493 "moc.l" |
2151 |
#line 493 "moc.l" |
2238 |
ECHO; |
2152 |
ECHO; |
2239 |
YY_BREAK |
2153 |
YY_BREAK |
2240 |
#line 2241 "lex.yy.c" |
2154 |
#line 2155 "lex.yy.c" |
2241 |
case YY_STATE_EOF(INITIAL): |
2155 |
case YY_STATE_EOF(INITIAL): |
2242 |
case YY_STATE_EOF(OUTSIDE): |
2156 |
case YY_STATE_EOF(OUTSIDE): |
2243 |
case YY_STATE_EOF(QT_DEF): |
2157 |
case YY_STATE_EOF(QT_DEF): |
Lines 2257-2282
Link Here
|
2257 |
case YY_END_OF_BUFFER: |
2171 |
case YY_END_OF_BUFFER: |
2258 |
{ |
2172 |
{ |
2259 |
/* Amount of text matched not including the EOB char. */ |
2173 |
/* Amount of text matched not including the EOB char. */ |
2260 |
int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1; |
2174 |
int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1; |
2261 |
|
2175 |
|
2262 |
/* Undo the effects of YY_DO_BEFORE_ACTION. */ |
2176 |
/* Undo the effects of YY_DO_BEFORE_ACTION. */ |
2263 |
*yy_cp = (yy_hold_char); |
2177 |
*yy_cp = yy_hold_char; |
2264 |
YY_RESTORE_YY_MORE_OFFSET |
2178 |
YY_RESTORE_YY_MORE_OFFSET |
2265 |
|
2179 |
|
2266 |
if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW ) |
2180 |
if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW ) |
2267 |
{ |
2181 |
{ |
2268 |
/* We're scanning a new file or input source. It's |
2182 |
/* We're scanning a new file or input source. It's |
2269 |
* possible that this happened because the user |
2183 |
* possible that this happened because the user |
2270 |
* just pointed yyin at a new source and called |
2184 |
* just pointed yyin at a new source and called |
2271 |
* yylex(). If so, then we have to assure |
2185 |
* yylex(). If so, then we have to assure |
2272 |
* consistency between YY_CURRENT_BUFFER and our |
2186 |
* consistency between yy_current_buffer and our |
2273 |
* globals. Here is the right place to do so, because |
2187 |
* globals. Here is the right place to do so, because |
2274 |
* this is the first action (other than possibly a |
2188 |
* this is the first action (other than possibly a |
2275 |
* back-up) that will match for the new input source. |
2189 |
* back-up) that will match for the new input source. |
2276 |
*/ |
2190 |
*/ |
2277 |
(yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; |
2191 |
yy_n_chars = yy_current_buffer->yy_n_chars; |
2278 |
YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin; |
2192 |
yy_current_buffer->yy_input_file = yyin; |
2279 |
YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL; |
2193 |
yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL; |
2280 |
} |
2194 |
} |
2281 |
|
2195 |
|
2282 |
/* Note that here we test for yy_c_buf_p "<=" to the position |
2196 |
/* Note that here we test for yy_c_buf_p "<=" to the position |
Lines 2286-2298
Link Here
|
2286 |
* end-of-buffer state). Contrast this with the test |
2200 |
* end-of-buffer state). Contrast this with the test |
2287 |
* in input(). |
2201 |
* in input(). |
2288 |
*/ |
2202 |
*/ |
2289 |
if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) |
2203 |
if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] ) |
2290 |
{ /* This was really a NUL. */ |
2204 |
{ /* This was really a NUL. */ |
2291 |
yy_state_type yy_next_state; |
2205 |
yy_state_type yy_next_state; |
2292 |
|
2206 |
|
2293 |
(yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text; |
2207 |
yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text; |
2294 |
|
2208 |
|
2295 |
yy_current_state = yy_get_previous_state( ); |
2209 |
yy_current_state = yy_get_previous_state(); |
2296 |
|
2210 |
|
2297 |
/* Okay, we're now positioned to make the NUL |
2211 |
/* Okay, we're now positioned to make the NUL |
2298 |
* transition. We couldn't have |
2212 |
* transition. We couldn't have |
Lines 2305-2334
Link Here
|
2305 |
|
2219 |
|
2306 |
yy_next_state = yy_try_NUL_trans( yy_current_state ); |
2220 |
yy_next_state = yy_try_NUL_trans( yy_current_state ); |
2307 |
|
2221 |
|
2308 |
yy_bp = (yytext_ptr) + YY_MORE_ADJ; |
2222 |
yy_bp = yytext_ptr + YY_MORE_ADJ; |
2309 |
|
2223 |
|
2310 |
if ( yy_next_state ) |
2224 |
if ( yy_next_state ) |
2311 |
{ |
2225 |
{ |
2312 |
/* Consume the NUL. */ |
2226 |
/* Consume the NUL. */ |
2313 |
yy_cp = ++(yy_c_buf_p); |
2227 |
yy_cp = ++yy_c_buf_p; |
2314 |
yy_current_state = yy_next_state; |
2228 |
yy_current_state = yy_next_state; |
2315 |
goto yy_match; |
2229 |
goto yy_match; |
2316 |
} |
2230 |
} |
2317 |
|
2231 |
|
2318 |
else |
2232 |
else |
2319 |
{ |
2233 |
{ |
2320 |
yy_cp = (yy_c_buf_p); |
2234 |
yy_cp = yy_c_buf_p; |
2321 |
goto yy_find_action; |
2235 |
goto yy_find_action; |
2322 |
} |
2236 |
} |
2323 |
} |
2237 |
} |
2324 |
|
2238 |
|
2325 |
else switch ( yy_get_next_buffer( ) ) |
2239 |
else switch ( yy_get_next_buffer() ) |
2326 |
{ |
2240 |
{ |
2327 |
case EOB_ACT_END_OF_FILE: |
2241 |
case EOB_ACT_END_OF_FILE: |
2328 |
{ |
2242 |
{ |
2329 |
(yy_did_buffer_switch_on_eof) = 0; |
2243 |
yy_did_buffer_switch_on_eof = 0; |
2330 |
|
2244 |
|
2331 |
if ( yywrap( ) ) |
2245 |
if ( yywrap() ) |
2332 |
{ |
2246 |
{ |
2333 |
/* Note: because we've taken care in |
2247 |
/* Note: because we've taken care in |
2334 |
* yy_get_next_buffer() to have set up |
2248 |
* yy_get_next_buffer() to have set up |
Lines 2339-2345
Link Here
|
2339 |
* YY_NULL, it'll still work - another |
2253 |
* YY_NULL, it'll still work - another |
2340 |
* YY_NULL will get returned. |
2254 |
* YY_NULL will get returned. |
2341 |
*/ |
2255 |
*/ |
2342 |
(yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ; |
2256 |
yy_c_buf_p = yytext_ptr + YY_MORE_ADJ; |
2343 |
|
2257 |
|
2344 |
yy_act = YY_STATE_EOF(YY_START); |
2258 |
yy_act = YY_STATE_EOF(YY_START); |
2345 |
goto do_action; |
2259 |
goto do_action; |
Lines 2347-2376
Link Here
|
2347 |
|
2261 |
|
2348 |
else |
2262 |
else |
2349 |
{ |
2263 |
{ |
2350 |
if ( ! (yy_did_buffer_switch_on_eof) ) |
2264 |
if ( ! yy_did_buffer_switch_on_eof ) |
2351 |
YY_NEW_FILE; |
2265 |
YY_NEW_FILE; |
2352 |
} |
2266 |
} |
2353 |
break; |
2267 |
break; |
2354 |
} |
2268 |
} |
2355 |
|
2269 |
|
2356 |
case EOB_ACT_CONTINUE_SCAN: |
2270 |
case EOB_ACT_CONTINUE_SCAN: |
2357 |
(yy_c_buf_p) = |
2271 |
yy_c_buf_p = |
2358 |
(yytext_ptr) + yy_amount_of_matched_text; |
2272 |
yytext_ptr + yy_amount_of_matched_text; |
2359 |
|
2273 |
|
2360 |
yy_current_state = yy_get_previous_state( ); |
2274 |
yy_current_state = yy_get_previous_state(); |
2361 |
|
2275 |
|
2362 |
yy_cp = (yy_c_buf_p); |
2276 |
yy_cp = yy_c_buf_p; |
2363 |
yy_bp = (yytext_ptr) + YY_MORE_ADJ; |
2277 |
yy_bp = yytext_ptr + YY_MORE_ADJ; |
2364 |
goto yy_match; |
2278 |
goto yy_match; |
2365 |
|
2279 |
|
2366 |
case EOB_ACT_LAST_MATCH: |
2280 |
case EOB_ACT_LAST_MATCH: |
2367 |
(yy_c_buf_p) = |
2281 |
yy_c_buf_p = |
2368 |
&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)]; |
2282 |
&yy_current_buffer->yy_ch_buf[yy_n_chars]; |
2369 |
|
2283 |
|
2370 |
yy_current_state = yy_get_previous_state( ); |
2284 |
yy_current_state = yy_get_previous_state(); |
2371 |
|
2285 |
|
2372 |
yy_cp = (yy_c_buf_p); |
2286 |
yy_cp = yy_c_buf_p; |
2373 |
yy_bp = (yytext_ptr) + YY_MORE_ADJ; |
2287 |
yy_bp = yytext_ptr + YY_MORE_ADJ; |
2374 |
goto yy_find_action; |
2288 |
goto yy_find_action; |
2375 |
} |
2289 |
} |
2376 |
break; |
2290 |
break; |
Lines 2381-2387
Link Here
|
2381 |
"fatal flex scanner internal error--no action found" ); |
2295 |
"fatal flex scanner internal error--no action found" ); |
2382 |
} /* end of action switch */ |
2296 |
} /* end of action switch */ |
2383 |
} /* end of scanning one token */ |
2297 |
} /* end of scanning one token */ |
2384 |
} /* end of yylex */ |
2298 |
} /* end of yylex */ |
|
|
2299 |
|
2385 |
|
2300 |
|
2386 |
/* yy_get_next_buffer - try to read in a new buffer |
2301 |
/* yy_get_next_buffer - try to read in a new buffer |
2387 |
* |
2302 |
* |
Lines 2390-2409
Link Here
|
2390 |
* EOB_ACT_CONTINUE_SCAN - continue scanning from current position |
2305 |
* EOB_ACT_CONTINUE_SCAN - continue scanning from current position |
2391 |
* EOB_ACT_END_OF_FILE - end of file |
2306 |
* EOB_ACT_END_OF_FILE - end of file |
2392 |
*/ |
2307 |
*/ |
2393 |
static int yy_get_next_buffer (void) |
2308 |
|
2394 |
{ |
2309 |
static int yy_get_next_buffer() |
2395 |
register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; |
2310 |
{ |
2396 |
register char *source = (yytext_ptr); |
2311 |
register char *dest = yy_current_buffer->yy_ch_buf; |
|
|
2312 |
register char *source = yytext_ptr; |
2397 |
register int number_to_move, i; |
2313 |
register int number_to_move, i; |
2398 |
int ret_val; |
2314 |
int ret_val; |
2399 |
|
2315 |
|
2400 |
if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] ) |
2316 |
if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] ) |
2401 |
YY_FATAL_ERROR( |
2317 |
YY_FATAL_ERROR( |
2402 |
"fatal flex scanner internal error--end of buffer missed" ); |
2318 |
"fatal flex scanner internal error--end of buffer missed" ); |
2403 |
|
2319 |
|
2404 |
if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 ) |
2320 |
if ( yy_current_buffer->yy_fill_buffer == 0 ) |
2405 |
{ /* Don't try to fill the buffer, so this is an EOF. */ |
2321 |
{ /* Don't try to fill the buffer, so this is an EOF. */ |
2406 |
if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 ) |
2322 |
if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 ) |
2407 |
{ |
2323 |
{ |
2408 |
/* We matched a single character, the EOB, so |
2324 |
/* We matched a single character, the EOB, so |
2409 |
* treat this as a final EOF. |
2325 |
* treat this as a final EOF. |
Lines 2423-2452
Link Here
|
2423 |
/* Try to read more data. */ |
2339 |
/* Try to read more data. */ |
2424 |
|
2340 |
|
2425 |
/* First move last chars to start of buffer. */ |
2341 |
/* First move last chars to start of buffer. */ |
2426 |
number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1; |
2342 |
number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1; |
2427 |
|
2343 |
|
2428 |
for ( i = 0; i < number_to_move; ++i ) |
2344 |
for ( i = 0; i < number_to_move; ++i ) |
2429 |
*(dest++) = *(source++); |
2345 |
*(dest++) = *(source++); |
2430 |
|
2346 |
|
2431 |
if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING ) |
2347 |
if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING ) |
2432 |
/* don't do the read, it's not guaranteed to return an EOF, |
2348 |
/* don't do the read, it's not guaranteed to return an EOF, |
2433 |
* just force an EOF |
2349 |
* just force an EOF |
2434 |
*/ |
2350 |
*/ |
2435 |
YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0; |
2351 |
yy_current_buffer->yy_n_chars = yy_n_chars = 0; |
2436 |
|
2352 |
|
2437 |
else |
2353 |
else |
2438 |
{ |
2354 |
{ |
2439 |
size_t num_to_read = |
2355 |
int num_to_read = |
2440 |
YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; |
2356 |
yy_current_buffer->yy_buf_size - number_to_move - 1; |
2441 |
|
2357 |
|
2442 |
while ( num_to_read <= 0 ) |
2358 |
while ( num_to_read <= 0 ) |
2443 |
{ /* Not enough room in the buffer - grow it. */ |
2359 |
{ /* Not enough room in the buffer - grow it. */ |
|
|
2360 |
#ifdef YY_USES_REJECT |
2361 |
YY_FATAL_ERROR( |
2362 |
"input buffer overflow, can't enlarge buffer because scanner uses REJECT" ); |
2363 |
#else |
2444 |
|
2364 |
|
2445 |
/* just a shorter name for the current buffer */ |
2365 |
/* just a shorter name for the current buffer */ |
2446 |
YY_BUFFER_STATE b = YY_CURRENT_BUFFER; |
2366 |
YY_BUFFER_STATE b = yy_current_buffer; |
2447 |
|
2367 |
|
2448 |
int yy_c_buf_p_offset = |
2368 |
int yy_c_buf_p_offset = |
2449 |
(int) ((yy_c_buf_p) - b->yy_ch_buf); |
2369 |
(int) (yy_c_buf_p - b->yy_ch_buf); |
2450 |
|
2370 |
|
2451 |
if ( b->yy_is_our_buffer ) |
2371 |
if ( b->yy_is_our_buffer ) |
2452 |
{ |
2372 |
{ |
Lines 2459-2465
Link Here
|
2459 |
|
2379 |
|
2460 |
b->yy_ch_buf = (char *) |
2380 |
b->yy_ch_buf = (char *) |
2461 |
/* Include room in for 2 EOB chars. */ |
2381 |
/* Include room in for 2 EOB chars. */ |
2462 |
yyrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 ); |
2382 |
yy_flex_realloc( (void *) b->yy_ch_buf, |
|
|
2383 |
b->yy_buf_size + 2 ); |
2463 |
} |
2384 |
} |
2464 |
else |
2385 |
else |
2465 |
/* Can't grow it, we don't own it. */ |
2386 |
/* Can't grow it, we don't own it. */ |
Lines 2469-2503
Link Here
|
2469 |
YY_FATAL_ERROR( |
2390 |
YY_FATAL_ERROR( |
2470 |
"fatal error - scanner input buffer overflow" ); |
2391 |
"fatal error - scanner input buffer overflow" ); |
2471 |
|
2392 |
|
2472 |
(yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset]; |
2393 |
yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset]; |
2473 |
|
2394 |
|
2474 |
num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - |
2395 |
num_to_read = yy_current_buffer->yy_buf_size - |
2475 |
number_to_move - 1; |
2396 |
number_to_move - 1; |
2476 |
|
2397 |
#endif |
2477 |
} |
2398 |
} |
2478 |
|
2399 |
|
2479 |
if ( num_to_read > YY_READ_BUF_SIZE ) |
2400 |
if ( num_to_read > YY_READ_BUF_SIZE ) |
2480 |
num_to_read = YY_READ_BUF_SIZE; |
2401 |
num_to_read = YY_READ_BUF_SIZE; |
2481 |
|
2402 |
|
2482 |
/* Read in more data. */ |
2403 |
/* Read in more data. */ |
2483 |
YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), |
2404 |
YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]), |
2484 |
(yy_n_chars), num_to_read ); |
2405 |
yy_n_chars, num_to_read ); |
2485 |
|
2406 |
|
2486 |
YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); |
2407 |
yy_current_buffer->yy_n_chars = yy_n_chars; |
2487 |
} |
2408 |
} |
2488 |
|
2409 |
|
2489 |
if ( (yy_n_chars) == 0 ) |
2410 |
if ( yy_n_chars == 0 ) |
2490 |
{ |
2411 |
{ |
2491 |
if ( number_to_move == YY_MORE_ADJ ) |
2412 |
if ( number_to_move == YY_MORE_ADJ ) |
2492 |
{ |
2413 |
{ |
2493 |
ret_val = EOB_ACT_END_OF_FILE; |
2414 |
ret_val = EOB_ACT_END_OF_FILE; |
2494 |
yyrestart(yyin ); |
2415 |
yyrestart( yyin ); |
2495 |
} |
2416 |
} |
2496 |
|
2417 |
|
2497 |
else |
2418 |
else |
2498 |
{ |
2419 |
{ |
2499 |
ret_val = EOB_ACT_LAST_MATCH; |
2420 |
ret_val = EOB_ACT_LAST_MATCH; |
2500 |
YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = |
2421 |
yy_current_buffer->yy_buffer_status = |
2501 |
YY_BUFFER_EOF_PENDING; |
2422 |
YY_BUFFER_EOF_PENDING; |
2502 |
} |
2423 |
} |
2503 |
} |
2424 |
} |
Lines 2505-2536
Link Here
|
2505 |
else |
2426 |
else |
2506 |
ret_val = EOB_ACT_CONTINUE_SCAN; |
2427 |
ret_val = EOB_ACT_CONTINUE_SCAN; |
2507 |
|
2428 |
|
2508 |
(yy_n_chars) += number_to_move; |
2429 |
yy_n_chars += number_to_move; |
2509 |
YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR; |
2430 |
yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR; |
2510 |
YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR; |
2431 |
yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR; |
2511 |
|
2432 |
|
2512 |
(yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0]; |
2433 |
yytext_ptr = &yy_current_buffer->yy_ch_buf[0]; |
2513 |
|
2434 |
|
2514 |
return ret_val; |
2435 |
return ret_val; |
2515 |
} |
2436 |
} |
|
|
2437 |
|
2516 |
|
2438 |
|
2517 |
/* yy_get_previous_state - get the state just before the EOB char was reached */ |
2439 |
/* yy_get_previous_state - get the state just before the EOB char was reached */ |
2518 |
|
2440 |
|
2519 |
static yy_state_type yy_get_previous_state (void) |
2441 |
static yy_state_type yy_get_previous_state() |
2520 |
{ |
2442 |
{ |
2521 |
register yy_state_type yy_current_state; |
2443 |
register yy_state_type yy_current_state; |
2522 |
register char *yy_cp; |
2444 |
register char *yy_cp; |
2523 |
|
2445 |
|
2524 |
yy_current_state = (yy_start); |
2446 |
yy_current_state = yy_start; |
2525 |
yy_current_state += YY_AT_BOL(); |
2447 |
yy_current_state += YY_AT_BOL(); |
2526 |
|
2448 |
|
2527 |
for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp ) |
2449 |
for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp ) |
2528 |
{ |
2450 |
{ |
2529 |
register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); |
2451 |
register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); |
2530 |
if ( yy_accept[yy_current_state] ) |
2452 |
if ( yy_accept[yy_current_state] ) |
2531 |
{ |
2453 |
{ |
2532 |
(yy_last_accepting_state) = yy_current_state; |
2454 |
yy_last_accepting_state = yy_current_state; |
2533 |
(yy_last_accepting_cpos) = yy_cp; |
2455 |
yy_last_accepting_cpos = yy_cp; |
2534 |
} |
2456 |
} |
2535 |
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) |
2457 |
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) |
2536 |
{ |
2458 |
{ |
Lines 2542-2564
Link Here
|
2542 |
} |
2464 |
} |
2543 |
|
2465 |
|
2544 |
return yy_current_state; |
2466 |
return yy_current_state; |
2545 |
} |
2467 |
} |
|
|
2468 |
|
2546 |
|
2469 |
|
2547 |
/* yy_try_NUL_trans - try to make a transition on the NUL character |
2470 |
/* yy_try_NUL_trans - try to make a transition on the NUL character |
2548 |
* |
2471 |
* |
2549 |
* synopsis |
2472 |
* synopsis |
2550 |
* next_state = yy_try_NUL_trans( current_state ); |
2473 |
* next_state = yy_try_NUL_trans( current_state ); |
2551 |
*/ |
2474 |
*/ |
2552 |
static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state ) |
2475 |
|
2553 |
{ |
2476 |
#ifdef YY_USE_PROTOS |
|
|
2477 |
static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state ) |
2478 |
#else |
2479 |
static yy_state_type yy_try_NUL_trans( yy_current_state ) |
2480 |
yy_state_type yy_current_state; |
2481 |
#endif |
2482 |
{ |
2554 |
register int yy_is_jam; |
2483 |
register int yy_is_jam; |
2555 |
register char *yy_cp = (yy_c_buf_p); |
2484 |
register char *yy_cp = yy_c_buf_p; |
2556 |
|
2485 |
|
2557 |
register YY_CHAR yy_c = 1; |
2486 |
register YY_CHAR yy_c = 1; |
2558 |
if ( yy_accept[yy_current_state] ) |
2487 |
if ( yy_accept[yy_current_state] ) |
2559 |
{ |
2488 |
{ |
2560 |
(yy_last_accepting_state) = yy_current_state; |
2489 |
yy_last_accepting_state = yy_current_state; |
2561 |
(yy_last_accepting_cpos) = yy_cp; |
2490 |
yy_last_accepting_cpos = yy_cp; |
2562 |
} |
2491 |
} |
2563 |
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) |
2492 |
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) |
2564 |
{ |
2493 |
{ |
Lines 2570-2642
Link Here
|
2570 |
yy_is_jam = (yy_current_state == 614); |
2499 |
yy_is_jam = (yy_current_state == 614); |
2571 |
|
2500 |
|
2572 |
return yy_is_jam ? 0 : yy_current_state; |
2501 |
return yy_is_jam ? 0 : yy_current_state; |
2573 |
} |
2502 |
} |
2574 |
|
2503 |
|
2575 |
static void yyunput (int c, register char * yy_bp ) |
2504 |
|
2576 |
{ |
2505 |
#ifndef YY_NO_UNPUT |
2577 |
register char *yy_cp; |
2506 |
#ifdef YY_USE_PROTOS |
2578 |
|
2507 |
static void yyunput( int c, register char *yy_bp ) |
2579 |
yy_cp = (yy_c_buf_p); |
2508 |
#else |
|
|
2509 |
static void yyunput( c, yy_bp ) |
2510 |
int c; |
2511 |
register char *yy_bp; |
2512 |
#endif |
2513 |
{ |
2514 |
register char *yy_cp = yy_c_buf_p; |
2580 |
|
2515 |
|
2581 |
/* undo effects of setting up yytext */ |
2516 |
/* undo effects of setting up yytext */ |
2582 |
*yy_cp = (yy_hold_char); |
2517 |
*yy_cp = yy_hold_char; |
2583 |
|
2518 |
|
2584 |
if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) |
2519 |
if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 ) |
2585 |
{ /* need to shift things up to make room */ |
2520 |
{ /* need to shift things up to make room */ |
2586 |
/* +2 for EOB chars. */ |
2521 |
/* +2 for EOB chars. */ |
2587 |
register int number_to_move = (yy_n_chars) + 2; |
2522 |
register int number_to_move = yy_n_chars + 2; |
2588 |
register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[ |
2523 |
register char *dest = &yy_current_buffer->yy_ch_buf[ |
2589 |
YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2]; |
2524 |
yy_current_buffer->yy_buf_size + 2]; |
2590 |
register char *source = |
2525 |
register char *source = |
2591 |
&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]; |
2526 |
&yy_current_buffer->yy_ch_buf[number_to_move]; |
2592 |
|
2527 |
|
2593 |
while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) |
2528 |
while ( source > yy_current_buffer->yy_ch_buf ) |
2594 |
*--dest = *--source; |
2529 |
*--dest = *--source; |
2595 |
|
2530 |
|
2596 |
yy_cp += (int) (dest - source); |
2531 |
yy_cp += (int) (dest - source); |
2597 |
yy_bp += (int) (dest - source); |
2532 |
yy_bp += (int) (dest - source); |
2598 |
YY_CURRENT_BUFFER_LVALUE->yy_n_chars = |
2533 |
yy_current_buffer->yy_n_chars = |
2599 |
(yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_buf_size; |
2534 |
yy_n_chars = yy_current_buffer->yy_buf_size; |
2600 |
|
2535 |
|
2601 |
if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) |
2536 |
if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 ) |
2602 |
YY_FATAL_ERROR( "flex scanner push-back overflow" ); |
2537 |
YY_FATAL_ERROR( "flex scanner push-back overflow" ); |
2603 |
} |
2538 |
} |
2604 |
|
2539 |
|
2605 |
*--yy_cp = (char) c; |
2540 |
*--yy_cp = (char) c; |
2606 |
|
2541 |
|
2607 |
(yytext_ptr) = yy_bp; |
2542 |
|
2608 |
(yy_hold_char) = *yy_cp; |
2543 |
yytext_ptr = yy_bp; |
2609 |
(yy_c_buf_p) = yy_cp; |
2544 |
yy_hold_char = *yy_cp; |
2610 |
} |
2545 |
yy_c_buf_p = yy_cp; |
|
|
2546 |
} |
2547 |
#endif /* ifndef YY_NO_UNPUT */ |
2548 |
|
2611 |
|
2549 |
|
2612 |
#ifndef YY_NO_INPUT |
2550 |
#ifndef YY_NO_INPUT |
2613 |
#ifdef __cplusplus |
2551 |
#ifdef __cplusplus |
2614 |
static int yyinput (void) |
2552 |
static int yyinput() |
2615 |
#else |
2553 |
#else |
2616 |
static int input (void) |
2554 |
static int input() |
2617 |
#endif |
2555 |
#endif |
2618 |
|
2556 |
{ |
2619 |
{ |
|
|
2620 |
int c; |
2557 |
int c; |
2621 |
|
|
|
2622 |
*(yy_c_buf_p) = (yy_hold_char); |
2623 |
|
2558 |
|
2624 |
if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR ) |
2559 |
*yy_c_buf_p = yy_hold_char; |
|
|
2560 |
|
2561 |
if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR ) |
2625 |
{ |
2562 |
{ |
2626 |
/* yy_c_buf_p now points to the character we want to return. |
2563 |
/* yy_c_buf_p now points to the character we want to return. |
2627 |
* If this occurs *before* the EOB characters, then it's a |
2564 |
* If this occurs *before* the EOB characters, then it's a |
2628 |
* valid NUL; if not, then we've hit the end of the buffer. |
2565 |
* valid NUL; if not, then we've hit the end of the buffer. |
2629 |
*/ |
2566 |
*/ |
2630 |
if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) |
2567 |
if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] ) |
2631 |
/* This was really a NUL. */ |
2568 |
/* This was really a NUL. */ |
2632 |
*(yy_c_buf_p) = '\0'; |
2569 |
*yy_c_buf_p = '\0'; |
2633 |
|
2570 |
|
2634 |
else |
2571 |
else |
2635 |
{ /* need more input */ |
2572 |
{ /* need more input */ |
2636 |
int offset = (yy_c_buf_p) - (yytext_ptr); |
2573 |
int offset = yy_c_buf_p - yytext_ptr; |
2637 |
++(yy_c_buf_p); |
2574 |
++yy_c_buf_p; |
2638 |
|
2575 |
|
2639 |
switch ( yy_get_next_buffer( ) ) |
2576 |
switch ( yy_get_next_buffer() ) |
2640 |
{ |
2577 |
{ |
2641 |
case EOB_ACT_LAST_MATCH: |
2578 |
case EOB_ACT_LAST_MATCH: |
2642 |
/* This happens because yy_g_n_b() |
2579 |
/* This happens because yy_g_n_b() |
Lines 2650-2665
Link Here
|
2650 |
*/ |
2587 |
*/ |
2651 |
|
2588 |
|
2652 |
/* Reset buffer status. */ |
2589 |
/* Reset buffer status. */ |
2653 |
yyrestart(yyin ); |
2590 |
yyrestart( yyin ); |
2654 |
|
2591 |
|
2655 |
/*FALLTHROUGH*/ |
2592 |
/* fall through */ |
2656 |
|
2593 |
|
2657 |
case EOB_ACT_END_OF_FILE: |
2594 |
case EOB_ACT_END_OF_FILE: |
2658 |
{ |
2595 |
{ |
2659 |
if ( yywrap( ) ) |
2596 |
if ( yywrap() ) |
2660 |
return EOF; |
2597 |
return EOF; |
2661 |
|
2598 |
|
2662 |
if ( ! (yy_did_buffer_switch_on_eof) ) |
2599 |
if ( ! yy_did_buffer_switch_on_eof ) |
2663 |
YY_NEW_FILE; |
2600 |
YY_NEW_FILE; |
2664 |
#ifdef __cplusplus |
2601 |
#ifdef __cplusplus |
2665 |
return yyinput(); |
2602 |
return yyinput(); |
Lines 2669-2762
Link Here
|
2669 |
} |
2606 |
} |
2670 |
|
2607 |
|
2671 |
case EOB_ACT_CONTINUE_SCAN: |
2608 |
case EOB_ACT_CONTINUE_SCAN: |
2672 |
(yy_c_buf_p) = (yytext_ptr) + offset; |
2609 |
yy_c_buf_p = yytext_ptr + offset; |
2673 |
break; |
2610 |
break; |
2674 |
} |
2611 |
} |
2675 |
} |
2612 |
} |
2676 |
} |
2613 |
} |
2677 |
|
2614 |
|
2678 |
c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */ |
2615 |
c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */ |
2679 |
*(yy_c_buf_p) = '\0'; /* preserve yytext */ |
2616 |
*yy_c_buf_p = '\0'; /* preserve yytext */ |
2680 |
(yy_hold_char) = *++(yy_c_buf_p); |
2617 |
yy_hold_char = *++yy_c_buf_p; |
2681 |
|
2618 |
|
2682 |
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (c == '\n'); |
2619 |
yy_current_buffer->yy_at_bol = (c == '\n'); |
2683 |
|
2620 |
|
2684 |
return c; |
2621 |
return c; |
2685 |
} |
2622 |
} |
2686 |
#endif /* ifndef YY_NO_INPUT */ |
2623 |
#endif /* YY_NO_INPUT */ |
2687 |
|
2624 |
|
2688 |
/** Immediately switch to a different input stream. |
2625 |
#ifdef YY_USE_PROTOS |
2689 |
* @param input_file A readable stream. |
2626 |
void yyrestart( FILE *input_file ) |
2690 |
* |
2627 |
#else |
2691 |
* @note This function does not reset the start condition to @c INITIAL . |
2628 |
void yyrestart( input_file ) |
2692 |
*/ |
2629 |
FILE *input_file; |
2693 |
void yyrestart (FILE * input_file ) |
2630 |
#endif |
2694 |
{ |
2631 |
{ |
2695 |
|
2632 |
if ( ! yy_current_buffer ) |
2696 |
if ( ! YY_CURRENT_BUFFER ){ |
2633 |
yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); |
2697 |
yyensure_buffer_stack (); |
2634 |
|
2698 |
YY_CURRENT_BUFFER_LVALUE = |
2635 |
yy_init_buffer( yy_current_buffer, input_file ); |
2699 |
yy_create_buffer(yyin,YY_BUF_SIZE ); |
2636 |
yy_load_buffer_state(); |
2700 |
} |
2637 |
} |
2701 |
|
2638 |
|
2702 |
yy_init_buffer(YY_CURRENT_BUFFER,input_file ); |
2639 |
|
2703 |
yy_load_buffer_state( ); |
2640 |
#ifdef YY_USE_PROTOS |
2704 |
} |
2641 |
void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer ) |
2705 |
|
2642 |
#else |
2706 |
/** Switch to a different input buffer. |
2643 |
void yy_switch_to_buffer( new_buffer ) |
2707 |
* @param new_buffer The new input buffer. |
2644 |
YY_BUFFER_STATE new_buffer; |
2708 |
* |
2645 |
#endif |
2709 |
*/ |
2646 |
{ |
2710 |
void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ) |
2647 |
if ( yy_current_buffer == new_buffer ) |
2711 |
{ |
|
|
2712 |
|
2713 |
/* TODO. We should be able to replace this entire function body |
2714 |
* with |
2715 |
* yypop_buffer_state(); |
2716 |
* yypush_buffer_state(new_buffer); |
2717 |
*/ |
2718 |
yyensure_buffer_stack (); |
2719 |
if ( YY_CURRENT_BUFFER == new_buffer ) |
2720 |
return; |
2648 |
return; |
2721 |
|
2649 |
|
2722 |
if ( YY_CURRENT_BUFFER ) |
2650 |
if ( yy_current_buffer ) |
2723 |
{ |
2651 |
{ |
2724 |
/* Flush out information for old buffer. */ |
2652 |
/* Flush out information for old buffer. */ |
2725 |
*(yy_c_buf_p) = (yy_hold_char); |
2653 |
*yy_c_buf_p = yy_hold_char; |
2726 |
YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); |
2654 |
yy_current_buffer->yy_buf_pos = yy_c_buf_p; |
2727 |
YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); |
2655 |
yy_current_buffer->yy_n_chars = yy_n_chars; |
2728 |
} |
2656 |
} |
2729 |
|
2657 |
|
2730 |
YY_CURRENT_BUFFER_LVALUE = new_buffer; |
2658 |
yy_current_buffer = new_buffer; |
2731 |
yy_load_buffer_state( ); |
2659 |
yy_load_buffer_state(); |
2732 |
|
2660 |
|
2733 |
/* We don't actually know whether we did this switch during |
2661 |
/* We don't actually know whether we did this switch during |
2734 |
* EOF (yywrap()) processing, but the only time this flag |
2662 |
* EOF (yywrap()) processing, but the only time this flag |
2735 |
* is looked at is after yywrap() is called, so it's safe |
2663 |
* is looked at is after yywrap() is called, so it's safe |
2736 |
* to go ahead and always set it. |
2664 |
* to go ahead and always set it. |
2737 |
*/ |
2665 |
*/ |
2738 |
(yy_did_buffer_switch_on_eof) = 1; |
2666 |
yy_did_buffer_switch_on_eof = 1; |
2739 |
} |
2667 |
} |
2740 |
|
2668 |
|
2741 |
static void yy_load_buffer_state (void) |
2669 |
|
2742 |
{ |
2670 |
#ifdef YY_USE_PROTOS |
2743 |
(yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; |
2671 |
void yy_load_buffer_state( void ) |
2744 |
(yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos; |
2672 |
#else |
2745 |
yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file; |
2673 |
void yy_load_buffer_state() |
2746 |
(yy_hold_char) = *(yy_c_buf_p); |
2674 |
#endif |
2747 |
} |
2675 |
{ |
2748 |
|
2676 |
yy_n_chars = yy_current_buffer->yy_n_chars; |
2749 |
/** Allocate and initialize an input buffer state. |
2677 |
yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos; |
2750 |
* @param file A readable stream. |
2678 |
yyin = yy_current_buffer->yy_input_file; |
2751 |
* @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE. |
2679 |
yy_hold_char = *yy_c_buf_p; |
2752 |
* |
2680 |
} |
2753 |
* @return the allocated buffer state. |
2681 |
|
2754 |
*/ |
2682 |
|
2755 |
YY_BUFFER_STATE yy_create_buffer (FILE * file, int size ) |
2683 |
#ifdef YY_USE_PROTOS |
2756 |
{ |
2684 |
YY_BUFFER_STATE yy_create_buffer( FILE *file, int size ) |
|
|
2685 |
#else |
2686 |
YY_BUFFER_STATE yy_create_buffer( file, size ) |
2687 |
FILE *file; |
2688 |
int size; |
2689 |
#endif |
2690 |
{ |
2757 |
YY_BUFFER_STATE b; |
2691 |
YY_BUFFER_STATE b; |
2758 |
|
2692 |
|
2759 |
b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ); |
2693 |
b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) ); |
2760 |
if ( ! b ) |
2694 |
if ( ! b ) |
2761 |
YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); |
2695 |
YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); |
2762 |
|
2696 |
|
Lines 2765-2839
Link Here
|
2765 |
/* yy_ch_buf has to be 2 characters longer than the size given because |
2699 |
/* yy_ch_buf has to be 2 characters longer than the size given because |
2766 |
* we need to put in 2 end-of-buffer characters. |
2700 |
* we need to put in 2 end-of-buffer characters. |
2767 |
*/ |
2701 |
*/ |
2768 |
b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2 ); |
2702 |
b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 ); |
2769 |
if ( ! b->yy_ch_buf ) |
2703 |
if ( ! b->yy_ch_buf ) |
2770 |
YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); |
2704 |
YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); |
2771 |
|
2705 |
|
2772 |
b->yy_is_our_buffer = 1; |
2706 |
b->yy_is_our_buffer = 1; |
2773 |
|
2707 |
|
2774 |
yy_init_buffer(b,file ); |
2708 |
yy_init_buffer( b, file ); |
2775 |
|
2709 |
|
2776 |
return b; |
2710 |
return b; |
2777 |
} |
2711 |
} |
2778 |
|
2712 |
|
2779 |
/** Destroy the buffer. |
2713 |
|
2780 |
* @param b a buffer created with yy_create_buffer() |
2714 |
#ifdef YY_USE_PROTOS |
2781 |
* |
2715 |
void yy_delete_buffer( YY_BUFFER_STATE b ) |
2782 |
*/ |
2716 |
#else |
2783 |
void yy_delete_buffer (YY_BUFFER_STATE b ) |
2717 |
void yy_delete_buffer( b ) |
2784 |
{ |
2718 |
YY_BUFFER_STATE b; |
2785 |
|
2719 |
#endif |
|
|
2720 |
{ |
2786 |
if ( ! b ) |
2721 |
if ( ! b ) |
2787 |
return; |
2722 |
return; |
2788 |
|
2723 |
|
2789 |
if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */ |
2724 |
if ( b == yy_current_buffer ) |
2790 |
YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0; |
2725 |
yy_current_buffer = (YY_BUFFER_STATE) 0; |
2791 |
|
2726 |
|
2792 |
if ( b->yy_is_our_buffer ) |
2727 |
if ( b->yy_is_our_buffer ) |
2793 |
yyfree((void *) b->yy_ch_buf ); |
2728 |
yy_flex_free( (void *) b->yy_ch_buf ); |
2794 |
|
2729 |
|
2795 |
yyfree((void *) b ); |
2730 |
yy_flex_free( (void *) b ); |
2796 |
} |
2731 |
} |
2797 |
|
2732 |
|
2798 |
#ifndef __cplusplus |
|
|
2799 |
extern int isatty (int ); |
2800 |
#endif /* __cplusplus */ |
2801 |
|
2802 |
/* Initializes or reinitializes a buffer. |
2803 |
* This function is sometimes called more than once on the same buffer, |
2804 |
* such as during a yyrestart() or at EOF. |
2805 |
*/ |
2806 |
static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file ) |
2807 |
|
2733 |
|
2808 |
{ |
2734 |
|
2809 |
int oerrno = errno; |
2735 |
#ifdef YY_USE_PROTOS |
2810 |
|
2736 |
void yy_init_buffer( YY_BUFFER_STATE b, FILE *file ) |
2811 |
yy_flush_buffer(b ); |
2737 |
#else |
|
|
2738 |
void yy_init_buffer( b, file ) |
2739 |
YY_BUFFER_STATE b; |
2740 |
FILE *file; |
2741 |
#endif |
2742 |
|
2743 |
|
2744 |
{ |
2745 |
yy_flush_buffer( b ); |
2812 |
|
2746 |
|
2813 |
b->yy_input_file = file; |
2747 |
b->yy_input_file = file; |
2814 |
b->yy_fill_buffer = 1; |
2748 |
b->yy_fill_buffer = 1; |
2815 |
|
2749 |
|
2816 |
/* If b is the current buffer, then yy_init_buffer was _probably_ |
2750 |
#if YY_ALWAYS_INTERACTIVE |
2817 |
* called from yyrestart() or through yy_get_next_buffer. |
2751 |
b->yy_is_interactive = 1; |
2818 |
* In that case, we don't want to reset the lineno or column. |
2752 |
#else |
2819 |
*/ |
2753 |
#if YY_NEVER_INTERACTIVE |
2820 |
if (b != YY_CURRENT_BUFFER){ |
2754 |
b->yy_is_interactive = 0; |
2821 |
b->yy_bs_lineno = 1; |
2755 |
#else |
2822 |
b->yy_bs_column = 0; |
2756 |
b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; |
2823 |
} |
2757 |
#endif |
2824 |
|
2758 |
#endif |
2825 |
b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; |
2759 |
} |
2826 |
|
2760 |
|
2827 |
errno = oerrno; |
2761 |
|
2828 |
} |
2762 |
#ifdef YY_USE_PROTOS |
2829 |
|
2763 |
void yy_flush_buffer( YY_BUFFER_STATE b ) |
2830 |
/** Discard all buffered characters. On the next scan, YY_INPUT will be called. |
2764 |
#else |
2831 |
* @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER. |
2765 |
void yy_flush_buffer( b ) |
2832 |
* |
2766 |
YY_BUFFER_STATE b; |
2833 |
*/ |
2767 |
#endif |
2834 |
void yy_flush_buffer (YY_BUFFER_STATE b ) |
2768 |
|
2835 |
{ |
2769 |
{ |
2836 |
if ( ! b ) |
2770 |
if ( ! b ) |
2837 |
return; |
2771 |
return; |
2838 |
|
2772 |
|
2839 |
b->yy_n_chars = 0; |
2773 |
b->yy_n_chars = 0; |
Lines 2850-2970
Link Here
|
2850 |
b->yy_at_bol = 1; |
2784 |
b->yy_at_bol = 1; |
2851 |
b->yy_buffer_status = YY_BUFFER_NEW; |
2785 |
b->yy_buffer_status = YY_BUFFER_NEW; |
2852 |
|
2786 |
|
2853 |
if ( b == YY_CURRENT_BUFFER ) |
2787 |
if ( b == yy_current_buffer ) |
2854 |
yy_load_buffer_state( ); |
2788 |
yy_load_buffer_state(); |
2855 |
} |
|
|
2856 |
|
2857 |
/** Pushes the new state onto the stack. The new state becomes |
2858 |
* the current state. This function will allocate the stack |
2859 |
* if necessary. |
2860 |
* @param new_buffer The new state. |
2861 |
* |
2862 |
*/ |
2863 |
void yypush_buffer_state (YY_BUFFER_STATE new_buffer ) |
2864 |
{ |
2865 |
if (new_buffer == NULL) |
2866 |
return; |
2867 |
|
2868 |
yyensure_buffer_stack(); |
2869 |
|
2870 |
/* This block is copied from yy_switch_to_buffer. */ |
2871 |
if ( YY_CURRENT_BUFFER ) |
2872 |
{ |
2873 |
/* Flush out information for old buffer. */ |
2874 |
*(yy_c_buf_p) = (yy_hold_char); |
2875 |
YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); |
2876 |
YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); |
2877 |
} |
2878 |
|
2879 |
/* Only push if top exists. Otherwise, replace top. */ |
2880 |
if (YY_CURRENT_BUFFER) |
2881 |
(yy_buffer_stack_top)++; |
2882 |
YY_CURRENT_BUFFER_LVALUE = new_buffer; |
2883 |
|
2884 |
/* copied from yy_switch_to_buffer. */ |
2885 |
yy_load_buffer_state( ); |
2886 |
(yy_did_buffer_switch_on_eof) = 1; |
2887 |
} |
2888 |
|
2889 |
/** Removes and deletes the top of the stack, if present. |
2890 |
* The next element becomes the new top. |
2891 |
* |
2892 |
*/ |
2893 |
void yypop_buffer_state (void) |
2894 |
{ |
2895 |
if (!YY_CURRENT_BUFFER) |
2896 |
return; |
2897 |
|
2898 |
yy_delete_buffer(YY_CURRENT_BUFFER ); |
2899 |
YY_CURRENT_BUFFER_LVALUE = NULL; |
2900 |
if ((yy_buffer_stack_top) > 0) |
2901 |
--(yy_buffer_stack_top); |
2902 |
|
2903 |
if (YY_CURRENT_BUFFER) { |
2904 |
yy_load_buffer_state( ); |
2905 |
(yy_did_buffer_switch_on_eof) = 1; |
2906 |
} |
2789 |
} |
2907 |
} |
|
|
2908 |
|
2790 |
|
2909 |
/* Allocates the stack if it does not exist. |
|
|
2910 |
* Guarantees space for at least one push. |
2911 |
*/ |
2912 |
static void yyensure_buffer_stack (void) |
2913 |
{ |
2914 |
int num_to_alloc; |
2915 |
|
2916 |
if (!(yy_buffer_stack)) { |
2917 |
|
2918 |
/* First allocation is just for 2 elements, since we don't know if this |
2919 |
* scanner will even need a stack. We use 2 instead of 1 to avoid an |
2920 |
* immediate realloc on the next call. |
2921 |
*/ |
2922 |
num_to_alloc = 1; |
2923 |
(yy_buffer_stack) = (struct yy_buffer_state**)yyalloc |
2924 |
(num_to_alloc * sizeof(struct yy_buffer_state*) |
2925 |
); |
2926 |
|
2927 |
memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*)); |
2928 |
|
2929 |
(yy_buffer_stack_max) = num_to_alloc; |
2930 |
(yy_buffer_stack_top) = 0; |
2931 |
return; |
2932 |
} |
2933 |
|
2934 |
if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){ |
2935 |
|
2936 |
/* Increase the buffer to prepare for a possible push. */ |
2937 |
int grow_size = 8 /* arbitrary grow size */; |
2938 |
|
2791 |
|
2939 |
num_to_alloc = (yy_buffer_stack_max) + grow_size; |
2792 |
#ifndef YY_NO_SCAN_BUFFER |
2940 |
(yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc |
2793 |
#ifdef YY_USE_PROTOS |
2941 |
((yy_buffer_stack), |
2794 |
YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size ) |
2942 |
num_to_alloc * sizeof(struct yy_buffer_state*) |
2795 |
#else |
2943 |
); |
2796 |
YY_BUFFER_STATE yy_scan_buffer( base, size ) |
2944 |
|
2797 |
char *base; |
2945 |
/* zero only the new slots.*/ |
2798 |
yy_size_t size; |
2946 |
memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*)); |
2799 |
#endif |
2947 |
(yy_buffer_stack_max) = num_to_alloc; |
2800 |
{ |
2948 |
} |
|
|
2949 |
} |
2950 |
|
2951 |
/** Setup the input buffer state to scan directly from a user-specified character buffer. |
2952 |
* @param base the character buffer |
2953 |
* @param size the size in bytes of the character buffer |
2954 |
* |
2955 |
* @return the newly allocated buffer state object. |
2956 |
*/ |
2957 |
YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size ) |
2958 |
{ |
2959 |
YY_BUFFER_STATE b; |
2801 |
YY_BUFFER_STATE b; |
2960 |
|
2802 |
|
2961 |
if ( size < 2 || |
2803 |
if ( size < 2 || |
2962 |
base[size-2] != YY_END_OF_BUFFER_CHAR || |
2804 |
base[size-2] != YY_END_OF_BUFFER_CHAR || |
2963 |
base[size-1] != YY_END_OF_BUFFER_CHAR ) |
2805 |
base[size-1] != YY_END_OF_BUFFER_CHAR ) |
2964 |
/* They forgot to leave room for the EOB's. */ |
2806 |
/* They forgot to leave room for the EOB's. */ |
2965 |
return 0; |
2807 |
return 0; |
2966 |
|
2808 |
|
2967 |
b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ); |
2809 |
b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) ); |
2968 |
if ( ! b ) |
2810 |
if ( ! b ) |
2969 |
YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" ); |
2811 |
YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" ); |
2970 |
|
2812 |
|
Lines 2978-3019
Link Here
|
2978 |
b->yy_fill_buffer = 0; |
2820 |
b->yy_fill_buffer = 0; |
2979 |
b->yy_buffer_status = YY_BUFFER_NEW; |
2821 |
b->yy_buffer_status = YY_BUFFER_NEW; |
2980 |
|
2822 |
|
2981 |
yy_switch_to_buffer(b ); |
2823 |
yy_switch_to_buffer( b ); |
2982 |
|
2824 |
|
2983 |
return b; |
2825 |
return b; |
2984 |
} |
2826 |
} |
|
|
2827 |
#endif |
2985 |
|
2828 |
|
2986 |
/** Setup the input buffer state to scan a string. The next call to yylex() will |
2829 |
|
2987 |
* scan from a @e copy of @a str. |
2830 |
#ifndef YY_NO_SCAN_STRING |
2988 |
* @param str a NUL-terminated string to scan |
2831 |
#ifdef YY_USE_PROTOS |
2989 |
* |
2832 |
YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str ) |
2990 |
* @return the newly allocated buffer state object. |
2833 |
#else |
2991 |
* @note If you want to scan bytes that may contain NUL values, then use |
2834 |
YY_BUFFER_STATE yy_scan_string( yy_str ) |
2992 |
* yy_scan_bytes() instead. |
2835 |
yyconst char *yy_str; |
2993 |
*/ |
2836 |
#endif |
2994 |
YY_BUFFER_STATE yy_scan_string (yyconst char * yy_str ) |
2837 |
{ |
2995 |
{ |
2838 |
int len; |
2996 |
|
2839 |
for ( len = 0; yy_str[len]; ++len ) |
2997 |
return yy_scan_bytes(yy_str,strlen(yy_str) ); |
2840 |
; |
2998 |
} |
2841 |
|
2999 |
|
2842 |
return yy_scan_bytes( yy_str, len ); |
3000 |
/** Setup the input buffer state to scan the given bytes. The next call to yylex() will |
2843 |
} |
3001 |
* scan from a @e copy of @a bytes. |
2844 |
#endif |
3002 |
* @param bytes the byte buffer to scan |
2845 |
|
3003 |
* @param len the number of bytes in the buffer pointed to by @a bytes. |
2846 |
|
3004 |
* |
2847 |
#ifndef YY_NO_SCAN_BYTES |
3005 |
* @return the newly allocated buffer state object. |
2848 |
#ifdef YY_USE_PROTOS |
3006 |
*/ |
2849 |
YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len ) |
3007 |
YY_BUFFER_STATE yy_scan_bytes (yyconst char * bytes, int len ) |
2850 |
#else |
3008 |
{ |
2851 |
YY_BUFFER_STATE yy_scan_bytes( bytes, len ) |
|
|
2852 |
yyconst char *bytes; |
2853 |
int len; |
2854 |
#endif |
2855 |
{ |
3009 |
YY_BUFFER_STATE b; |
2856 |
YY_BUFFER_STATE b; |
3010 |
char *buf; |
2857 |
char *buf; |
3011 |
yy_size_t n; |
2858 |
yy_size_t n; |
3012 |
int i; |
2859 |
int i; |
3013 |
|
2860 |
|
3014 |
/* Get memory for full buffer, including space for trailing EOB's. */ |
2861 |
/* Get memory for full buffer, including space for trailing EOB's. */ |
3015 |
n = len + 2; |
2862 |
n = len + 2; |
3016 |
buf = (char *) yyalloc(n ); |
2863 |
buf = (char *) yy_flex_alloc( n ); |
3017 |
if ( ! buf ) |
2864 |
if ( ! buf ) |
3018 |
YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" ); |
2865 |
YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" ); |
3019 |
|
2866 |
|
Lines 3022-3028
Link Here
|
3022 |
|
2869 |
|
3023 |
buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR; |
2870 |
buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR; |
3024 |
|
2871 |
|
3025 |
b = yy_scan_buffer(buf,n ); |
2872 |
b = yy_scan_buffer( buf, n ); |
3026 |
if ( ! b ) |
2873 |
if ( ! b ) |
3027 |
YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" ); |
2874 |
YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" ); |
3028 |
|
2875 |
|
Lines 3032-3195
Link Here
|
3032 |
b->yy_is_our_buffer = 1; |
2879 |
b->yy_is_our_buffer = 1; |
3033 |
|
2880 |
|
3034 |
return b; |
2881 |
return b; |
3035 |
} |
2882 |
} |
3036 |
|
|
|
3037 |
#ifndef YY_EXIT_FAILURE |
3038 |
#define YY_EXIT_FAILURE 2 |
3039 |
#endif |
2883 |
#endif |
3040 |
|
2884 |
|
3041 |
static void yy_fatal_error (yyconst char* msg ) |
|
|
3042 |
{ |
3043 |
(void) fprintf( stderr, "%s\n", msg ); |
3044 |
exit( YY_EXIT_FAILURE ); |
3045 |
} |
3046 |
|
2885 |
|
3047 |
/* Redefine yyless() so it works in section 3 code. */ |
2886 |
#ifndef YY_NO_PUSH_STATE |
|
|
2887 |
#ifdef YY_USE_PROTOS |
2888 |
static void yy_push_state( int new_state ) |
2889 |
#else |
2890 |
static void yy_push_state( new_state ) |
2891 |
int new_state; |
2892 |
#endif |
2893 |
{ |
2894 |
if ( yy_start_stack_ptr >= yy_start_stack_depth ) |
2895 |
{ |
2896 |
yy_size_t new_size; |
3048 |
|
2897 |
|
3049 |
#undef yyless |
2898 |
yy_start_stack_depth += YY_START_STACK_INCR; |
3050 |
#define yyless(n) \ |
2899 |
new_size = yy_start_stack_depth * sizeof( int ); |
3051 |
do \ |
|
|
3052 |
{ \ |
3053 |
/* Undo effects of setting up yytext. */ \ |
3054 |
int yyless_macro_arg = (n); \ |
3055 |
YY_LESS_LINENO(yyless_macro_arg);\ |
3056 |
yytext[yyleng] = (yy_hold_char); \ |
3057 |
(yy_c_buf_p) = yytext + yyless_macro_arg; \ |
3058 |
(yy_hold_char) = *(yy_c_buf_p); \ |
3059 |
*(yy_c_buf_p) = '\0'; \ |
3060 |
yyleng = yyless_macro_arg; \ |
3061 |
} \ |
3062 |
while ( 0 ) |
3063 |
|
2900 |
|
3064 |
/* Accessor methods (get/set functions) to struct members. */ |
2901 |
if ( ! yy_start_stack ) |
|
|
2902 |
yy_start_stack = (int *) yy_flex_alloc( new_size ); |
3065 |
|
2903 |
|
3066 |
/** Get the current line number. |
2904 |
else |
3067 |
* |
2905 |
yy_start_stack = (int *) yy_flex_realloc( |
3068 |
*/ |
2906 |
(void *) yy_start_stack, new_size ); |
3069 |
int yyget_lineno (void) |
|
|
3070 |
{ |
3071 |
|
3072 |
return yylineno; |
3073 |
} |
3074 |
|
2907 |
|
3075 |
/** Get the input stream. |
2908 |
if ( ! yy_start_stack ) |
3076 |
* |
2909 |
YY_FATAL_ERROR( |
3077 |
*/ |
2910 |
"out of memory expanding start-condition stack" ); |
3078 |
FILE *yyget_in (void) |
2911 |
} |
3079 |
{ |
|
|
3080 |
return yyin; |
3081 |
} |
3082 |
|
2912 |
|
3083 |
/** Get the output stream. |
2913 |
yy_start_stack[yy_start_stack_ptr++] = YY_START; |
3084 |
* |
|
|
3085 |
*/ |
3086 |
FILE *yyget_out (void) |
3087 |
{ |
3088 |
return yyout; |
3089 |
} |
3090 |
|
2914 |
|
3091 |
/** Get the length of the current token. |
2915 |
BEGIN(new_state); |
3092 |
* |
2916 |
} |
3093 |
*/ |
2917 |
#endif |
3094 |
int yyget_leng (void) |
|
|
3095 |
{ |
3096 |
return yyleng; |
3097 |
} |
3098 |
|
2918 |
|
3099 |
/** Get the current token. |
|
|
3100 |
* |
3101 |
*/ |
3102 |
|
2919 |
|
3103 |
char *yyget_text (void) |
2920 |
#ifndef YY_NO_POP_STATE |
3104 |
{ |
2921 |
static void yy_pop_state() |
3105 |
return yytext; |
2922 |
{ |
3106 |
} |
2923 |
if ( --yy_start_stack_ptr < 0 ) |
|
|
2924 |
YY_FATAL_ERROR( "start-condition stack underflow" ); |
3107 |
|
2925 |
|
3108 |
/** Set the current line number. |
2926 |
BEGIN(yy_start_stack[yy_start_stack_ptr]); |
3109 |
* @param line_number |
2927 |
} |
3110 |
* |
2928 |
#endif |
3111 |
*/ |
|
|
3112 |
void yyset_lineno (int line_number ) |
3113 |
{ |
3114 |
|
3115 |
yylineno = line_number; |
3116 |
} |
3117 |
|
3118 |
/** Set the input stream. This does not discard the current |
3119 |
* input buffer. |
3120 |
* @param in_str A readable stream. |
3121 |
* |
3122 |
* @see yy_switch_to_buffer |
3123 |
*/ |
3124 |
void yyset_in (FILE * in_str ) |
3125 |
{ |
3126 |
yyin = in_str ; |
3127 |
} |
3128 |
|
2929 |
|
3129 |
void yyset_out (FILE * out_str ) |
|
|
3130 |
{ |
3131 |
yyout = out_str ; |
3132 |
} |
3133 |
|
2930 |
|
3134 |
int yyget_debug (void) |
2931 |
#ifndef YY_NO_TOP_STATE |
3135 |
{ |
2932 |
static int yy_top_state() |
3136 |
return yy_flex_debug; |
2933 |
{ |
3137 |
} |
2934 |
return yy_start_stack[yy_start_stack_ptr - 1]; |
|
|
2935 |
} |
2936 |
#endif |
3138 |
|
2937 |
|
3139 |
void yyset_debug (int bdebug ) |
2938 |
#ifndef YY_EXIT_FAILURE |
3140 |
{ |
2939 |
#define YY_EXIT_FAILURE 2 |
3141 |
yy_flex_debug = bdebug ; |
2940 |
#endif |
3142 |
} |
|
|
3143 |
|
2941 |
|
3144 |
/* yylex_destroy is for both reentrant and non-reentrant scanners. */ |
2942 |
#ifdef YY_USE_PROTOS |
3145 |
int yylex_destroy (void) |
2943 |
static void yy_fatal_error( yyconst char msg[] ) |
3146 |
{ |
2944 |
#else |
3147 |
|
2945 |
static void yy_fatal_error( msg ) |
3148 |
/* Pop the buffer stack, destroying each element. */ |
2946 |
char msg[]; |
3149 |
while(YY_CURRENT_BUFFER){ |
2947 |
#endif |
3150 |
yy_delete_buffer(YY_CURRENT_BUFFER ); |
2948 |
{ |
3151 |
YY_CURRENT_BUFFER_LVALUE = NULL; |
2949 |
(void) fprintf( stderr, "%s\n", msg ); |
3152 |
yypop_buffer_state(); |
2950 |
exit( YY_EXIT_FAILURE ); |
3153 |
} |
2951 |
} |
3154 |
|
2952 |
|
3155 |
/* Destroy the stack itself. */ |
|
|
3156 |
yyfree((yy_buffer_stack) ); |
3157 |
(yy_buffer_stack) = NULL; |
3158 |
|
2953 |
|
3159 |
return 0; |
|
|
3160 |
} |
3161 |
|
2954 |
|
3162 |
/* |
2955 |
/* Redefine yyless() so it works in section 3 code. */ |
3163 |
* Internal utility routines. |
2956 |
|
3164 |
*/ |
2957 |
#undef yyless |
|
|
2958 |
#define yyless(n) \ |
2959 |
do \ |
2960 |
{ \ |
2961 |
/* Undo effects of setting up yytext. */ \ |
2962 |
yytext[yyleng] = yy_hold_char; \ |
2963 |
yy_c_buf_p = yytext + n; \ |
2964 |
yy_hold_char = *yy_c_buf_p; \ |
2965 |
*yy_c_buf_p = '\0'; \ |
2966 |
yyleng = n; \ |
2967 |
} \ |
2968 |
while ( 0 ) |
2969 |
|
2970 |
|
2971 |
/* Internal utility routines. */ |
3165 |
|
2972 |
|
3166 |
#ifndef yytext_ptr |
2973 |
#ifndef yytext_ptr |
3167 |
static void yy_flex_strncpy (char* s1, yyconst char * s2, int n ) |
2974 |
#ifdef YY_USE_PROTOS |
3168 |
{ |
2975 |
static void yy_flex_strncpy( char *s1, yyconst char *s2, int n ) |
|
|
2976 |
#else |
2977 |
static void yy_flex_strncpy( s1, s2, n ) |
2978 |
char *s1; |
2979 |
yyconst char *s2; |
2980 |
int n; |
2981 |
#endif |
2982 |
{ |
3169 |
register int i; |
2983 |
register int i; |
3170 |
for ( i = 0; i < n; ++i ) |
2984 |
for ( i = 0; i < n; ++i ) |
3171 |
s1[i] = s2[i]; |
2985 |
s1[i] = s2[i]; |
3172 |
} |
2986 |
} |
3173 |
#endif |
2987 |
#endif |
3174 |
|
2988 |
|
3175 |
#ifdef YY_NEED_STRLEN |
2989 |
#ifdef YY_NEED_STRLEN |
3176 |
static int yy_flex_strlen (yyconst char * s ) |
2990 |
#ifdef YY_USE_PROTOS |
3177 |
{ |
2991 |
static int yy_flex_strlen( yyconst char *s ) |
|
|
2992 |
#else |
2993 |
static int yy_flex_strlen( s ) |
2994 |
yyconst char *s; |
2995 |
#endif |
2996 |
{ |
3178 |
register int n; |
2997 |
register int n; |
3179 |
for ( n = 0; s[n]; ++n ) |
2998 |
for ( n = 0; s[n]; ++n ) |
3180 |
; |
2999 |
; |
3181 |
|
3000 |
|
3182 |
return n; |
3001 |
return n; |
3183 |
} |
3002 |
} |
3184 |
#endif |
3003 |
#endif |
3185 |
|
3004 |
|
3186 |
void *yyalloc (yy_size_t size ) |
3005 |
|
3187 |
{ |
3006 |
#ifdef YY_USE_PROTOS |
|
|
3007 |
static void *yy_flex_alloc( yy_size_t size ) |
3008 |
#else |
3009 |
static void *yy_flex_alloc( size ) |
3010 |
yy_size_t size; |
3011 |
#endif |
3012 |
{ |
3188 |
return (void *) malloc( size ); |
3013 |
return (void *) malloc( size ); |
3189 |
} |
3014 |
} |
3190 |
|
3015 |
|
3191 |
void *yyrealloc (void * ptr, yy_size_t size ) |
3016 |
#ifdef YY_USE_PROTOS |
3192 |
{ |
3017 |
static void *yy_flex_realloc( void *ptr, yy_size_t size ) |
|
|
3018 |
#else |
3019 |
static void *yy_flex_realloc( ptr, size ) |
3020 |
void *ptr; |
3021 |
yy_size_t size; |
3022 |
#endif |
3023 |
{ |
3193 |
/* The cast to (char *) in the following accommodates both |
3024 |
/* The cast to (char *) in the following accommodates both |
3194 |
* implementations that use char* generic pointers, and those |
3025 |
* implementations that use char* generic pointers, and those |
3195 |
* that use void* generic pointers. It works with the latter |
3026 |
* that use void* generic pointers. It works with the latter |
Lines 3198-3227
Link Here
|
3198 |
* as though doing an assignment. |
3029 |
* as though doing an assignment. |
3199 |
*/ |
3030 |
*/ |
3200 |
return (void *) realloc( (char *) ptr, size ); |
3031 |
return (void *) realloc( (char *) ptr, size ); |
3201 |
} |
3032 |
} |
3202 |
|
|
|
3203 |
void yyfree (void * ptr ) |
3204 |
{ |
3205 |
free( (char *) ptr ); /* see yyrealloc() for (char *) cast */ |
3206 |
} |
3207 |
|
3033 |
|
3208 |
#define YYTABLES_NAME "yytables" |
3034 |
#ifdef YY_USE_PROTOS |
|
|
3035 |
static void yy_flex_free( void *ptr ) |
3036 |
#else |
3037 |
static void yy_flex_free( ptr ) |
3038 |
void *ptr; |
3039 |
#endif |
3040 |
{ |
3041 |
free( ptr ); |
3042 |
} |
3209 |
|
3043 |
|
3210 |
#undef YY_NEW_FILE |
3044 |
#if YY_MAIN |
3211 |
#undef YY_FLUSH_BUFFER |
3045 |
int main() |
3212 |
#undef yy_set_bol |
3046 |
{ |
3213 |
#undef yy_new_buffer |
3047 |
yylex(); |
3214 |
#undef yy_set_interactive |
3048 |
return 0; |
3215 |
#undef yytext_ptr |
3049 |
} |
3216 |
#undef YY_DO_BEFORE_ACTION |
|
|
3217 |
|
3218 |
#ifdef YY_DECL_IS_OURS |
3219 |
#undef YY_DECL_IS_OURS |
3220 |
#undef YY_DECL |
3221 |
#endif |
3050 |
#endif |
3222 |
#line 493 "moc.l" |
3051 |
#line 493 "moc.l" |
3223 |
|
3052 |
|
3224 |
|
3053 |
|
3225 |
|
|
|
3226 |
#endif // MOC_YACC_CODE |
3054 |
#endif // MOC_YACC_CODE |
3227 |
|
|
|