/* A lexical scanner generated by flex */
/* Scanner skeleton version:
* $Header: /cvs/root/flex/flex/skel.c,v 1.2 2004/05/07 00:28:17 jkh Exp $
*/
#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 5
#include <stdio.h>
/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
#ifdef c_plusplus
#ifndef __cplusplus
#define __cplusplus
#endif
#endif
#ifdef __cplusplus
#include <stdlib.h>
#include <unistd.h>
/* Use prototypes in function declarations. */
#define YY_USE_PROTOS
/* The "const" storage-class-modifier is valid. */
#define YY_USE_CONST
#else /* ! __cplusplus */
#if __STDC__
#define YY_USE_PROTOS
#define YY_USE_CONST
#endif /* __STDC__ */
#endif /* ! __cplusplus */
#ifdef __TURBOC__
#pragma warn -rch
#pragma warn -use
#include <io.h>
#include <stdlib.h>
#define YY_USE_CONST
#define YY_USE_PROTOS
#endif
#ifdef YY_USE_CONST
#define yyconst const
#else
#define yyconst
#endif
#ifdef YY_USE_PROTOS
#define YY_PROTO(proto) proto
#else
#define YY_PROTO(proto) ()
#endif
/* Returned upon end-of-file. */
#define YY_NULL 0
/* Promotes a possibly negative, possibly signed char to an unsigned
* integer for use as an array index. If the signed char is negative,
* we want to instead treat it as an 8-bit unsigned char, hence the
* double cast.
*/
#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
/* Enter a start condition. This macro really ought to take a parameter,
* but we do it the disgusting crufty way forced on us by the ()-less
* definition of BEGIN.
*/
#define BEGIN yy_start = 1 + 2 *
/* Translate the current start state into a value that can be later handed
* to BEGIN to return to the state. The YYSTATE alias is for lex
* compatibility.
*/
#define YY_START ((yy_start - 1) / 2)
#define YYSTATE YY_START
/* Action number for EOF rule of a given start state. */
#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
/* Special action meaning "start processing a new file". */
#define YY_NEW_FILE yyrestart( yyin )
#define YY_END_OF_BUFFER_CHAR 0
/* Size of default input buffer. */
#define YY_BUF_SIZE 16384
typedef struct yy_buffer_state *YY_BUFFER_STATE;
extern int yyleng;
extern FILE *yyin, *yyout;
#define EOB_ACT_CONTINUE_SCAN 0
#define EOB_ACT_END_OF_FILE 1
#define EOB_ACT_LAST_MATCH 2
/* The funky do-while in the following #define is used to turn the definition
* int a single C statement (which needs a semi-colon terminator). This
* avoids problems with code like:
*
* if ( condition_holds )
* yyless( 5 );
* else
* do_something_else();
*
* Prior to using the do-while the compiler would get upset at the
* "else" because it interpreted the "if" statement as being all
* done when it reached the ';' after the yyless() call.
*/
/* Return all but the first 'n' matched characters back to the input stream. */
#define yyless(n) \
do \
{ \
/* Undo effects of setting up yytext. */ \
*yy_cp = yy_hold_char; \
YY_RESTORE_YY_MORE_OFFSET \
yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \
YY_DO_BEFORE_ACTION; /* set up yytext again */ \
} \
while ( 0 )
#define unput(c) yyunput( c, yytext_ptr )
/* The following is because we cannot portably get our hands on size_t
* (without autoconf's help, which isn't available because we want
* flex-generated scanners to compile on their own).
*/
typedef unsigned int yy_size_t;
struct yy_buffer_state
{
FILE *yy_input_file;
char *yy_ch_buf; /* input buffer */
char *yy_buf_pos; /* current position in input buffer */
/* Size of input buffer in bytes, not including room for EOB
* characters.
*/
yy_size_t yy_buf_size;
/* Number of characters read into yy_ch_buf, not including EOB
* characters.
*/
int yy_n_chars;
/* Whether we "own" the buffer - i.e., we know we created it,
* and can realloc() it to grow it, and should free() it to
* delete it.
*/
int yy_is_our_buffer;
/* Whether this is an "interactive" input source; if so, and
* if we're using stdio for input, then we want to use getc()
* instead of fread(), to make sure we stop fetching input after
* each newline.
*/
int yy_is_interactive;
/* Whether we're considered to be at the beginning of a line.
* If so, '^' rules will be active on the next match, otherwise
* not.
*/
int yy_at_bol;
/* Whether to try to fill the input buffer when we reach the
* end of it.
*/
int yy_fill_buffer;
int yy_buffer_status;
#define YY_BUFFER_NEW 0
#define YY_BUFFER_NORMAL 1
/* When an EOF's been seen but there's still some text to process
* then we mark the buffer as YY_EOF_PENDING, to indicate that we
* shouldn't try reading from the input source any more. We might
* still have a bunch of tokens to match, though, because of
* possible backing-up.
*
* When we actually see the EOF, we change the status to "new"
* (via yyrestart()), so that the user can continue scanning by
* just pointing yyin at a new input file.
*/
#define YY_BUFFER_EOF_PENDING 2
};
static YY_BUFFER_STATE yy_current_buffer = 0;
/* We provide macros for accessing buffer states in case in the
* future we want to put the buffer states in a more general
* "scanner state".
*/
#define YY_CURRENT_BUFFER yy_current_buffer
/* yy_hold_char holds the character lost when yytext is formed. */
static char yy_hold_char;
static int yy_n_chars; /* number of characters read into yy_ch_buf */
int yyleng;
/* Points to current character in buffer. */
static char *yy_c_buf_p = (char *) 0;
static int yy_init = 1; /* whether we need to initialize */
static int yy_start = 0; /* start state number */
/* Flag which is used to allow yywrap()'s to do buffer switches
* instead of setting up a fresh yyin. A bit of a hack ...
*/
static int yy_did_buffer_switch_on_eof;
void yyrestart YY_PROTO(( FILE *input_file ));
void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer ));
void yy_load_buffer_state YY_PROTO(( void ));
YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size ));
void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b ));
void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file ));
void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b ));
#define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer )
YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size ));
YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str ));
YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len ));
static void *yy_flex_alloc YY_PROTO(( yy_size_t ));
static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t ));
static void yy_flex_free YY_PROTO(( void * ));
#define yy_new_buffer yy_create_buffer
#define yy_set_interactive(is_interactive) \
{ \
if ( ! yy_current_buffer ) \
yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
yy_current_buffer->yy_is_interactive = is_interactive; \
}
#define yy_set_bol(at_bol) \
{ \
if ( ! yy_current_buffer ) \
yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
yy_current_buffer->yy_at_bol = at_bol; \
}
#define YY_AT_BOL() (yy_current_buffer->yy_at_bol)
typedef unsigned char YY_CHAR;
FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
typedef int yy_state_type;
extern char *yytext;
#define yytext_ptr yytext
static yy_state_type yy_get_previous_state YY_PROTO(( void ));
static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));
static int yy_get_next_buffer YY_PROTO(( void ));
static void yy_fatal_error YY_PROTO(( yyconst char msg[] ));
/* Done after the current pattern has been matched and before the
* corresponding action - sets up yytext.
*/
#define YY_DO_BEFORE_ACTION \
yytext_ptr = yy_bp; \
yyleng = (int) (yy_cp - yy_bp); \
yy_hold_char = *yy_cp; \
*yy_cp = '\0'; \
yy_c_buf_p = yy_cp;
#define YY_NUM_RULES 101
#define YY_END_OF_BUFFER 102
static yyconst short int yy_accept[519] =
{ 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 102, 100, 98, 99, 100, 95, 78, 79,
76, 74, 73, 75, 77, 89, 71, 72, 83, 80,
84, 88, 88, 88, 88, 88, 88, 88, 88, 88,
88, 88, 88, 88, 88, 88, 88, 88, 85, 86,
81, 88, 87, 82, 90, 90, 100, 100, 100, 97,
97, 96, 97, 95, 70, 0, 0, 94, 89, 88,
88, 88, 88, 88, 88, 88, 88, 88, 88, 88,
11, 88, 88, 88, 88, 88, 19, 88, 88, 88,
88, 88, 88, 88, 88, 88, 88, 88, 88, 88,
88, 88, 88, 88, 90, 0, 91, 0, 0, 92,
0, 0, 0, 88, 88, 88, 88, 88, 88, 88,
88, 88, 88, 88, 88, 88, 88, 88, 88, 88,
88, 88, 88, 12, 88, 88, 88, 88, 88, 88,
88, 88, 88, 88, 88, 88, 88, 88, 88, 88,
88, 0, 93, 88, 88, 88, 88, 88, 88, 88,
88, 88, 88, 88, 88, 88, 88, 88, 88, 88,
88, 88, 88, 88, 88, 88, 88, 88, 88, 88,
88, 88, 88, 31, 88, 88, 88, 28, 88, 88,
88, 88, 18, 88, 88, 36, 88, 88, 88, 88,
20, 88, 88, 13, 88, 88, 88, 88, 88, 88,
88, 88, 88, 88, 88, 88, 24, 88, 88, 88,
88, 88, 88, 88, 88, 88, 88, 88, 88, 88,
88, 88, 88, 88, 88, 88, 88, 25, 33, 40,
88, 88, 88, 88, 88, 88, 88, 88, 88, 88,
88, 88, 88, 88, 88, 88, 88, 32, 88, 88,
88, 88, 88, 88, 88, 88, 88, 42, 88, 88,
88, 88, 88, 88, 88, 88, 88, 88, 34, 88,
88, 88, 88, 1, 88, 88, 88, 88, 88, 27,
88, 88, 26, 88, 88, 88, 88, 88, 88, 39,
88, 2, 88, 88, 88, 88, 88, 8, 88, 88,
88, 88, 88, 88, 88, 88, 88, 88, 88, 88,
88, 88, 88, 9, 88, 88, 37, 88, 41, 88,
88, 88, 7, 88, 88, 88, 3, 15, 88, 88,
88, 88, 88, 88, 88, 6, 88, 88, 45, 88,
35, 88, 30, 88, 43, 10, 88, 88, 44, 88,
88, 88, 88, 17, 16, 22, 38, 88, 88, 46,
14, 23, 88, 88, 88, 29, 88, 21, 88, 88,
88, 88, 5, 88, 88, 88, 88, 88, 88, 88,
88, 88, 88, 4, 88, 88, 88, 88, 88, 88,
88, 88, 88, 88, 88, 88, 48, 88, 88, 88,
88, 88, 88, 88, 88, 88, 88, 88, 88, 88,
54, 53, 88, 88, 88, 88, 88, 88, 56, 88,
88, 88, 88, 88, 88, 88, 88, 88, 88, 88,
88, 88, 88, 88, 88, 88, 88, 88, 88, 88,
57, 88, 49, 88, 88, 88, 88, 88, 88, 88,
88, 88, 88, 88, 88, 88, 88, 88, 88, 88,
88, 88, 88, 58, 88, 60, 88, 88, 88, 55,
61, 88, 62, 88, 65, 88, 67, 88, 50, 51,
52, 88, 88, 88, 88, 88, 88, 88, 88, 88,
88, 69, 88, 88, 88, 88, 59, 88, 66, 88,
47, 88, 88, 88, 63, 64, 68, 0
} ;
static yyconst int yy_ec[256] =
{ 0,
1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 4, 1, 5, 6, 7, 1, 1, 1, 8,
9, 10, 11, 12, 13, 7, 14, 15, 16, 17,
18, 19, 15, 20, 15, 21, 15, 22, 23, 24,
25, 26, 1, 1, 27, 28, 29, 30, 31, 32,
33, 34, 35, 36, 37, 38, 39, 40, 41, 42,
43, 44, 45, 46, 47, 48, 49, 50, 51, 36,
52, 1, 53, 54, 55, 1, 56, 57, 58, 59,
60, 32, 61, 62, 63, 36, 64, 65, 66, 67,
68, 69, 43, 70, 71, 72, 73, 74, 49, 50,
75, 36, 1, 76, 1, 77, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1
} ;
static yyconst int yy_meta[78] =
{ 0,
1, 1, 2, 1, 1, 1, 3, 1, 1, 1,
1, 1, 3, 3, 4, 4, 4, 4, 4, 4,
4, 1, 1, 1, 1, 1, 4, 4, 4, 4,
4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
4, 1, 1, 1, 4, 4, 4, 4, 4, 4,
4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
4, 4, 4, 4, 4, 1, 1
} ;
static yyconst short int yy_base[528] =
{ 0,
0, 3, 17, 996, 94, 171, 107, 120, 125, 147,
152, 184, 1001, 1003, 1003, 1003, 990, 187, 1003, 1003,
1003, 1003, 1003, 1003, 989, 194, 1003, 1003, 1003, 1003,
1003, 63, 0, 181, 82, 70, 68, 98, 132, 172,
91, 169, 188, 204, 242, 85, 196, 194, 1003, 1003,
1003, 113, 1003, 1003, 0, 988, 992, 970, 990, 1003,
1003, 1003, 984, 276, 1003, 305, 314, 334, 325, 0,
174, 173, 203, 186, 194, 210, 242, 213, 95, 232,
315, 319, 238, 964, 238, 316, 0, 238, 238, 249,
240, 305, 290, 320, 261, 331, 244, 323, 332, 316,
329, 338, 339, 337, 0, 987, 1003, 965, 985, 1003,
399, 6, 984, 346, 338, 327, 337, 349, 335, 358,
336, 369, 363, 370, 366, 378, 383, 384, 386, 954,
386, 382, 402, 384, 384, 403, 399, 390, 393, 396,
395, 391, 394, 402, 399, 402, 414, 407, 408, 420,
419, 982, 1003, 419, 421, 427, 447, 435, 436, 443,
439, 440, 439, 442, 441, 461, 449, 446, 464, 931,
454, 466, 467, 465, 455, 463, 472, 474, 463, 484,
484, 489, 493, 0, 483, 493, 479, 0, 494, 498,
495, 493, 0, 505, 510, 0, 497, 510, 509, 499,
0, 517, 507, 0, 515, 523, 521, 522, 946, 511,
941, 515, 520, 540, 533, 545, 0, 534, 536, 538,
541, 557, 545, 539, 547, 549, 551, 547, 553, 564,
551, 556, 555, 562, 579, 580, 571, 0, 0, 0,
572, 586, 938, 581, 584, 587, 564, 588, 588, 587,
594, 595, 611, 619, 603, 597, 611, 0, 604, 610,
612, 615, 624, 623, 620, 626, 632, 0, 624, 634,
639, 652, 639, 949, 645, 646, 651, 659, 0, 655,
641, 655, 658, 0, 661, 672, 660, 661, 666, 0,
667, 678, 0, 674, 949, 686, 671, 668, 689, 0,
680, 0, 665, 684, 692, 925, 693, 0, 695, 698,
705, 709, 699, 700, 705, 711, 720, 714, 706, 713,
719, 717, 721, 0, 716, 717, 0, 721, 0, 718,
726, 933, 0, 743, 742, 740, 0, 0, 734, 725,
734, 946, 760, 744, 747, 0, 748, 927, 0, 764,
0, 766, 0, 925, 0, 0, 769, 753, 0, 925,
770, 775, 773, 0, 0, 0, 0, 767, 932, 0,
0, 0, 923, 779, 772, 0, 941, 0, 767, 782,
916, 771, 0, 815, 786, 810, 787, 930, 350, 928,
937, 921, 926, 0, 919, 923, 917, 935, 919, 914,
922, 910, 785, 930, 912, 910, 0, 916, 922, 908,
900, 919, 918, 917, 896, 900, 907, 909, 897, 911,
0, 0, 886, 907, 884, 883, 898, 881, 0, 895,
890, 906, 887, 900, 885, 123, 888, 808, 895, 880,
886, 894, 880, 892, 891, 890, 876, 892, 887, 886,
861, 886, 0, 874, 858, 872, 882, 870, 867, 869,
878, 866, 876, 858, 873, 847, 872, 870, 870, 865,
861, 857, 854, 0, 819, 0, 844, 841, 837, 0,
800, 814, 792, 799, 0, 797, 776, 786, 0, 0,
0, 781, 762, 441, 347, 327, 287, 288, 230, 237,
220, 0, 220, 198, 200, 190, 0, 171, 0, 149,
0, 126, 114, 70, 0, 0, 0, 1003, 868, 872,
876, 8, 878, 882, 886, 890, 894
} ;
static yyconst short int yy_def[528] =
{ 0,
519, 519, 518, 3, 520, 520, 519, 519, 519, 519,
521, 521, 518, 518, 518, 518, 518, 518, 518, 518,
518, 518, 518, 518, 518, 518, 518, 518, 518, 518,
518, 522, 522, 522, 522, 522, 522, 522, 522, 522,
522, 522, 522, 522, 522, 522, 522, 522, 518, 518,
518, 522, 518, 518, 523, 523, 524, 525, 526, 518,
518, 518, 518, 518, 518, 518, 518, 518, 518, 522,
522, 522, 522, 522, 522, 522, 522, 522, 522, 522,
522, 522, 522, 522, 522, 522, 522, 522, 522, 522,
522, 522, 522, 522, 522, 522, 522, 522, 522, 522,
522, 522, 522, 522, 523, 524, 518, 525, 526, 518,
518, 518, 527, 522, 522, 522, 522, 522, 522, 522,
522, 522, 522, 522, 522, 522, 522, 522, 522, 522,
522, 522, 522, 522, 522, 522, 522, 522, 522, 522,
522, 522, 522, 522, 522, 522, 522, 522, 522, 522,
522, 527, 518, 522, 522, 522, 522, 522, 522, 522,
522, 522, 522, 522, 522, 522, 522, 522, 522, 522,
522, 522, 522, 522, 522, 522, 522, 522, 522, 522,
522, 522, 522, 522, 522, 522, 522, 522, 522, 522,
522, 522, 522, 522, 522, 522, 522, 522, 522, 522,
522, 522, 522, 522, 522, 522, 522, 522, 522, 522,
522, 522, 522, 522, 522, 522, 522, 522, 522, 522,
522, 522, 522, 522, 522, 522, 522, 522, 522, 522,
522, 522, 522, 522, 522, 522, 522, 522, 522, 522,
522, 522, 522, 522, 522, 522, 522, 522, 522, 522,
522, 522, 522, 522, 522, 522, 522, 522, 522, 522,
522, 522, 522, 522, 522, 522, 522, 522, 522, 522,
522, 522, 522, 522, 522, 522, 522, 522, 522, 522,
522, 522, 522, 522, 522, 522, 522, 522, 522, 522,
522, 522, 522, 522, 522, 522, 522, 522, 522, 522,
522, 522, 522, 522, 522, 522, 522, 522, 522, 522,
522, 522, 522, 522, 522, 522, 522, 522, 522, 522,
522, 522, 522, 522, 522, 522, 522, 522, 522, 522,
522, 522, 522, 522, 522, 522, 522, 522, 522, 522,
522, 522, 522, 522, 522, 522, 522, 522, 522, 522,
522, 522, 522, 522, 522, 522, 522, 522, 522, 522,
522, 522, 522, 522, 522, 522, 522, 522, 522, 522,
522, 522, 522, 522, 522, 522, 522, 522, 522, 522,
522, 522, 522, 522, 522, 522, 522, 522, 522, 522,
522, 522, 522, 522, 522, 522, 522, 522, 522, 522,
522, 522, 522, 522, 522, 522, 522, 522, 522, 522,
522, 522, 522, 522, 522, 522, 522, 522, 522, 522,
522, 522, 522, 522, 522, 522, 522, 522, 522, 522,
522, 522, 522, 522, 522, 522, 522, 522, 522, 522,
522, 522, 522, 522, 522, 522, 522, 522, 522, 522,
522, 522, 522, 522, 522, 522, 522, 522, 522, 522,
522, 522, 522, 522, 522, 522, 522, 522, 522, 522,
522, 522, 522, 522, 522, 522, 522, 522, 522, 522,
522, 522, 522, 522, 522, 522, 522, 522, 522, 522,
522, 522, 522, 522, 522, 522, 522, 522, 522, 522,
522, 522, 522, 522, 522, 522, 522, 522, 522, 522,
522, 522, 522, 522, 522, 522, 522, 0, 518, 518,
518, 518, 518, 518, 518, 518, 518
} ;
static yyconst short int yy_nxt[1081] =
{ 0,
518, 15, 16, 15, 15, 16, 15, 112, 18, 112,
113, 70, 518, 17, 518, 518, 17, 14, 15, 16,
15, 14, 14, 14, 19, 20, 21, 22, 23, 24,
25, 26, 26, 26, 26, 26, 26, 26, 27, 28,
29, 30, 31, 32, 33, 34, 35, 36, 37, 33,
33, 38, 33, 39, 33, 40, 41, 42, 43, 33,
44, 45, 46, 47, 33, 48, 33, 33, 49, 50,
51, 33, 32, 33, 34, 35, 36, 33, 33, 38,
39, 33, 52, 41, 42, 43, 44, 45, 46, 47,
33, 33, 53, 54, 14, 15, 16, 15, 14, 14,
517, 14, 14, 14, 14, 14, 71, 56, 15, 16,
15, 57, 77, 78, 79, 14, 14, 14, 14, 14,
17, 15, 16, 15, 57, 18, 15, 16, 15, 59,
58, 86, 71, 17, 123, 100, 80, 81, 17, 78,
79, 77, 82, 58, 516, 14, 14, 14, 15, 16,
15, 59, 18, 61, 62, 61, 515, 85, 86, 100,
17, 123, 83, 80, 81, 63, 445, 446, 82, 14,
14, 14, 15, 16, 15, 14, 18, 514, 14, 14,
14, 14, 14, 85, 56, 61, 62, 61, 66, 64,
67, 83, 14, 14, 14, 14, 14, 63, 84, 513,
87, 68, 68, 68, 68, 68, 68, 68, 69, 69,
69, 69, 69, 69, 69, 88, 85, 114, 512, 115,
104, 72, 14, 14, 14, 73, 74, 75, 89, 511,
101, 90, 91, 116, 92, 76, 117, 510, 118, 102,
103, 88, 85, 114, 93, 115, 14, 14, 72, 104,
509, 73, 74, 75, 119, 89, 122, 90, 101, 508,
117, 91, 116, 92, 118, 102, 103, 507, 120, 506,
131, 93, 94, 124, 144, 135, 95, 66, 96, 67,
119, 129, 122, 134, 137, 97, 121, 98, 99, 136,
68, 68, 68, 68, 68, 68, 68, 120, 131, 142,
124, 94, 135, 144, 95, 96, 66, 129, 66, 134,
137, 97, 121, 98, 99, 66, 136, 67, 505, 111,
111, 111, 111, 111, 111, 111, 142, 504, 68, 68,
68, 68, 68, 68, 68, 112, 140, 112, 113, 69,
69, 69, 69, 69, 69, 69, 138, 139, 68, 68,
68, 68, 68, 68, 68, 125, 127, 147, 128, 146,
126, 132, 140, 141, 133, 143, 145, 148, 149, 150,
156, 151, 154, 138, 503, 502, 401, 155, 157, 158,
159, 161, 125, 127, 147, 128, 126, 132, 146, 141,
402, 163, 145, 143, 148, 160, 156, 149, 150, 151,
112, 154, 112, 113, 155, 157, 159, 161, 158, 162,
164, 173, 165, 111, 111, 111, 111, 111, 111, 111,
163, 166, 160, 167, 168, 169, 171, 179, 174, 175,
172, 177, 183, 178, 176, 184, 162, 164, 165, 180,
173, 181, 182, 185, 188, 186, 187, 166, 189, 190,
167, 168, 169, 171, 179, 175, 172, 174, 176, 183,
177, 178, 184, 191, 192, 180, 194, 181, 182, 193,
185, 186, 187, 188, 195, 189, 190, 196, 197, 198,
199, 501, 200, 201, 202, 203, 204, 205, 206, 191,
192, 207, 194, 193, 208, 210, 211, 212, 214, 213,
195, 215, 216, 217, 197, 198, 196, 199, 200, 201,
202, 203, 204, 218, 219, 206, 205, 207, 220, 221,
224, 225, 210, 208, 214, 211, 212, 213, 215, 226,
222, 216, 217, 223, 227, 228, 229, 218, 230, 231,
232, 246, 233, 219, 234, 236, 220, 224, 221, 235,
225, 237, 238, 226, 239, 240, 244, 222, 241, 242,
223, 227, 228, 229, 230, 247, 248, 231, 233, 232,
246, 236, 234, 249, 250, 251, 235, 253, 238, 237,
252, 239, 244, 240, 254, 241, 242, 255, 256, 257,
264, 247, 258, 259, 260, 248, 262, 261, 263, 265,
249, 267, 251, 250, 253, 266, 252, 268, 269, 278,
254, 270, 271, 257, 256, 275, 255, 264, 258, 259,
260, 261, 262, 276, 277, 265, 263, 279, 267, 266,
272, 280, 273, 281, 282, 278, 268, 269, 270, 271,
283, 284, 290, 275, 288, 295, 289, 285, 286, 292,
276, 277, 291, 294, 279, 293, 272, 280, 273, 281,
287, 282, 296, 297, 300, 298, 283, 299, 290, 301,
284, 288, 289, 302, 295, 292, 285, 286, 303, 291,
294, 293, 304, 305, 312, 307, 308, 287, 309, 296,
297, 298, 300, 310, 299, 301, 311, 329, 313, 314,
302, 315, 316, 317, 318, 303, 319, 320, 321, 305,
312, 304, 307, 308, 322, 309, 324, 325, 326, 327,
328, 310, 331, 311, 313, 329, 314, 330, 315, 317,
318, 316, 333, 319, 320, 334, 335, 321, 336, 337,
339, 322, 326, 325, 338, 324, 340, 328, 327, 341,
342, 331, 344, 330, 343, 348, 345, 346, 350, 333,
347, 349, 334, 335, 351, 352, 336, 339, 337, 353,
338, 355, 356, 340, 357, 359, 341, 358, 344, 342,
360, 343, 345, 348, 346, 350, 347, 349, 362, 363,
351, 352, 364, 365, 367, 353, 368, 370, 371, 359,
355, 356, 357, 358, 373, 374, 360, 375, 379, 500,
376, 380, 383, 382, 385, 363, 394, 362, 364, 365,
398, 499, 415, 367, 371, 368, 370, 399, 416, 498,
497, 496, 373, 495, 374, 375, 376, 379, 380, 382,
385, 383, 386, 387, 395, 394, 494, 448, 493, 388,
396, 449, 450, 389, 492, 491, 390, 490, 391, 392,
397, 393, 477, 489, 478, 488, 479, 480, 14, 14,
14, 14, 55, 55, 55, 55, 60, 60, 60, 60,
105, 105, 106, 487, 106, 106, 108, 486, 108, 108,
109, 485, 109, 109, 152, 152, 152, 152, 484, 483,
482, 481, 476, 475, 474, 473, 472, 471, 470, 469,
468, 467, 466, 465, 464, 463, 462, 461, 460, 459,
458, 457, 456, 455, 454, 453, 452, 451, 447, 444,
443, 442, 441, 440, 439, 438, 437, 436, 435, 434,
433, 432, 431, 430, 429, 428, 427, 426, 425, 424,
423, 422, 421, 420, 419, 418, 417, 414, 413, 412,
411, 410, 409, 408, 407, 406, 405, 404, 403, 400,
384, 381, 378, 377, 372, 369, 366, 361, 354, 332,
323, 306, 274, 245, 243, 209, 153, 170, 153, 110,
107, 107, 130, 65, 110, 107, 107, 65, 65, 65,
518, 18, 13, 518, 518, 518, 518, 518, 518, 518,
518, 518, 518, 518, 518, 518, 518, 518, 518, 518,
518, 518, 518, 518, 518, 518, 518, 518, 518, 518,
518, 518, 518, 518, 518, 518, 518, 518, 518, 518,
518, 518, 518, 518, 518, 518, 518, 518, 518, 518,
518, 518, 518, 518, 518, 518, 518, 518, 518, 518,
518, 518, 518, 518, 518, 518, 518, 518, 518, 518,
518, 518, 518, 518, 518, 518, 518, 518, 518, 518
} ;
static yyconst short int yy_chk[1081] =
{ 0,
0, 1, 1, 1, 2, 2, 2, 112, 2, 112,
112, 522, 0, 1, 0, 0, 2, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 5, 5, 5, 5, 5, 5,
514, 5, 5, 5, 5, 5, 32, 5, 7, 7,
7, 7, 35, 36, 37, 5, 5, 5, 5, 5,
7, 8, 8, 8, 8, 8, 9, 9, 9, 9,
7, 41, 32, 8, 79, 46, 38, 38, 9, 36,
37, 35, 38, 8, 513, 5, 5, 5, 10, 10,
10, 10, 10, 11, 11, 11, 512, 52, 41, 46,
10, 79, 39, 38, 38, 11, 436, 436, 38, 5,
5, 6, 6, 6, 6, 6, 6, 510, 6, 6,
6, 6, 6, 52, 6, 12, 12, 12, 18, 12,
18, 39, 6, 6, 6, 6, 6, 12, 40, 508,
42, 18, 18, 18, 18, 18, 18, 18, 26, 26,
26, 26, 26, 26, 26, 42, 40, 71, 506, 72,
48, 34, 6, 6, 6, 34, 34, 34, 43, 505,
47, 43, 44, 73, 44, 34, 74, 504, 75, 47,
47, 42, 40, 71, 44, 72, 6, 6, 34, 48,
503, 34, 34, 34, 76, 43, 78, 43, 47, 501,
74, 44, 73, 44, 75, 47, 47, 500, 77, 499,
85, 44, 45, 80, 97, 89, 45, 64, 45, 64,
76, 83, 78, 88, 91, 45, 77, 45, 45, 90,
64, 64, 64, 64, 64, 64, 64, 77, 85, 95,
80, 45, 89, 97, 45, 45, 66, 83, 66, 88,
91, 45, 77, 45, 45, 67, 90, 67, 498, 66,
66, 66, 66, 66, 66, 66, 95, 497, 67, 67,
67, 67, 67, 67, 67, 68, 93, 68, 68, 69,
69, 69, 69, 69, 69, 69, 92, 92, 68, 68,
68, 68, 68, 68, 68, 81, 82, 100, 82, 99,
81, 86, 93, 94, 86, 96, 98, 101, 102, 103,
116, 104, 114, 92, 496, 495, 389, 115, 117, 118,
119, 121, 81, 82, 100, 82, 81, 86, 99, 94,
389, 123, 98, 96, 101, 120, 116, 102, 103, 104,
111, 114, 111, 111, 115, 117, 119, 121, 118, 122,
124, 132, 125, 111, 111, 111, 111, 111, 111, 111,
123, 126, 120, 127, 128, 129, 131, 138, 133, 134,
131, 136, 142, 137, 135, 143, 122, 124, 125, 139,
132, 140, 141, 144, 147, 145, 146, 126, 148, 149,
127, 128, 129, 131, 138, 134, 131, 133, 135, 142,
136, 137, 143, 150, 151, 139, 155, 140, 141, 154,
144, 145, 146, 147, 156, 148, 149, 157, 158, 159,
160, 494, 161, 162, 163, 164, 165, 166, 167, 150,
151, 168, 155, 154, 169, 171, 172, 173, 175, 174,
156, 176, 177, 178, 158, 159, 157, 160, 161, 162,
163, 164, 165, 179, 180, 167, 166, 168, 181, 182,
185, 186, 171, 169, 175, 172, 173, 174, 176, 187,
183, 177, 178, 183, 189, 190, 191, 179, 192, 194,
195, 212, 197, 180, 198, 200, 181, 185, 182, 199,
186, 202, 203, 187, 205, 206, 210, 183, 207, 208,
183, 189, 190, 191, 192, 213, 214, 194, 197, 195,
212, 200, 198, 215, 216, 218, 199, 220, 203, 202,
219, 205, 210, 206, 221, 207, 208, 222, 223, 224,
231, 213, 225, 226, 227, 214, 229, 228, 230, 232,
215, 234, 218, 216, 220, 233, 219, 235, 236, 247,
221, 237, 241, 224, 223, 244, 222, 231, 225, 226,
227, 228, 229, 245, 246, 232, 230, 248, 234, 233,
242, 249, 242, 250, 251, 247, 235, 236, 237, 241,
252, 253, 256, 244, 255, 262, 255, 254, 254, 259,
245, 246, 257, 261, 248, 260, 242, 249, 242, 250,
254, 251, 263, 264, 267, 265, 252, 266, 256, 269,
253, 255, 255, 270, 262, 259, 254, 254, 271, 257,
261, 260, 272, 273, 281, 275, 276, 254, 277, 263,
264, 265, 267, 278, 266, 269, 280, 303, 282, 283,
270, 285, 286, 287, 288, 271, 289, 291, 292, 273,
281, 272, 275, 276, 294, 277, 296, 297, 298, 299,
301, 278, 305, 280, 282, 303, 283, 304, 285, 287,
288, 286, 307, 289, 291, 309, 310, 292, 311, 312,
314, 294, 298, 297, 313, 296, 315, 301, 299, 316,
317, 305, 319, 304, 318, 323, 320, 321, 326, 307,
322, 325, 309, 310, 328, 330, 311, 314, 312, 331,
313, 334, 335, 315, 336, 340, 316, 339, 319, 317,
341, 318, 320, 323, 321, 326, 322, 325, 343, 344,
328, 330, 345, 347, 350, 331, 352, 357, 358, 340,
334, 335, 336, 339, 361, 362, 341, 363, 374, 493,
368, 375, 380, 379, 382, 344, 385, 343, 345, 347,
387, 492, 403, 350, 358, 352, 357, 387, 403, 488,
487, 486, 361, 484, 362, 363, 368, 374, 375, 379,
382, 380, 384, 384, 386, 385, 483, 438, 482, 384,
386, 438, 438, 384, 481, 479, 384, 478, 384, 384,
386, 384, 466, 477, 466, 475, 466, 466, 519, 519,
519, 519, 520, 520, 520, 520, 521, 521, 521, 521,
523, 523, 524, 473, 524, 524, 525, 472, 525, 525,
526, 471, 526, 526, 527, 527, 527, 527, 470, 469,
468, 467, 465, 464, 463, 462, 461, 460, 459, 458,
457, 456, 455, 454, 452, 451, 450, 449, 448, 447,
446, 445, 444, 443, 442, 441, 440, 439, 437, 435,
434, 433, 432, 431, 430, 428, 427, 426, 425, 424,
423, 420, 419, 418, 417, 416, 415, 414, 413, 412,
411, 410, 409, 408, 406, 405, 404, 402, 401, 400,
399, 398, 397, 396, 395, 393, 392, 391, 390, 388,
381, 377, 373, 369, 360, 354, 348, 342, 332, 306,
295, 274, 243, 211, 209, 170, 152, 130, 113, 109,
108, 106, 84, 63, 59, 58, 57, 56, 25, 17,
13, 4, 518, 518, 518, 518, 518, 518, 518, 518,
518, 518, 518, 518, 518, 518, 518, 518, 518, 518,
518, 518, 518, 518, 518, 518, 518, 518, 518, 518,
518, 518, 518, 518, 518, 518, 518, 518, 518, 518,
518, 518, 518, 518, 518, 518, 518, 518, 518, 518,
518, 518, 518, 518, 518, 518, 518, 518, 518, 518,
518, 518, 518, 518, 518, 518, 518, 518, 518, 518,
518, 518, 518, 518, 518, 518, 518, 518, 518, 518
} ;
static yy_state_type yy_last_accepting_state;
static char *yy_last_accepting_cpos;
/* The intent behind this definition is that it'll catch
* any uses of REJECT which flex missed.
*/
#define REJECT reject_used_but_not_detected
#define yymore() yymore_used_but_not_detected
#define YY_MORE_ADJ 0
#define YY_RESTORE_YY_MORE_OFFSET
char *yytext;
#line 1 "lexxer.l"
#define INITIAL 0
#line 15 "lexxer.l"
/*
* Copyright (c) 1997, 1999 The University of Utah and
* the Computer Systems Laboratory at the University of Utah (CSL).
*
* This file is part of Flick, the Flexible IDL Compiler Kit.
*
* Flick is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* Flick is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Flick; see the file COPYING. If not, write to
* the Free Software Foundation, 59 Temple Place #330, Boston, MA 02111, USA.
*/
/*
* Mach Operating System
* Copyright (c) 1991,1990 Carnegie Mellon University
* All Rights Reserved.
*
* Permission to use, copy, modify and distribute this software and its
* documentation is hereby granted, provided that both the copyright
* notice and this permission notice appear in all copies of the
* software, derivative works or modified versions, and any portions
* thereof, and that both notices appear in supporting documentation.
*
* CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
* CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
* ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
*
* Carnegie Mellon requests users of this software to return to
*
* Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
* School of Computer Science
* Carnegie Mellon University
* Pittsburgh PA 15213-3890
*
* any improvements or extensions that they make and grant Carnegie Mellon
* the rights to redistribute these changes.
*/
#include <string.h>
#include <ctype.h>
#include <mom/compiler.h>
#include <mom/libmeta.h>
#include <mom/pres_c.h>
#include "mig_string.h"
#include "type.h"
#include "statement.h"
#include "global.h"
#include "parser.h"
#include "lexxer.h"
#include "error.h"
/* #include "cpu.h" */
#include "message.h"
#define stringize(x) #x
#ifdef LDEBUG
#define RETURN(sym) \
{ \
printf("yylex: returning '%s' (%d)\n", #sym, (sym)); \
gotToken; \
return (sym); \
}
#else /* LDEBUG */
#define RETURN(sym) { gotToken; return (sym); }
#endif /* LDEBUG */
#define TPRETURN(intype, outtype, tsize) \
{ \
yylval.symtype.innumber = (intype); \
yylval.symtype.instr = stringize(intype); \
yylval.symtype.outnumber = (outtype); \
yylval.symtype.outstr = stringize(outtype); \
yylval.symtype.size = (tsize); \
RETURN(sySymbolicType); \
}
#define TRETURN(type, tsize) TPRETURN(type,type,tsize)
#define FRETURN(val) \
{ \
yylval.flag = (val); \
RETURN(syIPCFlag); \
}
extern YYSTYPE yylval; /* added by rm */
int lineno, savedlineno;
int tokenpos, nextpos, savedpos;
data_channel_index current_i_file;
char *inname;
extern pres_c_1 out_pres_c;
#ifdef YY_START
static int oldYYBegin;
#define SAVE_BEGIN oldYYBegin = YY_START
#define RSTR_BEGIN BEGIN oldYYBegin
#else
static struct yysvf *oldYYBegin;
#define SAVE_BEGIN oldYYBegin = yybgin
#define RSTR_BEGIN yybgin = oldYYBegin;
#endif
/* process body of # directives */
static void doSharp(const char *body, int len);
void yyerror(const char *s);
/*
* We don't need `yyunput' from Flex, so we define `YY_NO_UNPUT' to remove its
* definition and thus avoid a compile-time warning about not using that static
* function.
*/
#define YY_NO_UNPUT
#define Normal 1
#define String 2
#define FileName 3
#define QString 4
#define SkipToEOL 5
#line 904 "lex.yy.c"
/* Macros after this point can all be overridden by user definitions in
* section 1.
*/
#ifndef YY_SKIP_YYWRAP
#ifdef __cplusplus
extern "C" int yywrap YY_PROTO(( void ));
#else
extern int yywrap YY_PROTO(( void ));
#endif
#endif
#ifndef YY_NO_UNPUT
static void yyunput YY_PROTO(( int c, char *buf_ptr ));
#endif
#ifndef yytext_ptr
static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));
#endif
#ifdef YY_NEED_STRLEN
static int yy_flex_strlen YY_PROTO(( yyconst char * ));
#endif
#ifndef YY_NO_INPUT
#ifdef __cplusplus
static int yyinput YY_PROTO(( void ));
#else
static int input YY_PROTO(( void ));
#endif
#endif
#if YY_STACK_USED
static int yy_start_stack_ptr = 0;
static int yy_start_stack_depth = 0;
static int *yy_start_stack = 0;
#ifndef YY_NO_PUSH_STATE
static void yy_push_state YY_PROTO(( int new_state ));
#endif
#ifndef YY_NO_POP_STATE
static void yy_pop_state YY_PROTO(( void ));
#endif
#ifndef YY_NO_TOP_STATE
static int yy_top_state YY_PROTO(( void ));
#endif
#else
#define YY_NO_PUSH_STATE 1
#define YY_NO_POP_STATE 1
#define YY_NO_TOP_STATE 1
#endif
#ifdef YY_MALLOC_DECL
YY_MALLOC_DECL
#else
#if __STDC__
#ifndef __cplusplus
#include <stdlib.h>
#endif
#else
/* Just try to get by without declaring the routines. This will fail
* miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int)
* or sizeof(void*) != sizeof(int).
*/
#endif
#endif
/* Amount of stuff to slurp up with each read. */
#ifndef YY_READ_BUF_SIZE
#define YY_READ_BUF_SIZE 8192
#endif
/* Copy whatever the last rule matched to the standard output. */
#ifndef ECHO
/* This used to be an fputs(), but since the string might contain NUL's,
* we now use fwrite().
*/
#define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
#endif
/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
* is returned in "result".
*/
#ifndef YY_INPUT
#define YY_INPUT(buf,result,max_size) \
if ( yy_current_buffer->yy_is_interactive ) \
{ \
int c = '*', n; \
for ( n = 0; n < max_size && \
(c = getc( yyin )) != EOF && c != '\n'; ++n ) \
buf[n] = (char) c; \
if ( c == '\n' ) \
buf[n++] = (char) c; \
if ( c == EOF && ferror( yyin ) ) \
YY_FATAL_ERROR( "input in flex scanner failed" ); \
result = n; \
} \
else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
&& ferror( yyin ) ) \
YY_FATAL_ERROR( "input in flex scanner failed" );
#endif
/* No semi-colon after return; correct usage is to write "yyterminate();" -
* we don't want an extra ';' after the "return" because that will cause
* some compilers to complain about unreachable statements.
*/
#ifndef yyterminate
#define yyterminate() return YY_NULL
#endif
/* Number of entries by which start-condition stack grows. */
#ifndef YY_START_STACK_INCR
#define YY_START_STACK_INCR 25
#endif
/* Report a fatal error. */
#ifndef YY_FATAL_ERROR
#define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
#endif
/* Default declaration of generated scanner - a define so the user can
* easily add parameters.
*/
#ifndef YY_DECL
#define YY_DECL int yylex YY_PROTO(( void ))
#endif
/* Code executed at the beginning of each rule, after yytext and yyleng
* have been set up.
*/
#ifndef YY_USER_ACTION
#define YY_USER_ACTION
#endif
/* Code executed at the end of each rule. */
#ifndef YY_BREAK
#define YY_BREAK break;
#endif
#define YY_RULE_SETUP \
if ( yyleng > 0 ) \
yy_current_buffer->yy_at_bol = \
(yytext[yyleng - 1] == '\n'); \
YY_USER_ACTION
YY_DECL
{
register yy_state_type yy_current_state;
register char *yy_cp, *yy_bp;
register int yy_act;
#line 142 "lexxer.l"
#line 1061 "lex.yy.c"
if ( yy_init )
{
yy_init = 0;
#ifdef YY_USER_INIT
YY_USER_INIT;
#endif
if ( ! yy_start )
yy_start = 1; /* first start state */
if ( ! yyin )
yyin = stdin;
if ( ! yyout )
yyout = stdout;
if ( ! yy_current_buffer )
yy_current_buffer =
yy_create_buffer( yyin, YY_BUF_SIZE );
yy_load_buffer_state();
}
while ( 1 ) /* loops until end-of-file is reached */
{
yy_cp = yy_c_buf_p;
/* Support of yytext. */
*yy_cp = yy_hold_char;
/* yy_bp points to the position in yy_ch_buf of the start of
* the current run.
*/
yy_bp = yy_cp;
yy_current_state = yy_start;
yy_current_state += YY_AT_BOL();
yy_match:
do
{
register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
if ( yy_accept[yy_current_state] )
{
yy_last_accepting_state = yy_current_state;
yy_last_accepting_cpos = yy_cp;
}
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
{
yy_current_state = (int) yy_def[yy_current_state];
if ( yy_current_state >= 519 )
yy_c = yy_meta[(unsigned int) yy_c];
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
++yy_cp;
}
while ( yy_base[yy_current_state] != 1003 );
yy_find_action:
yy_act = yy_accept[yy_current_state];
if ( yy_act == 0 )
{ /* have to back up */
yy_cp = yy_last_accepting_cpos;
yy_current_state = yy_last_accepting_state;
yy_act = yy_accept[yy_current_state];
}
YY_DO_BEFORE_ACTION;
do_action: /* This label is used only to access EOF actions. */
switch ( yy_act )
{ /* beginning of action switch */
case 0: /* must back up */
/* undo the effects of YY_DO_BEFORE_ACTION */
*yy_cp = yy_hold_char;
yy_cp = yy_last_accepting_cpos;
yy_current_state = yy_last_accepting_state;
goto yy_find_action;
case 1:
YY_RULE_SETUP
#line 144 "lexxer.l"
RETURN(syRoutine);
YY_BREAK
case 2:
YY_RULE_SETUP
#line 145 "lexxer.l"
RETURN(syFunction);
YY_BREAK
case 3:
YY_RULE_SETUP
#line 146 "lexxer.l"
RETURN(syProcedure);
YY_BREAK
case 4:
YY_RULE_SETUP
#line 147 "lexxer.l"
RETURN(sySimpleProcedure);
YY_BREAK
case 5:
YY_RULE_SETUP
#line 148 "lexxer.l"
RETURN(sySimpleRoutine);
YY_BREAK
case 6:
YY_RULE_SETUP
#line 149 "lexxer.l"
RETURN(sySubsystem);
YY_BREAK
case 7:
YY_RULE_SETUP
#line 150 "lexxer.l"
RETURN(syMsgOption);
YY_BREAK
case 8:
YY_RULE_SETUP
#line 151 "lexxer.l"
RETURN(syMsgSeqno);
YY_BREAK
case 9:
YY_RULE_SETUP
#line 152 "lexxer.l"
RETURN(syWaitTime);
YY_BREAK
case 10:
YY_RULE_SETUP
#line 153 "lexxer.l"
RETURN(syNoWaitTime);
YY_BREAK
case 11:
YY_RULE_SETUP
#line 154 "lexxer.l"
RETURN(syIn);
YY_BREAK
case 12:
YY_RULE_SETUP
#line 155 "lexxer.l"
RETURN(syOut);
YY_BREAK
case 13:
YY_RULE_SETUP
#line 156 "lexxer.l"
RETURN(syInOut);
YY_BREAK
case 14:
YY_RULE_SETUP
#line 157 "lexxer.l"
RETURN(syRequestPort);
YY_BREAK
case 15:
YY_RULE_SETUP
#line 158 "lexxer.l"
RETURN(syReplyPort);
YY_BREAK
case 16:
YY_RULE_SETUP
#line 159 "lexxer.l"
RETURN(syUReplyPort);
YY_BREAK
case 17:
YY_RULE_SETUP
#line 160 "lexxer.l"
RETURN(sySReplyPort);
YY_BREAK
case 18:
YY_RULE_SETUP
#line 161 "lexxer.l"
RETURN(syArray);
YY_BREAK
case 19:
YY_RULE_SETUP
#line 162 "lexxer.l"
RETURN(syOf);
YY_BREAK
case 20:
YY_RULE_SETUP
#line 163 "lexxer.l"
RETURN(syErrorProc);
YY_BREAK
case 21:
YY_RULE_SETUP
#line 164 "lexxer.l"
RETURN(syServerPrefix);
YY_BREAK
case 22:
YY_RULE_SETUP
#line 165 "lexxer.l"
RETURN(syUserPrefix);
YY_BREAK
case 23:
YY_RULE_SETUP
#line 166 "lexxer.l"
RETURN(syServerDemux);
YY_BREAK
case 24:
YY_RULE_SETUP
#line 167 "lexxer.l"
RETURN(syRCSId);
YY_BREAK
case 25:
YY_RULE_SETUP
#line 168 "lexxer.l"
RETURN(syImport);
YY_BREAK
case 26:
YY_RULE_SETUP
#line 169 "lexxer.l"
RETURN(syUImport);
YY_BREAK
case 27:
YY_RULE_SETUP
#line 170 "lexxer.l"
RETURN(sySImport);
YY_BREAK
case 28:
YY_RULE_SETUP
#line 171 "lexxer.l"
RETURN(syType);
YY_BREAK
case 29:
YY_RULE_SETUP
#line 172 "lexxer.l"
RETURN(syKernelServer);
YY_BREAK
case 30:
YY_RULE_SETUP
#line 173 "lexxer.l"
RETURN(syKernelUser);
YY_BREAK
case 31:
YY_RULE_SETUP
#line 174 "lexxer.l"
RETURN(sySkip);
YY_BREAK
case 32:
YY_RULE_SETUP
#line 175 "lexxer.l"
RETURN(syStruct);
YY_BREAK
case 33:
YY_RULE_SETUP
#line 176 "lexxer.l"
RETURN(syInTran);
YY_BREAK
case 34:
YY_RULE_SETUP
#line 177 "lexxer.l"
RETURN(syOutTran);
YY_BREAK
case 35:
YY_RULE_SETUP
#line 178 "lexxer.l"
RETURN(syDestructor);
YY_BREAK
case 36:
YY_RULE_SETUP
#line 179 "lexxer.l"
RETURN(syCType);
YY_BREAK
case 37:
YY_RULE_SETUP
#line 180 "lexxer.l"
RETURN(syCUserType);
YY_BREAK
case 38:
YY_RULE_SETUP
#line 181 "lexxer.l"
RETURN(syCServerType);
YY_BREAK
case 39:
YY_RULE_SETUP
#line 182 "lexxer.l"
RETURN(syCString);
YY_BREAK
case 40:
YY_RULE_SETUP
#line 184 "lexxer.l"
FRETURN(flLong);
YY_BREAK
case 41:
YY_RULE_SETUP
#line 185 "lexxer.l"
FRETURN(flNotLong);
YY_BREAK
case 42:
YY_RULE_SETUP
#line 186 "lexxer.l"
FRETURN(flDealloc);
YY_BREAK
case 43:
YY_RULE_SETUP
#line 187 "lexxer.l"
FRETURN(flNotDealloc);
YY_BREAK
case 44:
YY_RULE_SETUP
#line 188 "lexxer.l"
FRETURN(flServerCopy);
YY_BREAK
case 45:
YY_RULE_SETUP
#line 189 "lexxer.l"
FRETURN(flCountInOut);
YY_BREAK
case 46:
YY_RULE_SETUP
#line 191 "lexxer.l"
TRETURN(MACH_MSG_TYPE_POLYMORPHIC, word_size_in_bits);
YY_BREAK
case 47:
YY_RULE_SETUP
#line 193 "lexxer.l"
TRETURN(MACH_MSG_TYPE_UNSTRUCTURED,0);
YY_BREAK
case 48:
YY_RULE_SETUP
#line 194 "lexxer.l"
TRETURN(MACH_MSG_TYPE_BIT,1);
YY_BREAK
case 49:
YY_RULE_SETUP
#line 195 "lexxer.l"
TRETURN(MACH_MSG_TYPE_BOOLEAN,32);
YY_BREAK
case 50:
YY_RULE_SETUP
#line 196 "lexxer.l"
TRETURN(MACH_MSG_TYPE_INTEGER_16,16);
YY_BREAK
case 51:
YY_RULE_SETUP
#line 197 "lexxer.l"
TRETURN(MACH_MSG_TYPE_INTEGER_32,32);
YY_BREAK
case 52:
YY_RULE_SETUP
#line 198 "lexxer.l"
TRETURN(MACH_MSG_TYPE_INTEGER_64,64);
YY_BREAK
case 53:
YY_RULE_SETUP
#line 199 "lexxer.l"
TRETURN(MACH_MSG_TYPE_CHAR,8);
YY_BREAK
case 54:
YY_RULE_SETUP
#line 200 "lexxer.l"
TRETURN(MACH_MSG_TYPE_BYTE,8);
YY_BREAK
case 55:
YY_RULE_SETUP
#line 201 "lexxer.l"
TRETURN(MACH_MSG_TYPE_INTEGER_8,8);
YY_BREAK
case 56:
YY_RULE_SETUP
#line 202 "lexxer.l"
TRETURN(MACH_MSG_TYPE_REAL,0);
YY_BREAK
case 57:
YY_RULE_SETUP
#line 203 "lexxer.l"
TRETURN(MACH_MSG_TYPE_STRING,0);
YY_BREAK
case 58:
YY_RULE_SETUP
#line 204 "lexxer.l"
TRETURN(MACH_MSG_TYPE_STRING_C,0);
YY_BREAK
case 59:
YY_RULE_SETUP
#line 206 "lexxer.l"
TPRETURN(MACH_MSG_TYPE_MOVE_RECEIVE,MACH_MSG_TYPE_PORT_RECEIVE, word_size_in_bits);
YY_BREAK
case 60:
YY_RULE_SETUP
#line 207 "lexxer.l"
TPRETURN(MACH_MSG_TYPE_COPY_SEND,MACH_MSG_TYPE_PORT_SEND, word_size_in_bits);
YY_BREAK
case 61:
YY_RULE_SETUP
#line 208 "lexxer.l"
TPRETURN(MACH_MSG_TYPE_MAKE_SEND,MACH_MSG_TYPE_PORT_SEND, word_size_in_bits);
YY_BREAK
case 62:
YY_RULE_SETUP
#line 209 "lexxer.l"
TPRETURN(MACH_MSG_TYPE_MOVE_SEND,MACH_MSG_TYPE_PORT_SEND, word_size_in_bits);
YY_BREAK
case 63:
YY_RULE_SETUP
#line 210 "lexxer.l"
TPRETURN(MACH_MSG_TYPE_MAKE_SEND_ONCE,MACH_MSG_TYPE_PORT_SEND_ONCE, word_size_in_bits);
YY_BREAK
case 64:
YY_RULE_SETUP
#line 211 "lexxer.l"
TPRETURN(MACH_MSG_TYPE_MOVE_SEND_ONCE,MACH_MSG_TYPE_PORT_SEND_ONCE, word_size_in_bits);
YY_BREAK
case 65:
YY_RULE_SETUP
#line 213 "lexxer.l"
TRETURN(MACH_MSG_TYPE_PORT_NAME, word_size_in_bits);
YY_BREAK
case 66:
YY_RULE_SETUP
#line 214 "lexxer.l"
TPRETURN(MACH_MSG_TYPE_POLYMORPHIC,MACH_MSG_TYPE_PORT_RECEIVE, word_size_in_bits);
YY_BREAK
case 67:
YY_RULE_SETUP
#line 215 "lexxer.l"
TPRETURN(MACH_MSG_TYPE_POLYMORPHIC,MACH_MSG_TYPE_PORT_SEND, word_size_in_bits);
YY_BREAK
case 68:
YY_RULE_SETUP
#line 216 "lexxer.l"
TPRETURN(MACH_MSG_TYPE_POLYMORPHIC,MACH_MSG_TYPE_PORT_SEND_ONCE, word_size_in_bits);
YY_BREAK
case 69:
YY_RULE_SETUP
#line 217 "lexxer.l"
TRETURN(MACH_MSG_TYPE_POLYMORPHIC, word_size_in_bits);
YY_BREAK
case 70:
YY_RULE_SETUP
#line 219 "lexxer.l"
{ int prevchar = 0, currchar;
gotToken;
for (;;) {
currchar = input();
incNextPos;
if (currchar == EOF)
break;
if (currchar == '\n') {
++lineno;
nextpos = 0;
tokenpos = 0;
}
else if (currchar == '\t')
nextpos += (8 - 1) - ((nextpos-1) & 7);
else if (prevchar == '/' && currchar == '*') {
tokenpos = nextpos-2;
warn("contains nested comment");
}
else if ((currchar == '/') && (prevchar == '*'))
break;
prevchar = currchar;
}
}
YY_BREAK
case 71:
YY_RULE_SETUP
#line 243 "lexxer.l"
RETURN(syColon);
YY_BREAK
case 72:
YY_RULE_SETUP
#line 244 "lexxer.l"
RETURN(sySemi);
YY_BREAK
case 73:
YY_RULE_SETUP
#line 245 "lexxer.l"
RETURN(syComma);
YY_BREAK
case 74:
YY_RULE_SETUP
#line 246 "lexxer.l"
RETURN(syPlus);
YY_BREAK
case 75:
YY_RULE_SETUP
#line 247 "lexxer.l"
RETURN(syMinus);
YY_BREAK
case 76:
YY_RULE_SETUP
#line 248 "lexxer.l"
RETURN(syStar);
YY_BREAK
case 77:
YY_RULE_SETUP
#line 249 "lexxer.l"
RETURN(syDiv);
YY_BREAK
case 78:
YY_RULE_SETUP
#line 250 "lexxer.l"
RETURN(syLParen);
YY_BREAK
case 79:
YY_RULE_SETUP
#line 251 "lexxer.l"
RETURN(syRParen);
YY_BREAK
case 80:
YY_RULE_SETUP
#line 252 "lexxer.l"
RETURN(syEqual);
YY_BREAK
case 81:
YY_RULE_SETUP
#line 253 "lexxer.l"
RETURN(syCaret);
YY_BREAK
case 82:
YY_RULE_SETUP
#line 254 "lexxer.l"
RETURN(syTilde);
YY_BREAK
case 83:
YY_RULE_SETUP
#line 255 "lexxer.l"
RETURN(syLAngle);
YY_BREAK
case 84:
YY_RULE_SETUP
#line 256 "lexxer.l"
RETURN(syRAngle);
YY_BREAK
case 85:
YY_RULE_SETUP
#line 257 "lexxer.l"
RETURN(syLBrack);
YY_BREAK
case 86:
YY_RULE_SETUP
#line 258 "lexxer.l"
RETURN(syRBrack);
YY_BREAK
case 87:
YY_RULE_SETUP
#line 259 "lexxer.l"
RETURN(syBar);
YY_BREAK
case 88:
YY_RULE_SETUP
#line 261 "lexxer.l"
{ yylval.identifier = strmake(yytext);
RETURN(syIdentifier); }
YY_BREAK
case 89:
YY_RULE_SETUP
#line 263 "lexxer.l"
{ yylval.number = atoi(yytext); RETURN(syNumber); }
YY_BREAK
case 90:
YY_RULE_SETUP
#line 265 "lexxer.l"
{ yylval.string = strmake(yytext);
BEGIN Normal; RETURN(syString); }
YY_BREAK
case 91:
YY_RULE_SETUP
#line 267 "lexxer.l"
{ yylval.string = strmake(yytext);
BEGIN Normal; RETURN(syFileName); }
YY_BREAK
case 92:
YY_RULE_SETUP
#line 269 "lexxer.l"
{ yylval.string = strmake(yytext);
BEGIN Normal; RETURN(syQString); }
YY_BREAK
case 93:
YY_RULE_SETUP
#line 272 "lexxer.l"
{ doSharp(yytext+1, yyleng-1);
SAVE_BEGIN;
BEGIN SkipToEOL; }
YY_BREAK
case 94:
YY_RULE_SETUP
#line 275 "lexxer.l"
{ doSharp(yytext+1, yyleng-1);
SAVE_BEGIN;
BEGIN SkipToEOL; }
YY_BREAK
case 95:
YY_RULE_SETUP
#line 278 "lexxer.l"
{ /*
* Don't warn about unrecognized CPP
* directives; just ignore them.
*/
/* yyerror("illegal # directive"); */
SAVE_BEGIN;
BEGIN SkipToEOL; }
YY_BREAK
case 96:
YY_RULE_SETUP
#line 286 "lexxer.l"
RSTR_BEGIN;
YY_BREAK
case 97:
YY_RULE_SETUP
#line 287 "lexxer.l"
;
YY_BREAK
case 98:
YY_RULE_SETUP
#line 289 "lexxer.l"
{ gotTokenAndWhite; }
YY_BREAK
case 99:
YY_RULE_SETUP
#line 290 "lexxer.l"
{ lineno++; tokenpos = nextpos = 0; }
YY_BREAK
case 100:
YY_RULE_SETUP
#line 291 "lexxer.l"
{ BEGIN Normal; RETURN(syError); }
YY_BREAK
case 101:
YY_RULE_SETUP
#line 293 "lexxer.l"
ECHO;
YY_BREAK
#line 1686 "lex.yy.c"
case YY_STATE_EOF(INITIAL):
case YY_STATE_EOF(Normal):
case YY_STATE_EOF(String):
case YY_STATE_EOF(FileName):
case YY_STATE_EOF(QString):
case YY_STATE_EOF(SkipToEOL):
yyterminate();
case YY_END_OF_BUFFER:
{
/* Amount of text matched not including the EOB char. */
int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1;
/* Undo the effects of YY_DO_BEFORE_ACTION. */
*yy_cp = yy_hold_char;
YY_RESTORE_YY_MORE_OFFSET
if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )
{
/* We're scanning a new file or input source. It's
* possible that this happened because the user
* just pointed yyin at a new source and called
* yylex(). If so, then we have to assure
* consistency between yy_current_buffer and our
* globals. Here is the right place to do so, because
* this is the first action (other than possibly a
* back-up) that will match for the new input source.
*/
yy_n_chars = yy_current_buffer->yy_n_chars;
yy_current_buffer->yy_input_file = yyin;
yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL;
}
/* Note that here we test for yy_c_buf_p "<=" to the position
* of the first EOB in the buffer, since yy_c_buf_p will
* already have been incremented past the NUL character
* (since all states make transitions on EOB to the
* end-of-buffer state). Contrast this with the test
* in input().
*/
if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
{ /* This was really a NUL. */
yy_state_type yy_next_state;
yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;
yy_current_state = yy_get_previous_state();
/* Okay, we're now positioned to make the NUL
* transition. We couldn't have
* yy_get_previous_state() go ahead and do it
* for us because it doesn't know how to deal
* with the possibility of jamming (and we don't
* want to build jamming into it because then it
* will run more slowly).
*/
yy_next_state = yy_try_NUL_trans( yy_current_state );
yy_bp = yytext_ptr + YY_MORE_ADJ;
if ( yy_next_state )
{
/* Consume the NUL. */
yy_cp = ++yy_c_buf_p;
yy_current_state = yy_next_state;
goto yy_match;
}
else
{
yy_cp = yy_c_buf_p;
goto yy_find_action;
}
}
else switch ( yy_get_next_buffer() )
{
case EOB_ACT_END_OF_FILE:
{
yy_did_buffer_switch_on_eof = 0;
if ( yywrap() )
{
/* Note: because we've taken care in
* yy_get_next_buffer() to have set up
* yytext, we can now set up
* yy_c_buf_p so that if some total
* hoser (like flex itself) wants to
* call the scanner after we return the
* YY_NULL, it'll still work - another
* YY_NULL will get returned.
*/
yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;
yy_act = YY_STATE_EOF(YY_START);
goto do_action;
}
else
{
if ( ! yy_did_buffer_switch_on_eof )
YY_NEW_FILE;
}
break;
}
case EOB_ACT_CONTINUE_SCAN:
yy_c_buf_p =
yytext_ptr + yy_amount_of_matched_text;
yy_current_state = yy_get_previous_state();
yy_cp = yy_c_buf_p;
yy_bp = yytext_ptr + YY_MORE_ADJ;
goto yy_match;
case EOB_ACT_LAST_MATCH:
yy_c_buf_p =
&yy_current_buffer->yy_ch_buf[yy_n_chars];
yy_current_state = yy_get_previous_state();
yy_cp = yy_c_buf_p;
yy_bp = yytext_ptr + YY_MORE_ADJ;
goto yy_find_action;
}
break;
}
default:
YY_FATAL_ERROR(
"fatal flex scanner internal error--no action found" );
} /* end of action switch */
} /* end of scanning one token */
} /* end of yylex */
/* yy_get_next_buffer - try to read in a new buffer
*
* Returns a code representing an action:
* EOB_ACT_LAST_MATCH -
* EOB_ACT_CONTINUE_SCAN - continue scanning from current position
* EOB_ACT_END_OF_FILE - end of file
*/
static int yy_get_next_buffer()
{
register char *dest = yy_current_buffer->yy_ch_buf;
register char *source = yytext_ptr;
register int number_to_move, i;
int ret_val;
if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
YY_FATAL_ERROR(
"fatal flex scanner internal error--end of buffer missed" );
if ( yy_current_buffer->yy_fill_buffer == 0 )
{ /* Don't try to fill the buffer, so this is an EOF. */
if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 )
{
/* We matched a single character, the EOB, so
* treat this as a final EOF.
*/
return EOB_ACT_END_OF_FILE;
}
else
{
/* We matched some text prior to the EOB, first
* process it.
*/
return EOB_ACT_LAST_MATCH;
}
}
/* Try to read more data. */
/* First move last chars to start of buffer. */
number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1;
for ( i = 0; i < number_to_move; ++i )
*(dest++) = *(source++);
if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING )
/* don't do the read, it's not guaranteed to return an EOF,
* just force an EOF
*/
yy_current_buffer->yy_n_chars = yy_n_chars = 0;
else
{
int num_to_read =
yy_current_buffer->yy_buf_size - number_to_move - 1;
while ( num_to_read <= 0 )
{ /* Not enough room in the buffer - grow it. */
#ifdef YY_USES_REJECT
YY_FATAL_ERROR(
"input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
#else
/* just a shorter name for the current buffer */
YY_BUFFER_STATE b = yy_current_buffer;
int yy_c_buf_p_offset =
(int) (yy_c_buf_p - b->yy_ch_buf);
if ( b->yy_is_our_buffer )
{
int new_size = b->yy_buf_size * 2;
if ( new_size <= 0 )
b->yy_buf_size += b->yy_buf_size / 8;
else
b->yy_buf_size *= 2;
b->yy_ch_buf = (char *)
/* Include room in for 2 EOB chars. */
yy_flex_realloc( (void *) b->yy_ch_buf,
b->yy_buf_size + 2 );
}
else
/* Can't grow it, we don't own it. */
b->yy_ch_buf = 0;
if ( ! b->yy_ch_buf )
YY_FATAL_ERROR(
"fatal error - scanner input buffer overflow" );
yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
num_to_read = yy_current_buffer->yy_buf_size -
number_to_move - 1;
#endif
}
if ( num_to_read > YY_READ_BUF_SIZE )
num_to_read = YY_READ_BUF_SIZE;
/* Read in more data. */
YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
yy_n_chars, num_to_read );
yy_current_buffer->yy_n_chars = yy_n_chars;
}
if ( yy_n_chars == 0 )
{
if ( number_to_move == YY_MORE_ADJ )
{
ret_val = EOB_ACT_END_OF_FILE;
yyrestart( yyin );
}
else
{
ret_val = EOB_ACT_LAST_MATCH;
yy_current_buffer->yy_buffer_status =
YY_BUFFER_EOF_PENDING;
}
}
else
ret_val = EOB_ACT_CONTINUE_SCAN;
yy_n_chars += number_to_move;
yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
yytext_ptr = &yy_current_buffer->yy_ch_buf[0];
return ret_val;
}
/* yy_get_previous_state - get the state just before the EOB char was reached */
static yy_state_type yy_get_previous_state()
{
register yy_state_type yy_current_state;
register char *yy_cp;
yy_current_state = yy_start;
yy_current_state += YY_AT_BOL();
for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
{
register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
if ( yy_accept[yy_current_state] )
{
yy_last_accepting_state = yy_current_state;
yy_last_accepting_cpos = yy_cp;
}
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
{
yy_current_state = (int) yy_def[yy_current_state];
if ( yy_current_state >= 519 )
yy_c = yy_meta[(unsigned int) yy_c];
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
}
return yy_current_state;
}
/* yy_try_NUL_trans - try to make a transition on the NUL character
*
* synopsis
* next_state = yy_try_NUL_trans( current_state );
*/
#ifdef YY_USE_PROTOS
static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )
#else
static yy_state_type yy_try_NUL_trans( yy_current_state )
yy_state_type yy_current_state;
#endif
{
register int yy_is_jam;
register char *yy_cp = yy_c_buf_p;
register YY_CHAR yy_c = 1;
if ( yy_accept[yy_current_state] )
{
yy_last_accepting_state = yy_current_state;
yy_last_accepting_cpos = yy_cp;
}
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
{
yy_current_state = (int) yy_def[yy_current_state];
if ( yy_current_state >= 519 )
yy_c = yy_meta[(unsigned int) yy_c];
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
yy_is_jam = (yy_current_state == 518);
return yy_is_jam ? 0 : yy_current_state;
}
#ifndef YY_NO_UNPUT
#ifdef YY_USE_PROTOS
static void yyunput( int c, register char *yy_bp )
#else
static void yyunput( c, yy_bp )
int c;
register char *yy_bp;
#endif
{
register char *yy_cp = yy_c_buf_p;
/* undo effects of setting up yytext */
*yy_cp = yy_hold_char;
if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
{ /* need to shift things up to make room */
/* +2 for EOB chars. */
register int number_to_move = yy_n_chars + 2;
register char *dest = &yy_current_buffer->yy_ch_buf[
yy_current_buffer->yy_buf_size + 2];
register char *source =
&yy_current_buffer->yy_ch_buf[number_to_move];
while ( source > yy_current_buffer->yy_ch_buf )
*--dest = *--source;
yy_cp += (int) (dest - source);
yy_bp += (int) (dest - source);
yy_current_buffer->yy_n_chars =
yy_n_chars = yy_current_buffer->yy_buf_size;
if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
YY_FATAL_ERROR( "flex scanner push-back overflow" );
}
*--yy_cp = (char) c;
yytext_ptr = yy_bp;
yy_hold_char = *yy_cp;
yy_c_buf_p = yy_cp;
}
#endif /* ifndef YY_NO_UNPUT */
#ifdef __cplusplus
static int yyinput()
#else
static int input()
#endif
{
int c;
*yy_c_buf_p = yy_hold_char;
if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
{
/* yy_c_buf_p now points to the character we want to return.
* If this occurs *before* the EOB characters, then it's a
* valid NUL; if not, then we've hit the end of the buffer.
*/
if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
/* This was really a NUL. */
*yy_c_buf_p = '\0';
else
{ /* need more input */
int offset = yy_c_buf_p - yytext_ptr;
++yy_c_buf_p;
switch ( yy_get_next_buffer() )
{
case EOB_ACT_LAST_MATCH:
/* This happens because yy_g_n_b()
* sees that we've accumulated a
* token and flags that we need to
* try matching the token before
* proceeding. But for input(),
* there's no matching to consider.
* So convert the EOB_ACT_LAST_MATCH
* to EOB_ACT_END_OF_FILE.
*/
/* Reset buffer status. */
yyrestart( yyin );
/* fall through */
case EOB_ACT_END_OF_FILE:
{
if ( yywrap() )
return EOF;
if ( ! yy_did_buffer_switch_on_eof )
YY_NEW_FILE;
#ifdef __cplusplus
return yyinput();
#else
return input();
#endif
}
case EOB_ACT_CONTINUE_SCAN:
yy_c_buf_p = yytext_ptr + offset;
break;
}
}
}
c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */
*yy_c_buf_p = '\0'; /* preserve yytext */
yy_hold_char = *++yy_c_buf_p;
yy_current_buffer->yy_at_bol = (c == '\n');
return c;
}
#ifdef YY_USE_PROTOS
void yyrestart( FILE *input_file )
#else
void yyrestart( input_file )
FILE *input_file;
#endif
{
if ( ! yy_current_buffer )
yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );
yy_init_buffer( yy_current_buffer, input_file );
yy_load_buffer_state();
}
#ifdef YY_USE_PROTOS
void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
#else
void yy_switch_to_buffer( new_buffer )
YY_BUFFER_STATE new_buffer;
#endif
{
if ( yy_current_buffer == new_buffer )
return;
if ( yy_current_buffer )
{
/* Flush out information for old buffer. */
*yy_c_buf_p = yy_hold_char;
yy_current_buffer->yy_buf_pos = yy_c_buf_p;
yy_current_buffer->yy_n_chars = yy_n_chars;
}
yy_current_buffer = new_buffer;
yy_load_buffer_state();
/* We don't actually know whether we did this switch during
* EOF (yywrap()) processing, but the only time this flag
* is looked at is after yywrap() is called, so it's safe
* to go ahead and always set it.
*/
yy_did_buffer_switch_on_eof = 1;
}
#ifdef YY_USE_PROTOS
void yy_load_buffer_state( void )
#else
void yy_load_buffer_state()
#endif
{
yy_n_chars = yy_current_buffer->yy_n_chars;
yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
yyin = yy_current_buffer->yy_input_file;
yy_hold_char = *yy_c_buf_p;
}
#ifdef YY_USE_PROTOS
YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
#else
YY_BUFFER_STATE yy_create_buffer( file, size )
FILE *file;
int size;
#endif
{
YY_BUFFER_STATE b;
b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
if ( ! b )
YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
b->yy_buf_size = size;
/* yy_ch_buf has to be 2 characters longer than the size given because
* we need to put in 2 end-of-buffer characters.
*/
b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 );
if ( ! b->yy_ch_buf )
YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
b->yy_is_our_buffer = 1;
yy_init_buffer( b, file );
return b;
}
#ifdef YY_USE_PROTOS
void yy_delete_buffer( YY_BUFFER_STATE b )
#else
void yy_delete_buffer( b )
YY_BUFFER_STATE b;
#endif
{
if ( ! b )
return;
if ( b == yy_current_buffer )
yy_current_buffer = (YY_BUFFER_STATE) 0;
if ( b->yy_is_our_buffer )
yy_flex_free( (void *) b->yy_ch_buf );
yy_flex_free( (void *) b );
}
#ifndef YY_ALWAYS_INTERACTIVE
#ifndef YY_NEVER_INTERACTIVE
extern int isatty YY_PROTO(( int ));
#endif
#endif
#ifdef YY_USE_PROTOS
void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
#else
void yy_init_buffer( b, file )
YY_BUFFER_STATE b;
FILE *file;
#endif
{
yy_flush_buffer( b );
b->yy_input_file = file;
b->yy_fill_buffer = 1;
#if YY_ALWAYS_INTERACTIVE
b->yy_is_interactive = 1;
#else
#if YY_NEVER_INTERACTIVE
b->yy_is_interactive = 0;
#else
b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
#endif
#endif
}
#ifdef YY_USE_PROTOS
void yy_flush_buffer( YY_BUFFER_STATE b )
#else
void yy_flush_buffer( b )
YY_BUFFER_STATE b;
#endif
{
if ( ! b )
return;
b->yy_n_chars = 0;
/* We always need two end-of-buffer characters. The first causes
* a transition to the end-of-buffer state. The second causes
* a jam in that state.
*/
b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
b->yy_buf_pos = &b->yy_ch_buf[0];
b->yy_at_bol = 1;
b->yy_buffer_status = YY_BUFFER_NEW;
if ( b == yy_current_buffer )
yy_load_buffer_state();
}
#ifndef YY_NO_SCAN_BUFFER
#ifdef YY_USE_PROTOS
YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size )
#else
YY_BUFFER_STATE yy_scan_buffer( base, size )
char *base;
yy_size_t size;
#endif
{
YY_BUFFER_STATE b;
if ( size < 2 ||
base[size-2] != YY_END_OF_BUFFER_CHAR ||
base[size-1] != YY_END_OF_BUFFER_CHAR )
/* They forgot to leave room for the EOB's. */
return 0;
b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
if ( ! b )
YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
b->yy_buf_pos = b->yy_ch_buf = base;
b->yy_is_our_buffer = 0;
b->yy_input_file = 0;
b->yy_n_chars = b->yy_buf_size;
b->yy_is_interactive = 0;
b->yy_at_bol = 1;
b->yy_fill_buffer = 0;
b->yy_buffer_status = YY_BUFFER_NEW;
yy_switch_to_buffer( b );
return b;
}
#endif
#ifndef YY_NO_SCAN_STRING
#ifdef YY_USE_PROTOS
YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str )
#else
YY_BUFFER_STATE yy_scan_string( yy_str )
yyconst char *yy_str;
#endif
{
int len;
for ( len = 0; yy_str[len]; ++len )
;
return yy_scan_bytes( yy_str, len );
}
#endif
#ifndef YY_NO_SCAN_BYTES
#ifdef YY_USE_PROTOS
YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len )
#else
YY_BUFFER_STATE yy_scan_bytes( bytes, len )
yyconst char *bytes;
int len;
#endif
{
YY_BUFFER_STATE b;
char *buf;
yy_size_t n;
int i;
/* Get memory for full buffer, including space for trailing EOB's. */
n = len + 2;
buf = (char *) yy_flex_alloc( n );
if ( ! buf )
YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
for ( i = 0; i < len; ++i )
buf[i] = bytes[i];
buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR;
b = yy_scan_buffer( buf, n );
if ( ! b )
YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
/* It's okay to grow etc. this buffer, and we should throw it
* away when we're done.
*/
b->yy_is_our_buffer = 1;
return b;
}
#endif
#ifndef YY_NO_PUSH_STATE
#ifdef YY_USE_PROTOS
static void yy_push_state( int new_state )
#else
static void yy_push_state( new_state )
int new_state;
#endif
{
if ( yy_start_stack_ptr >= yy_start_stack_depth )
{
yy_size_t new_size;
yy_start_stack_depth += YY_START_STACK_INCR;
new_size = yy_start_stack_depth * sizeof( int );
if ( ! yy_start_stack )
yy_start_stack = (int *) yy_flex_alloc( new_size );
else
yy_start_stack = (int *) yy_flex_realloc(
(void *) yy_start_stack, new_size );
if ( ! yy_start_stack )
YY_FATAL_ERROR(
"out of memory expanding start-condition stack" );
}
yy_start_stack[yy_start_stack_ptr++] = YY_START;
BEGIN(new_state);
}
#endif
#ifndef YY_NO_POP_STATE
static void yy_pop_state()
{
if ( --yy_start_stack_ptr < 0 )
YY_FATAL_ERROR( "start-condition stack underflow" );
BEGIN(yy_start_stack[yy_start_stack_ptr]);
}
#endif
#ifndef YY_NO_TOP_STATE
static int yy_top_state()
{
return yy_start_stack[yy_start_stack_ptr - 1];
}
#endif
#ifndef YY_EXIT_FAILURE
#define YY_EXIT_FAILURE 2
#endif
#ifdef YY_USE_PROTOS
static void yy_fatal_error( yyconst char msg[] )
#else
static void yy_fatal_error( msg )
char msg[];
#endif
{
(void) fprintf( stderr, "%s\n", msg );
exit( YY_EXIT_FAILURE );
}
/* Redefine yyless() so it works in section 3 code. */
#undef yyless
#define yyless(n) \
do \
{ \
/* Undo effects of setting up yytext. */ \
yytext[yyleng] = yy_hold_char; \
yy_c_buf_p = yytext + n; \
yy_hold_char = *yy_c_buf_p; \
*yy_c_buf_p = '\0'; \
yyleng = n; \
} \
while ( 0 )
/* Internal utility routines. */
#ifndef yytext_ptr
#ifdef YY_USE_PROTOS
static void yy_flex_strncpy( char *s1, yyconst char *s2, int n )
#else
static void yy_flex_strncpy( s1, s2, n )
char *s1;
yyconst char *s2;
int n;
#endif
{
register int i;
for ( i = 0; i < n; ++i )
s1[i] = s2[i];
}
#endif
#ifdef YY_NEED_STRLEN
#ifdef YY_USE_PROTOS
static int yy_flex_strlen( yyconst char *s )
#else
static int yy_flex_strlen( s )
yyconst char *s;
#endif
{
register int n;
for ( n = 0; s[n]; ++n )
;
return n;
}
#endif
#ifdef YY_USE_PROTOS
static void *yy_flex_alloc( yy_size_t size )
#else
static void *yy_flex_alloc( size )
yy_size_t size;
#endif
{
return (void *) malloc( size );
}
#ifdef YY_USE_PROTOS
static void *yy_flex_realloc( void *ptr, yy_size_t size )
#else
static void *yy_flex_realloc( ptr, size )
void *ptr;
yy_size_t size;
#endif
{
/* The cast to (char *) in the following accommodates both
* implementations that use char* generic pointers, and those
* that use void* generic pointers. It works with the latter
* because both ANSI C and C++ allow castless assignment from
* any pointer type to void*, and deal with argument conversions
* as though doing an assignment.
*/
return (void *) realloc( (char *) ptr, size );
}
#ifdef YY_USE_PROTOS
static void yy_flex_free( void *ptr )
#else
static void yy_flex_free( ptr )
void *ptr;
#endif
{
free( ptr );
}
#if YY_MAIN
int main()
{
yylex();
return 0;
}
#endif
#line 293 "lexxer.l"
extern void
LookNormal(void)
{
if (inname == 0)
{
inname = strmake("(unknown)");
lineno = 0;
}
BEGIN Normal;
}
extern void
LookString(void)
{
BEGIN String;
}
extern void
LookQString(void)
{
BEGIN QString;
}
extern void
LookFileName(void)
{
BEGIN FileName;
}
static void
doSharp(const char *body, int len)
{
register const char *startName;
lineno = atoi(body);
startName = strchr(body, '"');
if (startName != NULL)
{
data_channel_index last_i_file = current_i_file;
char *end;
int flag = 0, i;
end = strrchr(body, '"');
*end = '\0';
strfree(inname);
inname = strmake(startName+1);
for( i = (end - body);
(i < len) && ((body[i] == ' ') || (body[i] == '\t'));
i++ );
if( isdigit(body[i]) ) {
flag = atoi(&body[i]);
}
/*
* Since the root filename was purged of its path, we have to make sure
* that we don't try to add the full-path version. Also, if the root
* file includes another file in the same directory or a subdirectory,
* then we strip off the pathname of that file, too.
*
* XXX - This isn't the whole solution. If the root file includes a
* file relative to the parent directory (".."), then the preprocessor
* may give us only the exact path of the file, not the relative path.
* What we really want is the text inside the #include directive,
* rather than exact paths, perhaps with additional information as to
* which are system files and user files (e.g. whether included with <>
* or ""). Unfortunately, the preprocessor does away with the #include
* lines, and only gives us a relative or full pathname, although gcc
* is at least gracious enough to also indicate system include files.
*/
if (strcmp(inname, root_filename) != 0) {
const char *root_dir = dir_part(root_filename);
int dir_len = strlen(root_dir);
if ((dir_len > 0)
&& (strncmp(inname, root_dir, dir_len) == 0)) {
current_i_file = meta_add_file(&out_pres_c.meta_data,
muststrdup(inname + dir_len+1),
IO_FILE_INPUT);
} else {
current_i_file = meta_add_file(&out_pres_c.meta_data,
muststrdup(inname),
IO_FILE_INPUT);
}
} else {
current_i_file = root_file;
}
switch( flag ) {
case 1:
break;
case 2:
meta_include_file(&out_pres_c.meta_data,
current_i_file,
last_i_file);
break;
default:
break;
}
}
}
syntax highlighted by Code2HTML, v. 0.9.1