--- /dev/null
+/* A lexical scanner generated by flex */
+
+/* Scanner skeleton version:
+ * $Header: /home/daffy/u0/vern/flex/RCS/flex.skl,v 2.91 96/09/10 16:58:48 vern 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[];
+
+
+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'; \
+ if ( yyleng + yy_more_offset >= YYLMAX ) \
+ YY_FATAL_ERROR( "token too large, exceeds YYLMAX" ); \
+ yy_flex_strncpy( &yytext[yy_more_offset], yytext_ptr, yyleng + 1 ); \
+ yyleng += yy_more_offset; \
+ yy_prev_more_offset = yy_more_offset; \
+ yy_more_offset = 0; \
+ yy_c_buf_p = yy_cp;
+
+#define YY_NUM_RULES 311
+#define YY_END_OF_BUFFER 312
+static yyconst short int yy_accept[1176] =
+ { 0,
+ 0, 0, 0, 0, 0, 0, 312, 310, 309, 45,
+ 43, 308, 54, 55, 99, 100, 306, 52, 53, 279,
+ 58, 47, 57, 91, 145, 40, 40, 40, 46, 42,
+ 259, 41, 258, 90, 304, 48, 310, 49, 86, 310,
+ 310, 98, 98, 98, 98, 98, 98, 98, 103, 103,
+ 103, 103, 103, 94, 101, 103, 103, 103, 95, 96,
+ 103, 97, 103, 103, 102, 50, 51, 87, 298, 296,
+ 296, 285, 285, 285, 293, 293, 285, 298, 285, 295,
+ 298, 298, 298, 285, 311, 56, 44, 106, 306, 280,
+ 265, 40, 0, 0, 260, 261, 304, 0, 307, 0,
+
+ 264, 105, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 81, 0, 0, 0, 0, 0, 0,
+ 0, 0, 210, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 63, 64, 281, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 266, 267, 0, 144, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 133, 0, 0, 76, 0, 0, 0,
+
+ 0, 0, 0, 0, 0, 291, 283, 293, 0, 286,
+ 288, 290, 289, 287, 295, 0, 0, 0, 284, 0,
+ 56, 92, 93, 0, 0, 0, 305, 0, 0, 75,
+ 80, 0, 16, 0, 111, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 59, 0, 146, 0, 0, 0,
+ 0, 14, 0, 0, 0, 0, 0, 273, 83, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 228, 0, 0, 0, 0, 78, 122, 0, 0,
+
+ 22, 0, 0, 0, 0, 20, 0, 0, 0, 0,
+ 0, 0, 121, 0, 0, 0, 0, 0, 85, 0,
+ 0, 0, 0, 0, 18, 0, 0, 0, 0, 0,
+ 0, 119, 0, 0, 0, 0, 0, 1, 104, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 180, 0, 65, 275, 0, 0, 32, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 292, 0, 0, 0, 0, 0, 0,
+ 253, 0, 0, 0, 0, 0, 0, 256, 0, 0,
+ 0, 0, 2, 0, 0, 0, 0, 0, 0, 0,
+
+ 0, 0, 0, 245, 0, 0, 0, 0, 0, 0,
+ 0, 0, 62, 0, 162, 0, 0, 77, 257, 0,
+ 302, 0, 0, 0, 82, 0, 0, 205, 238, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 4, 0, 0, 0, 136, 0, 0, 132,
+ 0, 0, 0, 0, 0, 278, 0, 123, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 277, 0, 0, 0, 157, 0, 0, 68, 0,
+
+ 0, 0, 0, 0, 0, 0, 229, 0, 34, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 174,
+ 129, 0, 127, 71, 0, 0, 0, 282, 0, 72,
+ 0, 0, 0, 0, 0, 0, 0, 0, 73, 0,
+ 36, 0, 0, 0, 0, 214, 221, 0, 135, 0,
+ 0, 270, 0, 0, 0, 0, 134, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 303, 0, 0,
+ 0, 0, 0, 0, 60, 0, 37, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 235, 0,
+ 0, 204, 0, 0, 23, 0, 0, 0, 21, 0,
+
+ 38, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 268, 0, 0, 0, 216, 0, 0, 139, 0, 0,
+ 0, 0, 0, 0, 0, 0, 137, 193, 25, 0,
+ 79, 84, 0, 26, 0, 0, 0, 0, 0, 254,
+ 5, 0, 24, 0, 0, 0, 0, 209, 246, 0,
+ 0, 27, 0, 0, 61, 0, 297, 0, 0, 0,
+ 0, 0, 0, 0, 219, 0, 0, 0, 0, 0,
+ 0, 0, 0, 33, 0, 0, 138, 0, 0, 147,
+ 0, 0, 131, 112, 0, 154, 0, 0, 130, 0,
+
+ 117, 0, 124, 0, 0, 0, 0, 29, 0, 0,
+ 0, 0, 0, 0, 0, 28, 0, 0, 0, 0,
+ 211, 0, 0, 0, 236, 0, 0, 203, 107, 0,
+ 128, 0, 0, 269, 0, 0, 0, 0, 0, 0,
+ 276, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 274, 0, 0, 0, 141,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 148, 0, 0, 0, 0, 0,
+ 0, 0, 0, 248, 0, 0, 0, 0, 0, 0,
+ 247, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+
+ 0, 74, 0, 9, 0, 35, 0, 222, 0, 0,
+ 215, 7, 0, 0, 263, 0, 0, 89, 0, 0,
+ 0, 0, 262, 0, 0, 88, 163, 0, 0, 272,
+ 0, 0, 0, 31, 0, 0, 0, 0, 0, 220,
+ 0, 30, 0, 0, 0, 301, 0, 0, 0, 0,
+ 0, 0, 0, 0, 233, 0, 0, 0, 109, 0,
+ 0, 0, 0, 0, 0, 153, 190, 0, 0, 0,
+ 0, 0, 0, 0, 218, 0, 19, 0, 0, 0,
+ 0, 0, 166, 0, 0, 0, 118, 0, 0, 0,
+ 0, 0, 0, 251, 0, 0, 0, 0, 194, 0,
+
+ 0, 0, 0, 0, 0, 0, 249, 300, 0, 231,
+ 149, 0, 0, 0, 0, 271, 0, 0, 255, 223,
+ 0, 0, 0, 0, 3, 0, 0, 0, 0, 0,
+ 0, 0, 299, 0, 165, 0, 0, 0, 0, 0,
+ 0, 0, 0, 168, 0, 0, 0, 0, 0, 0,
+ 0, 301, 0, 116, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 108, 0, 0, 0, 0,
+ 0, 189, 0, 202, 0, 11, 0, 0, 217, 207,
+ 0, 0, 0, 213, 0, 0, 0, 0, 0, 0,
+ 159, 171, 152, 0, 160, 0, 158, 0, 0, 0,
+
+ 0, 182, 0, 0, 300, 150, 0, 0, 0, 294,
+ 0, 0, 17, 0, 196, 230, 0, 0, 185, 0,
+ 234, 161, 164, 0, 67, 299, 299, 0, 0, 66,
+ 125, 0, 170, 0, 0, 0, 0, 192, 0, 0,
+ 0, 8, 0, 0, 142, 208, 0, 0, 0, 0,
+ 0, 0, 0, 110, 0, 151, 237, 0, 173, 227,
+ 0, 201, 0, 143, 0, 0, 120, 0, 114, 0,
+ 0, 0, 0, 0, 0, 0, 183, 0, 0, 184,
+ 197, 232, 0, 294, 294, 294, 224, 0, 6, 225,
+ 0, 0, 70, 15, 69, 0, 239, 0, 0, 179,
+
+ 0, 206, 39, 0, 0, 187, 0, 240, 155, 0,
+ 0, 0, 10, 175, 200, 0, 140, 0, 115, 0,
+ 0, 0, 0, 172, 191, 0, 0, 0, 0, 0,
+ 0, 212, 0, 0, 0, 126, 12, 199, 0, 243,
+ 242, 0, 0, 0, 113, 169, 177, 188, 195, 156,
+ 181, 198, 226, 186, 13, 250, 0, 0, 0, 252,
+ 0, 176, 0, 0, 0, 167, 178, 0, 0, 0,
+ 0, 241, 0, 244, 0
+ } ;
+
+static yyconst int yy_ec[256] =
+ { 0,
+ 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
+ 1, 1, 4, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 5, 1, 1, 1, 1,
+ 1, 2, 6, 7, 8, 1, 9, 10, 11, 12,
+ 13, 14, 15, 16, 17, 18, 19, 20, 21, 22,
+ 23, 24, 23, 23, 23, 25, 23, 26, 27, 28,
+ 29, 30, 31, 1, 32, 32, 32, 32, 32, 32,
+ 33, 33, 33, 33, 33, 33, 33, 33, 33, 33,
+ 33, 33, 33, 33, 33, 33, 33, 33, 33, 33,
+ 34, 35, 36, 37, 38, 39, 40, 41, 42, 43,
+
+ 44, 45, 46, 47, 48, 49, 50, 51, 52, 53,
+ 54, 55, 56, 57, 58, 59, 60, 61, 62, 63,
+ 64, 65, 66, 67, 68, 69, 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[70] =
+ { 0,
+ 1, 2, 3, 4, 1, 1, 4, 1, 1, 1,
+ 1, 1, 5, 1, 1, 1, 1, 1, 1, 6,
+ 6, 6, 6, 6, 6, 1, 1, 1, 1, 1,
+ 1, 6, 7, 1, 1, 1, 1, 7, 8, 9,
+ 9, 9, 9, 9, 9, 10, 10, 10, 10, 10,
+ 10, 10, 10, 10, 10, 10, 10, 10, 10, 10,
+ 10, 10, 10, 10, 10, 1, 1, 1, 1
+ } ;
+
+static yyconst short int yy_base[1184] =
+ { 0,
+ 0, 0, 69, 0, 1446, 1445, 1451, 1454, 1454, 1454,
+ 1447, 1454, 1454, 1454, 1454, 1439, 1437, 1454, 1454, 1454,
+ 1454, 1454, 1454, 1454, 120, 120, 127, 133, 1454, 1454,
+ 1419, 1454, 1416, 1454, 139, 1454, 163, 1454, 1454, 0,
+ 166, 133, 151, 166, 181, 129, 176, 1388, 188, 130,
+ 1384, 1399, 199, 200, 215, 148, 211, 1454, 230, 229,
+ 242, 126, 247, 209, 1389, 1454, 1454, 1454, 1454, 1454,
+ 1454, 1412, 1454, 1430, 286, 292, 168, 1410, 243, 298,
+ 1394, 1384, 1389, 1368, 1427, 1454, 1454, 1454, 1422, 1454,
+ 1454, 304, 230, 1375, 1454, 1454, 318, 300, 1454, 1428,
+
+ 1454, 0, 265, 176, 1376, 1386, 153, 1388, 1381, 1386,
+ 275, 241, 1371, 1454, 294, 1384, 1372, 1369, 1368, 1366,
+ 1362, 1374, 1454, 227, 1373, 302, 1358, 1364, 1369, 312,
+ 126, 1353, 1359, 1359, 1352, 1366, 1367, 298, 1349, 281,
+ 1362, 314, 1354, 307, 1361, 1454, 1454, 188, 158, 1363,
+ 1344, 1337, 319, 321, 1347, 1342, 1349, 335, 326, 1337,
+ 325, 1454, 1454, 1334, 1454, 323, 1343, 1335, 1334, 1345,
+ 1347, 342, 344, 1333, 1349, 332, 1340, 1341, 347, 1340,
+ 340, 1326, 356, 1344, 1318, 357, 1327, 363, 1333, 1329,
+ 1338, 1325, 362, 1322, 364, 372, 1454, 1322, 1317, 1326,
+
+ 1331, 355, 1328, 322, 1317, 1454, 1454, 402, 0, 1454,
+ 1454, 1454, 1454, 1454, 411, 1325, 1326, 1324, 1454, 1360,
+ 1454, 1454, 1454, 1322, 407, 416, 1454, 1304, 1305, 1454,
+ 1309, 1311, 1309, 1307, 371, 1301, 1306, 1303, 1294, 1313,
+ 1311, 1303, 386, 1308, 1309, 1304, 1307, 1289, 1290, 1304,
+ 1300, 1292, 1286, 1284, 1454, 1280, 1454, 1293, 1298, 393,
+ 1286, 1289, 1277, 1287, 1275, 1280, 1280, 1288, 1454, 1286,
+ 409, 1277, 1287, 1269, 1286, 1266, 1265, 1270, 1280, 1278,
+ 1260, 1274, 1275, 1256, 1272, 1271, 1271, 401, 1265, 1261,
+ 1252, 1454, 1266, 1266, 1249, 1267, 1454, 1247, 1261, 1256,
+
+ 1249, 1244, 1253, 1235, 1251, 1244, 1245, 1237, 403, 412,
+ 1234, 1250, 1252, 1252, 1244, 1246, 1232, 1238, 1454, 1243,
+ 1246, 1241, 1244, 400, 1238, 1242, 1233, 1221, 1220, 1225,
+ 1231, 398, 1232, 1231, 1215, 1226, 1221, 1454, 1454, 1220,
+ 1213, 1212, 1224, 1209, 1211, 1208, 1207, 1218, 1210, 1208,
+ 1205, 1197, 1204, 1454, 1454, 1213, 1205, 242, 1202, 1213,
+ 1209, 1193, 1207, 1198, 1201, 1206, 1200, 1193, 1181, 1187,
+ 1199, 1195, 1182, 0, 1192, 1191, 1185, 1196, 1192, 1178,
+ 1454, 1170, 1189, 1173, 1172, 1186, 1170, 1454, 1170, 1165,
+ 1182, 1175, 1176, 1171, 1182, 1167, 1177, 415, 1175, 1174,
+
+ 1173, 1173, 1164, 1454, 1160, 1165, 1170, 1167, 1166, 1169,
+ 1155, 1165, 1454, 1153, 1454, 1147, 1160, 1454, 1454, 1155,
+ 1454, 1162, 1148, 318, 1454, 1160, 1140, 1454, 1153, 1153,
+ 1154, 1151, 415, 1139, 1142, 418, 1148, 1149, 1145, 1145,
+ 1128, 1129, 1454, 1138, 1134, 1126, 1131, 1131, 1137, 1454,
+ 1138, 1122, 1125, 1117, 1122, 1454, 1118, 1454, 1126, 1131,
+ 1108, 1127, 1130, 1127, 1124, 1120, 1122, 1104, 1120, 1106,
+ 1111, 419, 419, 1102, 1109, 1113, 1107, 1098, 1112, 1097,
+ 1101, 1096, 1094, 1092, 1106, 1109, 1089, 1107, 1106, 429,
+ 1086, 1454, 1100, 1099, 1098, 1454, 1094, 1096, 1454, 1099,
+
+ 1093, 417, 1091, 1082, 1088, 1077, 379, 1089, 1454, 1092,
+ 1073, 1079, 1084, 1070, 1068, 1085, 1084, 1080, 1079, 1454,
+ 1454, 1078, 1454, 1454, 1077, 1067, 1074, 1454, 1067, 1063,
+ 1076, 1057, 1061, 1067, 1058, 1068, 1046, 421, 1055, 1064,
+ 1454, 1048, 1066, 1048, 1052, 1454, 1454, 1059, 1454, 1051,
+ 1044, 1057, 1055, 1045, 1053, 1053, 1454, 1052, 1037, 1049,
+ 1033, 1043, 1042, 1046, 1030, 1030, 1043, 1454, 1039, 1026,
+ 1028, 434, 1025, 1034, 1454, 1023, 443, 1035, 1034, 1020,
+ 1029, 1016, 1027, 1071, 1014, 1028, 1029, 1024, 1046, 1025,
+ 1026, 1454, 1008, 1006, 1454, 1003, 1010, 1003, 1454, 1003,
+
+ 1454, 1007, 1005, 1011, 1002, 998, 1010, 996, 1008, 1000,
+ 991, 1009, 985, 1007, 1002, 997, 996, 995, 984, 984,
+ 1454, 197, 998, 995, 1454, 998, 995, 984, 992, 977,
+ 969, 974, 972, 973, 975, 964, 975, 1454, 431, 972,
+ 1454, 1454, 972, 433, 980, 976, 962, 963, 972, 1454,
+ 1454, 966, 1454, 961, 962, 972, 1013, 1454, 1454, 966,
+ 962, 1454, 960, 951, 1454, 966, 1454, 965, 951, 954,
+ 958, 946, 964, 950, 1454, 951, 947, 936, 942, 945,
+ 957, 943, 949, 456, 935, 943, 1454, 944, 948, 1454,
+ 933, 941, 488, 1454, 986, 1454, 929, 932, 490, 926,
+
+ 1454, 936, 925, 924, 941, 928, 928, 956, 916, 932,
+ 916, 934, 926, 929, 912, 948, 929, 920, 927, 477,
+ 1454, 922, 919, 910, 1454, 909, 891, 1454, 453, 890,
+ 1454, 884, 893, 1454, 873, 887, 873, 865, 129, 285,
+ 1454, 338, 450, 440, 441, 455, 451, 435, 458, 449,
+ 448, 464, 449, 456, 453, 1454, 465, 457, 455, 1454,
+ 459, 468, 476, 480, 463, 471, 473, 486, 487, 484,
+ 476, 476, 483, 492, 491, 481, 482, 484, 491, 481,
+ 493, 496, 489, 519, 543, 497, 507, 508, 495, 511,
+ 1454, 512, 498, 500, 516, 504, 518, 519, 509, 514,
+
+ 523, 513, 517, 1454, 521, 1454, 530, 1454, 527, 514,
+ 1454, 1454, 515, 572, 1454, 526, 530, 1454, 577, 533,
+ 528, 580, 1454, 532, 536, 1454, 1454, 532, 527, 1454,
+ 541, 540, 545, 1454, 542, 532, 548, 542, 550, 1454,
+ 536, 1454, 541, 555, 545, 581, 597, 550, 567, 557,
+ 569, 565, 563, 570, 575, 566, 564, 563, 1454, 580,
+ 585, 583, 570, 575, 566, 1454, 1454, 573, 588, 591,
+ 577, 583, 596, 587, 1454, 599, 1454, 585, 597, 595,
+ 607, 604, 1454, 596, 598, 593, 1454, 612, 602, 598,
+ 613, 602, 614, 1454, 606, 617, 621, 607, 1454, 606,
+
+ 616, 606, 622, 608, 620, 611, 1454, 650, 632, 1454,
+ 1454, 633, 677, 634, 626, 1454, 641, 642, 1454, 1454,
+ 642, 643, 646, 634, 1454, 639, 636, 630, 636, 637,
+ 637, 654, 691, 655, 1454, 640, 657, 656, 640, 661,
+ 655, 705, 654, 1454, 664, 674, 662, 676, 677, 682,
+ 679, 710, 734, 1454, 683, 683, 680, 689, 685, 674,
+ 686, 696, 688, 687, 690, 1454, 694, 692, 696, 708,
+ 694, 1454, 707, 1454, 708, 1454, 699, 710, 1454, 1454,
+ 703, 700, 709, 1454, 702, 719, 723, 716, 705, 720,
+ 1454, 1454, 1454, 723, 1454, 717, 1454, 710, 711, 723,
+
+ 731, 1454, 720, 730, 755, 1454, 738, 780, 782, 787,
+ 729, 737, 1454, 750, 1454, 1454, 738, 753, 1454, 751,
+ 1454, 1454, 1454, 741, 1454, 1454, 796, 756, 744, 1454,
+ 1454, 751, 1454, 739, 802, 754, 763, 1454, 763, 753,
+ 753, 1454, 778, 0, 1454, 1454, 770, 778, 766, 782,
+ 774, 765, 791, 1454, 768, 1454, 1454, 774, 1454, 1454,
+ 776, 1454, 781, 1454, 778, 785, 1454, 792, 1454, 783,
+ 788, 791, 795, 786, 801, 802, 1454, 793, 794, 1454,
+ 1454, 1454, 847, 849, 1454, 851, 1454, 797, 1454, 1454,
+ 812, 809, 1454, 1454, 1454, 814, 1454, 0, 811, 1454,
+
+ 800, 1454, 1454, 803, 856, 1454, 812, 821, 1454, 808,
+ 824, 816, 1454, 1454, 1454, 830, 1454, 811, 1454, 813,
+ 829, 815, 822, 1454, 1454, 823, 824, 815, 837, 825,
+ 830, 1454, 877, 832, 828, 1454, 1454, 1454, 847, 843,
+ 1454, 835, 844, 839, 1454, 1454, 1454, 1454, 1454, 1454,
+ 1454, 1454, 1454, 1454, 1454, 1454, 848, 841, 854, 1454,
+ 851, 1454, 853, 849, 846, 1454, 1454, 848, 852, 837,
+ 851, 1454, 839, 1454, 1454, 903, 908, 918, 927, 930,
+ 938, 945, 955
+ } ;
+
+static yyconst short int yy_def[1184] =
+ { 0,
+ 1175, 1, 1175, 3, 1176, 1176, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1177,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1178, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+
+ 1175, 1177, 1175, 1179, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1180, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1178,
+ 1175, 1175, 1175, 1175, 1175, 1179, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1180, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1181,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1182, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1181, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1183, 1175, 1175,
+
+ 1175, 1175, 1175, 1175, 1182, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1183, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 0, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175
+ } ;
+
+static yyconst short int yy_nxt[1524] =
+ { 0,
+ 8, 9, 10, 11, 12, 13, 14, 15, 8, 16,
+ 17, 18, 19, 20, 21, 22, 23, 24, 25, 26,
+ 27, 26, 26, 26, 28, 29, 30, 31, 32, 33,
+ 34, 35, 35, 36, 37, 38, 39, 40, 41, 42,
+ 43, 44, 45, 46, 47, 48, 49, 50, 51, 52,
+ 53, 54, 55, 56, 57, 58, 59, 60, 61, 62,
+ 63, 64, 65, 58, 58, 66, 8, 67, 68, 69,
+ 70, 71, 69, 69, 72, 69, 69, 73, 74, 69,
+ 73, 73, 73, 73, 73, 73, 73, 73, 75, 76,
+ 76, 76, 76, 76, 73, 69, 77, 78, 79, 73,
+
+ 80, 80, 69, 69, 69, 73, 69, 69, 69, 69,
+ 69, 81, 82, 69, 69, 69, 69, 69, 69, 69,
+ 69, 69, 69, 69, 69, 69, 69, 83, 69, 69,
+ 69, 69, 69, 69, 69, 84, 69, 73, 90, 92,
+ 92, 92, 92, 92, 92, 93, 92, 92, 92, 92,
+ 92, 92, 92, 92, 92, 92, 92, 92, 97, 97,
+ 97, 97, 97, 97, 98, 99, 100, 103, 862, 134,
+ 97, 97, 91, 105, 148, 106, 97, 225, 196, 135,
+ 197, 136, 149, 107, 265, 108, 137, 266, 150, 168,
+ 111, 94, 109, 110, 112, 210, 211, 104, 104, 288,
+
+ 169, 113, 114, 230, 115, 118, 170, 116, 171, 119,
+ 117, 231, 120, 121, 227, 101, 122, 123, 289, 124,
+ 127, 128, 125, 138, 129, 126, 139, 143, 130, 140,
+ 286, 144, 141, 162, 131, 145, 753, 132, 153, 157,
+ 287, 146, 154, 158, 133, 147, 155, 159, 202, 163,
+ 172, 222, 160, 223, 173, 203, 204, 174, 164, 161,
+ 754, 175, 156, 509, 176, 165, 103, 177, 166, 178,
+ 183, 213, 214, 179, 167, 184, 185, 180, 252, 186,
+ 237, 191, 187, 181, 182, 192, 253, 188, 198, 193,
+ 189, 238, 190, 510, 199, 194, 104, 104, 195, 239,
+
+ 200, 98, 99, 100, 201, 208, 208, 208, 208, 208,
+ 208, 208, 208, 208, 208, 208, 208, 215, 215, 215,
+ 215, 215, 215, 92, 92, 92, 92, 92, 92, 215,
+ 215, 235, 236, 276, 277, 215, 863, 97, 97, 97,
+ 97, 97, 97, 273, 241, 255, 283, 242, 209, 97,
+ 97, 261, 243, 279, 274, 97, 244, 284, 256, 293,
+ 257, 280, 568, 262, 371, 295, 296, 281, 305, 263,
+ 569, 294, 264, 297, 302, 308, 311, 303, 306, 298,
+ 372, 312, 309, 318, 319, 864, 324, 320, 328, 329,
+ 337, 338, 321, 332, 322, 340, 344, 333, 323, 304,
+
+ 325, 334, 348, 359, 335, 354, 349, 360, 225, 341,
+ 345, 368, 355, 356, 361, 369, 346, 225, 385, 362,
+ 357, 208, 208, 208, 208, 208, 208, 386, 387, 363,
+ 215, 215, 215, 215, 215, 215, 651, 395, 652, 477,
+ 411, 486, 215, 215, 396, 227, 412, 440, 215, 422,
+ 460, 441, 423, 462, 227, 487, 424, 478, 547, 576,
+ 461, 580, 613, 614, 548, 615, 463, 645, 634, 464,
+ 635, 677, 577, 706, 646, 581, 616, 806, 720, 678,
+ 617, 707, 711, 773, 712, 769, 636, 774, 770, 814,
+ 775, 822, 852, 865, 866, 867, 868, 853, 869, 870,
+
+ 871, 872, 873, 874, 713, 875, 876, 807, 846, 846,
+ 854, 877, 878, 879, 880, 815, 881, 823, 882, 883,
+ 884, 887, 888, 885, 889, 890, 891, 892, 893, 894,
+ 895, 896, 897, 899, 898, 900, 901, 886, 902, 903,
+ 904, 905, 906, 907, 785, 816, 817, 824, 825, 909,
+ 910, 911, 912, 913, 914, 915, 818, 916, 826, 917,
+ 918, 919, 920, 921, 922, 923, 924, 925, 926, 927,
+ 928, 929, 930, 814, 908, 908, 931, 932, 819, 934,
+ 935, 822, 936, 937, 938, 939, 940, 941, 942, 943,
+ 944, 945, 946, 947, 948, 949, 950, 951, 953, 815,
+
+ 952, 952, 952, 952, 952, 952, 954, 823, 933, 933,
+ 955, 956, 952, 952, 957, 958, 959, 960, 952, 961,
+ 963, 964, 965, 966, 967, 968, 969, 970, 971, 816,
+ 817, 972, 962, 973, 974, 975, 976, 824, 825, 977,
+ 818, 978, 979, 980, 981, 982, 983, 984, 826, 985,
+ 986, 987, 988, 989, 990, 991, 992, 993, 994, 995,
+ 996, 997, 998, 999, 1000, 1001, 1002, 1003, 1004, 1005,
+ 1005, 1005, 1005, 1005, 1005, 1006, 1007, 1011, 1008, 1008,
+ 1012, 1005, 1005, 1013, 1014, 1015, 1016, 1005, 1009, 1017,
+ 1018, 1019, 1020, 1021, 1022, 1023, 1024, 1025, 1028, 1029,
+
+ 1030, 1031, 1026, 1032, 1033, 1034, 1035, 1036, 1010, 1010,
+ 1027, 1027, 1027, 1027, 1027, 1027, 1037, 1038, 1039, 1040,
+ 1041, 1042, 1027, 1027, 1043, 1045, 1046, 1047, 1027, 952,
+ 952, 952, 952, 952, 952, 953, 1048, 1049, 1050, 1051,
+ 1044, 952, 952, 1052, 1053, 1054, 1055, 952, 1056, 1057,
+ 1058, 1059, 1060, 1061, 1062, 1063, 1064, 1065, 1066, 1067,
+ 1068, 1069, 1070, 1071, 1072, 1073, 1074, 1075, 1076, 1077,
+ 1078, 1079, 1080, 1081, 1005, 1005, 1005, 1005, 1005, 1005,
+ 1082, 1008, 1008, 1083, 1083, 1087, 1005, 1005, 1084, 1084,
+ 1088, 1009, 1005, 1089, 1090, 1091, 1092, 1093, 1094, 1085,
+
+ 1095, 1096, 1097, 1035, 1099, 1100, 1101, 1026, 1098, 1102,
+ 1103, 1010, 1010, 1010, 1010, 1027, 1027, 1027, 1027, 1027,
+ 1027, 1104, 1106, 1107, 1108, 1109, 1110, 1027, 1027, 1111,
+ 1112, 1113, 1114, 1027, 1115, 1116, 1117, 1118, 1119, 1120,
+ 1121, 1122, 1123, 1124, 1125, 1126, 1127, 1128, 1083, 1083,
+ 1084, 1084, 1084, 1084, 1129, 1130, 1131, 1132, 1134, 1135,
+ 1136, 1085, 1137, 1085, 1138, 1139, 1140, 1141, 1142, 1143,
+ 1144, 1145, 1146, 1147, 1148, 1149, 1150, 1151, 1010, 1010,
+ 1152, 1153, 1154, 1155, 1156, 1157, 1158, 1159, 1160, 1161,
+ 1162, 1163, 1164, 1165, 1166, 1167, 1168, 1169, 1170, 1171,
+
+ 1172, 1173, 1174, 85, 85, 85, 85, 85, 85, 85,
+ 85, 85, 85, 102, 102, 861, 102, 102, 220, 220,
+ 220, 220, 220, 220, 220, 220, 220, 220, 226, 860,
+ 859, 858, 226, 226, 226, 374, 857, 856, 374, 1086,
+ 1086, 855, 1086, 1086, 1086, 1105, 1105, 851, 850, 1105,
+ 1105, 1105, 1105, 1105, 1105, 1133, 1133, 849, 848, 1133,
+ 1133, 1133, 1133, 1133, 1133, 847, 845, 844, 843, 842,
+ 841, 840, 839, 838, 837, 836, 835, 834, 833, 832,
+ 831, 830, 829, 828, 827, 821, 820, 819, 813, 812,
+ 811, 810, 809, 808, 805, 804, 803, 802, 801, 800,
+
+ 799, 798, 797, 796, 795, 794, 793, 792, 791, 790,
+ 789, 788, 787, 786, 785, 784, 783, 782, 781, 780,
+ 779, 778, 777, 776, 772, 771, 768, 767, 766, 765,
+ 764, 763, 762, 761, 760, 759, 758, 757, 756, 755,
+ 752, 751, 750, 749, 748, 747, 746, 745, 744, 743,
+ 742, 741, 740, 739, 738, 737, 736, 735, 734, 733,
+ 732, 731, 730, 729, 728, 727, 726, 725, 724, 723,
+ 722, 721, 720, 719, 718, 717, 716, 715, 714, 710,
+ 709, 708, 705, 704, 703, 702, 701, 700, 699, 698,
+ 697, 696, 695, 694, 693, 692, 691, 690, 689, 688,
+
+ 687, 686, 685, 684, 683, 682, 681, 680, 679, 676,
+ 675, 674, 673, 672, 671, 670, 669, 668, 667, 666,
+ 665, 664, 663, 662, 661, 660, 659, 658, 657, 656,
+ 655, 654, 653, 650, 649, 648, 647, 644, 643, 642,
+ 641, 640, 639, 638, 637, 633, 632, 631, 630, 629,
+ 628, 627, 626, 625, 624, 623, 622, 621, 620, 619,
+ 618, 612, 611, 610, 609, 608, 607, 606, 605, 604,
+ 603, 602, 601, 600, 599, 598, 597, 596, 595, 594,
+ 593, 592, 591, 590, 589, 588, 587, 586, 585, 584,
+ 583, 582, 579, 578, 575, 574, 573, 572, 571, 570,
+
+ 567, 566, 565, 564, 563, 562, 561, 560, 559, 558,
+ 557, 556, 555, 554, 553, 552, 551, 550, 549, 546,
+ 545, 544, 543, 542, 541, 540, 539, 538, 537, 536,
+ 535, 534, 533, 532, 531, 530, 529, 528, 527, 526,
+ 525, 524, 523, 522, 521, 520, 519, 518, 517, 516,
+ 515, 514, 513, 512, 511, 508, 507, 506, 505, 504,
+ 503, 502, 501, 500, 499, 498, 497, 496, 495, 494,
+ 493, 492, 491, 490, 489, 488, 485, 484, 483, 482,
+ 481, 480, 479, 476, 475, 474, 473, 472, 471, 470,
+ 469, 468, 467, 466, 465, 459, 458, 457, 456, 455,
+
+ 454, 453, 452, 451, 450, 449, 448, 447, 446, 445,
+ 444, 443, 442, 286, 439, 438, 437, 436, 435, 434,
+ 433, 432, 431, 430, 429, 428, 427, 426, 425, 421,
+ 420, 419, 418, 417, 416, 415, 414, 413, 410, 409,
+ 408, 407, 406, 405, 404, 403, 402, 401, 400, 399,
+ 398, 397, 394, 393, 392, 391, 390, 389, 388, 384,
+ 383, 382, 381, 380, 379, 378, 221, 377, 376, 375,
+ 373, 370, 367, 366, 365, 364, 358, 353, 352, 351,
+ 350, 347, 343, 342, 339, 336, 331, 330, 327, 326,
+ 317, 316, 315, 314, 313, 310, 307, 301, 300, 299,
+
+ 292, 291, 290, 285, 282, 278, 275, 272, 271, 270,
+ 269, 268, 267, 260, 259, 258, 254, 251, 250, 249,
+ 248, 247, 246, 245, 240, 234, 233, 232, 229, 228,
+ 99, 224, 89, 221, 219, 218, 217, 216, 212, 207,
+ 206, 205, 152, 151, 142, 96, 95, 89, 88, 87,
+ 1175, 86, 86, 7, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175
+ } ;
+
+static yyconst short int yy_chk[1524] =
+ { 0,
+ 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, 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, 25, 26,
+ 26, 26, 26, 26, 26, 27, 27, 27, 27, 27,
+ 27, 27, 28, 28, 28, 28, 28, 28, 35, 35,
+ 35, 35, 35, 35, 37, 37, 37, 41, 739, 46,
+ 35, 35, 25, 42, 50, 42, 35, 104, 62, 46,
+ 62, 46, 50, 42, 131, 42, 46, 131, 50, 56,
+ 43, 28, 42, 42, 43, 77, 77, 41, 41, 149,
+
+ 56, 43, 43, 107, 43, 44, 56, 43, 56, 44,
+ 43, 107, 44, 44, 104, 37, 44, 44, 149, 44,
+ 45, 45, 44, 47, 45, 44, 47, 49, 45, 47,
+ 148, 49, 47, 55, 45, 49, 622, 45, 53, 54,
+ 148, 49, 53, 54, 45, 49, 53, 54, 64, 55,
+ 57, 93, 54, 93, 57, 64, 64, 57, 55, 54,
+ 622, 57, 53, 358, 57, 55, 103, 57, 55, 59,
+ 60, 79, 79, 59, 55, 60, 60, 59, 124, 60,
+ 112, 61, 60, 59, 59, 61, 124, 60, 63, 61,
+ 60, 112, 60, 358, 63, 61, 103, 103, 61, 112,
+
+ 63, 98, 98, 98, 63, 75, 75, 75, 75, 75,
+ 75, 76, 76, 76, 76, 76, 76, 80, 80, 80,
+ 80, 80, 80, 92, 92, 92, 92, 92, 92, 80,
+ 80, 111, 111, 140, 140, 80, 740, 97, 97, 97,
+ 97, 97, 97, 138, 115, 126, 144, 115, 75, 97,
+ 97, 130, 115, 142, 138, 97, 115, 144, 126, 153,
+ 126, 142, 424, 130, 204, 154, 154, 142, 159, 130,
+ 424, 153, 130, 154, 158, 161, 166, 158, 159, 154,
+ 204, 166, 161, 172, 172, 742, 173, 172, 176, 176,
+ 181, 181, 172, 179, 172, 183, 186, 179, 172, 158,
+
+ 173, 179, 188, 195, 179, 193, 188, 195, 225, 183,
+ 186, 202, 193, 193, 196, 202, 186, 226, 235, 196,
+ 193, 208, 208, 208, 208, 208, 208, 235, 235, 196,
+ 215, 215, 215, 215, 215, 215, 507, 243, 507, 324,
+ 260, 332, 215, 215, 243, 225, 260, 288, 215, 271,
+ 309, 288, 271, 310, 226, 332, 271, 324, 398, 433,
+ 309, 436, 472, 472, 398, 473, 310, 502, 490, 310,
+ 490, 538, 433, 572, 502, 436, 473, 684, 720, 538,
+ 473, 572, 577, 644, 577, 639, 490, 644, 639, 693,
+ 644, 699, 729, 743, 744, 745, 746, 729, 747, 748,
+
+ 749, 750, 751, 752, 577, 753, 754, 684, 720, 720,
+ 729, 755, 757, 758, 759, 693, 761, 699, 762, 763,
+ 764, 765, 766, 764, 767, 768, 769, 770, 771, 772,
+ 773, 774, 775, 776, 775, 777, 778, 764, 779, 780,
+ 781, 782, 783, 784, 785, 693, 693, 699, 699, 786,
+ 787, 788, 789, 790, 792, 793, 693, 794, 699, 795,
+ 796, 797, 798, 799, 800, 801, 802, 803, 805, 807,
+ 809, 810, 813, 814, 785, 785, 816, 817, 819, 820,
+ 821, 822, 824, 825, 828, 829, 831, 832, 833, 835,
+ 836, 837, 838, 839, 841, 843, 844, 845, 847, 814,
+
+ 846, 846, 846, 846, 846, 846, 848, 822, 819, 819,
+ 849, 850, 846, 846, 851, 852, 853, 854, 846, 855,
+ 856, 857, 858, 860, 861, 862, 863, 864, 865, 814,
+ 814, 868, 855, 869, 870, 871, 872, 822, 822, 873,
+ 814, 874, 876, 878, 879, 880, 881, 882, 822, 884,
+ 885, 886, 888, 889, 890, 891, 892, 893, 895, 896,
+ 897, 898, 900, 901, 902, 903, 904, 905, 906, 908,
+ 908, 908, 908, 908, 908, 909, 912, 914, 913, 913,
+ 915, 908, 908, 917, 918, 921, 922, 908, 913, 923,
+ 924, 926, 927, 928, 929, 930, 931, 932, 934, 936,
+
+ 937, 938, 933, 939, 940, 941, 942, 943, 913, 913,
+ 933, 933, 933, 933, 933, 933, 945, 946, 947, 948,
+ 949, 950, 933, 933, 951, 955, 956, 957, 933, 952,
+ 952, 952, 952, 952, 952, 953, 958, 959, 960, 961,
+ 953, 952, 952, 962, 963, 964, 965, 952, 967, 968,
+ 969, 970, 971, 973, 975, 977, 978, 981, 982, 983,
+ 985, 986, 987, 988, 989, 990, 994, 996, 998, 999,
+ 1000, 1001, 1003, 1004, 1005, 1005, 1005, 1005, 1005, 1005,
+ 1007, 1008, 1008, 1009, 1009, 1011, 1005, 1005, 1010, 1010,
+ 1012, 1008, 1005, 1014, 1017, 1018, 1020, 1024, 1028, 1010,
+
+ 1029, 1032, 1034, 1035, 1036, 1037, 1039, 1027, 1035, 1040,
+ 1041, 1008, 1008, 1009, 1009, 1027, 1027, 1027, 1027, 1027,
+ 1027, 1043, 1047, 1048, 1049, 1050, 1051, 1027, 1027, 1052,
+ 1053, 1055, 1058, 1027, 1061, 1063, 1065, 1066, 1068, 1070,
+ 1071, 1072, 1073, 1074, 1075, 1076, 1078, 1079, 1083, 1083,
+ 1084, 1084, 1086, 1086, 1088, 1091, 1092, 1096, 1099, 1101,
+ 1104, 1084, 1105, 1086, 1107, 1108, 1110, 1111, 1112, 1116,
+ 1118, 1120, 1121, 1122, 1123, 1126, 1127, 1128, 1083, 1083,
+ 1129, 1130, 1131, 1133, 1134, 1135, 1139, 1140, 1142, 1143,
+ 1144, 1157, 1158, 1159, 1161, 1163, 1164, 1165, 1168, 1169,
+
+ 1170, 1171, 1173, 1176, 1176, 1176, 1176, 1176, 1176, 1176,
+ 1176, 1176, 1176, 1177, 1177, 738, 1177, 1177, 1178, 1178,
+ 1178, 1178, 1178, 1178, 1178, 1178, 1178, 1178, 1179, 737,
+ 736, 735, 1179, 1179, 1179, 1180, 733, 732, 1180, 1181,
+ 1181, 730, 1181, 1181, 1181, 1182, 1182, 727, 726, 1182,
+ 1182, 1182, 1182, 1182, 1182, 1183, 1183, 724, 723, 1183,
+ 1183, 1183, 1183, 1183, 1183, 722, 719, 718, 717, 716,
+ 715, 714, 713, 712, 711, 710, 709, 708, 707, 706,
+ 705, 704, 703, 702, 700, 698, 697, 695, 692, 691,
+ 689, 688, 686, 685, 683, 682, 681, 680, 679, 678,
+
+ 677, 676, 674, 673, 672, 671, 670, 669, 668, 666,
+ 664, 663, 661, 660, 657, 656, 655, 654, 652, 649,
+ 648, 647, 646, 645, 643, 640, 637, 636, 635, 634,
+ 633, 632, 631, 630, 629, 628, 627, 626, 624, 623,
+ 620, 619, 618, 617, 616, 615, 614, 613, 612, 611,
+ 610, 609, 608, 607, 606, 605, 604, 603, 602, 600,
+ 598, 597, 596, 594, 593, 591, 590, 589, 588, 587,
+ 586, 585, 584, 583, 582, 581, 580, 579, 578, 576,
+ 574, 573, 571, 570, 569, 567, 566, 565, 564, 563,
+ 562, 561, 560, 559, 558, 556, 555, 554, 553, 552,
+
+ 551, 550, 548, 545, 544, 543, 542, 540, 539, 537,
+ 536, 535, 534, 533, 532, 531, 530, 529, 527, 526,
+ 525, 522, 519, 518, 517, 516, 515, 514, 513, 512,
+ 511, 510, 508, 506, 505, 504, 503, 501, 500, 498,
+ 497, 495, 494, 493, 491, 489, 488, 487, 486, 485,
+ 484, 483, 482, 481, 480, 479, 478, 477, 476, 475,
+ 474, 471, 470, 469, 468, 467, 466, 465, 464, 463,
+ 462, 461, 460, 459, 457, 455, 454, 453, 452, 451,
+ 449, 448, 447, 446, 445, 444, 442, 441, 440, 439,
+ 438, 437, 435, 434, 432, 431, 430, 429, 427, 426,
+
+ 423, 422, 420, 417, 416, 414, 412, 411, 410, 409,
+ 408, 407, 406, 405, 403, 402, 401, 400, 399, 397,
+ 396, 395, 394, 393, 392, 391, 390, 389, 387, 386,
+ 385, 384, 383, 382, 380, 379, 378, 377, 376, 375,
+ 373, 372, 371, 370, 369, 368, 367, 366, 365, 364,
+ 363, 362, 361, 360, 359, 357, 356, 353, 352, 351,
+ 350, 349, 348, 347, 346, 345, 344, 343, 342, 341,
+ 340, 337, 336, 335, 334, 333, 331, 330, 329, 328,
+ 327, 326, 325, 323, 322, 321, 320, 318, 317, 316,
+ 315, 314, 313, 312, 311, 308, 307, 306, 305, 304,
+
+ 303, 302, 301, 300, 299, 298, 296, 295, 294, 293,
+ 291, 290, 289, 287, 286, 285, 284, 283, 282, 281,
+ 280, 279, 278, 277, 276, 275, 274, 273, 272, 270,
+ 268, 267, 266, 265, 264, 263, 262, 261, 259, 258,
+ 256, 254, 253, 252, 251, 250, 249, 248, 247, 246,
+ 245, 244, 242, 241, 240, 239, 238, 237, 236, 234,
+ 233, 232, 231, 229, 228, 224, 220, 218, 217, 216,
+ 205, 203, 201, 200, 199, 198, 194, 192, 191, 190,
+ 189, 187, 185, 184, 182, 180, 178, 177, 175, 174,
+ 171, 170, 169, 168, 167, 164, 160, 157, 156, 155,
+
+ 152, 151, 150, 145, 143, 141, 139, 137, 136, 135,
+ 134, 133, 132, 129, 128, 127, 125, 122, 121, 120,
+ 119, 118, 117, 116, 113, 110, 109, 108, 106, 105,
+ 100, 94, 89, 85, 84, 83, 82, 81, 78, 74,
+ 72, 65, 52, 51, 48, 33, 31, 17, 16, 11,
+ 7, 6, 5, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
+ 1175, 1175, 1175
+ } ;
+
+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
+static int yy_more_offset = 0;
+static int yy_prev_more_offset = 0;
+#define yymore() (yy_more_offset = yy_flex_strlen( yytext ))
+#define YY_NEED_STRLEN
+#define YY_MORE_ADJ 0
+#define YY_RESTORE_YY_MORE_OFFSET \
+ { \
+ yy_more_offset = yy_prev_more_offset; \
+ yyleng -= yy_more_offset; \
+ }
+#ifndef YYLMAX
+#define YYLMAX 8192
+#endif
+
+char yytext[YYLMAX];
+char *yytext_ptr;
+#line 1 "lex.l"
+#define INITIAL 0
+#line 3 "lex.l"
+
+/* Copyright (c) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
+ * 2005, 2006 by Arkkra Enterprises */
+/* All rights reserved */
+
+/* lexer for music publication program. Recognizes and returns all the
+ * tokens needed by yacc. */
+
+#include <errno.h>
+#include "rational.h"
+#include "ytab.h"
+#include "defines.h"
+#include "structs.h"
+#include "globals.h"
+
+
+/* In order to reduce the number of terminal symbols so yacc wouldn't blow
+ * up, we mapped several similar tokens to the same return code. The
+ * yylval variable is then used to say which specific one of the set
+ * was actually in the input. Bison doesn't have the number of tokens
+ * restriction, but grouping related tokens is still useful. */
+extern YYSTYPE yylval;
+
+
+#define YY_INPUT(buf,result,max_size) \
+ { \
+ int c = getc(yyin); \
+ if (c == '\n') { \
+ Last_was_newline = YES; \
+ yylineno += not_in_mac(1); \
+ } \
+ else { \
+ Last_was_newline = NO; \
+ } \
+ if (c == EOF || c == 0) { \
+ result = YY_NULL; \
+ } else { \
+ buf[0] = c; \
+ result = 1; \
+ } \
+ } \
+
+/* list of Flex buffers for includes/macros */
+struct Lexbuffer {
+ YY_BUFFER_STATE buff;
+ struct Lexbuffer *next;
+};
+static struct Lexbuffer *Lexlist;
+
+/* We add a newline at end of input, to avoid cryptic error message
+ * if user didn't end the file with a newline. */
+static YY_BUFFER_STATE Eof_newline = 0;
+
+/* The compressed form of an "if" clause is stored here,
+ * then passed to a mini-parser. */
+unsigned char Ifclause_buff[1024];
+int If_length; /* how much of Ifclause_buffer is used */
+static void add_ifclause P((int token));
+static void addnum_ifclause P((int value));
+static void addnumstr_ifclause P((char *numtoken));
+extern void set_ifclause_buffer P((unsigned char * buffer, int length));
+extern int ifparse P((void));
+static void bad_input P((char *where));
+
+int yylineno;
+
+
+static int If_count = 0; /* how many if, ifdef, and ifndef constructs in progress */
+static int If_errs; /* to try to deduce missing 'then' */
+static int Escapedquotes = 0;
+static int Raw_string = NO; /* YES if doing raw string (not expanding
+ * any non-ASCII into Mup escapes) */
+
+static int get_a_param P((char *macname));
+static void skipwhite P((void));
+static void to_eol P((void));
+static int skip2else P((void));
+static int oddbs P((void));
+static void embedquotes P((void));
+static void xpand_non_ascii P((void));
+static void ignore P((void));
+#define IF_CLAUSE 1
+#define STRING 2
+
+
+/* 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 \
+ YY_USER_ACTION
+
+YY_DECL
+ {
+ register yy_state_type yy_current_state;
+ register char *yy_cp, *yy_bp;
+ register int yy_act;
+
+#line 91 "lex.l"
+
+
+
+ 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_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 >= 1176 )
+ 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] != 1454 );
+
+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 93 "lex.l"
+{ yylval.intval = FONT_TR; return(T_FONT); }
+ YY_BREAK
+case 2:
+YY_RULE_SETUP
+#line 94 "lex.l"
+{ yylval.intval = FONT_TB; return(T_FONT); }
+ YY_BREAK
+case 3:
+YY_RULE_SETUP
+#line 95 "lex.l"
+{ yylval.intval = FONT_TX; return(T_FONT); }
+ YY_BREAK
+case 4:
+YY_RULE_SETUP
+#line 96 "lex.l"
+{ yylval.intval = FONT_TI; return(T_FONT); }
+ YY_BREAK
+case 5:
+YY_RULE_SETUP
+#line 98 "lex.l"
+{ yylval.intval = BASE_TIMES; return(T_FFAMILY); }
+ YY_BREAK
+case 6:
+YY_RULE_SETUP
+#line 99 "lex.l"
+{ yylval.intval = BASE_AVANTGARDE; return(T_FFAMILY); }
+ YY_BREAK
+case 7:
+YY_RULE_SETUP
+#line 100 "lex.l"
+{ yylval.intval = BASE_COURIER; return(T_FFAMILY); }
+ YY_BREAK
+case 8:
+YY_RULE_SETUP
+#line 101 "lex.l"
+{ yylval.intval = BASE_HELVETICA; return(T_FFAMILY); }
+ YY_BREAK
+case 9:
+YY_RULE_SETUP
+#line 102 "lex.l"
+{ yylval.intval = BASE_BOOKMAN; return(T_FFAMILY); }
+ YY_BREAK
+case 10:
+YY_RULE_SETUP
+#line 103 "lex.l"
+{ yylval.intval = BASE_NEWCENTURY; return(T_FFAMILY); }
+ YY_BREAK
+case 11:
+YY_RULE_SETUP
+#line 104 "lex.l"
+{ yylval.intval = BASE_PALATINO; return(T_FFAMILY); }
+ YY_BREAK
+case 12:
+YY_RULE_SETUP
+#line 106 "lex.l"
+{
+ /* set up include using filename with quotes stripped */
+ yytext[yyleng - 1] = '\0';
+ includefile(strchr(yytext, '"') + 1);
+ }
+ YY_BREAK
+case 13:
+YY_RULE_SETUP
+#line 112 "lex.l"
+{
+ yytext[yyleng - 1] = '\0';
+ parse_font_file(strchr(yytext, '"') + 1);
+ }
+ YY_BREAK
+case 14:
+#line 118 "lex.l"
+case 15:
+YY_RULE_SETUP
+#line 118 "lex.l"
+{ yylval.intval = DIMINISHED; return(T_XPOS_INT); }
+ YY_BREAK
+case 16:
+#line 120 "lex.l"
+case 17:
+YY_RULE_SETUP
+#line 120 "lex.l"
+{ yylval.intval = AUGMENTED; return(T_XPOS_INT); }
+ YY_BREAK
+case 18:
+#line 122 "lex.l"
+case 19:
+YY_RULE_SETUP
+#line 122 "lex.l"
+{ yylval.intval = PERFECT; return(T_XPOS_INT); }
+ YY_BREAK
+case 20:
+#line 124 "lex.l"
+case 21:
+YY_RULE_SETUP
+#line 124 "lex.l"
+{ yylval.intval = MINOR; return(T_XPOS_INT); }
+ YY_BREAK
+case 22:
+#line 126 "lex.l"
+case 23:
+YY_RULE_SETUP
+#line 126 "lex.l"
+{ yylval.intval = MAJOR; return(T_XPOS_INT); }
+ YY_BREAK
+case 24:
+YY_RULE_SETUP
+#line 128 "lex.l"
+return(T_TITLE);
+ YY_BREAK
+case 25:
+YY_RULE_SETUP
+#line 130 "lex.l"
+return(T_SCORE);
+ YY_BREAK
+case 26:
+YY_RULE_SETUP
+#line 131 "lex.l"
+return(T_STAFF);
+ YY_BREAK
+case 27:
+YY_RULE_SETUP
+#line 132 "lex.l"
+return(T_VOICE);
+ YY_BREAK
+case 28:
+YY_RULE_SETUP
+#line 133 "lex.l"
+{ yylval.intval = C_HEADER; return(T_BLOCKHEAD); }
+ YY_BREAK
+case 29:
+YY_RULE_SETUP
+#line 134 "lex.l"
+{ yylval.intval = C_FOOTER; return(T_BLOCKHEAD); }
+ YY_BREAK
+case 30:
+YY_RULE_SETUP
+#line 135 "lex.l"
+{ yylval.intval = C_HEAD2; return(T_BLOCKHEAD); }
+ YY_BREAK
+case 31:
+YY_RULE_SETUP
+#line 136 "lex.l"
+{ yylval.intval = C_FOOT2; return(T_BLOCKHEAD); }
+ YY_BREAK
+case 32:
+YY_RULE_SETUP
+#line 137 "lex.l"
+{ yylval.intval = C_TOP; return(T_BLOCKHEAD); }
+ YY_BREAK
+case 33:
+YY_RULE_SETUP
+#line 138 "lex.l"
+{ yylval.intval = C_BOT; return(T_BLOCKHEAD); }
+ YY_BREAK
+case 34:
+YY_RULE_SETUP
+#line 139 "lex.l"
+{ yylval.intval = C_TOP2; return(T_BLOCKHEAD); }
+ YY_BREAK
+case 35:
+YY_RULE_SETUP
+#line 140 "lex.l"
+{ yylval.intval = C_BOT2; return(T_BLOCKHEAD); }
+ YY_BREAK
+case 36:
+YY_RULE_SETUP
+#line 141 "lex.l"
+{ yylval.intval = C_BLOCK; return(T_BLOCKHEAD); }
+ YY_BREAK
+case 37:
+YY_RULE_SETUP
+#line 142 "lex.l"
+return(T_GRIDS);
+ YY_BREAK
+case 38:
+YY_RULE_SETUP
+#line 143 "lex.l"
+return(T_MUSIC);
+ YY_BREAK
+case 39:
+YY_RULE_SETUP
+#line 144 "lex.l"
+return(T_HEADSHAPES);
+ YY_BREAK
+case 40:
+YY_RULE_SETUP
+#line 146 "lex.l"
+return(T_NUMBER);
+ YY_BREAK
+case 41:
+YY_RULE_SETUP
+#line 148 "lex.l"
+return(T_EQUAL);
+ YY_BREAK
+case 42:
+YY_RULE_SETUP
+#line 149 "lex.l"
+return(T_SEMICOLON);
+ YY_BREAK
+case 43:
+#line 151 "lex.l"
+case 44:
+#line 152 "lex.l"
+case 45:
+YY_RULE_SETUP
+#line 152 "lex.l"
+return(T_NEWLINE);
+ YY_BREAK
+case 46:
+YY_RULE_SETUP
+#line 153 "lex.l"
+return(T_COLON);
+ YY_BREAK
+case 47:
+YY_RULE_SETUP
+#line 154 "lex.l"
+return(T_COMMA);
+ YY_BREAK
+case 48:
+YY_RULE_SETUP
+#line 155 "lex.l"
+return(T_LBRACKET);
+ YY_BREAK
+case 49:
+YY_RULE_SETUP
+#line 156 "lex.l"
+return(T_RBRACKET);
+ YY_BREAK
+case 50:
+YY_RULE_SETUP
+#line 157 "lex.l"
+return(T_LBRACE);
+ YY_BREAK
+case 51:
+YY_RULE_SETUP
+#line 158 "lex.l"
+return(T_RBRACE);
+ YY_BREAK
+case 52:
+YY_RULE_SETUP
+#line 159 "lex.l"
+return(T_LPAREN);
+ YY_BREAK
+case 53:
+YY_RULE_SETUP
+#line 160 "lex.l"
+return(T_RPAREN);
+ YY_BREAK
+case 54:
+YY_RULE_SETUP
+#line 161 "lex.l"
+return(T_EXCLAM);
+ YY_BREAK
+case 55:
+YY_RULE_SETUP
+#line 163 "lex.l"
+{ BEGIN STRING; yymore(); }
+ YY_BREAK
+case 56:
+YY_RULE_SETUP
+#line 164 "lex.l"
+{
+ /* string: handle embedded backslashed quotes */
+ if (yytext[yyleng-2] == '\\' && oddbs() == YES) {
+ Escapedquotes++;
+ yymore();
+ }
+ else {
+ embedquotes();
+ BEGIN 0;
+ xpand_non_ascii();
+ if (yyleng > YYLMAX) {
+ l_ufatal(Curr_filename, yylineno,
+ "text string too long");
+ }
+ return(T_STRING);
+ }
+ }
+ YY_BREAK
+case 57:
+YY_RULE_SETUP
+#line 182 "lex.l"
+return(T_DASH);
+ YY_BREAK
+case 58:
+YY_RULE_SETUP
+#line 183 "lex.l"
+return(T_PLUS);
+ YY_BREAK
+case 59:
+YY_RULE_SETUP
+#line 185 "lex.l"
+return(T_CUE);
+ YY_BREAK
+case 60:
+YY_RULE_SETUP
+#line 186 "lex.l"
+return(T_GRACE);
+ YY_BREAK
+case 61:
+YY_RULE_SETUP
+#line 187 "lex.l"
+return(T_XNOTE);
+ YY_BREAK
+case 62:
+YY_RULE_SETUP
+#line 188 "lex.l"
+return(T_DIAM);
+ YY_BREAK
+case 63:
+YY_RULE_SETUP
+#line 189 "lex.l"
+return(T_HO);
+ YY_BREAK
+case 64:
+YY_RULE_SETUP
+#line 190 "lex.l"
+return(T_HS);
+ YY_BREAK
+case 65:
+YY_RULE_SETUP
+#line 191 "lex.l"
+{ yylval.intval = L_NORMAL; return(T_TIE); }
+ YY_BREAK
+case 66:
+YY_RULE_SETUP
+#line 192 "lex.l"
+{ yylval.intval = L_DOTTED; return(T_TIE); }
+ YY_BREAK
+case 67:
+YY_RULE_SETUP
+#line 193 "lex.l"
+{ yylval.intval = L_DASHED; return(T_TIE); }
+ YY_BREAK
+case 68:
+YY_RULE_SETUP
+#line 194 "lex.l"
+{ yylval.intval = L_NORMAL; return(T_SLUR); }
+ YY_BREAK
+case 69:
+YY_RULE_SETUP
+#line 195 "lex.l"
+{ yylval.intval = L_DOTTED; return(T_SLUR); }
+ YY_BREAK
+case 70:
+YY_RULE_SETUP
+#line 196 "lex.l"
+{ yylval.intval = L_DASHED; return(T_SLUR); }
+ YY_BREAK
+case 71:
+YY_RULE_SETUP
+#line 197 "lex.l"
+return(T_WITH);
+ YY_BREAK
+case 72:
+YY_RULE_SETUP
+#line 198 "lex.l"
+{ yylval.intval = PL_ABOVE; return(T_PLACE); }
+ YY_BREAK
+case 73:
+YY_RULE_SETUP
+#line 199 "lex.l"
+{ yylval.intval = PL_BELOW; return(T_PLACE); }
+ YY_BREAK
+case 74:
+YY_RULE_SETUP
+#line 200 "lex.l"
+{ yylval.intval = PL_BETWEEN; return(T_PLACE); }
+ YY_BREAK
+case 75:
+YY_RULE_SETUP
+#line 201 "lex.l"
+return(T_ALL);
+ YY_BREAK
+case 76:
+YY_RULE_SETUP
+#line 202 "lex.l"
+return(T_UP);
+ YY_BREAK
+case 77:
+YY_RULE_SETUP
+#line 203 "lex.l"
+return(T_DOWN);
+ YY_BREAK
+case 78:
+YY_RULE_SETUP
+#line 204 "lex.l"
+return(T_LEN);
+ YY_BREAK
+case 79:
+YY_RULE_SETUP
+#line 205 "lex.l"
+return(T_SLASHMARK);
+ YY_BREAK
+case 80:
+YY_RULE_SETUP
+#line 206 "lex.l"
+return(T_ALT);
+ YY_BREAK
+case 81:
+YY_RULE_SETUP
+#line 207 "lex.l"
+return(T_BM);
+ YY_BREAK
+case 82:
+YY_RULE_SETUP
+#line 208 "lex.l"
+return(T_ESBM);
+ YY_BREAK
+case 83:
+YY_RULE_SETUP
+#line 209 "lex.l"
+return(T_EBM);
+ YY_BREAK
+case 84:
+YY_RULE_SETUP
+#line 210 "lex.l"
+return(T_SLOPE);
+ YY_BREAK
+case 85:
+YY_RULE_SETUP
+#line 211 "lex.l"
+{ yylval.intval = PAD; return(T_PAD); }
+ YY_BREAK
+case 86:
+YY_RULE_SETUP
+#line 213 "lex.l"
+return(T_HAT);
+ YY_BREAK
+case 87:
+YY_RULE_SETUP
+#line 214 "lex.l"
+{ yylval.intval = L_NORMAL; return(T_TILDE); }
+ YY_BREAK
+case 88:
+YY_RULE_SETUP
+#line 215 "lex.l"
+{ yylval.intval = L_DOTTED; return(T_TILDE); }
+ YY_BREAK
+case 89:
+YY_RULE_SETUP
+#line 216 "lex.l"
+{ yylval.intval = L_DASHED; return(T_TILDE); }
+ YY_BREAK
+case 90:
+YY_RULE_SETUP
+#line 217 "lex.l"
+return(T_QUESTION);
+ YY_BREAK
+case 91:
+YY_RULE_SETUP
+#line 219 "lex.l"
+return(T_DOT);
+ YY_BREAK
+case 92:
+YY_RULE_SETUP
+#line 220 "lex.l"
+{ yylval.intval = 2; return(T_MULTIWHOLE); }
+ YY_BREAK
+case 93:
+YY_RULE_SETUP
+#line 221 "lex.l"
+{ yylval.intval = 4; return(T_MULTIWHOLE); }
+ YY_BREAK
+case 94:
+YY_RULE_SETUP
+#line 223 "lex.l"
+return(T_LET_M);
+ YY_BREAK
+case 95:
+YY_RULE_SETUP
+#line 224 "lex.l"
+return(T_LET_R);
+ YY_BREAK
+case 96:
+YY_RULE_SETUP
+#line 225 "lex.l"
+return(T_LET_S);
+ YY_BREAK
+case 97:
+YY_RULE_SETUP
+#line 226 "lex.l"
+return(T_LET_U);
+ YY_BREAK
+case 98:
+YY_RULE_SETUP
+#line 227 "lex.l"
+return(T_PITCH);
+ YY_BREAK
+case 99:
+YY_RULE_SETUP
+#line 228 "lex.l"
+return(T_SHARP);
+ YY_BREAK
+case 100:
+YY_RULE_SETUP
+#line 229 "lex.l"
+return(T_AMPERSAND);
+ YY_BREAK
+case 101:
+YY_RULE_SETUP
+#line 230 "lex.l"
+return(T_LET_N);
+ YY_BREAK
+case 102:
+YY_RULE_SETUP
+#line 231 "lex.l"
+return(T_LET_X);
+ YY_BREAK
+case 103:
+YY_RULE_SETUP
+#line 232 "lex.l"
+return(T_LETTER); /* all letters not used for something special */
+ YY_BREAK
+case 104:
+YY_RULE_SETUP
+#line 233 "lex.l"
+return(T_RPT);
+ YY_BREAK
+case 105:
+YY_RULE_SETUP
+#line 234 "lex.l"
+return(T_LVAR); /* multi-character location variable names */
+ YY_BREAK
+case 106:
+YY_RULE_SETUP
+#line 235 "lex.l"
+return(T_DBLFLAT);
+ YY_BREAK
+case 107:
+YY_RULE_SETUP
+#line 237 "lex.l"
+return(T_LYRICS);
+ YY_BREAK
+case 108:
+YY_RULE_SETUP
+#line 239 "lex.l"
+{ yylval.intval = NO; return(T_SCOREFEED); }
+ YY_BREAK
+case 109:
+YY_RULE_SETUP
+#line 240 "lex.l"
+{ yylval.intval = YES; return(T_SCOREFEED); }
+ YY_BREAK
+case 110:
+YY_RULE_SETUP
+#line 242 "lex.l"
+return(T_MULTIREST);
+ YY_BREAK
+case 111:
+YY_RULE_SETUP
+#line 244 "lex.l"
+{ yylval.intval = SINGLEBAR; return(T_BARTYPE); }
+ YY_BREAK
+case 112:
+YY_RULE_SETUP
+#line 245 "lex.l"
+{ yylval.intval = DOUBLEBAR; return(T_BARTYPE); }
+ YY_BREAK
+case 113:
+YY_RULE_SETUP
+#line 246 "lex.l"
+{ yylval.intval = REPEATSTART; return(T_BARTYPE); }
+ YY_BREAK
+case 114:
+YY_RULE_SETUP
+#line 247 "lex.l"
+{ yylval.intval = REPEATEND; return(T_BARTYPE); }
+ YY_BREAK
+case 115:
+YY_RULE_SETUP
+#line 248 "lex.l"
+{ yylval.intval = REPEATBOTH; return(T_BARTYPE); }
+ YY_BREAK
+case 116:
+YY_RULE_SETUP
+#line 249 "lex.l"
+{ yylval.intval = INVISBAR; return(T_BARTYPE); }
+ YY_BREAK
+case 117:
+YY_RULE_SETUP
+#line 250 "lex.l"
+{ yylval.intval = ENDBAR; return(T_BARTYPE); }
+ YY_BREAK
+case 118:
+YY_RULE_SETUP
+#line 251 "lex.l"
+{ yylval.intval = RESTART; return(T_BARTYPE); }
+ YY_BREAK
+case 119:
+#line 254 "lex.l"
+case 120:
+YY_RULE_SETUP
+#line 254 "lex.l"
+return(T_REHEARSAL);
+ YY_BREAK
+case 121:
+YY_RULE_SETUP
+#line 255 "lex.l"
+return(T_NUM);
+ YY_BREAK
+case 122:
+YY_RULE_SETUP
+#line 256 "lex.l"
+return(T_LET);
+ YY_BREAK
+case 123:
+YY_RULE_SETUP
+#line 257 "lex.l"
+return(T_MNUM);
+ YY_BREAK
+case 124:
+YY_RULE_SETUP
+#line 259 "lex.l"
+return(T_ENDING);
+ YY_BREAK
+case 125:
+YY_RULE_SETUP
+#line 260 "lex.l"
+return(T_ENDENDING);
+ YY_BREAK
+case 126:
+YY_RULE_SETUP
+#line 262 "lex.l"
+return(T_HIDECHANGES);
+ YY_BREAK
+case 127:
+YY_RULE_SETUP
+#line 264 "lex.l"
+{ yylval.intval = L_WIDE; return(T_LINETYPE); }
+ YY_BREAK
+case 128:
+YY_RULE_SETUP
+#line 265 "lex.l"
+{ yylval.intval = L_MEDIUM; return(T_LINETYPE); }
+ YY_BREAK
+case 129:
+YY_RULE_SETUP
+#line 266 "lex.l"
+{ yylval.intval = L_WAVY; return(T_LINETYPE); }
+ YY_BREAK
+case 130:
+YY_RULE_SETUP
+#line 267 "lex.l"
+{ yylval.intval = L_DOTTED; return(T_LINETYPE); }
+ YY_BREAK
+case 131:
+YY_RULE_SETUP
+#line 268 "lex.l"
+{ yylval.intval = L_DASHED; return(T_LINETYPE); }
+ YY_BREAK
+case 132:
+YY_RULE_SETUP
+#line 270 "lex.l"
+return(T_LINE);
+ YY_BREAK
+case 133:
+YY_RULE_SETUP
+#line 271 "lex.l"
+return(T_TO);
+ YY_BREAK
+case 134:
+YY_RULE_SETUP
+#line 272 "lex.l"
+return(T_CURVE);
+ YY_BREAK
+case 135:
+YY_RULE_SETUP
+#line 273 "lex.l"
+return(T_BULGE);
+ YY_BREAK
+case 136:
+YY_RULE_SETUP
+#line 275 "lex.l"
+{ yylval.intval = J_LEFT; return(T_PRINTTYPE); }
+ YY_BREAK
+case 137:
+YY_RULE_SETUP
+#line 276 "lex.l"
+{ yylval.intval = J_RIGHT; return(T_PRINTTYPE); }
+ YY_BREAK
+case 138:
+YY_RULE_SETUP
+#line 277 "lex.l"
+{ yylval.intval = J_CENTER; return(T_PRINTTYPE); }
+ YY_BREAK
+case 139:
+YY_RULE_SETUP
+#line 278 "lex.l"
+{ yylval.intval = J_NONE; return(T_PRINTTYPE); }
+ YY_BREAK
+case 140:
+YY_RULE_SETUP
+#line 279 "lex.l"
+{ return(T_POSTSCRIPT); }
+ YY_BREAK
+case 141:
+YY_RULE_SETUP
+#line 280 "lex.l"
+{ yylval.intval = J_RAGPARA; return(T_PARATYPE); }
+ YY_BREAK
+case 142:
+YY_RULE_SETUP
+#line 281 "lex.l"
+{ yylval.intval = J_JUSTPARA; return(T_PARATYPE); }
+ YY_BREAK
+case 143:
+YY_RULE_SETUP
+#line 282 "lex.l"
+return(T_PARAGRAPH);
+ YY_BREAK
+case 144:
+YY_RULE_SETUP
+#line 283 "lex.l"
+return(T_NL);
+ YY_BREAK
+case 145:
+YY_RULE_SETUP
+#line 285 "lex.l"
+return(T_SLASH);
+ YY_BREAK
+case 146:
+YY_RULE_SETUP
+#line 286 "lex.l"
+return(T_CUT);
+ YY_BREAK
+case 147:
+YY_RULE_SETUP
+#line 287 "lex.l"
+return(T_COMMON);
+ YY_BREAK
+case 148:
+YY_RULE_SETUP
+#line 289 "lex.l"
+{ yylval.intval = NUMSTAFF; return(T_NUMVAR); }
+ YY_BREAK
+case 149:
+YY_RULE_SETUP
+#line 290 "lex.l"
+{ yylval.intval = VSCHEME; return(T_VVAR); }
+ YY_BREAK
+case 150:
+YY_RULE_SETUP
+#line 291 "lex.l"
+{ yylval.intval = VCOMBINE; return(T_VCOMBINE); }
+ YY_BREAK
+case 151:
+YY_RULE_SETUP
+#line 292 "lex.l"
+{ yylval.intval = VC_NOOVERLAP; return(T_VCOMBVAL); }
+ YY_BREAK
+case 152:
+YY_RULE_SETUP
+#line 293 "lex.l"
+{ yylval.intval = VC_SHAREONE; return(T_VCOMBVAL); }
+ YY_BREAK
+case 153:
+YY_RULE_SETUP
+#line 294 "lex.l"
+{ yylval.intval = VC_OVERLAP; return(T_VCOMBVAL); }
+ YY_BREAK
+case 154:
+YY_RULE_SETUP
+#line 295 "lex.l"
+{ yylval.intval = DEFOCT; return(T_NUMVAR); }
+ YY_BREAK
+case 155:
+YY_RULE_SETUP
+#line 296 "lex.l"
+{ yylval.intval = LYRICSSIZE; return(T_NUMVAR); }
+ YY_BREAK
+case 156:
+YY_RULE_SETUP
+#line 297 "lex.l"
+{ yylval.intval = SYLPOSITION; return(T_NUMVAR); }
+ YY_BREAK
+case 157:
+YY_RULE_SETUP
+#line 298 "lex.l"
+{ yylval.intval = SIZE; return(T_NUMVAR); }
+ YY_BREAK
+case 158:
+YY_RULE_SETUP
+#line 299 "lex.l"
+{ yylval.intval = MINSTSEP; return(T_NUMVAR); }
+ YY_BREAK
+case 159:
+YY_RULE_SETUP
+#line 300 "lex.l"
+{ yylval.intval = MINSCPAD; return(T_SCOREPAD); }
+ YY_BREAK
+case 160:
+YY_RULE_SETUP
+#line 301 "lex.l"
+{ yylval.intval = STAFFPAD; return(T_NUMVAR); }
+ YY_BREAK
+case 161:
+YY_RULE_SETUP
+#line 302 "lex.l"
+{ yylval.intval = CHORDDIST; return(T_NUMVAR); }
+ YY_BREAK
+case 162:
+YY_RULE_SETUP
+#line 303 "lex.l"
+{ yylval.intval = DIST; return(T_NUMVAR); }
+ YY_BREAK
+case 163:
+YY_RULE_SETUP
+#line 304 "lex.l"
+{ yylval.intval = DYNDIST; return(T_NUMVAR); }
+ YY_BREAK
+case 164:
+YY_RULE_SETUP
+#line 305 "lex.l"
+{
+ l_yyerror(Curr_filename, yylineno,
+ "'crescdist' has been renamed 'dyndist'");
+ yylval.intval = DYNDIST;
+ return(T_NUMVAR);
+ }
+ YY_BREAK
+case 165:
+YY_RULE_SETUP
+#line 311 "lex.l"
+{ yylval.intval = DIVISION; return(T_NUMVAR); }
+ YY_BREAK
+case 166:
+YY_RULE_SETUP
+#line 312 "lex.l"
+{ yylval.intval = RELEASE; return(T_NUMVAR); }
+ YY_BREAK
+case 167:
+YY_RULE_SETUP
+#line 313 "lex.l"
+{ yylval.intval = PANELSPERPAGE; return(T_NUMVAR); }
+ YY_BREAK
+case 168:
+YY_RULE_SETUP
+#line 314 "lex.l"
+{ yylval.intval = GRIDFRET; return(T_NUMVAR); }
+ YY_BREAK
+case 169:
+YY_RULE_SETUP
+#line 315 "lex.l"
+{ yylval.intval = RESTCOMBINE; return(T_NUMVAR); }
+ YY_BREAK
+case 170:
+YY_RULE_SETUP
+#line 316 "lex.l"
+{ yylval.intval = FIRSTPAGE; return(T_NUMVAR); }
+ YY_BREAK
+case 171:
+YY_RULE_SETUP
+#line 317 "lex.l"
+{ yylval.intval = MINSCSEP; return(T_SCORESEP); }
+ YY_BREAK
+case 172:
+YY_RULE_SETUP
+#line 318 "lex.l"
+{ yylval.intval = STAFFLINES; return(T_STAFFLINES); }
+ YY_BREAK
+case 173:
+YY_RULE_SETUP
+#line 319 "lex.l"
+{ yylval.intval = ONTHELINE; return(T_YESNOVAR); }
+ YY_BREAK
+case 174:
+YY_RULE_SETUP
+#line 320 "lex.l"
+{ yylval.intval = WARN; return(T_YESNOVAR); }
+ YY_BREAK
+case 175:
+YY_RULE_SETUP
+#line 321 "lex.l"
+{ yylval.intval = NUMBERMRPT; return(T_YESNOVAR); }
+ YY_BREAK
+case 176:
+YY_RULE_SETUP
+#line 322 "lex.l"
+{ yylval.intval = PRINTMULTNUM; return(T_YESNOVAR); }
+ YY_BREAK
+case 177:
+YY_RULE_SETUP
+#line 323 "lex.l"
+{ yylval.intval = RESTSYMMULT; return(T_YESNOVAR); }
+ YY_BREAK
+case 178:
+YY_RULE_SETUP
+#line 324 "lex.l"
+{ yylval.intval = GRIDSWHEREUSED; return(T_YESNOVAR); }
+ YY_BREAK
+case 179:
+YY_RULE_SETUP
+#line 325 "lex.l"
+{ yylval.intval = GRIDSATEND; return(T_YESNOVAR); }
+ YY_BREAK
+case 180:
+YY_RULE_SETUP
+#line 326 "lex.l"
+return(T_TAB);
+ YY_BREAK
+case 181:
+YY_RULE_SETUP
+#line 327 "lex.l"
+{ yylval.intval = TABWHITEBOX; return(T_YESNOVAR); }
+ YY_BREAK
+case 182:
+YY_RULE_SETUP
+#line 328 "lex.l"
+{ yylval.intval = TIMEUNIT; return(T_TIMEUNIT); }
+ YY_BREAK
+case 183:
+YY_RULE_SETUP
+#line 329 "lex.l"
+{ yylval.intval = SWINGUNIT; return(T_SWINGUNIT); }
+ YY_BREAK
+case 184:
+YY_RULE_SETUP
+#line 330 "lex.l"
+{ yylval.intval = TOPMARGIN; return(T_FNUMVAR); }
+ YY_BREAK
+case 185:
+YY_RULE_SETUP
+#line 331 "lex.l"
+{ yylval.intval = BOTMARGIN; return(T_FNUMVAR); }
+ YY_BREAK
+case 186:
+YY_RULE_SETUP
+#line 332 "lex.l"
+{ yylval.intval = BOTMARGIN; return(T_FNUMVAR); }
+ YY_BREAK
+case 187:
+YY_RULE_SETUP
+#line 333 "lex.l"
+{ yylval.intval = LEFTMARGIN; return(T_FNUMVAR); }
+ YY_BREAK
+case 188:
+YY_RULE_SETUP
+#line 334 "lex.l"
+{ yylval.intval = RIGHTMARGIN; return(T_FNUMVAR); }
+ YY_BREAK
+case 189:
+YY_RULE_SETUP
+#line 335 "lex.l"
+{ yylval.intval = PACKFACT; return(T_FNUMVAR); }
+ YY_BREAK
+case 190:
+YY_RULE_SETUP
+#line 336 "lex.l"
+{ yylval.intval = PACKEXP; return(T_FNUMVAR); }
+ YY_BREAK
+case 191:
+YY_RULE_SETUP
+#line 337 "lex.l"
+{ yylval.intval = STAFFSCALE; return(T_FNUMVAR); }
+ YY_BREAK
+case 192:
+YY_RULE_SETUP
+#line 338 "lex.l"
+{ yylval.intval = GRIDSCALE; return(T_FNUMVAR); }
+ YY_BREAK
+case 193:
+YY_RULE_SETUP
+#line 339 "lex.l"
+{ yylval.intval = SCALE_FACTOR; return(T_FNUMVAR); }
+ YY_BREAK
+case 194:
+YY_RULE_SETUP
+#line 340 "lex.l"
+{ yylval.intval = STEMLEN; return(T_FNUMVAR); }
+ YY_BREAK
+case 195:
+YY_RULE_SETUP
+#line 341 "lex.l"
+{ yylval.intval = STEMSHORTEN; return(T_FNUMVAR); }
+ YY_BREAK
+case 196:
+YY_RULE_SETUP
+#line 342 "lex.l"
+{ yylval.intval = BEAMSLOPE; return(T_2FNUMVAR); }
+ YY_BREAK
+case 197:
+YY_RULE_SETUP
+#line 343 "lex.l"
+{ yylval.intval = TRANSPOSITION; return(T_TRANSPOSE); }
+ YY_BREAK
+case 198:
+YY_RULE_SETUP
+#line 344 "lex.l"
+{ yylval.intval = ADDTRANSPOSITION; return(T_TRANSPOSE); }
+ YY_BREAK
+case 199:
+YY_RULE_SETUP
+#line 345 "lex.l"
+{ yylval.intval = LYRICSALIGN; return(T_FNUMVAR); }
+ YY_BREAK
+case 200:
+YY_RULE_SETUP
+#line 346 "lex.l"
+{ yylval.intval = PAGEHEIGHT; return(T_FNUMVAR); }
+ YY_BREAK
+case 201:
+YY_RULE_SETUP
+#line 347 "lex.l"
+{ yylval.intval = PAGEWIDTH; return(T_FNUMVAR); }
+ YY_BREAK
+case 202:
+YY_RULE_SETUP
+#line 348 "lex.l"
+{ return(T_PSVAR); }
+ YY_BREAK
+case 203:
+YY_RULE_SETUP
+#line 349 "lex.l"
+{ yylval.intval = PS_LETTER; return(T_PAGESIZE); }
+ YY_BREAK
+case 204:
+YY_RULE_SETUP
+#line 350 "lex.l"
+{ yylval.intval = PS_LEGAL; return(T_PAGESIZE); }
+ YY_BREAK
+case 205:
+YY_RULE_SETUP
+#line 351 "lex.l"
+{ yylval.intval = PS_FLSA; return(T_PAGESIZE); }
+ YY_BREAK
+case 206:
+YY_RULE_SETUP
+#line 352 "lex.l"
+{ yylval.intval = PS_HALFLETTER; return(T_PAGESIZE); }
+ YY_BREAK
+case 207:
+YY_RULE_SETUP
+#line 353 "lex.l"
+{ yylval.intval = O_PORTRAIT; return(T_ORIENTATION); }
+ YY_BREAK
+case 208:
+YY_RULE_SETUP
+#line 354 "lex.l"
+{ yylval.intval = O_LANDSCAPE; return(T_ORIENTATION); }
+ YY_BREAK
+case 209:
+YY_RULE_SETUP
+#line 355 "lex.l"
+{ yylval.intval = UNITS; return(T_UNITS); }
+ YY_BREAK
+case 210:
+YY_RULE_SETUP
+#line 356 "lex.l"
+{ yylval.intval = CM; return(T_UNITTYPE); }
+ YY_BREAK
+case 211:
+YY_RULE_SETUP
+#line 357 "lex.l"
+{ yylval.intval = INCHES; return(T_UNITTYPE); }
+ YY_BREAK
+case 212:
+YY_RULE_SETUP
+#line 359 "lex.l"
+{ yylval.intval = ENDINGSTYLE; return(T_ENDSTYLE); }
+ YY_BREAK
+case 213:
+YY_RULE_SETUP
+#line 360 "lex.l"
+{ yylval.intval = REHSTYLE; return(T_REH_STYLE); }
+ YY_BREAK
+case 214:
+YY_RULE_SETUP
+#line 361 "lex.l"
+{ yylval.intval = RS_BOXED; return(T_REHTYPE); }
+ YY_BREAK
+case 215:
+YY_RULE_SETUP
+#line 362 "lex.l"
+{ yylval.intval = RS_CIRCLED; return(T_REHTYPE); }
+ YY_BREAK
+case 216:
+YY_RULE_SETUP
+#line 363 "lex.l"
+{ yylval.intval = RS_PLAIN; return(T_REHTYPE); }
+ YY_BREAK
+case 217:
+YY_RULE_SETUP
+#line 364 "lex.l"
+{ yylval.intval = PEDSTYLE; return(T_PEDSTYLE); }
+ YY_BREAK
+case 218:
+YY_RULE_SETUP
+#line 365 "lex.l"
+return(T_PEDSTAR);
+ YY_BREAK
+case 219:
+YY_RULE_SETUP
+#line 366 "lex.l"
+{ yylval.intval = ENDING_BARRED; return(T_ENDTYPE); }
+ YY_BREAK
+case 220:
+YY_RULE_SETUP
+#line 367 "lex.l"
+{ yylval.intval = ENDING_GROUPED; return(T_ENDTYPE); }
+ YY_BREAK
+case 221:
+YY_RULE_SETUP
+#line 369 "lex.l"
+{ yylval.intval = BRACELIST; return(T_RANGELISTVAR); }
+ YY_BREAK
+case 222:
+YY_RULE_SETUP
+#line 370 "lex.l"
+{ yylval.intval = BRACKLIST; return(T_RANGELISTVAR); }
+ YY_BREAK
+case 223:
+YY_RULE_SETUP
+#line 371 "lex.l"
+{ yylval.intval = BARSTLIST; return(T_BARSTLISTVAR); }
+ YY_BREAK
+case 224:
+YY_RULE_SETUP
+#line 372 "lex.l"
+{ yylval.intval = PL_ABOVE; return(T_ORDER); }
+ YY_BREAK
+case 225:
+YY_RULE_SETUP
+#line 373 "lex.l"
+{ yylval.intval = PL_BELOW; return(T_ORDER); }
+ YY_BREAK
+case 226:
+YY_RULE_SETUP
+#line 374 "lex.l"
+{ yylval.intval = PL_BETWEEN; return(T_ORDER); }
+ YY_BREAK
+case 227:
+YY_RULE_SETUP
+#line 375 "lex.l"
+return(T_OTHERTEXT);
+ YY_BREAK
+case 228:
+YY_RULE_SETUP
+#line 376 "lex.l"
+{ yylval.intval = SHARPS; return(T_KEY); }
+ YY_BREAK
+case 229:
+YY_RULE_SETUP
+#line 377 "lex.l"
+{ yylval.intval = TIME; return(T_TIME); }
+ YY_BREAK
+case 230:
+YY_RULE_SETUP
+#line 378 "lex.l"
+{ yylval.intval = BEAMSTLIST; return(T_RATNUMLISTVAR); }
+ YY_BREAK
+case 231:
+YY_RULE_SETUP
+#line 379 "lex.l"
+{ yylval.intval = VISIBLE; return(T_VISVAR); }
+ YY_BREAK
+case 232:
+YY_RULE_SETUP
+#line 380 "lex.l"
+{ return(T_WHEREUSED); }
+ YY_BREAK
+case 233:
+YY_RULE_SETUP
+#line 381 "lex.l"
+{ yylval.intval = MEASNUM; return(T_YESNOVAR); }
+ YY_BREAK
+case 234:
+YY_RULE_SETUP
+#line 382 "lex.l"
+{ yylval.intval = CANCELKEY; return(T_YESNOVAR); }
+ YY_BREAK
+case 235:
+YY_RULE_SETUP
+#line 383 "lex.l"
+{ yylval.intval = LABEL; return(T_STRVAR); }
+ YY_BREAK
+case 236:
+YY_RULE_SETUP
+#line 384 "lex.l"
+{ yylval.intval = LABEL2; return(T_STRVAR); }
+ YY_BREAK
+case 237:
+YY_RULE_SETUP
+#line 385 "lex.l"
+{ yylval.intval = NOTEHEADS; return(T_STRVAR); }
+ YY_BREAK
+case 238:
+YY_RULE_SETUP
+#line 386 "lex.l"
+{ yylval.intval = FONT; return(T_FONTVAR); }
+ YY_BREAK
+case 239:
+YY_RULE_SETUP
+#line 387 "lex.l"
+{ yylval.intval = FONTFAMILY; return(T_FAMILY); }
+ YY_BREAK
+case 240:
+YY_RULE_SETUP
+#line 388 "lex.l"
+{ yylval.intval = LYRICSFONT; return(T_FONTVAR); }
+ YY_BREAK
+case 241:
+YY_RULE_SETUP
+#line 389 "lex.l"
+{ yylval.intval = LYRICSFAMILY; return(T_FAMILY); }
+ YY_BREAK
+case 242:
+YY_RULE_SETUP
+#line 390 "lex.l"
+{ yylval.intval = MEASNUMSIZE; return(T_NUMVAR); }
+ YY_BREAK
+case 243:
+YY_RULE_SETUP
+#line 391 "lex.l"
+{ yylval.intval = MEASNUMFONT; return(T_FONTVAR); }
+ YY_BREAK
+case 244:
+YY_RULE_SETUP
+#line 392 "lex.l"
+{ yylval.intval = MEASNUMFAMILY; return(T_FAMILY); }
+ YY_BREAK
+case 245:
+YY_RULE_SETUP
+#line 393 "lex.l"
+{ yylval.intval = CLEF; return(T_CLEFVAR); }
+ YY_BREAK
+case 246:
+YY_RULE_SETUP
+#line 394 "lex.l"
+{ return(T_UNSET); }
+ YY_BREAK
+case 247:
+YY_RULE_SETUP
+#line 396 "lex.l"
+{ yylval.intval = TREBLE_8A; return(T_CLEF); }
+ YY_BREAK
+case 248:
+YY_RULE_SETUP
+#line 397 "lex.l"
+{ yylval.intval = TREBLE; return(T_CLEF); }
+ YY_BREAK
+case 249:
+YY_RULE_SETUP
+#line 398 "lex.l"
+{ yylval.intval = TREBLE_8; return(T_CLEF); }
+ YY_BREAK
+case 250:
+YY_RULE_SETUP
+#line 399 "lex.l"
+{ yylval.intval = FRENCHVIOLIN; return(T_CLEF); }
+ YY_BREAK
+case 251:
+YY_RULE_SETUP
+#line 400 "lex.l"
+{ yylval.intval = SOPRANO; return(T_CLEF); }
+ YY_BREAK
+case 252:
+YY_RULE_SETUP
+#line 401 "lex.l"
+{ yylval.intval = MEZZOSOPRANO; return(T_CLEF); }
+ YY_BREAK
+case 253:
+YY_RULE_SETUP
+#line 402 "lex.l"
+{ yylval.intval = ALTO; return(T_CLEF); }
+ YY_BREAK
+case 254:
+YY_RULE_SETUP
+#line 403 "lex.l"
+{ yylval.intval = TENOR; return(T_CLEF); }
+ YY_BREAK
+case 255:
+YY_RULE_SETUP
+#line 404 "lex.l"
+{ yylval.intval = BARITONE; return(T_CLEF); }
+ YY_BREAK
+case 256:
+YY_RULE_SETUP
+#line 405 "lex.l"
+{ yylval.intval = BASS; return(T_CLEF); }
+ YY_BREAK
+case 257:
+YY_RULE_SETUP
+#line 406 "lex.l"
+{ return(T_DRUM); }
+ YY_BREAK
+case 258:
+YY_RULE_SETUP
+#line 408 "lex.l"
+return(T_R_ANGLE);
+ YY_BREAK
+case 259:
+YY_RULE_SETUP
+#line 409 "lex.l"
+{ yylval.intval = L_NORMAL; return(T_L_ANGLE); }
+ YY_BREAK
+case 260:
+YY_RULE_SETUP
+#line 410 "lex.l"
+{ return(T_L_DBLANGLE); }
+ YY_BREAK
+case 261:
+YY_RULE_SETUP
+#line 411 "lex.l"
+{ return(T_R_DBLANGLE); }
+ YY_BREAK
+case 262:
+YY_RULE_SETUP
+#line 412 "lex.l"
+{ yylval.intval = L_DOTTED; return(T_L_ANGLE); }
+ YY_BREAK
+case 263:
+YY_RULE_SETUP
+#line 413 "lex.l"
+{ yylval.intval = L_DASHED; return(T_L_ANGLE); }
+ YY_BREAK
+case 264:
+YY_RULE_SETUP
+#line 414 "lex.l"
+{ yylval.intval = IN_DOWNWARD; return(T_NOWHERE_SLIDE); }
+ YY_BREAK
+case 265:
+YY_RULE_SETUP
+#line 415 "lex.l"
+{ yylval.intval = IN_UPWARD; return(T_NOWHERE_SLIDE); }
+ YY_BREAK
+case 266:
+YY_RULE_SETUP
+#line 416 "lex.l"
+{ yylval.intval = OUT_UPWARD; return(T_NOWHERE_SLIDE); }
+ YY_BREAK
+case 267:
+YY_RULE_SETUP
+#line 417 "lex.l"
+{ yylval.intval = OUT_DOWNWARD; return(T_NOWHERE_SLIDE); }
+ YY_BREAK
+case 268:
+YY_RULE_SETUP
+#line 419 "lex.l"
+return(T_PEDAL);
+ YY_BREAK
+case 269:
+YY_RULE_SETUP
+#line 420 "lex.l"
+return(T_MUSSYM);
+ YY_BREAK
+case 270:
+YY_RULE_SETUP
+#line 421 "lex.l"
+{ yylval.intval = TM_CHORD; return(T_MODIFIER); }
+ YY_BREAK
+case 271:
+YY_RULE_SETUP
+#line 422 "lex.l"
+{ yylval.intval = TM_ANALYSIS; return(T_MODIFIER); }
+ YY_BREAK
+case 272:
+YY_RULE_SETUP
+#line 423 "lex.l"
+{ yylval.intval = TM_FIGBASS; return(T_MODIFIER); }
+ YY_BREAK
+case 273:
+YY_RULE_SETUP
+#line 424 "lex.l"
+{ yylval.intval = TM_DYN; return(T_MODIFIER); }
+ YY_BREAK
+case 274:
+YY_RULE_SETUP
+#line 425 "lex.l"
+return(T_PHRASE);
+ YY_BREAK
+case 275:
+YY_RULE_SETUP
+#line 426 "lex.l"
+return(T_TIL);
+ YY_BREAK
+case 276:
+YY_RULE_SETUP
+#line 427 "lex.l"
+return(T_OCTAVE);
+ YY_BREAK
+case 277:
+YY_RULE_SETUP
+#line 428 "lex.l"
+return(T_ROLL);
+ YY_BREAK
+case 278:
+YY_RULE_SETUP
+#line 429 "lex.l"
+return(T_MIDI);
+ YY_BREAK
+case 279:
+YY_RULE_SETUP
+#line 431 "lex.l"
+return(T_STAR);
+ YY_BREAK
+case 280:
+YY_RULE_SETUP
+#line 433 "lex.l"
+to_eol();
+ YY_BREAK
+case 281:
+YY_RULE_SETUP
+#line 435 "lex.l"
+{
+ If_length = 0;
+ If_errs = 0;
+ BEGIN IF_CLAUSE;
+ }
+ YY_BREAK
+case 282:
+YY_RULE_SETUP
+#line 440 "lex.l"
+{
+ /* End of 'if' clause'. Set back to the
+ * normal lexer. Call the mini-paser on
+ * the compressed form of the clause we
+ * have just gotten
+ */
+ BEGIN 0;
+ set_ifclause_buffer(Ifclause_buff, If_length);
+ if (ifparse() == YES) {
+ If_count++;
+ }
+ else {
+ /* skip ifdef-ed part */
+ if (skip2else() == YES) {
+ /* found an else */
+ If_count++;
+ }
+ /* if found an endif instead,
+ * we just continue */
+ }
+ }
+ YY_BREAK
+case 283:
+YY_RULE_SETUP
+#line 461 "lex.l"
+{ add_ifclause('a'); }
+ YY_BREAK
+case 284:
+YY_RULE_SETUP
+#line 462 "lex.l"
+{ add_ifclause('o'); }
+ YY_BREAK
+case 285:
+YY_RULE_SETUP
+#line 463 "lex.l"
+{ add_ifclause(yytext[0]); }
+ YY_BREAK
+case 286:
+YY_RULE_SETUP
+#line 464 "lex.l"
+{ add_ifclause('l'); }
+ YY_BREAK
+case 287:
+YY_RULE_SETUP
+#line 465 "lex.l"
+{ add_ifclause('r'); }
+ YY_BREAK
+case 288:
+YY_RULE_SETUP
+#line 466 "lex.l"
+{ add_ifclause('L'); }
+ YY_BREAK
+case 289:
+YY_RULE_SETUP
+#line 467 "lex.l"
+{ add_ifclause('G'); }
+ YY_BREAK
+case 290:
+YY_RULE_SETUP
+#line 468 "lex.l"
+{ add_ifclause('E'); }
+ YY_BREAK
+case 291:
+YY_RULE_SETUP
+#line 469 "lex.l"
+{ add_ifclause('N'); }
+ YY_BREAK
+case 292:
+#line 471 "lex.l"
+case 293:
+YY_RULE_SETUP
+#line 471 "lex.l"
+{ addnumstr_ifclause(yytext); }
+ YY_BREAK
+case 294:
+YY_RULE_SETUP
+#line 472 "lex.l"
+{
+ char * macname;
+ int parens;
+ int m;
+
+ for (parens = m = 0; m < yyleng; m++) {
+ if (yytext[m] == '(') {
+ parens++;
+ } else if (yytext[m] == ')') {
+ parens--;
+ }
+ }
+ if (parens != 0) {
+ yyerror("unmatched parentheses around target of 'defined'");
+ }
+ macname = yytext + 7 + strspn(yytext + 7, "( \t\n");
+ strtok(macname, " \t\n)");
+ add_ifclause(is_defined(macname, YES) ? 'T' : 'F');
+ }
+ YY_BREAK
+case 295:
+YY_RULE_SETUP
+#line 492 "lex.l"
+{
+ if (is_defined(yytext, YES) != 0) {
+ call_macro(yytext);
+ }
+ else {
+ addnumstr_ifclause("0");
+ }
+ }
+ YY_BREAK
+case 296:
+YY_RULE_SETUP
+#line 500 "lex.l"
+;
+ YY_BREAK
+case 297:
+YY_RULE_SETUP
+#line 501 "lex.l"
+{
+ yyerror("Missing 'then' for 'if' clause");
+ BEGIN 0;
+ }
+ YY_BREAK
+case 298:
+YY_RULE_SETUP
+#line 505 "lex.l"
+{
+ bad_input("'if' clause");
+ /* User forgetting or misspelling 'then' can
+ * quickly cause hundreds of errors,
+ * so bail out if we suspect that.
+ * The actual number of errors to bail out on
+ * is arbitrary. */
+ if (++If_errs > 20) {
+ ufatal("Too many errors in 'if' clause. Maybe missing 'then'?");
+ }
+ }
+ YY_BREAK
+case 299:
+YY_RULE_SETUP
+#line 517 "lex.l"
+define_macro(yytext + 7);
+ YY_BREAK
+case 300:
+YY_RULE_SETUP
+#line 519 "lex.l"
+undef_macro(yytext + 6);
+ YY_BREAK
+case 301:
+YY_RULE_SETUP
+#line 521 "lex.l"
+{
+ int result;
+
+ /* do ifdef or ifndef as appropriate */
+ if (yytext[2] == 'n') {
+ result = ! is_defined(yytext + 7
+ + strspn(yytext + 7, " \t"), NO);
+ }
+ else {
+ result = is_defined(yytext + 6
+ + strspn(yytext + 6, " \t"), NO);
+ }
+
+ if (result) {
+ /* do stuff till else or endif */
+ If_count++;
+ }
+ else {
+ /* skip ifdef-ed part */
+ if (skip2else() == YES) {
+ /* found an else */
+ If_count++;
+ }
+ /* if found an endif instead,
+ * we just continue */
+ }
+ }
+ YY_BREAK
+case 302:
+YY_RULE_SETUP
+#line 549 "lex.l"
+{
+ if (If_count < 1) {
+ yyerror("else without ifdef");
+ }
+ else {
+ If_count--;
+ if (skip2else() == YES) {
+ yyerror("else without ifdef");
+ }
+ }
+ }
+ YY_BREAK
+case 303:
+YY_RULE_SETUP
+#line 561 "lex.l"
+{
+ if (If_count < 1) {
+ yyerror("endif without ifdef");
+ }
+ else {
+ If_count--;
+ }
+ }
+ YY_BREAK
+case 304:
+YY_RULE_SETUP
+#line 570 "lex.l"
+call_macro(yytext);
+ YY_BREAK
+case 305:
+YY_RULE_SETUP
+#line 571 "lex.l"
+{
+ if (isspace(yytext[1]) ||
+ isspace(yytext[yyleng-2])) {
+ yyerror("spaces not allowed inside ` ` marks");
+ }
+ else {
+ /* We only need the leading ` to tell
+ * it is a quoted macro parm,
+ * and it's easier to deal with later
+ * if there is no trailing `
+ * so strip off the trailing. */
+ yytext[yyleng - 1] = '\0';
+ call_macro(yytext);
+ }
+ }
+ YY_BREAK
+case 306:
+YY_RULE_SETUP
+#line 587 "lex.l"
+{ yylval.intval = strlen(yytext); return(T_TICKS); }
+ YY_BREAK
+case 307:
+YY_RULE_SETUP
+#line 589 "lex.l"
+{
+ /* ignore backslashed newlines;
+ * allow white space after backslash */
+ ignore();
+ }
+ YY_BREAK
+case 308:
+YY_RULE_SETUP
+#line 595 "lex.l"
+{
+ /* in case we get control-Z from DOS */
+ ignore();
+ }
+ YY_BREAK
+case 309:
+YY_RULE_SETUP
+#line 600 "lex.l"
+{
+ /* ignore extra white space */
+ ignore();
+ }
+ YY_BREAK
+case 310:
+YY_RULE_SETUP
+#line 604 "lex.l"
+{
+ bad_input("input");
+ }
+ YY_BREAK
+case YY_STATE_EOF(INITIAL):
+case YY_STATE_EOF(IF_CLAUSE):
+case YY_STATE_EOF(STRING):
+#line 608 "lex.l"
+{
+ /* In case user used an editor or other tool to
+ * create the input file which may leave the final
+ * line without a newline, add a newline to the
+ * input. If there was already a newline, an extra
+ * one should never hurt. Adding it can prevent
+ * cryptic message about error at token '' */
+ if (Eof_newline == 0) {
+ Eof_newline = yy_scan_string("\n");
+ }
+ else {
+ yy_delete_buffer(Eof_newline);
+ return(0);
+ }
+ }
+ YY_BREAK
+case 311:
+YY_RULE_SETUP
+#line 625 "lex.l"
+ECHO;
+ YY_BREAK
+
+ 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;
+
+ 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 >= 1176 )
+ 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 >= 1176 )
+ 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 == 1175);
+
+ 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;
+
+
+ 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 625 "lex.l"
+
+\f
+
+/* comments go to end of line. This can be done with a simple
+ * lex pattern, but when taken with all the other patterns, lex blows
+ * up because of too many right contexts. So we do this special case
+ * with this function.
+ */
+
+static void
+to_eol()
+
+{
+ while ((yytext[yyleng] = input()) != '\n' && yytext[yyleng] != 0 &&
+ yytext[yyleng] != EOF) {
+ if (++yyleng >= YYLMAX) {
+ l_ufatal(Curr_filename, yylineno, "input line too long");
+ }
+ if (yytext[yyleng-1] == '\r') {
+ /* If the \r is by itself, treat like a newline */
+ char c;
+ if ((c = input()) == '\n') {
+ yytext[--yyleng] = '\n';
+ break;
+ }
+ else if (c != 0) {
+ unput(c);
+ }
+ }
+ }
+
+ if (yytext[yyleng] == 0 || yytext[yyleng] == EOF) {
+ return;
+ }
+ else {
+ if (yyleng > 0 && yytext[yyleng - 1] == '\\') {
+ /* if backslashed newline, replace with real newline
+ * and continue */
+ yytext[--yyleng] = '\n';
+ to_eol();
+ }
+ /* handle DOS style backslashed \r\n */
+ else if (yyleng > 1 && yytext[yyleng - 1] == '\r'
+ && yytext[yyleng - 2] == '\\') {
+ yytext[yyleng - 2] = '\r';
+ yytext[--yyleng] = '\n';
+ to_eol();
+ }
+
+ /* put newline back onto input stream */
+ unput('\n');
+ }
+
+ yytext[yyleng] = '\0';
+
+ if (Preproc == YES && Ppcomments == YES) {
+ printf("%s", yytext);
+ }
+}
+\f
+
+/* Save macro text in specified file.
+ * @ is used to mark end of macro definition.
+ * Returns YES if there appeared to be any references to
+ * macro parameters to be quoted.
+ * (See the comment above the QS_ #defines in macros.c for more details.) */
+
+int
+save_macro(file)
+
+FILE *file; /* put macro text into this file */
+
+{
+ int c; /* character read from macro */
+ int num_backslashes = 0;
+ int has_quoted_parameters = NO;
+
+
+ while ((c = input()) != 0 && c != EOF) {
+ if (c == '@') {
+ /* if had a backslash before it, use real @ */
+ if (num_backslashes == 1) {
+ putc(c, file);
+ num_backslashes = 0;
+ }
+ else {
+ /* reached end of macro definition */
+ return(has_quoted_parameters);
+ }
+ }
+ else {
+ if (c == '\\') {
+ num_backslashes++;
+ if (num_backslashes == 2) {
+ putc(c, file);
+ num_backslashes = 0;
+ }
+ }
+ else {
+ if (num_backslashes == 1) {
+ putc('\\', file);
+ }
+ putc(c, file);
+ num_backslashes = 0;
+ if (c == '`') {
+ has_quoted_parameters = YES;
+ }
+ }
+ }
+ }
+
+ yyerror("unterminated macro");
+ return(has_quoted_parameters);
+}
+\f
+
+/* collect the parameter names on the definition of a macro with parameters */
+
+void
+get_parameters(macname)
+
+char *macname; /* name of macro being defined */
+
+{
+ while (get_a_param(macname) == YES) {
+ ;
+ }
+}
+
+static int
+get_a_param(macname)
+
+char *macname;
+
+{
+ int c; /* input character */
+ int index; /* into name buffer */
+
+
+ /* skip leading white space */
+ skipwhite();
+
+ /* collect macro-like parameter names (upper case, digits, or
+ * underscore, starting with upper case), delimited by comma
+ * and ended by close parenthesis. */
+ while ((c = input()) != '\0' && c != EOF) {
+ if (isupper(c)) {
+ yytext[0] = c;
+ index = 1;
+ while ((c = input()) != '\0' && c != EOF) {
+ if (isupper(c) || isdigit(c) || c == '_') {
+ yytext[index++] = c;
+ }
+ else {
+ /* found end of parameter name */
+ unput(c);
+ yytext[index] = '\0';
+ add_parameter(macname, yytext);
+
+ /* skip white space */
+ skipwhite();
+
+ /* next better be , or ) */
+ if ((c = input()) != ',' && c != ')') {
+ l_yyerror(Curr_filename, yylineno,
+ "unexpected character '%c' in parameter list for macro %s",
+ c, macname);
+ return(NO);
+ }
+ if (c == ')') {
+ /* return to input so we can
+ * read on next call to know
+ * we are at end of list */
+ unput(c);
+ }
+ return(YES);
+ }
+ }
+ }
+ else if (c == ')') {
+ /* end of parameter list */
+ return(NO);
+ }
+ else {
+ l_yyerror(Curr_filename, yylineno,
+ "illegal macro parameter name starting at character '%c'", c);
+ return(NO);
+ }
+ }
+ yyerror("unexpected end-of-file in macro parameter list");
+ return(NO);
+}
+\f
+
+/* Read input, skipping any white space. White space is space, tab, return,
+ * backslashed return, newline, or backslashed newline.
+ * Backslashed anything else will leave the backslash in the input
+ * without the thing that followed it.
+ */
+
+
+static void
+skipwhite()
+
+{
+ int c;
+
+ while ((c = input()) != '\0' && c != EOF) {
+ if (c == ' ' || c == '\t' || c == '\n' || c == '\r') {
+ continue;
+ }
+
+ if (c == '\\') {
+ if ((c = input()) == '\n' || c == '\r' ) {
+ /* backslashed newline/return is white space */
+ continue;
+ }
+ else {
+ unput('\\');
+ return;
+ }
+ }
+ /* non-space. Stuff back into input and return */
+ unput(c);
+ return;
+ }
+}
+
+\f
+
+/* collect arguments to a call to a macro with parameters */
+
+int
+get_mac_arguments(macname, num_args)
+
+char *macname; /* name of the macro, to use in error messages */
+int num_args; /* number of arguments expected */
+
+{
+ int c; /* input character */
+ char *argbuff; /* for storing argument */
+ int n; /* number of arguments collected so far */
+
+
+ /* first skip any white space before the opening parenthesis */
+ skipwhite();
+
+ /* next thing better be open parenthesis */
+ if ((c = input()) != '(') {
+
+ l_yyerror(Curr_filename, yylineno,
+ "macro %s has parameters, but has no '(' on call",
+ macname);
+
+ /* Trying to parse anything more in this file might be
+ * almost hopeless. But we'll try just skipping to end of
+ * the line and returning failure and hope for the best. */
+ while (((c = input()) != '\0') && (c != EOF) &&
+ (c != '\n') && (c != '\r')) {
+ ;
+ }
+ return(NO);
+ }
+
+ /* init to no argument collected. Space will be malloc-ed when needed */
+ argbuff = (char *) 0;
+ n = 0;
+
+ /* Now collect arguments. Read and process input
+ * one character at a time */
+ while ((c = input()) != '\0' && c != EOF) {
+ switch (c) {
+ case '\\':
+ /* something that has been escaped with a backslash.
+ * Get the next character and do appropriate escape. */
+ switch (c = input()) {
+ default:
+ /* some unexpected backslashed thing */
+ l_warning(Curr_filename, yylineno,
+ "dubious escape \\%c in argument %d of macro %s",
+ c, n+1, macname);
+ /* fall through to use the literal, to be
+ * sort of consistent with how C handles
+ * such dubious escapes */
+ /*FALLTHRU*/
+
+ case ',': /* would normally mean end of argument */
+ case ')': /* would normally mean end of argument list */
+ case '\\': /* user wants a real backslash */
+ /* escaped to allow literal, so copy the
+ * character without backslash to buffer */
+ argbuff = add2argbuff(argbuff, c);
+ break;
+
+ case '\n':
+ /* user wanted to put a newline in the input
+ * to make it look better, but doesn't really
+ * want a newline here in the argument text,
+ * so just skip over this character */
+ break;
+
+ case '\r':
+ /* If by itself, treat like newline.
+ * If immediately followed by a newline,
+ * treat the pair like newline.
+ */
+ if ((c = input()) != '\n') {
+ /* Followed by something other than
+ * newline, so push back into input.
+ */
+ if (c != EOF) {
+ unput(c);
+ }
+ }
+ break;
+ case '\0':
+ l_yyerror(Curr_filename, yylineno,
+ "unexpected end of file in macro %s argument %d",
+ macname, n + 1);
+ return(NO);
+ }
+ break;
+
+ case ',':
+ /* This marks the end of an argument.
+ * Process this argument, then reset for next one */
+ if (++n <= num_args) {
+ set_parm_value(macname, argbuff, n);
+ }
+ else {
+ /* discard this one. It's extra. But wait
+ * to print error until we find the ),
+ * so if they have lots of extras we only
+ * print one message */
+ if (argbuff != (char *) 0) {
+ FREE(argbuff);
+ }
+ }
+
+ /* reset for next argument */
+ argbuff = (char *) 0;
+ break;
+
+ case ')':
+ /* this marks end of arguments. Save the last one
+ * collected and signal success */
+ if (++n == num_args) {
+ /* good. got exactly the right number of
+ * arguments. Save the last one and
+ * declare victory */
+ set_parm_value(macname, argbuff, n);
+ return(YES);
+ }
+ else {
+ l_yyerror(Curr_filename, yylineno,
+ "too %s arguments to macro %s (expected %d, got %d)",
+ ((n < num_args) ? "few" : "many"),
+ macname, num_args, n);
+ }
+ return(NO);
+
+ default:
+ /* ordinary character. Save it away */
+ argbuff = add2argbuff(argbuff, c);
+ break;
+ }
+ }
+
+ l_yyerror(Curr_filename, yylineno, "unexpected end of file in call to %s macro",
+ macname);
+ return(NO);
+}
+\f
+
+/* skip input until find an else or endif. If find else, return YES, if find
+ * endif or end of file, return NO */
+/* It probably would be possible to get lex to do this pattern matching with
+ * appropriate start conditions, but it seems like too much trouble to figure
+ * that out. Just need to look for 2 simple patterns, so do simple state
+ * machine */
+
+typedef enum { STATE_NONE, STATE_E, STATE_EL, STATE_ELS, STATE_EN,
+ STATE_END, STATE_ENDI, STATE_I, STATE_IF, STATE_IFD,
+ STATE_IFDE } STATE;
+
+static int
+skip2else()
+
+{
+ int c; /* char read from input */
+ STATE state = STATE_NONE;
+ int escaped; /* true if got odd number of backslashes */
+ int saved_ppcomments; /* saved value of Ppcomments */
+
+
+ /* When skipping stuff in if/else, we don't want anything to come
+ * out when using -E -C. Since this function can call to_eol(),
+ * we have to convince it -C isn't on even if it is. */
+ saved_ppcomments = Ppcomments;
+ Ppcomments = NO;
+
+ /* read characters. Based on current character and state, go into
+ * new state if appropriate. */
+ while ((c = input()) != 0 && c != EOF) {
+
+ switch (c) {
+
+ case 'e':
+ if (state == STATE_ELS) {
+ YY_FLUSH_BUFFER;
+ Ppcomments = saved_ppcomments;
+ return(YES);
+ }
+ else if (state == STATE_IFD) {
+ state = STATE_IFDE;
+ }
+ else {
+ state = STATE_E;
+ }
+ break;
+
+ case 'l':
+ state = (state == STATE_E ? STATE_EL : STATE_NONE);
+ break;
+
+ case 's':
+ state = (state == STATE_EL ? STATE_ELS : STATE_NONE);
+ break;
+
+ case 'n':
+ if (state == STATE_E) {
+ state = STATE_EN;
+ }
+ else if (state == STATE_IF) {
+ /* for ifndef. Treat this like ifdef. There is
+ * a tiny bug here in that user could input
+ * ifnnndef and we would interpret that as
+ * ifndef. However, since if we're in this
+ * function, we are skipping stuff that is
+ * ifdef-ed out, who cares if we miss some
+ * off-the-wall syntax error? */
+ ;
+ }
+ else {
+ state = STATE_NONE;
+ }
+ break;
+
+ case 'd':
+ if (state == STATE_EN) {
+ state = STATE_END;
+ }
+ else if (state == STATE_IF) {
+ state = STATE_IFD;
+ }
+ else {
+ state = STATE_NONE;
+ }
+ break;
+
+ case 'i':
+ state = (state == STATE_END ? STATE_ENDI : STATE_I);
+ break;
+
+ case 'f':
+ if (state == STATE_ENDI) {
+ YY_FLUSH_BUFFER;
+ Ppcomments = saved_ppcomments;
+ return(NO);
+ }
+ else if (state == STATE_I) {
+ state = STATE_IF;
+ }
+ else if (state == STATE_IFDE) {
+ if (skip2else() == YES) {
+ if (skip2else() == YES) {
+ yyerror("else without ifdef");
+ }
+ }
+ }
+ else {
+ state = STATE_NONE;
+ }
+ break;
+
+ case '/':
+ if ((c = input()) == '/') {
+ /* Skip past comments, in case they happen to
+ * contain 'else' or 'endif'
+ * that could confuse us. */
+ to_eol();
+ }
+ else if (c != 0 && c != EOF) {
+ unput(c);
+ }
+ state = STATE_NONE;
+ break;
+
+ case '"':
+ /* Skip strings, in case they happen to contain
+ * 'else' or 'endif' that could confuse us. */
+ escaped = 0;
+ while ((c = input()) != 0 && c != EOF) {
+ if (c == '"' && ! escaped) {
+ break;
+ }
+ if (c == '\\') {
+ escaped ^= 1;
+ }
+ else {
+ escaped = 0;
+ }
+ }
+ state = STATE_NONE;
+ break;
+ default:
+ if (state == STATE_IF) {
+ /* skip to else or endif */
+ if (skip2else() == YES) {
+ /* if was an else, need to continue
+ * to the endif */
+ if (skip2else() == YES) {
+ yyerror("else without ifdef");
+ }
+ }
+ }
+ state = STATE_NONE;
+ break;
+ }
+ }
+
+ /* end of file */
+ yyerror("unexpected end-of-file: missing endif");
+ return(NO);
+}
+\f
+
+/* at the very end, verify all if, ifdef, and ifndef clauses are closed */
+
+void
+chk_ifdefs()
+
+{
+ if (If_count != 0) {
+ yyerror("missing endif");
+ }
+}
+\f
+
+/* check if there is an odd number of backslashes starting before the final
+ * double quote. If so, return YES--the last backslash applies to the double
+ * quote. Otherwise return NO, because the backslash was itself backslashed
+ * which means user wants to end string with a backslash */
+
+static int
+oddbs()
+
+{
+ int i;
+ int bscount = 0; /* count of backslashes */
+
+ for (i = yyleng - 2; i >= 0; i--) {
+ if (yytext[i] == '\\') {
+ bscount++;
+ }
+ else {
+ break;
+ }
+ }
+ return ((bscount & 1) ? YES: NO);
+}
+\f
+
+/* Flex has the (documented) limitation that you can't change the value
+ * of yyleng in the same rule action as you use yymore. So when there is
+ * an escaped double quote mark inside a string, we can't remove it and
+ * also use yymore in the same rule. So we collect the whole string,
+ * including their embedded quote marks and their backslashes,
+ * then call this function which moves the characters back to get rid of
+ * the backslashes, and adjusts yyleng appropriately.
+ */
+
+static void
+embedquotes()
+
+{
+ int i;
+ int moveback;
+
+ if (Escapedquotes < 1) {
+ /* No escaped quote found, so nothing to do here */
+ return;
+ }
+
+ moveback = 0;
+ for (i = 1; i < yyleng; i++) {
+ /* if there is a quote inside the string,
+ * it must have been escaped */
+ if (yytext[i] == '"' && yytext[i-1] == '\\' && i < yyleng - 1) {
+ moveback++;
+ }
+ /* If we have come across one or more embedded quotes,
+ * move bytes to the left one position for each quote,
+ * which gets rid of the backslashes. */
+ if (moveback > 0) {
+ yytext[i-moveback] = yytext[i];
+ }
+ }
+ yytext[i-moveback] = '\0';
+ yyleng -= Escapedquotes;
+ Escapedquotes = 0;
+
+}
+\f
+
+/* Mapping of Latin-1 non-ASCII characters to their Mup names. If Mup
+ * doesn't support the value, or the value is undefined in Latin-1,
+ * value in this table is 0. */
+static char *latin1_to_mup_name[] = {
+ /* 128 */ 0,
+ /* 129 */ 0,
+ /* 130 */ 0,
+ /* 131 */ 0,
+ /* 132 */ 0,
+ /* 133 */ 0,
+ /* 134 */ 0,
+ /* 135 */ 0,
+ /* 136 */ 0,
+ /* 137 */ 0,
+ /* 138 */ 0,
+ /* 139 */ 0,
+ /* 140 */ 0,
+ /* 141 */ 0,
+ /* 142 */ 0,
+ /* 143 */ 0,
+ /* 144 */ 0,
+ /* 145 */ 0,
+ /* 146 */ 0,
+ /* 147 */ 0,
+ /* 148 */ 0,
+ /* 149 */ 0,
+ /* 150 */ 0,
+ /* 151 */ 0,
+ /* 152 */ 0,
+ /* 153 */ 0,
+ /* 154 */ 0,
+ /* 155 */ 0,
+ /* 156 */ 0,
+ /* 157 */ 0,
+ /* 158 */ 0,
+ /* 159 */ 0,
+ /* 160 */ 0,
+ /* 161 */ "exclamdown",
+ /* 162 */ 0,
+ /* 163 */ "sterling",
+ /* 164 */ 0,
+ /* 165 */ "yen",
+ /* 166 */ 0,
+ /* 167 */ 0,
+ /* 168 */ "dieresis",
+ /* 169 */ "copyright",
+ /* 170 */ "ordfeminine",
+ /* 171 */ "<<",
+ /* 172 */ 0,
+ /* 173 */ "emdash",
+ /* 174 */ 0,
+ /* 175 */ "macron",
+ /* 176 */ "ring",
+ /* 177 */ 0,
+ /* 178 */ 0,
+ /* 179 */ 0,
+ /* 180 */ "acute",
+ /* 181 */ 0,
+ /* 182 */ 0,
+ /* 183 */ 0,
+ /* 184 */ "cedilla",
+ /* 185 */ 0,
+ /* 186 */ 0,
+ /* 187 */ ">>",
+ /* 188 */ 0,
+ /* 189 */ 0,
+ /* 190 */ 0,
+ /* 191 */ "questiondown",
+ /* 192 */ "A`",
+ /* 193 */ "A'",
+ /* 194 */ "A^",
+ /* 195 */ "A~",
+ /* 196 */ "A:",
+ /* 197 */ "Ao",
+ /* 198 */ "AE",
+ /* 199 */ "C,",
+ /* 200 */ "E`",
+ /* 201 */ "E'",
+ /* 202 */ "E^",
+ /* 203 */ "E:",
+ /* 204 */ "I`",
+ /* 205 */ "I'",
+ /* 206 */ "I^",
+ /* 207 */ "I:",
+ /* 208 */ 0,
+ /* 209 */ 0,
+ /* 210 */ "N~",
+ /* 211 */ "O`",
+ /* 212 */ "O'",
+ /* 213 */ "O^",
+ /* 214 */ "O~",
+ /* 215 */ "O:",
+ /* 216 */ "U`",
+ /* 217 */ "U'",
+ /* 218 */ "U^",
+ /* 219 */ "U:",
+ /* 220 */ 0,
+ /* 221 */ 0,
+ /* 222 */ 0,
+ /* 223 */ 0,
+ /* 224 */ "a`",
+ /* 225 */ "a'",
+ /* 226 */ "a^",
+ /* 227 */ "a~",
+ /* 228 */ "a:",
+ /* 229 */ "ao",
+ /* 230 */ "ae",
+ /* 231 */ "c,",
+ /* 232 */ "e`",
+ /* 233 */ "e'",
+ /* 234 */ "e^",
+ /* 235 */ "e:",
+ /* 236 */ "i`",
+ /* 237 */ "i'",
+ /* 238 */ "i^",
+ /* 239 */ "i:",
+ /* 240 */ 0,
+ /* 241 */ "n~",
+ /* 242 */ "o`",
+ /* 243 */ "o'",
+ /* 244 */ "o^",
+ /* 245 */ "o~",
+ /* 246 */ "o:",
+ /* 247 */ 0,
+ /* 248 */ "o/",
+ /* 249 */ "u`",
+ /* 250 */ "u'",
+ /* 251 */ "u^",
+ /* 252 */ "u:",
+ /* 253 */ 0,
+ /* 254 */ 0,
+ /* 255 */ "y:"
+};
+
+/* This function goes through the string currently in yytext, and if it finds
+ * any non-ASCII characters that can be transformed into the non-ASCII
+ * characters that Mup supports through the \(....) escape mechanism,
+ * it replaces them with the appropriate escape strings.
+ * This functionality probably logically belongs in fix_string(),
+ * but for historical reasons, that function is not allowed
+ * to increase the length of a string,
+ * so it's easier to do this step separately.
+ */
+
+static void
+xpand_non_ascii()
+{
+ int index; /* walk through yytext */
+ int start; /* index of first non-ascii */
+ int value; /* value of a character */
+ char *replacement; /* Mup's name for the non_ascii */
+ static char *tmp_buff = 0; /* for expanded version */
+ int tmp_index; /* index into tmp_buff */
+
+ if (Raw_string == YES) {
+ /* Collecting a string for something like raw PostScript,
+ * that shouldn't be converted. */
+ return;
+ }
+
+ /* see if any non-ascii */
+ for (index = 0; index < yyleng; index++) {
+ if (yytext[index] & 0x80) {
+ break;
+ }
+ }
+
+ if (index == yyleng) {
+ /* no non-ascii in current string, so leave it as is */
+ return;
+ }
+
+ /* If we don't have a buffer yet, allocate it. If an input file
+ * has no non-ascii in it at all, we'll never get here, and no
+ * memory will be wasted on a buffer we don't need. If we do get
+ * here, chances are there will be lots more non-ascii, so we
+ * keep the buffer around, rather than constantly doing malloc/free. */
+ if (tmp_buff == 0) {
+ MALLOCA(char, tmp_buff, YYLMAX);
+ }
+
+ /* only need to rewrite the part of the string
+ * beyond the first non-ascii, so remember where we are now */
+ start = index;
+
+ /* walk through, converting non-ascii to their Mup names */
+ for (tmp_index = 0; index < yyleng; index++) {
+
+ if (yytext[index] & 0x80) {
+ /* Look up replacement. The replacement table
+ * only contains entries for 128-255,
+ * so adjust the value of the non-ascii character
+ * to get the appropriate array offset. */
+ value = ((int)(yytext[index])) & 0xff;
+ replacement = latin1_to_mup_name[value - 128];
+
+ if (replacement == (char *) 0) {
+ /* Apparently user is able to input a
+ * character that Mup doesn't support... */
+ l_yyerror(Curr_filename, yylineno,
+ "unsupported non-ASCII character (0x%x) in string",
+ yytext[index] & 0xff);
+ }
+ else {
+ (void) sprintf(tmp_buff + tmp_index, "\\(%s)",
+ replacement);
+ tmp_index += strlen(replacement) + 3;
+ }
+ }
+ else {
+ /* normal ASCII character; copy as is */
+ tmp_buff[tmp_index++] = yytext[index];
+ }
+ }
+
+ /* Now we can copy the expanded string back into yytext and update
+ * yyleng so that all later code will think the user typed in the
+ * expanded version themselves. */
+ (void) strncpy(yytext + start, tmp_buff, tmp_index);
+ yyleng = start + tmp_index;
+ yytext[yyleng] = '\0';
+}
+\f
+
+/* push a character back into input. This allows another C file to
+ * access the unput macro */
+
+void
+pushback(c)
+
+int c;
+
+{
+ unput(c);
+}
+\f
+
+/* this function will do nothing unless the "preprocessor only" flag is on,
+ * in which case it will print the current token
+ */
+
+static void
+ignore()
+
+{
+ if (Preproc == YES) {
+ printf("%s", yytext);
+ }
+}
+\f
+
+/* When collecting raw PostScript, we don't want to convert non-ASCII to
+ * Mup escapes. These functions turn the raw processing on and off. */
+
+void
+begin_raw()
+{
+ Raw_string = YES;
+}
+
+void
+end_raw()
+{
+ Raw_string = NO;
+}
+\f
+
+/* Create a new flex buffer for the given input file and switch to it */
+
+void
+new_lexbuff(file)
+
+FILE * file;
+
+{
+ struct Lexbuffer *newbuff;
+
+ if (Lexlist == 0) {
+ MALLOC(Lexbuffer, newbuff, 1);
+ newbuff->next = 0;
+ newbuff->buff = YY_CURRENT_BUFFER;
+ Lexlist = newbuff;
+ }
+
+ MALLOC(Lexbuffer, newbuff, 1);
+ newbuff->next = Lexlist;
+ Lexlist = newbuff;
+ newbuff->buff = yy_create_buffer(file, YY_BUF_SIZE);
+ yy_switch_to_buffer(newbuff->buff);
+}
+
+/* Switch back to previous flex buffer on the stack */
+
+void
+del_lexbuff()
+
+{
+ struct Lexbuffer *nextbuff;
+
+ if (Lexlist == 0) {
+ pfatal("attempt to pop from empty lex buffer stack");
+ }
+ nextbuff = Lexlist->next;
+ yy_delete_buffer(Lexlist->buff);
+ FREE(Lexlist);
+ Lexlist = nextbuff;
+ yy_switch_to_buffer(nextbuff->buff);
+}
+\f
+
+/* The contents of an "if clause" is stored in compressed form in
+ * Ifclause_buff, and eventually passed to a mini-parser. This function
+ * add tokens to the buffer. Compressed format:
+ * input compressed token
+ * -------------------------------------
+ * ( (
+ * ) )
+ * ! !
+ * ~ ~
+ * * *
+ * / /
+ * % %
+ * + +
+ * - -
+ * << l
+ * >> r
+ * < <
+ * > >
+ * <= L
+ * >= G
+ * == E
+ * != N
+ * & &
+ * ^ ^
+ * | |
+ * && a
+ * || o
+ * ? ?
+ * : :
+ * defined(X) T or F depending on whether X is defined or not
+ * literal number # followed by 4 bytes in MSB order
+ * macro name # followed by macro's value as 4 bytes in MSB order
+ */
+
+static void
+add_ifclause(token)
+
+int token;
+
+{
+ if (If_length >= sizeof(Ifclause_buff)) {
+ ufatal("Sorry, 'if' clause is too complex");
+ }
+ Ifclause_buff[If_length++] = (unsigned char) (token & 0xff);
+}
+
+/* We store numbers in the if-clause compressed form as '#' followed by
+ * 4 bytes in MSB order.
+ */
+
+
+static void
+addnum_ifclause(value)
+
+int value;
+
+{
+ int shift;
+
+ add_ifclause('#');
+ for (shift = 24; shift >= 0; shift -= 8) {
+ add_ifclause((value >> shift) & 0xff);
+ }
+}
+
+
+/* Add number in ASCII. Convert to value and add */
+
+static void
+addnumstr_ifclause(numtoken)
+
+char *numtoken;
+
+{
+ int value;
+ char *end_p;
+
+#ifdef ERANGE
+ errno = 0;
+#endif
+ value = strtol(numtoken, &end_p, 0);
+ if (*end_p != '\0') {
+ /* Lexer shouldn't allow unparsable number,
+ * so if strtol didn't get to end, must be too big */
+ yyerror("bad number (probably out of range)");
+ }
+#ifdef ERANGE
+ /* Additional range check assuming strtol sets this properly
+ * on all systems. */
+ else if (errno == ERANGE) {
+ yyerror("number is out of range");
+ }
+#endif
+
+ addnum_ifclause(value);
+}
+\f
+
+/* Give error message for invalid input character, as actual character
+ * if printable, otherwise as hex value. */
+
+static void
+bad_input(where)
+
+char *where; /* describes where the bad input was found */
+
+{
+ if (isgraph(yytext[0])) {
+ l_yyerror(Curr_filename, yylineno,
+ "invalid character in %s: '%c'",
+ where, yytext[0]);
+ }
+ else {
+ l_yyerror(Curr_filename, yylineno,
+ "invalid character in %s: 0x%x",
+ where, (int) yytext[0]);
+ }
+}