1
#define yy_create_buffer adsedgelabel_create_buffer
2
#define yy_delete_buffer adsedgelabel_delete_buffer
3
#define yy_scan_buffer adsedgelabel_scan_buffer
4
#define yy_scan_string adsedgelabel_scan_string
5
#define yy_scan_bytes adsedgelabel_scan_bytes
6
#define yy_flex_debug adsedgelabel_flex_debug
7
#define yy_init_buffer adsedgelabel_init_buffer
8
#define yy_flush_buffer adsedgelabel_flush_buffer
9
#define yy_load_buffer_state adsedgelabel_load_buffer_state
10
#define yy_switch_to_buffer adsedgelabel_switch_to_buffer
11
#define yyin adsedgelabelin
12
#define yyleng adsedgelabelleng
13
#define yylex adsedgelabellex
14
#define yyout adsedgelabelout
15
#define yyrestart adsedgelabelrestart
16
#define yytext adsedgelabeltext
18
#line 19 "adsedgelabel.c"
19
/* A lexical scanner generated by flex */
21
/* Scanner skeleton version:
22
* $Header: /home/daffy/u0/vern/flex/RCS/flex.skl,v 2.91 96/09/10 16:58:48 vern Exp $
26
#define YY_FLEX_MAJOR_VERSION 2
27
#define YY_FLEX_MINOR_VERSION 5
33
/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
45
/* Use prototypes in function declarations. */
48
/* The "const" storage-class-modifier is valid. */
51
#else /* ! __cplusplus */
59
#endif /* ! __cplusplus */
78
#define YY_PROTO(proto) proto
80
#define YY_PROTO(proto) ()
83
/* Returned upon end-of-file. */
86
/* Promotes a possibly negative, possibly signed char to an unsigned
87
* integer for use as an array index. If the signed char is negative,
88
* we want to instead treat it as an 8-bit unsigned char, hence the
91
#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
93
/* Enter a start condition. This macro really ought to take a parameter,
94
* but we do it the disgusting crufty way forced on us by the ()-less
95
* definition of BEGIN.
97
#define BEGIN yy_start = 1 + 2 *
99
/* Translate the current start state into a value that can be later handed
100
* to BEGIN to return to the state. The YYSTATE alias is for lex
103
#define YY_START ((yy_start - 1) / 2)
104
#define YYSTATE YY_START
106
/* Action number for EOF rule of a given start state. */
107
#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
109
/* Special action meaning "start processing a new file". */
110
#define YY_NEW_FILE yyrestart( yyin )
112
#define YY_END_OF_BUFFER_CHAR 0
114
/* Size of default input buffer. */
115
#define YY_BUF_SIZE 16384
117
typedef struct yy_buffer_state *YY_BUFFER_STATE;
120
extern FILE *yyin, *yyout;
122
#define EOB_ACT_CONTINUE_SCAN 0
123
#define EOB_ACT_END_OF_FILE 1
124
#define EOB_ACT_LAST_MATCH 2
126
/* The funky do-while in the following #define is used to turn the definition
127
* int a single C statement (which needs a semi-colon terminator). This
128
* avoids problems with code like:
130
* if ( condition_holds )
133
* do_something_else();
135
* Prior to using the do-while the compiler would get upset at the
136
* "else" because it interpreted the "if" statement as being all
137
* done when it reached the ';' after the yyless() call.
140
/* Return all but the first 'n' matched characters back to the input stream. */
145
/* Undo effects of setting up yytext. */ \
146
*yy_cp = yy_hold_char; \
147
YY_RESTORE_YY_MORE_OFFSET \
148
yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \
149
YY_DO_BEFORE_ACTION; /* set up yytext again */ \
153
#define unput(c) yyunput( c, yytext_ptr )
155
/* The following is because we cannot portably get our hands on size_t
156
* (without autoconf's help, which isn't available because we want
157
* flex-generated scanners to compile on their own).
159
typedef unsigned int yy_size_t;
162
struct yy_buffer_state
166
char *yy_ch_buf; /* input buffer */
167
char *yy_buf_pos; /* current position in input buffer */
169
/* Size of input buffer in bytes, not including room for EOB
172
yy_size_t yy_buf_size;
174
/* Number of characters read into yy_ch_buf, not including EOB
179
/* Whether we "own" the buffer - i.e., we know we created it,
180
* and can realloc() it to grow it, and should free() it to
183
int yy_is_our_buffer;
185
/* Whether this is an "interactive" input source; if so, and
186
* if we're using stdio for input, then we want to use getc()
187
* instead of fread(), to make sure we stop fetching input after
190
int yy_is_interactive;
192
/* Whether we're considered to be at the beginning of a line.
193
* If so, '^' rules will be active on the next match, otherwise
198
/* Whether to try to fill the input buffer when we reach the
203
int yy_buffer_status;
204
#define YY_BUFFER_NEW 0
205
#define YY_BUFFER_NORMAL 1
206
/* When an EOF's been seen but there's still some text to process
207
* then we mark the buffer as YY_EOF_PENDING, to indicate that we
208
* shouldn't try reading from the input source any more. We might
209
* still have a bunch of tokens to match, though, because of
210
* possible backing-up.
212
* When we actually see the EOF, we change the status to "new"
213
* (via yyrestart()), so that the user can continue scanning by
214
* just pointing yyin at a new input file.
216
#define YY_BUFFER_EOF_PENDING 2
219
static YY_BUFFER_STATE yy_current_buffer = 0;
221
/* We provide macros for accessing buffer states in case in the
222
* future we want to put the buffer states in a more general
225
#define YY_CURRENT_BUFFER yy_current_buffer
228
/* yy_hold_char holds the character lost when yytext is formed. */
229
static char yy_hold_char;
231
static int yy_n_chars; /* number of characters read into yy_ch_buf */
236
/* Points to current character in buffer. */
237
static char *yy_c_buf_p = (char *) 0;
238
static int yy_init = 1; /* whether we need to initialize */
239
static int yy_start = 0; /* start state number */
241
/* Flag which is used to allow yywrap()'s to do buffer switches
242
* instead of setting up a fresh yyin. A bit of a hack ...
244
static int yy_did_buffer_switch_on_eof;
246
void yyrestart YY_PROTO(( FILE *input_file ));
248
void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer ));
249
void yy_load_buffer_state YY_PROTO(( void ));
250
YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size ));
251
void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b ));
252
void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file ));
253
void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b ));
254
#define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer )
256
YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size ));
257
YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str ));
258
YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len ));
260
static void *yy_flex_alloc YY_PROTO(( yy_size_t ));
261
static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t ));
262
static void yy_flex_free YY_PROTO(( void * ));
264
#define yy_new_buffer yy_create_buffer
266
#define yy_set_interactive(is_interactive) \
268
if ( ! yy_current_buffer ) \
269
yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
270
yy_current_buffer->yy_is_interactive = is_interactive; \
273
#define yy_set_bol(at_bol) \
275
if ( ! yy_current_buffer ) \
276
yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
277
yy_current_buffer->yy_at_bol = at_bol; \
280
#define YY_AT_BOL() (yy_current_buffer->yy_at_bol)
284
#define YY_SKIP_YYWRAP
285
typedef unsigned char YY_CHAR;
286
FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
287
typedef int yy_state_type;
289
#define yytext_ptr yytext
291
static yy_state_type yy_get_previous_state YY_PROTO(( void ));
292
static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));
293
static int yy_get_next_buffer YY_PROTO(( void ));
294
static void yy_fatal_error YY_PROTO(( yyconst char msg[] ));
296
/* Done after the current pattern has been matched and before the
297
* corresponding action - sets up yytext.
299
#define YY_DO_BEFORE_ACTION \
300
yytext_ptr = yy_bp; \
301
yyleng = (int) (yy_cp - yy_bp); \
302
yy_hold_char = *yy_cp; \
306
#define YY_NUM_RULES 40
307
#define YY_END_OF_BUFFER 41
308
static yyconst short int yy_accept[82] =
310
0, 0, 41, 40, 39, 21, 19, 40, 16, 3,
311
4, 14, 12, 13, 15, 36, 20, 10, 7, 11,
312
37, 37, 1, 2, 37, 28, 37, 22, 24, 26,
313
37, 37, 17, 18, 39, 8, 0, 36, 5, 9,
314
6, 0, 37, 30, 37, 37, 37, 37, 37, 37,
315
37, 37, 37, 38, 37, 37, 37, 37, 37, 37,
316
37, 37, 37, 37, 29, 32, 37, 37, 37, 35,
317
31, 34, 33, 23, 37, 37, 37, 37, 25, 27,
321
static yyconst int yy_ec[256] =
323
1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
324
1, 1, 2, 1, 1, 1, 1, 1, 1, 1,
325
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
326
1, 4, 5, 6, 1, 1, 1, 7, 1, 8,
327
9, 10, 11, 1, 12, 1, 13, 14, 14, 14,
328
14, 14, 14, 14, 14, 14, 14, 15, 1, 16,
329
17, 18, 1, 1, 19, 19, 19, 19, 19, 19,
330
19, 19, 20, 19, 19, 19, 19, 21, 19, 19,
331
19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
332
22, 1, 23, 1, 24, 1, 25, 19, 26, 27,
334
28, 29, 19, 30, 31, 19, 19, 32, 33, 34,
335
35, 19, 19, 36, 37, 38, 39, 19, 40, 19,
336
41, 19, 1, 42, 1, 43, 1, 1, 1, 1,
337
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
338
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
339
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
340
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
341
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
342
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
343
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
345
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
346
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
347
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
348
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
349
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
353
static yyconst int yy_meta[44] =
355
1, 1, 2, 3, 1, 1, 1, 2, 2, 1,
356
1, 1, 1, 3, 1, 1, 1, 1, 3, 3,
357
3, 1, 1, 3, 3, 3, 3, 3, 3, 3,
358
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
362
static yyconst short int yy_base[84] =
364
0, 0, 106, 219, 42, 219, 87, 0, 219, 219,
365
219, 219, 219, 43, 219, 88, 219, 31, 219, 83,
366
46, 47, 219, 219, 48, 49, 52, 54, 55, 57,
367
56, 58, 219, 219, 63, 219, 63, 52, 219, 219,
368
219, 59, 86, 87, 89, 90, 91, 93, 92, 94,
369
97, 95, 101, 58, 118, 99, 120, 129, 131, 133,
370
134, 135, 137, 136, 143, 145, 150, 152, 160, 162,
371
169, 171, 173, 174, 175, 177, 176, 178, 181, 184,
375
static yyconst short int yy_def[84] =
377
81, 1, 81, 81, 81, 81, 81, 82, 81, 81,
378
81, 81, 81, 81, 81, 81, 81, 81, 81, 81,
379
83, 83, 81, 81, 83, 83, 83, 83, 83, 83,
380
83, 83, 81, 81, 81, 81, 82, 81, 81, 81,
381
81, 83, 83, 83, 83, 83, 83, 83, 83, 83,
382
83, 83, 83, 82, 83, 83, 83, 83, 83, 83,
383
83, 83, 83, 83, 83, 83, 83, 83, 83, 83,
384
83, 83, 83, 83, 83, 83, 83, 83, 83, 83,
388
static yyconst short int yy_nxt[263] =
390
4, 5, 6, 5, 7, 8, 9, 10, 11, 12,
391
13, 14, 15, 16, 17, 18, 19, 20, 21, 22,
392
21, 23, 24, 4, 25, 21, 26, 27, 21, 28,
393
21, 21, 29, 21, 21, 21, 30, 31, 21, 32,
394
21, 33, 34, 35, 35, 35, 35, 39, 40, 42,
395
42, 42, 42, 35, 35, 42, 43, 42, 42, 42,
396
42, 42, 81, 54, 35, 38, 35, 44, 54, 42,
397
42, 42, 42, 46, 35, 42, 45, 42, 42, 42,
398
42, 42, 81, 47, 50, 49, 51, 53, 48, 42,
399
42, 52, 42, 42, 42, 42, 42, 42, 42, 41,
401
42, 38, 42, 36, 42, 81, 81, 81, 81, 42,
402
42, 81, 42, 42, 42, 42, 42, 42, 42, 60,
403
42, 42, 42, 42, 42, 59, 55, 57, 63, 61,
404
56, 58, 42, 62, 42, 65, 42, 42, 42, 42,
405
42, 42, 81, 42, 81, 64, 42, 66, 42, 81,
406
81, 81, 42, 42, 42, 42, 42, 42, 42, 42,
407
42, 70, 71, 42, 67, 42, 42, 69, 42, 68,
408
72, 73, 42, 42, 42, 42, 42, 42, 42, 42,
409
42, 42, 81, 42, 42, 42, 74, 42, 81, 75,
410
81, 81, 42, 76, 42, 81, 42, 42, 42, 42,
412
42, 42, 77, 78, 42, 81, 81, 42, 81, 81,
413
81, 81, 79, 81, 80, 37, 81, 37, 3, 81,
414
81, 81, 81, 81, 81, 81, 81, 81, 81, 81,
415
81, 81, 81, 81, 81, 81, 81, 81, 81, 81,
416
81, 81, 81, 81, 81, 81, 81, 81, 81, 81,
417
81, 81, 81, 81, 81, 81, 81, 81, 81, 81,
421
static yyconst short int yy_chk[263] =
423
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
424
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
425
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
426
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
427
1, 1, 1, 5, 14, 5, 14, 18, 18, 21,
428
22, 25, 26, 5, 14, 27, 83, 28, 29, 31,
429
30, 32, 42, 54, 35, 38, 35, 22, 37, 21,
430
22, 25, 26, 26, 35, 27, 25, 28, 29, 31,
431
30, 32, 42, 27, 30, 29, 31, 32, 28, 43,
432
44, 31, 45, 46, 47, 49, 48, 50, 52, 20,
434
51, 16, 56, 7, 53, 3, 0, 0, 0, 43,
435
44, 0, 45, 46, 47, 49, 48, 50, 52, 50,
436
51, 55, 56, 57, 53, 49, 45, 47, 53, 51,
437
46, 48, 58, 52, 59, 56, 60, 61, 62, 64,
438
63, 55, 0, 57, 0, 55, 65, 57, 66, 0,
439
0, 0, 58, 67, 59, 68, 60, 61, 62, 64,
440
63, 61, 62, 69, 58, 70, 65, 60, 66, 59,
441
63, 64, 71, 67, 72, 68, 73, 74, 75, 77,
442
76, 78, 0, 69, 79, 70, 67, 80, 0, 68,
443
0, 0, 71, 69, 72, 0, 73, 74, 75, 77,
445
76, 78, 75, 76, 79, 0, 0, 80, 0, 0,
446
0, 0, 77, 0, 78, 82, 0, 82, 81, 81,
447
81, 81, 81, 81, 81, 81, 81, 81, 81, 81,
448
81, 81, 81, 81, 81, 81, 81, 81, 81, 81,
449
81, 81, 81, 81, 81, 81, 81, 81, 81, 81,
450
81, 81, 81, 81, 81, 81, 81, 81, 81, 81,
454
static yy_state_type yy_last_accepting_state;
455
static char *yy_last_accepting_cpos;
457
/* The intent behind this definition is that it'll catch
458
* any uses of REJECT which flex missed.
460
#define REJECT reject_used_but_not_detected
461
#define yymore() yymore_used_but_not_detected
462
#define YY_MORE_ADJ 0
463
#define YY_RESTORE_YY_MORE_OFFSET
465
#line 1 "adsedgelabel.l"
467
#line 2 "adsedgelabel.l"
470
#include "adsedgelabel.tab.h"
471
#include "adsedgelabelparse.h"
473
char adsedgelabel_errormsg[1024] = "";
474
char adsedgelabel_constraint[1024] = "";
475
#line 476 "adsedgelabel.c"
477
/* Macros after this point can all be overridden by user definitions in
481
#ifndef YY_SKIP_YYWRAP
483
extern "C" int yywrap YY_PROTO(( void ));
485
extern int yywrap YY_PROTO(( void ));
490
static void yyunput YY_PROTO(( int c, char *buf_ptr ));
494
static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));
497
#ifdef YY_NEED_STRLEN
498
static int yy_flex_strlen YY_PROTO(( yyconst char * ));
503
static int yyinput YY_PROTO(( void ));
505
static int input YY_PROTO(( void ));
510
static int yy_start_stack_ptr = 0;
511
static int yy_start_stack_depth = 0;
512
static int *yy_start_stack = 0;
513
#ifndef YY_NO_PUSH_STATE
514
static void yy_push_state YY_PROTO(( int new_state ));
516
#ifndef YY_NO_POP_STATE
517
static void yy_pop_state YY_PROTO(( void ));
519
#ifndef YY_NO_TOP_STATE
520
static int yy_top_state YY_PROTO(( void ));
524
#define YY_NO_PUSH_STATE 1
525
#define YY_NO_POP_STATE 1
526
#define YY_NO_TOP_STATE 1
529
#ifdef YY_MALLOC_DECL
537
/* Just try to get by without declaring the routines. This will fail
538
* miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int)
539
* or sizeof(void*) != sizeof(int).
544
/* Amount of stuff to slurp up with each read. */
545
#ifndef YY_READ_BUF_SIZE
546
#define YY_READ_BUF_SIZE 8192
549
/* Copy whatever the last rule matched to the standard output. */
552
/* This used to be an fputs(), but since the string might contain NUL's,
553
* we now use fwrite().
555
#define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
558
/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
559
* is returned in "result".
562
#define YY_INPUT(buf,result,max_size) \
563
if ( yy_current_buffer->yy_is_interactive ) \
566
for ( n = 0; n < max_size && \
567
(c = getc( yyin )) != EOF && c != '\n'; ++n ) \
570
buf[n++] = (char) c; \
571
if ( c == EOF && ferror( yyin ) ) \
572
YY_FATAL_ERROR( "input in flex scanner failed" ); \
575
else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
576
&& ferror( yyin ) ) \
577
YY_FATAL_ERROR( "input in flex scanner failed" );
580
/* No semi-colon after return; correct usage is to write "yyterminate();" -
581
* we don't want an extra ';' after the "return" because that will cause
582
* some compilers to complain about unreachable statements.
585
#define yyterminate() return YY_NULL
588
/* Number of entries by which start-condition stack grows. */
589
#ifndef YY_START_STACK_INCR
590
#define YY_START_STACK_INCR 25
593
/* Report a fatal error. */
594
#ifndef YY_FATAL_ERROR
595
#define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
598
/* Default declaration of generated scanner - a define so the user can
599
* easily add parameters.
602
#define YY_DECL int yylex YY_PROTO(( void ))
605
/* Code executed at the beginning of each rule, after yytext and yyleng
608
#ifndef YY_USER_ACTION
609
#define YY_USER_ACTION
612
/* Code executed at the end of each rule. */
614
#define YY_BREAK break;
617
#define YY_RULE_SETUP \
622
register yy_state_type yy_current_state;
623
register char *yy_cp = NULL, *yy_bp = NULL;
626
#line 16 "adsedgelabel.l"
628
#line 629 "adsedgelabel.c"
639
yy_start = 1; /* first start state */
647
if ( ! yy_current_buffer )
649
yy_create_buffer( yyin, YY_BUF_SIZE );
651
yy_load_buffer_state();
654
while ( 1 ) /* loops until end-of-file is reached */
658
/* Support of yytext. */
659
*yy_cp = yy_hold_char;
661
/* yy_bp points to the position in yy_ch_buf of the start of
666
yy_current_state = yy_start;
670
register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
671
if ( yy_accept[yy_current_state] )
673
yy_last_accepting_state = yy_current_state;
674
yy_last_accepting_cpos = yy_cp;
676
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
678
yy_current_state = (int) yy_def[yy_current_state];
679
if ( yy_current_state >= 82 )
680
yy_c = yy_meta[(unsigned int) yy_c];
682
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
685
while ( yy_base[yy_current_state] != 219 );
688
yy_act = yy_accept[yy_current_state];
690
{ /* have to back up */
691
yy_cp = yy_last_accepting_cpos;
692
yy_current_state = yy_last_accepting_state;
693
yy_act = yy_accept[yy_current_state];
699
do_action: /* This label is used only to access EOF actions. */
703
{ /* beginning of action switch */
704
case 0: /* must back up */
705
/* undo the effects of YY_DO_BEFORE_ACTION */
706
*yy_cp = yy_hold_char;
707
yy_cp = yy_last_accepting_cpos;
708
yy_current_state = yy_last_accepting_state;
713
#line 17 "adsedgelabel.l"
714
{adsedgelabellval.str_ptr=adsedgelabeltext;strcat(adsedgelabel_constraint, "[");return(OPENB);}
718
#line 18 "adsedgelabel.l"
719
{adsedgelabellval.str_ptr=adsedgelabeltext;strcat(adsedgelabel_constraint, "]");return(CLOSEB);}
723
#line 19 "adsedgelabel.l"
724
{adsedgelabellval.str_ptr=adsedgelabeltext;strcat(adsedgelabel_constraint, "(");return(OPEN);}
728
#line 20 "adsedgelabel.l"
729
{adsedgelabellval.str_ptr=adsedgelabeltext;strcat(adsedgelabel_constraint, ")");return(CLOSE);}
733
#line 21 "adsedgelabel.l"
734
{adsedgelabellval.str_ptr=adsedgelabeltext;strcat(adsedgelabel_constraint, "<=");return(LEQ);}
738
#line 22 "adsedgelabel.l"
739
{adsedgelabellval.str_ptr=adsedgelabeltext;strcat(adsedgelabel_constraint, ">=");return(GEQ);}
743
#line 23 "adsedgelabel.l"
744
{adsedgelabellval.str_ptr=adsedgelabeltext;strcat(adsedgelabel_constraint, "=");return(EQ);}
748
#line 24 "adsedgelabel.l"
749
{adsedgelabellval.str_ptr=adsedgelabeltext;strcat(adsedgelabel_constraint, "!=");return(NEQ);}
753
#line 25 "adsedgelabel.l"
754
{adsedgelabellval.str_ptr=adsedgelabeltext;strcat(adsedgelabel_constraint, "<>");return(NEQ);}
758
#line 26 "adsedgelabel.l"
759
{adsedgelabellval.str_ptr=adsedgelabeltext;strcat(adsedgelabel_constraint, "<");return(LT);}
763
#line 27 "adsedgelabel.l"
764
{adsedgelabellval.str_ptr=adsedgelabeltext;strcat(adsedgelabel_constraint, ">");return(GT);}
768
#line 28 "adsedgelabel.l"
769
{adsedgelabellval.str_ptr=adsedgelabeltext;strcat(adsedgelabel_constraint, "+");return(PLUS);}
773
#line 29 "adsedgelabel.l"
774
{adsedgelabellval.str_ptr=adsedgelabeltext;strcat(adsedgelabel_constraint, "-");return(MINUS);}
778
#line 30 "adsedgelabel.l"
779
{adsedgelabellval.str_ptr=adsedgelabeltext;strcat(adsedgelabel_constraint, "*");return(TIMES);}
783
#line 31 "adsedgelabel.l"
784
{adsedgelabellval.str_ptr=adsedgelabeltext;strcat(adsedgelabel_constraint, "/");return(DIV);}
788
#line 32 "adsedgelabel.l"
789
{adsedgelabellval.str_ptr=adsedgelabeltext;strcat(adsedgelabel_constraint, "&");return(AND);}
793
#line 33 "adsedgelabel.l"
794
{adsedgelabellval.str_ptr=adsedgelabeltext;strcat(adsedgelabel_constraint, "|");return(OR);}
798
#line 34 "adsedgelabel.l"
799
{adsedgelabellval.str_ptr=adsedgelabeltext;strcat(adsedgelabel_constraint, "~");return(NOT);}
803
#line 35 "adsedgelabel.l"
804
{adsedgelabellval.str_ptr=adsedgelabeltext;strcat(adsedgelabel_constraint, "~");return(NOT);}
808
#line 36 "adsedgelabel.l"
809
{adsedgelabellval.str_ptr=adsedgelabeltext;strcat(adsedgelabel_constraint, ":");return(COLON);}
813
#line 37 "adsedgelabel.l"
814
{adsedgelabellval.str_ptr=adsedgelabeltext;strcat(adsedgelabel_constraint, "\n");return NL;}
818
#line 38 "adsedgelabel.l"
819
{adsedgelabellval.str_ptr=adsedgelabeltext;strcat(adsedgelabel_constraint, "h");return HOURS;}
823
#line 39 "adsedgelabel.l"
824
{adsedgelabellval.str_ptr=adsedgelabeltext;strcat(adsedgelabel_constraint, "h");return HOURS;}
828
#line 40 "adsedgelabel.l"
829
{adsedgelabellval.str_ptr=adsedgelabeltext;strcat(adsedgelabel_constraint, "m");return MINUTES;}
833
#line 41 "adsedgelabel.l"
834
{adsedgelabellval.str_ptr=adsedgelabeltext;strcat(adsedgelabel_constraint, "m");return MINUTES;}
838
#line 42 "adsedgelabel.l"
839
{adsedgelabellval.str_ptr=adsedgelabeltext;strcat(adsedgelabel_constraint, "s");return SECONDS;}
843
#line 43 "adsedgelabel.l"
844
{adsedgelabellval.str_ptr=adsedgelabeltext;strcat(adsedgelabel_constraint, "s");return SECONDS;}
848
#line 44 "adsedgelabel.l"
849
{adsedgelabellval.str_ptr=adsedgelabeltext;strcat(adsedgelabel_constraint, "d");return DAYS;}
853
#line 45 "adsedgelabel.l"
854
{adsedgelabellval.str_ptr=adsedgelabeltext;strcat(adsedgelabel_constraint, "d");return DAYS;}
858
#line 46 "adsedgelabel.l"
859
{adsedgelabellval.str_ptr=adsedgelabeltext;strcat(adsedgelabel_constraint, "IN");return IN;}
863
#line 47 "adsedgelabel.l"
864
{adsedgelabellval.str_ptr=adsedgelabeltext;strcat(adsedgelabel_constraint, "true");return(TRUE);}
868
#line 48 "adsedgelabel.l"
869
{adsedgelabellval.str_ptr=adsedgelabeltext;strcat(adsedgelabel_constraint, "else");return(ELSE);}
873
#line 49 "adsedgelabel.l"
874
{adsedgelabellval.str_ptr=adsedgelabeltext;strcat(adsedgelabel_constraint, "after");return(AFTERTOKEN);}
878
#line 50 "adsedgelabel.l"
879
{adsedgelabellval.str_ptr=adsedgelabeltext;strcat(adsedgelabel_constraint, "when");return(WHENTOKEN);}
883
#line 51 "adsedgelabel.l"
884
{adsedgelabellval.str_ptr=adsedgelabeltext;strcat(adsedgelabel_constraint, "time");return(TIME);}
888
#line 52 "adsedgelabel.l"
889
{adsedgelabellval.str_ptr=adsedgelabeltext;strcat(adsedgelabel_constraint, adsedgelabeltext); return INTEGER;}
893
#line 53 "adsedgelabel.l"
894
{adsedgelabellval.str_ptr=adsedgelabeltext;strcat(adsedgelabel_constraint, adsedgelabeltext); return IDENTIFIER;}
898
#line 54 "adsedgelabel.l"
899
{adsedgelabellval.str_ptr=adsedgelabeltext;strcat(adsedgelabel_constraint, adsedgelabeltext);return(QUOTE);}
903
#line 55 "adsedgelabel.l"
908
#line 57 "adsedgelabel.l"
911
#line 912 "adsedgelabel.c"
912
case YY_STATE_EOF(INITIAL):
915
case YY_END_OF_BUFFER:
917
/* Amount of text matched not including the EOB char. */
918
int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1;
920
/* Undo the effects of YY_DO_BEFORE_ACTION. */
921
*yy_cp = yy_hold_char;
922
YY_RESTORE_YY_MORE_OFFSET
924
if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )
926
/* We're scanning a new file or input source. It's
927
* possible that this happened because the user
928
* just pointed yyin at a new source and called
929
* yylex(). If so, then we have to assure
930
* consistency between yy_current_buffer and our
931
* globals. Here is the right place to do so, because
932
* this is the first action (other than possibly a
933
* back-up) that will match for the new input source.
935
yy_n_chars = yy_current_buffer->yy_n_chars;
936
yy_current_buffer->yy_input_file = yyin;
937
yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL;
940
/* Note that here we test for yy_c_buf_p "<=" to the position
941
* of the first EOB in the buffer, since yy_c_buf_p will
942
* already have been incremented past the NUL character
943
* (since all states make transitions on EOB to the
944
* end-of-buffer state). Contrast this with the test
947
if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
948
{ /* This was really a NUL. */
949
yy_state_type yy_next_state;
951
yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;
953
yy_current_state = yy_get_previous_state();
955
/* Okay, we're now positioned to make the NUL
956
* transition. We couldn't have
957
* yy_get_previous_state() go ahead and do it
958
* for us because it doesn't know how to deal
959
* with the possibility of jamming (and we don't
960
* want to build jamming into it because then it
961
* will run more slowly).
964
yy_next_state = yy_try_NUL_trans( yy_current_state );
966
yy_bp = yytext_ptr + YY_MORE_ADJ;
970
/* Consume the NUL. */
971
yy_cp = ++yy_c_buf_p;
972
yy_current_state = yy_next_state;
983
else switch ( yy_get_next_buffer() )
985
case EOB_ACT_END_OF_FILE:
987
yy_did_buffer_switch_on_eof = 0;
991
/* Note: because we've taken care in
992
* yy_get_next_buffer() to have set up
993
* yytext, we can now set up
994
* yy_c_buf_p so that if some total
995
* hoser (like flex itself) wants to
996
* call the scanner after we return the
997
* YY_NULL, it'll still work - another
998
* YY_NULL will get returned.
1000
yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;
1002
yy_act = YY_STATE_EOF(YY_START);
1008
if ( ! yy_did_buffer_switch_on_eof )
1014
case EOB_ACT_CONTINUE_SCAN:
1016
yytext_ptr + yy_amount_of_matched_text;
1018
yy_current_state = yy_get_previous_state();
1021
yy_bp = yytext_ptr + YY_MORE_ADJ;
1024
case EOB_ACT_LAST_MATCH:
1026
&yy_current_buffer->yy_ch_buf[yy_n_chars];
1028
yy_current_state = yy_get_previous_state();
1031
yy_bp = yytext_ptr + YY_MORE_ADJ;
1032
goto yy_find_action;
1039
"fatal flex scanner internal error--no action found" );
1040
} /* end of action switch */
1041
} /* end of scanning one token */
1042
} /* end of yylex */
1045
/* yy_get_next_buffer - try to read in a new buffer
1047
* Returns a code representing an action:
1048
* EOB_ACT_LAST_MATCH -
1049
* EOB_ACT_CONTINUE_SCAN - continue scanning from current position
1050
* EOB_ACT_END_OF_FILE - end of file
1053
static int yy_get_next_buffer()
1055
register char *dest = yy_current_buffer->yy_ch_buf;
1056
register char *source = yytext_ptr;
1057
register int number_to_move, i;
1060
if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
1062
"fatal flex scanner internal error--end of buffer missed" );
1064
if ( yy_current_buffer->yy_fill_buffer == 0 )
1065
{ /* Don't try to fill the buffer, so this is an EOF. */
1066
if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 )
1068
/* We matched a single character, the EOB, so
1069
* treat this as a final EOF.
1071
return EOB_ACT_END_OF_FILE;
1076
/* We matched some text prior to the EOB, first
1079
return EOB_ACT_LAST_MATCH;
1083
/* Try to read more data. */
1085
/* First move last chars to start of buffer. */
1086
number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1;
1088
for ( i = 0; i < number_to_move; ++i )
1089
*(dest++) = *(source++);
1091
if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING )
1092
/* don't do the read, it's not guaranteed to return an EOF,
1095
yy_current_buffer->yy_n_chars = yy_n_chars = 0;
1100
yy_current_buffer->yy_buf_size - number_to_move - 1;
1102
while ( num_to_read <= 0 )
1103
{ /* Not enough room in the buffer - grow it. */
1104
#ifdef YY_USES_REJECT
1106
"input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
1109
/* just a shorter name for the current buffer */
1110
YY_BUFFER_STATE b = yy_current_buffer;
1112
int yy_c_buf_p_offset =
1113
(int) (yy_c_buf_p - b->yy_ch_buf);
1115
if ( b->yy_is_our_buffer )
1117
int new_size = b->yy_buf_size * 2;
1119
if ( new_size <= 0 )
1120
b->yy_buf_size += b->yy_buf_size / 8;
1122
b->yy_buf_size *= 2;
1124
b->yy_ch_buf = (char *)
1125
/* Include room in for 2 EOB chars. */
1126
yy_flex_realloc( (void *) b->yy_ch_buf,
1127
b->yy_buf_size + 2 );
1130
/* Can't grow it, we don't own it. */
1133
if ( ! b->yy_ch_buf )
1135
"fatal error - scanner input buffer overflow" );
1137
yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
1139
num_to_read = yy_current_buffer->yy_buf_size -
1144
if ( num_to_read > YY_READ_BUF_SIZE )
1145
num_to_read = YY_READ_BUF_SIZE;
1147
/* Read in more data. */
1148
YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
1149
yy_n_chars, num_to_read );
1151
yy_current_buffer->yy_n_chars = yy_n_chars;
1154
if ( yy_n_chars == 0 )
1156
if ( number_to_move == YY_MORE_ADJ )
1158
ret_val = EOB_ACT_END_OF_FILE;
1164
ret_val = EOB_ACT_LAST_MATCH;
1165
yy_current_buffer->yy_buffer_status =
1166
YY_BUFFER_EOF_PENDING;
1171
ret_val = EOB_ACT_CONTINUE_SCAN;
1173
yy_n_chars += number_to_move;
1174
yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
1175
yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
1177
yytext_ptr = &yy_current_buffer->yy_ch_buf[0];
1183
/* yy_get_previous_state - get the state just before the EOB char was reached */
1185
static yy_state_type yy_get_previous_state()
1187
register yy_state_type yy_current_state;
1188
register char *yy_cp;
1190
yy_current_state = yy_start;
1192
for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
1194
register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
1195
if ( yy_accept[yy_current_state] )
1197
yy_last_accepting_state = yy_current_state;
1198
yy_last_accepting_cpos = yy_cp;
1200
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1202
yy_current_state = (int) yy_def[yy_current_state];
1203
if ( yy_current_state >= 82 )
1204
yy_c = yy_meta[(unsigned int) yy_c];
1206
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1209
return yy_current_state;
1213
/* yy_try_NUL_trans - try to make a transition on the NUL character
1216
* next_state = yy_try_NUL_trans( current_state );
1219
#ifdef YY_USE_PROTOS
1220
static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )
1222
static yy_state_type yy_try_NUL_trans( yy_current_state )
1223
yy_state_type yy_current_state;
1226
register int yy_is_jam;
1227
register char *yy_cp = yy_c_buf_p;
1229
register YY_CHAR yy_c = 1;
1230
if ( yy_accept[yy_current_state] )
1232
yy_last_accepting_state = yy_current_state;
1233
yy_last_accepting_cpos = yy_cp;
1235
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1237
yy_current_state = (int) yy_def[yy_current_state];
1238
if ( yy_current_state >= 82 )
1239
yy_c = yy_meta[(unsigned int) yy_c];
1241
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1242
yy_is_jam = (yy_current_state == 81);
1244
return yy_is_jam ? 0 : yy_current_state;
1249
#ifdef YY_USE_PROTOS
1250
static void yyunput( int c, register char *yy_bp )
1252
static void yyunput( c, yy_bp )
1254
register char *yy_bp;
1257
register char *yy_cp = yy_c_buf_p;
1259
/* undo effects of setting up yytext */
1260
*yy_cp = yy_hold_char;
1262
if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
1263
{ /* need to shift things up to make room */
1264
/* +2 for EOB chars. */
1265
register int number_to_move = yy_n_chars + 2;
1266
register char *dest = &yy_current_buffer->yy_ch_buf[
1267
yy_current_buffer->yy_buf_size + 2];
1268
register char *source =
1269
&yy_current_buffer->yy_ch_buf[number_to_move];
1271
while ( source > yy_current_buffer->yy_ch_buf )
1272
*--dest = *--source;
1274
yy_cp += (int) (dest - source);
1275
yy_bp += (int) (dest - source);
1276
yy_current_buffer->yy_n_chars =
1277
yy_n_chars = yy_current_buffer->yy_buf_size;
1279
if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
1280
YY_FATAL_ERROR( "flex scanner push-back overflow" );
1283
*--yy_cp = (char) c;
1287
yy_hold_char = *yy_cp;
1290
#endif /* ifndef YY_NO_UNPUT */
1294
static int yyinput()
1301
*yy_c_buf_p = yy_hold_char;
1303
if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
1305
/* yy_c_buf_p now points to the character we want to return.
1306
* If this occurs *before* the EOB characters, then it's a
1307
* valid NUL; if not, then we've hit the end of the buffer.
1309
if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
1310
/* This was really a NUL. */
1314
{ /* need more input */
1315
int offset = yy_c_buf_p - yytext_ptr;
1318
switch ( yy_get_next_buffer() )
1320
case EOB_ACT_LAST_MATCH:
1321
/* This happens because yy_g_n_b()
1322
* sees that we've accumulated a
1323
* token and flags that we need to
1324
* try matching the token before
1325
* proceeding. But for input(),
1326
* there's no matching to consider.
1327
* So convert the EOB_ACT_LAST_MATCH
1328
* to EOB_ACT_END_OF_FILE.
1331
/* Reset buffer status. */
1336
case EOB_ACT_END_OF_FILE:
1341
if ( ! yy_did_buffer_switch_on_eof )
1350
case EOB_ACT_CONTINUE_SCAN:
1351
yy_c_buf_p = yytext_ptr + offset;
1357
c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */
1358
*yy_c_buf_p = '\0'; /* preserve yytext */
1359
yy_hold_char = *++yy_c_buf_p;
1366
#ifdef YY_USE_PROTOS
1367
void yyrestart( FILE *input_file )
1369
void yyrestart( input_file )
1373
if ( ! yy_current_buffer )
1374
yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );
1376
yy_init_buffer( yy_current_buffer, input_file );
1377
yy_load_buffer_state();
1381
#ifdef YY_USE_PROTOS
1382
void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
1384
void yy_switch_to_buffer( new_buffer )
1385
YY_BUFFER_STATE new_buffer;
1388
if ( yy_current_buffer == new_buffer )
1391
if ( yy_current_buffer )
1393
/* Flush out information for old buffer. */
1394
*yy_c_buf_p = yy_hold_char;
1395
yy_current_buffer->yy_buf_pos = yy_c_buf_p;
1396
yy_current_buffer->yy_n_chars = yy_n_chars;
1399
yy_current_buffer = new_buffer;
1400
yy_load_buffer_state();
1402
/* We don't actually know whether we did this switch during
1403
* EOF (yywrap()) processing, but the only time this flag
1404
* is looked at is after yywrap() is called, so it's safe
1405
* to go ahead and always set it.
1407
yy_did_buffer_switch_on_eof = 1;
1411
#ifdef YY_USE_PROTOS
1412
void yy_load_buffer_state( void )
1414
void yy_load_buffer_state()
1417
yy_n_chars = yy_current_buffer->yy_n_chars;
1418
yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
1419
yyin = yy_current_buffer->yy_input_file;
1420
yy_hold_char = *yy_c_buf_p;
1424
#ifdef YY_USE_PROTOS
1425
YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
1427
YY_BUFFER_STATE yy_create_buffer( file, size )
1434
b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
1436
YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
1438
b->yy_buf_size = size;
1440
/* yy_ch_buf has to be 2 characters longer than the size given because
1441
* we need to put in 2 end-of-buffer characters.
1443
b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 );
1444
if ( ! b->yy_ch_buf )
1445
YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
1447
b->yy_is_our_buffer = 1;
1449
yy_init_buffer( b, file );
1455
#ifdef YY_USE_PROTOS
1456
void yy_delete_buffer( YY_BUFFER_STATE b )
1458
void yy_delete_buffer( b )
1465
if ( b == yy_current_buffer )
1466
yy_current_buffer = (YY_BUFFER_STATE) 0;
1468
if ( b->yy_is_our_buffer )
1469
yy_flex_free( (void *) b->yy_ch_buf );
1471
yy_flex_free( (void *) b );
1476
#ifdef YY_USE_PROTOS
1477
void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
1479
void yy_init_buffer( b, file )
1486
yy_flush_buffer( b );
1488
b->yy_input_file = file;
1489
b->yy_fill_buffer = 1;
1491
#if YY_ALWAYS_INTERACTIVE
1492
b->yy_is_interactive = 1;
1494
#if YY_NEVER_INTERACTIVE
1495
b->yy_is_interactive = 0;
1497
b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
1503
#ifdef YY_USE_PROTOS
1504
void yy_flush_buffer( YY_BUFFER_STATE b )
1506
void yy_flush_buffer( b )
1516
/* We always need two end-of-buffer characters. The first causes
1517
* a transition to the end-of-buffer state. The second causes
1518
* a jam in that state.
1520
b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
1521
b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
1523
b->yy_buf_pos = &b->yy_ch_buf[0];
1526
b->yy_buffer_status = YY_BUFFER_NEW;
1528
if ( b == yy_current_buffer )
1529
yy_load_buffer_state();
1533
#ifndef YY_NO_SCAN_BUFFER
1534
#ifdef YY_USE_PROTOS
1535
YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size )
1537
YY_BUFFER_STATE yy_scan_buffer( base, size )
1545
base[size-2] != YY_END_OF_BUFFER_CHAR ||
1546
base[size-1] != YY_END_OF_BUFFER_CHAR )
1547
/* They forgot to leave room for the EOB's. */
1550
b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
1552
YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
1554
b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
1555
b->yy_buf_pos = b->yy_ch_buf = base;
1556
b->yy_is_our_buffer = 0;
1557
b->yy_input_file = 0;
1558
b->yy_n_chars = b->yy_buf_size;
1559
b->yy_is_interactive = 0;
1561
b->yy_fill_buffer = 0;
1562
b->yy_buffer_status = YY_BUFFER_NEW;
1564
yy_switch_to_buffer( b );
1571
#ifndef YY_NO_SCAN_STRING
1572
#ifdef YY_USE_PROTOS
1573
YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str )
1575
YY_BUFFER_STATE yy_scan_string( yy_str )
1576
yyconst char *yy_str;
1580
for ( len = 0; yy_str[len]; ++len )
1583
return yy_scan_bytes( yy_str, len );
1588
#ifndef YY_NO_SCAN_BYTES
1589
#ifdef YY_USE_PROTOS
1590
YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len )
1592
YY_BUFFER_STATE yy_scan_bytes( bytes, len )
1593
yyconst char *bytes;
1602
/* Get memory for full buffer, including space for trailing EOB's. */
1604
buf = (char *) yy_flex_alloc( n );
1606
YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
1608
for ( i = 0; i < len; ++i )
1611
buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR;
1613
b = yy_scan_buffer( buf, n );
1615
YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
1617
/* It's okay to grow etc. this buffer, and we should throw it
1618
* away when we're done.
1620
b->yy_is_our_buffer = 1;
1627
#ifndef YY_NO_PUSH_STATE
1628
#ifdef YY_USE_PROTOS
1629
static void yy_push_state( int new_state )
1631
static void yy_push_state( new_state )
1635
if ( yy_start_stack_ptr >= yy_start_stack_depth )
1639
yy_start_stack_depth += YY_START_STACK_INCR;
1640
new_size = yy_start_stack_depth * sizeof( int );
1642
if ( ! yy_start_stack )
1643
yy_start_stack = (int *) yy_flex_alloc( new_size );
1646
yy_start_stack = (int *) yy_flex_realloc(
1647
(void *) yy_start_stack, new_size );
1649
if ( ! yy_start_stack )
1651
"out of memory expanding start-condition stack" );
1654
yy_start_stack[yy_start_stack_ptr++] = YY_START;
1661
#ifndef YY_NO_POP_STATE
1662
static void yy_pop_state()
1664
if ( --yy_start_stack_ptr < 0 )
1665
YY_FATAL_ERROR( "start-condition stack underflow" );
1667
BEGIN(yy_start_stack[yy_start_stack_ptr]);
1672
#ifndef YY_NO_TOP_STATE
1673
static int yy_top_state()
1675
return yy_start_stack[yy_start_stack_ptr - 1];
1679
#ifndef YY_EXIT_FAILURE
1680
#define YY_EXIT_FAILURE 2
1683
#ifdef YY_USE_PROTOS
1684
static void yy_fatal_error( yyconst char msg[] )
1686
static void yy_fatal_error( msg )
1690
(void) fprintf( stderr, "%s\n", msg );
1691
exit( YY_EXIT_FAILURE );
1696
/* Redefine yyless() so it works in section 3 code. */
1702
/* Undo effects of setting up yytext. */ \
1703
yytext[yyleng] = yy_hold_char; \
1704
yy_c_buf_p = yytext + n; \
1705
yy_hold_char = *yy_c_buf_p; \
1706
*yy_c_buf_p = '\0'; \
1712
/* Internal utility routines. */
1715
#ifdef YY_USE_PROTOS
1716
static void yy_flex_strncpy( char *s1, yyconst char *s2, int n )
1718
static void yy_flex_strncpy( s1, s2, n )
1725
for ( i = 0; i < n; ++i )
1730
#ifdef YY_NEED_STRLEN
1731
#ifdef YY_USE_PROTOS
1732
static int yy_flex_strlen( yyconst char *s )
1734
static int yy_flex_strlen( s )
1739
for ( n = 0; s[n]; ++n )
1747
#ifdef YY_USE_PROTOS
1748
static void *yy_flex_alloc( yy_size_t size )
1750
static void *yy_flex_alloc( size )
1754
return (void *) malloc( size );
1757
#ifdef YY_USE_PROTOS
1758
static void *yy_flex_realloc( void *ptr, yy_size_t size )
1760
static void *yy_flex_realloc( ptr, size )
1765
/* The cast to (char *) in the following accommodates both
1766
* implementations that use char* generic pointers, and those
1767
* that use void* generic pointers. It works with the latter
1768
* because both ANSI C and C++ allow castless assignment from
1769
* any pointer type to void*, and deal with argument conversions
1770
* as though doing an assignment.
1772
return (void *) realloc( (char *) ptr, size );
1775
#ifdef YY_USE_PROTOS
1776
static void yy_flex_free( void *ptr )
1778
static void yy_flex_free( ptr )
1792
#line 57 "adsedgelabel.l"
1796
int adsedgelabelwrap() {
1800
int adsedgelabelerror(char *s) {
1801
strcpy(adsedgelabel_errormsg, s);