-/* A lexical scanner for NetHack generated by flex */
+/* A lexical scanner generated by flex */
/* Scanner skeleton version:
- * flexhack.skl 3.3.0 (from .../flex/RCS/flex.skl,v 2.85 95/04/24 10:48:47)
+ * $Header: /home/daffy/u0/vern/flex/RCS/flex.skl,v 2.91 96/09/10 16:58:48 vern Exp $
*/
-#define FLEXHACK_SCANNER
+
+#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 5
-#include "config.h"
-#define yyconst const /* some code inserted by flex will refer to yyconst */
+#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
#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_NEW_FILE yyrestart( yyin )
#define YY_END_OF_BUFFER_CHAR 0
#define EOB_ACT_END_OF_FILE 1
#define EOB_ACT_LAST_MATCH 2
-/* Return all but the first 'n' matched characters back to the input stream.
+/* 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.
*/
-#define yyless(n) \
- do { \
- /* Undo effects of setting up yytext. */ \
- *yy_cp = yy_hold_char; \
- 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)
+/* 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
*/
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;
+
+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.
- */
+ /* 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;
*/
#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 */
+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 */
+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 FDECL(yyrestart, (FILE *));
+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 )
-void FDECL(yy_switch_to_buffer, (YY_BUFFER_STATE));
-void NDECL(yy_load_buffer_state);
-YY_BUFFER_STATE FDECL(yy_create_buffer, (FILE *, int));
-void FDECL(yy_delete_buffer, (YY_BUFFER_STATE));
-void FDECL(yy_init_buffer, (YY_BUFFER_STATE, FILE *));
-void FDECL(yy_flush_buffer, (YY_BUFFER_STATE));
-#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 genericptr_t FDECL(yy_flex_alloc, (yy_size_t));
-static genericptr_t FDECL(yy_flex_realloc2, (genericptr_t, yy_size_t, int));
-static void FDECL(yy_flex_free, (genericptr_t));
+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_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_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)
extern char *yytext;
#define yytext_ptr yytext
-static yy_state_type NDECL(yy_get_previous_state);
-static yy_state_type FDECL(yy_try_NUL_trans, (yy_state_type));
-static int NDECL(yy_get_next_buffer);
-static void FDECL(yy_fatal_error, (const char *));
+static yy_state_type yy_get_previous_state YY_PROTO(( void ));
+static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));
+static int yy_get_next_buffer YY_PROTO(( void ));
+static void yy_fatal_error YY_PROTO(( yyconst char msg[] ));
/* Done after the current pattern has been matched and before the
* corresponding action - sets up yytext.
*/
-#define YY_DO_BEFORE_ACTION \
- yytext_ptr = yy_bp; \
- yyleng = (int) (yy_cp - yy_bp); \
- yy_hold_char = *yy_cp; \
- *yy_cp = '\0'; \
- yy_c_buf_p = yy_cp;
+#define YY_DO_BEFORE_ACTION \
+ yytext_ptr = yy_bp; \
+ yyleng = (int) (yy_cp - yy_bp); \
+ yy_hold_char = *yy_cp; \
+ *yy_cp = '\0'; \
+ yy_c_buf_p = yy_cp;
#define YY_NUM_RULES 35
#define YY_END_OF_BUFFER 36
-static yyconst short int yy_accept[196] = {
- 0, 0, 0, 36, 34, 33, 32, 34, 34, 29, 34, 34, 34, 34, 34, 34, 34,
- 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 33, 32, 0, 30,
- 29, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 2, 0, 31, 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, 0, 3, 0, 0, 0, 0, 0, 0, 0,
-
- 0, 0, 0, 14, 0, 0, 0, 0, 0, 0, 4, 0, 25, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 6, 0, 0, 0, 5, 0, 0, 23, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 20, 0, 0, 0, 0, 8, 0, 0, 0, 0,
- 0, 0, 1, 0, 0, 0, 0, 0, 22, 15, 0, 21, 7, 19, 0, 0, 0,
- 0, 0, 0, 13, 0, 0, 0, 26, 16, 0, 0, 12, 0, 0, 0, 11, 9,
- 0, 17, 18, 0, 27, 0, 28, 24, 10, 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, 1, 1, 1, 1, 1, 1, 2, 1, 5, 6, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 7, 1, 1, 7, 7, 7, 7, 7, 7, 7, 7, 7,
- 7, 1, 1, 1, 1, 1, 1, 1, 8, 9, 10, 11, 12, 13, 14, 15, 16, 1, 1,
- 17, 18, 19, 20, 21, 1, 22, 23, 24, 25, 26, 1, 1, 27, 1, 1, 1, 1, 1,
- 28, 1, 29, 1, 30, 31,
-
- 32, 33, 34, 35, 36, 1, 37, 38, 39, 40, 41, 42, 1, 43, 44, 45, 46, 1, 47,
- 1, 1, 48, 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, 1, 1, 1, 1
-};
-
-static yyconst int yy_meta[49] = { 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 };
-
-static yyconst short int yy_base[198] = {
- 0, 0, 213, 218, 220, 215, 220, 213, 210, 207, 196, 190, 196, 37, 191,
- 197, 186, 188, 171, 164, 172, 174, 173, 18, 160, 159, 154, 157, 11, 194,
- 194, 220, 190, 220, 187, 177, 184, 183, 167, 170, 164, 161, 166, 174, 155,
- 136, 144, 134, 132, 133, 26, 135, 143, 147, 128, 145, 220, 170, 220, 158,
- 152, 154, 159, 154, 145, 44, 142, 47, 124, 124, 125, 129, 129, 115, 27,
- 121, 113, 111, 120, 115, 116, 134, 142, 132, 128, 137, 121, 130, 129, 125,
- 129, 131, 97, 220, 105, 94, 101, 95, 96, 94, 99,
-
- 105, 101, 89, 220, 95, 112, 114, 51, 112, 107, 220, 110, 114, 111, 106,
- 96, 85, 76, 81, 82, 88, 69, 220, 81, 76, 75, 220, 78, 99, 220,
- 88, 97, 87, 88, 92, 93, 88, 91, 90, 71, 65, 220, 62, 60, 57,
- 56, 220, 59, 54, 74, 84, 65, 66, 220, 70, 65, 70, 60, 68, 220,
- 220, 52, 220, 220, 220, 46, 50, 57, 61, 67, 62, 220, 67, 64, 63,
- 220, 220, 42, 41, 220, 61, 53, 49, 220, 220, 50, 220, 220, 51, 220,
- 46, 220, 220, 220, 220, 62, 60
-
-};
-
-static yyconst short int yy_def[198] = {
- 0, 195, 1, 195, 195, 195, 195, 195, 196, 195, 195, 195, 195, 195, 195,
- 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 197,
- 195, 195, 196, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195,
- 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 197, 195, 195,
- 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195,
- 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195,
- 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195,
-
- 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195,
- 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195,
- 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195,
- 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195,
- 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195,
- 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195,
- 195, 195, 195, 195, 0, 195, 195
-
-};
-
-static yyconst short int yy_nxt[269] = {
- 0, 4, 5, 6, 7, 8, 4, 9, 10, 11, 12, 13, 14, 4, 4,
- 4, 4, 15, 4, 4, 4, 16, 17, 4, 4, 4, 4, 4, 4, 4,
- 18, 19, 4, 4, 4, 20, 4, 4, 21, 22, 23, 4, 24, 25, 26,
- 27, 28, 4, 4, 38, 49, 55, 87, 56, 74, 75, 88, 90, 98, 50,
- 131, 57, 39, 32, 91, 194, 193, 192, 132, 191, 190, 189, 188, 99, 187,
- 186, 185, 184, 183, 182, 181, 180, 179, 178, 177, 176, 175, 174, 173, 172,
- 171, 170, 169, 168, 167, 166, 165, 164, 163, 162, 161,
-
- 160, 159, 158, 157, 156, 155, 154, 153, 152, 151, 150, 149, 148, 147, 146,
- 145, 144, 143, 142, 141, 140, 139, 138, 137, 136, 135, 134, 133, 130, 129,
- 128, 127, 126, 125, 124, 123, 122, 121, 120, 119, 118, 117, 116, 115, 114,
- 113, 112, 111, 110, 109, 108, 107, 106, 105, 104, 103, 102, 101, 100, 97,
- 96, 95, 94, 93, 92, 89, 86, 85, 84, 83, 82, 81, 58, 80, 79,
- 78, 77, 76, 73, 72, 71, 70, 69, 68, 67, 66, 65, 64, 63, 62,
- 61, 60, 59, 34, 33, 30, 58, 54, 53, 52,
-
- 51, 48, 47, 46, 45, 44, 43, 42, 41, 40, 37, 36, 35, 34, 33,
- 31, 30, 195, 29, 3, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195,
- 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195,
- 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195,
- 195, 195, 195, 195, 195, 195, 195, 195
-};
-
-static yyconst short int yy_chk[269] = {
- 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, 13, 23, 28, 65, 28, 50, 50, 65, 67, 74, 23,
- 108, 197, 13, 196, 67, 191, 189, 186, 108, 183, 182, 181, 179, 74, 178,
- 175, 174, 173, 171, 170, 169, 168, 167, 166, 162, 159, 158, 157, 156, 155,
- 153, 152, 151, 150, 149, 148, 146, 145, 144, 143, 141,
-
- 140, 139, 138, 137, 136, 135, 134, 133, 132, 131, 129, 128, 126, 125, 124,
- 122, 121, 120, 119, 118, 117, 116, 115, 114, 113, 112, 110, 109, 107, 106,
- 105, 103, 102, 101, 100, 99, 98, 97, 96, 95, 94, 92, 91, 90, 89,
- 88, 87, 86, 85, 84, 83, 82, 81, 80, 79, 78, 77, 76, 75, 73,
- 72, 71, 70, 69, 68, 66, 64, 63, 62, 61, 60, 59, 57, 55, 54,
- 53, 52, 51, 49, 48, 47, 46, 45, 44, 43, 42, 41, 40, 39, 38,
- 37, 36, 35, 34, 32, 30, 29, 27, 26, 25,
-
- 24, 22, 21, 20, 19, 18, 17, 16, 15, 14, 12, 11, 10, 9, 8,
- 7, 5, 3, 2, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195,
- 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195,
- 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195,
- 195, 195, 195, 195, 195, 195, 195, 195
-};
+static yyconst short int yy_accept[196] =
+ { 0,
+ 0, 0, 36, 34, 33, 32, 34, 34, 29, 34,
+ 34, 34, 34, 34, 34, 34, 34, 34, 34, 34,
+ 34, 34, 34, 34, 34, 34, 34, 34, 34, 33,
+ 32, 0, 30, 29, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 2, 0, 31, 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, 0, 3, 0, 0, 0, 0, 0, 0, 0,
+
+ 0, 0, 0, 14, 0, 0, 0, 0, 0, 0,
+ 4, 0, 25, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 6, 0, 0, 0, 5, 0, 0, 23,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 20, 0, 0, 0, 0, 8, 0, 0, 0,
+ 0, 0, 0, 1, 0, 0, 0, 0, 0, 22,
+ 15, 0, 21, 7, 19, 0, 0, 0, 0, 0,
+ 0, 13, 0, 0, 0, 26, 16, 0, 0, 12,
+ 0, 0, 0, 11, 9, 0, 17, 18, 0, 27,
+ 0, 28, 24, 10, 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, 1, 1, 1, 1, 1,
+ 1, 2, 1, 5, 6, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 7, 1, 1, 7, 7, 7,
+ 7, 7, 7, 7, 7, 7, 7, 1, 1, 1,
+ 1, 1, 1, 1, 8, 9, 10, 11, 12, 13,
+ 14, 15, 16, 1, 1, 17, 18, 19, 20, 21,
+ 1, 22, 23, 24, 25, 26, 1, 1, 27, 1,
+ 1, 1, 1, 1, 28, 1, 29, 1, 30, 31,
+
+ 32, 33, 34, 35, 36, 1, 37, 38, 39, 40,
+ 41, 42, 1, 43, 44, 45, 46, 1, 47, 1,
+ 1, 48, 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, 1, 1, 1, 1
+ } ;
+
+static yyconst int yy_meta[49] =
+ { 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
+ } ;
+
+static yyconst short int yy_base[198] =
+ { 0,
+ 0, 213, 218, 220, 215, 220, 213, 210, 207, 196,
+ 190, 196, 37, 191, 197, 186, 188, 171, 164, 172,
+ 174, 173, 18, 160, 159, 154, 157, 11, 194, 194,
+ 220, 190, 220, 187, 177, 184, 183, 167, 170, 164,
+ 161, 166, 174, 155, 136, 144, 134, 132, 133, 26,
+ 135, 143, 147, 128, 145, 220, 170, 220, 158, 152,
+ 154, 159, 154, 145, 44, 142, 47, 124, 124, 125,
+ 129, 129, 115, 27, 121, 113, 111, 120, 115, 116,
+ 134, 142, 132, 128, 137, 121, 130, 129, 125, 129,
+ 131, 97, 220, 105, 94, 101, 95, 96, 94, 99,
+
+ 105, 101, 89, 220, 95, 112, 114, 51, 112, 107,
+ 220, 110, 114, 111, 106, 96, 85, 76, 81, 82,
+ 88, 69, 220, 81, 76, 75, 220, 78, 99, 220,
+ 88, 97, 87, 88, 92, 93, 88, 91, 90, 71,
+ 65, 220, 62, 60, 57, 56, 220, 59, 54, 74,
+ 84, 65, 66, 220, 70, 65, 70, 60, 68, 220,
+ 220, 52, 220, 220, 220, 46, 50, 57, 61, 67,
+ 62, 220, 67, 64, 63, 220, 220, 42, 41, 220,
+ 61, 53, 49, 220, 220, 50, 220, 220, 51, 220,
+ 46, 220, 220, 220, 220, 62, 60
+
+ } ;
+
+static yyconst short int yy_def[198] =
+ { 0,
+ 195, 1, 195, 195, 195, 195, 195, 196, 195, 195,
+ 195, 195, 195, 195, 195, 195, 195, 195, 195, 195,
+ 195, 195, 195, 195, 195, 195, 195, 195, 197, 195,
+ 195, 196, 195, 195, 195, 195, 195, 195, 195, 195,
+ 195, 195, 195, 195, 195, 195, 195, 195, 195, 195,
+ 195, 195, 195, 195, 195, 195, 197, 195, 195, 195,
+ 195, 195, 195, 195, 195, 195, 195, 195, 195, 195,
+ 195, 195, 195, 195, 195, 195, 195, 195, 195, 195,
+ 195, 195, 195, 195, 195, 195, 195, 195, 195, 195,
+ 195, 195, 195, 195, 195, 195, 195, 195, 195, 195,
+
+ 195, 195, 195, 195, 195, 195, 195, 195, 195, 195,
+ 195, 195, 195, 195, 195, 195, 195, 195, 195, 195,
+ 195, 195, 195, 195, 195, 195, 195, 195, 195, 195,
+ 195, 195, 195, 195, 195, 195, 195, 195, 195, 195,
+ 195, 195, 195, 195, 195, 195, 195, 195, 195, 195,
+ 195, 195, 195, 195, 195, 195, 195, 195, 195, 195,
+ 195, 195, 195, 195, 195, 195, 195, 195, 195, 195,
+ 195, 195, 195, 195, 195, 195, 195, 195, 195, 195,
+ 195, 195, 195, 195, 195, 195, 195, 195, 195, 195,
+ 195, 195, 195, 195, 0, 195, 195
+
+ } ;
+
+static yyconst short int yy_nxt[269] =
+ { 0,
+ 4, 5, 6, 7, 8, 4, 9, 10, 11, 12,
+ 13, 14, 4, 4, 4, 4, 15, 4, 4, 4,
+ 16, 17, 4, 4, 4, 4, 4, 4, 4, 18,
+ 19, 4, 4, 4, 20, 4, 4, 21, 22, 23,
+ 4, 24, 25, 26, 27, 28, 4, 4, 38, 49,
+ 55, 87, 56, 74, 75, 88, 90, 98, 50, 131,
+ 57, 39, 32, 91, 194, 193, 192, 132, 191, 190,
+ 189, 188, 99, 187, 186, 185, 184, 183, 182, 181,
+ 180, 179, 178, 177, 176, 175, 174, 173, 172, 171,
+ 170, 169, 168, 167, 166, 165, 164, 163, 162, 161,
+
+ 160, 159, 158, 157, 156, 155, 154, 153, 152, 151,
+ 150, 149, 148, 147, 146, 145, 144, 143, 142, 141,
+ 140, 139, 138, 137, 136, 135, 134, 133, 130, 129,
+ 128, 127, 126, 125, 124, 123, 122, 121, 120, 119,
+ 118, 117, 116, 115, 114, 113, 112, 111, 110, 109,
+ 108, 107, 106, 105, 104, 103, 102, 101, 100, 97,
+ 96, 95, 94, 93, 92, 89, 86, 85, 84, 83,
+ 82, 81, 58, 80, 79, 78, 77, 76, 73, 72,
+ 71, 70, 69, 68, 67, 66, 65, 64, 63, 62,
+ 61, 60, 59, 34, 33, 30, 58, 54, 53, 52,
+
+ 51, 48, 47, 46, 45, 44, 43, 42, 41, 40,
+ 37, 36, 35, 34, 33, 31, 30, 195, 29, 3,
+ 195, 195, 195, 195, 195, 195, 195, 195, 195, 195,
+ 195, 195, 195, 195, 195, 195, 195, 195, 195, 195,
+ 195, 195, 195, 195, 195, 195, 195, 195, 195, 195,
+ 195, 195, 195, 195, 195, 195, 195, 195, 195, 195,
+ 195, 195, 195, 195, 195, 195, 195, 195
+ } ;
+
+static yyconst short int yy_chk[269] =
+ { 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, 13, 23,
+ 28, 65, 28, 50, 50, 65, 67, 74, 23, 108,
+ 197, 13, 196, 67, 191, 189, 186, 108, 183, 182,
+ 181, 179, 74, 178, 175, 174, 173, 171, 170, 169,
+ 168, 167, 166, 162, 159, 158, 157, 156, 155, 153,
+ 152, 151, 150, 149, 148, 146, 145, 144, 143, 141,
+
+ 140, 139, 138, 137, 136, 135, 134, 133, 132, 131,
+ 129, 128, 126, 125, 124, 122, 121, 120, 119, 118,
+ 117, 116, 115, 114, 113, 112, 110, 109, 107, 106,
+ 105, 103, 102, 101, 100, 99, 98, 97, 96, 95,
+ 94, 92, 91, 90, 89, 88, 87, 86, 85, 84,
+ 83, 82, 81, 80, 79, 78, 77, 76, 75, 73,
+ 72, 71, 70, 69, 68, 66, 64, 63, 62, 61,
+ 60, 59, 57, 55, 54, 53, 52, 51, 49, 48,
+ 47, 46, 45, 44, 43, 42, 41, 40, 39, 38,
+ 37, 36, 35, 34, 32, 30, 29, 27, 26, 25,
+
+ 24, 22, 21, 20, 19, 18, 17, 16, 15, 14,
+ 12, 11, 10, 9, 8, 7, 5, 3, 2, 195,
+ 195, 195, 195, 195, 195, 195, 195, 195, 195, 195,
+ 195, 195, 195, 195, 195, 195, 195, 195, 195, 195,
+ 195, 195, 195, 195, 195, 195, 195, 195, 195, 195,
+ 195, 195, 195, 195, 195, 195, 195, 195, 195, 195,
+ 195, 195, 195, 195, 195, 195, 195, 195
+ } ;
static yy_state_type yy_last_accepting_state;
static char *yy_last_accepting_cpos;
#define REJECT reject_used_but_not_detected
#define yymore() yymore_used_but_not_detected
#define YY_MORE_ADJ 0
+#define YY_RESTORE_YY_MORE_OFFSET
char *yytext;
+#line 1 "dgn_comp.l"
#define INITIAL 0
-/* NetHack 3.6 dgn_comp.l $Date: 2009/05/11 22:53:51 $ $Revision: 1.10 $ */
+#line 2 "dgn_comp.l"
+/* NetHack 3.6 dgn_comp.l $NHDT-Date: 1431196861 2015/05/09 18:41:01 $ $NHDT-Branch: master $:$NHDT-Revision: 1.11 $ */
+/* NetHack 3.6 dgn_comp.l $Date: 2009/05/06 10:54:26 $ $Revision: 1.7 $ */
/* SCCS Id: @(#)dgn_lex.c 3.5 2002/03/27 */
/* Copyright (c) 1989 by Jean-Christophe Collet */
/* Copyright (c) 1990 by M. Stephenson */
* yyunput is properly declared in flex.skel.
*/
#if !defined(FLEX_SCANNER) && !defined(FLEXHACK_SCANNER)
-int FDECL(yyback, (int *, int));
+int FDECL(yyback, (int *,int));
int NDECL(yylook);
int NDECL(yyinput);
int NDECL(yywrap);
int NDECL(yylex);
-/* Traditional lexes let yyunput() and yyoutput() default to int;
- * newer ones may declare them as void since they don't return
- * values. For even more fun, the lex supplied as part of the
- * newer unbundled compiler for SunOS 4.x adds the void declarations
- * (under __STDC__ or _cplusplus ifdefs -- otherwise they remain
- * int) while the bundled lex and the one with the older unbundled
- * compiler do not. To detect this, we need help from outside --
- * sys/unix/Makefile.utl.
- *
- * Digital UNIX is difficult and still has int in spite of all
- * other signs.
- */
-#if defined(NeXT) || defined(SVR4) || defined(_AIX32)
-#define VOIDYYPUT
-#endif
-#if !defined(VOIDYYPUT) && defined(POSIX_TYPES)
-#if !defined(BOS) && !defined(HISX) && !defined(_M_UNIX) && !defined(VMS)
-#define VOIDYYPUT
-#endif
-#endif
-#if !defined(VOIDYYPUT) && defined(WEIRD_LEX)
-#if defined(SUNOS4) && defined(__STDC__) && (WEIRD_LEX > 1)
-#define VOIDYYPUT
-#endif
-#endif
-#if defined(VOIDYYPUT) && defined(__osf__)
-#undef VOIDYYPUT
-#endif
-#ifdef VOIDYYPUT
+ /* Traditional lexes let yyunput() and yyoutput() default to int;
+ * newer ones may declare them as void since they don't return
+ * values. For even more fun, the lex supplied as part of the
+ * newer unbundled compiler for SunOS 4.x adds the void declarations
+ * (under __STDC__ or _cplusplus ifdefs -- otherwise they remain
+ * int) while the bundled lex and the one with the older unbundled
+ * compiler do not. To detect this, we need help from outside --
+ * sys/unix/Makefile.utl.
+ *
+ * Digital UNIX is difficult and still has int in spite of all
+ * other signs.
+ */
+# if defined(NeXT) || defined(SVR4) || defined(_AIX32)
+# define VOIDYYPUT
+# endif
+# if !defined(VOIDYYPUT) && defined(POSIX_TYPES)
+# if !defined(BOS) && !defined(HISX) && !defined(_M_UNIX) && !defined(VMS)
+# define VOIDYYPUT
+# endif
+# endif
+# if !defined(VOIDYYPUT) && defined(WEIRD_LEX)
+# if defined(SUNOS4) && defined(__STDC__) && (WEIRD_LEX > 1)
+# define VOIDYYPUT
+# endif
+# endif
+# if defined(VOIDYYPUT) && defined(__osf__)
+# undef VOIDYYPUT
+# endif
+# ifdef VOIDYYPUT
void FDECL(yyunput, (int));
void FDECL(yyoutput, (int));
-#else
+# else
int FDECL(yyunput, (int));
int FDECL(yyoutput, (int));
-#endif
-#endif /* !FLEX_SCANNER && !FLEXHACK_SCANNER */
+# endif
+#endif /* !FLEX_SCANNER && !FLEXHACK_SCANNER */
#ifdef FLEX_SCANNER
-#define YY_MALLOC_DECL \
- genericptr_t FDECL(malloc, (size_t)); \
- genericptr_t FDECL(realloc, (genericptr_t, size_t));
+#define YY_MALLOC_DECL \
+ genericptr_t FDECL(malloc, (size_t)); \
+ genericptr_t FDECL(realloc, (genericptr_t,size_t));
#endif
+
void FDECL(init_yyin, (FILE *));
void FDECL(init_yyout, (FILE *));
int nh_line_number = 1;
+#line 565 "lex.yy.c"
+
/* Macros after this point can all be overridden by user definitions in
* section 1.
*/
#ifndef YY_SKIP_YYWRAP
-extern int NDECL(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 FDECL(yyunput, (int, char *));
+static void yyunput YY_PROTO(( int c, char *buf_ptr ));
#endif
#ifndef yytext_ptr
-static void FDECL(yy_flex_strncpy, (char *, const char *, int));
+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
-static int NDECL(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. */
/* 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)
+#define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
#endif
-/* Gets input and stuffs it into "buf". number of characters read, or
- * YY_NULL,
+/* 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");
+#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();" -
/* Report a fatal error. */
#ifndef YY_FATAL_ERROR
-#define YY_FATAL_ERROR(msg) yy_fatal_error(msg)
+#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
#define YY_BREAK break;
#endif
-#define YY_RULE_SETUP \
- if (yyleng > 0) \
- yy_current_buffer->yy_at_bol = (yytext[yyleng - 1] == '\n'); \
- YY_USER_ACTION
+#define YY_RULE_SETUP \
+ if ( yyleng > 0 ) \
+ yy_current_buffer->yy_at_bol = \
+ (yytext[yyleng - 1] == '\n'); \
+ YY_USER_ACTION
-int NDECL(yylex);
-int
-yylex()
-{
- register yy_state_type yy_current_state;
- register char *yy_cp, *yy_bp;
- register int yy_act;
+YY_DECL
+ {
+ register yy_state_type yy_current_state;
+ register char *yy_cp, *yy_bp;
+ register int yy_act;
+
+#line 81 "dgn_comp.l"
- if (yy_init) {
- yy_init = 0;
+#line 721 "lex.yy.c"
+
+ if ( yy_init )
+ {
+ yy_init = 0;
#ifdef YY_USER_INIT
- YY_USER_INIT;
-#endif
-
- if (!yy_start)
- yy_start = 1; /* first start state */
-
- if (!yyin)
- yyin = stdin;
-
- if (!yyout)
- yyout = stdout;
-
- if (!yy_current_buffer)
- yy_current_buffer = yy_create_buffer(yyin, YY_BUF_SIZE);
-
- yy_load_buffer_state();
- }
-
- while (1) /* loops until end-of-file is reached */
- {
- yy_cp = yy_c_buf_p;
-
- /* Support of yytext. */
- *yy_cp = yy_hold_char;
-
- /* yy_bp points to the position in yy_ch_buf of the start of
- * the current run.
- */
- yy_bp = yy_cp;
-
- yy_current_state = yy_start;
- yy_current_state += YY_AT_BOL();
- yy_match:
- do {
- register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
- if (yy_accept[yy_current_state]) {
- yy_last_accepting_state = yy_current_state;
- yy_last_accepting_cpos = yy_cp;
- }
- while (yy_chk[yy_base[yy_current_state] + yy_c]
- != yy_current_state) {
- yy_current_state = (int) yy_def[yy_current_state];
- if (yy_current_state >= 196)
- 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] != 220);
-
- 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
- return (A_DUNGEON);
- YY_BREAK
- case 2:
- YY_RULE_SETUP
- {
- yylval.i = 1;
- return (UP_OR_DOWN);
- }
- YY_BREAK
- case 3:
- YY_RULE_SETUP
- {
- yylval.i = 0;
- return (UP_OR_DOWN);
- }
- YY_BREAK
- case 4:
- YY_RULE_SETUP
- return (ENTRY);
- YY_BREAK
- case 5:
- YY_RULE_SETUP
- return (STAIR);
- YY_BREAK
- case 6:
- YY_RULE_SETUP
- return (NO_UP);
- YY_BREAK
- case 7:
- YY_RULE_SETUP
- return (NO_DOWN);
- YY_BREAK
- case 8:
- YY_RULE_SETUP
- return (PORTAL);
- YY_BREAK
- case 9:
- YY_RULE_SETUP
- return (PROTOFILE);
- YY_BREAK
- case 10:
- YY_RULE_SETUP
- return (DESCRIPTION);
- YY_BREAK
- case 11:
- YY_RULE_SETUP
- return (LEVELDESC);
- YY_BREAK
- case 12:
- YY_RULE_SETUP
- return (ALIGNMENT);
- YY_BREAK
- case 13:
- YY_RULE_SETUP
- return (LEVALIGN);
- YY_BREAK
- case 14:
- YY_RULE_SETUP
- {
- yylval.i = TOWN;
- return (DESCRIPTOR);
- }
- YY_BREAK
- case 15:
- YY_RULE_SETUP
- {
- yylval.i = HELLISH;
- return (DESCRIPTOR);
- }
- YY_BREAK
- case 16:
- YY_RULE_SETUP
- {
- yylval.i = MAZELIKE;
- return (DESCRIPTOR);
- }
- YY_BREAK
- case 17:
- YY_RULE_SETUP
- {
- yylval.i = ROGUELIKE;
- return (DESCRIPTOR);
- }
- YY_BREAK
- case 18:
- YY_RULE_SETUP
- {
- yylval.i = D_ALIGN_NONE;
- return (DESCRIPTOR);
- }
- YY_BREAK
- case 19:
- YY_RULE_SETUP
- {
- yylval.i = D_ALIGN_NONE;
- return (DESCRIPTOR);
- }
- YY_BREAK
- case 20:
- YY_RULE_SETUP
- {
- yylval.i = D_ALIGN_LAWFUL;
- return (DESCRIPTOR);
- }
- YY_BREAK
- case 21:
- YY_RULE_SETUP
- {
- yylval.i = D_ALIGN_NEUTRAL;
- return (DESCRIPTOR);
- }
- YY_BREAK
- case 22:
- YY_RULE_SETUP
- {
- yylval.i = D_ALIGN_CHAOTIC;
- return (DESCRIPTOR);
- }
- YY_BREAK
- case 23:
- YY_RULE_SETUP
- return (BRANCH);
- YY_BREAK
- case 24:
- YY_RULE_SETUP
- return (CHBRANCH);
- YY_BREAK
- case 25:
- YY_RULE_SETUP
- return (LEVEL);
- YY_BREAK
- case 26:
- YY_RULE_SETUP
- return (RNDLEVEL);
- YY_BREAK
- case 27:
- YY_RULE_SETUP
- return (CHLEVEL);
- YY_BREAK
- case 28:
- YY_RULE_SETUP
- return (RNDCHLEVEL);
- YY_BREAK
- case 29:
- YY_RULE_SETUP
- {
- yylval.i = atoi(yytext);
- return (INTEGER);
- }
- YY_BREAK
- case 30:
- YY_RULE_SETUP
- {
- yytext[yyleng - 1] = 0; /* Discard the trailing \" */
- yylval.str = (char *) alloc(strlen(yytext + 1) + 1);
- Strcpy(yylval.str, yytext + 1); /* Discard the first \" */
- return (STRING);
- }
- YY_BREAK
- case 31:
- YY_RULE_SETUP
- {
- nh_line_number++;
- }
- YY_BREAK
- case 32:
- YY_RULE_SETUP
- {
- nh_line_number++;
- }
- YY_BREAK
- case 33:
- YY_RULE_SETUP; /* skip trailing tabs & spaces */
- YY_BREAK
- case 34:
- YY_RULE_SETUP
- {
- return yytext[0];
- }
- YY_BREAK
- case 35:
- YY_RULE_SETUP
- ECHO;
- YY_BREAK
- case YY_STATE_EOF(INITIAL):
- yyterminate();
-
- case YY_END_OF_BUFFER: {
- /* Amount of text matched not including the EOB char. */
- int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1;
-
- /* Undo the effects of YY_DO_BEFORE_ACTION. */
- *yy_cp = yy_hold_char;
-
- 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_USER_INIT;
+#endif
+
+ if ( ! yy_start )
+ yy_start = 1; /* first start state */
+
+ if ( ! yyin )
+ yyin = stdin;
+
+ if ( ! yyout )
+ yyout = stdout;
+
+ if ( ! yy_current_buffer )
+ yy_current_buffer =
+ yy_create_buffer( yyin, YY_BUF_SIZE );
+
+ yy_load_buffer_state();
+ }
+
+ while ( 1 ) /* loops until end-of-file is reached */
+ {
+ yy_cp = yy_c_buf_p;
+
+ /* Support of yytext. */
+ *yy_cp = yy_hold_char;
+
+ /* yy_bp points to the position in yy_ch_buf of the start of
+ * the current run.
+ */
+ yy_bp = yy_cp;
+
+ yy_current_state = yy_start;
+ yy_current_state += YY_AT_BOL();
+yy_match:
+ do
+ {
+ register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
+ if ( yy_accept[yy_current_state] )
+ {
+ yy_last_accepting_state = yy_current_state;
+ yy_last_accepting_cpos = yy_cp;
+ }
+ while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
+ {
+ yy_current_state = (int) yy_def[yy_current_state];
+ if ( yy_current_state >= 196 )
+ 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] != 220 );
+
+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 82 "dgn_comp.l"
+return(A_DUNGEON);
+ YY_BREAK
+case 2:
+YY_RULE_SETUP
+#line 83 "dgn_comp.l"
+{ yylval.i=1; return(UP_OR_DOWN); }
+ YY_BREAK
+case 3:
+YY_RULE_SETUP
+#line 84 "dgn_comp.l"
+{ yylval.i=0; return(UP_OR_DOWN); }
+ YY_BREAK
+case 4:
+YY_RULE_SETUP
+#line 85 "dgn_comp.l"
+return(ENTRY);
+ YY_BREAK
+case 5:
+YY_RULE_SETUP
+#line 86 "dgn_comp.l"
+return(STAIR);
+ YY_BREAK
+case 6:
+YY_RULE_SETUP
+#line 87 "dgn_comp.l"
+return(NO_UP);
+ YY_BREAK
+case 7:
+YY_RULE_SETUP
+#line 88 "dgn_comp.l"
+return(NO_DOWN);
+ YY_BREAK
+case 8:
+YY_RULE_SETUP
+#line 89 "dgn_comp.l"
+return(PORTAL);
+ YY_BREAK
+case 9:
+YY_RULE_SETUP
+#line 90 "dgn_comp.l"
+return(PROTOFILE);
+ YY_BREAK
+case 10:
+YY_RULE_SETUP
+#line 91 "dgn_comp.l"
+return(DESCRIPTION);
+ YY_BREAK
+case 11:
+YY_RULE_SETUP
+#line 92 "dgn_comp.l"
+return(LEVELDESC);
+ YY_BREAK
+case 12:
+YY_RULE_SETUP
+#line 93 "dgn_comp.l"
+return(ALIGNMENT);
+ YY_BREAK
+case 13:
+YY_RULE_SETUP
+#line 94 "dgn_comp.l"
+return(LEVALIGN);
+ YY_BREAK
+case 14:
+YY_RULE_SETUP
+#line 95 "dgn_comp.l"
+{ yylval.i=TOWN ; return(DESCRIPTOR); }
+ YY_BREAK
+case 15:
+YY_RULE_SETUP
+#line 96 "dgn_comp.l"
+{ yylval.i=HELLISH ; return(DESCRIPTOR); }
+ YY_BREAK
+case 16:
+YY_RULE_SETUP
+#line 97 "dgn_comp.l"
+{ yylval.i=MAZELIKE ; return(DESCRIPTOR); }
+ YY_BREAK
+case 17:
+YY_RULE_SETUP
+#line 98 "dgn_comp.l"
+{ yylval.i=ROGUELIKE ; return(DESCRIPTOR); }
+ YY_BREAK
+case 18:
+YY_RULE_SETUP
+#line 99 "dgn_comp.l"
+{ yylval.i=D_ALIGN_NONE ; return(DESCRIPTOR); }
+ YY_BREAK
+case 19:
+YY_RULE_SETUP
+#line 100 "dgn_comp.l"
+{ yylval.i=D_ALIGN_NONE ; return(DESCRIPTOR); }
+ YY_BREAK
+case 20:
+YY_RULE_SETUP
+#line 101 "dgn_comp.l"
+{ yylval.i=D_ALIGN_LAWFUL ; return(DESCRIPTOR); }
+ YY_BREAK
+case 21:
+YY_RULE_SETUP
+#line 102 "dgn_comp.l"
+{ yylval.i=D_ALIGN_NEUTRAL ; return(DESCRIPTOR); }
+ YY_BREAK
+case 22:
+YY_RULE_SETUP
+#line 103 "dgn_comp.l"
+{ yylval.i=D_ALIGN_CHAOTIC ; return(DESCRIPTOR); }
+ YY_BREAK
+case 23:
+YY_RULE_SETUP
+#line 104 "dgn_comp.l"
+return(BRANCH);
+ YY_BREAK
+case 24:
+YY_RULE_SETUP
+#line 105 "dgn_comp.l"
+return(CHBRANCH);
+ YY_BREAK
+case 25:
+YY_RULE_SETUP
+#line 106 "dgn_comp.l"
+return(LEVEL);
+ YY_BREAK
+case 26:
+YY_RULE_SETUP
+#line 107 "dgn_comp.l"
+return(RNDLEVEL);
+ YY_BREAK
+case 27:
+YY_RULE_SETUP
+#line 108 "dgn_comp.l"
+return(CHLEVEL);
+ YY_BREAK
+case 28:
+YY_RULE_SETUP
+#line 109 "dgn_comp.l"
+return(RNDCHLEVEL);
+ YY_BREAK
+case 29:
+YY_RULE_SETUP
+#line 110 "dgn_comp.l"
+{ yylval.i=atoi(yytext); return(INTEGER); }
+ YY_BREAK
+case 30:
+YY_RULE_SETUP
+#line 111 "dgn_comp.l"
+{ yytext[yyleng-1] = 0; /* Discard the trailing \" */
+ yylval.str = (char *) alloc(strlen(yytext+1)+1);
+ Strcpy(yylval.str, yytext+1); /* Discard the first \" */
+ return(STRING); }
+ YY_BREAK
+case 31:
+YY_RULE_SETUP
+#line 115 "dgn_comp.l"
+{ nh_line_number++; }
+ YY_BREAK
+case 32:
+YY_RULE_SETUP
+#line 116 "dgn_comp.l"
+{ nh_line_number++; }
+ YY_BREAK
+case 33:
+YY_RULE_SETUP
+#line 117 "dgn_comp.l"
+; /* skip trailing tabs & spaces */
+ YY_BREAK
+case 34:
+YY_RULE_SETUP
+#line 118 "dgn_comp.l"
+{ return yytext[0]; }
+ YY_BREAK
+case 35:
+YY_RULE_SETUP
+#line 119 "dgn_comp.l"
+ECHO;
+ YY_BREAK
+#line 983 "lex.yy.c"
+case YY_STATE_EOF(INITIAL):
+ yyterminate();
+
+ case YY_END_OF_BUFFER:
+ {
+ /* Amount of text matched not including the EOB char. */
+ int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1;
+
+ /* Undo the effects of YY_DO_BEFORE_ACTION. */
+ *yy_cp = yy_hold_char;
+ YY_RESTORE_YY_MORE_OFFSET
+
+ if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )
+ {
+ /* We're scanning a new file or input source. It's
+ * possible that this happened because the user
+ * just pointed yyin at a new source and called
+ * yylex(). If so, then we have to assure
+ * consistency between yy_current_buffer and our
+ * globals. Here is the right place to do so, because
+ * this is the first action (other than possibly a
+ * back-up) that will match for the new input source.
+ */
+ yy_n_chars = yy_current_buffer->yy_n_chars;
+ yy_current_buffer->yy_input_file = yyin;
+ yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL;
+ }
+
+ /* Note that here we test for yy_c_buf_p "<=" to the position
+ * of the first EOB in the buffer, since yy_c_buf_p will
+ * already have been incremented past the NUL character
+ * (since all states make transitions on EOB to the
+ * end-of-buffer state). Contrast this with the test
+ * in input().
+ */
+ if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
+ { /* This was really a NUL. */
+ yy_state_type yy_next_state;
+
+ yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;
+
+ yy_current_state = yy_get_previous_state();
+
+ /* Okay, we're now positioned to make the NUL
+ * transition. We couldn't have
+ * yy_get_previous_state() go ahead and do it
+ * for us because it doesn't know how to deal
+ * with the possibility of jamming (and we don't
+ * want to build jamming into it because then it
+ * will run more slowly).
+ */
+
+ yy_next_state = yy_try_NUL_trans( yy_current_state );
+
+ yy_bp = yytext_ptr + YY_MORE_ADJ;
+
+ if ( yy_next_state )
+ {
+ /* Consume the NUL. */
+ yy_cp = ++yy_c_buf_p;
+ yy_current_state = yy_next_state;
+ goto yy_match;
+ }
+
+ else
+ {
+ yy_cp = yy_c_buf_p;
+ goto yy_find_action;
+ }
+ }
+
+ else switch ( yy_get_next_buffer() )
+ {
+ case EOB_ACT_END_OF_FILE:
+ {
+ yy_did_buffer_switch_on_eof = 0;
+
+ if ( yywrap() )
+ {
+ /* Note: because we've taken care in
+ * yy_get_next_buffer() to have set up
+ * yytext, we can now set up
+ * yy_c_buf_p so that if some total
+ * hoser (like flex itself) wants to
+ * call the scanner after we return the
+ * YY_NULL, it'll still work - another
+ * YY_NULL will get returned.
+ */
+ yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;
+
+ yy_act = YY_STATE_EOF(YY_START);
+ goto do_action;
+ }
+
+ else
+ {
+ if ( ! yy_did_buffer_switch_on_eof )
+ YY_NEW_FILE;
+ }
+ break;
+ }
+
+ case EOB_ACT_CONTINUE_SCAN:
+ yy_c_buf_p =
+ yytext_ptr + yy_amount_of_matched_text;
+
+ yy_current_state = yy_get_previous_state();
+
+ yy_cp = yy_c_buf_p;
+ yy_bp = yytext_ptr + YY_MORE_ADJ;
+ goto yy_match;
+
+ case EOB_ACT_LAST_MATCH:
+ yy_c_buf_p =
+ &yy_current_buffer->yy_ch_buf[yy_n_chars];
+
+ yy_current_state = yy_get_previous_state();
+
+ yy_cp = yy_c_buf_p;
+ yy_bp = yytext_ptr + YY_MORE_ADJ;
+ goto yy_find_action;
+ }
+ break;
+ }
+
+ default:
+ YY_FATAL_ERROR(
+ "fatal flex scanner internal error--no action found" );
+ } /* end of action switch */
+ } /* end of scanning one token */
+ } /* end of yylex */
+
/* yy_get_next_buffer - try to read in a new buffer
*
* 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 singled characater, 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_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. */
+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");
+ 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;
+ /* 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);
+ int yy_c_buf_p_offset =
+ (int) (yy_c_buf_p - b->yy_ch_buf);
- if (b->yy_is_our_buffer) {
- int old_size = b->yy_buf_size + 2;
- int new_size = b->yy_buf_size * 2;
+ 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;
+ 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_realloc2((genericptr_t) b->yy_ch_buf,
- b->yy_buf_size + 2, old_size);
- } else
- /* Can't grow it, we don't own it. */
- b->yy_ch_buf = 0;
+ 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");
+ 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];
+ 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;
+ 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);
- }
-
- 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;
- }
- }
+ }
+
+ if ( num_to_read > YY_READ_BUF_SIZE )
+ num_to_read = YY_READ_BUF_SIZE;
+
+ /* Read in more data. */
+ YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
+ yy_n_chars, num_to_read );
+
+ yy_current_buffer->yy_n_chars = yy_n_chars;
+ }
+
+ if ( yy_n_chars == 0 )
+ {
+ if ( number_to_move == YY_MORE_ADJ )
+ {
+ ret_val = EOB_ACT_END_OF_FILE;
+ yyrestart( yyin );
+ }
+
+ else
+ {
+ ret_val = EOB_ACT_LAST_MATCH;
+ yy_current_buffer->yy_buffer_status =
+ YY_BUFFER_EOF_PENDING;
+ }
+ }
+
+ else
+ ret_val = EOB_ACT_CONTINUE_SCAN;
+
+ yy_n_chars += number_to_move;
+ yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
+ yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
+
+ yytext_ptr = &yy_current_buffer->yy_ch_buf[0];
+
+ return ret_val;
+ }
+
+
+/* yy_get_previous_state - get the state just before the EOB char was reached */
+
+static yy_state_type yy_get_previous_state()
+ {
+ register yy_state_type yy_current_state;
+ register char *yy_cp;
+
+ yy_current_state = yy_start;
+ yy_current_state += YY_AT_BOL();
+
+ for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
+ {
+ register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
+ if ( yy_accept[yy_current_state] )
+ {
+ yy_last_accepting_state = yy_current_state;
+ yy_last_accepting_cpos = yy_cp;
+ }
+ while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
+ {
+ yy_current_state = (int) yy_def[yy_current_state];
+ if ( yy_current_state >= 196 )
+ 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;
+ }
- else
- ret_val = EOB_ACT_CONTINUE_SCAN;
-
- yy_n_chars += number_to_move;
- yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
- yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
-
- yytext_ptr = &yy_current_buffer->yy_ch_buf[0];
-
- return ret_val;
-}
-
-/* yy_get_previous_state - get the state just before the EOB char was reached
- */
-
-static yy_state_type
-yy_get_previous_state()
-{
- register yy_state_type yy_current_state;
- register char *yy_cp;
-
- yy_current_state = yy_start;
- yy_current_state += YY_AT_BOL();
-
- for (yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp) {
- register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
- if (yy_accept[yy_current_state]) {
- yy_last_accepting_state = yy_current_state;
- yy_last_accepting_cpos = yy_cp;
- }
- while (yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state) {
- yy_current_state = (int) yy_def[yy_current_state];
- if (yy_current_state >= 196)
- 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
*
* next_state = yy_try_NUL_trans( current_state );
*/
-static yy_state_type
-yy_try_NUL_trans(yy_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;
-{
- 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 >= 196)
- 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 == 195);
-
- return yy_is_jam ? 0 : 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 >= 196 )
+ 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 == 195);
+
+ return yy_is_jam ? 0 : yy_current_state;
+ }
+
#ifndef YY_NO_UNPUT
-static void
-yyunput(c, yy_bp)
+#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;
-{
- register char *yy_cp = yy_c_buf_p;
+#endif
+ {
+ register char *yy_cp = yy_c_buf_p;
- /* undo effects of setting up yytext */
- *yy_cp = yy_hold_char;
+ /* 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];
+ 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;
+ while ( source > yy_current_buffer->yy_ch_buf )
+ *--dest = *--source;
- yy_cp += (int) (dest - source);
- yy_bp += (int) (dest - source);
- yy_n_chars = yy_current_buffer->yy_buf_size;
+ 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");
- }
+ if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
+ YY_FATAL_ERROR( "flex scanner push-back overflow" );
+ }
- *--yy_cp = (char) c;
+ *--yy_cp = (char) c;
- yytext_ptr = yy_bp;
- yy_hold_char = *yy_cp;
- yy_c_buf_p = yy_cp;
-}
-#endif /* ifndef YY_NO_UNPUT */
-static int
-input()
-{
- 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 */
- yytext_ptr = yy_c_buf_p;
- ++yy_c_buf_p;
-
- switch (yy_get_next_buffer()) {
- case EOB_ACT_END_OF_FILE: {
- if (yywrap()) {
- yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;
- return EOF;
- }
-
- if (!yy_did_buffer_switch_on_eof)
- YY_NEW_FILE;
- return input();
- }
-
- case EOB_ACT_CONTINUE_SCAN:
- yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;
- break;
-
- case EOB_ACT_LAST_MATCH:
- YY_FATAL_ERROR("unexpected last match in input()");
- }
- }
- }
-
- c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */
- *yy_c_buf_p = '\0'; /* preserve yytext */
- yy_hold_char = *++yy_c_buf_p;
-
- yy_current_buffer->yy_at_bol = (c == '\n');
-
- return c;
-}
+ 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
+ }
-void
-yyrestart(input_file)
+ case EOB_ACT_CONTINUE_SCAN:
+ yy_c_buf_p = yytext_ptr + offset;
+ break;
+ }
+ }
+ }
+
+ c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */
+ *yy_c_buf_p = '\0'; /* preserve yytext */
+ yy_hold_char = *++yy_c_buf_p;
+
+ yy_current_buffer->yy_at_bol = (c == '\n');
+
+ return c;
+ }
+
+
+#ifdef YY_USE_PROTOS
+void yyrestart( FILE *input_file )
+#else
+void yyrestart( input_file )
FILE *input_file;
-{
- if (!yy_current_buffer)
- yy_current_buffer = yy_create_buffer(yyin, YY_BUF_SIZE);
+#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();
-}
+ yy_init_buffer( yy_current_buffer, input_file );
+ yy_load_buffer_state();
+ }
-void
-yy_switch_to_buffer(new_buffer)
+
+#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;
-{
- 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;
-}
+#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;
+ }
-void
-yy_load_buffer_state()
-{
- 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;
-}
-YY_BUFFER_STATE
-yy_create_buffer(file, size)
+#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;
-{
- YY_BUFFER_STATE b;
+#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_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;
+ 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()");
+ /* 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;
+ b->yy_is_our_buffer = 1;
- yy_init_buffer(b, file);
+ yy_init_buffer( b, file );
+
+ return b;
+ }
- return b;
-}
-void
-yy_delete_buffer(b)
+#ifdef YY_USE_PROTOS
+void yy_delete_buffer( YY_BUFFER_STATE b )
+#else
+void yy_delete_buffer( b )
YY_BUFFER_STATE b;
-{
- if (!b)
- return;
+#endif
+ {
+ if ( ! b )
+ return;
- if (b == yy_current_buffer)
- yy_current_buffer = (YY_BUFFER_STATE) 0;
+ if ( b == yy_current_buffer )
+ yy_current_buffer = (YY_BUFFER_STATE) 0;
- if (b->yy_is_our_buffer)
- yy_flex_free((genericptr_t) b->yy_ch_buf);
+ if ( b->yy_is_our_buffer )
+ yy_flex_free( (void *) b->yy_ch_buf );
+
+ yy_flex_free( (void *) b );
+ }
- yy_flex_free((genericptr_t) b);
-}
#ifndef YY_ALWAYS_INTERACTIVE
#ifndef YY_NEVER_INTERACTIVE
-extern int FDECL(isatty, (int));
+extern int isatty YY_PROTO(( int ));
#endif
#endif
-void
-yy_init_buffer(b, file)
+#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;
-{
- yy_flush_buffer(b);
+#endif
- b->yy_input_file = file;
- b->yy_fill_buffer = 1;
-#ifdef YY_ALWAYS_INTERACTIVE
- b->yy_is_interactive = 1;
+ {
+ yy_flush_buffer( b );
+
+ b->yy_input_file = file;
+ b->yy_fill_buffer = 1;
+
+#if YY_ALWAYS_INTERACTIVE
+ b->yy_is_interactive = 1;
#else
-#ifdef YY_NEVER_INTERACTIVE
- b->yy_is_interactive = 0;
+#if YY_NEVER_INTERACTIVE
+ b->yy_is_interactive = 0;
#else
- b->yy_is_interactive = file ? (isatty(fileno(file)) > 0) : 0;
+ b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
#endif
#endif
-}
+ }
-void
-yy_flush_buffer(b)
+
+#ifdef YY_USE_PROTOS
+void yy_flush_buffer( YY_BUFFER_STATE b )
+#else
+void yy_flush_buffer( b )
YY_BUFFER_STATE b;
-{
- b->yy_n_chars = 0;
+#endif
- /* 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;
+ {
+ if ( ! b )
+ return;
- b->yy_buf_pos = &b->yy_ch_buf[0];
+ b->yy_n_chars = 0;
- b->yy_at_bol = 1;
- b->yy_buffer_status = YY_BUFFER_NEW;
+ /* 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
- if (b == yy_current_buffer)
- yy_load_buffer_state();
-}
+
+#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
-static void
-yy_fatal_error(msg)
-const char msg[];
-{
- (void) fprintf(stderr, "%s\n", msg);
- exit(YY_EXIT_FAILURE);
-}
+#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_MORE_ADJ; \
- yy_hold_char = *yy_c_buf_p; \
- *yy_c_buf_p = '\0'; \
- yyleng = n; \
- } while (0)
+#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
-static void
-yy_flex_strncpy(s1, s2, n)
+#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;
-const char *s2;
+yyconst char *s2;
int n;
-{
- register int i;
- for (i = 0; i < n; ++i)
- s1[i] = s2[i];
-}
+#endif
+ {
+ register int i;
+ for ( i = 0; i < n; ++i )
+ s1[i] = s2[i];
+ }
#endif
-static genericptr_t
-yy_flex_alloc(size)
-yy_size_t size;
-{
- return (genericptr_t) alloc((unsigned) size);
-}
+#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 )
+ ;
-/* we want to avoid use of realloc(), so we require that caller supply the
- size of the old block of memory */
-static genericptr_t
-yy_flex_realloc2(ptr, size, old_size)
-genericptr_t ptr;
-yy_size_t size;
-int old_size;
-{
- genericptr_t outptr = yy_flex_alloc(size);
+ return n;
+ }
+#endif
- if (ptr) {
- char *p = (char *) outptr, *q = (char *) ptr;
- while (--old_size >= 0)
- *p++ = *q++;
- yy_flex_free(ptr);
- }
- return outptr;
-}
+#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 );
+ }
-static void
-yy_flex_free(ptr)
-genericptr_t ptr;
-{
- free(ptr);
-}
+#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 119 "dgn_comp.l"
-/*flexhack.skl*/
/* routine to switch to another input file; needed for flex */
-void
-init_yyin(input_f)
+void init_yyin( input_f )
FILE *input_f;
{
#if defined(FLEX_SCANNER) || defined(FLEXHACK_SCANNER)
- if (yyin)
- yyrestart(input_f);
- else
+ if (yyin)
+ yyrestart(input_f);
+ else
#endif
- yyin = input_f;
+ yyin = input_f;
}
/* analogous routine (for completeness) */
-void
-init_yyout(output_f)
+void init_yyout( output_f )
FILE *output_f;
{
- yyout = output_f;
+ yyout = output_f;
}
/*dgn_comp.l*/
-#ifndef lint
-static char yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93";
-#endif
-#define YYBYACC 1
-#define YYMAJOR 1
-#define YYMINOR 9
-#define yyclearin (yychar = (-1))
-#define yyerrok (yyerrflag = 0)
-#define YYRECOVERING (yyerrflag != 0)
-#define YYPREFIX "yy"
-/* NetHack 3.6 dgn_comp.y $Date: 2009/05/11 22:53:51 $ $Revision: 1.7 $ */
+
+/* A Bison parser, made by GNU Bison 2.4.1. */
+
+/* Skeleton implementation for Bison's Yacc-like parsers in C
+
+ Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
+ Free Software Foundation, Inc.
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
+
+/* As a special exception, you may create a larger work that contains
+ part or all of the Bison parser skeleton and distribute that work
+ under terms of your choice, so long as that work isn't itself a
+ parser generator using the skeleton or a modified version thereof
+ as a parser skeleton. Alternatively, if you modify or redistribute
+ the parser skeleton itself, you may (at your option) remove this
+ special exception, which will cause the skeleton and the resulting
+ Bison output files to be licensed under the GNU General Public
+ License without this special exception.
+
+ This special exception was added by the Free Software Foundation in
+ version 2.2 of Bison. */
+
+/* C LALR(1) parser skeleton written by Richard Stallman, by
+ simplifying the original so-called "semantic" parser. */
+
+/* All symbols defined below should begin with yy or YY, to avoid
+ infringing on user name space. This should be done even for local
+ variables, as they might otherwise be expanded by user macros.
+ There are some unavoidable exceptions within include files to
+ define necessary library symbols; they are noted "INFRINGES ON
+ USER NAME SPACE" below. */
+
+/* Identify Bison output. */
+#define YYBISON 1
+
+/* Bison version. */
+#define YYBISON_VERSION "2.4.1"
+
+/* Skeleton name. */
+#define YYSKELETON_NAME "yacc.c"
+
+/* Pure parsers. */
+#define YYPURE 0
+
+/* Push parsers. */
+#define YYPUSH 0
+
+/* Pull parsers. */
+#define YYPULL 1
+
+/* Using locations. */
+#define YYLSP_NEEDED 0
+
+
+
+/* Copy the first part of user declarations. */
+
+/* Line 189 of yacc.c */
+#line 1 "dgn_comp.y"
+
+/* NetHack 3.6 dgn_comp.y $NHDT-Date: 1431196862 2015/05/09 18:41:02 $ $NHDT-Branch: master $:$NHDT-Revision: 1.7 $ */
+/* NetHack 3.6 dgn_comp.y $Date: 2009/05/06 10:54:26 $ $Revision: 1.5 $ */
/* SCCS Id: @(#)dgn_comp.c 3.5 1996/06/22 */
/* Copyright (c) 1989 by Jean-Christophe Collet */
/* Copyright (c) 1990 by M. Stephenson */
*/
#ifdef _AIX
-#pragma alloca /* keep leading space! */
+ #pragma alloca /* keep leading space! */
#endif
#include "config.h"
void NDECL(init_level);
void NDECL(output_dgn);
-#define Free(ptr) free((genericptr_t) ptr)
+#define Free(ptr) free((genericptr_t)ptr)
#ifdef AMIGA
-#undef printf
-#ifndef LATTICE
-#define memset(addr, val, len) setmem(addr, len, val)
+# undef printf
+#ifndef LATTICE
+# define memset(addr,val,len) setmem(addr,len,val)
#endif
#endif
-#define ERR (-1)
+#define ERR (-1)
static struct couple couple;
static struct tmpdungeon tmpdungeon[MAXDUNGEON];
extern int fatal_error;
extern const char *fname;
-extern FILE *yyin, *yyout; /* from dgn_lex.c */
+extern FILE *yyin, *yyout; /* from dgn_lex.c */
+
+
+
+/* Line 189 of yacc.c */
+#line 141 "y.tab.c"
+
+/* Enabling traces. */
+#ifndef YYDEBUG
+# define YYDEBUG 0
+#endif
+
+/* Enabling verbose error messages. */
+#ifdef YYERROR_VERBOSE
+# undef YYERROR_VERBOSE
+# define YYERROR_VERBOSE 1
+#else
+# define YYERROR_VERBOSE 0
+#endif
+
+/* Enabling the token table. */
+#ifndef YYTOKEN_TABLE
+# define YYTOKEN_TABLE 0
+#endif
+
+
+/* Tokens. */
+#ifndef YYTOKENTYPE
+# define YYTOKENTYPE
+ /* Put the tokens into the symbol table, so that GDB and other debuggers
+ know about them. */
+ enum yytokentype {
+ INTEGER = 258,
+ A_DUNGEON = 259,
+ BRANCH = 260,
+ CHBRANCH = 261,
+ LEVEL = 262,
+ RNDLEVEL = 263,
+ CHLEVEL = 264,
+ RNDCHLEVEL = 265,
+ UP_OR_DOWN = 266,
+ PROTOFILE = 267,
+ DESCRIPTION = 268,
+ DESCRIPTOR = 269,
+ LEVELDESC = 270,
+ ALIGNMENT = 271,
+ LEVALIGN = 272,
+ ENTRY = 273,
+ STAIR = 274,
+ NO_UP = 275,
+ NO_DOWN = 276,
+ PORTAL = 277,
+ STRING = 278
+ };
+#endif
+/* Tokens. */
+#define INTEGER 258
+#define A_DUNGEON 259
+#define BRANCH 260
+#define CHBRANCH 261
+#define LEVEL 262
+#define RNDLEVEL 263
+#define CHLEVEL 264
+#define RNDCHLEVEL 265
+#define UP_OR_DOWN 266
+#define PROTOFILE 267
+#define DESCRIPTION 268
+#define DESCRIPTOR 269
+#define LEVELDESC 270
+#define ALIGNMENT 271
+#define LEVALIGN 272
+#define ENTRY 273
+#define STAIR 274
+#define NO_UP 275
+#define NO_DOWN 276
+#define PORTAL 277
+#define STRING 278
+
+
+
+
+#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
+typedef union YYSTYPE
+{
+
+/* Line 214 of yacc.c */
+#line 69 "dgn_comp.y"
+
+ int i;
+ char* str;
-typedef union {
- int i;
- char *str;
+
+
+/* Line 214 of yacc.c */
+#line 230 "y.tab.c"
} YYSTYPE;
-#define INTEGER 257
-#define A_DUNGEON 258
-#define BRANCH 259
-#define CHBRANCH 260
-#define LEVEL 261
-#define RNDLEVEL 262
-#define CHLEVEL 263
-#define RNDCHLEVEL 264
-#define UP_OR_DOWN 265
-#define PROTOFILE 266
-#define DESCRIPTION 267
-#define DESCRIPTOR 268
-#define LEVELDESC 269
-#define ALIGNMENT 270
-#define LEVALIGN 271
-#define ENTRY 272
-#define STAIR 273
-#define NO_UP 274
-#define NO_DOWN 275
-#define PORTAL 276
-#define STRING 277
-#define YYERRCODE 256
-short yylhs[] = {
- -1, 0, 0, 5, 5, 6, 6, 6, 6, 7, 1, 1, 8, 8, 8, 12, 13,
- 15, 15, 14, 10, 10, 10, 10, 10, 16, 16, 17, 17, 18, 18, 19, 19, 20,
- 20, 9, 9, 22, 23, 3, 3, 3, 3, 3, 2, 2, 4, 21, 11,
+# define YYSTYPE_IS_TRIVIAL 1
+# define yystype YYSTYPE /* obsolescent; will be withdrawn */
+# define YYSTYPE_IS_DECLARED 1
+#endif
+
+
+/* Copy the second part of user declarations. */
+
+
+/* Line 264 of yacc.c */
+#line 242 "y.tab.c"
+
+#ifdef short
+# undef short
+#endif
+
+#ifdef YYTYPE_UINT8
+typedef YYTYPE_UINT8 yytype_uint8;
+#else
+typedef unsigned char yytype_uint8;
+#endif
+
+#ifdef YYTYPE_INT8
+typedef YYTYPE_INT8 yytype_int8;
+#elif (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+typedef signed char yytype_int8;
+#else
+typedef short int yytype_int8;
+#endif
+
+#ifdef YYTYPE_UINT16
+typedef YYTYPE_UINT16 yytype_uint16;
+#else
+typedef unsigned short int yytype_uint16;
+#endif
+
+#ifdef YYTYPE_INT16
+typedef YYTYPE_INT16 yytype_int16;
+#else
+typedef short int yytype_int16;
+#endif
+
+#ifndef YYSIZE_T
+# ifdef __SIZE_TYPE__
+# define YYSIZE_T __SIZE_TYPE__
+# elif defined size_t
+# define YYSIZE_T size_t
+# elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+# include <stddef.h> /* INFRINGES ON USER NAME SPACE */
+# define YYSIZE_T size_t
+# else
+# define YYSIZE_T unsigned int
+# endif
+#endif
+
+#define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
+
+#ifndef YY_
+# if YYENABLE_NLS
+# if ENABLE_NLS
+# include <libintl.h> /* INFRINGES ON USER NAME SPACE */
+# define YY_(msgid) dgettext ("bison-runtime", msgid)
+# endif
+# endif
+# ifndef YY_
+# define YY_(msgid) msgid
+# endif
+#endif
+
+/* Suppress unused-variable warnings by "using" E. */
+#if ! defined lint || defined __GNUC__
+# define YYUSE(e) ((void) (e))
+#else
+# define YYUSE(e) /* empty */
+#endif
+
+/* Identity function, used to suppress warnings about constant conditions. */
+#ifndef lint
+# define YYID(n) (n)
+#else
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+static int
+YYID (int yyi)
+#else
+static int
+YYID (yyi)
+ int yyi;
+#endif
+{
+ return yyi;
+}
+#endif
+
+#if ! defined yyoverflow || YYERROR_VERBOSE
+
+/* The parser invokes alloca or malloc; define the necessary symbols. */
+
+# ifdef YYSTACK_USE_ALLOCA
+# if YYSTACK_USE_ALLOCA
+# ifdef __GNUC__
+# define YYSTACK_ALLOC __builtin_alloca
+# elif defined __BUILTIN_VA_ARG_INCR
+# include <alloca.h> /* INFRINGES ON USER NAME SPACE */
+# elif defined _AIX
+# define YYSTACK_ALLOC __alloca
+# elif defined _MSC_VER
+# include <malloc.h> /* INFRINGES ON USER NAME SPACE */
+# define alloca _alloca
+# else
+# define YYSTACK_ALLOC alloca
+# if ! defined _ALLOCA_H && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
+# ifndef _STDLIB_H
+# define _STDLIB_H 1
+# endif
+# endif
+# endif
+# endif
+# endif
+
+# ifdef YYSTACK_ALLOC
+ /* Pacify GCC's `empty if-body' warning. */
+# define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0))
+# ifndef YYSTACK_ALLOC_MAXIMUM
+ /* The OS might guarantee only one guard page at the bottom of the stack,
+ and a page size can be as small as 4096 bytes. So we cannot safely
+ invoke alloca (N) if N exceeds 4096. Use a slightly smaller number
+ to allow for a few compiler-allocated temporary stack slots. */
+# define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
+# endif
+# else
+# define YYSTACK_ALLOC YYMALLOC
+# define YYSTACK_FREE YYFREE
+# ifndef YYSTACK_ALLOC_MAXIMUM
+# define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
+# endif
+# if (defined __cplusplus && ! defined _STDLIB_H \
+ && ! ((defined YYMALLOC || defined malloc) \
+ && (defined YYFREE || defined free)))
+# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
+# ifndef _STDLIB_H
+# define _STDLIB_H 1
+# endif
+# endif
+# ifndef YYMALLOC
+# define YYMALLOC malloc
+# if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
+# endif
+# endif
+# ifndef YYFREE
+# define YYFREE free
+# if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+void free (void *); /* INFRINGES ON USER NAME SPACE */
+# endif
+# endif
+# endif
+#endif /* ! defined yyoverflow || YYERROR_VERBOSE */
+
+
+#if (! defined yyoverflow \
+ && (! defined __cplusplus \
+ || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
+
+/* A type that is properly aligned for any stack member. */
+union yyalloc
+{
+ yytype_int16 yyss_alloc;
+ YYSTYPE yyvs_alloc;
};
-short yylen[] = {
- 2, 0, 1, 1, 2, 1, 1, 1, 1, 6, 0, 1, 1, 1, 1, 3, 1, 3, 3, 3, 1, 1, 1, 1, 1,
- 6, 7, 7, 8, 3, 3, 7, 8, 8, 9, 1, 1, 7, 8, 0, 1, 1, 1, 1, 0, 1, 1, 5, 5,
+
+/* The size of the maximum gap between one aligned stack and the next. */
+# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
+
+/* The size of an array large to enough to hold all stacks, each with
+ N elements. */
+# define YYSTACK_BYTES(N) \
+ ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
+ + YYSTACK_GAP_MAXIMUM)
+
+/* Copy COUNT objects from FROM to TO. The source and destination do
+ not overlap. */
+# ifndef YYCOPY
+# if defined __GNUC__ && 1 < __GNUC__
+# define YYCOPY(To, From, Count) \
+ __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
+# else
+# define YYCOPY(To, From, Count) \
+ do \
+ { \
+ YYSIZE_T yyi; \
+ for (yyi = 0; yyi < (Count); yyi++) \
+ (To)[yyi] = (From)[yyi]; \
+ } \
+ while (YYID (0))
+# endif
+# endif
+
+/* Relocate STACK from its old location to the new one. The
+ local variables YYSIZE and YYSTACKSIZE give the old and new number of
+ elements in the stack, and YYPTR gives the new location of the
+ stack. Advance YYPTR to a properly aligned location for the next
+ stack. */
+# define YYSTACK_RELOCATE(Stack_alloc, Stack) \
+ do \
+ { \
+ YYSIZE_T yynewbytes; \
+ YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
+ Stack = &yyptr->Stack_alloc; \
+ yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
+ yyptr += yynewbytes / sizeof (*yyptr); \
+ } \
+ while (YYID (0))
+
+#endif
+
+/* YYFINAL -- State number of the termination state. */
+#define YYFINAL 45
+/* YYLAST -- Last index in YYTABLE. */
+#define YYLAST 83
+
+/* YYNTOKENS -- Number of terminals. */
+#define YYNTOKENS 30
+/* YYNNTS -- Number of nonterminals. */
+#define YYNNTS 25
+/* YYNRULES -- Number of rules. */
+#define YYNRULES 49
+/* YYNRULES -- Number of states. */
+#define YYNSTATES 109
+
+/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
+#define YYUNDEFTOK 2
+#define YYMAXUTOK 278
+
+#define YYTRANSLATE(YYX) \
+ ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
+
+/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
+static const yytype_uint8 yytranslate[] =
+{
+ 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 27, 29, 2, 26, 28, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 24, 2,
+ 2, 2, 2, 2, 25, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
+ 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
+ 15, 16, 17, 18, 19, 20, 21, 22, 23
};
-short yydefred[] = {
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 5,
- 6, 7, 8, 12, 13, 14, 16, 20, 21, 22, 23, 24, 35, 36, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 19,
- 17, 29, 18, 30, 15, 46, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 11, 9, 0, 40, 41, 42, 43, 0, 0, 0, 0, 0, 0,
- 0, 0, 45, 37, 0, 27, 0, 0, 0, 0, 0, 38, 28, 33, 0, 48, 47, 34,
+
+#if YYDEBUG
+/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
+ YYRHS. */
+static const yytype_uint8 yyprhs[] =
+{
+ 0, 0, 3, 4, 6, 8, 11, 13, 15, 17,
+ 19, 26, 27, 29, 31, 33, 35, 39, 41, 45,
+ 49, 53, 55, 57, 59, 61, 63, 70, 78, 86,
+ 95, 99, 103, 111, 120, 129, 139, 141, 143, 151,
+ 160, 161, 163, 165, 167, 169, 170, 172, 174, 180
};
-short yydgoto[] = {
- 14, 78, 93, 84, 60, 15, 16, 17, 18, 19, 20, 68,
- 21, 22, 23, 24, 25, 26, 27, 28, 29, 70, 30, 31,
+
+/* YYRHS -- A `-1'-separated list of the rules' RHS. */
+static const yytype_int8 yyrhs[] =
+{
+ 31, 0, -1, -1, 32, -1, 33, -1, 32, 33,
+ -1, 34, -1, 36, -1, 47, -1, 41, -1, 4,
+ 24, 23, 52, 54, 35, -1, -1, 3, -1, 37,
+ -1, 38, -1, 40, -1, 18, 24, 3, -1, 39,
+ -1, 13, 24, 14, -1, 16, 24, 14, -1, 12,
+ 24, 23, -1, 42, -1, 43, -1, 44, -1, 45,
+ -1, 46, -1, 7, 24, 23, 52, 25, 53, -1,
+ 8, 24, 23, 52, 25, 53, 3, -1, 7, 24,
+ 23, 52, 25, 53, 3, -1, 8, 24, 23, 52,
+ 25, 53, 3, 3, -1, 15, 24, 14, -1, 17,
+ 24, 14, -1, 9, 24, 23, 52, 23, 26, 54,
+ -1, 10, 24, 23, 52, 23, 26, 54, 3, -1,
+ 9, 24, 23, 52, 23, 26, 54, 3, -1, 10,
+ 24, 23, 52, 23, 26, 54, 3, 3, -1, 48,
+ -1, 49, -1, 5, 24, 23, 25, 53, 50, 51,
+ -1, 6, 24, 23, 23, 26, 54, 50, 51, -1,
+ -1, 19, -1, 20, -1, 21, -1, 22, -1, -1,
+ 11, -1, 23, -1, 27, 3, 28, 3, 29, -1,
+ 27, 3, 28, 3, 29, -1
};
-short yysindex[] = {
- -237, -46, -45, -44, -39, -38, -30, -22, -21, -20, -19, -18,
- -17, -16, 0, -237, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, -262, -234, -233, -232,
- -230, -229, -228, -227, -217, -216, -215, -214, -202, 0, -221, -7,
- -219, -221, -221, -221, -221, 0, 0, 0, 0, 0, 0, 0,
- 19, 20, 21, -2, -1, -212, -211, -190, -189, -188, -271, 19,
- 20, 20, 27, 28, 29, 0, 0, 30, 0, 0, 0, 0,
- -193, -271, -182, -180, 19, 19, -179, -178, 0, 0, -193, 0,
- -177, -176, -175, 42, 43, 0, 0, 0, -172, 0, 0, 0,
+
+/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
+static const yytype_uint16 yyrline[] =
+{
+ 0, 83, 83, 84, 90, 91, 94, 95, 96, 97,
+ 100, 113, 116, 122, 123, 124, 127, 133, 136, 143,
+ 152, 159, 160, 161, 162, 163, 166, 176, 189, 200,
+ 214, 221, 230, 243, 259, 273, 290, 291, 294, 308,
+ 325, 328, 332, 336, 340, 347, 350, 356, 386, 423
};
-short yyrindex[] = {
- 86, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 87, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 16, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 31, 1, 46, 0,
- 0, 0, 0, 0, 0, 0, 31, 0, 61, 76, 0, 0, 0, 0, 0, 0, 91, 0, 0, 0,
+#endif
+
+#if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
+/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
+ First, the terminals, then, starting at YYNTOKENS, nonterminals. */
+static const char *const yytname[] =
+{
+ "$end", "error", "$undefined", "INTEGER", "A_DUNGEON", "BRANCH",
+ "CHBRANCH", "LEVEL", "RNDLEVEL", "CHLEVEL", "RNDCHLEVEL", "UP_OR_DOWN",
+ "PROTOFILE", "DESCRIPTION", "DESCRIPTOR", "LEVELDESC", "ALIGNMENT",
+ "LEVALIGN", "ENTRY", "STAIR", "NO_UP", "NO_DOWN", "PORTAL", "STRING",
+ "':'", "'@'", "'+'", "'('", "','", "')'", "$accept", "file", "dungeons",
+ "dungeon", "dungeonline", "optional_int", "dungeondesc", "entry",
+ "descriptions", "desc", "prototype", "levels", "level1", "level2",
+ "levdesc", "chlevel1", "chlevel2", "branches", "branch", "chbranch",
+ "branch_type", "direction", "bones_tag", "acouple", "rcouple", 0
+};
+#endif
+
+# ifdef YYPRINT
+/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
+ token YYLEX-NUM. */
+static const yytype_uint16 yytoknum[] =
+{
+ 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
+ 265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
+ 275, 276, 277, 278, 58, 64, 43, 40, 44, 41
};
-short yygindex[] = {
- 0, 0, -6, 4, -43, 0, 75, 0, 0, 0, 0, -71,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, -62, 0, 0,
+# endif
+
+/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
+static const yytype_uint8 yyr1[] =
+{
+ 0, 30, 31, 31, 32, 32, 33, 33, 33, 33,
+ 34, 35, 35, 36, 36, 36, 37, 38, 39, 39,
+ 40, 41, 41, 41, 41, 41, 42, 42, 43, 43,
+ 44, 44, 45, 45, 46, 46, 47, 47, 48, 49,
+ 50, 50, 50, 50, 50, 51, 51, 52, 53, 54
};
-#define YYTABLESIZE 363
-short yytable[] = {
- 85, 39, 80, 81, 82, 83, 63, 64, 65, 66, 86, 87, 32, 33, 34, 46,
- 10, 97, 98, 35, 36, 1, 2, 3, 4, 5, 6, 7, 37, 8, 9, 44,
- 10, 11, 12, 13, 38, 39, 40, 41, 42, 43, 44, 47, 48, 49, 25, 50,
- 51, 52, 53, 54, 55, 56, 57, 58, 59, 61, 62, 67, 69, 26, 72, 73,
- 71, 74, 75, 76, 77, 79, 88, 89, 92, 90, 91, 95, 31, 96, 99, 100,
- 102, 103, 104, 105, 106, 107, 1, 2, 101, 94, 45, 32, 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, 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, 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, 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,
- 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, 0, 0, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 0, 39, 39,
- 39, 39, 10, 10, 10, 10, 10, 10, 10, 0, 10, 10, 0, 10, 10, 10,
- 10, 44, 44, 44, 44, 44, 44, 44, 0, 44, 44, 0, 44, 44, 44, 44,
- 25, 25, 25, 25, 25, 25, 25, 0, 25, 25, 0, 25, 25, 25, 25, 26,
- 26, 26, 26, 26, 26, 26, 0, 26, 26, 0, 26, 26, 26, 26, 31, 31,
- 31, 31, 31, 31, 31, 0, 31, 31, 0, 31, 31, 31, 31, 32, 32, 32,
- 32, 32, 32, 32, 0, 32, 32, 0, 32, 32, 32, 32,
+
+/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
+static const yytype_uint8 yyr2[] =
+{
+ 0, 2, 0, 1, 1, 2, 1, 1, 1, 1,
+ 6, 0, 1, 1, 1, 1, 3, 1, 3, 3,
+ 3, 1, 1, 1, 1, 1, 6, 7, 7, 8,
+ 3, 3, 7, 8, 8, 9, 1, 1, 7, 8,
+ 0, 1, 1, 1, 1, 0, 1, 1, 5, 5
};
-short yycheck[] = {
- 71, 0, 273, 274, 275, 276, 49, 50, 51, 52, 72, 73, 58, 58, 58,
- 277, 0, 88, 89, 58, 58, 258, 259, 260, 261, 262, 263, 264, 58, 266,
- 267, 0, 269, 270, 271, 272, 58, 58, 58, 58, 58, 58, 58, 277, 277,
- 277, 0, 277, 277, 277, 277, 268, 268, 268, 268, 257, 277, 64, 277, 40,
- 40, 0, 64, 64, 43, 277, 277, 257, 257, 257, 43, 43, 265, 44, 44,
- 257, 0, 257, 257, 257, 257, 257, 257, 41, 41, 257, 0, 0, 94, 85,
- 15, 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, -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, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, -1,
- 269, 270, 271, 272, 258, 259, 260, 261, 262, 263, 264, -1, 266, 267, -1,
- 269, 270, 271, 272, 258, 259, 260, 261, 262, 263, 264, -1, 266, 267, -1,
- 269, 270, 271, 272, 258, 259, 260, 261, 262, 263, 264, -1, 266, 267, -1,
- 269, 270, 271, 272, 258, 259, 260, 261, 262, 263, 264, -1, 266, 267, -1,
- 269, 270, 271, 272, 258, 259, 260, 261, 262, 263, 264, -1, 266, 267, -1,
- 269, 270, 271, 272, 258, 259, 260, 261, 262, 263, 264, -1, 266, 267, -1,
- 269, 270, 271, 272,
+
+/* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
+ STATE-NUM when YYTABLE doesn't specify something else to do. Zero
+ means the default is an error. */
+static const yytype_uint8 yydefact[] =
+{
+ 2, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 3, 4, 6, 7, 13,
+ 14, 17, 15, 9, 21, 22, 23, 24, 25, 8,
+ 36, 37, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 1, 5, 0, 0, 0,
+ 0, 0, 0, 0, 20, 18, 30, 19, 31, 16,
+ 47, 0, 0, 0, 0, 0, 0, 0, 0, 11,
+ 0, 40, 0, 0, 0, 0, 0, 0, 12, 10,
+ 0, 41, 42, 43, 44, 45, 40, 26, 0, 0,
+ 0, 0, 0, 46, 38, 45, 28, 27, 32, 0,
+ 0, 0, 39, 29, 34, 33, 49, 48, 35
};
-#define YYFINAL 14
-#ifndef YYDEBUG
-#define YYDEBUG 0
-#endif
-#define YYMAXTOKEN 277
-#if YYDEBUG
-char *yyname[] = {
- "end-of-file", 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, 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, 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, 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, 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, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "INTEGER",
- "A_DUNGEON", "BRANCH", "CHBRANCH", "LEVEL", "RNDLEVEL", "CHLEVEL",
- "RNDCHLEVEL", "UP_OR_DOWN", "PROTOFILE", "DESCRIPTION", "DESCRIPTOR",
- "LEVELDESC", "ALIGNMENT", "LEVALIGN", "ENTRY", "STAIR", "NO_UP",
- "NO_DOWN", "PORTAL", "STRING",
+
+/* YYDEFGOTO[NTERM-NUM]. */
+static const yytype_int8 yydefgoto[] =
+{
+ -1, 14, 15, 16, 17, 79, 18, 19, 20, 21,
+ 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
+ 85, 94, 61, 71, 69
};
-char *yyrule[] = {
- "$accept : file", "file :", "file : dungeons", "dungeons : dungeon",
- "dungeons : dungeons dungeon", "dungeon : dungeonline",
- "dungeon : dungeondesc", "dungeon : branches", "dungeon : levels",
- "dungeonline : A_DUNGEON ':' STRING bones_tag rcouple optional_int",
- "optional_int :", "optional_int : INTEGER", "dungeondesc : entry",
- "dungeondesc : descriptions", "dungeondesc : prototype",
- "entry : ENTRY ':' INTEGER", "descriptions : desc",
- "desc : DESCRIPTION ':' DESCRIPTOR", "desc : ALIGNMENT ':' DESCRIPTOR",
- "prototype : PROTOFILE ':' STRING", "levels : level1", "levels : level2",
- "levels : levdesc", "levels : chlevel1", "levels : chlevel2",
- "level1 : LEVEL ':' STRING bones_tag '@' acouple",
- "level1 : RNDLEVEL ':' STRING bones_tag '@' acouple INTEGER",
- "level2 : LEVEL ':' STRING bones_tag '@' acouple INTEGER",
- "level2 : RNDLEVEL ':' STRING bones_tag '@' acouple INTEGER INTEGER",
- "levdesc : LEVELDESC ':' DESCRIPTOR", "levdesc : LEVALIGN ':' DESCRIPTOR",
- "chlevel1 : CHLEVEL ':' STRING bones_tag STRING '+' rcouple",
- "chlevel1 : RNDCHLEVEL ':' STRING bones_tag STRING '+' rcouple INTEGER",
- "chlevel2 : CHLEVEL ':' STRING bones_tag STRING '+' rcouple INTEGER",
- "chlevel2 : RNDCHLEVEL ':' STRING bones_tag STRING '+' rcouple INTEGER "
- "INTEGER",
- "branches : branch", "branches : chbranch",
- "branch : BRANCH ':' STRING '@' acouple branch_type direction",
- "chbranch : CHBRANCH ':' STRING STRING '+' rcouple branch_type direction",
- "branch_type :", "branch_type : STAIR", "branch_type : NO_UP",
- "branch_type : NO_DOWN", "branch_type : PORTAL", "direction :",
- "direction : UP_OR_DOWN", "bones_tag : STRING",
- "acouple : '(' INTEGER ',' INTEGER ')'",
- "rcouple : '(' INTEGER ',' INTEGER ')'",
+
+/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
+ STATE-NUM. */
+#define YYPACT_NINF -73
+static const yytype_int8 yypact[] =
+{
+ -3, -16, -13, -8, 5, 6, 7, 8, 9, 10,
+ 11, 12, 13, 14, 39, -3, -73, -73, -73, -73,
+ -73, -73, -73, -73, -73, -73, -73, -73, -73, -73,
+ -73, -73, 17, 18, 19, 20, 21, 22, 23, 24,
+ 34, 35, 36, 37, 49, -73, -73, 30, 29, 32,
+ 30, 30, 30, 30, -73, -73, -73, -73, -73, -73,
+ -73, 31, 33, 38, 40, 41, 44, 45, 53, 54,
+ 56, 0, 31, 33, 33, 43, 46, 42, -73, -73,
+ 47, -73, -73, -73, -73, 50, 0, 59, 60, 31,
+ 31, 68, 70, -73, -73, 50, -73, 71, 73, 74,
+ 51, 52, -73, -73, -73, 75, -73, -73, -73
};
+
+/* YYPGOTO[NTERM-NUM]. */
+static const yytype_int8 yypgoto[] =
+{
+ -73, -73, -73, 64, -73, -73, -73, -73, -73, -73,
+ -73, -73, -73, -73, -73, -73, -73, -73, -73, -73,
+ -4, -12, -27, -46, -72
+};
+
+/* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
+ positive, shift that token. If negative, reduce the rule which
+ number is the opposite. If zero, do what YYDEFACT says.
+ If YYTABLE_NINF, syntax error. */
+#define YYTABLE_NINF -1
+static const yytype_uint8 yytable[] =
+{
+ 86, 1, 2, 3, 4, 5, 6, 7, 32, 8,
+ 9, 33, 10, 11, 12, 13, 34, 98, 99, 81,
+ 82, 83, 84, 64, 65, 66, 67, 87, 88, 35,
+ 36, 37, 38, 39, 40, 41, 42, 43, 44, 45,
+ 47, 48, 49, 50, 51, 52, 53, 54, 55, 56,
+ 57, 58, 59, 60, 62, 63, 77, 78, 68, 80,
+ 70, 93, 96, 97, 72, 73, 74, 75, 76, 89,
+ 91, 100, 90, 101, 103, 92, 104, 105, 108, 46,
+ 106, 107, 95, 102
+};
+
+static const yytype_uint8 yycheck[] =
+{
+ 72, 4, 5, 6, 7, 8, 9, 10, 24, 12,
+ 13, 24, 15, 16, 17, 18, 24, 89, 90, 19,
+ 20, 21, 22, 50, 51, 52, 53, 73, 74, 24,
+ 24, 24, 24, 24, 24, 24, 24, 24, 24, 0,
+ 23, 23, 23, 23, 23, 23, 23, 23, 14, 14,
+ 14, 14, 3, 23, 25, 23, 3, 3, 27, 3,
+ 27, 11, 3, 3, 26, 25, 25, 23, 23, 26,
+ 28, 3, 26, 3, 3, 28, 3, 3, 3, 15,
+ 29, 29, 86, 95
+};
+
+/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
+ symbol of state STATE-NUM. */
+static const yytype_uint8 yystos[] =
+{
+ 0, 4, 5, 6, 7, 8, 9, 10, 12, 13,
+ 15, 16, 17, 18, 31, 32, 33, 34, 36, 37,
+ 38, 39, 40, 41, 42, 43, 44, 45, 46, 47,
+ 48, 49, 24, 24, 24, 24, 24, 24, 24, 24,
+ 24, 24, 24, 24, 24, 0, 33, 23, 23, 23,
+ 23, 23, 23, 23, 23, 14, 14, 14, 14, 3,
+ 23, 52, 25, 23, 52, 52, 52, 52, 27, 54,
+ 27, 53, 26, 25, 25, 23, 23, 3, 3, 35,
+ 3, 19, 20, 21, 22, 50, 54, 53, 53, 26,
+ 26, 28, 28, 11, 51, 50, 3, 3, 54, 54,
+ 3, 3, 51, 3, 3, 3, 29, 29, 3
+};
+
+#define yyerrok (yyerrstatus = 0)
+#define yyclearin (yychar = YYEMPTY)
+#define YYEMPTY (-2)
+#define YYEOF 0
+
+#define YYACCEPT goto yyacceptlab
+#define YYABORT goto yyabortlab
+#define YYERROR goto yyerrorlab
+
+
+/* Like YYERROR except do call yyerror. This remains here temporarily
+ to ease the transition to the new meaning of YYERROR, for GCC.
+ Once GCC version 2 has supplanted version 1, this can go. */
+
+#define YYFAIL goto yyerrlab
+
+#define YYRECOVERING() (!!yyerrstatus)
+
+#define YYBACKUP(Token, Value) \
+do \
+ if (yychar == YYEMPTY && yylen == 1) \
+ { \
+ yychar = (Token); \
+ yylval = (Value); \
+ yytoken = YYTRANSLATE (yychar); \
+ YYPOPSTACK (1); \
+ goto yybackup; \
+ } \
+ else \
+ { \
+ yyerror (YY_("syntax error: cannot back up")); \
+ YYERROR; \
+ } \
+while (YYID (0))
+
+
+#define YYTERROR 1
+#define YYERRCODE 256
+
+
+/* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].
+ If N is 0, then set CURRENT to the empty location which ends
+ the previous symbol: RHS[0] (always defined). */
+
+#define YYRHSLOC(Rhs, K) ((Rhs)[K])
+#ifndef YYLLOC_DEFAULT
+# define YYLLOC_DEFAULT(Current, Rhs, N) \
+ do \
+ if (YYID (N)) \
+ { \
+ (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \
+ (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \
+ (Current).last_line = YYRHSLOC (Rhs, N).last_line; \
+ (Current).last_column = YYRHSLOC (Rhs, N).last_column; \
+ } \
+ else \
+ { \
+ (Current).first_line = (Current).last_line = \
+ YYRHSLOC (Rhs, 0).last_line; \
+ (Current).first_column = (Current).last_column = \
+ YYRHSLOC (Rhs, 0).last_column; \
+ } \
+ while (YYID (0))
#endif
-#ifdef YYSTACKSIZE
-#undef YYMAXDEPTH
-#define YYMAXDEPTH YYSTACKSIZE
+
+
+/* YY_LOCATION_PRINT -- Print the location on the stream.
+ This macro was not mandated originally: define only if we know
+ we won't break user code: when these are the locations we know. */
+
+#ifndef YY_LOCATION_PRINT
+# if YYLTYPE_IS_TRIVIAL
+# define YY_LOCATION_PRINT(File, Loc) \
+ fprintf (File, "%d.%d-%d.%d", \
+ (Loc).first_line, (Loc).first_column, \
+ (Loc).last_line, (Loc).last_column)
+# else
+# define YY_LOCATION_PRINT(File, Loc) ((void) 0)
+# endif
+#endif
+
+
+/* YYLEX -- calling `yylex' with the right arguments. */
+
+#ifdef YYLEX_PARAM
+# define YYLEX yylex (YYLEX_PARAM)
#else
-#ifdef YYMAXDEPTH
-#define YYSTACKSIZE YYMAXDEPTH
+# define YYLEX yylex ()
+#endif
+
+/* Enable debugging if requested. */
+#if YYDEBUG
+
+# ifndef YYFPRINTF
+# include <stdio.h> /* INFRINGES ON USER NAME SPACE */
+# define YYFPRINTF fprintf
+# endif
+
+# define YYDPRINTF(Args) \
+do { \
+ if (yydebug) \
+ YYFPRINTF Args; \
+} while (YYID (0))
+
+# define YY_SYMBOL_PRINT(Title, Type, Value, Location) \
+do { \
+ if (yydebug) \
+ { \
+ YYFPRINTF (stderr, "%s ", Title); \
+ yy_symbol_print (stderr, \
+ Type, Value); \
+ YYFPRINTF (stderr, "\n"); \
+ } \
+} while (YYID (0))
+
+
+/*--------------------------------.
+| Print this symbol on YYOUTPUT. |
+`--------------------------------*/
+
+/*ARGSUSED*/
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+static void
+yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
+#else
+static void
+yy_symbol_value_print (yyoutput, yytype, yyvaluep)
+ FILE *yyoutput;
+ int yytype;
+ YYSTYPE const * const yyvaluep;
+#endif
+{
+ if (!yyvaluep)
+ return;
+# ifdef YYPRINT
+ if (yytype < YYNTOKENS)
+ YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
+# else
+ YYUSE (yyoutput);
+# endif
+ switch (yytype)
+ {
+ default:
+ break;
+ }
+}
+
+
+/*--------------------------------.
+| Print this symbol on YYOUTPUT. |
+`--------------------------------*/
+
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+static void
+yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
#else
-#define YYSTACKSIZE 500
-#define YYMAXDEPTH 500
+static void
+yy_symbol_print (yyoutput, yytype, yyvaluep)
+ FILE *yyoutput;
+ int yytype;
+ YYSTYPE const * const yyvaluep;
#endif
+{
+ if (yytype < YYNTOKENS)
+ YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
+ else
+ YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
+
+ yy_symbol_value_print (yyoutput, yytype, yyvaluep);
+ YYFPRINTF (yyoutput, ")");
+}
+
+/*------------------------------------------------------------------.
+| yy_stack_print -- Print the state stack from its BOTTOM up to its |
+| TOP (included). |
+`------------------------------------------------------------------*/
+
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+static void
+yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop)
+#else
+static void
+yy_stack_print (yybottom, yytop)
+ yytype_int16 *yybottom;
+ yytype_int16 *yytop;
+#endif
+{
+ YYFPRINTF (stderr, "Stack now");
+ for (; yybottom <= yytop; yybottom++)
+ {
+ int yybot = *yybottom;
+ YYFPRINTF (stderr, " %d", yybot);
+ }
+ YYFPRINTF (stderr, "\n");
+}
+
+# define YY_STACK_PRINT(Bottom, Top) \
+do { \
+ if (yydebug) \
+ yy_stack_print ((Bottom), (Top)); \
+} while (YYID (0))
+
+
+/*------------------------------------------------.
+| Report that the YYRULE is going to be reduced. |
+`------------------------------------------------*/
+
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+static void
+yy_reduce_print (YYSTYPE *yyvsp, int yyrule)
+#else
+static void
+yy_reduce_print (yyvsp, yyrule)
+ YYSTYPE *yyvsp;
+ int yyrule;
#endif
+{
+ int yynrhs = yyr2[yyrule];
+ int yyi;
+ unsigned long int yylno = yyrline[yyrule];
+ YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n",
+ yyrule - 1, yylno);
+ /* The symbols being reduced. */
+ for (yyi = 0; yyi < yynrhs; yyi++)
+ {
+ YYFPRINTF (stderr, " $%d = ", yyi + 1);
+ yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi],
+ &(yyvsp[(yyi + 1) - (yynrhs)])
+ );
+ YYFPRINTF (stderr, "\n");
+ }
+}
+
+# define YY_REDUCE_PRINT(Rule) \
+do { \
+ if (yydebug) \
+ yy_reduce_print (yyvsp, Rule); \
+} while (YYID (0))
+
+/* Nonzero means print parse trace. It is left uninitialized so that
+ multiple parsers can coexist. */
int yydebug;
-int yynerrs;
-int yyerrflag;
+#else /* !YYDEBUG */
+# define YYDPRINTF(Args)
+# define YY_SYMBOL_PRINT(Title, Type, Value, Location)
+# define YY_STACK_PRINT(Bottom, Top)
+# define YY_REDUCE_PRINT(Rule)
+#endif /* !YYDEBUG */
+
+
+/* YYINITDEPTH -- initial size of the parser's stacks. */
+#ifndef YYINITDEPTH
+# define YYINITDEPTH 200
+#endif
+
+/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
+ if the built-in stack extension method is used).
+
+ Do not make this value too large; the results are undefined if
+ YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)
+ evaluated with infinite-precision integer arithmetic. */
+
+#ifndef YYMAXDEPTH
+# define YYMAXDEPTH 10000
+#endif
+
+\f
+
+#if YYERROR_VERBOSE
+
+# ifndef yystrlen
+# if defined __GLIBC__ && defined _STRING_H
+# define yystrlen strlen
+# else
+/* Return the length of YYSTR. */
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+static YYSIZE_T
+yystrlen (const char *yystr)
+#else
+static YYSIZE_T
+yystrlen (yystr)
+ const char *yystr;
+#endif
+{
+ YYSIZE_T yylen;
+ for (yylen = 0; yystr[yylen]; yylen++)
+ continue;
+ return yylen;
+}
+# endif
+# endif
+
+# ifndef yystpcpy
+# if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
+# define yystpcpy stpcpy
+# else
+/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
+ YYDEST. */
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+static char *
+yystpcpy (char *yydest, const char *yysrc)
+#else
+static char *
+yystpcpy (yydest, yysrc)
+ char *yydest;
+ const char *yysrc;
+#endif
+{
+ char *yyd = yydest;
+ const char *yys = yysrc;
+
+ while ((*yyd++ = *yys++) != '\0')
+ continue;
+
+ return yyd - 1;
+}
+# endif
+# endif
+
+# ifndef yytnamerr
+/* Copy to YYRES the contents of YYSTR after stripping away unnecessary
+ quotes and backslashes, so that it's suitable for yyerror. The
+ heuristic is that double-quoting is unnecessary unless the string
+ contains an apostrophe, a comma, or backslash (other than
+ backslash-backslash). YYSTR is taken from yytname. If YYRES is
+ null, do not copy; instead, return the length of what the result
+ would have been. */
+static YYSIZE_T
+yytnamerr (char *yyres, const char *yystr)
+{
+ if (*yystr == '"')
+ {
+ YYSIZE_T yyn = 0;
+ char const *yyp = yystr;
+
+ for (;;)
+ switch (*++yyp)
+ {
+ case '\'':
+ case ',':
+ goto do_not_strip_quotes;
+
+ case '\\':
+ if (*++yyp != '\\')
+ goto do_not_strip_quotes;
+ /* Fall through. */
+ default:
+ if (yyres)
+ yyres[yyn] = *yyp;
+ yyn++;
+ break;
+
+ case '"':
+ if (yyres)
+ yyres[yyn] = '\0';
+ return yyn;
+ }
+ do_not_strip_quotes: ;
+ }
+
+ if (! yyres)
+ return yystrlen (yystr);
+
+ return yystpcpy (yyres, yystr) - yyres;
+}
+# endif
+
+/* Copy into YYRESULT an error message about the unexpected token
+ YYCHAR while in state YYSTATE. Return the number of bytes copied,
+ including the terminating null byte. If YYRESULT is null, do not
+ copy anything; just return the number of bytes that would be
+ copied. As a special case, return 0 if an ordinary "syntax error"
+ message will do. Return YYSIZE_MAXIMUM if overflow occurs during
+ size calculation. */
+static YYSIZE_T
+yysyntax_error (char *yyresult, int yystate, int yychar)
+{
+ int yyn = yypact[yystate];
+
+ if (! (YYPACT_NINF < yyn && yyn <= YYLAST))
+ return 0;
+ else
+ {
+ int yytype = YYTRANSLATE (yychar);
+ YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]);
+ YYSIZE_T yysize = yysize0;
+ YYSIZE_T yysize1;
+ int yysize_overflow = 0;
+ enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
+ char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
+ int yyx;
+
+# if 0
+ /* This is so xgettext sees the translatable formats that are
+ constructed on the fly. */
+ YY_("syntax error, unexpected %s");
+ YY_("syntax error, unexpected %s, expecting %s");
+ YY_("syntax error, unexpected %s, expecting %s or %s");
+ YY_("syntax error, unexpected %s, expecting %s or %s or %s");
+ YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s");
+# endif
+ char *yyfmt;
+ char const *yyf;
+ static char const yyunexpected[] = "syntax error, unexpected %s";
+ static char const yyexpecting[] = ", expecting %s";
+ static char const yyor[] = " or %s";
+ char yyformat[sizeof yyunexpected
+ + sizeof yyexpecting - 1
+ + ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2)
+ * (sizeof yyor - 1))];
+ char const *yyprefix = yyexpecting;
+
+ /* Start YYX at -YYN if negative to avoid negative indexes in
+ YYCHECK. */
+ int yyxbegin = yyn < 0 ? -yyn : 0;
+
+ /* Stay within bounds of both yycheck and yytname. */
+ int yychecklim = YYLAST - yyn + 1;
+ int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
+ int yycount = 1;
+
+ yyarg[0] = yytname[yytype];
+ yyfmt = yystpcpy (yyformat, yyunexpected);
+
+ for (yyx = yyxbegin; yyx < yyxend; ++yyx)
+ if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
+ {
+ if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
+ {
+ yycount = 1;
+ yysize = yysize0;
+ yyformat[sizeof yyunexpected - 1] = '\0';
+ break;
+ }
+ yyarg[yycount++] = yytname[yyx];
+ yysize1 = yysize + yytnamerr (0, yytname[yyx]);
+ yysize_overflow |= (yysize1 < yysize);
+ yysize = yysize1;
+ yyfmt = yystpcpy (yyfmt, yyprefix);
+ yyprefix = yyor;
+ }
+
+ yyf = YY_(yyformat);
+ yysize1 = yysize + yystrlen (yyf);
+ yysize_overflow |= (yysize1 < yysize);
+ yysize = yysize1;
+
+ if (yysize_overflow)
+ return YYSIZE_MAXIMUM;
+
+ if (yyresult)
+ {
+ /* Avoid sprintf, as that infringes on the user's name space.
+ Don't have undefined behavior even if the translation
+ produced a string with the wrong number of "%s"s. */
+ char *yyp = yyresult;
+ int yyi = 0;
+ while ((*yyp = *yyf) != '\0')
+ {
+ if (*yyp == '%' && yyf[1] == 's' && yyi < yycount)
+ {
+ yyp += yytnamerr (yyp, yyarg[yyi++]);
+ yyf += 2;
+ }
+ else
+ {
+ yyp++;
+ yyf++;
+ }
+ }
+ }
+ return yysize;
+ }
+}
+#endif /* YYERROR_VERBOSE */
+\f
+
+/*-----------------------------------------------.
+| Release the memory associated to this symbol. |
+`-----------------------------------------------*/
+
+/*ARGSUSED*/
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+static void
+yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep)
+#else
+static void
+yydestruct (yymsg, yytype, yyvaluep)
+ const char *yymsg;
+ int yytype;
+ YYSTYPE *yyvaluep;
+#endif
+{
+ YYUSE (yyvaluep);
+
+ if (!yymsg)
+ yymsg = "Deleting";
+ YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
+
+ switch (yytype)
+ {
+
+ default:
+ break;
+ }
+}
+
+/* Prevent warnings from -Wmissing-prototypes. */
+#ifdef YYPARSE_PARAM
+#if defined __STDC__ || defined __cplusplus
+int yyparse (void *YYPARSE_PARAM);
+#else
+int yyparse ();
+#endif
+#else /* ! YYPARSE_PARAM */
+#if defined __STDC__ || defined __cplusplus
+int yyparse (void);
+#else
+int yyparse ();
+#endif
+#endif /* ! YYPARSE_PARAM */
+
+
+/* The lookahead symbol. */
int yychar;
-short *yyssp;
-YYSTYPE *yyvsp;
-YYSTYPE yyval;
+
+/* The semantic value of the lookahead symbol. */
YYSTYPE yylval;
-short yyss[YYSTACKSIZE];
-YYSTYPE yyvs[YYSTACKSIZE];
-#define yystacksize YYSTACKSIZE
+
+/* Number of syntax errors so far. */
+int yynerrs;
+
+
+
+/*-------------------------.
+| yyparse or yypush_parse. |
+`-------------------------*/
+
+#ifdef YYPARSE_PARAM
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+int
+yyparse (void *YYPARSE_PARAM)
+#else
+int
+yyparse (YYPARSE_PARAM)
+ void *YYPARSE_PARAM;
+#endif
+#else /* ! YYPARSE_PARAM */
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+int
+yyparse (void)
+#else
+int
+yyparse ()
+
+#endif
+#endif
+{
+
+
+ int yystate;
+ /* Number of tokens to shift before error messages enabled. */
+ int yyerrstatus;
+
+ /* The stacks and their tools:
+ `yyss': related to states.
+ `yyvs': related to semantic values.
+
+ Refer to the stacks thru separate pointers, to allow yyoverflow
+ to reallocate them elsewhere. */
+
+ /* The state stack. */
+ yytype_int16 yyssa[YYINITDEPTH];
+ yytype_int16 *yyss;
+ yytype_int16 *yyssp;
+
+ /* The semantic value stack. */
+ YYSTYPE yyvsa[YYINITDEPTH];
+ YYSTYPE *yyvs;
+ YYSTYPE *yyvsp;
+
+ YYSIZE_T yystacksize;
+
+ int yyn;
+ int yyresult;
+ /* Lookahead token as an internal (translated) token number. */
+ int yytoken;
+ /* The variables used to return semantic value and location from the
+ action routines. */
+ YYSTYPE yyval;
+
+#if YYERROR_VERBOSE
+ /* Buffer for error messages, and its allocated size. */
+ char yymsgbuf[128];
+ char *yymsg = yymsgbuf;
+ YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
+#endif
+
+#define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N))
+
+ /* The number of symbols on the RHS of the reduced rule.
+ Keep to zero when no symbol should be popped. */
+ int yylen = 0;
+
+ yytoken = 0;
+ yyss = yyssa;
+ yyvs = yyvsa;
+ yystacksize = YYINITDEPTH;
+
+ YYDPRINTF ((stderr, "Starting parse\n"));
+
+ yystate = 0;
+ yyerrstatus = 0;
+ yynerrs = 0;
+ yychar = YYEMPTY; /* Cause a token to be read. */
+
+ /* Initialize stack pointers.
+ Waste one element of value and location stack
+ so that they stay on the same level as the state stack.
+ The wasted elements are never initialized. */
+ yyssp = yyss;
+ yyvsp = yyvs;
+
+ goto yysetstate;
+
+/*------------------------------------------------------------.
+| yynewstate -- Push a new state, which is found in yystate. |
+`------------------------------------------------------------*/
+ yynewstate:
+ /* In all cases, when you get here, the value and location stacks
+ have just been pushed. So pushing a state here evens the stacks. */
+ yyssp++;
+
+ yysetstate:
+ *yyssp = yystate;
+
+ if (yyss + yystacksize - 1 <= yyssp)
+ {
+ /* Get the current used size of the three stacks, in elements. */
+ YYSIZE_T yysize = yyssp - yyss + 1;
+
+#ifdef yyoverflow
+ {
+ /* Give user a chance to reallocate the stack. Use copies of
+ these so that the &'s don't force the real ones into
+ memory. */
+ YYSTYPE *yyvs1 = yyvs;
+ yytype_int16 *yyss1 = yyss;
+
+ /* Each stack pointer address is followed by the size of the
+ data in use in that stack, in bytes. This used to be a
+ conditional around just the two extra args, but that might
+ be undefined if yyoverflow is a macro. */
+ yyoverflow (YY_("memory exhausted"),
+ &yyss1, yysize * sizeof (*yyssp),
+ &yyvs1, yysize * sizeof (*yyvsp),
+ &yystacksize);
+
+ yyss = yyss1;
+ yyvs = yyvs1;
+ }
+#else /* no yyoverflow */
+# ifndef YYSTACK_RELOCATE
+ goto yyexhaustedlab;
+# else
+ /* Extend the stack our own way. */
+ if (YYMAXDEPTH <= yystacksize)
+ goto yyexhaustedlab;
+ yystacksize *= 2;
+ if (YYMAXDEPTH < yystacksize)
+ yystacksize = YYMAXDEPTH;
+
+ {
+ yytype_int16 *yyss1 = yyss;
+ union yyalloc *yyptr =
+ (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
+ if (! yyptr)
+ goto yyexhaustedlab;
+ YYSTACK_RELOCATE (yyss_alloc, yyss);
+ YYSTACK_RELOCATE (yyvs_alloc, yyvs);
+# undef YYSTACK_RELOCATE
+ if (yyss1 != yyssa)
+ YYSTACK_FREE (yyss1);
+ }
+# endif
+#endif /* no yyoverflow */
+
+ yyssp = yyss + yysize - 1;
+ yyvsp = yyvs + yysize - 1;
+
+ YYDPRINTF ((stderr, "Stack size increased to %lu\n",
+ (unsigned long int) yystacksize));
+
+ if (yyss + yystacksize - 1 <= yyssp)
+ YYABORT;
+ }
+
+ YYDPRINTF ((stderr, "Entering state %d\n", yystate));
+
+ if (yystate == YYFINAL)
+ YYACCEPT;
+
+ goto yybackup;
+
+/*-----------.
+| yybackup. |
+`-----------*/
+yybackup:
+
+ /* Do appropriate processing given the current state. Read a
+ lookahead token if we need one and don't already have one. */
+
+ /* First try to decide what to do without reference to lookahead token. */
+ yyn = yypact[yystate];
+ if (yyn == YYPACT_NINF)
+ goto yydefault;
+
+ /* Not known => get a lookahead token if don't already have one. */
+
+ /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */
+ if (yychar == YYEMPTY)
+ {
+ YYDPRINTF ((stderr, "Reading a token: "));
+ yychar = YYLEX;
+ }
+
+ if (yychar <= YYEOF)
+ {
+ yychar = yytoken = YYEOF;
+ YYDPRINTF ((stderr, "Now at end of input.\n"));
+ }
+ else
+ {
+ yytoken = YYTRANSLATE (yychar);
+ YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
+ }
+
+ /* If the proper action on seeing token YYTOKEN is to reduce or to
+ detect an error, take that action. */
+ yyn += yytoken;
+ if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
+ goto yydefault;
+ yyn = yytable[yyn];
+ if (yyn <= 0)
+ {
+ if (yyn == 0 || yyn == YYTABLE_NINF)
+ goto yyerrlab;
+ yyn = -yyn;
+ goto yyreduce;
+ }
+
+ /* Count tokens shifted since error; after three, turn off error
+ status. */
+ if (yyerrstatus)
+ yyerrstatus--;
+
+ /* Shift the lookahead token. */
+ YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
+
+ /* Discard the shifted token. */
+ yychar = YYEMPTY;
+
+ yystate = yyn;
+ *++yyvsp = yylval;
+
+ goto yynewstate;
+
+
+/*-----------------------------------------------------------.
+| yydefault -- do the default action for the current state. |
+`-----------------------------------------------------------*/
+yydefault:
+ yyn = yydefact[yystate];
+ if (yyn == 0)
+ goto yyerrlab;
+ goto yyreduce;
+
+
+/*-----------------------------.
+| yyreduce -- Do a reduction. |
+`-----------------------------*/
+yyreduce:
+ /* yyn is the number of a rule to reduce with. */
+ yylen = yyr2[yyn];
+
+ /* If YYLEN is nonzero, implement the default value of the action:
+ `$$ = $1'.
+
+ Otherwise, the following line sets YYVAL to garbage.
+ This behavior is undocumented and Bison
+ users should not rely upon it. Assigning to YYVAL
+ unconditionally makes the parser a bit smaller, and it avoids a
+ GCC warning that YYVAL may be used uninitialized. */
+ yyval = yyvsp[1-yylen];
+
+
+ YY_REDUCE_PRINT (yyn);
+ switch (yyn)
+ {
+ case 3:
+
+/* Line 1455 of yacc.c */
+#line 85 "dgn_comp.y"
+ {
+ output_dgn();
+ }
+ break;
+
+ case 10:
+
+/* Line 1455 of yacc.c */
+#line 101 "dgn_comp.y"
+ {
+ init_dungeon();
+ Strcpy(tmpdungeon[n_dgns].name, (yyvsp[(3) - (6)].str));
+ tmpdungeon[n_dgns].boneschar = (char)(yyvsp[(4) - (6)].i);
+ tmpdungeon[n_dgns].lev.base = couple.base;
+ tmpdungeon[n_dgns].lev.rand = couple.rand;
+ tmpdungeon[n_dgns].chance = (yyvsp[(6) - (6)].i);
+ Free((yyvsp[(3) - (6)].str));
+ }
+ break;
+
+ case 11:
+
+/* Line 1455 of yacc.c */
+#line 113 "dgn_comp.y"
+ {
+ (yyval.i) = 0;
+ }
+ break;
+
+ case 12:
+
+/* Line 1455 of yacc.c */
+#line 117 "dgn_comp.y"
+ {
+ (yyval.i) = (yyvsp[(1) - (1)].i);
+ }
+ break;
+
+ case 16:
+
+/* Line 1455 of yacc.c */
+#line 128 "dgn_comp.y"
+ {
+ tmpdungeon[n_dgns].entry_lev = (yyvsp[(3) - (3)].i);
+ }
+ break;
+
+ case 18:
+
+/* Line 1455 of yacc.c */
+#line 137 "dgn_comp.y"
+ {
+ if((yyvsp[(3) - (3)].i) <= TOWN || (yyvsp[(3) - (3)].i) >= D_ALIGN_CHAOTIC)
+ yyerror("Illegal description - ignoring!");
+ else
+ tmpdungeon[n_dgns].flags |= (yyvsp[(3) - (3)].i) ;
+ }
+ break;
+
+ case 19:
+
+/* Line 1455 of yacc.c */
+#line 144 "dgn_comp.y"
+ {
+ if((yyvsp[(3) - (3)].i) && (yyvsp[(3) - (3)].i) < D_ALIGN_CHAOTIC)
+ yyerror("Illegal alignment - ignoring!");
+ else
+ tmpdungeon[n_dgns].flags |= (yyvsp[(3) - (3)].i) ;
+ }
+ break;
+
+ case 20:
+
+/* Line 1455 of yacc.c */
+#line 153 "dgn_comp.y"
+ {
+ Strcpy(tmpdungeon[n_dgns].protoname, (yyvsp[(3) - (3)].str));
+ Free((yyvsp[(3) - (3)].str));
+ }
+ break;
+
+ case 26:
+
+/* Line 1455 of yacc.c */
+#line 167 "dgn_comp.y"
+ {
+ init_level();
+ Strcpy(tmplevel[n_levs].name, (yyvsp[(3) - (6)].str));
+ tmplevel[n_levs].boneschar = (char)(yyvsp[(4) - (6)].i);
+ tmplevel[n_levs].lev.base = couple.base;
+ tmplevel[n_levs].lev.rand = couple.rand;
+ tmpdungeon[n_dgns].levels++;
+ Free((yyvsp[(3) - (6)].str));
+ }
+ break;
+
+ case 27:
+
+/* Line 1455 of yacc.c */
+#line 177 "dgn_comp.y"
+ {
+ init_level();
+ Strcpy(tmplevel[n_levs].name, (yyvsp[(3) - (7)].str));
+ tmplevel[n_levs].boneschar = (char)(yyvsp[(4) - (7)].i);
+ tmplevel[n_levs].lev.base = couple.base;
+ tmplevel[n_levs].lev.rand = couple.rand;
+ tmplevel[n_levs].rndlevs = (yyvsp[(7) - (7)].i);
+ tmpdungeon[n_dgns].levels++;
+ Free((yyvsp[(3) - (7)].str));
+ }
+ break;
+
+ case 28:
+
+/* Line 1455 of yacc.c */
+#line 190 "dgn_comp.y"
+ {
+ init_level();
+ Strcpy(tmplevel[n_levs].name, (yyvsp[(3) - (7)].str));
+ tmplevel[n_levs].boneschar = (char)(yyvsp[(4) - (7)].i);
+ tmplevel[n_levs].lev.base = couple.base;
+ tmplevel[n_levs].lev.rand = couple.rand;
+ tmplevel[n_levs].chance = (yyvsp[(7) - (7)].i);
+ tmpdungeon[n_dgns].levels++;
+ Free((yyvsp[(3) - (7)].str));
+ }
+ break;
+
+ case 29:
+
+/* Line 1455 of yacc.c */
+#line 201 "dgn_comp.y"
+ {
+ init_level();
+ Strcpy(tmplevel[n_levs].name, (yyvsp[(3) - (8)].str));
+ tmplevel[n_levs].boneschar = (char)(yyvsp[(4) - (8)].i);
+ tmplevel[n_levs].lev.base = couple.base;
+ tmplevel[n_levs].lev.rand = couple.rand;
+ tmplevel[n_levs].chance = (yyvsp[(7) - (8)].i);
+ tmplevel[n_levs].rndlevs = (yyvsp[(8) - (8)].i);
+ tmpdungeon[n_dgns].levels++;
+ Free((yyvsp[(3) - (8)].str));
+ }
+ break;
+
+ case 30:
+
+/* Line 1455 of yacc.c */
+#line 215 "dgn_comp.y"
+ {
+ if((yyvsp[(3) - (3)].i) >= D_ALIGN_CHAOTIC)
+ yyerror("Illegal description - ignoring!");
+ else
+ tmplevel[n_levs].flags |= (yyvsp[(3) - (3)].i) ;
+ }
+ break;
+
+ case 31:
+
+/* Line 1455 of yacc.c */
+#line 222 "dgn_comp.y"
+ {
+ if((yyvsp[(3) - (3)].i) && (yyvsp[(3) - (3)].i) < D_ALIGN_CHAOTIC)
+ yyerror("Illegal alignment - ignoring!");
+ else
+ tmplevel[n_levs].flags |= (yyvsp[(3) - (3)].i) ;
+ }
+ break;
+
+ case 32:
+
+/* Line 1455 of yacc.c */
+#line 231 "dgn_comp.y"
+ {
+ init_level();
+ Strcpy(tmplevel[n_levs].name, (yyvsp[(3) - (7)].str));
+ tmplevel[n_levs].boneschar = (char)(yyvsp[(4) - (7)].i);
+ tmplevel[n_levs].chain = getchain((yyvsp[(5) - (7)].str));
+ tmplevel[n_levs].lev.base = couple.base;
+ tmplevel[n_levs].lev.rand = couple.rand;
+ if(!check_level()) n_levs--;
+ else tmpdungeon[n_dgns].levels++;
+ Free((yyvsp[(3) - (7)].str));
+ Free((yyvsp[(5) - (7)].str));
+ }
+ break;
+
+ case 33:
+
+/* Line 1455 of yacc.c */
+#line 244 "dgn_comp.y"
+ {
+ init_level();
+ Strcpy(tmplevel[n_levs].name, (yyvsp[(3) - (8)].str));
+ tmplevel[n_levs].boneschar = (char)(yyvsp[(4) - (8)].i);
+ tmplevel[n_levs].chain = getchain((yyvsp[(5) - (8)].str));
+ tmplevel[n_levs].lev.base = couple.base;
+ tmplevel[n_levs].lev.rand = couple.rand;
+ tmplevel[n_levs].rndlevs = (yyvsp[(8) - (8)].i);
+ if(!check_level()) n_levs--;
+ else tmpdungeon[n_dgns].levels++;
+ Free((yyvsp[(3) - (8)].str));
+ Free((yyvsp[(5) - (8)].str));
+ }
+ break;
+
+ case 34:
+
+/* Line 1455 of yacc.c */
+#line 260 "dgn_comp.y"
+ {
+ init_level();
+ Strcpy(tmplevel[n_levs].name, (yyvsp[(3) - (8)].str));
+ tmplevel[n_levs].boneschar = (char)(yyvsp[(4) - (8)].i);
+ tmplevel[n_levs].chain = getchain((yyvsp[(5) - (8)].str));
+ tmplevel[n_levs].lev.base = couple.base;
+ tmplevel[n_levs].lev.rand = couple.rand;
+ tmplevel[n_levs].chance = (yyvsp[(8) - (8)].i);
+ if(!check_level()) n_levs--;
+ else tmpdungeon[n_dgns].levels++;
+ Free((yyvsp[(3) - (8)].str));
+ Free((yyvsp[(5) - (8)].str));
+ }
+ break;
+
+ case 35:
+
+/* Line 1455 of yacc.c */
+#line 274 "dgn_comp.y"
+ {
+ init_level();
+ Strcpy(tmplevel[n_levs].name, (yyvsp[(3) - (9)].str));
+ tmplevel[n_levs].boneschar = (char)(yyvsp[(4) - (9)].i);
+ tmplevel[n_levs].chain = getchain((yyvsp[(5) - (9)].str));
+ tmplevel[n_levs].lev.base = couple.base;
+ tmplevel[n_levs].lev.rand = couple.rand;
+ tmplevel[n_levs].chance = (yyvsp[(8) - (9)].i);
+ tmplevel[n_levs].rndlevs = (yyvsp[(9) - (9)].i);
+ if(!check_level()) n_levs--;
+ else tmpdungeon[n_dgns].levels++;
+ Free((yyvsp[(3) - (9)].str));
+ Free((yyvsp[(5) - (9)].str));
+ }
+ break;
+
+ case 38:
+
+/* Line 1455 of yacc.c */
+#line 295 "dgn_comp.y"
+ {
+ init_branch();
+ Strcpy(tmpbranch[n_brs].name, (yyvsp[(3) - (7)].str));
+ tmpbranch[n_brs].lev.base = couple.base;
+ tmpbranch[n_brs].lev.rand = couple.rand;
+ tmpbranch[n_brs].type = (yyvsp[(6) - (7)].i);
+ tmpbranch[n_brs].up = (yyvsp[(7) - (7)].i);
+ if(!check_branch()) n_brs--;
+ else tmpdungeon[n_dgns].branches++;
+ Free((yyvsp[(3) - (7)].str));
+ }
+ break;
+
+ case 39:
+
+/* Line 1455 of yacc.c */
+#line 309 "dgn_comp.y"
+ {
+ init_branch();
+ Strcpy(tmpbranch[n_brs].name, (yyvsp[(3) - (8)].str));
+ tmpbranch[n_brs].chain = getchain((yyvsp[(4) - (8)].str));
+ tmpbranch[n_brs].lev.base = couple.base;
+ tmpbranch[n_brs].lev.rand = couple.rand;
+ tmpbranch[n_brs].type = (yyvsp[(7) - (8)].i);
+ tmpbranch[n_brs].up = (yyvsp[(8) - (8)].i);
+ if(!check_branch()) n_brs--;
+ else tmpdungeon[n_dgns].branches++;
+ Free((yyvsp[(3) - (8)].str));
+ Free((yyvsp[(4) - (8)].str));
+ }
+ break;
+
+ case 40:
+
+/* Line 1455 of yacc.c */
+#line 325 "dgn_comp.y"
+ {
+ (yyval.i) = TBR_STAIR; /* two way stair */
+ }
+ break;
+
+ case 41:
+
+/* Line 1455 of yacc.c */
+#line 329 "dgn_comp.y"
+ {
+ (yyval.i) = TBR_STAIR; /* two way stair */
+ }
+ break;
+
+ case 42:
+
+/* Line 1455 of yacc.c */
+#line 333 "dgn_comp.y"
+ {
+ (yyval.i) = TBR_NO_UP; /* no up staircase */
+ }
+ break;
+
+ case 43:
+
+/* Line 1455 of yacc.c */
+#line 337 "dgn_comp.y"
+ {
+ (yyval.i) = TBR_NO_DOWN; /* no down staircase */
+ }
+ break;
+
+ case 44:
+
+/* Line 1455 of yacc.c */
+#line 341 "dgn_comp.y"
+ {
+ (yyval.i) = TBR_PORTAL; /* portal connection */
+ }
+ break;
+
+ case 45:
+
+/* Line 1455 of yacc.c */
+#line 347 "dgn_comp.y"
+ {
+ (yyval.i) = 0; /* defaults to down */
+ }
+ break;
+
+ case 46:
+
+/* Line 1455 of yacc.c */
+#line 351 "dgn_comp.y"
+ {
+ (yyval.i) = (yyvsp[(1) - (1)].i);
+ }
+ break;
+
+ case 47:
+
+/* Line 1455 of yacc.c */
+#line 357 "dgn_comp.y"
+ {
+ char *p = (yyvsp[(1) - (1)].str);
+ if (strlen(p) != 1) {
+ if (strcmp(p, "none") != 0)
+ yyerror("Bones marker must be a single char, or \"none\"!");
+ *p = '\0';
+ }
+ (yyval.i) = *p;
+ Free(p);
+ }
+ break;
+
+ case 48:
+
+/* Line 1455 of yacc.c */
+#line 387 "dgn_comp.y"
+ {
+ if ((yyvsp[(2) - (5)].i) < -MAXLEVEL || (yyvsp[(2) - (5)].i) > MAXLEVEL) {
+ yyerror("Abs base out of dlevel range - zeroing!");
+ couple.base = couple.rand = 0;
+ } else if ((yyvsp[(4) - (5)].i) < -1 ||
+ (((yyvsp[(2) - (5)].i) < 0) ? (MAXLEVEL + (yyvsp[(2) - (5)].i) + (yyvsp[(4) - (5)].i) + 1) > MAXLEVEL :
+ ((yyvsp[(2) - (5)].i) + (yyvsp[(4) - (5)].i)) > MAXLEVEL)) {
+ yyerror("Abs range out of dlevel range - zeroing!");
+ couple.base = couple.rand = 0;
+ } else {
+ couple.base = (yyvsp[(2) - (5)].i);
+ couple.rand = (yyvsp[(4) - (5)].i);
+ }
+ }
+ break;
+
+ case 49:
+
+/* Line 1455 of yacc.c */
+#line 424 "dgn_comp.y"
+ {
+ if ((yyvsp[(2) - (5)].i) < -MAXLEVEL || (yyvsp[(2) - (5)].i) > MAXLEVEL) {
+ yyerror("Rel base out of dlevel range - zeroing!");
+ couple.base = couple.rand = 0;
+ } else {
+ couple.base = (yyvsp[(2) - (5)].i);
+ couple.rand = (yyvsp[(4) - (5)].i);
+ }
+ }
+ break;
+
+
+
+/* Line 1455 of yacc.c */
+#line 1913 "y.tab.c"
+ default: break;
+ }
+ YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
+
+ YYPOPSTACK (yylen);
+ yylen = 0;
+ YY_STACK_PRINT (yyss, yyssp);
+
+ *++yyvsp = yyval;
+
+ /* Now `shift' the result of the reduction. Determine what state
+ that goes to, based on the state we popped back to and the rule
+ number reduced by. */
+
+ yyn = yyr1[yyn];
+
+ yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
+ if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
+ yystate = yytable[yystate];
+ else
+ yystate = yydefgoto[yyn - YYNTOKENS];
+
+ goto yynewstate;
+
+
+/*------------------------------------.
+| yyerrlab -- here on detecting error |
+`------------------------------------*/
+yyerrlab:
+ /* If not already recovering from an error, report this error. */
+ if (!yyerrstatus)
+ {
+ ++yynerrs;
+#if ! YYERROR_VERBOSE
+ yyerror (YY_("syntax error"));
+#else
+ {
+ YYSIZE_T yysize = yysyntax_error (0, yystate, yychar);
+ if (yymsg_alloc < yysize && yymsg_alloc < YYSTACK_ALLOC_MAXIMUM)
+ {
+ YYSIZE_T yyalloc = 2 * yysize;
+ if (! (yysize <= yyalloc && yyalloc <= YYSTACK_ALLOC_MAXIMUM))
+ yyalloc = YYSTACK_ALLOC_MAXIMUM;
+ if (yymsg != yymsgbuf)
+ YYSTACK_FREE (yymsg);
+ yymsg = (char *) YYSTACK_ALLOC (yyalloc);
+ if (yymsg)
+ yymsg_alloc = yyalloc;
+ else
+ {
+ yymsg = yymsgbuf;
+ yymsg_alloc = sizeof yymsgbuf;
+ }
+ }
+
+ if (0 < yysize && yysize <= yymsg_alloc)
+ {
+ (void) yysyntax_error (yymsg, yystate, yychar);
+ yyerror (yymsg);
+ }
+ else
+ {
+ yyerror (YY_("syntax error"));
+ if (yysize != 0)
+ goto yyexhaustedlab;
+ }
+ }
+#endif
+ }
+
+
+
+ if (yyerrstatus == 3)
+ {
+ /* If just tried and failed to reuse lookahead token after an
+ error, discard it. */
+
+ if (yychar <= YYEOF)
+ {
+ /* Return failure if at end of input. */
+ if (yychar == YYEOF)
+ YYABORT;
+ }
+ else
+ {
+ yydestruct ("Error: discarding",
+ yytoken, &yylval);
+ yychar = YYEMPTY;
+ }
+ }
+
+ /* Else will try to reuse lookahead token after shifting the error
+ token. */
+ goto yyerrlab1;
+
+
+/*---------------------------------------------------.
+| yyerrorlab -- error raised explicitly by YYERROR. |
+`---------------------------------------------------*/
+yyerrorlab:
+
+ /* Pacify compilers like GCC when the user code never invokes
+ YYERROR and the label yyerrorlab therefore never appears in user
+ code. */
+ if (/*CONSTCOND*/ 0)
+ goto yyerrorlab;
+
+ /* Do not reclaim the symbols of the rule which action triggered
+ this YYERROR. */
+ YYPOPSTACK (yylen);
+ yylen = 0;
+ YY_STACK_PRINT (yyss, yyssp);
+ yystate = *yyssp;
+ goto yyerrlab1;
+
+
+/*-------------------------------------------------------------.
+| yyerrlab1 -- common code for both syntax error and YYERROR. |
+`-------------------------------------------------------------*/
+yyerrlab1:
+ yyerrstatus = 3; /* Each real token shifted decrements this. */
+
+ for (;;)
+ {
+ yyn = yypact[yystate];
+ if (yyn != YYPACT_NINF)
+ {
+ yyn += YYTERROR;
+ if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
+ {
+ yyn = yytable[yyn];
+ if (0 < yyn)
+ break;
+ }
+ }
+
+ /* Pop the current state because it cannot handle the error token. */
+ if (yyssp == yyss)
+ YYABORT;
+
+
+ yydestruct ("Error: popping",
+ yystos[yystate], yyvsp);
+ YYPOPSTACK (1);
+ yystate = *yyssp;
+ YY_STACK_PRINT (yyss, yyssp);
+ }
+
+ *++yyvsp = yylval;
+
+
+ /* Shift the error token. */
+ YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp);
+
+ yystate = yyn;
+ goto yynewstate;
+
+
+/*-------------------------------------.
+| yyacceptlab -- YYACCEPT comes here. |
+`-------------------------------------*/
+yyacceptlab:
+ yyresult = 0;
+ goto yyreturn;
+
+/*-----------------------------------.
+| yyabortlab -- YYABORT comes here. |
+`-----------------------------------*/
+yyabortlab:
+ yyresult = 1;
+ goto yyreturn;
+
+#if !defined(yyoverflow) || YYERROR_VERBOSE
+/*-------------------------------------------------.
+| yyexhaustedlab -- memory exhaustion comes here. |
+`-------------------------------------------------*/
+yyexhaustedlab:
+ yyerror (YY_("memory exhausted"));
+ yyresult = 2;
+ /* Fall through. */
+#endif
+
+yyreturn:
+ if (yychar != YYEMPTY)
+ yydestruct ("Cleanup: discarding lookahead",
+ yytoken, &yylval);
+ /* Do not reclaim the symbols of the rule which action triggered
+ this YYABORT or YYACCEPT. */
+ YYPOPSTACK (yylen);
+ YY_STACK_PRINT (yyss, yyssp);
+ while (yyssp != yyss)
+ {
+ yydestruct ("Cleanup: popping",
+ yystos[*yyssp], yyvsp);
+ YYPOPSTACK (1);
+ }
+#ifndef yyoverflow
+ if (yyss != yyssa)
+ YYSTACK_FREE (yyss);
+#endif
+#if YYERROR_VERBOSE
+ if (yymsg != yymsgbuf)
+ YYSTACK_FREE (yymsg);
+#endif
+ /* Make sure YYID is used. */
+ return YYID (yyresult);
+}
+
+
+
+/* Line 1675 of yacc.c */
+#line 434 "dgn_comp.y"
+
void
init_dungeon()
{
- if (++n_dgns > MAXDUNGEON) {
- (void) fprintf(stderr, "FATAL - Too many dungeons (limit: %d).\n",
- MAXDUNGEON);
- (void) fprintf(stderr,
- "To increase the limit edit MAXDUNGEON in global.h\n");
- exit(EXIT_FAILURE);
- }
+ if(++n_dgns > MAXDUNGEON) {
+ (void) fprintf(stderr, "FATAL - Too many dungeons (limit: %d).\n",
+ MAXDUNGEON);
+ (void) fprintf(stderr, "To increase the limit edit MAXDUNGEON in global.h\n");
+ exit(EXIT_FAILURE);
+ }
- in_dungeon = 1;
- tmpdungeon[n_dgns].lev.base = 0;
- tmpdungeon[n_dgns].lev.rand = 0;
- tmpdungeon[n_dgns].chance = 100;
- Strcpy(tmpdungeon[n_dgns].name, "");
- Strcpy(tmpdungeon[n_dgns].protoname, "");
- tmpdungeon[n_dgns].flags = 0;
- tmpdungeon[n_dgns].levels = 0;
- tmpdungeon[n_dgns].branches = 0;
- tmpdungeon[n_dgns].entry_lev = 0;
+ in_dungeon = 1;
+ tmpdungeon[n_dgns].lev.base = 0;
+ tmpdungeon[n_dgns].lev.rand = 0;
+ tmpdungeon[n_dgns].chance = 100;
+ Strcpy(tmpdungeon[n_dgns].name, "");
+ Strcpy(tmpdungeon[n_dgns].protoname, "");
+ tmpdungeon[n_dgns].flags = 0;
+ tmpdungeon[n_dgns].levels = 0;
+ tmpdungeon[n_dgns].branches = 0;
+ tmpdungeon[n_dgns].entry_lev = 0;
}
void
init_level()
{
- if (++n_levs > LEV_LIMIT) {
- yyerror("FATAL - Too many special levels defined.");
- exit(EXIT_FAILURE);
- }
- tmplevel[n_levs].lev.base = 0;
- tmplevel[n_levs].lev.rand = 0;
- tmplevel[n_levs].chance = 100;
- tmplevel[n_levs].rndlevs = 0;
- tmplevel[n_levs].flags = 0;
- Strcpy(tmplevel[n_levs].name, "");
- tmplevel[n_levs].chain = -1;
+ if(++n_levs > LEV_LIMIT) {
+
+ yyerror("FATAL - Too many special levels defined.");
+ exit(EXIT_FAILURE);
+ }
+ tmplevel[n_levs].lev.base = 0;
+ tmplevel[n_levs].lev.rand = 0;
+ tmplevel[n_levs].chance = 100;
+ tmplevel[n_levs].rndlevs = 0;
+ tmplevel[n_levs].flags = 0;
+ Strcpy(tmplevel[n_levs].name, "");
+ tmplevel[n_levs].chain = -1;
}
void
init_branch()
{
- if (++n_brs > BRANCH_LIMIT) {
- yyerror("FATAL - Too many special levels defined.");
- exit(EXIT_FAILURE);
- }
- tmpbranch[n_brs].lev.base = 0;
- tmpbranch[n_brs].lev.rand = 0;
- Strcpy(tmpbranch[n_brs].name, "");
- tmpbranch[n_brs].chain = -1;
+ if(++n_brs > BRANCH_LIMIT) {
+
+ yyerror("FATAL - Too many special levels defined.");
+ exit(EXIT_FAILURE);
+ }
+ tmpbranch[n_brs].lev.base = 0;
+ tmpbranch[n_brs].lev.rand = 0;
+ Strcpy(tmpbranch[n_brs].name, "");
+ tmpbranch[n_brs].chain = -1;
}
int
getchain(s)
-char *s;
+ char *s;
{
- int i;
+ int i;
- if (strlen(s)) {
- for (i = n_levs - tmpdungeon[n_dgns].levels + 1; i <= n_levs; i++)
- if (!strcmp(tmplevel[i].name, s))
- return i;
+ if(strlen(s)) {
- yyerror("Can't locate the specified chain level.");
- return (-2);
- }
- return (-1);
+ for(i = n_levs - tmpdungeon[n_dgns].levels + 1; i <= n_levs; i++)
+ if(!strcmp(tmplevel[i].name, s)) return i;
+
+ yyerror("Can't locate the specified chain level.");
+ return(-2);
+ }
+ return(-1);
}
/*
int
check_dungeon()
{
- int i;
+ int i;
- for (i = 0; i < n_dgns; i++)
- if (!strcmp(tmpdungeon[i].name, tmpdungeon[n_dgns].name)) {
- yyerror("Duplicate dungeon name.");
- return (0);
- }
+ for(i = 0; i < n_dgns; i++)
+ if(!strcmp(tmpdungeon[i].name, tmpdungeon[n_dgns].name)) {
+ yyerror("Duplicate dungeon name.");
+ return(0);
+ }
- if (n_dgns)
- for (i = 0; i < n_brs - tmpdungeon[n_dgns].branches; i++) {
- if (!strcmp(tmpbranch[i].name, tmpdungeon[n_dgns].name))
- break;
+ if(n_dgns)
+ for(i = 0; i < n_brs - tmpdungeon[n_dgns].branches; i++) {
+ if(!strcmp(tmpbranch[i].name, tmpdungeon[n_dgns].name)) break;
- if (i >= n_brs - tmpdungeon[n_dgns].branches) {
- yyerror("Dungeon cannot be reached.");
- return (0);
- }
- }
+ if(i >= n_brs - tmpdungeon[n_dgns].branches) {
+ yyerror("Dungeon cannot be reached.");
+ return(0);
+ }
+ }
- if (tmpdungeon[n_dgns].lev.base <= 0 || tmpdungeon[n_dgns].lev.rand < 0) {
- yyerror("Invalid dungeon depth specified.");
- return (0);
- }
- return (1); /* OK */
+ if(tmpdungeon[n_dgns].lev.base <= 0 ||
+ tmpdungeon[n_dgns].lev.rand < 0) {
+ yyerror("Invalid dungeon depth specified.");
+ return(0);
+ }
+ return(1); /* OK */
}
/*
int
check_level()
{
- int i;
+ int i;
- if (!in_dungeon) {
- yyerror("Level defined outside of dungeon.");
- return (0);
- }
+ if(!in_dungeon) {
+ yyerror("Level defined outside of dungeon.");
+ return(0);
+ }
- for (i = 0; i < n_levs; i++)
- if (!strcmp(tmplevel[i].name, tmplevel[n_levs].name)) {
- yyerror("Duplicate level name.");
- return (0);
- }
-
- if (tmplevel[i].chain == -2) {
- yyerror("Invaild level chain reference.");
- return (0);
- } else if (tmplevel[i].chain != -1) { /* there is a chain */
- /* KMH -- tmplevel[tmpbranch[i].chain].chance was in error */
- if (tmplevel[tmplevel[i].chain].chance != 100) {
- yyerror("Level cannot chain from a probabilistic level.");
- return (0);
- } else if (tmplevel[i].chain == n_levs) {
- yyerror("A level cannot chain to itself!");
- return (0);
- }
- }
- return (1); /* OK */
+ for(i = 0; i < n_levs; i++)
+ if(!strcmp(tmplevel[i].name, tmplevel[n_levs].name)) {
+ yyerror("Duplicate level name.");
+ return(0);
+ }
+
+ if(tmplevel[i].chain == -2) {
+ yyerror("Invaild level chain reference.");
+ return(0);
+ } else if(tmplevel[i].chain != -1) { /* there is a chain */
+ /* KMH -- tmplevel[tmpbranch[i].chain].chance was in error */
+ if(tmplevel[tmplevel[i].chain].chance != 100) {
+ yyerror("Level cannot chain from a probabilistic level.");
+ return(0);
+ } else if(tmplevel[i].chain == n_levs) {
+ yyerror("A level cannot chain to itself!");
+ return(0);
+ }
+ }
+ return(1); /* OK */
}
/*
int
check_branch()
{
- int i;
+ int i;
- if (!in_dungeon) {
- yyerror("Branch defined outside of dungeon.");
- return (0);
- }
+ if(!in_dungeon) {
+ yyerror("Branch defined outside of dungeon.");
+ return(0);
+ }
- for (i = 0; i < n_dgns; i++)
- if (!strcmp(tmpdungeon[i].name, tmpbranch[n_brs].name)) {
- yyerror("Reverse branching not allowed.");
- return (0);
- }
-
- if (tmpbranch[i].chain == -2) {
- yyerror("Invaild branch chain reference.");
- return (0);
- } else if (tmpbranch[i].chain != -1) { /* it is chained */
-
- if (tmplevel[tmpbranch[i].chain].chance != 100) {
- yyerror("Branch cannot chain from a probabilistic level.");
- return (0);
- }
- }
- return (1); /* OK */
+ for(i = 0; i < n_dgns; i++)
+ if(!strcmp(tmpdungeon[i].name, tmpbranch[n_brs].name)) {
+
+ yyerror("Reverse branching not allowed.");
+ return(0);
+ }
+
+ if(tmpbranch[i].chain == -2) {
+
+ yyerror("Invaild branch chain reference.");
+ return(0);
+ } else if(tmpbranch[i].chain != -1) { /* it is chained */
+
+ if(tmplevel[tmpbranch[i].chain].chance != 100) {
+ yyerror("Branch cannot chain from a probabilistic level.");
+ return(0);
+ }
+ }
+ return(1); /* OK */
}
/*
void
output_dgn()
{
- int nd, cl = 0, nl = 0, cb = 0, nb = 0;
- static struct version_info version_data = {
- VERSION_NUMBER, VERSION_FEATURES, VERSION_SANITY1, VERSION_SANITY2,
- VERSION_SANITY3
- };
+ int nd, cl = 0, nl = 0,
+ cb = 0, nb = 0;
+ static struct version_info version_data = {
+ VERSION_NUMBER, VERSION_FEATURES,
+ VERSION_SANITY1, VERSION_SANITY2, VERSION_SANITY3
+ };
- if (++n_dgns <= 0) {
- yyerror("FATAL - no dungeons were defined.");
- exit(EXIT_FAILURE);
- }
+ if(++n_dgns <= 0) {
+ yyerror("FATAL - no dungeons were defined.");
+ exit(EXIT_FAILURE);
+ }
- if (fwrite((char *) &version_data, sizeof version_data, 1, yyout) != 1) {
- yyerror("FATAL - output failure.");
- exit(EXIT_FAILURE);
- }
+ if (fwrite((char *)&version_data, sizeof version_data, 1, yyout) != 1) {
+ yyerror("FATAL - output failure.");
+ exit(EXIT_FAILURE);
+ }
- (void) fwrite((char *) &n_dgns, sizeof(int), 1, yyout);
- for (nd = 0; nd < n_dgns; nd++) {
- (void) fwrite((char *) &tmpdungeon[nd], sizeof(struct tmpdungeon), 1,
- yyout);
+ (void) fwrite((char *)&n_dgns, sizeof(int), 1, yyout);
+ for (nd = 0; nd < n_dgns; nd++) {
+ (void) fwrite((char *)&tmpdungeon[nd], sizeof(struct tmpdungeon),
+ 1, yyout);
- nl += tmpdungeon[nd].levels;
- for (; cl < nl; cl++)
- (void) fwrite((char *) &tmplevel[cl], sizeof(struct tmplevel), 1,
- yyout);
+ nl += tmpdungeon[nd].levels;
+ for(; cl < nl; cl++)
+ (void) fwrite((char *)&tmplevel[cl], sizeof(struct tmplevel),
+ 1, yyout);
- nb += tmpdungeon[nd].branches;
- for (; cb < nb; cb++)
- (void) fwrite((char *) &tmpbranch[cb], sizeof(struct tmpbranch),
- 1, yyout);
- }
- /* apparently necessary for Think C 5.x, otherwise harmless */
- (void) fflush(yyout);
+ nb += tmpdungeon[nd].branches;
+ for(; cb < nb; cb++)
+ (void) fwrite((char *)&tmpbranch[cb], sizeof(struct tmpbranch),
+ 1, yyout);
+ }
+ /* apparently necessary for Think C 5.x, otherwise harmless */
+ (void) fflush(yyout);
}
/*dgn_comp.y*/
-#define YYABORT goto yyabort
-#define YYREJECT goto yyabort
-#define YYACCEPT goto yyaccept
-#define YYERROR goto yyerrlab
-int
-yyparse()
-{
- register int yym, yyn, yystate;
-#if YYDEBUG
- register char *yys;
- extern char *getenv();
-
- if ((yys = getenv("YYDEBUG")) != 0) {
- yyn = *yys;
- if (yyn >= '0' && yyn <= '9')
- yydebug = yyn - '0';
- }
-#endif
-
- yynerrs = 0;
- yyerrflag = 0;
- yychar = (-1);
- yyssp = yyss;
- yyvsp = yyvs;
- *yyssp = yystate = 0;
-
-yyloop:
- if ((yyn = yydefred[yystate]) != 0)
- goto yyreduce;
- if (yychar < 0) {
- if ((yychar = yylex()) < 0)
- yychar = 0;
-#if YYDEBUG
- if (yydebug) {
- yys = 0;
- if (yychar <= YYMAXTOKEN)
- yys = yyname[yychar];
- if (!yys)
- yys = "illegal-symbol";
- printf("%sdebug: state %d, reading %d (%s)\n", YYPREFIX, yystate,
- yychar, yys);
- }
-#endif
- }
- if ((yyn = yysindex[yystate]) != 0 && (yyn += yychar) >= 0
- && yyn <= YYTABLESIZE && yycheck[yyn] == yychar) {
-#if YYDEBUG
- if (yydebug)
- printf("%sdebug: state %d, shifting to state %d\n", YYPREFIX,
- yystate, yytable[yyn]);
-#endif
- if (yyssp >= yyss + yystacksize - 1) {
- goto yyoverflow;
- }
- *++yyssp = yystate = yytable[yyn];
- *++yyvsp = yylval;
- yychar = (-1);
- if (yyerrflag > 0)
- --yyerrflag;
- goto yyloop;
- }
- if ((yyn = yyrindex[yystate]) != 0 && (yyn += yychar) >= 0
- && yyn <= YYTABLESIZE && yycheck[yyn] == yychar) {
- yyn = yytable[yyn];
- goto yyreduce;
- }
- if (yyerrflag)
- goto yyinrecovery;
-#ifdef lint
- goto yynewerror;
-#endif
-yynewerror:
- yyerror("syntax error");
-#ifdef lint
- goto yyerrlab;
-#endif
-yyerrlab:
- ++yynerrs;
-yyinrecovery:
- if (yyerrflag < 3) {
- yyerrflag = 3;
- for (;;) {
- if ((yyn = yysindex[*yyssp]) != 0 && (yyn += YYERRCODE) >= 0
- && yyn <= YYTABLESIZE && yycheck[yyn] == YYERRCODE) {
-#if YYDEBUG
- if (yydebug)
- printf("%sdebug: state %d, error recovery shifting\
- to state %d\n",
- YYPREFIX, *yyssp, yytable[yyn]);
-#endif
- if (yyssp >= yyss + yystacksize - 1) {
- goto yyoverflow;
- }
- *++yyssp = yystate = yytable[yyn];
- *++yyvsp = yylval;
- goto yyloop;
- } else {
-#if YYDEBUG
- if (yydebug)
- printf("%sdebug: error recovery discarding state %d\n",
- YYPREFIX, *yyssp);
-#endif
- if (yyssp <= yyss)
- goto yyabort;
- --yyssp;
- --yyvsp;
- }
- }
- } else {
- if (yychar == 0)
- goto yyabort;
-#if YYDEBUG
- if (yydebug) {
- yys = 0;
- if (yychar <= YYMAXTOKEN)
- yys = yyname[yychar];
- if (!yys)
- yys = "illegal-symbol";
- printf(
- "%sdebug: state %d, error recovery discards token %d (%s)\n",
- YYPREFIX, yystate, yychar, yys);
- }
-#endif
- yychar = (-1);
- goto yyloop;
- }
-yyreduce:
-#if YYDEBUG
- if (yydebug)
- printf("%sdebug: state %d, reducing by rule %d (%s)\n", YYPREFIX,
- yystate, yyn, yyrule[yyn]);
-#endif
- yym = yylen[yyn];
- yyval = yyvsp[1 - yym];
- switch (yyn) {
- case 2: {
- output_dgn();
- } break;
- case 9: {
- init_dungeon();
- Strcpy(tmpdungeon[n_dgns].name, yyvsp[-3].str);
- tmpdungeon[n_dgns].boneschar = (char) yyvsp[-2].i;
- tmpdungeon[n_dgns].lev.base = couple.base;
- tmpdungeon[n_dgns].lev.rand = couple.rand;
- tmpdungeon[n_dgns].chance = yyvsp[0].i;
- Free(yyvsp[-3].str);
- } break;
- case 10: {
- yyval.i = 0;
- } break;
- case 11: {
- yyval.i = yyvsp[0].i;
- } break;
- case 15: {
- tmpdungeon[n_dgns].entry_lev = yyvsp[0].i;
- } break;
- case 17: {
- if (yyvsp[0].i <= TOWN || yyvsp[0].i >= D_ALIGN_CHAOTIC)
- yyerror("Illegal description - ignoring!");
- else
- tmpdungeon[n_dgns].flags |= yyvsp[0].i;
- } break;
- case 18: {
- if (yyvsp[0].i && yyvsp[0].i < D_ALIGN_CHAOTIC)
- yyerror("Illegal alignment - ignoring!");
- else
- tmpdungeon[n_dgns].flags |= yyvsp[0].i;
- } break;
- case 19: {
- Strcpy(tmpdungeon[n_dgns].protoname, yyvsp[0].str);
- Free(yyvsp[0].str);
- } break;
- case 25: {
- init_level();
- Strcpy(tmplevel[n_levs].name, yyvsp[-3].str);
- tmplevel[n_levs].boneschar = (char) yyvsp[-2].i;
- tmplevel[n_levs].lev.base = couple.base;
- tmplevel[n_levs].lev.rand = couple.rand;
- tmpdungeon[n_dgns].levels++;
- Free(yyvsp[-3].str);
- } break;
- case 26: {
- init_level();
- Strcpy(tmplevel[n_levs].name, yyvsp[-4].str);
- tmplevel[n_levs].boneschar = (char) yyvsp[-3].i;
- tmplevel[n_levs].lev.base = couple.base;
- tmplevel[n_levs].lev.rand = couple.rand;
- tmplevel[n_levs].rndlevs = yyvsp[0].i;
- tmpdungeon[n_dgns].levels++;
- Free(yyvsp[-4].str);
- } break;
- case 27: {
- init_level();
- Strcpy(tmplevel[n_levs].name, yyvsp[-4].str);
- tmplevel[n_levs].boneschar = (char) yyvsp[-3].i;
- tmplevel[n_levs].lev.base = couple.base;
- tmplevel[n_levs].lev.rand = couple.rand;
- tmplevel[n_levs].chance = yyvsp[0].i;
- tmpdungeon[n_dgns].levels++;
- Free(yyvsp[-4].str);
- } break;
- case 28: {
- init_level();
- Strcpy(tmplevel[n_levs].name, yyvsp[-5].str);
- tmplevel[n_levs].boneschar = (char) yyvsp[-4].i;
- tmplevel[n_levs].lev.base = couple.base;
- tmplevel[n_levs].lev.rand = couple.rand;
- tmplevel[n_levs].chance = yyvsp[-1].i;
- tmplevel[n_levs].rndlevs = yyvsp[0].i;
- tmpdungeon[n_dgns].levels++;
- Free(yyvsp[-5].str);
- } break;
- case 29: {
- if (yyvsp[0].i >= D_ALIGN_CHAOTIC)
- yyerror("Illegal description - ignoring!");
- else
- tmplevel[n_levs].flags |= yyvsp[0].i;
- } break;
- case 30: {
- if (yyvsp[0].i && yyvsp[0].i < D_ALIGN_CHAOTIC)
- yyerror("Illegal alignment - ignoring!");
- else
- tmplevel[n_levs].flags |= yyvsp[0].i;
- } break;
- case 31: {
- init_level();
- Strcpy(tmplevel[n_levs].name, yyvsp[-4].str);
- tmplevel[n_levs].boneschar = (char) yyvsp[-3].i;
- tmplevel[n_levs].chain = getchain(yyvsp[-2].str);
- tmplevel[n_levs].lev.base = couple.base;
- tmplevel[n_levs].lev.rand = couple.rand;
- if (!check_level())
- n_levs--;
- else
- tmpdungeon[n_dgns].levels++;
- Free(yyvsp[-4].str);
- Free(yyvsp[-2].str);
- } break;
- case 32: {
- init_level();
- Strcpy(tmplevel[n_levs].name, yyvsp[-5].str);
- tmplevel[n_levs].boneschar = (char) yyvsp[-4].i;
- tmplevel[n_levs].chain = getchain(yyvsp[-3].str);
- tmplevel[n_levs].lev.base = couple.base;
- tmplevel[n_levs].lev.rand = couple.rand;
- tmplevel[n_levs].rndlevs = yyvsp[0].i;
- if (!check_level())
- n_levs--;
- else
- tmpdungeon[n_dgns].levels++;
- Free(yyvsp[-5].str);
- Free(yyvsp[-3].str);
- } break;
- case 33: {
- init_level();
- Strcpy(tmplevel[n_levs].name, yyvsp[-5].str);
- tmplevel[n_levs].boneschar = (char) yyvsp[-4].i;
- tmplevel[n_levs].chain = getchain(yyvsp[-3].str);
- tmplevel[n_levs].lev.base = couple.base;
- tmplevel[n_levs].lev.rand = couple.rand;
- tmplevel[n_levs].chance = yyvsp[0].i;
- if (!check_level())
- n_levs--;
- else
- tmpdungeon[n_dgns].levels++;
- Free(yyvsp[-5].str);
- Free(yyvsp[-3].str);
- } break;
- case 34: {
- init_level();
- Strcpy(tmplevel[n_levs].name, yyvsp[-6].str);
- tmplevel[n_levs].boneschar = (char) yyvsp[-5].i;
- tmplevel[n_levs].chain = getchain(yyvsp[-4].str);
- tmplevel[n_levs].lev.base = couple.base;
- tmplevel[n_levs].lev.rand = couple.rand;
- tmplevel[n_levs].chance = yyvsp[-1].i;
- tmplevel[n_levs].rndlevs = yyvsp[0].i;
- if (!check_level())
- n_levs--;
- else
- tmpdungeon[n_dgns].levels++;
- Free(yyvsp[-6].str);
- Free(yyvsp[-4].str);
- } break;
- case 37: {
- init_branch();
- Strcpy(tmpbranch[n_brs].name, yyvsp[-4].str);
- tmpbranch[n_brs].lev.base = couple.base;
- tmpbranch[n_brs].lev.rand = couple.rand;
- tmpbranch[n_brs].type = yyvsp[-1].i;
- tmpbranch[n_brs].up = yyvsp[0].i;
- if (!check_branch())
- n_brs--;
- else
- tmpdungeon[n_dgns].branches++;
- Free(yyvsp[-4].str);
- } break;
- case 38: {
- init_branch();
- Strcpy(tmpbranch[n_brs].name, yyvsp[-5].str);
- tmpbranch[n_brs].chain = getchain(yyvsp[-4].str);
- tmpbranch[n_brs].lev.base = couple.base;
- tmpbranch[n_brs].lev.rand = couple.rand;
- tmpbranch[n_brs].type = yyvsp[-1].i;
- tmpbranch[n_brs].up = yyvsp[0].i;
- if (!check_branch())
- n_brs--;
- else
- tmpdungeon[n_dgns].branches++;
- Free(yyvsp[-5].str);
- Free(yyvsp[-4].str);
- } break;
- case 39: {
- yyval.i = TBR_STAIR; /* two way stair */
- } break;
- case 40: {
- yyval.i = TBR_STAIR; /* two way stair */
- } break;
- case 41: {
- yyval.i = TBR_NO_UP; /* no up staircase */
- } break;
- case 42: {
- yyval.i = TBR_NO_DOWN; /* no down staircase */
- } break;
- case 43: {
- yyval.i = TBR_PORTAL; /* portal connection */
- } break;
- case 44: {
- yyval.i = 0; /* defaults to down */
- } break;
- case 45: {
- yyval.i = yyvsp[0].i;
- } break;
- case 46: {
- char *p = yyvsp[0].str;
- if (strlen(p) != 1) {
- if (strcmp(p, "none") != 0)
- yyerror("Bones marker must be a single char, or \"none\"!");
- *p = '\0';
- }
- yyval.i = *p;
- Free(p);
- } break;
- case 47: {
- if (yyvsp[-3].i < -MAXLEVEL || yyvsp[-3].i > MAXLEVEL) {
- yyerror("Abs base out of dlevel range - zeroing!");
- couple.base = couple.rand = 0;
- } else if (yyvsp[-1].i < -1
- || ((yyvsp[-3].i < 0)
- ? (MAXLEVEL + yyvsp[-3].i + yyvsp[-1].i + 1)
- > MAXLEVEL
- : (yyvsp[-3].i + yyvsp[-1].i) > MAXLEVEL)) {
- yyerror("Abs range out of dlevel range - zeroing!");
- couple.base = couple.rand = 0;
- } else {
- couple.base = yyvsp[-3].i;
- couple.rand = yyvsp[-1].i;
- }
- } break;
- case 48: {
- if (yyvsp[-3].i < -MAXLEVEL || yyvsp[-3].i > MAXLEVEL) {
- yyerror("Rel base out of dlevel range - zeroing!");
- couple.base = couple.rand = 0;
- } else {
- couple.base = yyvsp[-3].i;
- couple.rand = yyvsp[-1].i;
- }
- } break;
- }
- yyssp -= yym;
- yystate = *yyssp;
- yyvsp -= yym;
- yym = yylhs[yyn];
- if (yystate == 0 && yym == 0) {
-#if YYDEBUG
- if (yydebug)
- printf("%sdebug: after reduction, shifting from state 0 to\
- state %d\n",
- YYPREFIX, YYFINAL);
-#endif
- yystate = YYFINAL;
- *++yyssp = YYFINAL;
- *++yyvsp = yyval;
- if (yychar < 0) {
- if ((yychar = yylex()) < 0)
- yychar = 0;
-#if YYDEBUG
- if (yydebug) {
- yys = 0;
- if (yychar <= YYMAXTOKEN)
- yys = yyname[yychar];
- if (!yys)
- yys = "illegal-symbol";
- printf("%sdebug: state %d, reading %d (%s)\n", YYPREFIX,
- YYFINAL, yychar, yys);
- }
-#endif
- }
- if (yychar == 0)
- goto yyaccept;
- goto yyloop;
- }
- if ((yyn = yygindex[yym]) != 0 && (yyn += yystate) >= 0
- && yyn <= YYTABLESIZE && yycheck[yyn] == yystate)
- yystate = yytable[yyn];
- else
- yystate = yydgoto[yym];
-#if YYDEBUG
- if (yydebug)
- printf("%sdebug: after reduction, shifting from state %d \
-to state %d\n",
- YYPREFIX, *yyssp, yystate);
-#endif
- if (yyssp >= yyss + yystacksize - 1) {
- goto yyoverflow;
- }
- *++yyssp = yystate;
- *++yyvsp = yyval;
- goto yyloop;
-yyoverflow:
- yyerror("yacc stack overflow");
-yyabort:
- return (1);
-yyaccept:
- return (0);
-}
-
-#line 3 "lex.yy.c"
-
-#define YY_INT_ALIGNED short int
-
/* 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
-#define YY_FLEX_SUBMINOR_VERSION 39
-#if YY_FLEX_SUBMINOR_VERSION > 0
-#define FLEX_BETA
-#endif
-/* First, we deal with platform-specific or compiler-specific issues. */
-
-/* begin standard C headers. */
#include <stdio.h>
-#include <string.h>
-#include <errno.h>
-#include <stdlib.h>
-
-/* end standard C headers. */
-
-/* flex integer type definitions */
-
-#ifndef FLEXINT_H
-#define FLEXINT_H
-/* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
-#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
-
-/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
- * if you want the limit (max/min) macros for int types.
- */
-#ifndef __STDC_LIMIT_MACROS
-#define __STDC_LIMIT_MACROS 1
-#endif
-
-#include <inttypes.h>
-typedef int8_t flex_int8_t;
-typedef uint8_t flex_uint8_t;
-typedef int16_t flex_int16_t;
-typedef uint16_t flex_uint16_t;
-typedef int32_t flex_int32_t;
-typedef uint32_t flex_uint32_t;
-#else
-typedef signed char flex_int8_t;
-typedef short int flex_int16_t;
-typedef int flex_int32_t;
-typedef unsigned char flex_uint8_t;
-typedef unsigned short int flex_uint16_t;
-typedef unsigned int flex_uint32_t;
-
-/* Limits of integral types. */
-#ifndef INT8_MIN
-#define INT8_MIN (-128)
-#endif
-#ifndef INT16_MIN
-#define INT16_MIN (-32767 - 1)
-#endif
-#ifndef INT32_MIN
-#define INT32_MIN (-2147483647 - 1)
-#endif
-#ifndef INT8_MAX
-#define INT8_MAX (127)
-#endif
-#ifndef INT16_MAX
-#define INT16_MAX (32767)
-#endif
-#ifndef INT32_MAX
-#define INT32_MAX (2147483647)
+/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
+#ifdef c_plusplus
+#ifndef __cplusplus
+#define __cplusplus
#endif
-#ifndef UINT8_MAX
-#define UINT8_MAX (255U)
#endif
-#ifndef UINT16_MAX
-#define UINT16_MAX (65535U)
-#endif
-#ifndef UINT32_MAX
-#define UINT32_MAX (4294967295U)
-#endif
-
-#endif /* ! C99 */
-#endif /* ! FLEXINT_H */
#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 */
+#else /* ! __cplusplus */
-/* C99 requires __STDC__ to be defined as 1. */
-#if defined(__STDC__)
+#if __STDC__
+#define YY_USE_PROTOS
#define YY_USE_CONST
-#endif /* defined (__STDC__) */
-#endif /* ! __cplusplus */
+#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
#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
* but we do it the disgusting crufty way forced on us by the ()-less
* definition of BEGIN.
*/
-#define BEGIN (yy_start) = 1 + 2 *
+#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 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_NEW_FILE yyrestart( yyin )
#define YY_END_OF_BUFFER_CHAR 0
/* Size of default input buffer. */
-#ifndef YY_BUF_SIZE
-#ifdef __ia64__
-/* On IA-64, the buffer size is 16k, not 8k.
- * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
- * Ditto for the __ia64__ case accordingly.
- */
-#define YY_BUF_SIZE 32768
-#else
#define YY_BUF_SIZE 16384
-#endif /* __ia64__ */
-#endif
-
-/* The state buf must be large enough to hold one state per character in the
- * main buffer.
- */
-#define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
-#ifndef YY_TYPEDEF_YY_BUFFER_STATE
-#define YY_TYPEDEF_YY_BUFFER_STATE
typedef struct yy_buffer_state *YY_BUFFER_STATE;
-#endif
-
-#ifndef YY_TYPEDEF_YY_SIZE_T
-#define YY_TYPEDEF_YY_SIZE_T
-typedef size_t yy_size_t;
-#endif
-
-extern yy_size_t yyleng;
+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
-#define YY_LESS_LINENO(n)
-#define YY_LINENO_REWIND_TO(ptr)
-
-/* Return all but the first "n" matched characters back to the input stream.
+/* 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.
*/
-#define yyless(n) \
- do { \
- /* Undo effects of setting up yytext. */ \
- int yyless_macro_arg = (n); \
- YY_LESS_LINENO(yyless_macro_arg); \
- *yy_cp = (yy_hold_char); \
- YY_RESTORE_YY_MORE_OFFSET(yy_c_buf_p) = yy_cp = \
- yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
- YY_DO_BEFORE_ACTION; /* set up yytext again */ \
- } while (0)
-
-#define unput(c) yyunput(c, (yytext_ptr))
-
-#ifndef YY_STRUCT_YY_BUFFER_STATE
-#define YY_STRUCT_YY_BUFFER_STATE
-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.
- */
- yy_size_t 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;
-
- int yy_bs_lineno; /**< The line count. */
- int yy_bs_column; /**< The column count. */
-
- /* Whether to try to fill the input buffer when we reach the
- * end of it.
- */
- int yy_fill_buffer;
-
- int yy_buffer_status;
+/* 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.
- */
+ /* 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
-};
-#endif /* !YY_STRUCT_YY_BUFFER_STATE */
+ };
-/* Stack of input buffers. */
-static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */
-static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */
-static YY_BUFFER_STATE *yy_buffer_stack = 0; /**< Stack as an array. */
+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".
- *
- * Returns the top of the stack, or NULL.
*/
-#define YY_CURRENT_BUFFER \
- ((yy_buffer_stack) ? (yy_buffer_stack)[(yy_buffer_stack_top)] : NULL)
+#define YY_CURRENT_BUFFER yy_current_buffer
-/* Same as previous macro, but useful when we know that the buffer stack is
- * not
- * NULL or when we need an lvalue. For internal use only.
- */
-#define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
/* yy_hold_char holds the character lost when yytext is formed. */
static char yy_hold_char;
-static yy_size_t yy_n_chars; /* number of characters read into yy_ch_buf */
-yy_size_t yyleng;
+
+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 = 0; /* whether we need to initialize */
-static int yy_start = 0; /* start state number */
+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(FILE *input_file);
-void yy_switch_to_buffer(YY_BUFFER_STATE new_buffer);
-YY_BUFFER_STATE yy_create_buffer(FILE *file, int size);
-void yy_delete_buffer(YY_BUFFER_STATE b);
-void yy_flush_buffer(YY_BUFFER_STATE b);
-void yypush_buffer_state(YY_BUFFER_STATE new_buffer);
-void yypop_buffer_state(void);
-
-static void yyensure_buffer_stack(void);
-static void yy_load_buffer_state(void);
-static void yy_init_buffer(YY_BUFFER_STATE b, FILE *file);
+void yyrestart YY_PROTO(( FILE *input_file ));
-#define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER)
+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(char *base, yy_size_t size);
-YY_BUFFER_STATE yy_scan_string(yyconst char *yy_str);
-YY_BUFFER_STATE yy_scan_bytes(yyconst char *bytes, yy_size_t len);
+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 ));
-void *yyalloc(yy_size_t);
-void *yyrealloc(void *, yy_size_t);
-void yyfree(void *);
+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) { \
- yyensure_buffer_stack(); \
- YY_CURRENT_BUFFER_LVALUE = yy_create_buffer(yyin, YY_BUF_SIZE); \
- } \
- YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
- }
+#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) { \
- yyensure_buffer_stack(); \
- YY_CURRENT_BUFFER_LVALUE = yy_create_buffer(yyin, YY_BUF_SIZE); \
- } \
- YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
- }
+#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_LVALUE->yy_at_bol)
-
-/* Begin user sect3 */
+#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 int yylineno;
-
-int yylineno = 1;
-
extern char *yytext;
#define yytext_ptr yytext
-static yy_state_type yy_get_previous_state(void);
-static yy_state_type yy_try_NUL_trans(yy_state_type current_state);
-static int yy_get_next_buffer(void);
-static void yy_fatal_error(yyconst char msg[]);
+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 = (size_t)(yy_cp - yy_bp); \
- (yy_hold_char) = *yy_cp; \
- *yy_cp = '\0'; \
- (yy_c_buf_p) = yy_cp;
+#define YY_DO_BEFORE_ACTION \
+ yytext_ptr = yy_bp; \
+ yyleng = (int) (yy_cp - yy_bp); \
+ yy_hold_char = *yy_cp; \
+ *yy_cp = '\0'; \
+ yy_c_buf_p = yy_cp;
#define YY_NUM_RULES 198
#define YY_END_OF_BUFFER 199
-/* This struct is not used in this scanner,
- but its presence is necessary. */
-struct yy_trans_info {
- flex_int32_t yy_verify;
- flex_int32_t yy_nxt;
-};
-static yyconst flex_int16_t yy_accept[1038] = {
- 0, 0, 0, 0, 0, 199, 197, 193, 192, 197, 197, 197, 197, 197, 197,
- 196, 182, 190, 197, 191, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196,
- 196, 196, 196, 196, 196, 196, 196, 196, 197, 196, 196, 196, 196, 196, 196,
- 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196,
- 196, 193, 197, 196, 2, 197, 193, 197, 197, 196, 182, 196, 196, 196, 196,
- 196, 196, 196, 196, 196, 196, 196, 196, 193, 197, 193, 192, 186, 0, 183,
- 184, 0, 0, 180, 196, 179, 181, 182, 196, 188, 187,
-
- 185, 189, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196,
- 196, 196, 196, 39, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196,
- 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 55, 196, 196, 0, 0,
- 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196,
- 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196,
- 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196,
- 196, 196, 196, 196, 196, 196, 196, 196, 196, 196,
-
- 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 153, 196, 196,
- 193, 0, 0, 3, 196, 2, 2, 0, 193, 0, 180, 196, 179, 182, 196,
- 196, 196, 196, 39, 196, 196, 196, 196, 196, 196, 193, 0, 2, 0, 0,
- 195, 0, 195, 177, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196,
- 196, 196, 54, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196,
- 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196,
- 196, 196, 196, 196, 196, 0, 196, 103, 196, 83,
-
- 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196,
- 196, 196, 196, 196, 196, 196, 79, 196, 196, 196, 196, 196, 196, 196, 196,
- 196, 196, 196, 196, 196, 196, 196, 196, 196, 81, 196, 196, 196, 196, 138,
- 196, 196, 196, 196, 127, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196,
- 196, 196, 196, 196, 196, 196, 16, 196, 196, 196, 196, 196, 196, 196, 196,
- 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196,
- 196, 125, 196, 196, 196, 196, 196, 196, 196, 196,
-
- 80, 196, 196, 196, 196, 196, 196, 196, 196, 194, 196, 196, 196, 58, 196,
- 196, 196, 22, 196, 40, 196, 41, 196, 196, 196, 196, 49, 196, 196, 196,
- 196, 56, 6, 196, 196, 196, 53, 196, 196, 196, 36, 196, 196, 196, 196,
- 42, 196, 35, 196, 196, 196, 196, 196, 21, 196, 0, 178, 196, 196, 196,
- 196, 196, 196, 196, 196, 196, 196, 196, 196, 159, 196, 196, 196, 196, 196,
- 196, 196, 196, 196, 196, 154, 157, 113, 196, 196, 196, 196, 196, 196, 196,
- 196, 196, 196, 196, 196, 69, 196, 196, 196, 196,
-
- 196, 196, 196, 196, 120, 196, 196, 67, 196, 196, 196, 196, 160, 196, 196,
- 196, 196, 196, 196, 196, 196, 196, 118, 196, 196, 196, 106, 196, 196, 196,
- 196, 196, 196, 196, 65, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196,
- 196, 196, 196, 196, 196, 196, 196, 196, 156, 196, 196, 196, 196, 196, 115,
- 15, 0, 196, 196, 196, 196, 196, 28, 196, 59, 196, 196, 196, 196, 196,
- 13, 196, 196, 196, 50, 196, 196, 7, 196, 196, 196, 196, 5, 196, 196,
- 196, 196, 196, 196, 196, 196, 196, 30, 196, 196,
-
- 196, 196, 196, 119, 152, 196, 196, 196, 146, 196, 196, 161, 196, 196, 196,
- 196, 196, 140, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 155, 196,
- 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196,
- 196, 196, 196, 196, 196, 196, 196, 196, 196, 11, 196, 196, 196, 196, 196,
- 196, 196, 112, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196,
- 124, 196, 12, 196, 196, 196, 196, 196, 196, 196, 82, 114, 196, 196, 196,
- 196, 196, 196, 196, 196, 128, 196, 196, 196, 196,
-
- 33, 196, 196, 196, 196, 196, 196, 196, 196, 196, 29, 196, 196, 196, 196,
- 196, 196, 17, 31, 196, 27, 196, 196, 196, 196, 57, 196, 196, 196, 196,
- 145, 96, 196, 196, 126, 110, 86, 196, 122, 72, 107, 196, 196, 196, 196,
- 164, 196, 196, 87, 196, 93, 129, 196, 74, 196, 196, 196, 196, 196, 196,
- 196, 196, 196, 196, 196, 196, 196, 134, 196, 196, 108, 196, 196, 196, 196,
- 196, 196, 196, 196, 196, 109, 167, 196, 196, 16, 196, 196, 196, 196, 77,
- 196, 116, 196, 196, 196, 196, 196, 111, 196, 196,
-
- 196, 151, 172, 196, 196, 78, 196, 196, 196, 196, 196, 196, 196, 196, 1,
- 57, 196, 196, 196, 60, 196, 196, 196, 196, 196, 196, 196, 4, 196, 19,
- 196, 196, 196, 196, 196, 62, 43, 196, 46, 26, 196, 162, 98, 196, 196,
- 196, 196, 196, 73, 158, 196, 196, 97, 196, 196, 196, 92, 196, 196, 196,
- 196, 144, 196, 196, 196, 196, 135, 196, 196, 196, 196, 196, 20, 63, 139,
- 137, 196, 196, 196, 196, 196, 196, 196, 117, 196, 131, 95, 196, 150, 196,
- 196, 196, 196, 196, 100, 47, 89, 196, 196, 196,
-
- 196, 196, 196, 45, 196, 196, 34, 61, 14, 8, 25, 196, 196, 196, 196,
- 196, 23, 196, 168, 196, 196, 196, 101, 176, 196, 66, 196, 75, 196, 196,
- 196, 196, 196, 196, 196, 196, 196, 196, 196, 149, 9, 196, 196, 196, 196,
- 143, 196, 85, 68, 196, 71, 196, 196, 196, 196, 175, 163, 130, 133, 196,
- 105, 18, 196, 51, 196, 196, 196, 196, 196, 196, 94, 141, 196, 196, 70,
- 173, 121, 196, 166, 196, 174, 91, 132, 84, 147, 148, 170, 196, 196, 99,
- 171, 90, 196, 64, 196, 10, 136, 24, 52, 196,
-
- 196, 196, 196, 196, 76, 88, 123, 104, 196, 165, 102, 196, 196, 196, 196,
- 196, 196, 196, 196, 37, 38, 196, 196, 196, 142, 169, 196, 196, 196, 196,
- 196, 196, 196, 48, 32, 44, 0
-};
-
-static yyconst flex_int32_t 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, 1, 1, 1, 1, 1, 1, 5, 6,
- 7, 8, 9, 10, 1, 11, 1, 1, 1, 12, 1, 13, 14, 1, 15, 15, 15,
- 15, 15, 15, 15, 15, 15, 15, 1, 1, 16, 17, 18, 1, 1, 19, 20, 21,
- 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38,
- 39, 40, 41, 42, 43, 44, 45, 46, 47, 1, 48, 1, 49, 50, 51, 52,
-
- 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69,
- 70, 71, 72, 73, 74, 14, 14, 14, 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, 1
-};
-
-static yyconst flex_int32_t
- yy_meta[75] = { 0, 1, 2, 3, 2, 2, 1, 1, 2, 1, 1, 1, 2, 4, 2, 4, 1, 1, 1,
- 5, 5, 5, 6, 6, 5, 6, 5, 5, 6, 5, 5, 6, 6, 6, 5, 6, 6, 5,
- 5, 6, 6, 5, 6, 6, 6, 1, 2, 1, 6, 6, 6, 6, 6, 6, 6, 6, 6,
- 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 5, 6, 6 };
-
-static yyconst flex_int16_t yy_base[1045] = {
- 0, 0, 73, 102, 77, 1235, 1236, 75, 1236, 1231, 1216, 1225,
- 0, 1185, 1215, 1214, 78, 66, 1211, 1210, 1196, 1189, 57, 63,
- 59, 64, 101, 0, 63, 79, 119, 94, 1204, 1190, 122, 123,
- 121, 1203, 104, 105, 100, 124, 90, 129, 137, 1155, 84, 117,
- 1157, 139, 150, 151, 151, 156, 1150, 163, 168, 166, 56, 1165,
- 1164, 232, 1213, 216, 1236, 1212, 242, 248, 251, 264, 196, 155,
- 167, 208, 228, 241, 1199, 249, 242, 195, 277, 284, 223, 319,
- 334, 257, 1236, 1236, 1206, 1236, 0, 1201, 1200, 1195, 0, 1194,
- 1236, 298, 1193, 1236, 1236,
-
- 1236, 1236, 1169, 263, 1169, 264, 1181, 1171, 1184, 1165, 1176, 1173,
- 1180, 270, 1166, 1164, 1166, 1176, 0, 1167, 1171, 1152, 1158, 1146,
- 1152, 1156, 1155, 1155, 280, 1157, 292, 1152, 301, 1150, 1143, 1149,
- 1161, 1159, 1151, 259, 0, 1158, 1146, 203, 304, 272, 1102, 1124,
- 1113, 1119, 1122, 288, 1102, 1106, 1102, 1105, 1104, 1116, 1098, 1100,
- 308, 1096, 1090, 1087, 1092, 1091, 1097, 1101, 1092, 1094, 1092, 1092,
- 234, 281, 296, 299, 1098, 1080, 1083, 1091, 1076, 81, 315, 1095,
- 324, 26, 1083, 1082, 1082, 1073, 330, 1083, 1087, 1073, 1089, 1084,
- 1087, 281, 333, 1080,
-
- 1082, 1078, 1070, 342, 323, 321, 1062, 1061, 1063, 1064, 345, 350,
- 0, 1061, 332, 407, 1123, 1122, 1236, 363, 1236, 1236, 1121, 411,
- 415, 416, 1108, 0, 412, 390, 396, 404, 415, 1107, 337, 410,
- 420, 417, 423, 424, 0, 0, 1236, 1118, 0, 1236, 1109, 1108,
- 1103, 1098, 1084, 1096, 1091, 1075, 1076, 1092, 1074, 1068, 1085, 1071,
- 1068, 1080, 0, 1072, 1082, 1071, 1079, 1060, 1061, 1076, 1074, 1062,
- 1072, 1057, 1070, 1055, 1068, 1071, 1041, 1065, 1057, 1048, 1063, 1057,
- 1053, 1051, 1057, 1051, 1052, 1042, 1039, 1053, 1039, 1040, 1043, 326,
- 1017, 0, 1022, 0,
-
- 1007, 1016, 1006, 1008, 999, 1003, 1001, 995, 1003, 380, 1010, 992,
- 996, 1007, 990, 996, 991, 1000, 987, 985, 989, 0, 982, 981,
- 991, 981, 994, 978, 995, 380, 990, 979, 389, 992, 969, 985,
- 986, 980, 968, 0, 983, 977, 980, 970, 0, 963, 964, 972,
- 975, 0, 968, 973, 962, 974, 964, 969, 968, 376, 967, 951,
- 958, 954, 955, 394, 947, 961, 960, 950, 962, 959, 948, 946,
- 950, 954, 390, 936, 947, 947, 951, 932, 949, 933, 936, 944,
- 930, 394, 938, 926, 944, 930, 925, 0, 926, 936, 919, 930,
- 923, 928, 916, 915,
-
- 0, 452, 446, 445, 951, 438, 447, 451, 452, 1236, 945, 959,
- 950, 0, 959, 950, 937, 0, 955, 0, 955, 0, 936, 934,
- 933, 947, 0, 946, 920, 944, 936, 0, 924, 945, 927, 924,
- 0, 927, 447, 939, 0, 940, 925, 924, 937, 933, 930, 0,
- 917, 919, 930, 916, 930, 0, 921, 465, 1236, 885, 880, 879,
- 891, 888, 889, 874, 888, 887, 875, 884, 883, 0, 882, 881,
- 866, 872, 878, 873, 869, 859, 866, 873, 0, 0, 0, 861,
- 875, 870, 869, 861, 418, 867, 862, 866, 860, 863, 848, 0,
- 901, 859, 838, 854,
-
- 846, 842, 853, 854, 0, 853, 837, 0, 851, 854, 840, 843,
- 0, 417, 833, 831, 825, 831, 839, 832, 845, 830, 0, 836,
- 831, 839, 0, 829, 835, 838, 818, 836, 413, 835, 0, 823,
- 812, 813, 817, 826, 810, 824, 828, 824, 806, 811, 803, 819,
- 814, 803, 806, 818, 802, 0, 799, 804, 806, 417, 805, 0,
- 1236, 858, 460, 841, 464, 465, 468, 0, 833, 0, 831, 835,
- 826, 819, 814, 0, 834, 825, 813, 0, 819, 813, 0, 829,
- 822, 827, 822, 0, 817, 824, 804, 811, 809, 807, 817, 804,
- 806, 0, 802, 808,
-
- 800, 805, 807, 0, 0, 777, 765, 775, 0, 774, 773, 0,
- 764, 762, 771, 762, 755, 0, 767, 767, 763, 764, 749, 766,
- 762, 746, 742, 435, 0, 758, 758, 756, 742, 745, 752, 752,
- 731, 750, 428, 742, 738, 740, 736, 741, 728, 744, 740, 741,
- 741, 724, 724, 737, 723, 735, 0, 734, 722, 736, 729, 717,
- 718, 732, 0, 727, 711, 705, 723, 712, 718, 714, 716, 711,
- 705, 721, 716, 0, 705, 0, 698, 698, 697, 696, 696, 709,
- 709, 436, 0, 707, 706, 701, 704, 689, 695, 692, 696, 0,
- 701, 717, 476, 477,
-
- 0, 718, 716, 710, 720, 719, 718, 711, 707, 723, 0, 711,
- 717, 709, 699, 691, 74, 0, 0, 110, 0, 207, 230, 474,
- 467, 0, 467, 472, 462, 457, 0, 0, 455, 456, 0, 0,
- 0, 449, 0, 0, 0, 448, 450, 460, 440, 0, 462, 463,
- 0, 451, 0, 0, 467, 0, 464, 463, 459, 473, 471, 471,
- 468, 463, 465, 475, 466, 480, 471, 0, 475, 481, 0, 465,
- 467, 485, 480, 468, 473, 487, 481, 480, 0, 0, 483, 480,
- 0, 471, 477, 483, 480, 0, 487, 505, 496, 486, 501, 488,
- 494, 0, 490, 500,
-
- 501, 0, 0, 502, 506, 0, 509, 500, 511, 511, 512, 513,
- 499, 519, 0, 554, 555, 548, 536, 0, 551, 542, 543, 544,
- 534, 544, 550, 0, 553, 0, 556, 545, 562, 536, 549, 0,
- 0, 548, 0, 0, 527, 0, 0, 535, 536, 537, 539, 539,
- 0, 0, 530, 526, 0, 535, 528, 531, 0, 545, 545, 538,
- 534, 0, 543, 544, 556, 543, 0, 541, 555, 541, 558, 558,
- 0, 0, 0, 0, 555, 550, 561, 555, 563, 544, 565, 1236,
- 566, 0, 0, 568, 0, 572, 559, 568, 564, 552, 0, 0,
- 0, 574, 575, 576,
-
- 576, 570, 595, 0, 607, 608, 0, 0, 0, 0, 0, 590,
- 616, 595, 604, 600, 0, 591, 0, 588, 589, 580, 0, 0,
- 580, 0, 584, 0, 593, 578, 591, 582, 600, 583, 598, 586,
- 591, 601, 589, 0, 0, 596, 602, 592, 607, 0, 608, 0,
- 0, 609, 0, 598, 601, 608, 605, 0, 0, 0, 0, 614,
- 0, 0, 644, 0, 645, 649, 651, 635, 649, 637, 0, 0,
- 606, 621, 0, 0, 0, 608, 0, 617, 0, 0, 0, 0,
- 0, 0, 0, 616, 611, 0, 0, 0, 613, 0, 613, 0,
- 0, 0, 0, 652,
-
- 653, 648, 649, 663, 0, 0, 0, 0, 634, 0, 0, 635,
- 666, 660, 664, 656, 668, 642, 643, 0, 0, 674, 678, 671,
- 0, 0, 666, 673, 668, 666, 671, 672, 668, 0, 0, 0,
- 1236, 705, 707, 713, 716, 722, 727, 732
-};
-
-static yyconst flex_int16_t yy_def[1045] = {
- 0, 1037, 1, 1, 3, 1037, 1037, 1037, 1037, 1037, 1037, 1038,
- 1039, 1040, 1037, 1041, 1041, 1037, 1037, 1037, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1037, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1037, 1042, 1041, 1037, 1037, 1043, 1043, 1043, 1041, 69, 69,
- 69, 69, 1041, 69, 69, 69, 69, 69, 69, 69, 69, 1043,
- 1042, 1037, 1037, 1037, 1038, 1037, 1039, 1037, 1044, 1037, 1041, 1041,
- 1037, 1041, 1041, 1037, 1037,
-
- 1037, 1037, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1037, 1037, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041,
-
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1037, 1042, 1042, 1037, 1041, 1037, 1037, 1037, 83,
- 83, 83, 69, 69, 69, 69, 69, 1041, 69, 69, 69, 69,
- 69, 69, 69, 69, 83, 84, 1037, 1042, 84, 1037, 1037, 1037,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1037,
- 1041, 1041, 1041, 1041,
-
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041,
-
- 1041, 1041, 69, 69, 1041, 69, 69, 69, 69, 1037, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1037, 1037, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041,
-
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1037, 1037, 69, 1041, 69, 69, 69, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041,
-
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 69, 69,
-
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041,
-
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 69, 69, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1037,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041,
-
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041,
-
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 0, 1037, 1037, 1037, 1037, 1037, 1037, 1037
-};
-
-static yyconst flex_int16_t yy_nxt[1311] = {
- 0, 6, 7, 8, 9, 7, 10, 11, 6, 12, 6, 13,
- 14, 15, 6, 16, 17, 18, 19, 20, 21, 22, 23, 24,
- 25, 26, 27, 28, 27, 27, 29, 30, 31, 32, 33, 27,
- 34, 35, 36, 27, 27, 37, 27, 27, 27, 38, 6, 6,
- 27, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 27,
- 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60,
- 27, 27, 27, 61, 105, 85, 61, 61, 85, 62, 83, 99,
- 100, 84, 107, 119, 96, 110, 106, 111, 355, 97, 113, 120,
- 108, 114, 121, 109, 356,
-
- 112, 122, 115, 63, 64, 65, 66, 63, 144, 67, 832, 123,
- 128, 68, 69, 67, 70, 212, 145, 213, 71, 72, 73, 116,
- 74, 75, 129, 76, 77, 98, 76, 78, 175, 117, 346, 79,
- 118, 124, 80, 81, 132, 125, 82, 140, 133, 126, 176, 67,
- 135, 136, 347, 127, 163, 141, 134, 164, 142, 833, 165, 152,
- 137, 138, 153, 139, 146, 154, 147, 177, 155, 227, 148, 149,
- 156, 76, 150, 151, 157, 166, 178, 158, 159, 227, 179, 160,
- 230, 170, 161, 181, 167, 171, 168, 182, 162, 172, 169, 183,
- 173, 185, 186, 189,
-
- 192, 184, 104, 190, 194, 96, 187, 144, 195, 227, 229, 198,
- 188, 191, 193, 199, 203, 145, 209, 200, 204, 196, 227, 205,
- 201, 202, 231, 131, 210, 834, 206, 211, 207, 216, 220, 208,
- 216, 227, 125, 217, 106, 240, 126, 85, 222, 223, 224, 98,
- 127, 1037, 222, 223, 1037, 222, 223, 227, 227, 110, 85, 232,
- 235, 85, 835, 227, 122, 226, 222, 223, 225, 112, 233, 225,
- 234, 114, 123, 225, 227, 225, 228, 115, 120, 251, 227, 227,
- 227, 252, 331, 227, 292, 227, 227, 227, 227, 227, 293, 254,
- 332, 227, 227, 255,
-
- 227, 227, 236, 237, 227, 263, 140, 96, 264, 225, 278, 279,
- 97, 296, 238, 138, 141, 239, 145, 142, 216, 222, 223, 241,
- 281, 284, 242, 282, 297, 333, 456, 298, 373, 334, 285, 227,
- 243, 244, 245, 299, 305, 245, 374, 335, 306, 245, 245, 245,
- 245, 98, 307, 227, 245, 245, 245, 336, 316, 245, 270, 245,
- 245, 337, 245, 245, 338, 339, 340, 245, 317, 318, 245, 245,
- 457, 319, 245, 348, 349, 352, 361, 245, 387, 362, 350, 375,
- 353, 385, 354, 376, 386, 388, 363, 364, 382, 393, 383, 365,
- 402, 366, 400, 401,
-
- 395, 384, 377, 396, 227, 245, 273, 397, 216, 398, 227, 216,
- 85, 394, 217, 224, 1037, 1037, 225, 225, 225, 96, 225, 225,
- 227, 405, 229, 403, 260, 227, 226, 227, 404, 406, 227, 407,
- 469, 227, 227, 489, 493, 470, 516, 517, 522, 534, 523, 490,
- 287, 408, 546, 288, 227, 409, 561, 562, 547, 535, 494, 227,
- 227, 227, 423, 98, 563, 227, 227, 414, 589, 456, 631, 653,
- 671, 565, 227, 672, 654, 695, 227, 227, 590, 567, 227, 632,
- 696, 699, 749, 760, 566, 804, 227, 227, 805, 761, 700, 568,
- 836, 837, 750, 598,
-
- 817, 816, 838, 839, 840, 841, 842, 843, 844, 845, 846, 457,
- 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858,
- 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870,
- 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882,
- 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894,
- 895, 896, 897, 898, 899, 900, 901, 902, 227, 227, 903, 904,
- 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916,
- 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928,
- 929, 840, 930, 931,
-
- 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943,
- 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955,
- 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967,
- 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979,
- 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991,
- 992, 993, 994, 995, 996, 997, 998, 999, 1000, 1001, 1002, 1003,
- 1004, 1005, 1006, 1007, 1008, 1009, 1010, 1011, 1012, 1013, 1014, 1015,
- 1016, 1017, 1018, 1019, 1020, 1021, 1022, 1023, 1024, 1025, 1026, 1027,
- 1028, 1029, 1030, 1031,
-
- 1032, 1033, 1034, 1035, 1036, 88, 88, 88, 88, 88, 88, 90,
- 90, 91, 91, 831, 91, 91, 91, 94, 94, 94, 218, 218,
- 218, 218, 218, 218, 225, 225, 225, 225, 247, 247, 830, 247,
- 247, 247, 829, 828, 827, 826, 825, 824, 823, 822, 821, 820,
- 819, 818, 815, 814, 813, 812, 811, 810, 809, 808, 807, 806,
- 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, 775, 774, 773, 772, 771, 770, 769, 768,
- 767, 766, 765, 764,
-
- 763, 762, 759, 758, 757, 756, 755, 754, 753, 752, 751, 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, 713, 712,
- 711, 710, 709, 708, 707, 706, 705, 704, 703, 702, 701, 698,
- 561, 697, 694, 693, 692, 691, 690, 689, 688, 687, 686, 685,
- 684, 683, 682, 681, 680, 679, 678, 677, 676, 675, 674, 673,
- 670, 669, 668, 667, 666, 665, 664, 663, 662, 661, 660, 659,
- 658, 657, 656, 655,
-
- 652, 651, 650, 649, 648, 647, 646, 645, 644, 643, 642, 641,
- 640, 639, 638, 637, 636, 635, 634, 633, 630, 629, 628, 627,
- 626, 625, 624, 623, 622, 621, 620, 619, 618, 617, 616, 615,
- 614, 613, 612, 611, 610, 609, 608, 607, 606, 605, 604, 603,
- 602, 601, 600, 599, 598, 597, 596, 595, 594, 593, 592, 591,
- 588, 587, 586, 585, 584, 583, 582, 581, 580, 579, 578, 577,
- 576, 575, 574, 573, 572, 571, 570, 569, 568, 564, 560, 559,
- 558, 557, 556, 555, 554, 553, 552, 551, 550, 549, 548, 545,
- 544, 543, 542, 541,
-
- 540, 539, 538, 537, 536, 533, 532, 531, 530, 529, 528, 527,
- 526, 525, 524, 521, 520, 519, 518, 437, 515, 514, 513, 512,
- 511, 510, 509, 508, 507, 506, 505, 504, 503, 502, 501, 500,
- 499, 498, 497, 496, 495, 492, 491, 488, 487, 486, 485, 484,
- 483, 482, 481, 480, 479, 478, 477, 476, 475, 474, 473, 472,
- 471, 468, 467, 466, 465, 464, 463, 462, 461, 460, 459, 458,
- 455, 454, 453, 452, 451, 450, 449, 448, 447, 446, 445, 444,
- 443, 442, 441, 440, 439, 438, 437, 436, 435, 434, 433, 432,
- 431, 430, 429, 428,
-
- 427, 426, 425, 424, 423, 422, 421, 420, 419, 418, 417, 416,
- 415, 414, 413, 412, 411, 249, 410, 410, 243, 227, 227, 222,
- 219, 219, 399, 392, 391, 390, 389, 381, 380, 379, 378, 372,
- 371, 370, 369, 368, 367, 360, 359, 358, 357, 351, 345, 344,
- 343, 342, 341, 330, 329, 328, 327, 326, 325, 324, 323, 322,
- 321, 320, 315, 314, 313, 312, 311, 310, 309, 308, 304, 303,
- 302, 301, 300, 295, 294, 291, 290, 289, 288, 287, 286, 283,
- 280, 277, 276, 275, 274, 273, 272, 271, 270, 269, 268, 267,
- 266, 265, 262, 261,
-
- 260, 259, 258, 257, 256, 253, 250, 249, 95, 93, 248, 246,
- 89, 227, 221, 219, 215, 214, 197, 180, 174, 143, 131, 130,
- 104, 103, 102, 101, 95, 93, 92, 89, 87, 86, 1037, 5,
- 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037,
- 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037,
- 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037,
- 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037,
- 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037,
- 1037, 1037, 1037, 1037,
-
- 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037
-};
-
-static yyconst flex_int16_t yy_chk[1311] = {
- 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, 1, 1,
- 1, 1, 1, 2, 22, 7, 2, 4, 7, 2, 4, 17,
- 17, 4, 23, 28, 16, 24, 22, 24, 186, 16, 25, 28,
- 23, 25, 29, 23, 186,
-
- 24, 29, 25, 2, 3, 3, 3, 4, 38, 3, 717, 29,
- 31, 3, 3, 3, 3, 58, 38, 58, 3, 3, 3, 26,
- 3, 3, 31, 3, 3, 16, 3, 3, 46, 26, 182, 3,
- 26, 30, 3, 3, 34, 30, 3, 36, 34, 30, 46, 3,
- 35, 35, 182, 30, 42, 36, 34, 42, 36, 720, 42, 40,
- 35, 35, 40, 35, 39, 40, 39, 47, 40, 71, 39, 39,
- 41, 3, 39, 39, 41, 43, 47, 41, 41, 72, 47, 41,
- 71, 44, 41, 49, 43, 44, 43, 49, 41, 44, 43, 49,
- 44, 50, 50, 51,
-
- 52, 49, 72, 51, 53, 70, 50, 144, 53, 79, 70, 55,
- 50, 51, 52, 55, 56, 144, 57, 55, 56, 53, 73, 56,
- 55, 55, 73, 79, 57, 722, 56, 57, 56, 61, 63, 56,
- 61, 82, 63, 61, 73, 82, 63, 66, 66, 66, 66, 70,
- 63, 67, 67, 67, 68, 68, 68, 75, 78, 74, 85, 74,
- 78, 85, 723, 77, 78, 68, 69, 69, 69, 74, 75, 69,
- 77, 75, 78, 69, 69, 69, 69, 75, 77, 104, 69, 69,
- 69, 104, 173, 69, 140, 69, 69, 80, 69, 69, 140, 106,
- 173, 69, 81, 106,
-
- 69, 69, 80, 80, 69, 114, 81, 97, 114, 69, 129, 129,
- 97, 145, 80, 80, 81, 80, 145, 81, 83, 83, 83, 83,
- 131, 133, 83, 131, 146, 174, 296, 146, 198, 174, 133, 69,
- 84, 84, 84, 146, 152, 84, 198, 174, 152, 84, 84, 84,
- 84, 97, 152, 235, 84, 84, 84, 175, 161, 84, 235, 84,
- 84, 175, 84, 84, 176, 176, 176, 84, 161, 161, 84, 84,
- 296, 161, 84, 183, 183, 185, 191, 84, 206, 191, 183, 199,
- 185, 205, 185, 199, 205, 206, 191, 191, 204, 211, 204, 191,
- 220, 191, 215, 215,
-
- 212, 204, 199, 212, 230, 84, 220, 212, 216, 212, 231, 216,
- 224, 211, 216, 224, 225, 226, 224, 225, 226, 229, 225, 226,
- 236, 232, 229, 230, 232, 233, 226, 238, 231, 233, 237, 238,
- 310, 239, 240, 330, 333, 310, 358, 358, 364, 375, 364, 330,
- 236, 239, 386, 237, 406, 240, 402, 402, 386, 375, 333, 404,
- 403, 407, 406, 229, 403, 408, 409, 404, 439, 456, 489, 514,
- 533, 407, 563, 533, 514, 558, 565, 566, 439, 409, 567, 489,
- 558, 566, 628, 639, 408, 686, 699, 700, 686, 639, 567, 563,
- 724, 725, 628, 565,
-
- 700, 699, 727, 728, 729, 730, 733, 734, 738, 742, 743, 456,
- 744, 745, 747, 748, 750, 753, 755, 756, 757, 758, 759, 760,
- 761, 762, 763, 764, 765, 766, 767, 769, 770, 772, 773, 774,
- 775, 776, 777, 778, 779, 780, 783, 784, 786, 787, 788, 789,
- 791, 792, 793, 794, 795, 796, 797, 799, 800, 801, 804, 805,
- 807, 808, 809, 810, 811, 812, 813, 814, 816, 817, 818, 819,
- 821, 822, 823, 824, 825, 826, 827, 829, 831, 832, 833, 834,
- 835, 838, 841, 844, 845, 846, 847, 848, 851, 852, 854, 855,
- 856, 817, 858, 859,
-
- 860, 861, 863, 864, 865, 866, 868, 869, 870, 871, 872, 877,
- 878, 879, 880, 881, 882, 883, 885, 888, 890, 891, 892, 893,
- 894, 898, 899, 900, 901, 902, 903, 905, 906, 912, 913, 914,
- 915, 916, 918, 920, 921, 922, 925, 927, 929, 930, 931, 932,
- 933, 934, 935, 936, 937, 938, 939, 942, 943, 944, 945, 947,
- 950, 952, 953, 954, 955, 960, 963, 965, 966, 967, 968, 969,
- 970, 973, 974, 978, 980, 988, 989, 993, 995, 1000, 1001, 1002,
- 1003, 1004, 1009, 1012, 1013, 1014, 1015, 1016, 1017, 1018, 1019, 1022,
- 1023, 1024, 1027, 1028,
-
- 1029, 1030, 1031, 1032, 1033, 1038, 1038, 1038, 1038, 1038, 1038, 1039,
- 1039, 1040, 1040, 716, 1040, 1040, 1040, 1041, 1041, 1041, 1042, 1042,
- 1042, 1042, 1042, 1042, 1043, 1043, 1043, 1043, 1044, 1044, 715, 1044,
- 1044, 1044, 714, 713, 712, 710, 709, 708, 707, 706, 705, 704,
- 703, 702, 698, 697, 695, 694, 693, 692, 691, 690, 689, 688,
- 685, 684, 683, 682, 681, 680, 679, 677, 675, 674, 673, 672,
- 671, 670, 669, 668, 667, 666, 665, 664, 662, 661, 660, 659,
- 658, 657, 656, 654, 653, 652, 651, 650, 649, 648, 647, 646,
- 645, 644, 643, 642,
-
- 641, 640, 638, 637, 636, 635, 634, 633, 632, 631, 630, 627,
- 626, 625, 624, 623, 622, 621, 620, 619, 617, 616, 615, 614,
- 613, 611, 610, 608, 607, 606, 603, 602, 601, 600, 599, 597,
- 596, 595, 594, 593, 592, 591, 590, 589, 587, 586, 585, 584,
- 582, 581, 579, 578, 577, 575, 574, 573, 572, 571, 569, 564,
- 562, 559, 557, 556, 555, 553, 552, 551, 550, 549, 548, 547,
- 546, 545, 544, 543, 542, 541, 540, 539, 538, 537, 536, 534,
- 532, 531, 530, 529, 528, 526, 525, 524, 522, 521, 520, 519,
- 518, 517, 516, 515,
-
- 512, 511, 510, 509, 507, 506, 504, 503, 502, 501, 500, 499,
- 498, 497, 495, 494, 493, 492, 491, 490, 488, 487, 486, 485,
- 484, 480, 479, 478, 477, 476, 475, 474, 473, 472, 471, 469,
- 468, 467, 466, 465, 464, 463, 462, 461, 460, 459, 458, 455,
- 453, 452, 451, 450, 449, 447, 446, 445, 444, 443, 442, 440,
- 438, 436, 435, 434, 433, 431, 430, 429, 428, 426, 425, 424,
- 423, 421, 419, 417, 416, 415, 413, 412, 411, 405, 400, 399,
- 398, 397, 396, 395, 394, 393, 391, 390, 389, 388, 387, 385,
- 384, 383, 382, 381,
-
- 380, 379, 378, 377, 376, 374, 373, 372, 371, 370, 369, 368,
- 367, 366, 365, 363, 362, 361, 360, 359, 357, 356, 355, 354,
- 353, 352, 351, 349, 348, 347, 346, 344, 343, 342, 341, 339,
- 338, 337, 336, 335, 334, 332, 331, 329, 328, 327, 326, 325,
- 324, 323, 321, 320, 319, 318, 317, 316, 315, 314, 313, 312,
- 311, 309, 308, 307, 306, 305, 304, 303, 302, 301, 299, 297,
- 295, 294, 293, 292, 291, 290, 289, 288, 287, 286, 285, 284,
- 283, 282, 281, 280, 279, 278, 277, 276, 275, 274, 273, 272,
- 271, 270, 269, 268,
-
- 267, 266, 265, 264, 262, 261, 260, 259, 258, 257, 256, 255,
- 254, 253, 252, 251, 250, 249, 248, 247, 244, 234, 227, 223,
- 218, 217, 214, 210, 209, 208, 207, 203, 202, 201, 200, 197,
- 196, 195, 194, 193, 192, 190, 189, 188, 187, 184, 181, 180,
- 179, 178, 177, 172, 171, 170, 169, 168, 167, 166, 165, 164,
- 163, 162, 160, 159, 158, 157, 156, 155, 154, 153, 151, 150,
- 149, 148, 147, 143, 142, 139, 138, 137, 136, 135, 134, 132,
- 130, 128, 127, 126, 125, 124, 123, 122, 121, 120, 118, 117,
- 116, 115, 113, 112,
-
- 111, 110, 109, 108, 107, 105, 103, 98, 95, 93, 92, 91,
- 88, 76, 65, 62, 60, 59, 54, 48, 45, 37, 33, 32,
- 21, 20, 19, 18, 15, 14, 13, 11, 10, 9, 5, 1037,
- 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037,
- 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037,
- 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037,
- 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037,
- 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037,
- 1037, 1037, 1037, 1037,
-
- 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037
-};
+static yyconst short int yy_accept[1038] =
+ { 0,
+ 0, 0, 0, 0, 199, 197, 193, 192, 197, 197,
+ 197, 197, 197, 197, 196, 182, 190, 197, 191, 196,
+ 196, 196, 196, 196, 196, 196, 196, 196, 196, 196,
+ 196, 196, 196, 196, 196, 196, 196, 197, 196, 196,
+ 196, 196, 196, 196, 196, 196, 196, 196, 196, 196,
+ 196, 196, 196, 196, 196, 196, 196, 196, 196, 196,
+ 193, 197, 196, 2, 197, 193, 197, 197, 196, 182,
+ 196, 196, 196, 196, 196, 196, 196, 196, 196, 196,
+ 196, 196, 193, 197, 193, 192, 186, 0, 183, 184,
+ 0, 0, 180, 196, 179, 181, 182, 196, 188, 187,
+
+ 185, 189, 196, 196, 196, 196, 196, 196, 196, 196,
+ 196, 196, 196, 196, 196, 196, 196, 196, 39, 196,
+ 196, 196, 196, 196, 196, 196, 196, 196, 196, 196,
+ 196, 196, 196, 196, 196, 196, 196, 196, 196, 196,
+ 55, 196, 196, 0, 0, 196, 196, 196, 196, 196,
+ 196, 196, 196, 196, 196, 196, 196, 196, 196, 196,
+ 196, 196, 196, 196, 196, 196, 196, 196, 196, 196,
+ 196, 196, 196, 196, 196, 196, 196, 196, 196, 196,
+ 196, 196, 196, 196, 196, 196, 196, 196, 196, 196,
+ 196, 196, 196, 196, 196, 196, 196, 196, 196, 196,
+
+ 196, 196, 196, 196, 196, 196, 196, 196, 196, 196,
+ 196, 196, 153, 196, 196, 193, 0, 0, 3, 196,
+ 2, 2, 0, 193, 0, 180, 196, 179, 182, 196,
+ 196, 196, 196, 39, 196, 196, 196, 196, 196, 196,
+ 193, 0, 2, 0, 0, 195, 0, 195, 177, 196,
+ 196, 196, 196, 196, 196, 196, 196, 196, 196, 196,
+ 196, 196, 54, 196, 196, 196, 196, 196, 196, 196,
+ 196, 196, 196, 196, 196, 196, 196, 196, 196, 196,
+ 196, 196, 196, 196, 196, 196, 196, 196, 196, 196,
+ 196, 196, 196, 196, 196, 0, 196, 103, 196, 83,
+
+ 196, 196, 196, 196, 196, 196, 196, 196, 196, 196,
+ 196, 196, 196, 196, 196, 196, 196, 196, 196, 196,
+ 196, 79, 196, 196, 196, 196, 196, 196, 196, 196,
+ 196, 196, 196, 196, 196, 196, 196, 196, 196, 81,
+ 196, 196, 196, 196, 138, 196, 196, 196, 196, 127,
+ 196, 196, 196, 196, 196, 196, 196, 196, 196, 196,
+ 196, 196, 196, 196, 196, 196, 16, 196, 196, 196,
+ 196, 196, 196, 196, 196, 196, 196, 196, 196, 196,
+ 196, 196, 196, 196, 196, 196, 196, 196, 196, 196,
+ 196, 125, 196, 196, 196, 196, 196, 196, 196, 196,
+
+ 80, 196, 196, 196, 196, 196, 196, 196, 196, 194,
+ 196, 196, 196, 58, 196, 196, 196, 22, 196, 40,
+ 196, 41, 196, 196, 196, 196, 49, 196, 196, 196,
+ 196, 56, 6, 196, 196, 196, 53, 196, 196, 196,
+ 36, 196, 196, 196, 196, 42, 196, 35, 196, 196,
+ 196, 196, 196, 21, 196, 0, 178, 196, 196, 196,
+ 196, 196, 196, 196, 196, 196, 196, 196, 196, 159,
+ 196, 196, 196, 196, 196, 196, 196, 196, 196, 196,
+ 154, 157, 113, 196, 196, 196, 196, 196, 196, 196,
+ 196, 196, 196, 196, 196, 69, 196, 196, 196, 196,
+
+ 196, 196, 196, 196, 120, 196, 196, 67, 196, 196,
+ 196, 196, 160, 196, 196, 196, 196, 196, 196, 196,
+ 196, 196, 118, 196, 196, 196, 106, 196, 196, 196,
+ 196, 196, 196, 196, 65, 196, 196, 196, 196, 196,
+ 196, 196, 196, 196, 196, 196, 196, 196, 196, 196,
+ 196, 196, 196, 156, 196, 196, 196, 196, 196, 115,
+ 15, 0, 196, 196, 196, 196, 196, 28, 196, 59,
+ 196, 196, 196, 196, 196, 13, 196, 196, 196, 50,
+ 196, 196, 7, 196, 196, 196, 196, 5, 196, 196,
+ 196, 196, 196, 196, 196, 196, 196, 30, 196, 196,
+
+ 196, 196, 196, 119, 152, 196, 196, 196, 146, 196,
+ 196, 161, 196, 196, 196, 196, 196, 140, 196, 196,
+ 196, 196, 196, 196, 196, 196, 196, 196, 155, 196,
+ 196, 196, 196, 196, 196, 196, 196, 196, 196, 196,
+ 196, 196, 196, 196, 196, 196, 196, 196, 196, 196,
+ 196, 196, 196, 196, 11, 196, 196, 196, 196, 196,
+ 196, 196, 112, 196, 196, 196, 196, 196, 196, 196,
+ 196, 196, 196, 196, 196, 124, 196, 12, 196, 196,
+ 196, 196, 196, 196, 196, 82, 114, 196, 196, 196,
+ 196, 196, 196, 196, 196, 128, 196, 196, 196, 196,
+
+ 33, 196, 196, 196, 196, 196, 196, 196, 196, 196,
+ 29, 196, 196, 196, 196, 196, 196, 17, 31, 196,
+ 27, 196, 196, 196, 196, 57, 196, 196, 196, 196,
+ 145, 96, 196, 196, 126, 110, 86, 196, 122, 72,
+ 107, 196, 196, 196, 196, 164, 196, 196, 87, 196,
+ 93, 129, 196, 74, 196, 196, 196, 196, 196, 196,
+ 196, 196, 196, 196, 196, 196, 196, 134, 196, 196,
+ 108, 196, 196, 196, 196, 196, 196, 196, 196, 196,
+ 109, 167, 196, 196, 16, 196, 196, 196, 196, 77,
+ 196, 116, 196, 196, 196, 196, 196, 111, 196, 196,
+
+ 196, 151, 172, 196, 196, 78, 196, 196, 196, 196,
+ 196, 196, 196, 196, 1, 57, 196, 196, 196, 60,
+ 196, 196, 196, 196, 196, 196, 196, 4, 196, 19,
+ 196, 196, 196, 196, 196, 62, 43, 196, 46, 26,
+ 196, 162, 98, 196, 196, 196, 196, 196, 73, 158,
+ 196, 196, 97, 196, 196, 196, 92, 196, 196, 196,
+ 196, 144, 196, 196, 196, 196, 135, 196, 196, 196,
+ 196, 196, 20, 63, 139, 137, 196, 196, 196, 196,
+ 196, 196, 196, 117, 196, 131, 95, 196, 150, 196,
+ 196, 196, 196, 196, 100, 47, 89, 196, 196, 196,
+
+ 196, 196, 196, 45, 196, 196, 34, 61, 14, 8,
+ 25, 196, 196, 196, 196, 196, 23, 196, 168, 196,
+ 196, 196, 101, 176, 196, 66, 196, 75, 196, 196,
+ 196, 196, 196, 196, 196, 196, 196, 196, 196, 149,
+ 9, 196, 196, 196, 196, 143, 196, 85, 68, 196,
+ 71, 196, 196, 196, 196, 175, 163, 130, 133, 196,
+ 105, 18, 196, 51, 196, 196, 196, 196, 196, 196,
+ 94, 141, 196, 196, 70, 173, 121, 196, 166, 196,
+ 174, 91, 132, 84, 147, 148, 170, 196, 196, 99,
+ 171, 90, 196, 64, 196, 10, 136, 24, 52, 196,
+
+ 196, 196, 196, 196, 76, 88, 123, 104, 196, 165,
+ 102, 196, 196, 196, 196, 196, 196, 196, 196, 37,
+ 38, 196, 196, 196, 142, 169, 196, 196, 196, 196,
+ 196, 196, 196, 48, 32, 44, 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, 1, 1, 1, 1, 1,
+ 1, 5, 6, 7, 8, 9, 10, 1, 11, 1,
+ 1, 1, 12, 1, 13, 14, 1, 15, 15, 15,
+ 15, 15, 15, 15, 15, 15, 15, 1, 1, 16,
+ 17, 18, 1, 1, 19, 20, 21, 22, 23, 24,
+ 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
+ 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
+ 45, 46, 47, 1, 48, 1, 49, 50, 51, 52,
+
+ 53, 54, 55, 56, 57, 58, 59, 60, 61, 62,
+ 63, 64, 65, 66, 67, 68, 69, 70, 71, 72,
+ 73, 74, 14, 14, 14, 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, 1
+ } ;
+
+static yyconst int yy_meta[75] =
+ { 0,
+ 1, 2, 3, 2, 2, 1, 1, 2, 1, 1,
+ 1, 2, 4, 2, 4, 1, 1, 1, 5, 5,
+ 5, 6, 6, 5, 6, 5, 5, 6, 5, 5,
+ 6, 6, 6, 5, 6, 6, 5, 5, 6, 6,
+ 5, 6, 6, 6, 1, 2, 1, 6, 6, 6,
+ 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
+ 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
+ 6, 5, 6, 6
+ } ;
+
+static yyconst short int yy_base[1045] =
+ { 0,
+ 0, 73, 102, 77, 1235, 1236, 75, 1236, 1231, 1216,
+ 1225, 0, 1185, 1215, 1214, 78, 66, 1211, 1210, 1196,
+ 1189, 57, 63, 59, 64, 101, 0, 63, 79, 119,
+ 94, 1204, 1190, 122, 123, 121, 1203, 104, 105, 100,
+ 124, 90, 129, 137, 1155, 84, 117, 1157, 139, 150,
+ 151, 151, 156, 1150, 163, 168, 166, 56, 1165, 1164,
+ 232, 1213, 216, 1236, 1212, 242, 248, 251, 264, 196,
+ 155, 167, 208, 228, 241, 1199, 249, 242, 195, 277,
+ 284, 223, 319, 334, 257, 1236, 1236, 1206, 1236, 0,
+ 1201, 1200, 1195, 0, 1194, 1236, 298, 1193, 1236, 1236,
+
+ 1236, 1236, 1169, 263, 1169, 264, 1181, 1171, 1184, 1165,
+ 1176, 1173, 1180, 270, 1166, 1164, 1166, 1176, 0, 1167,
+ 1171, 1152, 1158, 1146, 1152, 1156, 1155, 1155, 280, 1157,
+ 292, 1152, 301, 1150, 1143, 1149, 1161, 1159, 1151, 259,
+ 0, 1158, 1146, 203, 304, 272, 1102, 1124, 1113, 1119,
+ 1122, 288, 1102, 1106, 1102, 1105, 1104, 1116, 1098, 1100,
+ 308, 1096, 1090, 1087, 1092, 1091, 1097, 1101, 1092, 1094,
+ 1092, 1092, 234, 281, 296, 299, 1098, 1080, 1083, 1091,
+ 1076, 81, 315, 1095, 324, 26, 1083, 1082, 1082, 1073,
+ 330, 1083, 1087, 1073, 1089, 1084, 1087, 281, 333, 1080,
+
+ 1082, 1078, 1070, 342, 323, 321, 1062, 1061, 1063, 1064,
+ 345, 350, 0, 1061, 332, 407, 1123, 1122, 1236, 363,
+ 1236, 1236, 1121, 411, 415, 416, 1108, 0, 412, 390,
+ 396, 404, 415, 1107, 337, 410, 420, 417, 423, 424,
+ 0, 0, 1236, 1118, 0, 1236, 1109, 1108, 1103, 1098,
+ 1084, 1096, 1091, 1075, 1076, 1092, 1074, 1068, 1085, 1071,
+ 1068, 1080, 0, 1072, 1082, 1071, 1079, 1060, 1061, 1076,
+ 1074, 1062, 1072, 1057, 1070, 1055, 1068, 1071, 1041, 1065,
+ 1057, 1048, 1063, 1057, 1053, 1051, 1057, 1051, 1052, 1042,
+ 1039, 1053, 1039, 1040, 1043, 326, 1017, 0, 1022, 0,
+
+ 1007, 1016, 1006, 1008, 999, 1003, 1001, 995, 1003, 380,
+ 1010, 992, 996, 1007, 990, 996, 991, 1000, 987, 985,
+ 989, 0, 982, 981, 991, 981, 994, 978, 995, 380,
+ 990, 979, 389, 992, 969, 985, 986, 980, 968, 0,
+ 983, 977, 980, 970, 0, 963, 964, 972, 975, 0,
+ 968, 973, 962, 974, 964, 969, 968, 376, 967, 951,
+ 958, 954, 955, 394, 947, 961, 960, 950, 962, 959,
+ 948, 946, 950, 954, 390, 936, 947, 947, 951, 932,
+ 949, 933, 936, 944, 930, 394, 938, 926, 944, 930,
+ 925, 0, 926, 936, 919, 930, 923, 928, 916, 915,
+
+ 0, 452, 446, 445, 951, 438, 447, 451, 452, 1236,
+ 945, 959, 950, 0, 959, 950, 937, 0, 955, 0,
+ 955, 0, 936, 934, 933, 947, 0, 946, 920, 944,
+ 936, 0, 924, 945, 927, 924, 0, 927, 447, 939,
+ 0, 940, 925, 924, 937, 933, 930, 0, 917, 919,
+ 930, 916, 930, 0, 921, 465, 1236, 885, 880, 879,
+ 891, 888, 889, 874, 888, 887, 875, 884, 883, 0,
+ 882, 881, 866, 872, 878, 873, 869, 859, 866, 873,
+ 0, 0, 0, 861, 875, 870, 869, 861, 418, 867,
+ 862, 866, 860, 863, 848, 0, 901, 859, 838, 854,
+
+ 846, 842, 853, 854, 0, 853, 837, 0, 851, 854,
+ 840, 843, 0, 417, 833, 831, 825, 831, 839, 832,
+ 845, 830, 0, 836, 831, 839, 0, 829, 835, 838,
+ 818, 836, 413, 835, 0, 823, 812, 813, 817, 826,
+ 810, 824, 828, 824, 806, 811, 803, 819, 814, 803,
+ 806, 818, 802, 0, 799, 804, 806, 417, 805, 0,
+ 1236, 858, 460, 841, 464, 465, 468, 0, 833, 0,
+ 831, 835, 826, 819, 814, 0, 834, 825, 813, 0,
+ 819, 813, 0, 829, 822, 827, 822, 0, 817, 824,
+ 804, 811, 809, 807, 817, 804, 806, 0, 802, 808,
+
+ 800, 805, 807, 0, 0, 777, 765, 775, 0, 774,
+ 773, 0, 764, 762, 771, 762, 755, 0, 767, 767,
+ 763, 764, 749, 766, 762, 746, 742, 435, 0, 758,
+ 758, 756, 742, 745, 752, 752, 731, 750, 428, 742,
+ 738, 740, 736, 741, 728, 744, 740, 741, 741, 724,
+ 724, 737, 723, 735, 0, 734, 722, 736, 729, 717,
+ 718, 732, 0, 727, 711, 705, 723, 712, 718, 714,
+ 716, 711, 705, 721, 716, 0, 705, 0, 698, 698,
+ 697, 696, 696, 709, 709, 436, 0, 707, 706, 701,
+ 704, 689, 695, 692, 696, 0, 701, 717, 476, 477,
+
+ 0, 718, 716, 710, 720, 719, 718, 711, 707, 723,
+ 0, 711, 717, 709, 699, 691, 74, 0, 0, 110,
+ 0, 207, 230, 474, 467, 0, 467, 472, 462, 457,
+ 0, 0, 455, 456, 0, 0, 0, 449, 0, 0,
+ 0, 448, 450, 460, 440, 0, 462, 463, 0, 451,
+ 0, 0, 467, 0, 464, 463, 459, 473, 471, 471,
+ 468, 463, 465, 475, 466, 480, 471, 0, 475, 481,
+ 0, 465, 467, 485, 480, 468, 473, 487, 481, 480,
+ 0, 0, 483, 480, 0, 471, 477, 483, 480, 0,
+ 487, 505, 496, 486, 501, 488, 494, 0, 490, 500,
+
+ 501, 0, 0, 502, 506, 0, 509, 500, 511, 511,
+ 512, 513, 499, 519, 0, 554, 555, 548, 536, 0,
+ 551, 542, 543, 544, 534, 544, 550, 0, 553, 0,
+ 556, 545, 562, 536, 549, 0, 0, 548, 0, 0,
+ 527, 0, 0, 535, 536, 537, 539, 539, 0, 0,
+ 530, 526, 0, 535, 528, 531, 0, 545, 545, 538,
+ 534, 0, 543, 544, 556, 543, 0, 541, 555, 541,
+ 558, 558, 0, 0, 0, 0, 555, 550, 561, 555,
+ 563, 544, 565, 1236, 566, 0, 0, 568, 0, 572,
+ 559, 568, 564, 552, 0, 0, 0, 574, 575, 576,
+
+ 576, 570, 595, 0, 607, 608, 0, 0, 0, 0,
+ 0, 590, 616, 595, 604, 600, 0, 591, 0, 588,
+ 589, 580, 0, 0, 580, 0, 584, 0, 593, 578,
+ 591, 582, 600, 583, 598, 586, 591, 601, 589, 0,
+ 0, 596, 602, 592, 607, 0, 608, 0, 0, 609,
+ 0, 598, 601, 608, 605, 0, 0, 0, 0, 614,
+ 0, 0, 644, 0, 645, 649, 651, 635, 649, 637,
+ 0, 0, 606, 621, 0, 0, 0, 608, 0, 617,
+ 0, 0, 0, 0, 0, 0, 0, 616, 611, 0,
+ 0, 0, 613, 0, 613, 0, 0, 0, 0, 652,
+
+ 653, 648, 649, 663, 0, 0, 0, 0, 634, 0,
+ 0, 635, 666, 660, 664, 656, 668, 642, 643, 0,
+ 0, 674, 678, 671, 0, 0, 666, 673, 668, 666,
+ 671, 672, 668, 0, 0, 0, 1236, 705, 707, 713,
+ 716, 722, 727, 732
+ } ;
+
+static yyconst short int yy_def[1045] =
+ { 0,
+ 1037, 1, 1, 3, 1037, 1037, 1037, 1037, 1037, 1037,
+ 1038, 1039, 1040, 1037, 1041, 1041, 1037, 1037, 1037, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1037, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1037, 1042, 1041, 1037, 1037, 1043, 1043, 1043, 1041, 69,
+ 69, 69, 69, 1041, 69, 69, 69, 69, 69, 69,
+ 69, 69, 1043, 1042, 1037, 1037, 1037, 1038, 1037, 1039,
+ 1037, 1044, 1037, 1041, 1041, 1037, 1041, 1041, 1037, 1037,
+
+ 1037, 1037, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1037, 1037, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1037, 1042, 1042, 1037, 1041,
+ 1037, 1037, 1037, 83, 83, 83, 69, 69, 69, 69,
+ 69, 1041, 69, 69, 69, 69, 69, 69, 69, 69,
+ 83, 84, 1037, 1042, 84, 1037, 1037, 1037, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1037, 1041, 1041, 1041, 1041,
+
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+
+ 1041, 1041, 69, 69, 1041, 69, 69, 69, 69, 1037,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1037, 1037, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1037, 1037, 69, 1041, 69, 69, 69, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 69, 69,
+
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 69, 69, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1037, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
+ 1041, 1041, 1041, 1041, 1041, 1041, 0, 1037, 1037, 1037,
+ 1037, 1037, 1037, 1037
+ } ;
+
+static yyconst short int yy_nxt[1311] =
+ { 0,
+ 6, 7, 8, 9, 7, 10, 11, 6, 12, 6,
+ 13, 14, 15, 6, 16, 17, 18, 19, 20, 21,
+ 22, 23, 24, 25, 26, 27, 28, 27, 27, 29,
+ 30, 31, 32, 33, 27, 34, 35, 36, 27, 27,
+ 37, 27, 27, 27, 38, 6, 6, 27, 39, 40,
+ 41, 42, 43, 44, 45, 46, 47, 48, 27, 49,
+ 50, 51, 52, 53, 54, 55, 56, 57, 58, 59,
+ 60, 27, 27, 27, 61, 105, 85, 61, 61, 85,
+ 62, 83, 99, 100, 84, 107, 119, 96, 110, 106,
+ 111, 355, 97, 113, 120, 108, 114, 121, 109, 356,
+
+ 112, 122, 115, 63, 64, 65, 66, 63, 144, 67,
+ 832, 123, 128, 68, 69, 67, 70, 212, 145, 213,
+ 71, 72, 73, 116, 74, 75, 129, 76, 77, 98,
+ 76, 78, 175, 117, 346, 79, 118, 124, 80, 81,
+ 132, 125, 82, 140, 133, 126, 176, 67, 135, 136,
+ 347, 127, 163, 141, 134, 164, 142, 833, 165, 152,
+ 137, 138, 153, 139, 146, 154, 147, 177, 155, 227,
+ 148, 149, 156, 76, 150, 151, 157, 166, 178, 158,
+ 159, 227, 179, 160, 230, 170, 161, 181, 167, 171,
+ 168, 182, 162, 172, 169, 183, 173, 185, 186, 189,
+
+ 192, 184, 104, 190, 194, 96, 187, 144, 195, 227,
+ 229, 198, 188, 191, 193, 199, 203, 145, 209, 200,
+ 204, 196, 227, 205, 201, 202, 231, 131, 210, 834,
+ 206, 211, 207, 216, 220, 208, 216, 227, 125, 217,
+ 106, 240, 126, 85, 222, 223, 224, 98, 127, 1037,
+ 222, 223, 1037, 222, 223, 227, 227, 110, 85, 232,
+ 235, 85, 835, 227, 122, 226, 222, 223, 225, 112,
+ 233, 225, 234, 114, 123, 225, 227, 225, 228, 115,
+ 120, 251, 227, 227, 227, 252, 331, 227, 292, 227,
+ 227, 227, 227, 227, 293, 254, 332, 227, 227, 255,
+
+ 227, 227, 236, 237, 227, 263, 140, 96, 264, 225,
+ 278, 279, 97, 296, 238, 138, 141, 239, 145, 142,
+ 216, 222, 223, 241, 281, 284, 242, 282, 297, 333,
+ 456, 298, 373, 334, 285, 227, 243, 244, 245, 299,
+ 305, 245, 374, 335, 306, 245, 245, 245, 245, 98,
+ 307, 227, 245, 245, 245, 336, 316, 245, 270, 245,
+ 245, 337, 245, 245, 338, 339, 340, 245, 317, 318,
+ 245, 245, 457, 319, 245, 348, 349, 352, 361, 245,
+ 387, 362, 350, 375, 353, 385, 354, 376, 386, 388,
+ 363, 364, 382, 393, 383, 365, 402, 366, 400, 401,
+
+ 395, 384, 377, 396, 227, 245, 273, 397, 216, 398,
+ 227, 216, 85, 394, 217, 224, 1037, 1037, 225, 225,
+ 225, 96, 225, 225, 227, 405, 229, 403, 260, 227,
+ 226, 227, 404, 406, 227, 407, 469, 227, 227, 489,
+ 493, 470, 516, 517, 522, 534, 523, 490, 287, 408,
+ 546, 288, 227, 409, 561, 562, 547, 535, 494, 227,
+ 227, 227, 423, 98, 563, 227, 227, 414, 589, 456,
+ 631, 653, 671, 565, 227, 672, 654, 695, 227, 227,
+ 590, 567, 227, 632, 696, 699, 749, 760, 566, 804,
+ 227, 227, 805, 761, 700, 568, 836, 837, 750, 598,
+
+ 817, 816, 838, 839, 840, 841, 842, 843, 844, 845,
+ 846, 457, 847, 848, 849, 850, 851, 852, 853, 854,
+ 855, 856, 857, 858, 859, 860, 861, 862, 863, 864,
+ 865, 866, 867, 868, 869, 870, 871, 872, 873, 874,
+ 875, 876, 877, 878, 879, 880, 881, 882, 883, 884,
+ 885, 886, 887, 888, 889, 890, 891, 892, 893, 894,
+ 895, 896, 897, 898, 899, 900, 901, 902, 227, 227,
+ 903, 904, 905, 906, 907, 908, 909, 910, 911, 912,
+ 913, 914, 915, 916, 917, 918, 919, 920, 921, 922,
+ 923, 924, 925, 926, 927, 928, 929, 840, 930, 931,
+
+ 932, 933, 934, 935, 936, 937, 938, 939, 940, 941,
+ 942, 943, 944, 945, 946, 947, 948, 949, 950, 951,
+ 952, 953, 954, 955, 956, 957, 958, 959, 960, 961,
+ 962, 963, 964, 965, 966, 967, 968, 969, 970, 971,
+ 972, 973, 974, 975, 976, 977, 978, 979, 980, 981,
+ 982, 983, 984, 985, 986, 987, 988, 989, 990, 991,
+ 992, 993, 994, 995, 996, 997, 998, 999, 1000, 1001,
+ 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009, 1010, 1011,
+ 1012, 1013, 1014, 1015, 1016, 1017, 1018, 1019, 1020, 1021,
+ 1022, 1023, 1024, 1025, 1026, 1027, 1028, 1029, 1030, 1031,
+
+ 1032, 1033, 1034, 1035, 1036, 88, 88, 88, 88, 88,
+ 88, 90, 90, 91, 91, 831, 91, 91, 91, 94,
+ 94, 94, 218, 218, 218, 218, 218, 218, 225, 225,
+ 225, 225, 247, 247, 830, 247, 247, 247, 829, 828,
+ 827, 826, 825, 824, 823, 822, 821, 820, 819, 818,
+ 815, 814, 813, 812, 811, 810, 809, 808, 807, 806,
+ 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, 775, 774,
+ 773, 772, 771, 770, 769, 768, 767, 766, 765, 764,
+
+ 763, 762, 759, 758, 757, 756, 755, 754, 753, 752,
+ 751, 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, 713, 712, 711, 710,
+ 709, 708, 707, 706, 705, 704, 703, 702, 701, 698,
+ 561, 697, 694, 693, 692, 691, 690, 689, 688, 687,
+ 686, 685, 684, 683, 682, 681, 680, 679, 678, 677,
+ 676, 675, 674, 673, 670, 669, 668, 667, 666, 665,
+ 664, 663, 662, 661, 660, 659, 658, 657, 656, 655,
+
+ 652, 651, 650, 649, 648, 647, 646, 645, 644, 643,
+ 642, 641, 640, 639, 638, 637, 636, 635, 634, 633,
+ 630, 629, 628, 627, 626, 625, 624, 623, 622, 621,
+ 620, 619, 618, 617, 616, 615, 614, 613, 612, 611,
+ 610, 609, 608, 607, 606, 605, 604, 603, 602, 601,
+ 600, 599, 598, 597, 596, 595, 594, 593, 592, 591,
+ 588, 587, 586, 585, 584, 583, 582, 581, 580, 579,
+ 578, 577, 576, 575, 574, 573, 572, 571, 570, 569,
+ 568, 564, 560, 559, 558, 557, 556, 555, 554, 553,
+ 552, 551, 550, 549, 548, 545, 544, 543, 542, 541,
+
+ 540, 539, 538, 537, 536, 533, 532, 531, 530, 529,
+ 528, 527, 526, 525, 524, 521, 520, 519, 518, 437,
+ 515, 514, 513, 512, 511, 510, 509, 508, 507, 506,
+ 505, 504, 503, 502, 501, 500, 499, 498, 497, 496,
+ 495, 492, 491, 488, 487, 486, 485, 484, 483, 482,
+ 481, 480, 479, 478, 477, 476, 475, 474, 473, 472,
+ 471, 468, 467, 466, 465, 464, 463, 462, 461, 460,
+ 459, 458, 455, 454, 453, 452, 451, 450, 449, 448,
+ 447, 446, 445, 444, 443, 442, 441, 440, 439, 438,
+ 437, 436, 435, 434, 433, 432, 431, 430, 429, 428,
+
+ 427, 426, 425, 424, 423, 422, 421, 420, 419, 418,
+ 417, 416, 415, 414, 413, 412, 411, 249, 410, 410,
+ 243, 227, 227, 222, 219, 219, 399, 392, 391, 390,
+ 389, 381, 380, 379, 378, 372, 371, 370, 369, 368,
+ 367, 360, 359, 358, 357, 351, 345, 344, 343, 342,
+ 341, 330, 329, 328, 327, 326, 325, 324, 323, 322,
+ 321, 320, 315, 314, 313, 312, 311, 310, 309, 308,
+ 304, 303, 302, 301, 300, 295, 294, 291, 290, 289,
+ 288, 287, 286, 283, 280, 277, 276, 275, 274, 273,
+ 272, 271, 270, 269, 268, 267, 266, 265, 262, 261,
+
+ 260, 259, 258, 257, 256, 253, 250, 249, 95, 93,
+ 248, 246, 89, 227, 221, 219, 215, 214, 197, 180,
+ 174, 143, 131, 130, 104, 103, 102, 101, 95, 93,
+ 92, 89, 87, 86, 1037, 5, 1037, 1037, 1037, 1037,
+ 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037,
+ 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037,
+ 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037,
+ 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037,
+ 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037,
+ 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037,
+
+ 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037
+ } ;
+
+static yyconst short int yy_chk[1311] =
+ { 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, 1,
+ 1, 1, 1, 1, 2, 22, 7, 2, 4, 7,
+ 2, 4, 17, 17, 4, 23, 28, 16, 24, 22,
+ 24, 186, 16, 25, 28, 23, 25, 29, 23, 186,
+
+ 24, 29, 25, 2, 3, 3, 3, 4, 38, 3,
+ 717, 29, 31, 3, 3, 3, 3, 58, 38, 58,
+ 3, 3, 3, 26, 3, 3, 31, 3, 3, 16,
+ 3, 3, 46, 26, 182, 3, 26, 30, 3, 3,
+ 34, 30, 3, 36, 34, 30, 46, 3, 35, 35,
+ 182, 30, 42, 36, 34, 42, 36, 720, 42, 40,
+ 35, 35, 40, 35, 39, 40, 39, 47, 40, 71,
+ 39, 39, 41, 3, 39, 39, 41, 43, 47, 41,
+ 41, 72, 47, 41, 71, 44, 41, 49, 43, 44,
+ 43, 49, 41, 44, 43, 49, 44, 50, 50, 51,
+
+ 52, 49, 72, 51, 53, 70, 50, 144, 53, 79,
+ 70, 55, 50, 51, 52, 55, 56, 144, 57, 55,
+ 56, 53, 73, 56, 55, 55, 73, 79, 57, 722,
+ 56, 57, 56, 61, 63, 56, 61, 82, 63, 61,
+ 73, 82, 63, 66, 66, 66, 66, 70, 63, 67,
+ 67, 67, 68, 68, 68, 75, 78, 74, 85, 74,
+ 78, 85, 723, 77, 78, 68, 69, 69, 69, 74,
+ 75, 69, 77, 75, 78, 69, 69, 69, 69, 75,
+ 77, 104, 69, 69, 69, 104, 173, 69, 140, 69,
+ 69, 80, 69, 69, 140, 106, 173, 69, 81, 106,
+
+ 69, 69, 80, 80, 69, 114, 81, 97, 114, 69,
+ 129, 129, 97, 145, 80, 80, 81, 80, 145, 81,
+ 83, 83, 83, 83, 131, 133, 83, 131, 146, 174,
+ 296, 146, 198, 174, 133, 69, 84, 84, 84, 146,
+ 152, 84, 198, 174, 152, 84, 84, 84, 84, 97,
+ 152, 235, 84, 84, 84, 175, 161, 84, 235, 84,
+ 84, 175, 84, 84, 176, 176, 176, 84, 161, 161,
+ 84, 84, 296, 161, 84, 183, 183, 185, 191, 84,
+ 206, 191, 183, 199, 185, 205, 185, 199, 205, 206,
+ 191, 191, 204, 211, 204, 191, 220, 191, 215, 215,
+
+ 212, 204, 199, 212, 230, 84, 220, 212, 216, 212,
+ 231, 216, 224, 211, 216, 224, 225, 226, 224, 225,
+ 226, 229, 225, 226, 236, 232, 229, 230, 232, 233,
+ 226, 238, 231, 233, 237, 238, 310, 239, 240, 330,
+ 333, 310, 358, 358, 364, 375, 364, 330, 236, 239,
+ 386, 237, 406, 240, 402, 402, 386, 375, 333, 404,
+ 403, 407, 406, 229, 403, 408, 409, 404, 439, 456,
+ 489, 514, 533, 407, 563, 533, 514, 558, 565, 566,
+ 439, 409, 567, 489, 558, 566, 628, 639, 408, 686,
+ 699, 700, 686, 639, 567, 563, 724, 725, 628, 565,
+
+ 700, 699, 727, 728, 729, 730, 733, 734, 738, 742,
+ 743, 456, 744, 745, 747, 748, 750, 753, 755, 756,
+ 757, 758, 759, 760, 761, 762, 763, 764, 765, 766,
+ 767, 769, 770, 772, 773, 774, 775, 776, 777, 778,
+ 779, 780, 783, 784, 786, 787, 788, 789, 791, 792,
+ 793, 794, 795, 796, 797, 799, 800, 801, 804, 805,
+ 807, 808, 809, 810, 811, 812, 813, 814, 816, 817,
+ 818, 819, 821, 822, 823, 824, 825, 826, 827, 829,
+ 831, 832, 833, 834, 835, 838, 841, 844, 845, 846,
+ 847, 848, 851, 852, 854, 855, 856, 817, 858, 859,
+
+ 860, 861, 863, 864, 865, 866, 868, 869, 870, 871,
+ 872, 877, 878, 879, 880, 881, 882, 883, 885, 888,
+ 890, 891, 892, 893, 894, 898, 899, 900, 901, 902,
+ 903, 905, 906, 912, 913, 914, 915, 916, 918, 920,
+ 921, 922, 925, 927, 929, 930, 931, 932, 933, 934,
+ 935, 936, 937, 938, 939, 942, 943, 944, 945, 947,
+ 950, 952, 953, 954, 955, 960, 963, 965, 966, 967,
+ 968, 969, 970, 973, 974, 978, 980, 988, 989, 993,
+ 995, 1000, 1001, 1002, 1003, 1004, 1009, 1012, 1013, 1014,
+ 1015, 1016, 1017, 1018, 1019, 1022, 1023, 1024, 1027, 1028,
+
+ 1029, 1030, 1031, 1032, 1033, 1038, 1038, 1038, 1038, 1038,
+ 1038, 1039, 1039, 1040, 1040, 716, 1040, 1040, 1040, 1041,
+ 1041, 1041, 1042, 1042, 1042, 1042, 1042, 1042, 1043, 1043,
+ 1043, 1043, 1044, 1044, 715, 1044, 1044, 1044, 714, 713,
+ 712, 710, 709, 708, 707, 706, 705, 704, 703, 702,
+ 698, 697, 695, 694, 693, 692, 691, 690, 689, 688,
+ 685, 684, 683, 682, 681, 680, 679, 677, 675, 674,
+ 673, 672, 671, 670, 669, 668, 667, 666, 665, 664,
+ 662, 661, 660, 659, 658, 657, 656, 654, 653, 652,
+ 651, 650, 649, 648, 647, 646, 645, 644, 643, 642,
+
+ 641, 640, 638, 637, 636, 635, 634, 633, 632, 631,
+ 630, 627, 626, 625, 624, 623, 622, 621, 620, 619,
+ 617, 616, 615, 614, 613, 611, 610, 608, 607, 606,
+ 603, 602, 601, 600, 599, 597, 596, 595, 594, 593,
+ 592, 591, 590, 589, 587, 586, 585, 584, 582, 581,
+ 579, 578, 577, 575, 574, 573, 572, 571, 569, 564,
+ 562, 559, 557, 556, 555, 553, 552, 551, 550, 549,
+ 548, 547, 546, 545, 544, 543, 542, 541, 540, 539,
+ 538, 537, 536, 534, 532, 531, 530, 529, 528, 526,
+ 525, 524, 522, 521, 520, 519, 518, 517, 516, 515,
+
+ 512, 511, 510, 509, 507, 506, 504, 503, 502, 501,
+ 500, 499, 498, 497, 495, 494, 493, 492, 491, 490,
+ 488, 487, 486, 485, 484, 480, 479, 478, 477, 476,
+ 475, 474, 473, 472, 471, 469, 468, 467, 466, 465,
+ 464, 463, 462, 461, 460, 459, 458, 455, 453, 452,
+ 451, 450, 449, 447, 446, 445, 444, 443, 442, 440,
+ 438, 436, 435, 434, 433, 431, 430, 429, 428, 426,
+ 425, 424, 423, 421, 419, 417, 416, 415, 413, 412,
+ 411, 405, 400, 399, 398, 397, 396, 395, 394, 393,
+ 391, 390, 389, 388, 387, 385, 384, 383, 382, 381,
+
+ 380, 379, 378, 377, 376, 374, 373, 372, 371, 370,
+ 369, 368, 367, 366, 365, 363, 362, 361, 360, 359,
+ 357, 356, 355, 354, 353, 352, 351, 349, 348, 347,
+ 346, 344, 343, 342, 341, 339, 338, 337, 336, 335,
+ 334, 332, 331, 329, 328, 327, 326, 325, 324, 323,
+ 321, 320, 319, 318, 317, 316, 315, 314, 313, 312,
+ 311, 309, 308, 307, 306, 305, 304, 303, 302, 301,
+ 299, 297, 295, 294, 293, 292, 291, 290, 289, 288,
+ 287, 286, 285, 284, 283, 282, 281, 280, 279, 278,
+ 277, 276, 275, 274, 273, 272, 271, 270, 269, 268,
+
+ 267, 266, 265, 264, 262, 261, 260, 259, 258, 257,
+ 256, 255, 254, 253, 252, 251, 250, 249, 248, 247,
+ 244, 234, 227, 223, 218, 217, 214, 210, 209, 208,
+ 207, 203, 202, 201, 200, 197, 196, 195, 194, 193,
+ 192, 190, 189, 188, 187, 184, 181, 180, 179, 178,
+ 177, 172, 171, 170, 169, 168, 167, 166, 165, 164,
+ 163, 162, 160, 159, 158, 157, 156, 155, 154, 153,
+ 151, 150, 149, 148, 147, 143, 142, 139, 138, 137,
+ 136, 135, 134, 132, 130, 128, 127, 126, 125, 124,
+ 123, 122, 121, 120, 118, 117, 116, 115, 113, 112,
+
+ 111, 110, 109, 108, 107, 105, 103, 98, 95, 93,
+ 92, 91, 88, 76, 65, 62, 60, 59, 54, 48,
+ 45, 37, 33, 32, 21, 20, 19, 18, 15, 14,
+ 13, 11, 10, 9, 5, 1037, 1037, 1037, 1037, 1037,
+ 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037,
+ 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037,
+ 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037,
+ 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037,
+ 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037,
+ 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037,
+
+ 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037, 1037
+ } ;
static yy_state_type yy_last_accepting_state;
static char *yy_last_accepting_cpos;
-extern int yy_flex_debug;
-int yy_flex_debug = 0;
-
/* The intent behind this definition is that it'll catch
* any uses of REJECT which flex missed.
*/
#define YY_RESTORE_YY_MORE_OFFSET
char *yytext;
#line 1 "lev_comp.l"
+#define INITIAL 0
#line 2 "lev_comp.l"
-/* NetHack 3.6 lev_comp.l $NHDT-Date: 1431192778 2015/05/09 17:32:58 $ $NHDT-Branch: master $:$NHDT-Revision: 1.15 $ */
+/* NetHack 3.6 lev_comp.l $NHDT-Date: 1431196864 2015/05/09 18:41:04 $ $NHDT-Branch: master $:$NHDT-Revision: 1.16 $ */
/* NetHack 3.6 lev_comp.l $Date: 2009/05/06 10:54:31 $ $Revision: 1.9 $ */
/* SCCS Id: @(#)lev_lex.c 3.5 2002/03/27 */
/* Copyright (c) 1989 by Jean-Christophe Collet */
* yyunput is properly declared in flex.skel.
*/
#if !defined(FLEX_SCANNER) && !defined(FLEXHACK_SCANNER)
-int FDECL(yyback, (int *, int));
+int FDECL(yyback, (int *,int));
int NDECL(yylook);
int NDECL(yyinput);
int NDECL(yywrap);
int NDECL(yylex);
-/* Traditional lexes let yyunput() and yyoutput() default to int;
- * newer ones may declare them as void since they don't return
- * values. For even more fun, the lex supplied as part of the
- * newer unbundled compiler for SunOS 4.x adds the void declarations
- * (under __STDC__ or _cplusplus ifdefs -- otherwise they remain
- * int) while the bundled lex and the one with the older unbundled
- * compiler do not. To detect this, we need help from outside --
- * sys/unix/Makefile.utl.
- *
- * Digital UNIX is difficult and still has int in spite of all
- * other signs.
- */
-#if defined(NeXT) || defined(SVR4) || defined(_AIX32)
-#define VOIDYYPUT
-#endif
-#if !defined(VOIDYYPUT) && defined(POSIX_TYPES)
-#if !defined(BOS) && !defined(HISX) && !defined(_M_UNIX) && !defined(VMS)
-#define VOIDYYPUT
-#endif
-#endif
-#if !defined(VOIDYYPUT) && defined(WEIRD_LEX)
-#if defined(SUNOS4) && defined(__STDC__) && (WEIRD_LEX > 1)
-#define VOIDYYPUT
-#endif
-#endif
-#if defined(VOIDYYPUT) && defined(__osf__)
-#undef VOIDYYPUT
-#endif
-#ifdef VOIDYYPUT
+ /* Traditional lexes let yyunput() and yyoutput() default to int;
+ * newer ones may declare them as void since they don't return
+ * values. For even more fun, the lex supplied as part of the
+ * newer unbundled compiler for SunOS 4.x adds the void declarations
+ * (under __STDC__ or _cplusplus ifdefs -- otherwise they remain
+ * int) while the bundled lex and the one with the older unbundled
+ * compiler do not. To detect this, we need help from outside --
+ * sys/unix/Makefile.utl.
+ *
+ * Digital UNIX is difficult and still has int in spite of all
+ * other signs.
+ */
+# if defined(NeXT) || defined(SVR4) || defined(_AIX32)
+# define VOIDYYPUT
+# endif
+# if !defined(VOIDYYPUT) && defined(POSIX_TYPES)
+# if !defined(BOS) && !defined(HISX) && !defined(_M_UNIX) && !defined(VMS)
+# define VOIDYYPUT
+# endif
+# endif
+# if !defined(VOIDYYPUT) && defined(WEIRD_LEX)
+# if defined(SUNOS4) && defined(__STDC__) && (WEIRD_LEX > 1)
+# define VOIDYYPUT
+# endif
+# endif
+# if defined(VOIDYYPUT) && defined(__osf__)
+# undef VOIDYYPUT
+# endif
+# ifdef VOIDYYPUT
void FDECL(yyunput, (int));
void FDECL(yyoutput, (int));
-#else
+# else
int FDECL(yyunput, (int));
int FDECL(yyoutput, (int));
-#endif
-#endif /* !FLEX_SCANNER && !FLEXHACK_SCANNER */
+# endif
+#endif /* !FLEX_SCANNER && !FLEXHACK_SCANNER */
#ifdef FLEX_SCANNER
-#define YY_MALLOC_DECL \
- genericptr_t FDECL(malloc, (size_t)); \
- genericptr_t FDECL(realloc, (genericptr_t, size_t));
+#define YY_MALLOC_DECL \
+ genericptr_t FDECL(malloc, (size_t)); \
+ genericptr_t FDECL(realloc, (genericptr_t,size_t));
#endif
void FDECL(init_yyin, (FILE *));
long FDECL(corefunc_str_check, (char *, long));
extern void VDECL(lc_error, (const char *, ...));
-extern struct lc_vardefs *FDECL(vardef_defined,
- (struct lc_vardefs *, char *, int));
+extern struct lc_vardefs *FDECL(vardef_defined,(struct lc_vardefs *,char *, int));
extern struct lc_vardefs *variable_definitions;
FILE *orig_yyin = NULL;
-#define ST_RET(x) \
- do { \
- savetoken(yytext); \
- return x; \
- } while (0);
-#define ST_RETF(y, x) \
- do { \
- savetoken(yytext); \
- y; \
- return x; \
- } while (0);
-
-#line 1193 "lex.yy.c"
+#define ST_RET(x) do { savetoken(yytext); return x; } while (0);
+#define ST_RETF(y, x) do { savetoken(yytext); y; return x; } while (0);
-#define INITIAL 0
#define MAPC 1
-#ifndef YY_NO_UNISTD_H
-/* Special case for "unistd.h", since it is non-ANSI. We include it way
- * down here because we want the user's section 1 to have been scanned first.
- * The user has a chance to override it with an option.
- */
-#include <unistd.h>
-#endif
-
-#ifndef YY_EXTRA_TYPE
-#define YY_EXTRA_TYPE void *
-#endif
-
-static int yy_init_globals(void);
-
-/* Accessor methods to globals.
- These are made visible to non-reentrant scanners for convenience. */
-
-int yylex_destroy(void);
-
-int yyget_debug(void);
-
-void yyset_debug(int debug_flag);
-
-YY_EXTRA_TYPE yyget_extra(void);
-
-void yyset_extra(YY_EXTRA_TYPE user_defined);
-
-FILE *yyget_in(void);
-
-void yyset_in(FILE *in_str);
-
-FILE *yyget_out(void);
-
-void yyset_out(FILE *out_str);
-
-yy_size_t yyget_leng(void);
-
-char *yyget_text(void);
-
-int yyget_lineno(void);
-
-void yyset_lineno(int line_number);
+#line 1098 "lex.yy.c"
/* Macros after this point can all be overridden by user definitions in
* section 1.
#ifndef YY_SKIP_YYWRAP
#ifdef __cplusplus
-extern "C" int yywrap(void);
+extern "C" int yywrap YY_PROTO(( void ));
#else
-extern int yywrap(void);
+extern int yywrap YY_PROTO(( void ));
#endif
#endif
-static void yyunput(int c, char *buf_ptr);
+#ifndef YY_NO_UNPUT
+static void yyunput YY_PROTO(( int c, char *buf_ptr ));
+#endif
#ifndef yytext_ptr
-static void yy_flex_strncpy(char *, yyconst char *, int);
+static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));
#endif
#ifdef YY_NEED_STRLEN
-static int yy_flex_strlen(yyconst char *);
+static int yy_flex_strlen YY_PROTO(( yyconst char * ));
#endif
#ifndef YY_NO_INPUT
-
#ifdef __cplusplus
-static int yyinput(void);
+static int yyinput YY_PROTO(( void ));
#else
-static int input(void);
+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
-#ifdef __ia64__
-/* On IA-64, the buffer size is 16k, not 8k */
-#define YY_READ_BUF_SIZE 16384
-#else
#define YY_READ_BUF_SIZE 8192
-#endif /* __ia64__ */
#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 \
- do { \
- if (fwrite(yytext, yyleng, 1, yyout)) { \
- } \
- } while (0)
+#define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
#endif
-/* Gets input and stuffs it into "buf". number of characters read, or
- * YY_NULL,
+/* 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_LVALUE->yy_is_interactive) { \
- int c = '*'; \
- size_t 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 { \
- errno = 0; \
- while ((result = fread(buf, 1, max_size, yyin)) == 0 \
- && ferror(yyin)) { \
- if (errno != EINTR) { \
- YY_FATAL_ERROR("input in flex scanner failed"); \
- break; \
- } \
- errno = 0; \
- clearerr(yyin); \
- } \
- } \
- \
- #endif
+#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
/* Report a fatal error. */
#ifndef YY_FATAL_ERROR
-#define YY_FATAL_ERROR(msg) yy_fatal_error(msg)
+#define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
#endif
-/* end tables serialization structures and prototypes */
-
/* Default declaration of generated scanner - a define so the user can
* easily add parameters.
*/
#ifndef YY_DECL
-#define YY_DECL_IS_OURS 1
-
-extern int yylex(void);
-
-#define YY_DECL int yylex(void)
-#endif /* !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.
#define YY_BREAK break;
#endif
-#define YY_RULE_SETUP \
- if (yyleng > 0) \
- YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (yytext[yyleng - 1] == '\n'); \
- YY_USER_ACTION
+#define YY_RULE_SETUP \
+ if ( yyleng > 0 ) \
+ yy_current_buffer->yy_at_bol = \
+ (yytext[yyleng - 1] == '\n'); \
+ YY_USER_ACTION
-/** The main scanner function which does all the work.
- */
YY_DECL
-{
- register yy_state_type yy_current_state;
- register char *yy_cp, *yy_bp;
- register int yy_act;
-
- if (!(yy_init)) {
- (yy_init) = 1;
-
-#ifdef YY_USER_INIT
- YY_USER_INIT;
-#endif
+ {
+ register yy_state_type yy_current_state;
+ register char *yy_cp, *yy_bp;
+ register int yy_act;
- if (!(yy_start))
- (yy_start) = 1; /* first start state */
-
- if (!yyin)
- yyin = stdin;
-
- if (!yyout)
- yyout = stdout;
+#line 105 "lev_comp.l"
- if (!YY_CURRENT_BUFFER) {
- yyensure_buffer_stack();
- YY_CURRENT_BUFFER_LVALUE = yy_create_buffer(yyin, YY_BUF_SIZE);
- }
+#line 1254 "lex.yy.c"
- yy_load_buffer_state();
- }
+ if ( yy_init )
+ {
+ yy_init = 0;
- {
-#line 105 "lev_comp.l"
+#ifdef YY_USER_INIT
+ YY_USER_INIT;
+#endif
-#line 1413 "lex.yy.c"
-
- while (1) /* loops until end-of-file is reached */
- {
- yy_cp = (yy_c_buf_p);
-
- /* Support of yytext. */
- *yy_cp = (yy_hold_char);
-
- /* yy_bp points to the position in yy_ch_buf of the start of
- * the current run.
- */
- yy_bp = yy_cp;
-
- yy_current_state = (yy_start);
- yy_current_state += YY_AT_BOL();
- yy_match:
- do {
- register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
- if (yy_accept[yy_current_state]) {
- (yy_last_accepting_state) = yy_current_state;
- (yy_last_accepting_cpos) = yy_cp;
- }
- while (yy_chk[yy_base[yy_current_state] + yy_c]
- != yy_current_state) {
- yy_current_state = (int) yy_def[yy_current_state];
- if (yy_current_state >= 1038)
- 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] != 1236);
-
- 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
+ if ( ! yy_start )
+ yy_start = 1; /* first start state */
+
+ if ( ! yyin )
+ yyin = stdin;
+
+ if ( ! yyout )
+ yyout = stdout;
+
+ if ( ! yy_current_buffer )
+ yy_current_buffer =
+ yy_create_buffer( yyin, YY_BUF_SIZE );
+
+ yy_load_buffer_state();
+ }
+
+ while ( 1 ) /* loops until end-of-file is reached */
+ {
+ yy_cp = yy_c_buf_p;
+
+ /* Support of yytext. */
+ *yy_cp = yy_hold_char;
+
+ /* yy_bp points to the position in yy_ch_buf of the start of
+ * the current run.
+ */
+ yy_bp = yy_cp;
+
+ yy_current_state = yy_start;
+ yy_current_state += YY_AT_BOL();
+yy_match:
+ do
+ {
+ register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
+ if ( yy_accept[yy_current_state] )
+ {
+ yy_last_accepting_state = yy_current_state;
+ yy_last_accepting_cpos = yy_cp;
+ }
+ while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
+ {
+ yy_current_state = (int) yy_def[yy_current_state];
+ if ( yy_current_state >= 1038 )
+ 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] != 1236 );
+
+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 106 "lev_comp.l"
- {
- savetoken(yytext);
- BEGIN(INITIAL);
- yylval.map = (char *) alloc(map_cnt + 1);
- (void) strncpy(yylval.map, map, map_cnt);
- yylval.map[map_cnt] = 0;
- map_cnt = 0;
- return MAP_ID;
- }
- YY_BREAK
- case 2:
- /* rule 2 can match eol */
- YY_RULE_SETUP
+{
+ savetoken(yytext);
+ BEGIN(INITIAL);
+ yylval.map = (char *) alloc(map_cnt + 1);
+ (void) strncpy(yylval.map, map, map_cnt);
+ yylval.map[map_cnt] = 0;
+ map_cnt = 0;
+ return MAP_ID;
+ }
+ YY_BREAK
+case 2:
+YY_RULE_SETUP
#line 115 "lev_comp.l"
- {
- int len = yyleng;
- savetoken(yytext);
- /* convert \r\n to \n */
- if (len >= 2 && yytext[len - 2] == '\r')
- len -= 1;
- (void) strncpy(map + map_cnt, yytext, len);
- map_cnt += len;
- map[map_cnt - 1] = '\n';
- map[map_cnt] = '\0';
- newline();
- }
- YY_BREAK
- case 3:
- /* rule 3 can match eol */
- YY_RULE_SETUP
+{
+ int len = yyleng;
+ savetoken(yytext);
+ /* convert \r\n to \n */
+ if (len >= 2 && yytext[len - 2] == '\r') len -= 1;
+ (void) strncpy(map + map_cnt, yytext, len);
+ map_cnt += len;
+ map[map_cnt - 1] = '\n';
+ map[map_cnt] = '\0';
+ newline();
+ }
+ YY_BREAK
+case 3:
+YY_RULE_SETUP
#line 126 "lev_comp.l"
- {
- savetoken(yytext);
- newline();
- }
- YY_BREAK
- case 4:
- YY_RULE_SETUP
+{ savetoken(yytext); newline(); }
+ YY_BREAK
+case 4:
+YY_RULE_SETUP
#line 127 "lev_comp.l"
- ST_RET(MESSAGE_ID);
- YY_BREAK
- case 5:
- YY_RULE_SETUP
+ST_RET(MESSAGE_ID);
+ YY_BREAK
+case 5:
+YY_RULE_SETUP
#line 128 "lev_comp.l"
- ST_RET(NOMAP_ID);
- YY_BREAK
- case 6:
- YY_RULE_SETUP
+ST_RET(NOMAP_ID);
+ YY_BREAK
+case 6:
+YY_RULE_SETUP
#line 129 "lev_comp.l"
- ST_RET(MAZE_ID);
- YY_BREAK
- case 7:
- YY_RULE_SETUP
+ST_RET(MAZE_ID);
+ YY_BREAK
+case 7:
+YY_RULE_SETUP
#line 130 "lev_comp.l"
- ST_RET(LEVEL_ID);
- YY_BREAK
- case 8:
- YY_RULE_SETUP
+ST_RET(LEVEL_ID);
+ YY_BREAK
+case 8:
+YY_RULE_SETUP
#line 131 "lev_comp.l"
- ST_RET(LEV_INIT_ID);
- YY_BREAK
- case 9:
- YY_RULE_SETUP
+ST_RET(LEV_INIT_ID);
+ YY_BREAK
+case 9:
+YY_RULE_SETUP
#line 132 "lev_comp.l"
- ST_RET(MAZE_GRID_ID);
- YY_BREAK
- case 10:
- YY_RULE_SETUP
+ST_RET(MAZE_GRID_ID);
+ YY_BREAK
+case 10:
+YY_RULE_SETUP
#line 133 "lev_comp.l"
- ST_RET(SOLID_FILL_ID);
- YY_BREAK
- case 11:
- YY_RULE_SETUP
+ST_RET(SOLID_FILL_ID);
+ YY_BREAK
+case 11:
+YY_RULE_SETUP
#line 134 "lev_comp.l"
- ST_RET(MINES_ID);
- YY_BREAK
- case 12:
- YY_RULE_SETUP
+ST_RET(MINES_ID);
+ YY_BREAK
+case 12:
+YY_RULE_SETUP
#line 135 "lev_comp.l"
- ST_RET(ROGUELEV_ID);
- YY_BREAK
- case 13:
- YY_RULE_SETUP
+ST_RET(ROGUELEV_ID);
+ YY_BREAK
+case 13:
+YY_RULE_SETUP
#line 136 "lev_comp.l"
- ST_RET(FLAGS_ID);
- YY_BREAK
- case 14:
- YY_RULE_SETUP
+ST_RET(FLAGS_ID);
+ YY_BREAK
+case 14:
+YY_RULE_SETUP
#line 137 "lev_comp.l"
- ST_RET(GEOMETRY_ID);
- YY_BREAK
- case 15:
- /* rule 15 can match eol */
- YY_RULE_SETUP
+ST_RET(GEOMETRY_ID);
+ YY_BREAK
+case 15:
+YY_RULE_SETUP
#line 138 "lev_comp.l"
- {
- savetoken(yytext);
- BEGIN(MAPC);
- newline();
- }
- YY_BREAK
- case 16:
- YY_RULE_SETUP
+{ savetoken(yytext); BEGIN(MAPC); newline(); }
+ YY_BREAK
+case 16:
+YY_RULE_SETUP
#line 139 "lev_comp.l"
- ST_RET(object_ID);
- YY_BREAK
- case 17:
- YY_RULE_SETUP
+ST_RET(object_ID);
+ YY_BREAK
+case 17:
+YY_RULE_SETUP
#line 140 "lev_comp.l"
- ST_RET(OBJECT_ID);
- YY_BREAK
- case 18:
- YY_RULE_SETUP
+ST_RET(OBJECT_ID);
+ YY_BREAK
+case 18:
+YY_RULE_SETUP
#line 141 "lev_comp.l"
- ST_RET(COBJECT_ID);
- YY_BREAK
- case 19:
- YY_RULE_SETUP
+ST_RET(COBJECT_ID);
+ YY_BREAK
+case 19:
+YY_RULE_SETUP
#line 142 "lev_comp.l"
- ST_RET(MONSTER_ID);
- YY_BREAK
- case 20:
- YY_RULE_SETUP
+ST_RET(MONSTER_ID);
+ YY_BREAK
+case 20:
+YY_RULE_SETUP
#line 143 "lev_comp.l"
- ST_RET(monster_ID);
- YY_BREAK
- case 21:
- YY_RULE_SETUP
+ST_RET(monster_ID);
+ YY_BREAK
+case 21:
+YY_RULE_SETUP
#line 144 "lev_comp.l"
- ST_RET(TRAP_ID);
- YY_BREAK
- case 22:
- YY_RULE_SETUP
+ST_RET(TRAP_ID);
+ YY_BREAK
+case 22:
+YY_RULE_SETUP
#line 145 "lev_comp.l"
- ST_RET(DOOR_ID);
- YY_BREAK
- case 23:
- YY_RULE_SETUP
+ST_RET(DOOR_ID);
+ YY_BREAK
+case 23:
+YY_RULE_SETUP
#line 146 "lev_comp.l"
- ST_RET(ROOMDOOR_ID);
- YY_BREAK
- case 24:
- YY_RULE_SETUP
+ST_RET(ROOMDOOR_ID);
+ YY_BREAK
+case 24:
+YY_RULE_SETUP
#line 147 "lev_comp.l"
- ST_RET(DRAWBRIDGE_ID);
- YY_BREAK
- case 25:
- YY_RULE_SETUP
+ST_RET(DRAWBRIDGE_ID);
+ YY_BREAK
+case 25:
+YY_RULE_SETUP
#line 148 "lev_comp.l"
- ST_RET(MAZEWALK_ID);
- YY_BREAK
- case 26:
- YY_RULE_SETUP
+ST_RET(MAZEWALK_ID);
+ YY_BREAK
+case 26:
+YY_RULE_SETUP
#line 149 "lev_comp.l"
- ST_RET(WALLIFY_ID);
- YY_BREAK
- case 27:
- YY_RULE_SETUP
+ST_RET(WALLIFY_ID);
+ YY_BREAK
+case 27:
+YY_RULE_SETUP
#line 150 "lev_comp.l"
- ST_RET(REGION_ID);
- YY_BREAK
- case 28:
- YY_RULE_SETUP
+ST_RET(REGION_ID);
+ YY_BREAK
+case 28:
+YY_RULE_SETUP
#line 151 "lev_comp.l"
- ST_RET(ALTAR_ID);
- YY_BREAK
- case 29:
- YY_RULE_SETUP
+ST_RET(ALTAR_ID);
+ YY_BREAK
+case 29:
+YY_RULE_SETUP
#line 152 "lev_comp.l"
- ST_RET(LADDER_ID);
- YY_BREAK
- case 30:
- YY_RULE_SETUP
+ST_RET(LADDER_ID);
+ YY_BREAK
+case 30:
+YY_RULE_SETUP
#line 153 "lev_comp.l"
- ST_RET(STAIR_ID);
- YY_BREAK
- case 31:
- YY_RULE_SETUP
+ST_RET(STAIR_ID);
+ YY_BREAK
+case 31:
+YY_RULE_SETUP
#line 154 "lev_comp.l"
- ST_RET(PORTAL_ID);
- YY_BREAK
- case 32:
- YY_RULE_SETUP
+ST_RET(PORTAL_ID);
+ YY_BREAK
+case 32:
+YY_RULE_SETUP
#line 155 "lev_comp.l"
- ST_RET(TELEPRT_ID);
- YY_BREAK
- case 33:
- YY_RULE_SETUP
+ST_RET(TELEPRT_ID);
+ YY_BREAK
+case 33:
+YY_RULE_SETUP
#line 156 "lev_comp.l"
- ST_RET(BRANCH_ID);
- YY_BREAK
- case 34:
- YY_RULE_SETUP
+ST_RET(BRANCH_ID);
+ YY_BREAK
+case 34:
+YY_RULE_SETUP
#line 157 "lev_comp.l"
- ST_RET(FOUNTAIN_ID);
- YY_BREAK
- case 35:
- YY_RULE_SETUP
+ST_RET(FOUNTAIN_ID);
+ YY_BREAK
+case 35:
+YY_RULE_SETUP
#line 158 "lev_comp.l"
- ST_RET(SINK_ID);
- YY_BREAK
- case 36:
- YY_RULE_SETUP
+ST_RET(SINK_ID);
+ YY_BREAK
+case 36:
+YY_RULE_SETUP
#line 159 "lev_comp.l"
- ST_RET(POOL_ID);
- YY_BREAK
- case 37:
- YY_RULE_SETUP
+ST_RET(POOL_ID);
+ YY_BREAK
+case 37:
+YY_RULE_SETUP
#line 160 "lev_comp.l"
- ST_RET(NON_DIGGABLE_ID);
- YY_BREAK
- case 38:
- YY_RULE_SETUP
+ST_RET(NON_DIGGABLE_ID);
+ YY_BREAK
+case 38:
+YY_RULE_SETUP
#line 161 "lev_comp.l"
- ST_RET(NON_PASSWALL_ID);
- YY_BREAK
- case 39:
- YY_RULE_SETUP
+ST_RET(NON_PASSWALL_ID);
+ YY_BREAK
+case 39:
+YY_RULE_SETUP
#line 162 "lev_comp.l"
- ST_RET(IF_ID);
- YY_BREAK
- case 40:
- YY_RULE_SETUP
+ST_RET(IF_ID);
+ YY_BREAK
+case 40:
+YY_RULE_SETUP
#line 163 "lev_comp.l"
- ST_RET(ELSE_ID);
- YY_BREAK
- case 41:
- YY_RULE_SETUP
+ST_RET(ELSE_ID);
+ YY_BREAK
+case 41:
+YY_RULE_SETUP
#line 164 "lev_comp.l"
- ST_RET(EXIT_ID);
- YY_BREAK
- case 42:
- YY_RULE_SETUP
+ST_RET(EXIT_ID);
+ YY_BREAK
+case 42:
+YY_RULE_SETUP
#line 165 "lev_comp.l"
- ST_RET(ROOM_ID);
- YY_BREAK
- case 43:
- YY_RULE_SETUP
+ST_RET(ROOM_ID);
+ YY_BREAK
+case 43:
+YY_RULE_SETUP
#line 166 "lev_comp.l"
- ST_RET(SUBROOM_ID);
- YY_BREAK
- case 44:
- YY_RULE_SETUP
+ST_RET(SUBROOM_ID);
+ YY_BREAK
+case 44:
+YY_RULE_SETUP
#line 167 "lev_comp.l"
- ST_RET(RAND_CORRIDOR_ID);
- YY_BREAK
- case 45:
- YY_RULE_SETUP
+ST_RET(RAND_CORRIDOR_ID);
+ YY_BREAK
+case 45:
+YY_RULE_SETUP
#line 168 "lev_comp.l"
- ST_RET(CORRIDOR_ID);
- YY_BREAK
- case 46:
- YY_RULE_SETUP
+ST_RET(CORRIDOR_ID);
+ YY_BREAK
+case 46:
+YY_RULE_SETUP
#line 169 "lev_comp.l"
- ST_RET(TERRAIN_ID);
- YY_BREAK
- case 47:
- YY_RULE_SETUP
+ST_RET(TERRAIN_ID);
+ YY_BREAK
+case 47:
+YY_RULE_SETUP
#line 170 "lev_comp.l"
- ST_RET(terrain_ID);
- YY_BREAK
- case 48:
- YY_RULE_SETUP
+ST_RET(terrain_ID);
+ YY_BREAK
+case 48:
+YY_RULE_SETUP
#line 171 "lev_comp.l"
- ST_RET(REPLACE_TERRAIN_ID);
- YY_BREAK
- case 49:
- YY_RULE_SETUP
+ST_RET(REPLACE_TERRAIN_ID);
+ YY_BREAK
+case 49:
+YY_RULE_SETUP
#line 172 "lev_comp.l"
- ST_RET(GOLD_ID);
- YY_BREAK
- case 50:
- YY_RULE_SETUP
+ST_RET(GOLD_ID);
+ YY_BREAK
+case 50:
+YY_RULE_SETUP
#line 173 "lev_comp.l"
- ST_RET(GRAVE_ID);
- YY_BREAK
- case 51:
- YY_RULE_SETUP
+ST_RET(GRAVE_ID);
+ YY_BREAK
+case 51:
+YY_RULE_SETUP
#line 174 "lev_comp.l"
- ST_RET(ENGRAVING_ID);
- YY_BREAK
- case 52:
- YY_RULE_SETUP
+ST_RET(ENGRAVING_ID);
+ YY_BREAK
+case 52:
+YY_RULE_SETUP
#line 175 "lev_comp.l"
- ST_RET(MINERALIZE_ID);
- YY_BREAK
- case 53:
- YY_RULE_SETUP
+ST_RET(MINERALIZE_ID);
+ YY_BREAK
+case 53:
+YY_RULE_SETUP
#line 176 "lev_comp.l"
- ST_RET(NAME_ID);
- YY_BREAK
- case 54:
- YY_RULE_SETUP
+ST_RET(NAME_ID);
+ YY_BREAK
+case 54:
+YY_RULE_SETUP
#line 177 "lev_comp.l"
- ST_RET(FOR_ID);
- YY_BREAK
- case 55:
- YY_RULE_SETUP
+ST_RET(FOR_ID);
+ YY_BREAK
+case 55:
+YY_RULE_SETUP
#line 178 "lev_comp.l"
- ST_RET(TO_ID);
- YY_BREAK
- case 56:
- YY_RULE_SETUP
+ST_RET(TO_ID);
+ YY_BREAK
+case 56:
+YY_RULE_SETUP
#line 179 "lev_comp.l"
- ST_RET(LOOP_ID);
- YY_BREAK
- case 57:
- YY_RULE_SETUP
+ST_RET(LOOP_ID);
+ YY_BREAK
+case 57:
+YY_RULE_SETUP
#line 180 "lev_comp.l"
- ST_RET(SWITCH_ID);
- YY_BREAK
- case 58:
- YY_RULE_SETUP
+ST_RET(SWITCH_ID);
+ YY_BREAK
+case 58:
+YY_RULE_SETUP
#line 181 "lev_comp.l"
- ST_RET(CASE_ID);
- YY_BREAK
- case 59:
- YY_RULE_SETUP
+ST_RET(CASE_ID);
+ YY_BREAK
+case 59:
+YY_RULE_SETUP
#line 182 "lev_comp.l"
- ST_RET(BREAK_ID);
- YY_BREAK
- case 60:
- YY_RULE_SETUP
+ST_RET(BREAK_ID);
+ YY_BREAK
+case 60:
+YY_RULE_SETUP
#line 183 "lev_comp.l"
- ST_RET(DEFAULT_ID);
- YY_BREAK
- case 61:
- YY_RULE_SETUP
+ST_RET(DEFAULT_ID);
+ YY_BREAK
+case 61:
+YY_RULE_SETUP
#line 184 "lev_comp.l"
- ST_RET(FUNCTION_ID);
- YY_BREAK
- case 62:
- YY_RULE_SETUP
+ST_RET(FUNCTION_ID);
+ YY_BREAK
+case 62:
+YY_RULE_SETUP
#line 185 "lev_comp.l"
- ST_RET(SHUFFLE_ID);
- YY_BREAK
- case 63:
- YY_RULE_SETUP
+ST_RET(SHUFFLE_ID);
+ YY_BREAK
+case 63:
+YY_RULE_SETUP
#line 186 "lev_comp.l"
- ST_RET(MONTYPE_ID);
- YY_BREAK
- case 64:
- YY_RULE_SETUP
+ST_RET(MONTYPE_ID);
+ YY_BREAK
+case 64:
+YY_RULE_SETUP
#line 187 "lev_comp.l"
- ST_RET(selection_ID);
- YY_BREAK
- case 65:
- YY_RULE_SETUP
+ST_RET(selection_ID);
+ YY_BREAK
+case 65:
+YY_RULE_SETUP
#line 188 "lev_comp.l"
- ST_RET(rect_ID);
- YY_BREAK
- case 66:
- YY_RULE_SETUP
+ST_RET(rect_ID);
+ YY_BREAK
+case 66:
+YY_RULE_SETUP
#line 189 "lev_comp.l"
- ST_RET(fillrect_ID);
- YY_BREAK
- case 67:
- YY_RULE_SETUP
+ST_RET(fillrect_ID);
+ YY_BREAK
+case 67:
+YY_RULE_SETUP
#line 190 "lev_comp.l"
- ST_RET(line_ID);
- YY_BREAK
- case 68:
- YY_RULE_SETUP
+ST_RET(line_ID);
+ YY_BREAK
+case 68:
+YY_RULE_SETUP
#line 191 "lev_comp.l"
- ST_RET(randline_ID);
- YY_BREAK
- case 69:
- YY_RULE_SETUP
+ST_RET(randline_ID);
+ YY_BREAK
+case 69:
+YY_RULE_SETUP
#line 192 "lev_comp.l"
- ST_RET(grow_ID);
- YY_BREAK
- case 70:
- YY_RULE_SETUP
+ST_RET(grow_ID);
+ YY_BREAK
+case 70:
+YY_RULE_SETUP
#line 193 "lev_comp.l"
- ST_RET(flood_ID);
- YY_BREAK
- case 71:
- YY_RULE_SETUP
+ST_RET(flood_ID);
+ YY_BREAK
+case 71:
+YY_RULE_SETUP
#line 194 "lev_comp.l"
- ST_RET(rndcoord_ID);
- YY_BREAK
- case 72:
- YY_RULE_SETUP
+ST_RET(rndcoord_ID);
+ YY_BREAK
+case 72:
+YY_RULE_SETUP
#line 195 "lev_comp.l"
- ST_RET(circle_ID);
- YY_BREAK
- case 73:
- YY_RULE_SETUP
+ST_RET(circle_ID);
+ YY_BREAK
+case 73:
+YY_RULE_SETUP
#line 196 "lev_comp.l"
- ST_RET(ellipse_ID);
- YY_BREAK
- case 74:
- YY_RULE_SETUP
+ST_RET(ellipse_ID);
+ YY_BREAK
+case 74:
+YY_RULE_SETUP
#line 197 "lev_comp.l"
- ST_RET(filter_ID);
- YY_BREAK
- case 75:
- YY_RULE_SETUP
+ST_RET(filter_ID);
+ YY_BREAK
+case 75:
+YY_RULE_SETUP
#line 198 "lev_comp.l"
- ST_RET(gradient_ID);
- YY_BREAK
- case 76:
- YY_RULE_SETUP
+ST_RET(gradient_ID);
+ YY_BREAK
+case 76:
+YY_RULE_SETUP
#line 199 "lev_comp.l"
- ST_RET(complement_ID);
- YY_BREAK
- case 77:
- YY_RULE_SETUP
+ST_RET(complement_ID);
+ YY_BREAK
+case 77:
+YY_RULE_SETUP
#line 200 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = SEL_GRADIENT_RADIAL;
- return GRADIENT_TYPE;
- }
- YY_BREAK
- case 78:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=SEL_GRADIENT_RADIAL; return GRADIENT_TYPE; }
+ YY_BREAK
+case 78:
+YY_RULE_SETUP
#line 201 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = SEL_GRADIENT_SQUARE;
- return GRADIENT_TYPE;
- }
- YY_BREAK
- case 79:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=SEL_GRADIENT_SQUARE; return GRADIENT_TYPE; }
+ YY_BREAK
+case 79:
+YY_RULE_SETUP
#line 202 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = DRY;
- return HUMIDITY_TYPE;
- }
- YY_BREAK
- case 80:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=DRY; return HUMIDITY_TYPE; }
+ YY_BREAK
+case 80:
+YY_RULE_SETUP
#line 203 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = WET;
- return HUMIDITY_TYPE;
- }
- YY_BREAK
- case 81:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=WET; return HUMIDITY_TYPE; }
+ YY_BREAK
+case 81:
+YY_RULE_SETUP
#line 204 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = HOT;
- return HUMIDITY_TYPE;
- }
- YY_BREAK
- case 82:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=HOT; return HUMIDITY_TYPE; }
+ YY_BREAK
+case 82:
+YY_RULE_SETUP
#line 205 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = SOLID;
- return HUMIDITY_TYPE;
- }
- YY_BREAK
- case 83:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=SOLID; return HUMIDITY_TYPE; }
+ YY_BREAK
+case 83:
+YY_RULE_SETUP
#line 206 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = ANY_LOC;
- return HUMIDITY_TYPE;
- }
- YY_BREAK
- case 84:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=ANY_LOC; return HUMIDITY_TYPE; }
+ YY_BREAK
+case 84:
+YY_RULE_SETUP
#line 207 "lev_comp.l"
- ST_RET(LEV);
- YY_BREAK
- case 85:
- YY_RULE_SETUP
+ST_RET(LEV);
+ YY_BREAK
+case 85:
+YY_RULE_SETUP
#line 208 "lev_comp.l"
- ST_RET(QUANTITY_ID);
- YY_BREAK
- case 86:
- YY_RULE_SETUP
+ST_RET(QUANTITY_ID);
+ YY_BREAK
+case 86:
+YY_RULE_SETUP
#line 209 "lev_comp.l"
- ST_RET(BURIED_ID);
- YY_BREAK
- case 87:
- YY_RULE_SETUP
+ST_RET(BURIED_ID);
+ YY_BREAK
+case 87:
+YY_RULE_SETUP
#line 210 "lev_comp.l"
- ST_RET(ERODED_ID);
- YY_BREAK
- case 88:
- YY_RULE_SETUP
+ST_RET(ERODED_ID);
+ YY_BREAK
+case 88:
+YY_RULE_SETUP
#line 211 "lev_comp.l"
- ST_RET(ERODEPROOF_ID);
- YY_BREAK
- case 89:
- YY_RULE_SETUP
+ST_RET(ERODEPROOF_ID);
+ YY_BREAK
+case 89:
+YY_RULE_SETUP
#line 212 "lev_comp.l"
- ST_RET(TRAPPED_ID);
- YY_BREAK
- case 90:
- YY_RULE_SETUP
+ST_RET(TRAPPED_ID);
+ YY_BREAK
+case 90:
+YY_RULE_SETUP
#line 213 "lev_comp.l"
- ST_RET(RECHARGED_ID);
- YY_BREAK
- case 91:
- YY_RULE_SETUP
+ST_RET(RECHARGED_ID);
+ YY_BREAK
+case 91:
+YY_RULE_SETUP
#line 214 "lev_comp.l"
- ST_RET(INVIS_ID);
- YY_BREAK
- case 92:
- YY_RULE_SETUP
+ST_RET(INVIS_ID);
+ YY_BREAK
+case 92:
+YY_RULE_SETUP
#line 215 "lev_comp.l"
- ST_RET(GREASED_ID);
- YY_BREAK
- case 93:
- YY_RULE_SETUP
+ST_RET(GREASED_ID);
+ YY_BREAK
+case 93:
+YY_RULE_SETUP
#line 216 "lev_comp.l"
- ST_RET(FEMALE_ID);
- YY_BREAK
- case 94:
- YY_RULE_SETUP
+ST_RET(FEMALE_ID);
+ YY_BREAK
+case 94:
+YY_RULE_SETUP
#line 217 "lev_comp.l"
- ST_RET(CANCELLED_ID);
- YY_BREAK
- case 95:
- YY_RULE_SETUP
+ST_RET(CANCELLED_ID);
+ YY_BREAK
+case 95:
+YY_RULE_SETUP
#line 218 "lev_comp.l"
- ST_RET(REVIVED_ID);
- YY_BREAK
- case 96:
- YY_RULE_SETUP
+ST_RET(REVIVED_ID);
+ YY_BREAK
+case 96:
+YY_RULE_SETUP
#line 219 "lev_comp.l"
- ST_RET(AVENGE_ID);
- YY_BREAK
- case 97:
- YY_RULE_SETUP
+ST_RET(AVENGE_ID);
+ YY_BREAK
+case 97:
+YY_RULE_SETUP
#line 220 "lev_comp.l"
- ST_RET(FLEEING_ID);
- YY_BREAK
- case 98:
- YY_RULE_SETUP
+ST_RET(FLEEING_ID);
+ YY_BREAK
+case 98:
+YY_RULE_SETUP
#line 221 "lev_comp.l"
- ST_RET(BLINDED_ID);
- YY_BREAK
- case 99:
- YY_RULE_SETUP
+ST_RET(BLINDED_ID);
+ YY_BREAK
+case 99:
+YY_RULE_SETUP
#line 222 "lev_comp.l"
- ST_RET(PARALYZED_ID);
- YY_BREAK
- case 100:
- YY_RULE_SETUP
+ST_RET(PARALYZED_ID);
+ YY_BREAK
+case 100:
+YY_RULE_SETUP
#line 223 "lev_comp.l"
- ST_RET(STUNNED_ID);
- YY_BREAK
- case 101:
- YY_RULE_SETUP
+ST_RET(STUNNED_ID);
+ YY_BREAK
+case 101:
+YY_RULE_SETUP
#line 224 "lev_comp.l"
- ST_RET(CONFUSED_ID);
- YY_BREAK
- case 102:
- YY_RULE_SETUP
+ST_RET(CONFUSED_ID);
+ YY_BREAK
+case 102:
+YY_RULE_SETUP
#line 225 "lev_comp.l"
- ST_RET(SEENTRAPS_ID);
- YY_BREAK
- case 103:
- YY_RULE_SETUP
+ST_RET(SEENTRAPS_ID);
+ YY_BREAK
+case 103:
+YY_RULE_SETUP
#line 226 "lev_comp.l"
- ST_RET(ALL_ID);
- YY_BREAK
- case 104:
- YY_RULE_SETUP
+ST_RET(ALL_ID);
+ YY_BREAK
+case 104:
+YY_RULE_SETUP
#line 227 "lev_comp.l"
- ST_RETF((yylval.i = 1), HORIZ_OR_VERT);
- YY_BREAK
- case 105:
- YY_RULE_SETUP
+ST_RETF((yylval.i=1), HORIZ_OR_VERT);
+ YY_BREAK
+case 105:
+YY_RULE_SETUP
#line 228 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = 2;
- return HORIZ_OR_VERT;
- }
- YY_BREAK
- case 106:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=2; return HORIZ_OR_VERT; }
+ YY_BREAK
+case 106:
+YY_RULE_SETUP
#line 229 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = D_ISOPEN;
- return DOOR_STATE;
- }
- YY_BREAK
- case 107:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=D_ISOPEN; return DOOR_STATE; }
+ YY_BREAK
+case 107:
+YY_RULE_SETUP
#line 230 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = D_CLOSED;
- return DOOR_STATE;
- }
- YY_BREAK
- case 108:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=D_CLOSED; return DOOR_STATE; }
+ YY_BREAK
+case 108:
+YY_RULE_SETUP
#line 231 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = D_LOCKED;
- return DOOR_STATE;
- }
- YY_BREAK
- case 109:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=D_LOCKED; return DOOR_STATE; }
+ YY_BREAK
+case 109:
+YY_RULE_SETUP
#line 232 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = D_NODOOR;
- return DOOR_STATE;
- }
- YY_BREAK
- case 110:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=D_NODOOR; return DOOR_STATE; }
+ YY_BREAK
+case 110:
+YY_RULE_SETUP
#line 233 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = D_BROKEN;
- return DOOR_STATE;
- }
- YY_BREAK
- case 111:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=D_BROKEN; return DOOR_STATE; }
+ YY_BREAK
+case 111:
+YY_RULE_SETUP
#line 234 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = D_SECRET;
- return DOOR_STATE;
- }
- YY_BREAK
- case 112:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=D_SECRET; return DOOR_STATE; }
+ YY_BREAK
+case 112:
+YY_RULE_SETUP
#line 235 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = W_NORTH;
- return DIRECTION;
- }
- YY_BREAK
- case 113:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=W_NORTH; return DIRECTION; }
+ YY_BREAK
+case 113:
+YY_RULE_SETUP
#line 236 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = W_EAST;
- return DIRECTION;
- }
- YY_BREAK
- case 114:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=W_EAST; return DIRECTION; }
+ YY_BREAK
+case 114:
+YY_RULE_SETUP
#line 237 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = W_SOUTH;
- return DIRECTION;
- }
- YY_BREAK
- case 115:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=W_SOUTH; return DIRECTION; }
+ YY_BREAK
+case 115:
+YY_RULE_SETUP
#line 238 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = W_WEST;
- return DIRECTION;
- }
- YY_BREAK
- case 116:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=W_WEST; return DIRECTION; }
+ YY_BREAK
+case 116:
+YY_RULE_SETUP
#line 239 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = -1;
- return RANDOM_TYPE;
- }
- YY_BREAK
- case 117:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i = -1; return RANDOM_TYPE; }
+ YY_BREAK
+case 117:
+YY_RULE_SETUP
#line 240 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = -1;
- return RANDOM_TYPE_BRACKET;
- }
- YY_BREAK
- case 118:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i = -1; return RANDOM_TYPE_BRACKET; }
+ YY_BREAK
+case 118:
+YY_RULE_SETUP
#line 241 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = -2;
- return NONE;
- }
- YY_BREAK
- case 119:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i = -2; return NONE; }
+ YY_BREAK
+case 119:
+YY_RULE_SETUP
#line 242 "lev_comp.l"
- ST_RET(A_REGISTER);
- YY_BREAK
- case 120:
- YY_RULE_SETUP
+ST_RET(A_REGISTER);
+ YY_BREAK
+case 120:
+YY_RULE_SETUP
#line 243 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = 1;
- return LEFT_OR_RIGHT;
- }
- YY_BREAK
- case 121:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=1; return LEFT_OR_RIGHT; }
+ YY_BREAK
+case 121:
+YY_RULE_SETUP
#line 244 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = 2;
- return LEFT_OR_RIGHT;
- }
- YY_BREAK
- case 122:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=2; return LEFT_OR_RIGHT; }
+ YY_BREAK
+case 122:
+YY_RULE_SETUP
#line 245 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = 3;
- return CENTER;
- }
- YY_BREAK
- case 123:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=3; return CENTER; }
+ YY_BREAK
+case 123:
+YY_RULE_SETUP
#line 246 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = 4;
- return LEFT_OR_RIGHT;
- }
- YY_BREAK
- case 124:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=4; return LEFT_OR_RIGHT; }
+ YY_BREAK
+case 124:
+YY_RULE_SETUP
#line 247 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = 5;
- return LEFT_OR_RIGHT;
- }
- YY_BREAK
- case 125:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=5; return LEFT_OR_RIGHT; }
+ YY_BREAK
+case 125:
+YY_RULE_SETUP
#line 248 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = 1;
- return TOP_OR_BOT;
- }
- YY_BREAK
- case 126:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=1; return TOP_OR_BOT; }
+ YY_BREAK
+case 126:
+YY_RULE_SETUP
#line 249 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = 5;
- return TOP_OR_BOT;
- }
- YY_BREAK
- case 127:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=5; return TOP_OR_BOT; }
+ YY_BREAK
+case 127:
+YY_RULE_SETUP
#line 250 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = 1;
- return LIGHT_STATE;
- }
- YY_BREAK
- case 128:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=1; return LIGHT_STATE; }
+ YY_BREAK
+case 128:
+YY_RULE_SETUP
#line 251 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = 0;
- return LIGHT_STATE;
- }
- YY_BREAK
- case 129:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=0; return LIGHT_STATE; }
+ YY_BREAK
+case 129:
+YY_RULE_SETUP
#line 252 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = 1;
- return FILLING;
- }
- YY_BREAK
- case 130:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=1; return FILLING; }
+ YY_BREAK
+case 130:
+YY_RULE_SETUP
#line 253 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = 0;
- return FILLING;
- }
- YY_BREAK
- case 131:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=0; return FILLING; }
+ YY_BREAK
+case 131:
+YY_RULE_SETUP
#line 254 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = 0;
- return IRREGULAR;
- }
- YY_BREAK
- case 132:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=0; return IRREGULAR; }
+ YY_BREAK
+case 132:
+YY_RULE_SETUP
#line 255 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = 1;
- return IRREGULAR;
- }
- YY_BREAK
- case 133:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=1; return IRREGULAR; }
+ YY_BREAK
+case 133:
+YY_RULE_SETUP
#line 256 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = 1;
- return JOINED;
- }
- YY_BREAK
- case 134:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=1; return JOINED; }
+ YY_BREAK
+case 134:
+YY_RULE_SETUP
#line 257 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = 0;
- return JOINED;
- }
- YY_BREAK
- case 135:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=0; return JOINED; }
+ YY_BREAK
+case 135:
+YY_RULE_SETUP
#line 258 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = 1;
- return LIMITED;
- }
- YY_BREAK
- case 136:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=1; return LIMITED; }
+ YY_BREAK
+case 136:
+YY_RULE_SETUP
#line 259 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = 0;
- return LIMITED;
- }
- YY_BREAK
- case 137:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=0; return LIMITED; }
+ YY_BREAK
+case 137:
+YY_RULE_SETUP
#line 260 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = AM_NONE;
- return ALIGNMENT;
- }
- YY_BREAK
- case 138:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i= AM_NONE; return ALIGNMENT; }
+ YY_BREAK
+case 138:
+YY_RULE_SETUP
#line 261 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = AM_LAWFUL;
- return ALIGNMENT;
- }
- YY_BREAK
- case 139:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i= AM_LAWFUL; return ALIGNMENT; }
+ YY_BREAK
+case 139:
+YY_RULE_SETUP
#line 262 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = AM_NEUTRAL;
- return ALIGNMENT;
- }
- YY_BREAK
- case 140:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i= AM_NEUTRAL; return ALIGNMENT; }
+ YY_BREAK
+case 140:
+YY_RULE_SETUP
#line 263 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = AM_CHAOTIC;
- return ALIGNMENT;
- }
- YY_BREAK
- case 141:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i= AM_CHAOTIC; return ALIGNMENT; }
+ YY_BREAK
+case 141:
+YY_RULE_SETUP
#line 264 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = AM_SPLEV_CO;
- return ALIGNMENT;
- }
- YY_BREAK
- case 142:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i= AM_SPLEV_CO; return ALIGNMENT; }
+ YY_BREAK
+case 142:
+YY_RULE_SETUP
#line 265 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = AM_SPLEV_NONCO;
- return ALIGNMENT;
- }
- YY_BREAK
- case 143:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i= AM_SPLEV_NONCO; return ALIGNMENT; }
+ YY_BREAK
+case 143:
+YY_RULE_SETUP
#line 266 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = 1;
- return MON_ATTITUDE;
- }
- YY_BREAK
- case 144:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=1; return MON_ATTITUDE; }
+ YY_BREAK
+case 144:
+YY_RULE_SETUP
#line 267 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = 0;
- return MON_ATTITUDE;
- }
- YY_BREAK
- case 145:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=0; return MON_ATTITUDE; }
+ YY_BREAK
+case 145:
+YY_RULE_SETUP
#line 268 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = 1;
- return MON_ALERTNESS;
- }
- YY_BREAK
- case 146:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=1; return MON_ALERTNESS; }
+ YY_BREAK
+case 146:
+YY_RULE_SETUP
#line 269 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = 0;
- return MON_ALERTNESS;
- }
- YY_BREAK
- case 147:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=0; return MON_ALERTNESS; }
+ YY_BREAK
+case 147:
+YY_RULE_SETUP
#line 270 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = M_AP_FURNITURE;
- return MON_APPEARANCE;
- }
- YY_BREAK
- case 148:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i= M_AP_FURNITURE; return MON_APPEARANCE; }
+ YY_BREAK
+case 148:
+YY_RULE_SETUP
#line 271 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = M_AP_MONSTER;
- return MON_APPEARANCE;
- }
- YY_BREAK
- case 149:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i= M_AP_MONSTER; return MON_APPEARANCE; }
+ YY_BREAK
+case 149:
+YY_RULE_SETUP
#line 272 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = M_AP_OBJECT;
- return MON_APPEARANCE;
- }
- YY_BREAK
- case 150:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i= M_AP_OBJECT; return MON_APPEARANCE; }
+ YY_BREAK
+case 150:
+YY_RULE_SETUP
#line 273 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = 2;
- return ALTAR_TYPE;
- }
- YY_BREAK
- case 151:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=2; return ALTAR_TYPE; }
+ YY_BREAK
+case 151:
+YY_RULE_SETUP
#line 274 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = 1;
- return ALTAR_TYPE;
- }
- YY_BREAK
- case 152:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=1; return ALTAR_TYPE; }
+ YY_BREAK
+case 152:
+YY_RULE_SETUP
#line 275 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = 0;
- return ALTAR_TYPE;
- }
- YY_BREAK
- case 153:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=0; return ALTAR_TYPE; }
+ YY_BREAK
+case 153:
+YY_RULE_SETUP
#line 276 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = 1;
- return UP_OR_DOWN;
- }
- YY_BREAK
- case 154:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=1; return UP_OR_DOWN; }
+ YY_BREAK
+case 154:
+YY_RULE_SETUP
#line 277 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = 0;
- return UP_OR_DOWN;
- }
- YY_BREAK
- case 155:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=0; return UP_OR_DOWN; }
+ YY_BREAK
+case 155:
+YY_RULE_SETUP
#line 278 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = 0;
- return BOOLEAN;
- }
- YY_BREAK
- case 156:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=0; return BOOLEAN; }
+ YY_BREAK
+case 156:
+YY_RULE_SETUP
#line 279 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = 1;
- return BOOLEAN;
- }
- YY_BREAK
- case 157:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=1; return BOOLEAN; }
+ YY_BREAK
+case 157:
+YY_RULE_SETUP
#line 280 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = DUST;
- return ENGRAVING_TYPE;
- }
- YY_BREAK
- case 158:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=DUST; return ENGRAVING_TYPE; }
+ YY_BREAK
+case 158:
+YY_RULE_SETUP
#line 281 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = ENGRAVE;
- return ENGRAVING_TYPE;
- }
- YY_BREAK
- case 159:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=ENGRAVE; return ENGRAVING_TYPE; }
+ YY_BREAK
+case 159:
+YY_RULE_SETUP
#line 282 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = BURN;
- return ENGRAVING_TYPE;
- }
- YY_BREAK
- case 160:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=BURN; return ENGRAVING_TYPE; }
+ YY_BREAK
+case 160:
+YY_RULE_SETUP
#line 283 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = MARK;
- return ENGRAVING_TYPE;
- }
- YY_BREAK
- case 161:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=MARK; return ENGRAVING_TYPE; }
+ YY_BREAK
+case 161:
+YY_RULE_SETUP
#line 284 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = ENGR_BLOOD;
- return ENGRAVING_TYPE;
- }
- YY_BREAK
- case 162:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=ENGR_BLOOD; return ENGRAVING_TYPE; }
+ YY_BREAK
+case 162:
+YY_RULE_SETUP
#line 285 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = 1;
- return CURSE_TYPE;
- }
- YY_BREAK
- case 163:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=1; return CURSE_TYPE; }
+ YY_BREAK
+case 163:
+YY_RULE_SETUP
#line 286 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = 2;
- return CURSE_TYPE;
- }
- YY_BREAK
- case 164:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=2; return CURSE_TYPE; }
+ YY_BREAK
+case 164:
+YY_RULE_SETUP
#line 287 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = 3;
- return CURSE_TYPE;
- }
- YY_BREAK
- case 165:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=3; return CURSE_TYPE; }
+ YY_BREAK
+case 165:
+YY_RULE_SETUP
#line 288 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = NOTELEPORT;
- return FLAG_TYPE;
- }
- YY_BREAK
- case 166:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=NOTELEPORT; return FLAG_TYPE; }
+ YY_BREAK
+case 166:
+YY_RULE_SETUP
#line 289 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = HARDFLOOR;
- return FLAG_TYPE;
- }
- YY_BREAK
- case 167:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=HARDFLOOR; return FLAG_TYPE; }
+ YY_BREAK
+case 167:
+YY_RULE_SETUP
#line 290 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = NOMMAP;
- return FLAG_TYPE;
- }
- YY_BREAK
- case 168:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=NOMMAP; return FLAG_TYPE; }
+ YY_BREAK
+case 168:
+YY_RULE_SETUP
#line 291 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = ARBOREAL;
- return FLAG_TYPE;
- } /* KMH */
- YY_BREAK
- case 169:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=ARBOREAL; return FLAG_TYPE; } /* KMH */
+ YY_BREAK
+case 169:
+YY_RULE_SETUP
#line 292 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = SHORTSIGHTED;
- return FLAG_TYPE;
- }
- YY_BREAK
- case 170:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=SHORTSIGHTED; return FLAG_TYPE; }
+ YY_BREAK
+case 170:
+YY_RULE_SETUP
#line 293 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = MAZELEVEL;
- return FLAG_TYPE;
- }
- YY_BREAK
- case 171:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=MAZELEVEL; return FLAG_TYPE; }
+ YY_BREAK
+case 171:
+YY_RULE_SETUP
#line 294 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = PREMAPPED;
- return FLAG_TYPE;
- }
- YY_BREAK
- case 172:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=PREMAPPED; return FLAG_TYPE; }
+ YY_BREAK
+case 172:
+YY_RULE_SETUP
#line 295 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = SHROUD;
- return FLAG_TYPE;
- }
- YY_BREAK
- case 173:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=SHROUD; return FLAG_TYPE; }
+ YY_BREAK
+case 173:
+YY_RULE_SETUP
#line 296 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = GRAVEYARD;
- return FLAG_TYPE;
- }
- YY_BREAK
- case 174:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=GRAVEYARD; return FLAG_TYPE; }
+ YY_BREAK
+case 174:
+YY_RULE_SETUP
#line 297 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = ICEDPOOLS;
- return FLAG_TYPE;
- }
- YY_BREAK
- case 175:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=ICEDPOOLS; return FLAG_TYPE; }
+ YY_BREAK
+case 175:
+YY_RULE_SETUP
#line 298 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = SOLIDIFY;
- return FLAG_TYPE;
- }
- YY_BREAK
- case 176:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=SOLIDIFY; return FLAG_TYPE; }
+ YY_BREAK
+case 176:
+YY_RULE_SETUP
#line 299 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = CORRMAZE;
- return FLAG_TYPE;
- }
- YY_BREAK
- case 177:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=CORRMAZE; return FLAG_TYPE; }
+ YY_BREAK
+case 177:
+YY_RULE_SETUP
#line 300 "lev_comp.l"
- {
- char *p = strchr(yytext, 'd');
- savetoken(yytext);
- if (p) {
- *p = '\0';
- p++;
- yylval.dice.num = atoi(yytext);
- yylval.dice.die = atoi(p);
- } else {
- yylval.dice.num = yylval.dice.die = 1;
- }
- return DICE;
- }
- YY_BREAK
- case 178:
- YY_RULE_SETUP
+{ char *p = strchr(yytext, 'd');
+ savetoken(yytext);
+ if (p) {
+ *p = '\0';
+ p++;
+ yylval.dice.num=atoi(yytext);
+ yylval.dice.die=atoi(p);
+ } else { yylval.dice.num = yylval.dice.die = 1; }
+ return DICE;
+ }
+ YY_BREAK
+case 178:
+YY_RULE_SETUP
#line 310 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = atoi(yytext + 1);
- if (yylval.i < 0 || yylval.i > 100)
- lc_error("Unexpected percentile '%li%%'", yylval.i);
- return PERCENT;
- }
- YY_BREAK
- case 179:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i = atoi(yytext + 1);
+ if (yylval.i < 0 || yylval.i > 100)
+ lc_error("Unexpected percentile '%li%%'", yylval.i);
+ return PERCENT; }
+ YY_BREAK
+case 179:
+YY_RULE_SETUP
#line 314 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = atoi(yytext);
- return MINUS_INTEGER;
- }
- YY_BREAK
- case 180:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=atoi(yytext); return MINUS_INTEGER; }
+ YY_BREAK
+case 180:
+YY_RULE_SETUP
#line 315 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = atoi(yytext);
- return PLUS_INTEGER;
- }
- YY_BREAK
- case 181:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=atoi(yytext); return PLUS_INTEGER; }
+ YY_BREAK
+case 181:
+YY_RULE_SETUP
#line 316 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = atoi(yytext);
- if (yylval.i < 0 || yylval.i > 100)
- lc_error("Unexpected percentile '%li%%'", yylval.i);
- return SPERCENT;
- }
- YY_BREAK
- case 182:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i = atoi(yytext);
+ if (yylval.i < 0 || yylval.i > 100)
+ lc_error("Unexpected percentile '%li%%'", yylval.i);
+ return SPERCENT; }
+ YY_BREAK
+case 182:
+YY_RULE_SETUP
#line 320 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = atoi(yytext);
- return INTEGER;
- }
- YY_BREAK
- case 183:
- /* rule 183 can match eol */
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i=atoi(yytext); return INTEGER; }
+ YY_BREAK
+case 183:
+YY_RULE_SETUP
#line 321 "lev_comp.l"
- {
- savetoken(yytext);
- yytext[yyleng - 1] = 0; /* Discard the trailing \" */
- yylval.map = (char *) alloc(strlen(yytext + 1) + 1);
- Strcpy(yylval.map, yytext + 1); /* Discard the first \" */
- return STRING;
- }
- YY_BREAK
- case 184:
- YY_RULE_SETUP
+{ savetoken(yytext);
+ yytext[yyleng-1] = 0; /* Discard the trailing \" */
+ yylval.map = (char *) alloc(strlen(yytext+1)+1);
+ Strcpy(yylval.map, yytext+1); /* Discard the first \" */
+ return STRING; }
+ YY_BREAK
+case 184:
+YY_RULE_SETUP
#line 326 "lev_comp.l"
- {
- savetoken(yytext);
- return handle_varstring_check();
- }
- YY_BREAK
- case 185:
- YY_RULE_SETUP
+{ savetoken(yytext); return handle_varstring_check(); }
+ YY_BREAK
+case 185:
+YY_RULE_SETUP
#line 327 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = SPO_JE;
- return COMPARE_TYPE;
- }
- YY_BREAK
- case 186:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i = SPO_JE; return COMPARE_TYPE; }
+ YY_BREAK
+case 186:
+YY_RULE_SETUP
#line 328 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = SPO_JNE;
- return COMPARE_TYPE;
- }
- YY_BREAK
- case 187:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i = SPO_JNE; return COMPARE_TYPE; }
+ YY_BREAK
+case 187:
+YY_RULE_SETUP
#line 329 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = SPO_JNE;
- return COMPARE_TYPE;
- }
- YY_BREAK
- case 188:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i = SPO_JNE; return COMPARE_TYPE; }
+ YY_BREAK
+case 188:
+YY_RULE_SETUP
#line 330 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = SPO_JLE;
- return COMPARE_TYPE;
- }
- YY_BREAK
- case 189:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i = SPO_JLE; return COMPARE_TYPE; }
+ YY_BREAK
+case 189:
+YY_RULE_SETUP
#line 331 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = SPO_JGE;
- return COMPARE_TYPE;
- }
- YY_BREAK
- case 190:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i = SPO_JGE; return COMPARE_TYPE; }
+ YY_BREAK
+case 190:
+YY_RULE_SETUP
#line 332 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = SPO_JL;
- return COMPARE_TYPE;
- }
- YY_BREAK
- case 191:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i = SPO_JL; return COMPARE_TYPE; }
+ YY_BREAK
+case 191:
+YY_RULE_SETUP
#line 333 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = SPO_JG;
- return COMPARE_TYPE;
- }
- YY_BREAK
- case 192:
- /* rule 192 can match eol */
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i = SPO_JG; return COMPARE_TYPE; }
+ YY_BREAK
+case 192:
+YY_RULE_SETUP
#line 334 "lev_comp.l"
- {
- newline();
- }
- YY_BREAK
- case 193:
- YY_RULE_SETUP
+{ newline(); }
+ YY_BREAK
+case 193:
+YY_RULE_SETUP
#line 335 "lev_comp.l"
- {
- advancepos(yytext);
- }
- YY_BREAK
- case 194:
- YY_RULE_SETUP
+{ advancepos(yytext); }
+ YY_BREAK
+case 194:
+YY_RULE_SETUP
#line 336 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = yytext[2];
- return CHAR;
- }
- YY_BREAK
- case 195:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i = yytext[2]; return CHAR; }
+ YY_BREAK
+case 195:
+YY_RULE_SETUP
#line 337 "lev_comp.l"
- {
- savetoken(yytext);
- yylval.i = yytext[1];
- return CHAR;
- }
- YY_BREAK
- case 196:
- YY_RULE_SETUP
+{ savetoken(yytext); yylval.i = yytext[1]; return CHAR; }
+ YY_BREAK
+case 196:
+YY_RULE_SETUP
#line 338 "lev_comp.l"
- ST_RET(UNKNOWN_TYPE);
- YY_BREAK
- case 197:
- YY_RULE_SETUP
+ST_RET(UNKNOWN_TYPE);
+ YY_BREAK
+case 197:
+YY_RULE_SETUP
#line 339 "lev_comp.l"
- {
- savetoken(yytext);
- return yytext[0];
- }
- YY_BREAK
- case 198:
- YY_RULE_SETUP
+{ savetoken(yytext); return yytext[0]; }
+ YY_BREAK
+case 198:
+YY_RULE_SETUP
#line 340 "lev_comp.l"
- ECHO;
- YY_BREAK
-#line 2503 "lex.yy.c"
- case YY_STATE_EOF(INITIAL):
- case YY_STATE_EOF(MAPC):
- yyterminate();
-
- case YY_END_OF_BUFFER: {
- /* Amount of text matched not including the EOB char. */
- int yy_amount_of_matched_text =
- (int) (yy_cp - (yytext_ptr)) - 1;
-
- /* Undo the effects of YY_DO_BEFORE_ACTION. */
- *yy_cp = (yy_hold_char);
- YY_RESTORE_YY_MORE_OFFSET
-
- if (YY_CURRENT_BUFFER_LVALUE->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_LVALUE->yy_n_chars;
- YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
- YY_CURRENT_BUFFER_LVALUE->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_LVALUE->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_LVALUE
- ->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 user's declarations */
-} /* end of yylex */
+ECHO;
+ YY_BREAK
+#line 2365 "lex.yy.c"
+case YY_STATE_EOF(INITIAL):
+case YY_STATE_EOF(MAPC):
+ yyterminate();
+
+ case YY_END_OF_BUFFER:
+ {
+ /* Amount of text matched not including the EOB char. */
+ int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1;
+
+ /* Undo the effects of YY_DO_BEFORE_ACTION. */
+ *yy_cp = yy_hold_char;
+ YY_RESTORE_YY_MORE_OFFSET
+
+ if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )
+ {
+ /* We're scanning a new file or input source. It's
+ * possible that this happened because the user
+ * just pointed yyin at a new source and called
+ * yylex(). If so, then we have to assure
+ * consistency between yy_current_buffer and our
+ * globals. Here is the right place to do so, because
+ * this is the first action (other than possibly a
+ * back-up) that will match for the new input source.
+ */
+ yy_n_chars = yy_current_buffer->yy_n_chars;
+ yy_current_buffer->yy_input_file = yyin;
+ yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL;
+ }
+
+ /* Note that here we test for yy_c_buf_p "<=" to the position
+ * of the first EOB in the buffer, since yy_c_buf_p will
+ * already have been incremented past the NUL character
+ * (since all states make transitions on EOB to the
+ * end-of-buffer state). Contrast this with the test
+ * in input().
+ */
+ if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
+ { /* This was really a NUL. */
+ yy_state_type yy_next_state;
+
+ yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;
+
+ yy_current_state = yy_get_previous_state();
+
+ /* Okay, we're now positioned to make the NUL
+ * transition. We couldn't have
+ * yy_get_previous_state() go ahead and do it
+ * for us because it doesn't know how to deal
+ * with the possibility of jamming (and we don't
+ * want to build jamming into it because then it
+ * will run more slowly).
+ */
+
+ yy_next_state = yy_try_NUL_trans( yy_current_state );
+
+ yy_bp = yytext_ptr + YY_MORE_ADJ;
+
+ if ( yy_next_state )
+ {
+ /* Consume the NUL. */
+ yy_cp = ++yy_c_buf_p;
+ yy_current_state = yy_next_state;
+ goto yy_match;
+ }
+
+ else
+ {
+ yy_cp = yy_c_buf_p;
+ goto yy_find_action;
+ }
+ }
+
+ else switch ( yy_get_next_buffer() )
+ {
+ case EOB_ACT_END_OF_FILE:
+ {
+ yy_did_buffer_switch_on_eof = 0;
+
+ if ( yywrap() )
+ {
+ /* Note: because we've taken care in
+ * yy_get_next_buffer() to have set up
+ * yytext, we can now set up
+ * yy_c_buf_p so that if some total
+ * hoser (like flex itself) wants to
+ * call the scanner after we return the
+ * YY_NULL, it'll still work - another
+ * YY_NULL will get returned.
+ */
+ yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;
+
+ yy_act = YY_STATE_EOF(YY_START);
+ goto do_action;
+ }
+
+ else
+ {
+ if ( ! yy_did_buffer_switch_on_eof )
+ YY_NEW_FILE;
+ }
+ break;
+ }
+
+ case EOB_ACT_CONTINUE_SCAN:
+ yy_c_buf_p =
+ yytext_ptr + yy_amount_of_matched_text;
+
+ yy_current_state = yy_get_previous_state();
+
+ yy_cp = yy_c_buf_p;
+ yy_bp = yytext_ptr + YY_MORE_ADJ;
+ goto yy_match;
+
+ case EOB_ACT_LAST_MATCH:
+ yy_c_buf_p =
+ &yy_current_buffer->yy_ch_buf[yy_n_chars];
+
+ yy_current_state = yy_get_previous_state();
+
+ yy_cp = yy_c_buf_p;
+ yy_bp = yytext_ptr + YY_MORE_ADJ;
+ goto yy_find_action;
+ }
+ break;
+ }
+
+ default:
+ YY_FATAL_ERROR(
+ "fatal flex scanner internal error--no action found" );
+ } /* end of action switch */
+ } /* end of scanning one token */
+ } /* end of yylex */
+
/* yy_get_next_buffer - try to read in a new buffer
*
* EOB_ACT_CONTINUE_SCAN - continue scanning from current position
* EOB_ACT_END_OF_FILE - end of file
*/
-static int
-yy_get_next_buffer(void)
-{
- register char *dest = YY_CURRENT_BUFFER_LVALUE->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_LVALUE->yy_ch_buf[(yy_n_chars) + 1])
- YY_FATAL_ERROR(
- "fatal flex scanner internal error--end of buffer missed");
-
- if (YY_CURRENT_BUFFER_LVALUE->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_LVALUE->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_LVALUE->yy_n_chars = (yy_n_chars) = 0;
-
- else {
- yy_size_t num_to_read =
- YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
-
- while (num_to_read
- <= 0) { /* Not enough room in the buffer - grow it. */
-
- /* just a shorter name for the current buffer */
- YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE;
-
- int yy_c_buf_p_offset = (int) ((yy_c_buf_p) -b->yy_ch_buf);
-
- if (b->yy_is_our_buffer) {
- yy_size_t 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. */
- yyrealloc((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_LVALUE->yy_buf_size - number_to_move - 1;
- }
-
- if (num_to_read > YY_READ_BUF_SIZE)
- num_to_read = YY_READ_BUF_SIZE;
-
- /* Read in more data. */
- YY_INPUT((&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
- (yy_n_chars), num_to_read);
-
- YY_CURRENT_BUFFER_LVALUE->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_LVALUE->yy_buffer_status =
- YY_BUFFER_EOF_PENDING;
- }
- }
-
- else
- ret_val = EOB_ACT_CONTINUE_SCAN;
-
- if ((yy_size_t)((yy_n_chars) + number_to_move)
- > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
- /* Extend the array by 50%, plus the number we really need. */
- yy_size_t new_size =
- (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
- YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc(
- (void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, new_size);
- if (!YY_CURRENT_BUFFER_LVALUE->yy_ch_buf)
- YY_FATAL_ERROR("out of dynamic memory in yy_get_next_buffer()");
- }
-
- (yy_n_chars) += number_to_move;
- YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR;
- YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] =
- YY_END_OF_BUFFER_CHAR;
-
- (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
-
- return ret_val;
-}
-/* yy_get_previous_state - get the state just before the EOB char was reached
- */
+static int yy_get_next_buffer()
+ {
+ register char *dest = yy_current_buffer->yy_ch_buf;
+ register char *source = yytext_ptr;
+ register int number_to_move, i;
+ int ret_val;
+
+ if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
+ YY_FATAL_ERROR(
+ "fatal flex scanner internal error--end of buffer missed" );
+
+ if ( yy_current_buffer->yy_fill_buffer == 0 )
+ { /* Don't try to fill the buffer, so this is an EOF. */
+ if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 )
+ {
+ /* We matched a single character, the EOB, so
+ * treat this as a final EOF.
+ */
+ return EOB_ACT_END_OF_FILE;
+ }
+
+ else
+ {
+ /* We matched some text prior to the EOB, first
+ * process it.
+ */
+ return EOB_ACT_LAST_MATCH;
+ }
+ }
+
+ /* Try to read more data. */
+
+ /* First move last chars to start of buffer. */
+ number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1;
+
+ for ( i = 0; i < number_to_move; ++i )
+ *(dest++) = *(source++);
+
+ if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING )
+ /* don't do the read, it's not guaranteed to return an EOF,
+ * just force an EOF
+ */
+ yy_current_buffer->yy_n_chars = yy_n_chars = 0;
+
+ else
+ {
+ int num_to_read =
+ yy_current_buffer->yy_buf_size - number_to_move - 1;
+
+ while ( num_to_read <= 0 )
+ { /* Not enough room in the buffer - grow it. */
+#ifdef YY_USES_REJECT
+ YY_FATAL_ERROR(
+"input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
+#else
+
+ /* just a shorter name for the current buffer */
+ YY_BUFFER_STATE b = yy_current_buffer;
+
+ int yy_c_buf_p_offset =
+ (int) (yy_c_buf_p - b->yy_ch_buf);
+
+ if ( b->yy_is_our_buffer )
+ {
+ int new_size = b->yy_buf_size * 2;
+
+ if ( new_size <= 0 )
+ b->yy_buf_size += b->yy_buf_size / 8;
+ else
+ b->yy_buf_size *= 2;
+
+ b->yy_ch_buf = (char *)
+ /* Include room in for 2 EOB chars. */
+ yy_flex_realloc( (void *) b->yy_ch_buf,
+ b->yy_buf_size + 2 );
+ }
+ else
+ /* Can't grow it, we don't own it. */
+ b->yy_ch_buf = 0;
+
+ if ( ! b->yy_ch_buf )
+ YY_FATAL_ERROR(
+ "fatal error - scanner input buffer overflow" );
+
+ yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
+
+ num_to_read = yy_current_buffer->yy_buf_size -
+ number_to_move - 1;
+#endif
+ }
+
+ if ( num_to_read > YY_READ_BUF_SIZE )
+ num_to_read = YY_READ_BUF_SIZE;
+
+ /* Read in more data. */
+ YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
+ yy_n_chars, num_to_read );
+
+ yy_current_buffer->yy_n_chars = yy_n_chars;
+ }
+
+ if ( yy_n_chars == 0 )
+ {
+ if ( number_to_move == YY_MORE_ADJ )
+ {
+ ret_val = EOB_ACT_END_OF_FILE;
+ yyrestart( yyin );
+ }
+
+ else
+ {
+ ret_val = EOB_ACT_LAST_MATCH;
+ yy_current_buffer->yy_buffer_status =
+ YY_BUFFER_EOF_PENDING;
+ }
+ }
+
+ else
+ ret_val = EOB_ACT_CONTINUE_SCAN;
+
+ yy_n_chars += number_to_move;
+ yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
+ yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
+
+ yytext_ptr = &yy_current_buffer->yy_ch_buf[0];
+
+ return ret_val;
+ }
+
+
+/* yy_get_previous_state - get the state just before the EOB char was reached */
+
+static yy_state_type yy_get_previous_state()
+ {
+ register yy_state_type yy_current_state;
+ register char *yy_cp;
+
+ yy_current_state = yy_start;
+ yy_current_state += YY_AT_BOL();
+
+ for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
+ {
+ register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
+ if ( yy_accept[yy_current_state] )
+ {
+ yy_last_accepting_state = yy_current_state;
+ yy_last_accepting_cpos = yy_cp;
+ }
+ while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
+ {
+ yy_current_state = (int) yy_def[yy_current_state];
+ if ( yy_current_state >= 1038 )
+ 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;
+ }
-static yy_state_type
-yy_get_previous_state(void)
-{
- register yy_state_type yy_current_state;
- register char *yy_cp;
-
- yy_current_state = (yy_start);
- yy_current_state += YY_AT_BOL();
-
- for (yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp) {
- register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
- if (yy_accept[yy_current_state]) {
- (yy_last_accepting_state) = yy_current_state;
- (yy_last_accepting_cpos) = yy_cp;
- }
- while (yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state) {
- yy_current_state = (int) yy_def[yy_current_state];
- if (yy_current_state >= 1038)
- 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 );
*/
-static yy_state_type
-yy_try_NUL_trans(yy_state_type yy_current_state)
-{
- 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 >= 1038)
- 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 == 1037);
-
- return yy_is_jam ? 0 : yy_current_state;
-}
-static void
-yyunput(int c, register char *yy_bp)
-{
- register char *yy_cp;
+#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 >= 1038 )
+ 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 == 1037);
+
+ 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;
- yy_cp = (yy_c_buf_p);
+ /* undo effects of setting up yytext */
+ *yy_cp = yy_hold_char;
- /* 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];
- if (yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf
- + 2) { /* need to shift things up to make room */
- /* +2 for EOB chars. */
- register yy_size_t number_to_move = (yy_n_chars) + 2;
- register char *dest =
- &YY_CURRENT_BUFFER_LVALUE
- ->yy_ch_buf[YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
- register char *source =
- &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];
+ while ( source > yy_current_buffer->yy_ch_buf )
+ *--dest = *--source;
- while (source > YY_CURRENT_BUFFER_LVALUE->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;
- yy_cp += (int) (dest - source);
- yy_bp += (int) (dest - source);
- YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) =
- YY_CURRENT_BUFFER_LVALUE->yy_buf_size;
+ if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
+ YY_FATAL_ERROR( "flex scanner push-back overflow" );
+ }
- if (yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2)
- YY_FATAL_ERROR("flex scanner push-back overflow");
- }
+ *--yy_cp = (char) c;
- *--yy_cp = (char) c;
- (yytext_ptr) = yy_bp;
- (yy_hold_char) = *yy_cp;
- (yy_c_buf_p) = yy_cp;
-}
+ yytext_ptr = yy_bp;
+ yy_hold_char = *yy_cp;
+ yy_c_buf_p = yy_cp;
+ }
+#endif /* ifndef YY_NO_UNPUT */
+
-#ifndef YY_NO_INPUT
#ifdef __cplusplus
-static int
-yyinput(void)
+static int yyinput()
#else
-static int
-input(void)
+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_LVALUE->yy_ch_buf[(yy_n_chars)])
- /* This was really a NUL. */
- *(yy_c_buf_p) = '\0';
-
- else { /* need more input */
- yy_size_t 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);
-
- /*FALLTHROUGH*/
-
- case EOB_ACT_END_OF_FILE: {
- if (yywrap())
- return EOF;
-
- if (!(yy_did_buffer_switch_on_eof))
- YY_NEW_FILE;
+ {
+ 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();
+ return yyinput();
#else
- return input();
+ return input();
#endif
- }
-
- case EOB_ACT_CONTINUE_SCAN:
- (yy_c_buf_p) = (yytext_ptr) + offset;
- break;
- }
- }
- }
-
- c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */
- *(yy_c_buf_p) = '\0'; /* preserve yytext */
- (yy_hold_char) = *++(yy_c_buf_p);
+ }
- YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (c == '\n');
+ case EOB_ACT_CONTINUE_SCAN:
+ yy_c_buf_p = yytext_ptr + offset;
+ break;
+ }
+ }
+ }
- return c;
-}
-#endif /* ifndef YY_NO_INPUT */
+ 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;
-/** Immediately switch to a different input stream.
- * @param input_file A readable stream.
- *
- * @note This function does not reset the start condition to @c INITIAL .
- */
-void
-yyrestart(FILE *input_file)
-{
- if (!YY_CURRENT_BUFFER) {
- yyensure_buffer_stack();
- YY_CURRENT_BUFFER_LVALUE = yy_create_buffer(yyin, YY_BUF_SIZE);
- }
+ yy_current_buffer->yy_at_bol = (c == '\n');
- yy_init_buffer(YY_CURRENT_BUFFER, input_file);
- yy_load_buffer_state();
-}
+ return c;
+ }
-/** Switch to a different input buffer.
- * @param new_buffer The new input buffer.
- *
- */
-void
-yy_switch_to_buffer(YY_BUFFER_STATE new_buffer)
-{
- /* TODO. We should be able to replace this entire function body
- * with
- * yypop_buffer_state();
- * yypush_buffer_state(new_buffer);
- */
- yyensure_buffer_stack();
- 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_LVALUE->yy_buf_pos = (yy_c_buf_p);
- YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
- }
-
- YY_CURRENT_BUFFER_LVALUE = 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;
-}
-static void
-yy_load_buffer_state(void)
-{
- (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
- (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
- yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
- (yy_hold_char) = *(yy_c_buf_p);
-}
+#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 );
-/** Allocate and initialize an input buffer state.
- * @param file A readable stream.
- * @param size The character buffer size in bytes. When in doubt, use @c
- * YY_BUF_SIZE.
- *
- * @return the allocated buffer state.
- */
-YY_BUFFER_STATE
-yy_create_buffer(FILE *file, int size)
-{
- YY_BUFFER_STATE b;
+ yy_init_buffer( yy_current_buffer, input_file );
+ yy_load_buffer_state();
+ }
- b = (YY_BUFFER_STATE) yyalloc(sizeof(struct yy_buffer_state));
- if (!b)
- YY_FATAL_ERROR("out of dynamic memory in yy_create_buffer()");
- b->yy_buf_size = size;
+#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;
+ }
- /* 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 *) yyalloc(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;
+#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;
- yy_init_buffer(b, file);
+ 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()" );
- return b;
-}
+ b->yy_buf_size = size;
-/** Destroy the buffer.
- * @param b a buffer created with yy_create_buffer()
- *
- */
-void
-yy_delete_buffer(YY_BUFFER_STATE b)
-{
- if (!b)
- return;
+ /* 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()" );
- if (b == YY_CURRENT_BUFFER) /* Not sure if we should pop here. */
- YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
+ b->yy_is_our_buffer = 1;
- if (b->yy_is_our_buffer)
- yyfree((void *) b->yy_ch_buf);
+ yy_init_buffer( b, file );
- yyfree((void *) b);
-}
+ return b;
+ }
-/* Initializes or reinitializes a buffer.
- * This function is sometimes called more than once on the same buffer,
- * such as during a yyrestart() or at EOF.
- */
-static void
-yy_init_buffer(YY_BUFFER_STATE b, FILE *file)
-{
- int oerrno = errno;
+#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;
- yy_flush_buffer(b);
+ if ( b == yy_current_buffer )
+ yy_current_buffer = (YY_BUFFER_STATE) 0;
- b->yy_input_file = file;
- b->yy_fill_buffer = 1;
+ if ( b->yy_is_our_buffer )
+ yy_flex_free( (void *) b->yy_ch_buf );
- /* If b is the current buffer, then yy_init_buffer was _probably_
- * called from yyrestart() or through yy_get_next_buffer.
- * In that case, we don't want to reset the lineno or column.
- */
- if (b != YY_CURRENT_BUFFER) {
- b->yy_bs_lineno = 1;
- b->yy_bs_column = 0;
- }
+ yy_flex_free( (void *) b );
+ }
- b->yy_is_interactive = file ? (isatty(fileno(file)) > 0) : 0;
- errno = oerrno;
-}
+#ifndef YY_ALWAYS_INTERACTIVE
+#ifndef YY_NEVER_INTERACTIVE
+extern int isatty YY_PROTO(( int ));
+#endif
+#endif
-/** Discard all buffered characters. On the next scan, YY_INPUT will be
- * called.
- * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
- *
- */
-void
-yy_flush_buffer(YY_BUFFER_STATE b)
-{
- if (!b)
- return;
+#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
- 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;
+ {
+ yy_flush_buffer( b );
- b->yy_buf_pos = &b->yy_ch_buf[0];
+ b->yy_input_file = file;
+ b->yy_fill_buffer = 1;
- b->yy_at_bol = 1;
- b->yy_buffer_status = YY_BUFFER_NEW;
+#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
+ }
- if (b == YY_CURRENT_BUFFER)
- yy_load_buffer_state();
-}
-/** Pushes the new state onto the stack. The new state becomes
- * the current state. This function will allocate the stack
- * if necessary.
- * @param new_buffer The new state.
- *
- */
-void
-yypush_buffer_state(YY_BUFFER_STATE new_buffer)
-{
- if (new_buffer == NULL)
- return;
-
- yyensure_buffer_stack();
-
- /* This block is copied from yy_switch_to_buffer. */
- if (YY_CURRENT_BUFFER) {
- /* Flush out information for old buffer. */
- *(yy_c_buf_p) = (yy_hold_char);
- YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
- YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
- }
-
- /* Only push if top exists. Otherwise, replace top. */
- if (YY_CURRENT_BUFFER)
- (yy_buffer_stack_top)++;
- YY_CURRENT_BUFFER_LVALUE = new_buffer;
-
- /* copied from yy_switch_to_buffer. */
- yy_load_buffer_state();
- (yy_did_buffer_switch_on_eof) = 1;
-}
+#ifdef YY_USE_PROTOS
+void yy_flush_buffer( YY_BUFFER_STATE b )
+#else
+void yy_flush_buffer( b )
+YY_BUFFER_STATE b;
+#endif
-/** Removes and deletes the top of the stack, if present.
- * The next element becomes the new top.
- *
- */
-void
-yypop_buffer_state(void)
-{
- if (!YY_CURRENT_BUFFER)
- return;
-
- yy_delete_buffer(YY_CURRENT_BUFFER);
- YY_CURRENT_BUFFER_LVALUE = NULL;
- if ((yy_buffer_stack_top) > 0)
- --(yy_buffer_stack_top);
-
- if (YY_CURRENT_BUFFER) {
- yy_load_buffer_state();
- (yy_did_buffer_switch_on_eof) = 1;
- }
-}
+ {
+ if ( ! b )
+ return;
-/* Allocates the stack if it does not exist.
- * Guarantees space for at least one push.
- */
-static void
-yyensure_buffer_stack(void)
-{
- yy_size_t num_to_alloc;
+ b->yy_n_chars = 0;
- if (!(yy_buffer_stack)) {
- /* First allocation is just for 2 elements, since we don't know if
- * this
- * scanner will even need a stack. We use 2 instead of 1 to avoid an
- * immediate realloc on the next call.
- */
- num_to_alloc = 1;
- (yy_buffer_stack) = (struct yy_buffer_state **) yyalloc(
- num_to_alloc * sizeof(struct yy_buffer_state *));
- if (!(yy_buffer_stack))
- YY_FATAL_ERROR(
- "out of dynamic memory in yyensure_buffer_stack()");
-
- memset((yy_buffer_stack), 0,
- num_to_alloc * sizeof(struct yy_buffer_state *));
-
- (yy_buffer_stack_max) = num_to_alloc;
- (yy_buffer_stack_top) = 0;
- return;
- }
-
- if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1) {
- /* Increase the buffer to prepare for a possible push. */
- int grow_size = 8 /* arbitrary grow size */;
-
- num_to_alloc = (yy_buffer_stack_max) + grow_size;
- (yy_buffer_stack) = (struct yy_buffer_state **) yyrealloc(
- (yy_buffer_stack),
- num_to_alloc * sizeof(struct yy_buffer_state *));
- if (!(yy_buffer_stack))
- YY_FATAL_ERROR(
- "out of dynamic memory in yyensure_buffer_stack()");
-
- /* zero only the new slots.*/
- memset((yy_buffer_stack) + (yy_buffer_stack_max), 0,
- grow_size * sizeof(struct yy_buffer_state *));
- (yy_buffer_stack_max) = num_to_alloc;
- }
-}
+ /* 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;
-/** Setup the input buffer state to scan directly from a user-specified
- * character buffer.
- * @param base the character buffer
- * @param size the size in bytes of the character buffer
- *
- * @return the newly allocated buffer state object.
- */
-YY_BUFFER_STATE
-yy_scan_buffer(char *base, yy_size_t size)
-{
- 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) yyalloc(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;
-}
+ b->yy_buf_pos = &b->yy_ch_buf[0];
-/** Setup the input buffer state to scan a string. The next call to yylex()
- * will
- * scan from a @e copy of @a str.
- * @param yystr a NUL-terminated string to scan
- *
- * @return the newly allocated buffer state object.
- * @note If you want to scan bytes that may contain NUL values, then use
- * yy_scan_bytes() instead.
- */
-YY_BUFFER_STATE
-yy_scan_string(yyconst char *yystr)
-{
- return yy_scan_bytes(yystr, strlen(yystr));
-}
+ b->yy_at_bol = 1;
+ b->yy_buffer_status = YY_BUFFER_NEW;
-/** Setup the input buffer state to scan the given bytes. The next call to
- * yylex() will
- * scan from a @e copy of @a bytes.
- * @param yybytes the byte buffer to scan
- * @param _yybytes_len the number of bytes in the buffer pointed to by @a
- * bytes.
- *
- * @return the newly allocated buffer state object.
- */
-YY_BUFFER_STATE
-yy_scan_bytes(yyconst char *yybytes, yy_size_t _yybytes_len)
-{
- YY_BUFFER_STATE b;
- char *buf;
- yy_size_t n;
- yy_size_t i;
+ if ( b == yy_current_buffer )
+ yy_load_buffer_state();
+ }
- /* Get memory for full buffer, including space for trailing EOB's. */
- n = _yybytes_len + 2;
- buf = (char *) yyalloc(n);
- if (!buf)
- YY_FATAL_ERROR("out of dynamic memory in yy_scan_bytes()");
- for (i = 0; i < _yybytes_len; ++i)
- buf[i] = yybytes[i];
+#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
- buf[_yybytes_len] = buf[_yybytes_len + 1] = YY_END_OF_BUFFER_CHAR;
- b = yy_scan_buffer(buf, n);
- if (!b)
- YY_FATAL_ERROR("bad buffer in yy_scan_bytes()");
+#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 )
+ ;
- /* 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 yy_scan_bytes( yy_str, len );
+ }
+#endif
- return b;
-}
-#ifndef YY_EXIT_FAILURE
-#define YY_EXIT_FAILURE 2
+#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
-static void
-yy_fatal_error(yyconst char *msg)
-{
- (void) fprintf(stderr, "%s\n", msg);
- exit(YY_EXIT_FAILURE);
-}
-/* Redefine yyless() so it works in section 3 code. */
+#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;
-#undef yyless
-#define yyless(n) \
- do { \
- /* Undo effects of setting up yytext. */ \
- int yyless_macro_arg = (n); \
- YY_LESS_LINENO(yyless_macro_arg); \
- yytext[yyleng] = (yy_hold_char); \
- (yy_c_buf_p) = yytext + yyless_macro_arg; \
- (yy_hold_char) = *(yy_c_buf_p); \
- *(yy_c_buf_p) = '\0'; \
- yyleng = yyless_macro_arg; \
- } while (0)
-
-/* Accessor methods (get/set functions) to struct members. */
-
-/** Get the current line number.
- *
- */
-int
-yyget_lineno(void)
-{
- return yylineno;
-}
+ yy_start_stack_depth += YY_START_STACK_INCR;
+ new_size = yy_start_stack_depth * sizeof( int );
-/** Get the input stream.
- *
- */
-FILE *
-yyget_in(void)
-{
- return yyin;
-}
+ if ( ! yy_start_stack )
+ yy_start_stack = (int *) yy_flex_alloc( new_size );
-/** Get the output stream.
- *
- */
-FILE *
-yyget_out(void)
-{
- return yyout;
-}
+ else
+ yy_start_stack = (int *) yy_flex_realloc(
+ (void *) yy_start_stack, new_size );
-/** Get the length of the current token.
- *
- */
-yy_size_t
-yyget_leng(void)
-{
- return yyleng;
-}
+ if ( ! yy_start_stack )
+ YY_FATAL_ERROR(
+ "out of memory expanding start-condition stack" );
+ }
-/** Get the current token.
- *
- */
+ yy_start_stack[yy_start_stack_ptr++] = YY_START;
-char *
-yyget_text(void)
-{
- return yytext;
-}
+ BEGIN(new_state);
+ }
+#endif
-/** Set the current line number.
- * @param line_number
- *
- */
-void
-yyset_lineno(int line_number)
-{
- yylineno = line_number;
-}
-/** Set the input stream. This does not discard the current
- * input buffer.
- * @param in_str A readable stream.
- *
- * @see yy_switch_to_buffer
- */
-void
-yyset_in(FILE *in_str)
-{
- yyin = in_str;
-}
+#ifndef YY_NO_POP_STATE
+static void yy_pop_state()
+ {
+ if ( --yy_start_stack_ptr < 0 )
+ YY_FATAL_ERROR( "start-condition stack underflow" );
-void
-yyset_out(FILE *out_str)
-{
- yyout = out_str;
-}
+ BEGIN(yy_start_stack[yy_start_stack_ptr]);
+ }
+#endif
-int
-yyget_debug(void)
-{
- return yy_flex_debug;
-}
-void
-yyset_debug(int bdebug)
-{
- yy_flex_debug = bdebug;
-}
+#ifndef YY_NO_TOP_STATE
+static int yy_top_state()
+ {
+ return yy_start_stack[yy_start_stack_ptr - 1];
+ }
+#endif
-static int
-yy_init_globals(void)
-{
- /* Initialization is the same as for the non-reentrant scanner.
- * This function is called from yylex_destroy(), so don't allocate here.
- */
+#ifndef YY_EXIT_FAILURE
+#define YY_EXIT_FAILURE 2
+#endif
- (yy_buffer_stack) = 0;
- (yy_buffer_stack_top) = 0;
- (yy_buffer_stack_max) = 0;
- (yy_c_buf_p) = (char *) 0;
- (yy_init) = 0;
- (yy_start) = 0;
-
-/* Defined in main.c */
-#ifdef YY_STDINIT
- yyin = stdin;
- yyout = stdout;
+#ifdef YY_USE_PROTOS
+static void yy_fatal_error( yyconst char msg[] )
#else
- yyin = (FILE *) 0;
- yyout = (FILE *) 0;
+static void yy_fatal_error( msg )
+char msg[];
#endif
+ {
+ (void) fprintf( stderr, "%s\n", msg );
+ exit( YY_EXIT_FAILURE );
+ }
- /* For future reference: Set errno on error, since we are called by
- * yylex_init()
- */
- return 0;
-}
-/* yylex_destroy is for both reentrant and non-reentrant scanners. */
-int
-yylex_destroy(void)
-{
- /* Pop the buffer stack, destroying each element. */
- while (YY_CURRENT_BUFFER) {
- yy_delete_buffer(YY_CURRENT_BUFFER);
- YY_CURRENT_BUFFER_LVALUE = NULL;
- yypop_buffer_state();
- }
-
- /* Destroy the stack itself. */
- yyfree((yy_buffer_stack));
- (yy_buffer_stack) = NULL;
-
- /* Reset the globals. This is important in a non-reentrant scanner so the
- * next time
- * yylex() is called, initialization will occur. */
- yy_init_globals();
-
- return 0;
-}
-/*
- * Internal utility routines.
- */
+/* 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
-static void
-yy_flex_strncpy(char *s1, yyconst char *s2, int n)
-{
- register int i;
- for (i = 0; i < n; ++i)
- s1[i] = s2[i];
-}
+#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
-static int
-yy_flex_strlen(yyconst char *s)
-{
- register int n;
- for (n = 0; s[n]; ++n)
- ;
-
- return n;
-}
+#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 )
+ ;
-void *
-yyalloc(yy_size_t size)
-{
- return (void *) malloc(size);
-}
+ return n;
+ }
+#endif
-void *
-yyrealloc(void *ptr, yy_size_t size)
-{
- /* 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);
-}
-void
-yyfree(void *ptr)
-{
- free((char *) ptr); /* see yyrealloc() for (char *) cast */
-}
-
-#define YYTABLES_NAME "yytables"
+#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 );
+ }
-#line 339 "lev_comp.l"
+#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 340 "lev_comp.l"
-#ifdef AMIGA
-long *
-alloc(n)
-unsigned n;
+#ifdef AMIGA
+long *alloc(n)
+ unsigned n;
{
- return ((long *) malloc(n));
+ return ((long *)malloc (n));
}
#endif
/* routine to switch to another input file; needed for flex */
-void
-init_yyin(input_f)
+void init_yyin( input_f )
FILE *input_f;
{
#if defined(FLEX_SCANNER) || defined(FLEXHACK_SCANNER)
- if (yyin)
- yyrestart(input_f);
- else
+ if (yyin)
+ yyrestart(input_f);
+ else
#endif
- yyin = input_f;
- if (!orig_yyin)
- orig_yyin = yyin;
+ yyin = input_f;
+ if (!orig_yyin) orig_yyin = yyin;
}
/* analogous routine (for completeness) */
-void
-init_yyout(output_f)
+void init_yyout( output_f )
FILE *output_f;
{
- yyout = output_f;
+ yyout = output_f;
}
long
handle_varstring_check()
{
- struct lc_vardefs *vd;
- yylval.map = (char *) alloc(strlen(yytext) + 1);
- Strcpy(yylval.map, yytext);
- if ((vd = vardef_defined(variable_definitions, yytext, 1))) {
- long l = vd->var_type;
- long a = ((l & SPOVAR_ARRAY) == SPOVAR_ARRAY);
- l = (l & ~SPOVAR_ARRAY);
- if (l == SPOVAR_INT)
- return (a ? VARSTRING_INT_ARRAY : VARSTRING_INT);
- if (l == SPOVAR_STRING)
- return (a ? VARSTRING_STRING_ARRAY : VARSTRING_STRING);
- if (l == SPOVAR_VARIABLE)
- return (a ? VARSTRING_VAR_ARRAY : VARSTRING_VAR);
- if (l == SPOVAR_COORD)
- return (a ? VARSTRING_COORD_ARRAY : VARSTRING_COORD);
- if (l == SPOVAR_REGION)
- return (a ? VARSTRING_REGION_ARRAY : VARSTRING_REGION);
- if (l == SPOVAR_MAPCHAR)
- return (a ? VARSTRING_MAPCHAR_ARRAY : VARSTRING_MAPCHAR);
- if (l == SPOVAR_MONST)
- return (a ? VARSTRING_MONST_ARRAY : VARSTRING_MONST);
- if (l == SPOVAR_OBJ)
- return (a ? VARSTRING_OBJ_ARRAY : VARSTRING_OBJ);
- if (l == SPOVAR_SEL)
- return (a ? VARSTRING_SEL_ARRAY : VARSTRING_SEL);
- }
- return VARSTRING;
+ struct lc_vardefs *vd;
+ yylval.map = (char *) alloc(strlen(yytext)+1);
+ Strcpy(yylval.map, yytext);
+ if ((vd = vardef_defined(variable_definitions, yytext, 1))) {
+ long l = vd->var_type;
+ long a = ((l & SPOVAR_ARRAY) == SPOVAR_ARRAY);
+ l = (l & ~SPOVAR_ARRAY);
+ if (l == SPOVAR_INT) return (a ? VARSTRING_INT_ARRAY : VARSTRING_INT);
+ if (l == SPOVAR_STRING) return (a ? VARSTRING_STRING_ARRAY : VARSTRING_STRING);
+ if (l == SPOVAR_VARIABLE) return (a ? VARSTRING_VAR_ARRAY : VARSTRING_VAR);
+ if (l == SPOVAR_COORD) return (a ? VARSTRING_COORD_ARRAY : VARSTRING_COORD);
+ if (l == SPOVAR_REGION) return (a ? VARSTRING_REGION_ARRAY : VARSTRING_REGION);
+ if (l == SPOVAR_MAPCHAR) return (a ? VARSTRING_MAPCHAR_ARRAY : VARSTRING_MAPCHAR);
+ if (l == SPOVAR_MONST) return (a ? VARSTRING_MONST_ARRAY : VARSTRING_MONST);
+ if (l == SPOVAR_OBJ) return (a ? VARSTRING_OBJ_ARRAY : VARSTRING_OBJ);
+ if (l == SPOVAR_SEL) return (a ? VARSTRING_SEL_ARRAY : VARSTRING_SEL);
+ }
+ return VARSTRING;
}
+
void
newline()
{
- nh_line_number++;
- token_start_pos = 0;
- memset(curr_token, 0, 512);
+ nh_line_number++;
+ token_start_pos = 0;
+ memset(curr_token, 0, 512);
}
void
savetoken(s)
char *s;
{
- sprintf(curr_token, "%s", s);
- advancepos(s);
+ sprintf(curr_token, "%s", s);
+ advancepos(s);
}
void
advancepos(s)
char *s;
{
- token_start_pos += strlen(s);
+ token_start_pos += strlen(s);
}
/*lev_comp.l*/
-/* A Bison parser, made by GNU Bison 3.0.2. */
-/* Bison implementation for Yacc-like parsers in C
-
- Copyright (C) 1984, 1989-1990, 2000-2013 Free Software Foundation, Inc.
+/* A Bison parser, made by GNU Bison 2.4.1. */
+/* Skeleton implementation for Bison's Yacc-like parsers in C
+
+ Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
+ Free Software Foundation, Inc.
+
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
-
+
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-
+
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
special exception, which will cause the skeleton and the resulting
Bison output files to be licensed under the GNU General Public
License without this special exception.
-
+
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
#define YYBISON 1
/* Bison version. */
-#define YYBISON_VERSION "3.0.2"
+#define YYBISON_VERSION "2.4.1"
/* Skeleton name. */
#define YYSKELETON_NAME "yacc.c"
/* Pull parsers. */
#define YYPULL 1
+/* Using locations. */
+#define YYLSP_NEEDED 0
+
+
+
/* Copy the first part of user declarations. */
-#line 1 "lev_comp.y" /* yacc.c:339 */
-/* NetHack 3.6 lev_comp.y $NHDT-Date: 1431192779 2015/05/09 17:32:59 $ $NHDT-Branch: master $:$NHDT-Revision: 1.13 $ */
+/* Line 189 of yacc.c */
+#line 1 "lev_comp.y"
+
+/* NetHack 3.6 lev_comp.y $NHDT-Date: 1431196865 2015/05/09 18:41:05 $ $NHDT-Branch: master $:$NHDT-Revision: 1.14 $ */
/* NetHack 3.6 lev_comp.y $Date: 2009/05/06 10:54:31 $ $Revision: 1.8 $ */
/* SCCS Id: @(#)lev_yacc.c 3.5 2007/08/01 */
/* Copyright (c) 1989 by Jean-Christophe Collet */
* and AIX will still see the directive.
*/
#ifdef _AIX
-#pragma alloca /* keep leading space! */
+ #pragma alloca /* keep leading space! */
#endif
-#define SPEC_LEV /* for USE_OLDARGS (sp_lev.h) */
+#define SPEC_LEV /* for USE_OLDARGS (sp_lev.h) */
#include "hack.h"
#include "sp_lev.h"
-#define ERR (-1)
+#define ERR (-1)
/* many types of things are put in chars for transference to NetHack.
* since some systems will use signed chars, limit everybody to the
* same number for portability.
*/
-#define MAX_OF_TYPE 128
+#define MAX_OF_TYPE 128
-#define MAX_NESTED_IFS 20
+#define MAX_NESTED_IFS 20
#define MAX_SWITCH_CASES 20
-#define New(type) \
- (type *) memset((genericptr_t) alloc(sizeof(type)), 0, sizeof(type))
-#define NewTab(type, size) (type **) alloc(sizeof(type *) * size)
-#define Free(ptr) free((genericptr_t) ptr)
+#define New(type) \
+ (type *) memset((genericptr_t)alloc(sizeof(type)), 0, sizeof(type))
+#define NewTab(type, size) (type **) alloc(sizeof(type *) * size)
+#define Free(ptr) free((genericptr_t)ptr)
extern void VDECL(lc_error, (const char *, ...));
extern void VDECL(lc_warning, (const char *, ...));
extern int FDECL(get_floor_type, (CHAR_P));
extern int FDECL(get_room_type, (char *));
extern int FDECL(get_trap_type, (char *));
-extern int FDECL(get_monster_id, (char *, CHAR_P));
-extern int FDECL(get_object_id, (char *, CHAR_P));
+extern int FDECL(get_monster_id, (char *,CHAR_P));
+extern int FDECL(get_object_id, (char *,CHAR_P));
extern boolean FDECL(check_monster_char, (CHAR_P));
extern boolean FDECL(check_object_char, (CHAR_P));
extern char FDECL(what_map_char, (CHAR_P));
extern void FDECL(scan_map, (char *, sp_lev *));
extern void FDECL(add_opcode, (sp_lev *, int, genericptr_t));
extern genericptr_t FDECL(get_last_opcode_data1, (sp_lev *, int));
-extern genericptr_t FDECL(get_last_opcode_data2, (sp_lev *, int, int));
+extern genericptr_t FDECL(get_last_opcode_data2, (sp_lev *, int,int));
extern boolean FDECL(check_subrooms, (sp_lev *));
-extern boolean FDECL(write_level_file, (char *, sp_lev *));
+extern boolean FDECL(write_level_file, (char *,sp_lev *));
extern struct opvar *FDECL(set_opvar_int, (struct opvar *, long));
extern void VDECL(add_opvars, (sp_lev *, const char *, ...));
-extern void FDECL(start_level_def, (sp_lev **, char *));
+extern void FDECL(start_level_def, (sp_lev * *, char *));
-extern struct lc_funcdefs *FDECL(funcdef_new, (long, char *));
-extern void FDECL(funcdef_free_all, (struct lc_funcdefs *));
-extern struct lc_funcdefs *FDECL(funcdef_defined,
- (struct lc_funcdefs *, char *, int));
+extern struct lc_funcdefs *FDECL(funcdef_new,(long,char *));
+extern void FDECL(funcdef_free_all,(struct lc_funcdefs *));
+extern struct lc_funcdefs *FDECL(funcdef_defined,(struct lc_funcdefs *,char *, int));
extern char *FDECL(funcdef_paramtypes, (struct lc_funcdefs *));
extern char *FDECL(decode_parm_str, (char *));
-extern struct lc_vardefs *FDECL(vardef_new, (long, char *));
-extern void FDECL(vardef_free_all, (struct lc_vardefs *));
-extern struct lc_vardefs *FDECL(vardef_defined,
- (struct lc_vardefs *, char *, int));
+extern struct lc_vardefs *FDECL(vardef_new,(long,char *));
+extern void FDECL(vardef_free_all,(struct lc_vardefs *));
+extern struct lc_vardefs *FDECL(vardef_defined,(struct lc_vardefs *,char *, int));
extern void NDECL(break_stmt_start);
extern void FDECL(break_stmt_end, (sp_lev *));
extern void FDECL(check_vardef_type, (struct lc_vardefs *, char *, long));
extern void FDECL(vardef_used, (struct lc_vardefs *, char *));
-extern struct lc_vardefs *FDECL(add_vardef_type,
- (struct lc_vardefs *, char *, long));
+extern struct lc_vardefs *FDECL(add_vardef_type, (struct lc_vardefs *, char *, long));
extern int FDECL(reverse_jmp_opcode, (int));
struct coord {
- long x;
- long y;
+ long x;
+ long y;
};
struct forloopdef {
static struct forloopdef forloop_list[MAX_NESTED_IFS];
static short n_forloops = 0;
+
sp_lev *splev = NULL;
static struct opvar *if_list[MAX_NESTED_IFS];
int in_container_obj = 0;
-/* integer value is possibly an inconstant value (eg. dice notation or a
- * variable) */
+/* integer value is possibly an inconstant value (eg. dice notation or a variable) */
int is_inconstant_number = 0;
int in_switch_statement = 0;
extern struct lc_vardefs *variable_definitions;
+
struct lc_vardefs *function_tmp_var_defs = NULL;
extern struct lc_funcdefs *function_definitions;
struct lc_funcdefs *curr_function = NULL;
-struct lc_funcdefs_parm *curr_function_param = NULL;
+struct lc_funcdefs_parm * curr_function_param = NULL;
int in_function_definition = 0;
sp_lev *function_splev_backup = NULL;
extern char curr_token[512];
-#line 213 "y.tab.c" /* yacc.c:339 */
-#ifndef YY_NULLPTR
-#if defined __cplusplus && 201103L <= __cplusplus
-#define YY_NULLPTR nullptr
-#else
-#define YY_NULLPTR 0
-#endif
+
+/* Line 189 of yacc.c */
+#line 221 "y.tab.c"
+
+/* Enabling traces. */
+#ifndef YYDEBUG
+# define YYDEBUG 0
#endif
/* Enabling verbose error messages. */
#ifdef YYERROR_VERBOSE
-#undef YYERROR_VERBOSE
-#define YYERROR_VERBOSE 1
+# undef YYERROR_VERBOSE
+# define YYERROR_VERBOSE 1
#else
-#define YYERROR_VERBOSE 0
+# define YYERROR_VERBOSE 0
#endif
-/* In a future release of Bison, this section will be replaced
- by #include "y.tab.h". */
-#ifndef YY_YY_Y_TAB_H_INCLUDED
-#define YY_YY_Y_TAB_H_INCLUDED
-/* Debug traces. */
-#ifndef YYDEBUG
-#define YYDEBUG 0
-#endif
-#if YYDEBUG
-extern int yydebug;
+/* Enabling the token table. */
+#ifndef YYTOKEN_TABLE
+# define YYTOKEN_TABLE 0
#endif
-/* Token type. */
+
+/* Tokens. */
#ifndef YYTOKENTYPE
-#define YYTOKENTYPE
-enum yytokentype {
- CHAR = 258,
- INTEGER = 259,
- BOOLEAN = 260,
- PERCENT = 261,
- SPERCENT = 262,
- MINUS_INTEGER = 263,
- PLUS_INTEGER = 264,
- MAZE_GRID_ID = 265,
- SOLID_FILL_ID = 266,
- MINES_ID = 267,
- ROGUELEV_ID = 268,
- MESSAGE_ID = 269,
- MAZE_ID = 270,
- LEVEL_ID = 271,
- LEV_INIT_ID = 272,
- GEOMETRY_ID = 273,
- NOMAP_ID = 274,
- OBJECT_ID = 275,
- COBJECT_ID = 276,
- MONSTER_ID = 277,
- TRAP_ID = 278,
- DOOR_ID = 279,
- DRAWBRIDGE_ID = 280,
- object_ID = 281,
- monster_ID = 282,
- terrain_ID = 283,
- MAZEWALK_ID = 284,
- WALLIFY_ID = 285,
- REGION_ID = 286,
- FILLING = 287,
- IRREGULAR = 288,
- JOINED = 289,
- ALTAR_ID = 290,
- LADDER_ID = 291,
- STAIR_ID = 292,
- NON_DIGGABLE_ID = 293,
- NON_PASSWALL_ID = 294,
- ROOM_ID = 295,
- PORTAL_ID = 296,
- TELEPRT_ID = 297,
- BRANCH_ID = 298,
- LEV = 299,
- MINERALIZE_ID = 300,
- CORRIDOR_ID = 301,
- GOLD_ID = 302,
- ENGRAVING_ID = 303,
- FOUNTAIN_ID = 304,
- POOL_ID = 305,
- SINK_ID = 306,
- NONE = 307,
- RAND_CORRIDOR_ID = 308,
- DOOR_STATE = 309,
- LIGHT_STATE = 310,
- CURSE_TYPE = 311,
- ENGRAVING_TYPE = 312,
- DIRECTION = 313,
- RANDOM_TYPE = 314,
- RANDOM_TYPE_BRACKET = 315,
- A_REGISTER = 316,
- ALIGNMENT = 317,
- LEFT_OR_RIGHT = 318,
- CENTER = 319,
- TOP_OR_BOT = 320,
- ALTAR_TYPE = 321,
- UP_OR_DOWN = 322,
- SUBROOM_ID = 323,
- NAME_ID = 324,
- FLAGS_ID = 325,
- FLAG_TYPE = 326,
- MON_ATTITUDE = 327,
- MON_ALERTNESS = 328,
- MON_APPEARANCE = 329,
- ROOMDOOR_ID = 330,
- IF_ID = 331,
- ELSE_ID = 332,
- TERRAIN_ID = 333,
- HORIZ_OR_VERT = 334,
- REPLACE_TERRAIN_ID = 335,
- EXIT_ID = 336,
- SHUFFLE_ID = 337,
- QUANTITY_ID = 338,
- BURIED_ID = 339,
- LOOP_ID = 340,
- FOR_ID = 341,
- TO_ID = 342,
- SWITCH_ID = 343,
- CASE_ID = 344,
- BREAK_ID = 345,
- DEFAULT_ID = 346,
- ERODED_ID = 347,
- TRAPPED_ID = 348,
- RECHARGED_ID = 349,
- INVIS_ID = 350,
- GREASED_ID = 351,
- FEMALE_ID = 352,
- CANCELLED_ID = 353,
- REVIVED_ID = 354,
- AVENGE_ID = 355,
- FLEEING_ID = 356,
- BLINDED_ID = 357,
- PARALYZED_ID = 358,
- STUNNED_ID = 359,
- CONFUSED_ID = 360,
- SEENTRAPS_ID = 361,
- ALL_ID = 362,
- MONTYPE_ID = 363,
- GRAVE_ID = 364,
- ERODEPROOF_ID = 365,
- FUNCTION_ID = 366,
- MSG_OUTPUT_TYPE = 367,
- COMPARE_TYPE = 368,
- UNKNOWN_TYPE = 369,
- rect_ID = 370,
- fillrect_ID = 371,
- line_ID = 372,
- randline_ID = 373,
- grow_ID = 374,
- selection_ID = 375,
- flood_ID = 376,
- rndcoord_ID = 377,
- circle_ID = 378,
- ellipse_ID = 379,
- filter_ID = 380,
- complement_ID = 381,
- gradient_ID = 382,
- GRADIENT_TYPE = 383,
- LIMITED = 384,
- HUMIDITY_TYPE = 385,
- STRING = 386,
- MAP_ID = 387,
- NQSTRING = 388,
- VARSTRING = 389,
- CFUNC = 390,
- CFUNC_INT = 391,
- CFUNC_STR = 392,
- CFUNC_COORD = 393,
- CFUNC_REGION = 394,
- VARSTRING_INT = 395,
- VARSTRING_INT_ARRAY = 396,
- VARSTRING_STRING = 397,
- VARSTRING_STRING_ARRAY = 398,
- VARSTRING_VAR = 399,
- VARSTRING_VAR_ARRAY = 400,
- VARSTRING_COORD = 401,
- VARSTRING_COORD_ARRAY = 402,
- VARSTRING_REGION = 403,
- VARSTRING_REGION_ARRAY = 404,
- VARSTRING_MAPCHAR = 405,
- VARSTRING_MAPCHAR_ARRAY = 406,
- VARSTRING_MONST = 407,
- VARSTRING_MONST_ARRAY = 408,
- VARSTRING_OBJ = 409,
- VARSTRING_OBJ_ARRAY = 410,
- VARSTRING_SEL = 411,
- VARSTRING_SEL_ARRAY = 412,
- METHOD_INT = 413,
- METHOD_INT_ARRAY = 414,
- METHOD_STRING = 415,
- METHOD_STRING_ARRAY = 416,
- METHOD_VAR = 417,
- METHOD_VAR_ARRAY = 418,
- METHOD_COORD = 419,
- METHOD_COORD_ARRAY = 420,
- METHOD_REGION = 421,
- METHOD_REGION_ARRAY = 422,
- METHOD_MAPCHAR = 423,
- METHOD_MAPCHAR_ARRAY = 424,
- METHOD_MONST = 425,
- METHOD_MONST_ARRAY = 426,
- METHOD_OBJ = 427,
- METHOD_OBJ_ARRAY = 428,
- METHOD_SEL = 429,
- METHOD_SEL_ARRAY = 430,
- DICE = 431
-};
+# define YYTOKENTYPE
+ /* Put the tokens into the symbol table, so that GDB and other debuggers
+ know about them. */
+ enum yytokentype {
+ CHAR = 258,
+ INTEGER = 259,
+ BOOLEAN = 260,
+ PERCENT = 261,
+ SPERCENT = 262,
+ MINUS_INTEGER = 263,
+ PLUS_INTEGER = 264,
+ MAZE_GRID_ID = 265,
+ SOLID_FILL_ID = 266,
+ MINES_ID = 267,
+ ROGUELEV_ID = 268,
+ MESSAGE_ID = 269,
+ MAZE_ID = 270,
+ LEVEL_ID = 271,
+ LEV_INIT_ID = 272,
+ GEOMETRY_ID = 273,
+ NOMAP_ID = 274,
+ OBJECT_ID = 275,
+ COBJECT_ID = 276,
+ MONSTER_ID = 277,
+ TRAP_ID = 278,
+ DOOR_ID = 279,
+ DRAWBRIDGE_ID = 280,
+ object_ID = 281,
+ monster_ID = 282,
+ terrain_ID = 283,
+ MAZEWALK_ID = 284,
+ WALLIFY_ID = 285,
+ REGION_ID = 286,
+ FILLING = 287,
+ IRREGULAR = 288,
+ JOINED = 289,
+ ALTAR_ID = 290,
+ LADDER_ID = 291,
+ STAIR_ID = 292,
+ NON_DIGGABLE_ID = 293,
+ NON_PASSWALL_ID = 294,
+ ROOM_ID = 295,
+ PORTAL_ID = 296,
+ TELEPRT_ID = 297,
+ BRANCH_ID = 298,
+ LEV = 299,
+ MINERALIZE_ID = 300,
+ CORRIDOR_ID = 301,
+ GOLD_ID = 302,
+ ENGRAVING_ID = 303,
+ FOUNTAIN_ID = 304,
+ POOL_ID = 305,
+ SINK_ID = 306,
+ NONE = 307,
+ RAND_CORRIDOR_ID = 308,
+ DOOR_STATE = 309,
+ LIGHT_STATE = 310,
+ CURSE_TYPE = 311,
+ ENGRAVING_TYPE = 312,
+ DIRECTION = 313,
+ RANDOM_TYPE = 314,
+ RANDOM_TYPE_BRACKET = 315,
+ A_REGISTER = 316,
+ ALIGNMENT = 317,
+ LEFT_OR_RIGHT = 318,
+ CENTER = 319,
+ TOP_OR_BOT = 320,
+ ALTAR_TYPE = 321,
+ UP_OR_DOWN = 322,
+ SUBROOM_ID = 323,
+ NAME_ID = 324,
+ FLAGS_ID = 325,
+ FLAG_TYPE = 326,
+ MON_ATTITUDE = 327,
+ MON_ALERTNESS = 328,
+ MON_APPEARANCE = 329,
+ ROOMDOOR_ID = 330,
+ IF_ID = 331,
+ ELSE_ID = 332,
+ TERRAIN_ID = 333,
+ HORIZ_OR_VERT = 334,
+ REPLACE_TERRAIN_ID = 335,
+ EXIT_ID = 336,
+ SHUFFLE_ID = 337,
+ QUANTITY_ID = 338,
+ BURIED_ID = 339,
+ LOOP_ID = 340,
+ FOR_ID = 341,
+ TO_ID = 342,
+ SWITCH_ID = 343,
+ CASE_ID = 344,
+ BREAK_ID = 345,
+ DEFAULT_ID = 346,
+ ERODED_ID = 347,
+ TRAPPED_ID = 348,
+ RECHARGED_ID = 349,
+ INVIS_ID = 350,
+ GREASED_ID = 351,
+ FEMALE_ID = 352,
+ CANCELLED_ID = 353,
+ REVIVED_ID = 354,
+ AVENGE_ID = 355,
+ FLEEING_ID = 356,
+ BLINDED_ID = 357,
+ PARALYZED_ID = 358,
+ STUNNED_ID = 359,
+ CONFUSED_ID = 360,
+ SEENTRAPS_ID = 361,
+ ALL_ID = 362,
+ MONTYPE_ID = 363,
+ GRAVE_ID = 364,
+ ERODEPROOF_ID = 365,
+ FUNCTION_ID = 366,
+ MSG_OUTPUT_TYPE = 367,
+ COMPARE_TYPE = 368,
+ UNKNOWN_TYPE = 369,
+ rect_ID = 370,
+ fillrect_ID = 371,
+ line_ID = 372,
+ randline_ID = 373,
+ grow_ID = 374,
+ selection_ID = 375,
+ flood_ID = 376,
+ rndcoord_ID = 377,
+ circle_ID = 378,
+ ellipse_ID = 379,
+ filter_ID = 380,
+ complement_ID = 381,
+ gradient_ID = 382,
+ GRADIENT_TYPE = 383,
+ LIMITED = 384,
+ HUMIDITY_TYPE = 385,
+ STRING = 386,
+ MAP_ID = 387,
+ NQSTRING = 388,
+ VARSTRING = 389,
+ CFUNC = 390,
+ CFUNC_INT = 391,
+ CFUNC_STR = 392,
+ CFUNC_COORD = 393,
+ CFUNC_REGION = 394,
+ VARSTRING_INT = 395,
+ VARSTRING_INT_ARRAY = 396,
+ VARSTRING_STRING = 397,
+ VARSTRING_STRING_ARRAY = 398,
+ VARSTRING_VAR = 399,
+ VARSTRING_VAR_ARRAY = 400,
+ VARSTRING_COORD = 401,
+ VARSTRING_COORD_ARRAY = 402,
+ VARSTRING_REGION = 403,
+ VARSTRING_REGION_ARRAY = 404,
+ VARSTRING_MAPCHAR = 405,
+ VARSTRING_MAPCHAR_ARRAY = 406,
+ VARSTRING_MONST = 407,
+ VARSTRING_MONST_ARRAY = 408,
+ VARSTRING_OBJ = 409,
+ VARSTRING_OBJ_ARRAY = 410,
+ VARSTRING_SEL = 411,
+ VARSTRING_SEL_ARRAY = 412,
+ METHOD_INT = 413,
+ METHOD_INT_ARRAY = 414,
+ METHOD_STRING = 415,
+ METHOD_STRING_ARRAY = 416,
+ METHOD_VAR = 417,
+ METHOD_VAR_ARRAY = 418,
+ METHOD_COORD = 419,
+ METHOD_COORD_ARRAY = 420,
+ METHOD_REGION = 421,
+ METHOD_REGION_ARRAY = 422,
+ METHOD_MAPCHAR = 423,
+ METHOD_MAPCHAR_ARRAY = 424,
+ METHOD_MONST = 425,
+ METHOD_MONST_ARRAY = 426,
+ METHOD_OBJ = 427,
+ METHOD_OBJ_ARRAY = 428,
+ METHOD_SEL = 429,
+ METHOD_SEL_ARRAY = 430,
+ DICE = 431
+ };
#endif
/* Tokens. */
#define CHAR 258
#define METHOD_SEL_ARRAY 430
#define DICE 431
-/* Value type. */
-#if !defined YYSTYPE && !defined YYSTYPE_IS_DECLARED
-typedef union YYSTYPE YYSTYPE;
-union YYSTYPE {
-#line 149 "lev_comp.y" /* yacc.c:355 */
- long i;
- char *map;
- struct {
- long room;
- long wall;
- long door;
- } corpos;
+
+
+#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
+typedef union YYSTYPE
+{
+
+/* Line 214 of yacc.c */
+#line 149 "lev_comp.y"
+
+ long i;
+ char* map;
+ struct {
+ long room;
+ long wall;
+ long door;
+ } corpos;
struct {
- long area;
- long x1;
- long y1;
- long x2;
- long y2;
+ long area;
+ long x1;
+ long y1;
+ long x2;
+ long y2;
} lregn;
struct {
- long x;
- long y;
+ long x;
+ long y;
} crd;
struct {
- long ter;
- long lit;
+ long ter;
+ long lit;
} terr;
struct {
- long height;
- long width;
+ long height;
+ long width;
} sze;
struct {
- long die;
- long num;
+ long die;
+ long num;
} dice;
struct {
- long cfunc;
- char *varstr;
+ long cfunc;
+ char *varstr;
} meth;
-#line 642 "y.tab.c" /* yacc.c:355 */
-};
-#define YYSTYPE_IS_TRIVIAL 1
-#define YYSTYPE_IS_DECLARED 1
-#endif
-extern YYSTYPE yylval;
-int yyparse(void);
+/* Line 214 of yacc.c */
+#line 648 "y.tab.c"
+} YYSTYPE;
+# define YYSTYPE_IS_TRIVIAL 1
+# define yystype YYSTYPE /* obsolescent; will be withdrawn */
+# define YYSTYPE_IS_DECLARED 1
+#endif
-#endif /* !YY_YY_Y_TAB_H_INCLUDED */
/* Copy the second part of user declarations. */
-#line 657 "y.tab.c" /* yacc.c:358 */
+
+/* Line 264 of yacc.c */
+#line 660 "y.tab.c"
#ifdef short
-#undef short
+# undef short
#endif
#ifdef YYTYPE_UINT8
#ifdef YYTYPE_INT8
typedef YYTYPE_INT8 yytype_int8;
-#else
+#elif (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
typedef signed char yytype_int8;
+#else
+typedef short int yytype_int8;
#endif
#ifdef YYTYPE_UINT16
#endif
#ifndef YYSIZE_T
-#ifdef __SIZE_TYPE__
-#define YYSIZE_T __SIZE_TYPE__
-#elif defined size_t
-#define YYSIZE_T size_t
-#elif !defined YYSIZE_T
-#include <stddef.h> /* INFRINGES ON USER NAME SPACE */
-#define YYSIZE_T size_t
-#else
-#define YYSIZE_T unsigned int
-#endif
+# ifdef __SIZE_TYPE__
+# define YYSIZE_T __SIZE_TYPE__
+# elif defined size_t
+# define YYSIZE_T size_t
+# elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+# include <stddef.h> /* INFRINGES ON USER NAME SPACE */
+# define YYSIZE_T size_t
+# else
+# define YYSIZE_T unsigned int
+# endif
#endif
#define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
#ifndef YY_
-#if defined YYENABLE_NLS && YYENABLE_NLS
-#if ENABLE_NLS
-#include <libintl.h> /* INFRINGES ON USER NAME SPACE */
-#define YY_(Msgid) dgettext("bison-runtime", Msgid)
-#endif
-#endif
-#ifndef YY_
-#define YY_(Msgid) Msgid
-#endif
-#endif
-
-#ifndef YY_ATTRIBUTE
-#if (defined __GNUC__ \
- && (2 < __GNUC__ || (__GNUC__ == 2 && 96 <= __GNUC_MINOR__))) \
- || defined __SUNPRO_C && 0x5110 <= __SUNPRO_C
-#define YY_ATTRIBUTE(Spec) __attribute__(Spec)
-#else
-#define YY_ATTRIBUTE(Spec) /* empty */
-#endif
-#endif
-
-#ifndef YY_ATTRIBUTE_PURE
-#define YY_ATTRIBUTE_PURE YY_ATTRIBUTE((__pure__))
-#endif
-
-#ifndef YY_ATTRIBUTE_UNUSED
-#define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE((__unused__))
-#endif
-
-#if !defined _Noreturn \
- && (!defined __STDC_VERSION__ || __STDC_VERSION__ < 201112)
-#if defined _MSC_VER && 1200 <= _MSC_VER
-#define _Noreturn __declspec(noreturn)
-#else
-#define _Noreturn YY_ATTRIBUTE((__noreturn__))
-#endif
+# if YYENABLE_NLS
+# if ENABLE_NLS
+# include <libintl.h> /* INFRINGES ON USER NAME SPACE */
+# define YY_(msgid) dgettext ("bison-runtime", msgid)
+# endif
+# endif
+# ifndef YY_
+# define YY_(msgid) msgid
+# endif
#endif
/* Suppress unused-variable warnings by "using" E. */
-#if !defined lint || defined __GNUC__
-#define YYUSE(E) ((void) (E))
+#if ! defined lint || defined __GNUC__
+# define YYUSE(e) ((void) (e))
#else
-#define YYUSE(E) /* empty */
+# define YYUSE(e) /* empty */
#endif
-#if defined __GNUC__ && 407 <= __GNUC__ * 100 + __GNUC_MINOR__
-/* Suppress an incorrect diagnostic about yylval being uninitialized. */
-#define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
- _Pragma("GCC diagnostic push") \
- _Pragma("GCC diagnostic ignored \"-Wuninitialized\"") \
- _Pragma("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
-#define YY_IGNORE_MAYBE_UNINITIALIZED_END _Pragma("GCC diagnostic pop")
+/* Identity function, used to suppress warnings about constant conditions. */
+#ifndef lint
+# define YYID(n) (n)
#else
-#define YY_INITIAL_VALUE(Value) Value
-#endif
-#ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
-#define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
-#define YY_IGNORE_MAYBE_UNINITIALIZED_END
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+static int
+YYID (int yyi)
+#else
+static int
+YYID (yyi)
+ int yyi;
#endif
-#ifndef YY_INITIAL_VALUE
-#define YY_INITIAL_VALUE(Value) /* Nothing. */
+{
+ return yyi;
+}
#endif
-#if !defined yyoverflow || YYERROR_VERBOSE
+#if ! defined yyoverflow || YYERROR_VERBOSE
/* The parser invokes alloca or malloc; define the necessary symbols. */
-#ifdef YYSTACK_USE_ALLOCA
-#if YYSTACK_USE_ALLOCA
-#ifdef __GNUC__
-#define YYSTACK_ALLOC __builtin_alloca
-#elif defined __BUILTIN_VA_ARG_INCR
-#include <alloca.h> /* INFRINGES ON USER NAME SPACE */
-#elif defined _AIX
-#define YYSTACK_ALLOC __alloca
-#elif defined _MSC_VER
-#include <malloc.h> /* INFRINGES ON USER NAME SPACE */
-#define alloca _alloca
-#else
-#define YYSTACK_ALLOC alloca
-#if !defined _ALLOCA_H && !defined EXIT_SUCCESS
-#include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
-/* Use EXIT_SUCCESS as a witness for stdlib.h. */
-#ifndef EXIT_SUCCESS
-#define EXIT_SUCCESS 0
-#endif
-#endif
-#endif
-#endif
-#endif
-
-#ifdef YYSTACK_ALLOC
-/* Pacify GCC's 'empty if-body' warning. */
-#define YYSTACK_FREE(Ptr) \
- do { /* empty */ \
- ; \
- } while (0)
-#ifndef YYSTACK_ALLOC_MAXIMUM
-/* The OS might guarantee only one guard page at the bottom of the stack,
- and a page size can be as small as 4096 bytes. So we cannot safely
- invoke alloca (N) if N exceeds 4096. Use a slightly smaller number
- to allow for a few compiler-allocated temporary stack slots. */
-#define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
-#endif
-#else
-#define YYSTACK_ALLOC YYMALLOC
-#define YYSTACK_FREE YYFREE
-#ifndef YYSTACK_ALLOC_MAXIMUM
-#define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
-#endif
-#if (defined __cplusplus && !defined EXIT_SUCCESS \
- && !((defined YYMALLOC || defined malloc) \
- && (defined YYFREE || defined free)))
-#include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
-#ifndef EXIT_SUCCESS
-#define EXIT_SUCCESS 0
-#endif
-#endif
-#ifndef YYMALLOC
-#define YYMALLOC malloc
-#if !defined malloc && !defined EXIT_SUCCESS
-void *malloc(YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
-#endif
-#endif
-#ifndef YYFREE
-#define YYFREE free
-#if !defined free && !defined EXIT_SUCCESS
-void free(void *); /* INFRINGES ON USER NAME SPACE */
-#endif
-#endif
-#endif
+# ifdef YYSTACK_USE_ALLOCA
+# if YYSTACK_USE_ALLOCA
+# ifdef __GNUC__
+# define YYSTACK_ALLOC __builtin_alloca
+# elif defined __BUILTIN_VA_ARG_INCR
+# include <alloca.h> /* INFRINGES ON USER NAME SPACE */
+# elif defined _AIX
+# define YYSTACK_ALLOC __alloca
+# elif defined _MSC_VER
+# include <malloc.h> /* INFRINGES ON USER NAME SPACE */
+# define alloca _alloca
+# else
+# define YYSTACK_ALLOC alloca
+# if ! defined _ALLOCA_H && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
+# ifndef _STDLIB_H
+# define _STDLIB_H 1
+# endif
+# endif
+# endif
+# endif
+# endif
+
+# ifdef YYSTACK_ALLOC
+ /* Pacify GCC's `empty if-body' warning. */
+# define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0))
+# ifndef YYSTACK_ALLOC_MAXIMUM
+ /* The OS might guarantee only one guard page at the bottom of the stack,
+ and a page size can be as small as 4096 bytes. So we cannot safely
+ invoke alloca (N) if N exceeds 4096. Use a slightly smaller number
+ to allow for a few compiler-allocated temporary stack slots. */
+# define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
+# endif
+# else
+# define YYSTACK_ALLOC YYMALLOC
+# define YYSTACK_FREE YYFREE
+# ifndef YYSTACK_ALLOC_MAXIMUM
+# define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
+# endif
+# if (defined __cplusplus && ! defined _STDLIB_H \
+ && ! ((defined YYMALLOC || defined malloc) \
+ && (defined YYFREE || defined free)))
+# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
+# ifndef _STDLIB_H
+# define _STDLIB_H 1
+# endif
+# endif
+# ifndef YYMALLOC
+# define YYMALLOC malloc
+# if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
+# endif
+# endif
+# ifndef YYFREE
+# define YYFREE free
+# if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+void free (void *); /* INFRINGES ON USER NAME SPACE */
+# endif
+# endif
+# endif
#endif /* ! defined yyoverflow || YYERROR_VERBOSE */
-#if (!defined yyoverflow \
- && (!defined __cplusplus \
- || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
+
+#if (! defined yyoverflow \
+ && (! defined __cplusplus \
+ || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
/* A type that is properly aligned for any stack member. */
-union yyalloc {
- yytype_int16 yyss_alloc;
- YYSTYPE yyvs_alloc;
+union yyalloc
+{
+ yytype_int16 yyss_alloc;
+ YYSTYPE yyvs_alloc;
};
/* The size of the maximum gap between one aligned stack and the next. */
-#define YYSTACK_GAP_MAXIMUM (sizeof(union yyalloc) - 1)
+# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
/* The size of an array large to enough to hold all stacks, each with
N elements. */
-#define YYSTACK_BYTES(N) \
- ((N) * (sizeof(yytype_int16) + sizeof(YYSTYPE)) + YYSTACK_GAP_MAXIMUM)
+# define YYSTACK_BYTES(N) \
+ ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
+ + YYSTACK_GAP_MAXIMUM)
-#define YYCOPY_NEEDED 1
+/* Copy COUNT objects from FROM to TO. The source and destination do
+ not overlap. */
+# ifndef YYCOPY
+# if defined __GNUC__ && 1 < __GNUC__
+# define YYCOPY(To, From, Count) \
+ __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
+# else
+# define YYCOPY(To, From, Count) \
+ do \
+ { \
+ YYSIZE_T yyi; \
+ for (yyi = 0; yyi < (Count); yyi++) \
+ (To)[yyi] = (From)[yyi]; \
+ } \
+ while (YYID (0))
+# endif
+# endif
/* Relocate STACK from its old location to the new one. The
local variables YYSIZE and YYSTACKSIZE give the old and new number of
elements in the stack, and YYPTR gives the new location of the
stack. Advance YYPTR to a properly aligned location for the next
stack. */
-#define YYSTACK_RELOCATE(Stack_alloc, Stack) \
- do { \
- YYSIZE_T yynewbytes; \
- YYCOPY(&yyptr->Stack_alloc, Stack, yysize); \
- Stack = &yyptr->Stack_alloc; \
- yynewbytes = yystacksize * sizeof(*Stack) + YYSTACK_GAP_MAXIMUM; \
- yyptr += yynewbytes / sizeof(*yyptr); \
- } while (0)
-
-#endif
+# define YYSTACK_RELOCATE(Stack_alloc, Stack) \
+ do \
+ { \
+ YYSIZE_T yynewbytes; \
+ YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
+ Stack = &yyptr->Stack_alloc; \
+ yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
+ yyptr += yynewbytes / sizeof (*yyptr); \
+ } \
+ while (YYID (0))
-#if defined YYCOPY_NEEDED && YYCOPY_NEEDED
-/* Copy COUNT objects from SRC to DST. The source and destination do
- not overlap. */
-#ifndef YYCOPY
-#if defined __GNUC__ && 1 < __GNUC__
-#define YYCOPY(Dst, Src, Count) \
- __builtin_memcpy(Dst, Src, (Count) * sizeof(*(Src)))
-#else
-#define YYCOPY(Dst, Src, Count) \
- do { \
- YYSIZE_T yyi; \
- for (yyi = 0; yyi < (Count); yyi++) \
- (Dst)[yyi] = (Src)[yyi]; \
- } while (0)
#endif
-#endif
-#endif /* !YYCOPY_NEEDED */
/* YYFINAL -- State number of the termination state. */
-#define YYFINAL 9
+#define YYFINAL 9
/* YYLAST -- Last index in YYTABLE. */
-#define YYLAST 1033
+#define YYLAST 1033
/* YYNTOKENS -- Number of terminals. */
-#define YYNTOKENS 194
+#define YYNTOKENS 194
/* YYNNTS -- Number of nonterminals. */
-#define YYNNTS 160
+#define YYNNTS 160
/* YYNRULES -- Number of rules. */
-#define YYNRULES 406
-/* YYNSTATES -- Number of states. */
-#define YYNSTATES 866
-
-/* YYTRANSLATE[YYX] -- Symbol number corresponding to YYX as returned
- by yylex, with out-of-bounds checking. */
-#define YYUNDEFTOK 2
-#define YYMAXUTOK 431
-
-#define YYTRANSLATE(YYX) \
- ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
-
-/* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM
- as returned by yylex, without out-of-bounds checking. */
-static const yytype_uint8 yytranslate[] = {
- 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 189, 193, 2, 133, 134, 187, 185, 131,
- 186, 191, 188, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 132, 2,
- 2, 190, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 135, 2, 136, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 137, 192, 138, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
- 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
- 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
- 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59,
- 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
- 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89,
- 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104,
- 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119,
- 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 139, 140, 141, 142,
- 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157,
- 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172,
- 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184
+#define YYNRULES 406
+/* YYNRULES -- Number of states. */
+#define YYNSTATES 866
+
+/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
+#define YYUNDEFTOK 2
+#define YYMAXUTOK 431
+
+#define YYTRANSLATE(YYX) \
+ ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
+
+/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
+static const yytype_uint8 yytranslate[] =
+{
+ 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 189, 193, 2,
+ 133, 134, 187, 185, 131, 186, 191, 188, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 132, 2,
+ 2, 190, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 135, 2, 136, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 137, 192, 138, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
+ 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
+ 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
+ 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
+ 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
+ 45, 46, 47, 48, 49, 50, 51, 52, 53, 54,
+ 55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
+ 65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
+ 75, 76, 77, 78, 79, 80, 81, 82, 83, 84,
+ 85, 86, 87, 88, 89, 90, 91, 92, 93, 94,
+ 95, 96, 97, 98, 99, 100, 101, 102, 103, 104,
+ 105, 106, 107, 108, 109, 110, 111, 112, 113, 114,
+ 115, 116, 117, 118, 119, 120, 121, 122, 123, 124,
+ 125, 126, 127, 128, 129, 130, 139, 140, 141, 142,
+ 143, 144, 145, 146, 147, 148, 149, 150, 151, 152,
+ 153, 154, 155, 156, 157, 158, 159, 160, 161, 162,
+ 163, 164, 165, 166, 167, 168, 169, 170, 171, 172,
+ 173, 174, 175, 176, 177, 178, 179, 180, 181, 182,
+ 183, 184
};
#if YYDEBUG
-/* YYRLINE[YYN] -- Source line where rule number YYN was defined. */
-static const yytype_uint16 yyrline[] = {
- 0, 276, 276, 277, 280, 281, 284, 306, 311, 332, 336, 342,
- 352, 363, 369, 398, 401, 408, 412, 419, 422, 429, 430, 434,
- 437, 443, 447, 454, 457, 463, 469, 470, 471, 472, 473, 474,
- 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486,
- 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498,
- 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510,
- 511, 512, 515, 516, 517, 518, 519, 520, 521, 522, 523, 526,
- 527, 528, 529, 530, 531, 532, 533, 534, 537, 538, 539, 542,
- 543, 546, 558, 564, 570, 576, 582, 588, 594, 600, 606, 614,
- 622, 630, 638, 646, 654, 664, 669, 676, 681, 688, 693, 700,
- 704, 710, 715, 722, 726, 732, 736, 743, 765, 742, 779, 827,
- 834, 837, 843, 850, 854, 863, 867, 862, 929, 930, 934, 933,
- 946, 945, 960, 970, 971, 974, 1013, 1012, 1046, 1045, 1075, 1074,
- 1105, 1104, 1130, 1139, 1138, 1165, 1171, 1176, 1181, 1188, 1195, 1204,
- 1212, 1224, 1223, 1242, 1241, 1260, 1263, 1269, 1279, 1285, 1294, 1300,
- 1305, 1311, 1316, 1322, 1333, 1339, 1340, 1343, 1344, 1347, 1351, 1357,
- 1358, 1361, 1368, 1376, 1384, 1385, 1388, 1389, 1392, 1397, 1396, 1410,
- 1417, 1423, 1431, 1436, 1442, 1448, 1454, 1460, 1465, 1470, 1475, 1480,
- 1485, 1490, 1495, 1500, 1505, 1510, 1518, 1525, 1529, 1542, 1549, 1548,
- 1564, 1572, 1578, 1586, 1592, 1597, 1602, 1607, 1612, 1617, 1622, 1627,
- 1632, 1643, 1648, 1653, 1658, 1663, 1670, 1676, 1705, 1710, 1718, 1724,
- 1730, 1737, 1744, 1754, 1764, 1779, 1790, 1793, 1799, 1805, 1811, 1817,
- 1822, 1829, 1836, 1842, 1848, 1855, 1854, 1879, 1882, 1888, 1895, 1899,
- 1904, 1911, 1917, 1924, 1928, 1935, 1943, 1946, 1956, 1960, 1963, 1969,
- 1973, 1980, 1984, 1988, 1994, 1995, 1998, 1999, 2002, 2003, 2004, 2010,
- 2011, 2012, 2018, 2019, 2022, 2031, 2036, 2043, 2053, 2059, 2063, 2067,
- 2074, 2083, 2089, 2093, 2099, 2103, 2111, 2115, 2122, 2131, 2142, 2146,
- 2153, 2162, 2171, 2182, 2186, 2193, 2202, 2211, 2220, 2229, 2235, 2239,
- 2246, 2255, 2265, 2274, 2283, 2290, 2291, 2297, 2301, 2305, 2309, 2317,
- 2326, 2330, 2334, 2338, 2342, 2346, 2349, 2356, 2365, 2393, 2394, 2397,
- 2398, 2401, 2405, 2412, 2419, 2430, 2433, 2441, 2445, 2449, 2453, 2457,
- 2462, 2466, 2470, 2475, 2480, 2485, 2489, 2494, 2499, 2503, 2507, 2512,
- 2516, 2523, 2529, 2533, 2539, 2546, 2547, 2548, 2551, 2555, 2559, 2563,
- 2569, 2570, 2573, 2574, 2577, 2578, 2581, 2582, 2585, 2589, 2607
+/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
+ YYRHS. */
+static const yytype_uint16 yyprhs[] =
+{
+ 0, 0, 3, 4, 6, 8, 11, 15, 19, 25,
+ 27, 29, 35, 41, 45, 62, 63, 66, 67, 70,
+ 71, 74, 76, 78, 79, 83, 87, 89, 90, 93,
+ 97, 99, 101, 103, 105, 107, 109, 111, 113, 115,
+ 117, 119, 121, 123, 125, 127, 129, 131, 133, 135,
+ 137, 139, 141, 143, 145, 147, 149, 151, 153, 155,
+ 157, 159, 161, 163, 165, 167, 169, 171, 173, 175,
+ 177, 179, 181, 183, 185, 187, 189, 191, 193, 195,
+ 197, 199, 201, 203, 205, 207, 209, 211, 213, 215,
+ 217, 219, 221, 223, 225, 227, 229, 231, 235, 239,
+ 245, 249, 255, 261, 267, 271, 275, 281, 287, 293,
+ 301, 309, 317, 323, 325, 329, 331, 335, 337, 341,
+ 343, 347, 349, 353, 355, 359, 361, 365, 366, 367,
+ 376, 381, 383, 384, 386, 388, 394, 398, 399, 400,
+ 410, 411, 414, 415, 421, 422, 427, 429, 432, 434,
+ 441, 442, 446, 447, 454, 455, 460, 461, 466, 468,
+ 469, 474, 478, 480, 484, 488, 494, 500, 508, 513,
+ 514, 525, 526, 539, 540, 543, 549, 551, 557, 559,
+ 565, 567, 573, 575, 585, 591, 593, 595, 597, 599,
+ 601, 605, 607, 609, 611, 619, 625, 627, 629, 631,
+ 633, 637, 638, 644, 649, 650, 654, 656, 658, 660,
+ 662, 665, 667, 669, 671, 673, 675, 679, 683, 687,
+ 689, 691, 695, 697, 699, 703, 707, 708, 714, 717,
+ 718, 722, 724, 728, 730, 734, 738, 740, 742, 746,
+ 748, 750, 752, 756, 758, 760, 762, 768, 776, 782,
+ 791, 793, 797, 803, 809, 817, 825, 832, 838, 839,
+ 842, 846, 850, 854, 856, 862, 872, 878, 882, 886,
+ 887, 898, 899, 901, 909, 915, 921, 925, 931, 939,
+ 949, 951, 953, 955, 957, 959, 960, 963, 965, 969,
+ 971, 973, 975, 977, 979, 981, 983, 985, 987, 989,
+ 991, 993, 997, 999, 1001, 1006, 1008, 1010, 1015, 1017,
+ 1019, 1024, 1026, 1031, 1037, 1039, 1043, 1045, 1049, 1051,
+ 1053, 1058, 1068, 1070, 1072, 1077, 1079, 1085, 1087, 1089,
+ 1094, 1096, 1098, 1104, 1106, 1108, 1110, 1115, 1117, 1119,
+ 1125, 1127, 1129, 1133, 1135, 1137, 1141, 1143, 1148, 1152,
+ 1156, 1160, 1164, 1168, 1172, 1174, 1176, 1180, 1182, 1186,
+ 1187, 1189, 1191, 1193, 1195, 1199, 1200, 1202, 1204, 1207,
+ 1210, 1215, 1222, 1227, 1234, 1241, 1248, 1255, 1258, 1265,
+ 1274, 1283, 1294, 1309, 1312, 1314, 1318, 1320, 1324, 1326,
+ 1328, 1330, 1332, 1334, 1336, 1338, 1340, 1342, 1344, 1346,
+ 1348, 1350, 1352, 1354, 1356, 1358, 1369
+};
+
+/* YYRHS -- A `-1'-separated list of the rules' RHS. */
+static const yytype_int16 yyrhs[] =
+{
+ 195, 0, -1, -1, 196, -1, 197, -1, 197, 196,
+ -1, 198, 205, 207, -1, 16, 132, 139, -1, 15,
+ 132, 139, 131, 199, -1, 59, -1, 3, -1, 17,
+ 132, 11, 131, 297, -1, 17, 132, 10, 131, 3,
+ -1, 17, 132, 13, -1, 17, 132, 12, 131, 3,
+ 131, 3, 131, 5, 131, 5, 131, 316, 131, 204,
+ 203, -1, -1, 131, 129, -1, -1, 131, 323, -1,
+ -1, 131, 3, -1, 5, -1, 59, -1, -1, 70,
+ 132, 206, -1, 71, 131, 206, -1, 71, -1, -1,
+ 209, 207, -1, 137, 207, 138, -1, 250, -1, 200,
+ -1, 305, -1, 306, -1, 292, -1, 252, -1, 215,
+ -1, 214, -1, 300, -1, 264, -1, 284, -1, 308,
+ -1, 309, -1, 294, -1, 307, -1, 230, -1, 240,
+ -1, 242, -1, 246, -1, 244, -1, 227, -1, 237,
+ -1, 223, -1, 226, -1, 287, -1, 269, -1, 285,
+ -1, 272, -1, 278, -1, 301, -1, 296, -1, 290,
+ -1, 251, -1, 302, -1, 257, -1, 255, -1, 295,
+ -1, 299, -1, 298, -1, 288, -1, 289, -1, 291,
+ -1, 283, -1, 286, -1, 149, -1, 151, -1, 153,
+ -1, 155, -1, 157, -1, 159, -1, 161, -1, 163,
+ -1, 165, -1, 148, -1, 150, -1, 152, -1, 154,
+ -1, 156, -1, 158, -1, 160, -1, 162, -1, 164,
+ -1, 210, -1, 211, -1, 142, -1, 142, -1, 211,
+ -1, 82, 132, 210, -1, 212, 190, 335, -1, 212,
+ 190, 120, 132, 344, -1, 212, 190, 334, -1, 212,
+ 190, 350, 132, 328, -1, 212, 190, 349, 132, 330,
+ -1, 212, 190, 348, 132, 332, -1, 212, 190, 323,
+ -1, 212, 190, 326, -1, 212, 190, 137, 221, 138,
+ -1, 212, 190, 137, 220, 138, -1, 212, 190, 137,
+ 219, 138, -1, 212, 190, 350, 132, 137, 218, 138,
+ -1, 212, 190, 349, 132, 137, 217, 138, -1, 212,
+ 190, 348, 132, 137, 216, 138, -1, 212, 190, 137,
+ 222, 138, -1, 333, -1, 216, 131, 333, -1, 331,
+ -1, 217, 131, 331, -1, 329, -1, 218, 131, 329,
+ -1, 327, -1, 219, 131, 327, -1, 324, -1, 220,
+ 131, 324, -1, 335, -1, 221, 131, 335, -1, 334,
+ -1, 222, 131, 334, -1, -1, -1, 111, 141, 133,
+ 224, 339, 134, 225, 208, -1, 141, 133, 342, 134,
+ -1, 81, -1, -1, 6, -1, 6, -1, 135, 335,
+ 113, 335, 136, -1, 135, 335, 136, -1, -1, -1,
+ 88, 231, 135, 322, 136, 232, 137, 233, 138, -1,
+ -1, 234, 233, -1, -1, 89, 346, 132, 235, 207,
+ -1, -1, 91, 132, 236, 207, -1, 90, -1, 191,
+ 191, -1, 87, -1, 86, 213, 190, 335, 238, 335,
+ -1, -1, 239, 241, 208, -1, -1, 85, 135, 322,
+ 136, 243, 208, -1, -1, 229, 132, 245, 209, -1,
+ -1, 76, 229, 247, 248, -1, 208, -1, -1, 208,
+ 249, 77, 208, -1, 14, 132, 334, -1, 53, -1,
+ 53, 132, 346, -1, 53, 132, 59, -1, 46, 132,
+ 253, 131, 253, -1, 46, 132, 253, 131, 346, -1,
+ 133, 4, 131, 58, 131, 268, 134, -1, 311, 228,
+ 131, 316, -1, -1, 68, 132, 254, 131, 261, 131,
+ 263, 312, 256, 208, -1, -1, 40, 132, 254, 131,
+ 260, 131, 262, 131, 263, 312, 258, 208, -1, -1,
+ 131, 5, -1, 133, 4, 131, 4, 134, -1, 59,
+ -1, 133, 4, 131, 4, 134, -1, 59, -1, 133,
+ 270, 131, 271, 134, -1, 59, -1, 133, 4, 131,
+ 4, 134, -1, 59, -1, 75, 132, 265, 131, 315,
+ 131, 266, 131, 268, -1, 24, 132, 315, 131, 344,
+ -1, 5, -1, 59, -1, 267, -1, 59, -1, 58,
+ -1, 58, 192, 267, -1, 4, -1, 59, -1, 19,
+ -1, 18, 132, 270, 131, 271, 259, 140, -1, 18,
+ 132, 323, 259, 140, -1, 63, -1, 64, -1, 65,
+ -1, 64, -1, 22, 132, 274, -1, -1, 22, 132,
+ 274, 273, 208, -1, 330, 131, 323, 275, -1, -1,
+ 275, 131, 276, -1, 334, -1, 72, -1, 73, -1,
+ 318, -1, 74, 334, -1, 97, -1, 95, -1, 98,
+ -1, 99, -1, 100, -1, 101, 132, 322, -1, 102,
+ 132, 322, -1, 103, 132, 322, -1, 104, -1, 105,
+ -1, 106, 132, 277, -1, 139, -1, 107, -1, 139,
+ 192, 277, -1, 20, 132, 280, -1, -1, 21, 132,
+ 280, 279, 208, -1, 332, 281, -1, -1, 281, 131,
+ 282, -1, 56, -1, 108, 132, 330, -1, 347, -1,
+ 69, 132, 334, -1, 83, 132, 322, -1, 84, -1,
+ 55, -1, 92, 132, 322, -1, 110, -1, 54, -1,
+ 93, -1, 94, 132, 322, -1, 95, -1, 96, -1,
+ 323, -1, 23, 132, 310, 131, 323, -1, 25, 132,
+ 323, 131, 58, 131, 315, -1, 29, 132, 323, 131,
+ 58, -1, 29, 132, 323, 131, 58, 131, 5, 203,
+ -1, 30, -1, 30, 132, 344, -1, 36, 132, 323,
+ 131, 67, -1, 37, 132, 323, 131, 67, -1, 37,
+ 132, 352, 131, 352, 131, 67, -1, 41, 132, 352,
+ 131, 352, 131, 139, -1, 42, 132, 352, 131, 352,
+ 293, -1, 43, 132, 352, 131, 352, -1, -1, 131,
+ 67, -1, 49, 132, 344, -1, 51, 132, 344, -1,
+ 50, 132, 344, -1, 3, -1, 133, 3, 131, 316,
+ 134, -1, 80, 132, 326, 131, 328, 131, 328, 131,
+ 7, -1, 78, 132, 344, 131, 328, -1, 38, 132,
+ 326, -1, 39, 132, 326, -1, -1, 31, 132, 326,
+ 131, 316, 131, 311, 312, 303, 304, -1, -1, 208,
+ -1, 35, 132, 323, 131, 317, 131, 319, -1, 109,
+ 132, 323, 131, 334, -1, 109, 132, 323, 131, 59,
+ -1, 109, 132, 323, -1, 47, 132, 335, 131, 323,
+ -1, 48, 132, 323, 131, 351, 131, 334, -1, 45,
+ 132, 322, 131, 322, 131, 322, 131, 322, -1, 45,
+ -1, 139, -1, 59, -1, 139, -1, 59, -1, -1,
+ 131, 313, -1, 314, -1, 314, 131, 313, -1, 32,
+ -1, 33, -1, 34, -1, 54, -1, 59, -1, 55,
+ -1, 59, -1, 62, -1, 320, -1, 59, -1, 62,
+ -1, 320, -1, 61, 132, 59, -1, 66, -1, 59,
+ -1, 61, 135, 4, 136, -1, 139, -1, 150, -1,
+ 151, 135, 335, 136, -1, 335, -1, 324, -1, 122,
+ 133, 344, 134, -1, 154, -1, 155, 135, 335, 136,
+ -1, 133, 4, 131, 4, 134, -1, 59, -1, 60,
+ 325, 136, -1, 130, -1, 130, 131, 325, -1, 327,
+ -1, 156, -1, 157, 135, 335, 136, -1, 133, 4,
+ 131, 4, 131, 4, 131, 4, 134, -1, 329, -1,
+ 158, -1, 159, 135, 335, 136, -1, 3, -1, 133,
+ 3, 131, 316, 134, -1, 331, -1, 160, -1, 161,
+ 135, 335, 136, -1, 139, -1, 3, -1, 133, 3,
+ 131, 139, 134, -1, 59, -1, 333, -1, 162, -1,
+ 163, 135, 335, 136, -1, 139, -1, 3, -1, 133,
+ 3, 131, 139, 134, -1, 59, -1, 321, -1, 334,
+ 191, 321, -1, 4, -1, 345, -1, 133, 8, 134,
+ -1, 148, -1, 149, 135, 335, 136, -1, 335, 185,
+ 335, -1, 335, 186, 335, -1, 335, 187, 335, -1,
+ 335, 188, 335, -1, 335, 189, 335, -1, 133, 335,
+ 134, -1, 144, -1, 145, -1, 212, 132, 336, -1,
+ 337, -1, 338, 131, 337, -1, -1, 338, -1, 335,
+ -1, 334, -1, 340, -1, 341, 131, 340, -1, -1,
+ 341, -1, 323, -1, 115, 326, -1, 116, 326, -1,
+ 117, 323, 131, 323, -1, 118, 323, 131, 323, 131,
+ 335, -1, 119, 133, 344, 134, -1, 119, 133, 267,
+ 131, 344, 134, -1, 125, 133, 7, 131, 344, 134,
+ -1, 125, 133, 344, 131, 344, 134, -1, 125, 133,
+ 328, 131, 344, 134, -1, 121, 323, -1, 123, 133,
+ 323, 131, 335, 134, -1, 123, 133, 323, 131, 335,
+ 131, 32, 134, -1, 124, 133, 323, 131, 335, 131,
+ 335, 134, -1, 124, 133, 323, 131, 335, 131, 335,
+ 131, 32, 134, -1, 127, 133, 128, 131, 133, 335,
+ 186, 335, 201, 134, 131, 323, 202, 134, -1, 126,
+ 343, -1, 164, -1, 133, 344, 134, -1, 343, -1,
+ 343, 193, 344, -1, 184, -1, 8, -1, 9, -1,
+ 4, -1, 8, -1, 9, -1, 4, -1, 345, -1,
+ 26, -1, 20, -1, 27, -1, 22, -1, 28, -1,
+ 78, -1, 57, -1, 59, -1, 353, -1, 44, 133,
+ 4, 131, 4, 131, 4, 131, 4, 134, -1, 133,
+ 4, 131, 4, 131, 4, 131, 4, 134, -1
+};
+
+/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
+static const yytype_uint16 yyrline[] =
+{
+ 0, 276, 276, 277, 280, 281, 284, 306, 311, 332,
+ 336, 342, 352, 363, 369, 398, 401, 408, 412, 419,
+ 422, 429, 430, 434, 437, 443, 447, 454, 457, 463,
+ 469, 470, 471, 472, 473, 474, 475, 476, 477, 478,
+ 479, 480, 481, 482, 483, 484, 485, 486, 487, 488,
+ 489, 490, 491, 492, 493, 494, 495, 496, 497, 498,
+ 499, 500, 501, 502, 503, 504, 505, 506, 507, 508,
+ 509, 510, 511, 512, 515, 516, 517, 518, 519, 520,
+ 521, 522, 523, 526, 527, 528, 529, 530, 531, 532,
+ 533, 534, 537, 538, 539, 542, 543, 546, 558, 564,
+ 570, 576, 582, 588, 594, 600, 606, 614, 622, 630,
+ 638, 646, 654, 664, 669, 676, 681, 688, 693, 700,
+ 704, 710, 715, 722, 726, 732, 736, 743, 765, 742,
+ 779, 827, 834, 837, 843, 850, 854, 863, 867, 862,
+ 929, 930, 934, 933, 946, 945, 960, 970, 971, 974,
+ 1013, 1012, 1046, 1045, 1075, 1074, 1105, 1104, 1130, 1139,
+ 1138, 1165, 1171, 1176, 1181, 1188, 1195, 1204, 1212, 1224,
+ 1223, 1242, 1241, 1260, 1263, 1269, 1279, 1285, 1294, 1300,
+ 1305, 1311, 1316, 1322, 1333, 1339, 1340, 1343, 1344, 1347,
+ 1351, 1357, 1358, 1361, 1368, 1376, 1384, 1385, 1388, 1389,
+ 1392, 1397, 1396, 1410, 1417, 1423, 1431, 1436, 1442, 1448,
+ 1454, 1460, 1465, 1470, 1475, 1480, 1485, 1490, 1495, 1500,
+ 1505, 1510, 1518, 1525, 1529, 1542, 1549, 1548, 1564, 1572,
+ 1578, 1586, 1592, 1597, 1602, 1607, 1612, 1617, 1622, 1627,
+ 1632, 1643, 1648, 1653, 1658, 1663, 1670, 1676, 1705, 1710,
+ 1718, 1724, 1730, 1737, 1744, 1754, 1764, 1779, 1790, 1793,
+ 1799, 1805, 1811, 1817, 1822, 1829, 1836, 1842, 1848, 1855,
+ 1854, 1879, 1882, 1888, 1895, 1899, 1904, 1911, 1917, 1924,
+ 1928, 1935, 1943, 1946, 1956, 1960, 1963, 1969, 1973, 1980,
+ 1984, 1988, 1994, 1995, 1998, 1999, 2002, 2003, 2004, 2010,
+ 2011, 2012, 2018, 2019, 2022, 2031, 2036, 2043, 2053, 2059,
+ 2063, 2067, 2074, 2083, 2089, 2093, 2099, 2103, 2111, 2115,
+ 2122, 2131, 2142, 2146, 2153, 2162, 2171, 2182, 2186, 2193,
+ 2202, 2211, 2220, 2229, 2235, 2239, 2246, 2255, 2265, 2274,
+ 2283, 2290, 2291, 2297, 2301, 2305, 2309, 2317, 2326, 2330,
+ 2334, 2338, 2342, 2346, 2349, 2356, 2365, 2393, 2394, 2397,
+ 2398, 2401, 2405, 2412, 2419, 2430, 2433, 2441, 2445, 2449,
+ 2453, 2457, 2462, 2466, 2470, 2475, 2480, 2485, 2489, 2494,
+ 2499, 2503, 2507, 2512, 2516, 2523, 2529, 2533, 2539, 2546,
+ 2547, 2548, 2551, 2555, 2559, 2563, 2569, 2570, 2573, 2574,
+ 2577, 2578, 2581, 2582, 2585, 2589, 2607
};
#endif
-#if YYDEBUG || YYERROR_VERBOSE || 0
+#if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
First, the terminals, then, starting at YYNTOKENS, nonterminals. */
-static const char *const yytname[] = {
- "$end", "error", "$undefined", "CHAR", "INTEGER", "BOOLEAN", "PERCENT",
- "SPERCENT", "MINUS_INTEGER", "PLUS_INTEGER", "MAZE_GRID_ID",
- "SOLID_FILL_ID", "MINES_ID", "ROGUELEV_ID", "MESSAGE_ID", "MAZE_ID",
- "LEVEL_ID", "LEV_INIT_ID", "GEOMETRY_ID", "NOMAP_ID", "OBJECT_ID",
- "COBJECT_ID", "MONSTER_ID", "TRAP_ID", "DOOR_ID", "DRAWBRIDGE_ID",
- "object_ID", "monster_ID", "terrain_ID", "MAZEWALK_ID", "WALLIFY_ID",
- "REGION_ID", "FILLING", "IRREGULAR", "JOINED", "ALTAR_ID", "LADDER_ID",
- "STAIR_ID", "NON_DIGGABLE_ID", "NON_PASSWALL_ID", "ROOM_ID", "PORTAL_ID",
- "TELEPRT_ID", "BRANCH_ID", "LEV", "MINERALIZE_ID", "CORRIDOR_ID",
- "GOLD_ID", "ENGRAVING_ID", "FOUNTAIN_ID", "POOL_ID", "SINK_ID", "NONE",
- "RAND_CORRIDOR_ID", "DOOR_STATE", "LIGHT_STATE", "CURSE_TYPE",
- "ENGRAVING_TYPE", "DIRECTION", "RANDOM_TYPE", "RANDOM_TYPE_BRACKET",
- "A_REGISTER", "ALIGNMENT", "LEFT_OR_RIGHT", "CENTER", "TOP_OR_BOT",
- "ALTAR_TYPE", "UP_OR_DOWN", "SUBROOM_ID", "NAME_ID", "FLAGS_ID",
- "FLAG_TYPE", "MON_ATTITUDE", "MON_ALERTNESS", "MON_APPEARANCE",
- "ROOMDOOR_ID", "IF_ID", "ELSE_ID", "TERRAIN_ID", "HORIZ_OR_VERT",
- "REPLACE_TERRAIN_ID", "EXIT_ID", "SHUFFLE_ID", "QUANTITY_ID", "BURIED_ID",
- "LOOP_ID", "FOR_ID", "TO_ID", "SWITCH_ID", "CASE_ID", "BREAK_ID",
- "DEFAULT_ID", "ERODED_ID", "TRAPPED_ID", "RECHARGED_ID", "INVIS_ID",
- "GREASED_ID", "FEMALE_ID", "CANCELLED_ID", "REVIVED_ID", "AVENGE_ID",
- "FLEEING_ID", "BLINDED_ID", "PARALYZED_ID", "STUNNED_ID", "CONFUSED_ID",
- "SEENTRAPS_ID", "ALL_ID", "MONTYPE_ID", "GRAVE_ID", "ERODEPROOF_ID",
- "FUNCTION_ID", "MSG_OUTPUT_TYPE", "COMPARE_TYPE", "UNKNOWN_TYPE",
- "rect_ID", "fillrect_ID", "line_ID", "randline_ID", "grow_ID",
- "selection_ID", "flood_ID", "rndcoord_ID", "circle_ID", "ellipse_ID",
- "filter_ID", "complement_ID", "gradient_ID", "GRADIENT_TYPE", "LIMITED",
- "HUMIDITY_TYPE", "','", "':'", "'('", "')'", "'['", "']'", "'{'", "'}'",
- "STRING", "MAP_ID", "NQSTRING", "VARSTRING", "CFUNC", "CFUNC_INT",
- "CFUNC_STR", "CFUNC_COORD", "CFUNC_REGION", "VARSTRING_INT",
- "VARSTRING_INT_ARRAY", "VARSTRING_STRING", "VARSTRING_STRING_ARRAY",
- "VARSTRING_VAR", "VARSTRING_VAR_ARRAY", "VARSTRING_COORD",
- "VARSTRING_COORD_ARRAY", "VARSTRING_REGION", "VARSTRING_REGION_ARRAY",
- "VARSTRING_MAPCHAR", "VARSTRING_MAPCHAR_ARRAY", "VARSTRING_MONST",
- "VARSTRING_MONST_ARRAY", "VARSTRING_OBJ", "VARSTRING_OBJ_ARRAY",
- "VARSTRING_SEL", "VARSTRING_SEL_ARRAY", "METHOD_INT", "METHOD_INT_ARRAY",
- "METHOD_STRING", "METHOD_STRING_ARRAY", "METHOD_VAR", "METHOD_VAR_ARRAY",
- "METHOD_COORD", "METHOD_COORD_ARRAY", "METHOD_REGION",
- "METHOD_REGION_ARRAY", "METHOD_MAPCHAR", "METHOD_MAPCHAR_ARRAY",
- "METHOD_MONST", "METHOD_MONST_ARRAY", "METHOD_OBJ", "METHOD_OBJ_ARRAY",
- "METHOD_SEL", "METHOD_SEL_ARRAY", "DICE", "'+'", "'-'", "'*'", "'/'",
- "'%'", "'='", "'.'", "'|'", "'&'", "$accept", "file", "levels", "level",
- "level_def", "mazefiller", "lev_init", "opt_limited", "opt_coord_or_var",
- "opt_fillchar", "walled", "flags", "flag_list", "levstatements",
- "stmt_block", "levstatement", "any_var_array", "any_var",
- "any_var_or_arr", "any_var_or_unk", "shuffle_detail", "variable_define",
- "encodeobj_list", "encodemonster_list", "mapchar_list",
- "encoderegion_list", "encodecoord_list", "integer_list", "string_list",
- "function_define", "$@1", "$@2", "function_call", "exitstatement",
- "opt_percent", "comparestmt", "switchstatement", "$@3", "$@4",
- "switchcases", "switchcase", "$@5", "$@6", "breakstatement",
- "for_to_span", "forstmt_start", "forstatement", "$@7", "loopstatement",
- "$@8", "chancestatement", "$@9", "ifstatement", "$@10", "if_ending",
- "$@11", "message", "random_corridors", "corridor", "corr_spec",
- "room_begin", "subroom_def", "$@12", "room_def", "$@13", "roomfill",
- "room_pos", "subroom_pos", "room_align", "room_size", "door_detail",
- "secret", "door_wall", "dir_list", "door_pos", "map_definition",
- "h_justif", "v_justif", "monster_detail", "$@14", "monster_desc",
- "monster_infos", "monster_info", "seen_trap_mask", "object_detail",
- "$@15", "object_desc", "object_infos", "object_info", "trap_detail",
- "drawbridge_detail", "mazewalk_detail", "wallify_detail", "ladder_detail",
- "stair_detail", "stair_region", "portal_region", "teleprt_region",
- "branch_region", "teleprt_detail", "fountain_detail", "sink_detail",
- "pool_detail", "terrain_type", "replace_terrain_detail", "terrain_detail",
- "diggable_detail", "passwall_detail", "region_detail", "@16",
- "region_detail_end", "altar_detail", "grave_detail", "gold_detail",
- "engraving_detail", "mineralize", "trap_name", "room_type",
- "optroomregionflags", "roomregionflags", "roomregionflag", "door_state",
- "light_state", "alignment", "alignment_prfx", "altar_type", "a_register",
- "string_or_var", "integer_or_var", "coord_or_var", "encodecoord",
- "humidity_flags", "region_or_var", "encoderegion", "mapchar_or_var",
- "mapchar", "monster_or_var", "encodemonster", "object_or_var",
- "encodeobj", "string_expr", "math_expr_var", "func_param_type",
- "func_param_part", "func_param_list", "func_params_list",
- "func_call_param_part", "func_call_param_list", "func_call_params_list",
- "ter_selection_x", "ter_selection", "dice", "all_integers",
- "all_ints_push", "objectid", "monsterid", "terrainid", "engraving_type",
- "lev_region", "region", YY_NULLPTR
+static const char *const yytname[] =
+{
+ "$end", "error", "$undefined", "CHAR", "INTEGER", "BOOLEAN", "PERCENT",
+ "SPERCENT", "MINUS_INTEGER", "PLUS_INTEGER", "MAZE_GRID_ID",
+ "SOLID_FILL_ID", "MINES_ID", "ROGUELEV_ID", "MESSAGE_ID", "MAZE_ID",
+ "LEVEL_ID", "LEV_INIT_ID", "GEOMETRY_ID", "NOMAP_ID", "OBJECT_ID",
+ "COBJECT_ID", "MONSTER_ID", "TRAP_ID", "DOOR_ID", "DRAWBRIDGE_ID",
+ "object_ID", "monster_ID", "terrain_ID", "MAZEWALK_ID", "WALLIFY_ID",
+ "REGION_ID", "FILLING", "IRREGULAR", "JOINED", "ALTAR_ID", "LADDER_ID",
+ "STAIR_ID", "NON_DIGGABLE_ID", "NON_PASSWALL_ID", "ROOM_ID", "PORTAL_ID",
+ "TELEPRT_ID", "BRANCH_ID", "LEV", "MINERALIZE_ID", "CORRIDOR_ID",
+ "GOLD_ID", "ENGRAVING_ID", "FOUNTAIN_ID", "POOL_ID", "SINK_ID", "NONE",
+ "RAND_CORRIDOR_ID", "DOOR_STATE", "LIGHT_STATE", "CURSE_TYPE",
+ "ENGRAVING_TYPE", "DIRECTION", "RANDOM_TYPE", "RANDOM_TYPE_BRACKET",
+ "A_REGISTER", "ALIGNMENT", "LEFT_OR_RIGHT", "CENTER", "TOP_OR_BOT",
+ "ALTAR_TYPE", "UP_OR_DOWN", "SUBROOM_ID", "NAME_ID", "FLAGS_ID",
+ "FLAG_TYPE", "MON_ATTITUDE", "MON_ALERTNESS", "MON_APPEARANCE",
+ "ROOMDOOR_ID", "IF_ID", "ELSE_ID", "TERRAIN_ID", "HORIZ_OR_VERT",
+ "REPLACE_TERRAIN_ID", "EXIT_ID", "SHUFFLE_ID", "QUANTITY_ID",
+ "BURIED_ID", "LOOP_ID", "FOR_ID", "TO_ID", "SWITCH_ID", "CASE_ID",
+ "BREAK_ID", "DEFAULT_ID", "ERODED_ID", "TRAPPED_ID", "RECHARGED_ID",
+ "INVIS_ID", "GREASED_ID", "FEMALE_ID", "CANCELLED_ID", "REVIVED_ID",
+ "AVENGE_ID", "FLEEING_ID", "BLINDED_ID", "PARALYZED_ID", "STUNNED_ID",
+ "CONFUSED_ID", "SEENTRAPS_ID", "ALL_ID", "MONTYPE_ID", "GRAVE_ID",
+ "ERODEPROOF_ID", "FUNCTION_ID", "MSG_OUTPUT_TYPE", "COMPARE_TYPE",
+ "UNKNOWN_TYPE", "rect_ID", "fillrect_ID", "line_ID", "randline_ID",
+ "grow_ID", "selection_ID", "flood_ID", "rndcoord_ID", "circle_ID",
+ "ellipse_ID", "filter_ID", "complement_ID", "gradient_ID",
+ "GRADIENT_TYPE", "LIMITED", "HUMIDITY_TYPE", "','", "':'", "'('", "')'",
+ "'['", "']'", "'{'", "'}'", "STRING", "MAP_ID", "NQSTRING", "VARSTRING",
+ "CFUNC", "CFUNC_INT", "CFUNC_STR", "CFUNC_COORD", "CFUNC_REGION",
+ "VARSTRING_INT", "VARSTRING_INT_ARRAY", "VARSTRING_STRING",
+ "VARSTRING_STRING_ARRAY", "VARSTRING_VAR", "VARSTRING_VAR_ARRAY",
+ "VARSTRING_COORD", "VARSTRING_COORD_ARRAY", "VARSTRING_REGION",
+ "VARSTRING_REGION_ARRAY", "VARSTRING_MAPCHAR", "VARSTRING_MAPCHAR_ARRAY",
+ "VARSTRING_MONST", "VARSTRING_MONST_ARRAY", "VARSTRING_OBJ",
+ "VARSTRING_OBJ_ARRAY", "VARSTRING_SEL", "VARSTRING_SEL_ARRAY",
+ "METHOD_INT", "METHOD_INT_ARRAY", "METHOD_STRING", "METHOD_STRING_ARRAY",
+ "METHOD_VAR", "METHOD_VAR_ARRAY", "METHOD_COORD", "METHOD_COORD_ARRAY",
+ "METHOD_REGION", "METHOD_REGION_ARRAY", "METHOD_MAPCHAR",
+ "METHOD_MAPCHAR_ARRAY", "METHOD_MONST", "METHOD_MONST_ARRAY",
+ "METHOD_OBJ", "METHOD_OBJ_ARRAY", "METHOD_SEL", "METHOD_SEL_ARRAY",
+ "DICE", "'+'", "'-'", "'*'", "'/'", "'%'", "'='", "'.'", "'|'", "'&'",
+ "$accept", "file", "levels", "level", "level_def", "mazefiller",
+ "lev_init", "opt_limited", "opt_coord_or_var", "opt_fillchar", "walled",
+ "flags", "flag_list", "levstatements", "stmt_block", "levstatement",
+ "any_var_array", "any_var", "any_var_or_arr", "any_var_or_unk",
+ "shuffle_detail", "variable_define", "encodeobj_list",
+ "encodemonster_list", "mapchar_list", "encoderegion_list",
+ "encodecoord_list", "integer_list", "string_list", "function_define",
+ "$@1", "$@2", "function_call", "exitstatement", "opt_percent",
+ "comparestmt", "switchstatement", "$@3", "$@4", "switchcases",
+ "switchcase", "$@5", "$@6", "breakstatement", "for_to_span",
+ "forstmt_start", "forstatement", "$@7", "loopstatement", "$@8",
+ "chancestatement", "$@9", "ifstatement", "$@10", "if_ending", "$@11",
+ "message", "random_corridors", "corridor", "corr_spec", "room_begin",
+ "subroom_def", "$@12", "room_def", "$@13", "roomfill", "room_pos",
+ "subroom_pos", "room_align", "room_size", "door_detail", "secret",
+ "door_wall", "dir_list", "door_pos", "map_definition", "h_justif",
+ "v_justif", "monster_detail", "$@14", "monster_desc", "monster_infos",
+ "monster_info", "seen_trap_mask", "object_detail", "$@15", "object_desc",
+ "object_infos", "object_info", "trap_detail", "drawbridge_detail",
+ "mazewalk_detail", "wallify_detail", "ladder_detail", "stair_detail",
+ "stair_region", "portal_region", "teleprt_region", "branch_region",
+ "teleprt_detail", "fountain_detail", "sink_detail", "pool_detail",
+ "terrain_type", "replace_terrain_detail", "terrain_detail",
+ "diggable_detail", "passwall_detail", "region_detail", "@16",
+ "region_detail_end", "altar_detail", "grave_detail", "gold_detail",
+ "engraving_detail", "mineralize", "trap_name", "room_type",
+ "optroomregionflags", "roomregionflags", "roomregionflag", "door_state",
+ "light_state", "alignment", "alignment_prfx", "altar_type", "a_register",
+ "string_or_var", "integer_or_var", "coord_or_var", "encodecoord",
+ "humidity_flags", "region_or_var", "encoderegion", "mapchar_or_var",
+ "mapchar", "monster_or_var", "encodemonster", "object_or_var",
+ "encodeobj", "string_expr", "math_expr_var", "func_param_type",
+ "func_param_part", "func_param_list", "func_params_list",
+ "func_call_param_part", "func_call_param_list", "func_call_params_list",
+ "ter_selection_x", "ter_selection", "dice", "all_integers",
+ "all_ints_push", "objectid", "monsterid", "terrainid", "engraving_type",
+ "lev_region", "region", 0
};
#endif
-#ifdef YYPRINT
-/* YYTOKNUM[NUM] -- (External) token number corresponding to the
- (internal) symbol number NUM (which must be that of a token). */
-static const yytype_uint16 yytoknum[] = {
- 0, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269,
- 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284,
- 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299,
- 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314,
- 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329,
- 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344,
- 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359,
- 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374,
- 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 44, 58, 40, 41,
- 91, 93, 123, 125, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396,
- 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411,
- 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426,
- 427, 428, 429, 430, 431, 43, 45, 42, 47, 37, 61, 46, 124, 38
+# ifdef YYPRINT
+/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
+ token YYLEX-NUM. */
+static const yytype_uint16 yytoknum[] =
+{
+ 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
+ 265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
+ 275, 276, 277, 278, 279, 280, 281, 282, 283, 284,
+ 285, 286, 287, 288, 289, 290, 291, 292, 293, 294,
+ 295, 296, 297, 298, 299, 300, 301, 302, 303, 304,
+ 305, 306, 307, 308, 309, 310, 311, 312, 313, 314,
+ 315, 316, 317, 318, 319, 320, 321, 322, 323, 324,
+ 325, 326, 327, 328, 329, 330, 331, 332, 333, 334,
+ 335, 336, 337, 338, 339, 340, 341, 342, 343, 344,
+ 345, 346, 347, 348, 349, 350, 351, 352, 353, 354,
+ 355, 356, 357, 358, 359, 360, 361, 362, 363, 364,
+ 365, 366, 367, 368, 369, 370, 371, 372, 373, 374,
+ 375, 376, 377, 378, 379, 380, 381, 382, 383, 384,
+ 385, 44, 58, 40, 41, 91, 93, 123, 125, 386,
+ 387, 388, 389, 390, 391, 392, 393, 394, 395, 396,
+ 397, 398, 399, 400, 401, 402, 403, 404, 405, 406,
+ 407, 408, 409, 410, 411, 412, 413, 414, 415, 416,
+ 417, 418, 419, 420, 421, 422, 423, 424, 425, 426,
+ 427, 428, 429, 430, 431, 43, 45, 42, 47, 37,
+ 61, 46, 124, 38
};
-#endif
+# endif
-#define YYPACT_NINF -654
+/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
+static const yytype_uint16 yyr1[] =
+{
+ 0, 194, 195, 195, 196, 196, 197, 198, 198, 199,
+ 199, 200, 200, 200, 200, 201, 201, 202, 202, 203,
+ 203, 204, 204, 205, 205, 206, 206, 207, 207, 208,
+ 209, 209, 209, 209, 209, 209, 209, 209, 209, 209,
+ 209, 209, 209, 209, 209, 209, 209, 209, 209, 209,
+ 209, 209, 209, 209, 209, 209, 209, 209, 209, 209,
+ 209, 209, 209, 209, 209, 209, 209, 209, 209, 209,
+ 209, 209, 209, 209, 210, 210, 210, 210, 210, 210,
+ 210, 210, 210, 211, 211, 211, 211, 211, 211, 211,
+ 211, 211, 212, 212, 212, 213, 213, 214, 215, 215,
+ 215, 215, 215, 215, 215, 215, 215, 215, 215, 215,
+ 215, 215, 215, 216, 216, 217, 217, 218, 218, 219,
+ 219, 220, 220, 221, 221, 222, 222, 224, 225, 223,
+ 226, 227, 228, 228, 229, 229, 229, 231, 232, 230,
+ 233, 233, 235, 234, 236, 234, 237, 238, 238, 239,
+ 241, 240, 243, 242, 245, 244, 247, 246, 248, 249,
+ 248, 250, 251, 251, 251, 252, 252, 253, 254, 256,
+ 255, 258, 257, 259, 259, 260, 260, 261, 261, 262,
+ 262, 263, 263, 264, 264, 265, 265, 266, 266, 267,
+ 267, 268, 268, 269, 269, 269, 270, 270, 271, 271,
+ 272, 273, 272, 274, 275, 275, 276, 276, 276, 276,
+ 276, 276, 276, 276, 276, 276, 276, 276, 276, 276,
+ 276, 276, 277, 277, 277, 278, 279, 278, 280, 281,
+ 281, 282, 282, 282, 282, 282, 282, 282, 282, 282,
+ 282, 282, 282, 282, 282, 282, 283, 284, 285, 285,
+ 286, 286, 287, 288, 289, 290, 291, 292, 293, 293,
+ 294, 295, 296, 297, 297, 298, 299, 300, 301, 303,
+ 302, 304, 304, 305, 306, 306, 306, 307, 308, 309,
+ 309, 310, 310, 311, 311, 312, 312, 313, 313, 314,
+ 314, 314, 315, 315, 316, 316, 317, 317, 317, 318,
+ 318, 318, 319, 319, 320, 321, 321, 321, 322, 323,
+ 323, 323, 323, 324, 324, 324, 325, 325, 326, 326,
+ 326, 327, 328, 328, 328, 329, 329, 330, 330, 330,
+ 331, 331, 331, 331, 332, 332, 332, 333, 333, 333,
+ 333, 334, 334, 335, 335, 335, 335, 335, 335, 335,
+ 335, 335, 335, 335, 336, 336, 337, 338, 338, 339,
+ 339, 340, 340, 341, 341, 342, 342, 343, 343, 343,
+ 343, 343, 343, 343, 343, 343, 343, 343, 343, 343,
+ 343, 343, 343, 343, 343, 343, 344, 344, 345, 346,
+ 346, 346, 347, 347, 347, 347, 348, 348, 349, 349,
+ 350, 350, 351, 351, 352, 352, 353
+};
-#define yypact_value_is_default(Yystate) (!!((Yystate) == (-654)))
+/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
+static const yytype_uint8 yyr2[] =
+{
+ 0, 2, 0, 1, 1, 2, 3, 3, 5, 1,
+ 1, 5, 5, 3, 16, 0, 2, 0, 2, 0,
+ 2, 1, 1, 0, 3, 3, 1, 0, 2, 3,
+ 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, 5,
+ 3, 5, 5, 5, 3, 3, 5, 5, 5, 7,
+ 7, 7, 5, 1, 3, 1, 3, 1, 3, 1,
+ 3, 1, 3, 1, 3, 1, 3, 0, 0, 8,
+ 4, 1, 0, 1, 1, 5, 3, 0, 0, 9,
+ 0, 2, 0, 5, 0, 4, 1, 2, 1, 6,
+ 0, 3, 0, 6, 0, 4, 0, 4, 1, 0,
+ 4, 3, 1, 3, 3, 5, 5, 7, 4, 0,
+ 10, 0, 12, 0, 2, 5, 1, 5, 1, 5,
+ 1, 5, 1, 9, 5, 1, 1, 1, 1, 1,
+ 3, 1, 1, 1, 7, 5, 1, 1, 1, 1,
+ 3, 0, 5, 4, 0, 3, 1, 1, 1, 1,
+ 2, 1, 1, 1, 1, 1, 3, 3, 3, 1,
+ 1, 3, 1, 1, 3, 3, 0, 5, 2, 0,
+ 3, 1, 3, 1, 3, 3, 1, 1, 3, 1,
+ 1, 1, 3, 1, 1, 1, 5, 7, 5, 8,
+ 1, 3, 5, 5, 7, 7, 6, 5, 0, 2,
+ 3, 3, 3, 1, 5, 9, 5, 3, 3, 0,
+ 10, 0, 1, 7, 5, 5, 3, 5, 7, 9,
+ 1, 1, 1, 1, 1, 0, 2, 1, 3, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 3, 1, 1, 4, 1, 1, 4, 1, 1,
+ 4, 1, 4, 5, 1, 3, 1, 3, 1, 1,
+ 4, 9, 1, 1, 4, 1, 5, 1, 1, 4,
+ 1, 1, 5, 1, 1, 1, 4, 1, 1, 5,
+ 1, 1, 3, 1, 1, 3, 1, 4, 3, 3,
+ 3, 3, 3, 3, 1, 1, 3, 1, 3, 0,
+ 1, 1, 1, 1, 3, 0, 1, 1, 2, 2,
+ 4, 6, 4, 6, 6, 6, 6, 2, 6, 8,
+ 8, 10, 14, 2, 1, 3, 1, 3, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 10, 9
+};
-#define YYTABLE_NINF -202
+/* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
+ STATE-NUM when YYTABLE doesn't specify something else to do. Zero
+ means the default is an error. */
+static const yytype_uint16 yydefact[] =
+{
+ 2, 0, 0, 0, 3, 4, 23, 0, 0, 1,
+ 5, 0, 27, 0, 7, 0, 134, 0, 0, 0,
+ 193, 0, 0, 0, 0, 0, 0, 0, 250, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 280,
+ 0, 0, 0, 0, 0, 0, 162, 0, 0, 0,
+ 0, 0, 131, 0, 0, 0, 137, 146, 0, 0,
+ 0, 0, 94, 83, 74, 84, 75, 85, 76, 86,
+ 77, 87, 78, 88, 79, 89, 80, 90, 81, 91,
+ 82, 31, 6, 27, 92, 93, 0, 37, 36, 52,
+ 53, 50, 0, 45, 51, 150, 46, 47, 49, 48,
+ 30, 62, 35, 65, 64, 39, 55, 57, 58, 72,
+ 40, 56, 73, 54, 69, 70, 61, 71, 34, 43,
+ 66, 60, 68, 67, 38, 59, 63, 32, 33, 44,
+ 41, 42, 0, 26, 24, 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, 156, 0, 0, 0,
+ 0, 95, 96, 0, 0, 0, 0, 343, 0, 346,
+ 0, 388, 0, 344, 365, 28, 0, 154, 0, 10,
+ 9, 8, 0, 305, 306, 0, 341, 161, 0, 0,
+ 0, 13, 314, 0, 196, 197, 0, 0, 311, 0,
+ 0, 173, 309, 338, 340, 0, 337, 335, 0, 225,
+ 229, 334, 226, 331, 333, 0, 330, 328, 0, 200,
+ 0, 327, 282, 281, 0, 292, 293, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 384, 367, 386, 251, 0, 319, 0, 0,
+ 318, 0, 0, 0, 0, 0, 0, 404, 267, 268,
+ 284, 283, 0, 132, 0, 0, 0, 0, 0, 308,
+ 0, 0, 0, 0, 260, 262, 261, 391, 389, 390,
+ 164, 163, 0, 185, 186, 0, 0, 0, 0, 97,
+ 0, 0, 0, 276, 127, 0, 0, 0, 0, 136,
+ 0, 0, 0, 0, 0, 362, 361, 363, 366, 0,
+ 397, 399, 396, 398, 400, 401, 0, 0, 0, 104,
+ 105, 100, 98, 0, 0, 0, 0, 27, 151, 25,
+ 0, 0, 0, 0, 0, 316, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 228, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 368, 369, 0, 0, 0,
+ 377, 0, 0, 0, 383, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 133, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 158, 157, 0, 0, 152, 0, 0, 0, 359,
+ 345, 353, 0, 0, 348, 349, 350, 351, 352, 0,
+ 130, 0, 343, 0, 0, 0, 0, 121, 119, 125,
+ 123, 0, 0, 0, 155, 0, 0, 342, 12, 263,
+ 0, 11, 0, 0, 315, 0, 0, 0, 199, 198,
+ 173, 174, 195, 0, 0, 0, 227, 0, 0, 202,
+ 204, 246, 184, 0, 248, 0, 0, 189, 0, 0,
+ 0, 0, 325, 0, 0, 323, 0, 0, 322, 0,
+ 0, 385, 387, 0, 0, 294, 295, 0, 298, 0,
+ 296, 0, 297, 252, 0, 0, 253, 0, 176, 0,
+ 0, 0, 0, 0, 258, 257, 0, 0, 165, 166,
+ 277, 402, 403, 0, 178, 0, 0, 0, 0, 0,
+ 266, 0, 0, 148, 0, 0, 138, 275, 274, 0,
+ 357, 360, 0, 347, 135, 364, 99, 0, 0, 108,
+ 0, 107, 0, 106, 0, 112, 0, 103, 0, 102,
+ 0, 101, 29, 307, 0, 0, 317, 310, 0, 312,
+ 0, 0, 336, 394, 392, 393, 240, 237, 231, 0,
+ 0, 236, 0, 241, 0, 243, 244, 0, 239, 230,
+ 245, 395, 233, 0, 329, 203, 0, 0, 370, 0,
+ 0, 0, 372, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 320, 0, 0, 0, 0, 0, 0, 0,
+ 0, 168, 0, 0, 0, 256, 0, 0, 0, 0,
+ 0, 0, 0, 0, 153, 147, 149, 0, 0, 0,
+ 128, 0, 120, 122, 124, 126, 0, 113, 0, 115,
+ 0, 117, 0, 0, 313, 194, 339, 0, 0, 0,
+ 0, 0, 332, 0, 247, 19, 0, 190, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 285, 0,
+ 303, 302, 273, 0, 0, 254, 0, 180, 0, 0,
+ 255, 259, 0, 0, 278, 0, 182, 0, 285, 188,
+ 0, 187, 160, 0, 140, 354, 355, 356, 358, 0,
+ 0, 111, 0, 110, 0, 109, 0, 0, 234, 235,
+ 238, 242, 232, 0, 299, 207, 208, 0, 212, 211,
+ 213, 214, 215, 0, 0, 0, 219, 220, 0, 205,
+ 209, 300, 206, 0, 249, 371, 373, 0, 378, 0,
+ 374, 0, 324, 376, 375, 0, 0, 0, 269, 304,
+ 0, 0, 0, 0, 0, 0, 191, 192, 0, 0,
+ 0, 169, 0, 0, 0, 0, 0, 140, 129, 114,
+ 116, 118, 264, 0, 0, 210, 0, 0, 0, 0,
+ 20, 0, 0, 326, 0, 0, 289, 290, 291, 286,
+ 287, 271, 0, 0, 175, 0, 285, 279, 167, 177,
+ 0, 0, 183, 265, 0, 144, 139, 141, 0, 301,
+ 216, 217, 218, 223, 222, 221, 379, 0, 380, 349,
+ 0, 0, 272, 270, 0, 0, 0, 171, 0, 170,
+ 142, 27, 0, 0, 0, 0, 0, 321, 288, 0,
+ 406, 179, 0, 181, 27, 145, 0, 224, 381, 16,
+ 0, 405, 172, 143, 0, 0, 0, 17, 21, 22,
+ 19, 0, 0, 14, 18, 382
+};
-#define yytable_value_is_error(Yytable_value) 0
+/* YYDEFGOTO[NTERM-NUM]. */
+static const yytype_int16 yydefgoto[] =
+{
+ -1, 3, 4, 5, 6, 191, 81, 836, 862, 734,
+ 860, 12, 134, 82, 338, 83, 84, 85, 86, 173,
+ 87, 88, 636, 638, 640, 423, 424, 425, 426, 89,
+ 409, 699, 90, 91, 389, 92, 93, 174, 627, 766,
+ 767, 844, 831, 94, 525, 95, 96, 188, 97, 522,
+ 98, 336, 99, 296, 402, 518, 100, 101, 102, 281,
+ 272, 103, 801, 104, 842, 352, 500, 516, 679, 688,
+ 105, 295, 690, 468, 758, 106, 210, 450, 107, 359,
+ 229, 585, 729, 815, 108, 356, 219, 355, 579, 109,
+ 110, 111, 112, 113, 114, 115, 116, 117, 118, 615,
+ 119, 120, 121, 441, 122, 123, 124, 125, 126, 791,
+ 823, 127, 128, 129, 130, 131, 234, 273, 748, 789,
+ 790, 237, 487, 491, 730, 672, 492, 196, 278, 253,
+ 212, 346, 259, 260, 477, 478, 230, 231, 220, 221,
+ 315, 279, 697, 530, 531, 532, 317, 318, 319, 254,
+ 376, 183, 291, 582, 333, 334, 335, 513, 266, 267
+};
/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
STATE-NUM. */
-static const yytype_int16 yypact[] = {
- 137, 7, 27, 83, -654, 137, 24, -15, 37, -654, -654, 91,
- 733, -10, -654, 113, -654, 99, 131, 133, -654, 161, 164, 166,
- 174, 183, 199, 214, 231, 233, 239, 241, 243, 245, 247, 250,
- 268, 269, 275, 276, 281, 295, 305, 317, 322, 323, 325, 326,
- 327, 28, 340, 343, -654, 345, 205, 757, -654, -654, 346, 49,
- 66, 265, -654, -654, -654, -654, -654, -654, -654, -654, -654, -654,
- -654, -654, -654, -654, -654, -654, -654, -654, -654, -654, -654, 733,
- -654, -654, 190, -654, -654, -654, -654, -654, 353, -654, -654, -654,
- -654, -654, -654, -654, -654, -654, -654, -654, -654, -654, -654, -654,
- -654, -654, -654, -654, -654, -654, -654, -654, -654, -654, -654, -654,
- -654, -654, -654, -654, -654, -654, -654, -654, -654, -654, -654, -654,
- 59, 308, -654, -31, 406, 351, 58, 58, 144, -11, 57, -18,
- -18, 672, -57, -18, -18, 248, -57, -57, -6, -1, -1, -1,
- 66, 303, 66, -18, 672, 672, 672, 319, -6, 51, -654, 672,
- -57, 751, 66, -654, -654, 279, 339, -18, 355, -654, 29, -654,
- 344, -654, 198, -654, 56, -654, 18, -654, 359, -654, -654, -654,
- 113, -654, -654, 360, -654, 309, 368, 371, 372, -654, -654, 374,
- -654, -654, 375, 503, -654, 378, 379, 383, -654, -654, -654, 506,
- -654, -654, 402, -654, -654, -654, -654, -654, -654, 537, -654, -654,
- 413, 404, 418, -654, -654, -654, 420, -654, -654, 427, 439, 446,
- -57, -57, -18, -18, 417, -18, 436, 445, 449, 672, 450, 508,
- -654, -654, 391, -654, 582, -654, 453, 458, -654, 459, 460, 466,
- 599, 473, 474, -654, -654, -654, -654, -654, 475, 601, 608, 482,
- 483, 489, 490, 387, 618, 526, 208, 529, -654, -654, -654, -654,
- -654, -654, -654, -654, 530, -654, -654, 534, 359, 538, 539, -654,
- 523, 66, 66, 540, -654, 548, 342, 66, 66, -654, 66, 66,
- 66, 66, 66, 309, 387, -654, 542, 549, -654, -654, -654, -654,
- -654, -654, 554, 60, 32, -654, -654, 309, 387, 555, 556, 558,
- 733, 733, -654, -654, 66, -31, 671, 46, 698, 571, 567, 672,
- 573, 66, 215, 700, 566, 581, 66, 587, 359, 589, 66, 359,
- -18, -18, 672, 663, 664, -654, -654, 592, 593, 521, -654, -18,
- -18, 307, -654, 598, 596, 672, 597, 66, 67, 186, 660, 730,
- 604, 669, -1, 8, -654, 606, 607, -1, -1, -1, 66, 609,
- 89, -18, 141, 12, 57, 665, -654, 52, 52, -654, 156, 605,
- -38, 697, -654, -654, 331, 347, 168, 168, -654, -654, -654, 56,
- -654, 672, 612, -52, -50, 4, 140, -654, -654, 309, 387, 55,
- 127, 158, -654, 611, 358, -654, -654, -654, 743, -654, 628, 374,
- -654, 626, 761, 430, -654, -654, 383, -654, -654, 627, 464, 266,
- -654, 638, 492, -654, -654, -654, -654, 636, 654, -18, -18, 600,
- 673, 666, 675, 676, -654, 679, 438, -654, 667, 681, -654, 685,
- 686, -654, -654, 799, 522, -654, -654, 689, -654, 687, -654, 693,
- -654, -654, 694, 824, -654, 699, -654, 825, 701, 67, 827, 702,
- 703, -654, 704, 779, -654, -654, -654, -654, -654, 707, -654, 836,
- 710, 712, 786, 861, -654, 734, 359, -654, 678, 66, -654, -654,
- 309, 735, -654, 739, 732, -654, -654, -654, -654, 867, 740, -654,
- -8, -654, 66, -654, -31, -654, 21, -654, 25, -654, 54, -654,
- -654, -654, 741, 873, -654, -654, 744, -654, 737, 745, -654, -654,
- -654, -654, -654, -654, -654, 748, 769, -654, 771, -654, 788, -654,
- -654, 790, -654, -654, -654, -654, -654, 784, -654, 792, 57, 919,
- -654, 794, 868, 672, -654, 66, 66, 672, 796, 66, 672, 672,
- 795, 798, -654, -6, 926, 90, 927, -49, 865, 802, 13, -654,
- 803, 797, 870, -654, 66, 804, -31, 807, 15, 254, 359, 52,
- -654, -654, 387, 805, 224, 697, -654, -29, -654, -654, 387, 309,
- 151, -654, 159, -654, 171, -654, 67, 808, -654, -654, -654, -31,
- 66, 66, 66, 144, -654, 594, -654, 809, 66, -654, 810, 258,
- 337, 811, 67, 528, 812, 813, 66, 937, 817, 814, -654, -654,
- -654, 818, 939, -654, 947, -654, 289, 821, -654, -654, 822, 85,
- 309, 950, -654, 951, 817, -654, 826, -654, -654, 828, 160, -654,
- -654, -654, -654, 359, 21, -654, 25, -654, 54, -654, 829, 953,
- 309, -654, -654, -654, -654, 149, -654, -654, -654, -31, -654, -654,
- -654, -654, -654, 830, 832, 833, -654, -654, 834, -654, -654, -654,
- 309, 957, -654, 387, -654, 924, -654, 66, -654, 835, -654, -654,
- -654, 409, 837, 419, -654, -654, 963, 839, 838, 840, 15, 66,
- -654, -654, 841, 842, 843, -654, 85, 954, 329, 845, 844, 160,
- -654, -654, -654, -654, -654, 847, 914, 309, 66, 66, 66, -44,
- -654, 846, 304, -654, 66, 975, -654, -654, -654, -654, 850, 359,
- 852, 980, -654, 215, 817, -654, -654, -654, 981, 359, -654, -654,
- 854, -654, -654, -654, 982, -654, -654, -654, -654, -654, 800, -654,
- -654, 956, -654, 217, 855, 419, -654, -654, 986, 857, 859, -654,
- 860, -654, -654, 733, 864, -44, 862, 869, 863, -654, -654, 866,
- -654, -654, 359, -654, 733, -654, 67, -654, -654, -654, 871, -654,
- -654, -654, 872, -18, 68, 874, -654, -654, 809, -18, 875, -654,
- -654, -654
-};
-
-/* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM.
- Performed when YYTABLE does not specify something else to do. Zero
- means the default is an error. */
-static const yytype_uint16 yydefact[] = {
- 2, 0, 0, 0, 3, 4, 23, 0, 0, 1, 5, 0, 27, 0, 7,
- 0, 134, 0, 0, 0, 193, 0, 0, 0, 0, 0, 0, 0, 250, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 280, 0, 0, 0, 0, 0,
- 0, 162, 0, 0, 0, 0, 0, 131, 0, 0, 0, 137, 146, 0, 0,
- 0, 0, 94, 83, 74, 84, 75, 85, 76, 86, 77, 87, 78, 88, 79,
- 89, 80, 90, 81, 91, 82, 31, 6, 27, 92, 93, 0, 37, 36, 52,
- 53, 50, 0, 45, 51, 150, 46, 47, 49, 48, 30, 62, 35, 65, 64,
- 39, 55, 57, 58, 72, 40, 56, 73, 54, 69, 70, 61, 71, 34, 43,
- 66, 60, 68, 67, 38, 59, 63, 32, 33, 44, 41, 42, 0, 26, 24,
- 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, 156, 0, 0, 0, 0, 95, 96, 0, 0, 0, 0, 343, 0, 346,
- 0, 388, 0, 344, 365, 28, 0, 154, 0, 10, 9, 8, 0, 305, 306,
- 0, 341, 161, 0, 0, 0, 13, 314, 0, 196, 197, 0, 0, 311, 0,
- 0, 173, 309, 338, 340, 0, 337, 335, 0, 225, 229, 334, 226, 331, 333,
- 0, 330, 328, 0, 200, 0, 327, 282, 281, 0, 292, 293, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 384, 367, 386,
- 251, 0, 319, 0, 0, 318, 0, 0, 0, 0, 0, 0, 404, 267, 268,
- 284, 283, 0, 132, 0, 0, 0, 0, 0, 308, 0, 0, 0, 0, 260,
- 262, 261, 391, 389, 390, 164, 163, 0, 185, 186, 0, 0, 0, 0, 97,
- 0, 0, 0, 276, 127, 0, 0, 0, 0, 136, 0, 0, 0, 0, 0,
- 362, 361, 363, 366, 0, 397, 399, 396, 398, 400, 401, 0, 0, 0, 104,
- 105, 100, 98, 0, 0, 0, 0, 27, 151, 25, 0, 0, 0, 0, 0,
- 316, 0, 0, 0, 0, 0, 0, 0, 0, 0, 228, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 368, 369, 0, 0, 0, 377, 0, 0, 0, 383,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 133, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 158, 157, 0, 0,
- 152, 0, 0, 0, 359, 345, 353, 0, 0, 348, 349, 350, 351, 352, 0,
- 130, 0, 343, 0, 0, 0, 0, 121, 119, 125, 123, 0, 0, 0, 155,
- 0, 0, 342, 12, 263, 0, 11, 0, 0, 315, 0, 0, 0, 199, 198,
- 173, 174, 195, 0, 0, 0, 227, 0, 0, 202, 204, 246, 184, 0, 248,
- 0, 0, 189, 0, 0, 0, 0, 325, 0, 0, 323, 0, 0, 322, 0,
- 0, 385, 387, 0, 0, 294, 295, 0, 298, 0, 296, 0, 297, 252, 0,
- 0, 253, 0, 176, 0, 0, 0, 0, 0, 258, 257, 0, 0, 165, 166,
- 277, 402, 403, 0, 178, 0, 0, 0, 0, 0, 266, 0, 0, 148, 0,
- 0, 138, 275, 274, 0, 357, 360, 0, 347, 135, 364, 99, 0, 0, 108,
- 0, 107, 0, 106, 0, 112, 0, 103, 0, 102, 0, 101, 29, 307, 0,
- 0, 317, 310, 0, 312, 0, 0, 336, 394, 392, 393, 240, 237, 231, 0,
- 0, 236, 0, 241, 0, 243, 244, 0, 239, 230, 245, 395, 233, 0, 329,
- 203, 0, 0, 370, 0, 0, 0, 372, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 320, 0, 0, 0, 0, 0, 0, 0, 0, 168, 0, 0, 0,
- 256, 0, 0, 0, 0, 0, 0, 0, 0, 153, 147, 149, 0, 0, 0,
- 128, 0, 120, 122, 124, 126, 0, 113, 0, 115, 0, 117, 0, 0, 313,
- 194, 339, 0, 0, 0, 0, 0, 332, 0, 247, 19, 0, 190, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 285, 0, 303, 302, 273, 0, 0,
- 254, 0, 180, 0, 0, 255, 259, 0, 0, 278, 0, 182, 0, 285, 188,
- 0, 187, 160, 0, 140, 354, 355, 356, 358, 0, 0, 111, 0, 110, 0,
- 109, 0, 0, 234, 235, 238, 242, 232, 0, 299, 207, 208, 0, 212, 211,
- 213, 214, 215, 0, 0, 0, 219, 220, 0, 205, 209, 300, 206, 0, 249,
- 371, 373, 0, 378, 0, 374, 0, 324, 376, 375, 0, 0, 0, 269, 304,
- 0, 0, 0, 0, 0, 0, 191, 192, 0, 0, 0, 169, 0, 0, 0,
- 0, 0, 140, 129, 114, 116, 118, 264, 0, 0, 210, 0, 0, 0, 0,
- 20, 0, 0, 326, 0, 0, 289, 290, 291, 286, 287, 271, 0, 0, 175,
- 0, 285, 279, 167, 177, 0, 0, 183, 265, 0, 144, 139, 141, 0, 301,
- 216, 217, 218, 223, 222, 221, 379, 0, 380, 349, 0, 0, 272, 270, 0,
- 0, 0, 171, 0, 170, 142, 27, 0, 0, 0, 0, 0, 321, 288, 0,
- 406, 179, 0, 181, 27, 145, 0, 224, 381, 16, 0, 405, 172, 143, 0,
- 0, 0, 17, 21, 22, 19, 0, 0, 14, 18, 382
+#define YYPACT_NINF -654
+static const yytype_int16 yypact[] =
+{
+ 137, 7, 27, 83, -654, 137, 24, -15, 37, -654,
+ -654, 91, 733, -10, -654, 113, -654, 99, 131, 133,
+ -654, 161, 164, 166, 174, 183, 199, 214, 231, 233,
+ 239, 241, 243, 245, 247, 250, 268, 269, 275, 276,
+ 281, 295, 305, 317, 322, 323, 325, 326, 327, 28,
+ 340, 343, -654, 345, 205, 757, -654, -654, 346, 49,
+ 66, 265, -654, -654, -654, -654, -654, -654, -654, -654,
+ -654, -654, -654, -654, -654, -654, -654, -654, -654, -654,
+ -654, -654, -654, 733, -654, -654, 190, -654, -654, -654,
+ -654, -654, 353, -654, -654, -654, -654, -654, -654, -654,
+ -654, -654, -654, -654, -654, -654, -654, -654, -654, -654,
+ -654, -654, -654, -654, -654, -654, -654, -654, -654, -654,
+ -654, -654, -654, -654, -654, -654, -654, -654, -654, -654,
+ -654, -654, 59, 308, -654, -31, 406, 351, 58, 58,
+ 144, -11, 57, -18, -18, 672, -57, -18, -18, 248,
+ -57, -57, -6, -1, -1, -1, 66, 303, 66, -18,
+ 672, 672, 672, 319, -6, 51, -654, 672, -57, 751,
+ 66, -654, -654, 279, 339, -18, 355, -654, 29, -654,
+ 344, -654, 198, -654, 56, -654, 18, -654, 359, -654,
+ -654, -654, 113, -654, -654, 360, -654, 309, 368, 371,
+ 372, -654, -654, 374, -654, -654, 375, 503, -654, 378,
+ 379, 383, -654, -654, -654, 506, -654, -654, 402, -654,
+ -654, -654, -654, -654, -654, 537, -654, -654, 413, 404,
+ 418, -654, -654, -654, 420, -654, -654, 427, 439, 446,
+ -57, -57, -18, -18, 417, -18, 436, 445, 449, 672,
+ 450, 508, -654, -654, 391, -654, 582, -654, 453, 458,
+ -654, 459, 460, 466, 599, 473, 474, -654, -654, -654,
+ -654, -654, 475, 601, 608, 482, 483, 489, 490, 387,
+ 618, 526, 208, 529, -654, -654, -654, -654, -654, -654,
+ -654, -654, 530, -654, -654, 534, 359, 538, 539, -654,
+ 523, 66, 66, 540, -654, 548, 342, 66, 66, -654,
+ 66, 66, 66, 66, 66, 309, 387, -654, 542, 549,
+ -654, -654, -654, -654, -654, -654, 554, 60, 32, -654,
+ -654, 309, 387, 555, 556, 558, 733, 733, -654, -654,
+ 66, -31, 671, 46, 698, 571, 567, 672, 573, 66,
+ 215, 700, 566, 581, 66, 587, 359, 589, 66, 359,
+ -18, -18, 672, 663, 664, -654, -654, 592, 593, 521,
+ -654, -18, -18, 307, -654, 598, 596, 672, 597, 66,
+ 67, 186, 660, 730, 604, 669, -1, 8, -654, 606,
+ 607, -1, -1, -1, 66, 609, 89, -18, 141, 12,
+ 57, 665, -654, 52, 52, -654, 156, 605, -38, 697,
+ -654, -654, 331, 347, 168, 168, -654, -654, -654, 56,
+ -654, 672, 612, -52, -50, 4, 140, -654, -654, 309,
+ 387, 55, 127, 158, -654, 611, 358, -654, -654, -654,
+ 743, -654, 628, 374, -654, 626, 761, 430, -654, -654,
+ 383, -654, -654, 627, 464, 266, -654, 638, 492, -654,
+ -654, -654, -654, 636, 654, -18, -18, 600, 673, 666,
+ 675, 676, -654, 679, 438, -654, 667, 681, -654, 685,
+ 686, -654, -654, 799, 522, -654, -654, 689, -654, 687,
+ -654, 693, -654, -654, 694, 824, -654, 699, -654, 825,
+ 701, 67, 827, 702, 703, -654, 704, 779, -654, -654,
+ -654, -654, -654, 707, -654, 836, 710, 712, 786, 861,
+ -654, 734, 359, -654, 678, 66, -654, -654, 309, 735,
+ -654, 739, 732, -654, -654, -654, -654, 867, 740, -654,
+ -8, -654, 66, -654, -31, -654, 21, -654, 25, -654,
+ 54, -654, -654, -654, 741, 873, -654, -654, 744, -654,
+ 737, 745, -654, -654, -654, -654, -654, -654, -654, 748,
+ 769, -654, 771, -654, 788, -654, -654, 790, -654, -654,
+ -654, -654, -654, 784, -654, 792, 57, 919, -654, 794,
+ 868, 672, -654, 66, 66, 672, 796, 66, 672, 672,
+ 795, 798, -654, -6, 926, 90, 927, -49, 865, 802,
+ 13, -654, 803, 797, 870, -654, 66, 804, -31, 807,
+ 15, 254, 359, 52, -654, -654, 387, 805, 224, 697,
+ -654, -29, -654, -654, 387, 309, 151, -654, 159, -654,
+ 171, -654, 67, 808, -654, -654, -654, -31, 66, 66,
+ 66, 144, -654, 594, -654, 809, 66, -654, 810, 258,
+ 337, 811, 67, 528, 812, 813, 66, 937, 817, 814,
+ -654, -654, -654, 818, 939, -654, 947, -654, 289, 821,
+ -654, -654, 822, 85, 309, 950, -654, 951, 817, -654,
+ 826, -654, -654, 828, 160, -654, -654, -654, -654, 359,
+ 21, -654, 25, -654, 54, -654, 829, 953, 309, -654,
+ -654, -654, -654, 149, -654, -654, -654, -31, -654, -654,
+ -654, -654, -654, 830, 832, 833, -654, -654, 834, -654,
+ -654, -654, 309, 957, -654, 387, -654, 924, -654, 66,
+ -654, 835, -654, -654, -654, 409, 837, 419, -654, -654,
+ 963, 839, 838, 840, 15, 66, -654, -654, 841, 842,
+ 843, -654, 85, 954, 329, 845, 844, 160, -654, -654,
+ -654, -654, -654, 847, 914, 309, 66, 66, 66, -44,
+ -654, 846, 304, -654, 66, 975, -654, -654, -654, -654,
+ 850, 359, 852, 980, -654, 215, 817, -654, -654, -654,
+ 981, 359, -654, -654, 854, -654, -654, -654, 982, -654,
+ -654, -654, -654, -654, 800, -654, -654, 956, -654, 217,
+ 855, 419, -654, -654, 986, 857, 859, -654, 860, -654,
+ -654, 733, 864, -44, 862, 869, 863, -654, -654, 866,
+ -654, -654, 359, -654, 733, -654, 67, -654, -654, -654,
+ 871, -654, -654, -654, 872, -18, 68, 874, -654, -654,
+ 809, -18, 875, -654, -654, -654
};
/* YYPGOTO[NTERM-NUM]. */
-static const yytype_int16 yypgoto[] = {
- -654, -654, 994, -654, -654, -654, -654, -654, -654, 146, -654, -654,
- 815, -83, -290, 668, 848, 946, -390, -654, -654, -654, -654, -654,
- -654, -654, -654, -654, -654, -654, -654, -654, -654, -654, -654, 959,
- -654, -654, -654, 244, -654, -654, -654, -654, -654, -654, -654, -654,
- -654, -654, -654, -654, -654, -654, -654, -654, -654, -654, -654, 614,
- 849, -654, -654, -654, -654, 562, -654, -654, -654, 260, -654, -654,
- -654, -531, 253, -654, 338, 223, -654, -654, -654, -654, -654, 187,
- -654, -654, 880, -654, -654, -654, -654, -654, -654, -654, -654, -654,
- -654, -654, -654, -654, -654, -654, -654, -654, -654, -654, -654, -654,
- -654, -654, -654, -654, -654, -654, -654, -654, -654, 421, -653, 200,
- -654, -385, -492, -654, -654, -654, 369, 682, -168, -136, -312, 583,
- 150, -308, -386, -485, -418, -473, 602, -459, -132, -55, -654, 396,
- -654, -654, 610, -654, -654, 778, -135, 575, -392, -654, -654, -654,
- -654, -654, -124, -654
-};
-
-/* YYDEFGOTO[NTERM-NUM]. */
-static const yytype_int16 yydefgoto[] = {
- -1, 3, 4, 5, 6, 191, 81, 836, 862, 734, 860, 12, 134, 82, 338,
- 83, 84, 85, 86, 173, 87, 88, 636, 638, 640, 423, 424, 425, 426, 89,
- 409, 699, 90, 91, 389, 92, 93, 174, 627, 766, 767, 844, 831, 94, 525,
- 95, 96, 188, 97, 522, 98, 336, 99, 296, 402, 518, 100, 101, 102, 281,
- 272, 103, 801, 104, 842, 352, 500, 516, 679, 688, 105, 295, 690, 468, 758,
- 106, 210, 450, 107, 359, 229, 585, 729, 815, 108, 356, 219, 355, 579, 109,
- 110, 111, 112, 113, 114, 115, 116, 117, 118, 615, 119, 120, 121, 441, 122,
- 123, 124, 125, 126, 791, 823, 127, 128, 129, 130, 131, 234, 273, 748, 789,
- 790, 237, 487, 491, 730, 672, 492, 196, 278, 253, 212, 346, 259, 260, 477,
- 478, 230, 231, 220, 221, 315, 279, 697, 530, 531, 532, 317, 318, 319, 254,
- 376, 183, 291, 582, 333, 334, 335, 513, 266, 267
+static const yytype_int16 yypgoto[] =
+{
+ -654, -654, 994, -654, -654, -654, -654, -654, -654, 146,
+ -654, -654, 815, -83, -290, 668, 848, 946, -390, -654,
+ -654, -654, -654, -654, -654, -654, -654, -654, -654, -654,
+ -654, -654, -654, -654, -654, 959, -654, -654, -654, 244,
+ -654, -654, -654, -654, -654, -654, -654, -654, -654, -654,
+ -654, -654, -654, -654, -654, -654, -654, -654, -654, 614,
+ 849, -654, -654, -654, -654, 562, -654, -654, -654, 260,
+ -654, -654, -654, -531, 253, -654, 338, 223, -654, -654,
+ -654, -654, -654, 187, -654, -654, 880, -654, -654, -654,
+ -654, -654, -654, -654, -654, -654, -654, -654, -654, -654,
+ -654, -654, -654, -654, -654, -654, -654, -654, -654, -654,
+ -654, -654, -654, -654, -654, -654, -654, 421, -653, 200,
+ -654, -385, -492, -654, -654, -654, 369, 682, -168, -136,
+ -312, 583, 150, -308, -386, -485, -418, -473, 602, -459,
+ -132, -55, -654, 396, -654, -654, 610, -654, -654, 778,
+ -135, 575, -392, -654, -654, -654, -654, -654, -124, -654
};
-/* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If
- positive, shift that token. If negative, reduce the rule whose
- number is the opposite. If YYTABLE_NINF, syntax error. */
-static const yytype_int16 yytable[] = {
- 185, 211, 300, 197, 509, 182, 401, 238, 239, 611, 255, 261, 262, 265,
- 549, 517, 427, 520, 521, 529, 428, 527, 177, 283, 213, 284, 285, 286,
- 223, 275, 276, 277, 297, 177, 16, 761, 177, 305, 320, 303, 321, 202,
- 203, 263, 322, 323, 324, 551, 232, 439, 329, 202, 203, 270, 331, 472,
- 293, 472, 213, 657, 177, 213, 189, 813, 422, 641, 456, 498, 305, 459,
- 177, 514, 677, 858, 686, 639, 256, 202, 203, 538, 214, 540, 674, 9,
- 224, 644, 539, 637, 541, 756, 691, 202, 203, 287, 11, 814, 325, 288,
- 289, 257, 258, 193, 667, 282, 206, 644, 367, 368, 193, 370, 294, 235,
- 194, 195, 214, 207, 236, 214, 190, 194, 195, 132, 485, 306, 13, 207,
- 486, 859, 233, 316, 223, 332, 274, 271, 407, 542, 208, 209, 326, 7,
- 206, 499, 543, 827, 757, 515, 678, 223, 687, 670, 706, 327, 1, 2,
- 215, 328, 671, 193, 225, 8, 216, 472, 178, 60, 226, 327, 179, 180,
- 194, 195, 741, 193, 208, 209, 257, 258, 14, 179, 180, 440, 179, 180,
- 194, 195, 133, 519, 224, 519, 215, 178, 176, 215, 546, 178, 216, 193,
- 429, 216, 511, 178, 512, 654, 181, 224, 179, 180, 194, 195, 179, 180,
- 475, 476, 445, 181, 179, 180, 181, 217, 218, 771, 217, 218, 280, 15,
- 460, 461, 506, 462, 633, 770, 632, 135, 624, 712, 469, 470, 471, 693,
- 479, 529, 181, 769, 482, 523, 181, 488, 406, 489, 490, 764, 181, 765,
- 412, 413, 435, 414, 415, 416, 417, 418, 225, 510, 497, 136, 548, 137,
- 226, 503, 504, 505, 563, 544, 306, 430, 564, 565, 528, 225, 545, 448,
- 449, 774, 700, 226, 604, 436, 536, 227, 228, 701, 702, 519, 263, 138,
- 447, 550, 139, 703, 140, 454, 268, 269, 704, 458, 227, 228, 141, 202,
- 203, 705, 472, 308, 467, 689, 473, 142, 475, 476, 298, 580, 566, 567,
- 568, 287, 484, 202, 203, 288, 289, 588, 589, 143, 692, 287, 309, 569,
- 330, 288, 289, 397, 170, 310, 311, 312, 313, 314, 144, 524, 835, 570,
- 571, -15, 204, 205, 854, 312, 313, 314, 572, 573, 574, 575, 576, 145,
- 316, 146, 202, 203, 695, 696, 206, 147, 804, 148, 577, 149, 578, 150,
- 290, 151, 186, 264, 152, 310, 311, 312, 313, 314, 206, 737, 365, 366,
- 738, 310, 311, 312, 313, 314, 184, 207, 153, 154, 208, 209, 312, 313,
- 314, 155, 156, 768, 202, 203, 635, 157, 204, 205, 198, 199, 200, 201,
- 208, 209, 240, 241, 242, 243, 244, 158, 245, 206, 246, 247, 248, 249,
- 250, 817, 280, 159, 818, 192, 474, 596, 348, 310, 311, 312, 313, 314,
- 682, 160, 181, 786, 787, 788, 161, 162, 658, 163, 164, 165, 661, 208,
- 209, 664, 665, 475, 476, 533, 739, 301, 626, 252, 167, 206, 302, 168,
- 411, 169, 175, 307, 709, 710, 711, 534, 207, 187, 684, 634, 304, 310,
- 311, 312, 313, 314, 553, 340, 337, 202, 203, 342, 341, 822, 343, 344,
- 345, 208, 209, 348, 347, 353, 350, 829, 348, 349, 351, 708, 310, 311,
- 312, 313, 314, 732, 310, 311, 312, 313, 314, 310, 311, 312, 313, 314,
- 310, 311, 312, 313, 314, 354, 659, 660, 357, -201, 663, 310, 311, 312,
- 313, 314, 358, 360, 369, 361, 852, 240, 241, 242, 243, 244, 362, 245,
- 206, 246, 247, 248, 249, 250, 559, 202, 203, 371, 363, 251, 310, 311,
- 312, 313, 314, 364, 372, 467, 202, 203, 373, 375, 377, 775, 378, 797,
- 379, 380, 381, 382, 208, 209, 310, 784, 312, 313, 314, 383, 562, 735,
- 252, 384, 385, 386, 387, 388, 810, 811, 812, 745, 390, 391, 392, 310,
- 311, 312, 313, 314, 393, 394, 395, 240, 241, 242, 243, 244, 584, 245,
- 206, 246, 247, 248, 249, 250, 240, 241, 242, 243, 244, 251, 245, 206,
- 246, 247, 248, 249, 250, 310, 311, 312, 313, 314, 251, 713, 714, 396,
- 602, 405, 398, 399, 208, 209, 742, 400, 715, 716, 717, 403, 404, 408,
- 252, 419, 438, 208, 209, 310, 311, 312, 313, 314, 410, 420, 782, 252,
- 421, 431, 432, 718, 433, 719, 720, 721, 722, 723, 724, 725, 726, 727,
- 728, 442, 443, 444, 446, 451, 452, 310, 311, 312, 313, 314, 453, 310,
- 311, 312, 313, 314, 455, 857, 457, 463, 464, 465, 466, 864, 480, 493,
- 483, 819, 481, 202, 203, 193, 494, 495, 496, 501, 502, 16, 507, 526,
- -159, 537, 194, 195, 554, 17, 845, 552, 18, 19, 20, 21, 22, 23,
- 24, 25, 26, 555, 557, 853, 27, 28, 29, 558, 561, 586, 30, 31,
- 32, 33, 34, 35, 36, 37, 38, 583, 39, 40, 41, 42, 43, 44,
- 45, 587, 46, 240, 241, 242, 243, 244, 590, 245, 206, 246, 247, 248,
- 249, 250, 592, 47, 597, 601, 591, 251, 593, 594, 48, 49, 595, 50,
- 598, 51, 52, 53, 599, 600, 54, 55, 603, 56, 604, 57, 605, 606,
- 208, 209, 607, 609, 608, 612, 610, 613, 614, 616, 252, 617, 618, 62,
- 619, 620, 58, 621, 59, 63, 64, 65, 66, 67, 68, 69, 70, 71,
- 72, 73, 74, 75, 76, 77, 78, 79, 80, 622, 596, 623, 630, 628,
- 60, 625, 629, 631, 642, 256, 61, 62, 643, 645, 644, 646, 647, 63,
- 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77,
- 78, 79, 80, 171, 64, 648, 66, 649, 68, 63, 70, 65, 72, 67,
- 74, 69, 76, 71, 78, 73, 80, 75, 652, 77, 650, 79, 651, 653,
- 655, 656, 467, 662, 666, 667, 669, 673, 675, 676, 674, 683, 680, 681,
- 685, 707, 733, 746, 694, 751, 736, 740, 743, 744, 747, 750, 749, 752,
- 754, 755, 759, 760, 781, 762, 773, 763, 780, 803, 776, 772, 777, 778,
- 779, 792, 785, 783, 793, 795, 794, 809, 800, 798, 799, 805, 808, 820,
- 816, 821, 806, 824, 825, 828, 830, 832, 834, 837, 839, 840, 833, 841,
- 843, 846, 848, 850, 849, 10, 851, 172, 855, 856, 434, 861, 863, 339,
- 166, 865, 508, 807, 560, 292, 796, 802, 753, 299, 826, 222, 847, 838,
- 731, 437, 668, 698, 556, 374, 0, 535, 581, 0, 0, 547
+/* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
+ positive, shift that token. If negative, reduce the rule which
+ number is the opposite. If zero, do what YYDEFACT says.
+ If YYTABLE_NINF, syntax error. */
+#define YYTABLE_NINF -202
+static const yytype_int16 yytable[] =
+{
+ 185, 211, 300, 197, 509, 182, 401, 238, 239, 611,
+ 255, 261, 262, 265, 549, 517, 427, 520, 521, 529,
+ 428, 527, 177, 283, 213, 284, 285, 286, 223, 275,
+ 276, 277, 297, 177, 16, 761, 177, 305, 320, 303,
+ 321, 202, 203, 263, 322, 323, 324, 551, 232, 439,
+ 329, 202, 203, 270, 331, 472, 293, 472, 213, 657,
+ 177, 213, 189, 813, 422, 641, 456, 498, 305, 459,
+ 177, 514, 677, 858, 686, 639, 256, 202, 203, 538,
+ 214, 540, 674, 9, 224, 644, 539, 637, 541, 756,
+ 691, 202, 203, 287, 11, 814, 325, 288, 289, 257,
+ 258, 193, 667, 282, 206, 644, 367, 368, 193, 370,
+ 294, 235, 194, 195, 214, 207, 236, 214, 190, 194,
+ 195, 132, 485, 306, 13, 207, 486, 859, 233, 316,
+ 223, 332, 274, 271, 407, 542, 208, 209, 326, 7,
+ 206, 499, 543, 827, 757, 515, 678, 223, 687, 670,
+ 706, 327, 1, 2, 215, 328, 671, 193, 225, 8,
+ 216, 472, 178, 60, 226, 327, 179, 180, 194, 195,
+ 741, 193, 208, 209, 257, 258, 14, 179, 180, 440,
+ 179, 180, 194, 195, 133, 519, 224, 519, 215, 178,
+ 176, 215, 546, 178, 216, 193, 429, 216, 511, 178,
+ 512, 654, 181, 224, 179, 180, 194, 195, 179, 180,
+ 475, 476, 445, 181, 179, 180, 181, 217, 218, 771,
+ 217, 218, 280, 15, 460, 461, 506, 462, 633, 770,
+ 632, 135, 624, 712, 469, 470, 471, 693, 479, 529,
+ 181, 769, 482, 523, 181, 488, 406, 489, 490, 764,
+ 181, 765, 412, 413, 435, 414, 415, 416, 417, 418,
+ 225, 510, 497, 136, 548, 137, 226, 503, 504, 505,
+ 563, 544, 306, 430, 564, 565, 528, 225, 545, 448,
+ 449, 774, 700, 226, 604, 436, 536, 227, 228, 701,
+ 702, 519, 263, 138, 447, 550, 139, 703, 140, 454,
+ 268, 269, 704, 458, 227, 228, 141, 202, 203, 705,
+ 472, 308, 467, 689, 473, 142, 475, 476, 298, 580,
+ 566, 567, 568, 287, 484, 202, 203, 288, 289, 588,
+ 589, 143, 692, 287, 309, 569, 330, 288, 289, 397,
+ 170, 310, 311, 312, 313, 314, 144, 524, 835, 570,
+ 571, -15, 204, 205, 854, 312, 313, 314, 572, 573,
+ 574, 575, 576, 145, 316, 146, 202, 203, 695, 696,
+ 206, 147, 804, 148, 577, 149, 578, 150, 290, 151,
+ 186, 264, 152, 310, 311, 312, 313, 314, 206, 737,
+ 365, 366, 738, 310, 311, 312, 313, 314, 184, 207,
+ 153, 154, 208, 209, 312, 313, 314, 155, 156, 768,
+ 202, 203, 635, 157, 204, 205, 198, 199, 200, 201,
+ 208, 209, 240, 241, 242, 243, 244, 158, 245, 206,
+ 246, 247, 248, 249, 250, 817, 280, 159, 818, 192,
+ 474, 596, 348, 310, 311, 312, 313, 314, 682, 160,
+ 181, 786, 787, 788, 161, 162, 658, 163, 164, 165,
+ 661, 208, 209, 664, 665, 475, 476, 533, 739, 301,
+ 626, 252, 167, 206, 302, 168, 411, 169, 175, 307,
+ 709, 710, 711, 534, 207, 187, 684, 634, 304, 310,
+ 311, 312, 313, 314, 553, 340, 337, 202, 203, 342,
+ 341, 822, 343, 344, 345, 208, 209, 348, 347, 353,
+ 350, 829, 348, 349, 351, 708, 310, 311, 312, 313,
+ 314, 732, 310, 311, 312, 313, 314, 310, 311, 312,
+ 313, 314, 310, 311, 312, 313, 314, 354, 659, 660,
+ 357, -201, 663, 310, 311, 312, 313, 314, 358, 360,
+ 369, 361, 852, 240, 241, 242, 243, 244, 362, 245,
+ 206, 246, 247, 248, 249, 250, 559, 202, 203, 371,
+ 363, 251, 310, 311, 312, 313, 314, 364, 372, 467,
+ 202, 203, 373, 375, 377, 775, 378, 797, 379, 380,
+ 381, 382, 208, 209, 310, 784, 312, 313, 314, 383,
+ 562, 735, 252, 384, 385, 386, 387, 388, 810, 811,
+ 812, 745, 390, 391, 392, 310, 311, 312, 313, 314,
+ 393, 394, 395, 240, 241, 242, 243, 244, 584, 245,
+ 206, 246, 247, 248, 249, 250, 240, 241, 242, 243,
+ 244, 251, 245, 206, 246, 247, 248, 249, 250, 310,
+ 311, 312, 313, 314, 251, 713, 714, 396, 602, 405,
+ 398, 399, 208, 209, 742, 400, 715, 716, 717, 403,
+ 404, 408, 252, 419, 438, 208, 209, 310, 311, 312,
+ 313, 314, 410, 420, 782, 252, 421, 431, 432, 718,
+ 433, 719, 720, 721, 722, 723, 724, 725, 726, 727,
+ 728, 442, 443, 444, 446, 451, 452, 310, 311, 312,
+ 313, 314, 453, 310, 311, 312, 313, 314, 455, 857,
+ 457, 463, 464, 465, 466, 864, 480, 493, 483, 819,
+ 481, 202, 203, 193, 494, 495, 496, 501, 502, 16,
+ 507, 526, -159, 537, 194, 195, 554, 17, 845, 552,
+ 18, 19, 20, 21, 22, 23, 24, 25, 26, 555,
+ 557, 853, 27, 28, 29, 558, 561, 586, 30, 31,
+ 32, 33, 34, 35, 36, 37, 38, 583, 39, 40,
+ 41, 42, 43, 44, 45, 587, 46, 240, 241, 242,
+ 243, 244, 590, 245, 206, 246, 247, 248, 249, 250,
+ 592, 47, 597, 601, 591, 251, 593, 594, 48, 49,
+ 595, 50, 598, 51, 52, 53, 599, 600, 54, 55,
+ 603, 56, 604, 57, 605, 606, 208, 209, 607, 609,
+ 608, 612, 610, 613, 614, 616, 252, 617, 618, 62,
+ 619, 620, 58, 621, 59, 63, 64, 65, 66, 67,
+ 68, 69, 70, 71, 72, 73, 74, 75, 76, 77,
+ 78, 79, 80, 622, 596, 623, 630, 628, 60, 625,
+ 629, 631, 642, 256, 61, 62, 643, 645, 644, 646,
+ 647, 63, 64, 65, 66, 67, 68, 69, 70, 71,
+ 72, 73, 74, 75, 76, 77, 78, 79, 80, 171,
+ 64, 648, 66, 649, 68, 63, 70, 65, 72, 67,
+ 74, 69, 76, 71, 78, 73, 80, 75, 652, 77,
+ 650, 79, 651, 653, 655, 656, 467, 662, 666, 667,
+ 669, 673, 675, 676, 674, 683, 680, 681, 685, 707,
+ 733, 746, 694, 751, 736, 740, 743, 744, 747, 750,
+ 749, 752, 754, 755, 759, 760, 781, 762, 773, 763,
+ 780, 803, 776, 772, 777, 778, 779, 792, 785, 783,
+ 793, 795, 794, 809, 800, 798, 799, 805, 808, 820,
+ 816, 821, 806, 824, 825, 828, 830, 832, 834, 837,
+ 839, 840, 833, 841, 843, 846, 848, 850, 849, 10,
+ 851, 172, 855, 856, 434, 861, 863, 339, 166, 865,
+ 508, 807, 560, 292, 796, 802, 753, 299, 826, 222,
+ 847, 838, 731, 437, 668, 698, 556, 374, 0, 535,
+ 581, 0, 0, 547
};
-static const yytype_int16 yycheck[] = {
- 83, 137, 170, 135, 396, 60, 296, 143, 144, 501, 145, 147, 148, 149, 432,
- 400, 328, 403, 404, 409, 328, 59, 4, 159, 3, 160, 161, 162, 3, 153,
- 154, 155, 167, 4, 6, 688, 4, 8, 20, 175, 22, 59, 60, 44, 26,
- 27, 28, 433, 59, 3, 186, 59, 60, 59, 186, 3, 5, 3, 3, 590,
- 4, 3, 3, 107, 4, 550, 356, 59, 8, 359, 4, 59, 59, 5, 59,
- 548, 133, 59, 60, 131, 59, 131, 131, 0, 59, 134, 138, 546, 138, 4,
- 621, 59, 60, 4, 70, 139, 78, 8, 9, 156, 157, 139, 131, 158, 122,
- 134, 242, 243, 139, 245, 59, 54, 150, 151, 59, 133, 59, 59, 59, 150,
- 151, 131, 55, 178, 139, 133, 59, 59, 139, 184, 3, 186, 133, 139, 302,
- 131, 154, 155, 120, 132, 122, 133, 138, 796, 59, 133, 133, 3, 133, 59,
- 642, 133, 15, 16, 133, 137, 66, 139, 133, 132, 139, 3, 133, 135, 139,
- 133, 148, 149, 150, 151, 662, 139, 154, 155, 156, 157, 139, 148, 149, 133,
- 148, 149, 150, 151, 71, 133, 59, 133, 133, 133, 141, 133, 137, 133, 139,
- 139, 328, 139, 57, 133, 59, 586, 184, 59, 148, 149, 150, 151, 148, 149,
- 158, 159, 347, 184, 148, 149, 184, 162, 163, 704, 162, 163, 133, 132, 360,
- 361, 394, 362, 540, 702, 538, 132, 522, 651, 369, 371, 372, 623, 373, 629,
- 184, 700, 377, 87, 184, 59, 301, 61, 62, 89, 184, 91, 307, 308, 337,
- 310, 311, 312, 313, 314, 133, 397, 386, 132, 137, 132, 139, 391, 392, 393,
- 4, 131, 327, 328, 8, 9, 408, 133, 138, 64, 65, 132, 131, 139, 135,
- 340, 421, 160, 161, 138, 131, 133, 44, 132, 349, 137, 132, 138, 132, 354,
- 150, 151, 131, 358, 160, 161, 132, 59, 60, 138, 3, 113, 58, 59, 7,
- 132, 158, 159, 168, 455, 54, 55, 56, 4, 379, 59, 60, 8, 9, 465,
- 466, 132, 622, 4, 136, 69, 186, 8, 9, 131, 135, 185, 186, 187, 188,
- 189, 132, 191, 131, 83, 84, 134, 63, 64, 846, 187, 188, 189, 92, 93,
- 94, 95, 96, 132, 419, 132, 59, 60, 144, 145, 122, 132, 764, 132, 108,
- 132, 110, 132, 59, 132, 190, 133, 132, 185, 186, 187, 188, 189, 122, 131,
- 240, 241, 134, 185, 186, 187, 188, 189, 133, 133, 132, 132, 154, 155, 187,
- 188, 189, 132, 132, 699, 59, 60, 544, 132, 63, 64, 10, 11, 12, 13,
- 154, 155, 115, 116, 117, 118, 119, 132, 121, 122, 123, 124, 125, 126, 127,
- 131, 133, 132, 134, 131, 133, 3, 4, 185, 186, 187, 188, 189, 616, 132,
- 184, 32, 33, 34, 132, 132, 591, 132, 132, 132, 595, 154, 155, 598, 599,
- 158, 159, 136, 131, 190, 525, 164, 132, 122, 135, 132, 134, 132, 132, 135,
- 648, 649, 650, 136, 133, 132, 618, 542, 133, 185, 186, 187, 188, 189, 136,
- 135, 137, 59, 60, 131, 191, 791, 131, 131, 130, 154, 155, 4, 133, 3,
- 131, 801, 4, 135, 131, 647, 185, 186, 187, 188, 189, 653, 185, 186, 187,
- 188, 189, 185, 186, 187, 188, 189, 185, 186, 187, 188, 189, 135, 593, 594,
- 3, 137, 597, 185, 186, 187, 188, 189, 135, 131, 133, 131, 842, 115, 116,
- 117, 118, 119, 131, 121, 122, 123, 124, 125, 126, 127, 136, 59, 60, 133,
- 131, 133, 185, 186, 187, 188, 189, 131, 133, 58, 59, 60, 133, 133, 193,
- 717, 4, 755, 135, 131, 131, 131, 154, 155, 185, 186, 187, 188, 189, 133,
- 136, 656, 164, 4, 131, 131, 131, 6, 776, 777, 778, 666, 4, 131, 131,
- 185, 186, 187, 188, 189, 131, 131, 4, 115, 116, 117, 118, 119, 136, 121,
- 122, 123, 124, 125, 126, 127, 115, 116, 117, 118, 119, 133, 121, 122, 123,
- 124, 125, 126, 127, 185, 186, 187, 188, 189, 133, 61, 62, 131, 136, 136,
- 131, 131, 154, 155, 136, 131, 72, 73, 74, 131, 131, 131, 164, 131, 3,
- 154, 155, 185, 186, 187, 188, 189, 134, 134, 739, 164, 132, 132, 132, 95,
- 132, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 3, 131, 136, 131,
- 5, 140, 185, 186, 187, 188, 189, 131, 185, 186, 187, 188, 189, 131, 855,
- 131, 58, 58, 131, 131, 861, 128, 67, 131, 784, 134, 59, 60, 139, 4,
- 131, 67, 131, 131, 6, 131, 136, 77, 131, 150, 151, 3, 14, 831, 138,
- 17, 18, 19, 20, 21, 22, 23, 24, 25, 131, 134, 844, 29, 30, 31,
- 4, 139, 131, 35, 36, 37, 38, 39, 40, 41, 42, 43, 139, 45, 46,
- 47, 48, 49, 50, 51, 131, 53, 115, 116, 117, 118, 119, 192, 121, 122,
- 123, 124, 125, 126, 127, 134, 68, 135, 4, 131, 133, 131, 131, 75, 76,
- 131, 78, 131, 80, 81, 82, 131, 131, 85, 86, 131, 88, 135, 90, 131,
- 131, 154, 155, 4, 4, 131, 4, 131, 131, 131, 131, 164, 58, 131, 142,
- 4, 131, 109, 131, 111, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157,
- 158, 159, 160, 161, 162, 163, 164, 165, 77, 3, 131, 134, 132, 135, 191,
- 131, 4, 131, 133, 141, 142, 3, 140, 134, 134, 132, 148, 149, 150, 151,
- 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 142,
- 149, 132, 151, 132, 153, 148, 155, 150, 157, 152, 159, 154, 161, 156, 163,
- 158, 165, 160, 134, 162, 132, 164, 132, 131, 5, 131, 58, 131, 133, 131,
- 4, 4, 67, 131, 131, 131, 139, 67, 131, 131, 131, 4, 137, 4, 134,
- 134, 134, 134, 131, 131, 136, 4, 131, 131, 4, 4, 32, 131, 5, 131,
- 3, 7, 132, 134, 132, 132, 132, 4, 131, 134, 131, 131, 134, 59, 131,
- 134, 134, 132, 131, 4, 134, 131, 138, 131, 4, 4, 132, 5, 32, 134,
- 4, 134, 192, 134, 134, 131, 134, 134, 129, 5, 134, 55, 131, 131, 336,
- 131, 860, 192, 49, 134, 396, 767, 450, 164, 754, 762, 678, 169, 795, 139,
- 833, 821, 653, 341, 603, 629, 443, 249, -1, 419, 455, -1, -1, 431
+static const yytype_int16 yycheck[] =
+{
+ 83, 137, 170, 135, 396, 60, 296, 143, 144, 501,
+ 145, 147, 148, 149, 432, 400, 328, 403, 404, 409,
+ 328, 59, 4, 159, 3, 160, 161, 162, 3, 153,
+ 154, 155, 167, 4, 6, 688, 4, 8, 20, 175,
+ 22, 59, 60, 44, 26, 27, 28, 433, 59, 3,
+ 186, 59, 60, 59, 186, 3, 5, 3, 3, 590,
+ 4, 3, 3, 107, 4, 550, 356, 59, 8, 359,
+ 4, 59, 59, 5, 59, 548, 133, 59, 60, 131,
+ 59, 131, 131, 0, 59, 134, 138, 546, 138, 4,
+ 621, 59, 60, 4, 70, 139, 78, 8, 9, 156,
+ 157, 139, 131, 158, 122, 134, 242, 243, 139, 245,
+ 59, 54, 150, 151, 59, 133, 59, 59, 59, 150,
+ 151, 131, 55, 178, 139, 133, 59, 59, 139, 184,
+ 3, 186, 133, 139, 302, 131, 154, 155, 120, 132,
+ 122, 133, 138, 796, 59, 133, 133, 3, 133, 59,
+ 642, 133, 15, 16, 133, 137, 66, 139, 133, 132,
+ 139, 3, 133, 135, 139, 133, 148, 149, 150, 151,
+ 662, 139, 154, 155, 156, 157, 139, 148, 149, 133,
+ 148, 149, 150, 151, 71, 133, 59, 133, 133, 133,
+ 141, 133, 137, 133, 139, 139, 328, 139, 57, 133,
+ 59, 586, 184, 59, 148, 149, 150, 151, 148, 149,
+ 158, 159, 347, 184, 148, 149, 184, 162, 163, 704,
+ 162, 163, 133, 132, 360, 361, 394, 362, 540, 702,
+ 538, 132, 522, 651, 369, 371, 372, 623, 373, 629,
+ 184, 700, 377, 87, 184, 59, 301, 61, 62, 89,
+ 184, 91, 307, 308, 337, 310, 311, 312, 313, 314,
+ 133, 397, 386, 132, 137, 132, 139, 391, 392, 393,
+ 4, 131, 327, 328, 8, 9, 408, 133, 138, 64,
+ 65, 132, 131, 139, 135, 340, 421, 160, 161, 138,
+ 131, 133, 44, 132, 349, 137, 132, 138, 132, 354,
+ 150, 151, 131, 358, 160, 161, 132, 59, 60, 138,
+ 3, 113, 58, 59, 7, 132, 158, 159, 168, 455,
+ 54, 55, 56, 4, 379, 59, 60, 8, 9, 465,
+ 466, 132, 622, 4, 136, 69, 186, 8, 9, 131,
+ 135, 185, 186, 187, 188, 189, 132, 191, 131, 83,
+ 84, 134, 63, 64, 846, 187, 188, 189, 92, 93,
+ 94, 95, 96, 132, 419, 132, 59, 60, 144, 145,
+ 122, 132, 764, 132, 108, 132, 110, 132, 59, 132,
+ 190, 133, 132, 185, 186, 187, 188, 189, 122, 131,
+ 240, 241, 134, 185, 186, 187, 188, 189, 133, 133,
+ 132, 132, 154, 155, 187, 188, 189, 132, 132, 699,
+ 59, 60, 544, 132, 63, 64, 10, 11, 12, 13,
+ 154, 155, 115, 116, 117, 118, 119, 132, 121, 122,
+ 123, 124, 125, 126, 127, 131, 133, 132, 134, 131,
+ 133, 3, 4, 185, 186, 187, 188, 189, 616, 132,
+ 184, 32, 33, 34, 132, 132, 591, 132, 132, 132,
+ 595, 154, 155, 598, 599, 158, 159, 136, 131, 190,
+ 525, 164, 132, 122, 135, 132, 134, 132, 132, 135,
+ 648, 649, 650, 136, 133, 132, 618, 542, 133, 185,
+ 186, 187, 188, 189, 136, 135, 137, 59, 60, 131,
+ 191, 791, 131, 131, 130, 154, 155, 4, 133, 3,
+ 131, 801, 4, 135, 131, 647, 185, 186, 187, 188,
+ 189, 653, 185, 186, 187, 188, 189, 185, 186, 187,
+ 188, 189, 185, 186, 187, 188, 189, 135, 593, 594,
+ 3, 137, 597, 185, 186, 187, 188, 189, 135, 131,
+ 133, 131, 842, 115, 116, 117, 118, 119, 131, 121,
+ 122, 123, 124, 125, 126, 127, 136, 59, 60, 133,
+ 131, 133, 185, 186, 187, 188, 189, 131, 133, 58,
+ 59, 60, 133, 133, 193, 717, 4, 755, 135, 131,
+ 131, 131, 154, 155, 185, 186, 187, 188, 189, 133,
+ 136, 656, 164, 4, 131, 131, 131, 6, 776, 777,
+ 778, 666, 4, 131, 131, 185, 186, 187, 188, 189,
+ 131, 131, 4, 115, 116, 117, 118, 119, 136, 121,
+ 122, 123, 124, 125, 126, 127, 115, 116, 117, 118,
+ 119, 133, 121, 122, 123, 124, 125, 126, 127, 185,
+ 186, 187, 188, 189, 133, 61, 62, 131, 136, 136,
+ 131, 131, 154, 155, 136, 131, 72, 73, 74, 131,
+ 131, 131, 164, 131, 3, 154, 155, 185, 186, 187,
+ 188, 189, 134, 134, 739, 164, 132, 132, 132, 95,
+ 132, 97, 98, 99, 100, 101, 102, 103, 104, 105,
+ 106, 3, 131, 136, 131, 5, 140, 185, 186, 187,
+ 188, 189, 131, 185, 186, 187, 188, 189, 131, 855,
+ 131, 58, 58, 131, 131, 861, 128, 67, 131, 784,
+ 134, 59, 60, 139, 4, 131, 67, 131, 131, 6,
+ 131, 136, 77, 131, 150, 151, 3, 14, 831, 138,
+ 17, 18, 19, 20, 21, 22, 23, 24, 25, 131,
+ 134, 844, 29, 30, 31, 4, 139, 131, 35, 36,
+ 37, 38, 39, 40, 41, 42, 43, 139, 45, 46,
+ 47, 48, 49, 50, 51, 131, 53, 115, 116, 117,
+ 118, 119, 192, 121, 122, 123, 124, 125, 126, 127,
+ 134, 68, 135, 4, 131, 133, 131, 131, 75, 76,
+ 131, 78, 131, 80, 81, 82, 131, 131, 85, 86,
+ 131, 88, 135, 90, 131, 131, 154, 155, 4, 4,
+ 131, 4, 131, 131, 131, 131, 164, 58, 131, 142,
+ 4, 131, 109, 131, 111, 148, 149, 150, 151, 152,
+ 153, 154, 155, 156, 157, 158, 159, 160, 161, 162,
+ 163, 164, 165, 77, 3, 131, 134, 132, 135, 191,
+ 131, 4, 131, 133, 141, 142, 3, 140, 134, 134,
+ 132, 148, 149, 150, 151, 152, 153, 154, 155, 156,
+ 157, 158, 159, 160, 161, 162, 163, 164, 165, 142,
+ 149, 132, 151, 132, 153, 148, 155, 150, 157, 152,
+ 159, 154, 161, 156, 163, 158, 165, 160, 134, 162,
+ 132, 164, 132, 131, 5, 131, 58, 131, 133, 131,
+ 4, 4, 67, 131, 131, 131, 139, 67, 131, 131,
+ 131, 4, 137, 4, 134, 134, 134, 134, 131, 131,
+ 136, 4, 131, 131, 4, 4, 32, 131, 5, 131,
+ 3, 7, 132, 134, 132, 132, 132, 4, 131, 134,
+ 131, 131, 134, 59, 131, 134, 134, 132, 131, 4,
+ 134, 131, 138, 131, 4, 4, 132, 5, 32, 134,
+ 4, 134, 192, 134, 134, 131, 134, 134, 129, 5,
+ 134, 55, 131, 131, 336, 131, 860, 192, 49, 134,
+ 396, 767, 450, 164, 754, 762, 678, 169, 795, 139,
+ 833, 821, 653, 341, 603, 629, 443, 249, -1, 419,
+ 455, -1, -1, 431
};
/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
symbol of state STATE-NUM. */
-static const yytype_uint16 yystos[] = {
- 0, 15, 16, 195, 196, 197, 198, 132, 132, 0, 196, 70, 205, 139, 139,
- 132, 6, 14, 17, 18, 19, 20, 21, 22, 23, 24, 25, 29, 30, 31,
- 35, 36, 37, 38, 39, 40, 41, 42, 43, 45, 46, 47, 48, 49, 50,
- 51, 53, 68, 75, 76, 78, 80, 81, 82, 85, 86, 88, 90, 109, 111,
- 135, 141, 142, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159,
- 160, 161, 162, 163, 164, 165, 200, 207, 209, 210, 211, 212, 214, 215, 223,
- 226, 227, 229, 230, 237, 239, 240, 242, 244, 246, 250, 251, 252, 255, 257,
- 264, 269, 272, 278, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 294,
- 295, 296, 298, 299, 300, 301, 302, 305, 306, 307, 308, 309, 131, 71, 206,
- 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132,
- 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132,
- 132, 229, 132, 132, 132, 135, 142, 211, 213, 231, 132, 141, 4, 133, 148,
- 149, 184, 335, 345, 133, 207, 190, 132, 241, 3, 59, 199, 131, 139, 150,
- 151, 321, 334, 10, 11, 12, 13, 59, 60, 63, 64, 122, 133, 154, 155,
- 270, 323, 324, 3, 59, 133, 139, 162, 163, 280, 332, 333, 280, 3, 59,
- 133, 139, 160, 161, 274, 330, 331, 59, 139, 310, 54, 59, 315, 323, 323,
- 115, 116, 117, 118, 119, 121, 123, 124, 125, 126, 127, 133, 164, 323, 343,
- 344, 133, 156, 157, 326, 327, 323, 323, 44, 133, 323, 352, 353, 326, 326,
- 59, 139, 254, 311, 133, 352, 352, 352, 322, 335, 133, 253, 335, 323, 344,
- 344, 344, 4, 8, 9, 59, 346, 254, 5, 59, 265, 247, 344, 326, 210,
- 322, 190, 135, 323, 133, 8, 335, 135, 113, 136, 185, 186, 187, 188, 189,
- 334, 335, 340, 341, 342, 20, 22, 26, 27, 28, 78, 120, 133, 137, 323,
- 326, 334, 335, 348, 349, 350, 245, 137, 208, 206, 135, 191, 131, 131, 131,
- 130, 325, 133, 4, 135, 131, 131, 259, 3, 135, 281, 279, 3, 135, 273,
- 131, 131, 131, 131, 131, 326, 326, 323, 323, 133, 323, 133, 133, 133, 343,
- 133, 344, 193, 4, 135, 131, 131, 131, 133, 4, 131, 131, 131, 6, 228,
- 4, 131, 131, 131, 131, 4, 131, 131, 131, 131, 131, 208, 248, 131, 131,
- 136, 335, 322, 131, 224, 134, 134, 335, 335, 335, 335, 335, 335, 335, 131,
- 134, 132, 4, 219, 220, 221, 222, 324, 327, 334, 335, 132, 132, 132, 209,
- 207, 335, 321, 3, 3, 133, 297, 3, 131, 136, 344, 131, 335, 64, 65,
- 271, 5, 140, 131, 335, 131, 208, 131, 335, 208, 323, 323, 344, 58, 58,
- 131, 131, 58, 267, 344, 323, 323, 3, 7, 133, 158, 159, 328, 329, 344,
- 128, 134, 344, 131, 335, 55, 59, 316, 59, 61, 62, 317, 320, 67, 4,
- 131, 67, 352, 59, 133, 260, 131, 131, 352, 352, 352, 322, 131, 253, 346,
- 323, 57, 59, 351, 59, 133, 261, 315, 249, 133, 328, 328, 243, 87, 191,
- 238, 136, 59, 334, 212, 337, 338, 339, 136, 136, 340, 344, 131, 131, 138,
- 131, 138, 131, 138, 131, 138, 137, 332, 137, 330, 137, 328, 138, 136, 3,
- 131, 325, 134, 4, 136, 259, 139, 136, 4, 8, 9, 54, 55, 56, 69,
- 83, 84, 92, 93, 94, 95, 96, 108, 110, 282, 323, 345, 347, 139, 136,
- 275, 131, 131, 323, 323, 192, 131, 134, 131, 131, 131, 3, 135, 131, 131,
- 131, 4, 136, 131, 135, 131, 131, 4, 131, 4, 131, 316, 4, 131, 131,
- 293, 131, 58, 131, 4, 131, 131, 77, 131, 208, 191, 335, 232, 132, 131,
- 134, 4, 327, 324, 335, 334, 216, 333, 217, 331, 218, 329, 131, 3, 134,
- 140, 134, 132, 132, 132, 132, 132, 134, 131, 315, 5, 131, 267, 344, 335,
- 335, 344, 131, 335, 344, 344, 133, 131, 311, 4, 59, 66, 319, 4, 131,
- 67, 131, 59, 133, 262, 139, 67, 322, 131, 334, 131, 59, 133, 263, 59,
- 266, 267, 208, 328, 137, 144, 145, 336, 337, 225, 131, 138, 131, 138, 131,
- 138, 316, 131, 334, 322, 322, 322, 330, 61, 62, 72, 73, 74, 95, 97,
- 98, 99, 100, 101, 102, 103, 104, 105, 106, 276, 318, 320, 334, 131, 203,
- 335, 134, 131, 134, 131, 134, 316, 136, 134, 134, 335, 4, 131, 312, 136,
- 131, 4, 4, 270, 131, 131, 4, 59, 268, 4, 4, 312, 131, 131, 89,
- 91, 233, 234, 208, 333, 331, 329, 134, 5, 132, 334, 132, 132, 132, 132,
- 3, 32, 335, 134, 186, 131, 32, 33, 34, 313, 314, 303, 4, 131, 134,
- 131, 263, 322, 134, 134, 131, 256, 268, 7, 346, 132, 138, 233, 131, 59,
- 322, 322, 322, 107, 139, 277, 134, 131, 134, 335, 4, 131, 208, 304, 131,
- 4, 271, 312, 4, 208, 132, 236, 5, 192, 32, 131, 201, 134, 313, 4,
- 134, 134, 258, 134, 235, 207, 131, 277, 134, 129, 134, 134, 208, 207, 316,
- 131, 131, 323, 5, 59, 204, 131, 202, 203, 323, 134
-};
-
-/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
-static const yytype_uint16 yyr1[] = {
- 0, 194, 195, 195, 196, 196, 197, 198, 198, 199, 199, 200, 200, 200, 200,
- 201, 201, 202, 202, 203, 203, 204, 204, 205, 205, 206, 206, 207, 207, 208,
- 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209,
- 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209,
- 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 210,
- 210, 210, 210, 210, 210, 210, 210, 210, 211, 211, 211, 211, 211, 211, 211,
- 211, 211, 212, 212, 212, 213, 213, 214, 215, 215, 215, 215, 215, 215, 215,
- 215, 215, 215, 215, 215, 215, 215, 215, 216, 216, 217, 217, 218, 218, 219,
- 219, 220, 220, 221, 221, 222, 222, 224, 225, 223, 226, 227, 228, 228, 229,
- 229, 229, 231, 232, 230, 233, 233, 235, 234, 236, 234, 237, 238, 238, 239,
- 241, 240, 243, 242, 245, 244, 247, 246, 248, 249, 248, 250, 251, 251, 251,
- 252, 252, 253, 254, 256, 255, 258, 257, 259, 259, 260, 260, 261, 261, 262,
- 262, 263, 263, 264, 264, 265, 265, 266, 266, 267, 267, 268, 268, 269, 269,
- 269, 270, 270, 271, 271, 272, 273, 272, 274, 275, 275, 276, 276, 276, 276,
- 276, 276, 276, 276, 276, 276, 276, 276, 276, 276, 276, 276, 277, 277, 277,
- 278, 279, 278, 280, 281, 281, 282, 282, 282, 282, 282, 282, 282, 282, 282,
- 282, 282, 282, 282, 282, 282, 283, 284, 285, 285, 286, 286, 287, 288, 289,
- 290, 291, 292, 293, 293, 294, 295, 296, 297, 297, 298, 299, 300, 301, 303,
- 302, 304, 304, 305, 306, 306, 306, 307, 308, 309, 309, 310, 310, 311, 311,
- 312, 312, 313, 313, 314, 314, 314, 315, 315, 316, 316, 317, 317, 317, 318,
- 318, 318, 319, 319, 320, 321, 321, 321, 322, 323, 323, 323, 323, 324, 324,
- 324, 325, 325, 326, 326, 326, 327, 328, 328, 328, 329, 329, 330, 330, 330,
- 331, 331, 331, 331, 332, 332, 332, 333, 333, 333, 333, 334, 334, 335, 335,
- 335, 335, 335, 335, 335, 335, 335, 335, 335, 336, 336, 337, 338, 338, 339,
- 339, 340, 340, 341, 341, 342, 342, 343, 343, 343, 343, 343, 343, 343, 343,
- 343, 343, 343, 343, 343, 343, 343, 343, 343, 343, 343, 344, 344, 345, 346,
- 346, 346, 347, 347, 347, 347, 348, 348, 349, 349, 350, 350, 351, 351, 352,
- 352, 353
+static const yytype_uint16 yystos[] =
+{
+ 0, 15, 16, 195, 196, 197, 198, 132, 132, 0,
+ 196, 70, 205, 139, 139, 132, 6, 14, 17, 18,
+ 19, 20, 21, 22, 23, 24, 25, 29, 30, 31,
+ 35, 36, 37, 38, 39, 40, 41, 42, 43, 45,
+ 46, 47, 48, 49, 50, 51, 53, 68, 75, 76,
+ 78, 80, 81, 82, 85, 86, 88, 90, 109, 111,
+ 135, 141, 142, 148, 149, 150, 151, 152, 153, 154,
+ 155, 156, 157, 158, 159, 160, 161, 162, 163, 164,
+ 165, 200, 207, 209, 210, 211, 212, 214, 215, 223,
+ 226, 227, 229, 230, 237, 239, 240, 242, 244, 246,
+ 250, 251, 252, 255, 257, 264, 269, 272, 278, 283,
+ 284, 285, 286, 287, 288, 289, 290, 291, 292, 294,
+ 295, 296, 298, 299, 300, 301, 302, 305, 306, 307,
+ 308, 309, 131, 71, 206, 132, 132, 132, 132, 132,
+ 132, 132, 132, 132, 132, 132, 132, 132, 132, 132,
+ 132, 132, 132, 132, 132, 132, 132, 132, 132, 132,
+ 132, 132, 132, 132, 132, 132, 229, 132, 132, 132,
+ 135, 142, 211, 213, 231, 132, 141, 4, 133, 148,
+ 149, 184, 335, 345, 133, 207, 190, 132, 241, 3,
+ 59, 199, 131, 139, 150, 151, 321, 334, 10, 11,
+ 12, 13, 59, 60, 63, 64, 122, 133, 154, 155,
+ 270, 323, 324, 3, 59, 133, 139, 162, 163, 280,
+ 332, 333, 280, 3, 59, 133, 139, 160, 161, 274,
+ 330, 331, 59, 139, 310, 54, 59, 315, 323, 323,
+ 115, 116, 117, 118, 119, 121, 123, 124, 125, 126,
+ 127, 133, 164, 323, 343, 344, 133, 156, 157, 326,
+ 327, 323, 323, 44, 133, 323, 352, 353, 326, 326,
+ 59, 139, 254, 311, 133, 352, 352, 352, 322, 335,
+ 133, 253, 335, 323, 344, 344, 344, 4, 8, 9,
+ 59, 346, 254, 5, 59, 265, 247, 344, 326, 210,
+ 322, 190, 135, 323, 133, 8, 335, 135, 113, 136,
+ 185, 186, 187, 188, 189, 334, 335, 340, 341, 342,
+ 20, 22, 26, 27, 28, 78, 120, 133, 137, 323,
+ 326, 334, 335, 348, 349, 350, 245, 137, 208, 206,
+ 135, 191, 131, 131, 131, 130, 325, 133, 4, 135,
+ 131, 131, 259, 3, 135, 281, 279, 3, 135, 273,
+ 131, 131, 131, 131, 131, 326, 326, 323, 323, 133,
+ 323, 133, 133, 133, 343, 133, 344, 193, 4, 135,
+ 131, 131, 131, 133, 4, 131, 131, 131, 6, 228,
+ 4, 131, 131, 131, 131, 4, 131, 131, 131, 131,
+ 131, 208, 248, 131, 131, 136, 335, 322, 131, 224,
+ 134, 134, 335, 335, 335, 335, 335, 335, 335, 131,
+ 134, 132, 4, 219, 220, 221, 222, 324, 327, 334,
+ 335, 132, 132, 132, 209, 207, 335, 321, 3, 3,
+ 133, 297, 3, 131, 136, 344, 131, 335, 64, 65,
+ 271, 5, 140, 131, 335, 131, 208, 131, 335, 208,
+ 323, 323, 344, 58, 58, 131, 131, 58, 267, 344,
+ 323, 323, 3, 7, 133, 158, 159, 328, 329, 344,
+ 128, 134, 344, 131, 335, 55, 59, 316, 59, 61,
+ 62, 317, 320, 67, 4, 131, 67, 352, 59, 133,
+ 260, 131, 131, 352, 352, 352, 322, 131, 253, 346,
+ 323, 57, 59, 351, 59, 133, 261, 315, 249, 133,
+ 328, 328, 243, 87, 191, 238, 136, 59, 334, 212,
+ 337, 338, 339, 136, 136, 340, 344, 131, 131, 138,
+ 131, 138, 131, 138, 131, 138, 137, 332, 137, 330,
+ 137, 328, 138, 136, 3, 131, 325, 134, 4, 136,
+ 259, 139, 136, 4, 8, 9, 54, 55, 56, 69,
+ 83, 84, 92, 93, 94, 95, 96, 108, 110, 282,
+ 323, 345, 347, 139, 136, 275, 131, 131, 323, 323,
+ 192, 131, 134, 131, 131, 131, 3, 135, 131, 131,
+ 131, 4, 136, 131, 135, 131, 131, 4, 131, 4,
+ 131, 316, 4, 131, 131, 293, 131, 58, 131, 4,
+ 131, 131, 77, 131, 208, 191, 335, 232, 132, 131,
+ 134, 4, 327, 324, 335, 334, 216, 333, 217, 331,
+ 218, 329, 131, 3, 134, 140, 134, 132, 132, 132,
+ 132, 132, 134, 131, 315, 5, 131, 267, 344, 335,
+ 335, 344, 131, 335, 344, 344, 133, 131, 311, 4,
+ 59, 66, 319, 4, 131, 67, 131, 59, 133, 262,
+ 139, 67, 322, 131, 334, 131, 59, 133, 263, 59,
+ 266, 267, 208, 328, 137, 144, 145, 336, 337, 225,
+ 131, 138, 131, 138, 131, 138, 316, 131, 334, 322,
+ 322, 322, 330, 61, 62, 72, 73, 74, 95, 97,
+ 98, 99, 100, 101, 102, 103, 104, 105, 106, 276,
+ 318, 320, 334, 131, 203, 335, 134, 131, 134, 131,
+ 134, 316, 136, 134, 134, 335, 4, 131, 312, 136,
+ 131, 4, 4, 270, 131, 131, 4, 59, 268, 4,
+ 4, 312, 131, 131, 89, 91, 233, 234, 208, 333,
+ 331, 329, 134, 5, 132, 334, 132, 132, 132, 132,
+ 3, 32, 335, 134, 186, 131, 32, 33, 34, 313,
+ 314, 303, 4, 131, 134, 131, 263, 322, 134, 134,
+ 131, 256, 268, 7, 346, 132, 138, 233, 131, 59,
+ 322, 322, 322, 107, 139, 277, 134, 131, 134, 335,
+ 4, 131, 208, 304, 131, 4, 271, 312, 4, 208,
+ 132, 236, 5, 192, 32, 131, 201, 134, 313, 4,
+ 134, 134, 258, 134, 235, 207, 131, 277, 134, 129,
+ 134, 134, 208, 207, 316, 131, 131, 323, 5, 59,
+ 204, 131, 202, 203, 323, 134
};
-/* YYR2[YYN] -- Number of symbols on the right hand side of rule YYN. */
-static const yytype_uint8 yyr2[] = {
- 0, 2, 0, 1, 1, 2, 3, 3, 5, 1, 1, 5, 5, 3, 16, 0, 2, 0, 2, 0, 2, 1, 1,
- 0, 3, 3, 1, 0, 2, 3, 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, 5, 3, 5, 5, 5, 3, 3, 5, 5, 5, 7, 7, 7, 5, 1, 3,
- 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 0, 0, 8, 4, 1, 0, 1, 1, 5, 3, 0,
- 0, 9, 0, 2, 0, 5, 0, 4, 1, 2, 1, 6, 0, 3, 0, 6, 0, 4, 0, 4, 1, 0, 4,
- 3, 1, 3, 3, 5, 5, 7, 4, 0, 10, 0, 12, 0, 2, 5, 1, 5, 1, 5, 1, 5, 1, 9,
- 5, 1, 1, 1, 1, 1, 3, 1, 1, 1, 7, 5, 1, 1, 1, 1, 3, 0, 5, 4, 0, 3, 1,
- 1, 1, 1, 2, 1, 1, 1, 1, 1, 3, 3, 3, 1, 1, 3, 1, 1, 3, 3, 0, 5, 2, 0,
- 3, 1, 3, 1, 3, 3, 1, 1, 3, 1, 1, 1, 3, 1, 1, 1, 5, 7, 5, 8, 1, 3, 5,
- 5, 7, 7, 6, 5, 0, 2, 3, 3, 3, 1, 5, 9, 5, 3, 3, 0, 10, 0, 1, 7, 5, 5,
- 3, 5, 7, 9, 1, 1, 1, 1, 1, 0, 2, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 3, 1, 1, 4, 1, 1, 4, 1, 1, 4, 1, 4, 5, 1, 3, 1, 3, 1, 1, 4, 9,
- 1, 1, 4, 1, 5, 1, 1, 4, 1, 1, 5, 1, 1, 1, 4, 1, 1, 5, 1, 1, 3, 1, 1,
- 3, 1, 4, 3, 3, 3, 3, 3, 3, 1, 1, 3, 1, 3, 0, 1, 1, 1, 1, 3, 0, 1, 1,
- 2, 2, 4, 6, 4, 6, 6, 6, 6, 2, 6, 8, 8, 10, 14, 2, 1, 3, 1, 3, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 10, 9
-};
+#define yyerrok (yyerrstatus = 0)
+#define yyclearin (yychar = YYEMPTY)
+#define YYEMPTY (-2)
+#define YYEOF 0
+
+#define YYACCEPT goto yyacceptlab
+#define YYABORT goto yyabortlab
+#define YYERROR goto yyerrorlab
+
+
+/* Like YYERROR except do call yyerror. This remains here temporarily
+ to ease the transition to the new meaning of YYERROR, for GCC.
+ Once GCC version 2 has supplanted version 1, this can go. */
+
+#define YYFAIL goto yyerrlab
+
+#define YYRECOVERING() (!!yyerrstatus)
+
+#define YYBACKUP(Token, Value) \
+do \
+ if (yychar == YYEMPTY && yylen == 1) \
+ { \
+ yychar = (Token); \
+ yylval = (Value); \
+ yytoken = YYTRANSLATE (yychar); \
+ YYPOPSTACK (1); \
+ goto yybackup; \
+ } \
+ else \
+ { \
+ yyerror (YY_("syntax error: cannot back up")); \
+ YYERROR; \
+ } \
+while (YYID (0))
+
+
+#define YYTERROR 1
+#define YYERRCODE 256
+
+
+/* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].
+ If N is 0, then set CURRENT to the empty location which ends
+ the previous symbol: RHS[0] (always defined). */
+
+#define YYRHSLOC(Rhs, K) ((Rhs)[K])
+#ifndef YYLLOC_DEFAULT
+# define YYLLOC_DEFAULT(Current, Rhs, N) \
+ do \
+ if (YYID (N)) \
+ { \
+ (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \
+ (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \
+ (Current).last_line = YYRHSLOC (Rhs, N).last_line; \
+ (Current).last_column = YYRHSLOC (Rhs, N).last_column; \
+ } \
+ else \
+ { \
+ (Current).first_line = (Current).last_line = \
+ YYRHSLOC (Rhs, 0).last_line; \
+ (Current).first_column = (Current).last_column = \
+ YYRHSLOC (Rhs, 0).last_column; \
+ } \
+ while (YYID (0))
+#endif
-#define yyerrok (yyerrstatus = 0)
-#define yyclearin (yychar = YYEMPTY)
-#define YYEMPTY (-2)
-#define YYEOF 0
-
-#define YYACCEPT goto yyacceptlab
-#define YYABORT goto yyabortlab
-#define YYERROR goto yyerrorlab
-
-#define YYRECOVERING() (!!yyerrstatus)
-
-#define YYBACKUP(Token, Value) \
- do \
- if (yychar == YYEMPTY) { \
- yychar = (Token); \
- yylval = (Value); \
- YYPOPSTACK(yylen); \
- yystate = *yyssp; \
- goto yybackup; \
- } else { \
- yyerror(YY_("syntax error: cannot back up")); \
- YYERROR; \
- } \
- while (0)
-
-/* Error token number */
-#define YYTERROR 1
-#define YYERRCODE 256
-/* Enable debugging if requested. */
-#if YYDEBUG
+/* YY_LOCATION_PRINT -- Print the location on the stream.
+ This macro was not mandated originally: define only if we know
+ we won't break user code: when these are the locations we know. */
-#ifndef YYFPRINTF
-#include <stdio.h> /* INFRINGES ON USER NAME SPACE */
-#define YYFPRINTF fprintf
+#ifndef YY_LOCATION_PRINT
+# if YYLTYPE_IS_TRIVIAL
+# define YY_LOCATION_PRINT(File, Loc) \
+ fprintf (File, "%d.%d-%d.%d", \
+ (Loc).first_line, (Loc).first_column, \
+ (Loc).last_line, (Loc).last_column)
+# else
+# define YY_LOCATION_PRINT(File, Loc) ((void) 0)
+# endif
#endif
-#define YYDPRINTF(Args) \
- do { \
- if (yydebug) \
- YYFPRINTF Args; \
- } while (0)
-/* This macro is provided for backward compatibility. */
-#ifndef YY_LOCATION_PRINT
-#define YY_LOCATION_PRINT(File, Loc) ((void) 0)
+/* YYLEX -- calling `yylex' with the right arguments. */
+
+#ifdef YYLEX_PARAM
+# define YYLEX yylex (YYLEX_PARAM)
+#else
+# define YYLEX yylex ()
#endif
-#define YY_SYMBOL_PRINT(Title, Type, Value, Location) \
- do { \
- if (yydebug) { \
- YYFPRINTF(stderr, "%s ", Title); \
- yy_symbol_print(stderr, Type, Value); \
- YYFPRINTF(stderr, "\n"); \
- } \
- } while (0)
+/* Enable debugging if requested. */
+#if YYDEBUG
+
+# ifndef YYFPRINTF
+# include <stdio.h> /* INFRINGES ON USER NAME SPACE */
+# define YYFPRINTF fprintf
+# endif
+
+# define YYDPRINTF(Args) \
+do { \
+ if (yydebug) \
+ YYFPRINTF Args; \
+} while (YYID (0))
+
+# define YY_SYMBOL_PRINT(Title, Type, Value, Location) \
+do { \
+ if (yydebug) \
+ { \
+ YYFPRINTF (stderr, "%s ", Title); \
+ yy_symbol_print (stderr, \
+ Type, Value); \
+ YYFPRINTF (stderr, "\n"); \
+ } \
+} while (YYID (0))
+
-/*----------------------------------------.
-| Print this symbol's value on YYOUTPUT. |
-`----------------------------------------*/
+/*--------------------------------.
+| Print this symbol on YYOUTPUT. |
+`--------------------------------*/
+/*ARGSUSED*/
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
static void
-yy_symbol_value_print(FILE *yyoutput, int yytype,
- YYSTYPE const *const yyvaluep)
-{
- FILE *yyo = yyoutput;
- YYUSE(yyo);
- if (!yyvaluep)
- return;
-#ifdef YYPRINT
- if (yytype < YYNTOKENS)
- YYPRINT(yyoutput, yytoknum[yytype], *yyvaluep);
+yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
+#else
+static void
+yy_symbol_value_print (yyoutput, yytype, yyvaluep)
+ FILE *yyoutput;
+ int yytype;
+ YYSTYPE const * const yyvaluep;
#endif
- YYUSE(yytype);
+{
+ if (!yyvaluep)
+ return;
+# ifdef YYPRINT
+ if (yytype < YYNTOKENS)
+ YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
+# else
+ YYUSE (yyoutput);
+# endif
+ switch (yytype)
+ {
+ default:
+ break;
+ }
}
+
/*--------------------------------.
| Print this symbol on YYOUTPUT. |
`--------------------------------*/
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+static void
+yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
+#else
static void
-yy_symbol_print(FILE *yyoutput, int yytype, YYSTYPE const *const yyvaluep)
+yy_symbol_print (yyoutput, yytype, yyvaluep)
+ FILE *yyoutput;
+ int yytype;
+ YYSTYPE const * const yyvaluep;
+#endif
{
- YYFPRINTF(yyoutput, "%s %s (", yytype < YYNTOKENS ? "token" : "nterm",
- yytname[yytype]);
+ if (yytype < YYNTOKENS)
+ YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
+ else
+ YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
- yy_symbol_value_print(yyoutput, yytype, yyvaluep);
- YYFPRINTF(yyoutput, ")");
+ yy_symbol_value_print (yyoutput, yytype, yyvaluep);
+ YYFPRINTF (yyoutput, ")");
}
/*------------------------------------------------------------------.
| TOP (included). |
`------------------------------------------------------------------*/
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+static void
+yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop)
+#else
static void
-yy_stack_print(yytype_int16 *yybottom, yytype_int16 *yytop)
+yy_stack_print (yybottom, yytop)
+ yytype_int16 *yybottom;
+ yytype_int16 *yytop;
+#endif
{
- YYFPRINTF(stderr, "Stack now");
- for (; yybottom <= yytop; yybottom++) {
- int yybot = *yybottom;
- YYFPRINTF(stderr, " %d", yybot);
+ YYFPRINTF (stderr, "Stack now");
+ for (; yybottom <= yytop; yybottom++)
+ {
+ int yybot = *yybottom;
+ YYFPRINTF (stderr, " %d", yybot);
}
- YYFPRINTF(stderr, "\n");
+ YYFPRINTF (stderr, "\n");
}
-#define YY_STACK_PRINT(Bottom, Top) \
- do { \
- if (yydebug) \
- yy_stack_print((Bottom), (Top)); \
- } while (0)
+# define YY_STACK_PRINT(Bottom, Top) \
+do { \
+ if (yydebug) \
+ yy_stack_print ((Bottom), (Top)); \
+} while (YYID (0))
+
/*------------------------------------------------.
| Report that the YYRULE is going to be reduced. |
`------------------------------------------------*/
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+static void
+yy_reduce_print (YYSTYPE *yyvsp, int yyrule)
+#else
static void
-yy_reduce_print(yytype_int16 *yyssp, YYSTYPE *yyvsp, int yyrule)
+yy_reduce_print (yyvsp, yyrule)
+ YYSTYPE *yyvsp;
+ int yyrule;
+#endif
{
- unsigned long int yylno = yyrline[yyrule];
- int yynrhs = yyr2[yyrule];
- int yyi;
- YYFPRINTF(stderr, "Reducing stack by rule %d (line %lu):\n", yyrule - 1,
- yylno);
- /* The symbols being reduced. */
- for (yyi = 0; yyi < yynrhs; yyi++) {
- YYFPRINTF(stderr, " $%d = ", yyi + 1);
- yy_symbol_print(stderr, yystos[yyssp[yyi + 1 - yynrhs]],
- &(yyvsp[(yyi + 1) - (yynrhs)]));
- YYFPRINTF(stderr, "\n");
+ int yynrhs = yyr2[yyrule];
+ int yyi;
+ unsigned long int yylno = yyrline[yyrule];
+ YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n",
+ yyrule - 1, yylno);
+ /* The symbols being reduced. */
+ for (yyi = 0; yyi < yynrhs; yyi++)
+ {
+ YYFPRINTF (stderr, " $%d = ", yyi + 1);
+ yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi],
+ &(yyvsp[(yyi + 1) - (yynrhs)])
+ );
+ YYFPRINTF (stderr, "\n");
}
}
-#define YY_REDUCE_PRINT(Rule) \
- do { \
- if (yydebug) \
- yy_reduce_print(yyssp, yyvsp, Rule); \
- } while (0)
+# define YY_REDUCE_PRINT(Rule) \
+do { \
+ if (yydebug) \
+ yy_reduce_print (yyvsp, Rule); \
+} while (YYID (0))
/* Nonzero means print parse trace. It is left uninitialized so that
multiple parsers can coexist. */
int yydebug;
#else /* !YYDEBUG */
-#define YYDPRINTF(Args)
-#define YY_SYMBOL_PRINT(Title, Type, Value, Location)
-#define YY_STACK_PRINT(Bottom, Top)
-#define YY_REDUCE_PRINT(Rule)
+# define YYDPRINTF(Args)
+# define YY_SYMBOL_PRINT(Title, Type, Value, Location)
+# define YY_STACK_PRINT(Bottom, Top)
+# define YY_REDUCE_PRINT(Rule)
#endif /* !YYDEBUG */
+
/* YYINITDEPTH -- initial size of the parser's stacks. */
-#ifndef YYINITDEPTH
-#define YYINITDEPTH 200
+#ifndef YYINITDEPTH
+# define YYINITDEPTH 200
#endif
/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
evaluated with infinite-precision integer arithmetic. */
#ifndef YYMAXDEPTH
-#define YYMAXDEPTH 10000
+# define YYMAXDEPTH 10000
#endif
+\f
+
#if YYERROR_VERBOSE
-#ifndef yystrlen
-#if defined __GLIBC__ && defined _STRING_H
-#define yystrlen strlen
-#else
+# ifndef yystrlen
+# if defined __GLIBC__ && defined _STRING_H
+# define yystrlen strlen
+# else
/* Return the length of YYSTR. */
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+static YYSIZE_T
+yystrlen (const char *yystr)
+#else
static YYSIZE_T
-yystrlen(const char *yystr)
+yystrlen (yystr)
+ const char *yystr;
+#endif
{
- YYSIZE_T yylen;
- for (yylen = 0; yystr[yylen]; yylen++)
- continue;
- return yylen;
+ YYSIZE_T yylen;
+ for (yylen = 0; yystr[yylen]; yylen++)
+ continue;
+ return yylen;
}
-#endif
-#endif
+# endif
+# endif
-#ifndef yystpcpy
-#if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
-#define yystpcpy stpcpy
-#else
+# ifndef yystpcpy
+# if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
+# define yystpcpy stpcpy
+# else
/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
YYDEST. */
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+static char *
+yystpcpy (char *yydest, const char *yysrc)
+#else
static char *
-yystpcpy(char *yydest, const char *yysrc)
+yystpcpy (yydest, yysrc)
+ char *yydest;
+ const char *yysrc;
+#endif
{
- char *yyd = yydest;
- const char *yys = yysrc;
+ char *yyd = yydest;
+ const char *yys = yysrc;
- while ((*yyd++ = *yys++) != '\0')
- continue;
+ while ((*yyd++ = *yys++) != '\0')
+ continue;
- return yyd - 1;
+ return yyd - 1;
}
-#endif
-#endif
+# endif
+# endif
-#ifndef yytnamerr
+# ifndef yytnamerr
/* Copy to YYRES the contents of YYSTR after stripping away unnecessary
quotes and backslashes, so that it's suitable for yyerror. The
heuristic is that double-quoting is unnecessary unless the string
null, do not copy; instead, return the length of what the result
would have been. */
static YYSIZE_T
-yytnamerr(char *yyres, const char *yystr)
+yytnamerr (char *yyres, const char *yystr)
{
- if (*yystr == '"') {
- YYSIZE_T yyn = 0;
- char const *yyp = yystr;
-
- for (;;)
- switch (*++yyp) {
- case '\'':
- case ',':
- goto do_not_strip_quotes;
-
- case '\\':
- if (*++yyp != '\\')
- goto do_not_strip_quotes;
- /* Fall through. */
- default:
- if (yyres)
- yyres[yyn] = *yyp;
- yyn++;
- break;
-
- case '"':
- if (yyres)
- yyres[yyn] = '\0';
- return yyn;
- }
- do_not_strip_quotes:
- ;
- }
-
- if (!yyres)
- return yystrlen(yystr);
-
- return yystpcpy(yyres, yystr) - yyres;
+ if (*yystr == '"')
+ {
+ YYSIZE_T yyn = 0;
+ char const *yyp = yystr;
+
+ for (;;)
+ switch (*++yyp)
+ {
+ case '\'':
+ case ',':
+ goto do_not_strip_quotes;
+
+ case '\\':
+ if (*++yyp != '\\')
+ goto do_not_strip_quotes;
+ /* Fall through. */
+ default:
+ if (yyres)
+ yyres[yyn] = *yyp;
+ yyn++;
+ break;
+
+ case '"':
+ if (yyres)
+ yyres[yyn] = '\0';
+ return yyn;
+ }
+ do_not_strip_quotes: ;
+ }
+
+ if (! yyres)
+ return yystrlen (yystr);
+
+ return yystpcpy (yyres, yystr) - yyres;
}
-#endif
-
-/* Copy into *YYMSG, which is of size *YYMSG_ALLOC, an error message
- about the unexpected token YYTOKEN for the state stack whose top is
- YYSSP.
-
- Return 0 if *YYMSG was successfully written. Return 1 if *YYMSG is
- not large enough to hold the message. In that case, also set
- *YYMSG_ALLOC to the required number of bytes. Return 2 if the
- required number of bytes is too large to store. */
-static int
-yysyntax_error(YYSIZE_T *yymsg_alloc, char **yymsg, yytype_int16 *yyssp,
- int yytoken)
+# endif
+
+/* Copy into YYRESULT an error message about the unexpected token
+ YYCHAR while in state YYSTATE. Return the number of bytes copied,
+ including the terminating null byte. If YYRESULT is null, do not
+ copy anything; just return the number of bytes that would be
+ copied. As a special case, return 0 if an ordinary "syntax error"
+ message will do. Return YYSIZE_MAXIMUM if overflow occurs during
+ size calculation. */
+static YYSIZE_T
+yysyntax_error (char *yyresult, int yystate, int yychar)
{
- YYSIZE_T yysize0 = yytnamerr(YY_NULLPTR, yytname[yytoken]);
- YYSIZE_T yysize = yysize0;
- enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
- /* Internationalized format string. */
- const char *yyformat = YY_NULLPTR;
- /* Arguments of yyformat. */
- char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
- /* Number of reported tokens (one for the "unexpected", one per
- "expected"). */
- int yycount = 0;
-
- /* There are many possibilities here to consider:
- - If this state is a consistent state with a default action, then
- the only way this function was invoked is if the default action
- is an error action. In that case, don't check for expected
- tokens because there are none.
- - The only way there can be no lookahead present (in yychar) is if
- this state is a consistent state with a default action. Thus,
- detecting the absence of a lookahead is sufficient to determine
- that there is no unexpected or expected token to report. In that
- case, just report a simple "syntax error".
- - Don't assume there isn't a lookahead just because this state is a
- consistent state with a default action. There might have been a
- previous inconsistent state, consistent state with a non-default
- action, or user semantic action that manipulated yychar.
- - Of course, the expected token list depends on states to have
- correct lookahead information, and it depends on the parser not
- to perform extra reductions after fetching a lookahead from the
- scanner and before detecting a syntax error. Thus, state merging
- (from LALR or IELR) and default reductions corrupt the expected
- token list. However, the list is correct for canonical LR with
- one exception: it will still contain any token that will not be
- accepted due to an error action in a later state.
- */
- if (yytoken != YYEMPTY) {
- int yyn = yypact[*yyssp];
- yyarg[yycount++] = yytname[yytoken];
- if (!yypact_value_is_default(yyn)) {
- /* Start YYX at -YYN if negative to avoid negative indexes in
- YYCHECK. In other words, skip the first -YYN actions for
- this state because they are default actions. */
- int yyxbegin = yyn < 0 ? -yyn : 0;
- /* Stay within bounds of both yycheck and yytname. */
- int yychecklim = YYLAST - yyn + 1;
- int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
- int yyx;
-
- for (yyx = yyxbegin; yyx < yyxend; ++yyx)
- if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR
- && !yytable_value_is_error(yytable[yyx + yyn])) {
- if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM) {
- yycount = 1;
- yysize = yysize0;
- break;
- }
- yyarg[yycount++] = yytname[yyx];
- {
- YYSIZE_T yysize1 =
- yysize + yytnamerr(YY_NULLPTR, yytname[yyx]);
- if (!(yysize <= yysize1
- && yysize1 <= YYSTACK_ALLOC_MAXIMUM))
- return 2;
- yysize = yysize1;
- }
- }
- }
- }
-
- switch (yycount) {
-#define YYCASE_(N, S) \
- case N: \
- yyformat = S; \
- break
- YYCASE_(0, YY_("syntax error"));
- YYCASE_(1, YY_("syntax error, unexpected %s"));
- YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s"));
- YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s"));
- YYCASE_(4,
- YY_("syntax error, unexpected %s, expecting %s or %s or %s"));
- YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or "
- "%s or %s"));
-#undef YYCASE_
- }
-
- {
- YYSIZE_T yysize1 = yysize + yystrlen(yyformat);
- if (!(yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM))
- return 2;
- yysize = yysize1;
- }
+ int yyn = yypact[yystate];
- if (*yymsg_alloc < yysize) {
- *yymsg_alloc = 2 * yysize;
- if (!(yysize <= *yymsg_alloc
- && *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM))
- *yymsg_alloc = YYSTACK_ALLOC_MAXIMUM;
- return 1;
- }
-
- /* Avoid sprintf, as that infringes on the user's name space.
- Don't have undefined behavior even if the translation
- produced a string with the wrong number of "%s"s. */
- {
- char *yyp = *yymsg;
- int yyi = 0;
- while ((*yyp = *yyformat) != '\0')
- if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount) {
- yyp += yytnamerr(yyp, yyarg[yyi++]);
- yyformat += 2;
- } else {
- yyp++;
- yyformat++;
- }
- }
+ if (! (YYPACT_NINF < yyn && yyn <= YYLAST))
return 0;
+ else
+ {
+ int yytype = YYTRANSLATE (yychar);
+ YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]);
+ YYSIZE_T yysize = yysize0;
+ YYSIZE_T yysize1;
+ int yysize_overflow = 0;
+ enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
+ char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
+ int yyx;
+
+# if 0
+ /* This is so xgettext sees the translatable formats that are
+ constructed on the fly. */
+ YY_("syntax error, unexpected %s");
+ YY_("syntax error, unexpected %s, expecting %s");
+ YY_("syntax error, unexpected %s, expecting %s or %s");
+ YY_("syntax error, unexpected %s, expecting %s or %s or %s");
+ YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s");
+# endif
+ char *yyfmt;
+ char const *yyf;
+ static char const yyunexpected[] = "syntax error, unexpected %s";
+ static char const yyexpecting[] = ", expecting %s";
+ static char const yyor[] = " or %s";
+ char yyformat[sizeof yyunexpected
+ + sizeof yyexpecting - 1
+ + ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2)
+ * (sizeof yyor - 1))];
+ char const *yyprefix = yyexpecting;
+
+ /* Start YYX at -YYN if negative to avoid negative indexes in
+ YYCHECK. */
+ int yyxbegin = yyn < 0 ? -yyn : 0;
+
+ /* Stay within bounds of both yycheck and yytname. */
+ int yychecklim = YYLAST - yyn + 1;
+ int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
+ int yycount = 1;
+
+ yyarg[0] = yytname[yytype];
+ yyfmt = yystpcpy (yyformat, yyunexpected);
+
+ for (yyx = yyxbegin; yyx < yyxend; ++yyx)
+ if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
+ {
+ if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
+ {
+ yycount = 1;
+ yysize = yysize0;
+ yyformat[sizeof yyunexpected - 1] = '\0';
+ break;
+ }
+ yyarg[yycount++] = yytname[yyx];
+ yysize1 = yysize + yytnamerr (0, yytname[yyx]);
+ yysize_overflow |= (yysize1 < yysize);
+ yysize = yysize1;
+ yyfmt = yystpcpy (yyfmt, yyprefix);
+ yyprefix = yyor;
+ }
+
+ yyf = YY_(yyformat);
+ yysize1 = yysize + yystrlen (yyf);
+ yysize_overflow |= (yysize1 < yysize);
+ yysize = yysize1;
+
+ if (yysize_overflow)
+ return YYSIZE_MAXIMUM;
+
+ if (yyresult)
+ {
+ /* Avoid sprintf, as that infringes on the user's name space.
+ Don't have undefined behavior even if the translation
+ produced a string with the wrong number of "%s"s. */
+ char *yyp = yyresult;
+ int yyi = 0;
+ while ((*yyp = *yyf) != '\0')
+ {
+ if (*yyp == '%' && yyf[1] == 's' && yyi < yycount)
+ {
+ yyp += yytnamerr (yyp, yyarg[yyi++]);
+ yyf += 2;
+ }
+ else
+ {
+ yyp++;
+ yyf++;
+ }
+ }
+ }
+ return yysize;
+ }
}
#endif /* YYERROR_VERBOSE */
+\f
/*-----------------------------------------------.
| Release the memory associated to this symbol. |
`-----------------------------------------------*/
+/*ARGSUSED*/
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
static void
-yydestruct(const char *yymsg, int yytype, YYSTYPE *yyvaluep)
+yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep)
+#else
+static void
+yydestruct (yymsg, yytype, yyvaluep)
+ const char *yymsg;
+ int yytype;
+ YYSTYPE *yyvaluep;
+#endif
{
- YYUSE(yyvaluep);
- if (!yymsg)
- yymsg = "Deleting";
- YY_SYMBOL_PRINT(yymsg, yytype, yyvaluep, yylocationp);
-
- YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
- YYUSE(yytype);
- YY_IGNORE_MAYBE_UNINITIALIZED_END
+ YYUSE (yyvaluep);
+
+ if (!yymsg)
+ yymsg = "Deleting";
+ YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
+
+ switch (yytype)
+ {
+
+ default:
+ break;
+ }
}
+/* Prevent warnings from -Wmissing-prototypes. */
+#ifdef YYPARSE_PARAM
+#if defined __STDC__ || defined __cplusplus
+int yyparse (void *YYPARSE_PARAM);
+#else
+int yyparse ();
+#endif
+#else /* ! YYPARSE_PARAM */
+#if defined __STDC__ || defined __cplusplus
+int yyparse (void);
+#else
+int yyparse ();
+#endif
+#endif /* ! YYPARSE_PARAM */
+
+
/* The lookahead symbol. */
int yychar;
/* The semantic value of the lookahead symbol. */
YYSTYPE yylval;
+
/* Number of syntax errors so far. */
int yynerrs;
-/*----------.
-| yyparse. |
-`----------*/
+
+/*-------------------------.
+| yyparse or yypush_parse. |
+`-------------------------*/
+
+#ifdef YYPARSE_PARAM
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+int
+yyparse (void *YYPARSE_PARAM)
+#else
+int
+yyparse (YYPARSE_PARAM)
+ void *YYPARSE_PARAM;
+#endif
+#else /* ! YYPARSE_PARAM */
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+int
+yyparse (void)
+#else
int
-yyparse(void)
+yyparse ()
+
+#endif
+#endif
{
+
+
int yystate;
/* Number of tokens to shift before error messages enabled. */
int yyerrstatus;
/* The stacks and their tools:
- 'yyss': related to states.
- 'yyvs': related to semantic values.
+ `yyss': related to states.
+ `yyvs': related to semantic values.
- Refer to the stacks through separate pointers, to allow yyoverflow
+ Refer to the stacks thru separate pointers, to allow yyoverflow
to reallocate them elsewhere. */
/* The state stack. */
YYSIZE_T yystacksize;
- int yyn;
- int yyresult;
- /* Lookahead token as an internal (translated) token number. */
- int yytoken = 0;
- /* The variables used to return semantic value and location from the
- action routines. */
- YYSTYPE yyval;
+ int yyn;
+ int yyresult;
+ /* Lookahead token as an internal (translated) token number. */
+ int yytoken;
+ /* The variables used to return semantic value and location from the
+ action routines. */
+ YYSTYPE yyval;
#if YYERROR_VERBOSE
- /* Buffer for error messages, and its allocated size. */
- char yymsgbuf[128];
- char *yymsg = yymsgbuf;
- YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
+ /* Buffer for error messages, and its allocated size. */
+ char yymsgbuf[128];
+ char *yymsg = yymsgbuf;
+ YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
#endif
-#define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N))
+#define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N))
- /* The number of symbols on the RHS of the reduced rule.
- Keep to zero when no symbol should be popped. */
- int yylen = 0;
+ /* The number of symbols on the RHS of the reduced rule.
+ Keep to zero when no symbol should be popped. */
+ int yylen = 0;
- yyssp = yyss = yyssa;
- yyvsp = yyvs = yyvsa;
- yystacksize = YYINITDEPTH;
+ yytoken = 0;
+ yyss = yyssa;
+ yyvs = yyvsa;
+ yystacksize = YYINITDEPTH;
- YYDPRINTF((stderr, "Starting parse\n"));
+ YYDPRINTF ((stderr, "Starting parse\n"));
- yystate = 0;
- yyerrstatus = 0;
- yynerrs = 0;
- yychar = YYEMPTY; /* Cause a token to be read. */
- goto yysetstate;
+ yystate = 0;
+ yyerrstatus = 0;
+ yynerrs = 0;
+ yychar = YYEMPTY; /* Cause a token to be read. */
+
+ /* Initialize stack pointers.
+ Waste one element of value and location stack
+ so that they stay on the same level as the state stack.
+ The wasted elements are never initialized. */
+ yyssp = yyss;
+ yyvsp = yyvs;
+
+ goto yysetstate;
/*------------------------------------------------------------.
| yynewstate -- Push a new state, which is found in yystate. |
`------------------------------------------------------------*/
-yynewstate:
- /* In all cases, when you get here, the value and location stacks
- have just been pushed. So pushing a state here evens the stacks. */
- yyssp++;
+ yynewstate:
+ /* In all cases, when you get here, the value and location stacks
+ have just been pushed. So pushing a state here evens the stacks. */
+ yyssp++;
-yysetstate:
- *yyssp = yystate;
+ yysetstate:
+ *yyssp = yystate;
- if (yyss + yystacksize - 1 <= yyssp) {
- /* Get the current used size of the three stacks, in elements. */
- YYSIZE_T yysize = yyssp - yyss + 1;
+ if (yyss + yystacksize - 1 <= yyssp)
+ {
+ /* Get the current used size of the three stacks, in elements. */
+ YYSIZE_T yysize = yyssp - yyss + 1;
#ifdef yyoverflow
- {
- /* Give user a chance to reallocate the stack. Use copies of
- these so that the &'s don't force the real ones into
- memory. */
- YYSTYPE *yyvs1 = yyvs;
- yytype_int16 *yyss1 = yyss;
-
- /* Each stack pointer address is followed by the size of the
- data in use in that stack, in bytes. This used to be a
- conditional around just the two extra args, but that might
- be undefined if yyoverflow is a macro. */
- yyoverflow(YY_("memory exhausted"), &yyss1,
- yysize * sizeof(*yyssp), &yyvs1,
- yysize * sizeof(*yyvsp), &yystacksize);
-
- yyss = yyss1;
- yyvs = yyvs1;
- }
+ {
+ /* Give user a chance to reallocate the stack. Use copies of
+ these so that the &'s don't force the real ones into
+ memory. */
+ YYSTYPE *yyvs1 = yyvs;
+ yytype_int16 *yyss1 = yyss;
+
+ /* Each stack pointer address is followed by the size of the
+ data in use in that stack, in bytes. This used to be a
+ conditional around just the two extra args, but that might
+ be undefined if yyoverflow is a macro. */
+ yyoverflow (YY_("memory exhausted"),
+ &yyss1, yysize * sizeof (*yyssp),
+ &yyvs1, yysize * sizeof (*yyvsp),
+ &yystacksize);
+
+ yyss = yyss1;
+ yyvs = yyvs1;
+ }
#else /* no yyoverflow */
-#ifndef YYSTACK_RELOCATE
- goto yyexhaustedlab;
-#else
- /* Extend the stack our own way. */
- if (YYMAXDEPTH <= yystacksize)
- goto yyexhaustedlab;
- yystacksize *= 2;
- if (YYMAXDEPTH < yystacksize)
- yystacksize = YYMAXDEPTH;
-
- {
- yytype_int16 *yyss1 = yyss;
- union yyalloc *yyptr =
- (union yyalloc *) YYSTACK_ALLOC(YYSTACK_BYTES(yystacksize));
- if (!yyptr)
- goto yyexhaustedlab;
- YYSTACK_RELOCATE(yyss_alloc, yyss);
- YYSTACK_RELOCATE(yyvs_alloc, yyvs);
-#undef YYSTACK_RELOCATE
- if (yyss1 != yyssa)
- YYSTACK_FREE(yyss1);
- }
-#endif
+# ifndef YYSTACK_RELOCATE
+ goto yyexhaustedlab;
+# else
+ /* Extend the stack our own way. */
+ if (YYMAXDEPTH <= yystacksize)
+ goto yyexhaustedlab;
+ yystacksize *= 2;
+ if (YYMAXDEPTH < yystacksize)
+ yystacksize = YYMAXDEPTH;
+
+ {
+ yytype_int16 *yyss1 = yyss;
+ union yyalloc *yyptr =
+ (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
+ if (! yyptr)
+ goto yyexhaustedlab;
+ YYSTACK_RELOCATE (yyss_alloc, yyss);
+ YYSTACK_RELOCATE (yyvs_alloc, yyvs);
+# undef YYSTACK_RELOCATE
+ if (yyss1 != yyssa)
+ YYSTACK_FREE (yyss1);
+ }
+# endif
#endif /* no yyoverflow */
- yyssp = yyss + yysize - 1;
- yyvsp = yyvs + yysize - 1;
+ yyssp = yyss + yysize - 1;
+ yyvsp = yyvs + yysize - 1;
- YYDPRINTF((stderr, "Stack size increased to %lu\n",
- (unsigned long int) yystacksize));
+ YYDPRINTF ((stderr, "Stack size increased to %lu\n",
+ (unsigned long int) yystacksize));
- if (yyss + yystacksize - 1 <= yyssp)
- YYABORT;
+ if (yyss + yystacksize - 1 <= yyssp)
+ YYABORT;
}
- YYDPRINTF((stderr, "Entering state %d\n", yystate));
+ YYDPRINTF ((stderr, "Entering state %d\n", yystate));
- if (yystate == YYFINAL)
- YYACCEPT;
+ if (yystate == YYFINAL)
+ YYACCEPT;
- goto yybackup;
+ goto yybackup;
/*-----------.
| yybackup. |
`-----------*/
yybackup:
- /* Do appropriate processing given the current state. Read a
- lookahead token if we need one and don't already have one. */
+ /* Do appropriate processing given the current state. Read a
+ lookahead token if we need one and don't already have one. */
- /* First try to decide what to do without reference to lookahead token. */
- yyn = yypact[yystate];
- if (yypact_value_is_default(yyn))
- goto yydefault;
+ /* First try to decide what to do without reference to lookahead token. */
+ yyn = yypact[yystate];
+ if (yyn == YYPACT_NINF)
+ goto yydefault;
- /* Not known => get a lookahead token if don't already have one. */
+ /* Not known => get a lookahead token if don't already have one. */
- /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */
- if (yychar == YYEMPTY) {
- YYDPRINTF((stderr, "Reading a token: "));
- yychar = yylex();
+ /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */
+ if (yychar == YYEMPTY)
+ {
+ YYDPRINTF ((stderr, "Reading a token: "));
+ yychar = YYLEX;
}
- if (yychar <= YYEOF) {
- yychar = yytoken = YYEOF;
- YYDPRINTF((stderr, "Now at end of input.\n"));
- } else {
- yytoken = YYTRANSLATE(yychar);
- YY_SYMBOL_PRINT("Next token is", yytoken, &yylval, &yylloc);
+ if (yychar <= YYEOF)
+ {
+ yychar = yytoken = YYEOF;
+ YYDPRINTF ((stderr, "Now at end of input.\n"));
+ }
+ else
+ {
+ yytoken = YYTRANSLATE (yychar);
+ YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
}
- /* If the proper action on seeing token YYTOKEN is to reduce or to
- detect an error, take that action. */
- yyn += yytoken;
- if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
- goto yydefault;
- yyn = yytable[yyn];
- if (yyn <= 0) {
- if (yytable_value_is_error(yyn))
- goto yyerrlab;
- yyn = -yyn;
- goto yyreduce;
+ /* If the proper action on seeing token YYTOKEN is to reduce or to
+ detect an error, take that action. */
+ yyn += yytoken;
+ if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
+ goto yydefault;
+ yyn = yytable[yyn];
+ if (yyn <= 0)
+ {
+ if (yyn == 0 || yyn == YYTABLE_NINF)
+ goto yyerrlab;
+ yyn = -yyn;
+ goto yyreduce;
}
- /* Count tokens shifted since error; after three, turn off error
- status. */
- if (yyerrstatus)
- yyerrstatus--;
+ /* Count tokens shifted since error; after three, turn off error
+ status. */
+ if (yyerrstatus)
+ yyerrstatus--;
- /* Shift the lookahead token. */
- YY_SYMBOL_PRINT("Shifting", yytoken, &yylval, &yylloc);
+ /* Shift the lookahead token. */
+ YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
- /* Discard the shifted token. */
- yychar = YYEMPTY;
+ /* Discard the shifted token. */
+ yychar = YYEMPTY;
- yystate = yyn;
- YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
- *++yyvsp = yylval;
- YY_IGNORE_MAYBE_UNINITIALIZED_END
+ yystate = yyn;
+ *++yyvsp = yylval;
+
+ goto yynewstate;
- goto yynewstate;
/*-----------------------------------------------------------.
| yydefault -- do the default action for the current state. |
`-----------------------------------------------------------*/
yydefault:
- yyn = yydefact[yystate];
- if (yyn == 0)
- goto yyerrlab;
- goto yyreduce;
+ yyn = yydefact[yystate];
+ if (yyn == 0)
+ goto yyerrlab;
+ goto yyreduce;
+
/*-----------------------------.
| yyreduce -- Do a reduction. |
`-----------------------------*/
yyreduce:
- /* yyn is the number of a rule to reduce with. */
- yylen = yyr2[yyn];
-
- /* If YYLEN is nonzero, implement the default value of the action:
- '$$ = $1'.
-
- Otherwise, the following line sets YYVAL to garbage.
- This behavior is undocumented and Bison
- users should not rely upon it. Assigning to YYVAL
- unconditionally makes the parser a bit smaller, and it avoids a
- GCC warning that YYVAL may be used uninitialized. */
- yyval = yyvsp[1 - yylen];
-
- YY_REDUCE_PRINT(yyn);
- switch (yyn) {
- case 6:
-#line 285 "lev_comp.y" /* yacc.c:1646 */
- {
- if (fatal_error > 0) {
- (void) fprintf(stderr, "%s: %d errors detected for level \"%s\". "
- "No output created!\n",
- fname, fatal_error, (yyvsp[-2].map));
- fatal_error = 0;
- got_errors++;
- } else if (!got_errors) {
- if (!write_level_file((yyvsp[-2].map), splev)) {
- lc_error("Can't write output file for '%s'!",
- (yyvsp[-2].map));
- exit(EXIT_FAILURE);
- }
- }
- Free((yyvsp[-2].map));
- Free(splev);
- splev = NULL;
- vardef_free_all(variable_definitions);
- variable_definitions = NULL;
- }
-#line 2467 "y.tab.c" /* yacc.c:1646 */
- break;
+ /* yyn is the number of a rule to reduce with. */
+ yylen = yyr2[yyn];
+
+ /* If YYLEN is nonzero, implement the default value of the action:
+ `$$ = $1'.
+
+ Otherwise, the following line sets YYVAL to garbage.
+ This behavior is undocumented and Bison
+ users should not rely upon it. Assigning to YYVAL
+ unconditionally makes the parser a bit smaller, and it avoids a
+ GCC warning that YYVAL may be used uninitialized. */
+ yyval = yyvsp[1-yylen];
- case 7:
-#line 307 "lev_comp.y" /* yacc.c:1646 */
+
+ YY_REDUCE_PRINT (yyn);
+ switch (yyn)
{
- start_level_def(&splev, (yyvsp[0].map));
- (yyval.map) = (yyvsp[0].map);
- }
-#line 2476 "y.tab.c" /* yacc.c:1646 */
- break;
-
- case 8:
-#line 312 "lev_comp.y" /* yacc.c:1646 */
- {
- start_level_def(&splev, (yyvsp[-2].map));
- if ((yyvsp[0].i) == -1) {
- add_opvars(splev, "iiiiiiiio",
- VA_PASS9(LVLINIT_MAZEGRID, HWALL, 0, 0, 0, 0, 0, 0,
- SPO_INITLEVEL));
- } else {
- long bg = what_map_char((char) (yyvsp[0].i));
- add_opvars(splev, "iiiiiiiio",
- VA_PASS9(LVLINIT_SOLIDFILL, bg, 0, 0, 0, 0, 0, 0,
- SPO_INITLEVEL));
- }
- add_opvars(splev, "io", VA_PASS2(MAZELEVEL, SPO_LEVEL_FLAGS));
- max_x_map = COLNO - 1;
- max_y_map = ROWNO;
- (yyval.map) = (yyvsp[-2].map);
- }
-#line 2499 "y.tab.c" /* yacc.c:1646 */
- break;
+ case 6:
- case 9:
-#line 333 "lev_comp.y" /* yacc.c:1646 */
+/* Line 1455 of yacc.c */
+#line 285 "lev_comp.y"
{
- (yyval.i) = -1;
- }
-#line 2507 "y.tab.c" /* yacc.c:1646 */
+ if (fatal_error > 0) {
+ (void) fprintf(stderr,
+ "%s: %d errors detected for level \"%s\". No output created!\n",
+ fname, fatal_error, (yyvsp[(1) - (3)].map));
+ fatal_error = 0;
+ got_errors++;
+ } else if (!got_errors) {
+ if (!write_level_file((yyvsp[(1) - (3)].map), splev)) {
+ lc_error("Can't write output file for '%s'!", (yyvsp[(1) - (3)].map));
+ exit(EXIT_FAILURE);
+ }
+ }
+ Free((yyvsp[(1) - (3)].map));
+ Free(splev);
+ splev = NULL;
+ vardef_free_all(variable_definitions);
+ variable_definitions = NULL;
+ }
break;
- case 10:
-#line 337 "lev_comp.y" /* yacc.c:1646 */
+ case 7:
+
+/* Line 1455 of yacc.c */
+#line 307 "lev_comp.y"
{
- (yyval.i) = what_map_char((char) (yyvsp[0].i));
- }
-#line 2515 "y.tab.c" /* yacc.c:1646 */
+ start_level_def(&splev, (yyvsp[(3) - (3)].map));
+ (yyval.map) = (yyvsp[(3) - (3)].map);
+ }
break;
- case 11:
-#line 343 "lev_comp.y" /* yacc.c:1646 */
+ case 8:
+
+/* Line 1455 of yacc.c */
+#line 312 "lev_comp.y"
{
- long filling = (yyvsp[0].terr).ter;
- if (filling == INVALID_TYPE || filling >= MAX_TYPE)
- lc_error("INIT_MAP: Invalid fill char type.");
- add_opvars(splev, "iiiiiiiio", LVLINIT_SOLIDFILL, filling, 0,
- (long) (yyvsp[0].terr).lit, 0, 0, 0, 0, SPO_INITLEVEL);
- max_x_map = COLNO - 1;
- max_y_map = ROWNO;
- }
-#line 2529 "y.tab.c" /* yacc.c:1646 */
+ start_level_def(&splev, (yyvsp[(3) - (5)].map));
+ if ((yyvsp[(5) - (5)].i) == -1) {
+ add_opvars(splev, "iiiiiiiio",
+ VA_PASS9(LVLINIT_MAZEGRID,HWALL,0,0,
+ 0,0,0,0, SPO_INITLEVEL));
+ } else {
+ long bg = what_map_char((char) (yyvsp[(5) - (5)].i));
+ add_opvars(splev, "iiiiiiiio",
+ VA_PASS9(LVLINIT_SOLIDFILL, bg, 0,0,
+ 0,0,0,0, SPO_INITLEVEL));
+ }
+ add_opvars(splev, "io",
+ VA_PASS2(MAZELEVEL, SPO_LEVEL_FLAGS));
+ max_x_map = COLNO-1;
+ max_y_map = ROWNO;
+ (yyval.map) = (yyvsp[(3) - (5)].map);
+ }
break;
- case 12:
-#line 353 "lev_comp.y" /* yacc.c:1646 */
+ case 9:
+
+/* Line 1455 of yacc.c */
+#line 333 "lev_comp.y"
{
- long filling = what_map_char((char) (yyvsp[0].i));
- if (filling == INVALID_TYPE || filling >= MAX_TYPE)
- lc_error("INIT_MAP: Invalid fill char type.");
- add_opvars(splev, "iiiiiiiio",
- VA_PASS9(LVLINIT_MAZEGRID, filling, 0, 0, 0, 0, 0, 0,
- SPO_INITLEVEL));
- max_x_map = COLNO - 1;
- max_y_map = ROWNO;
- }
-#line 2544 "y.tab.c" /* yacc.c:1646 */
+ (yyval.i) = -1;
+ }
break;
- case 13:
-#line 364 "lev_comp.y" /* yacc.c:1646 */
+ case 10:
+
+/* Line 1455 of yacc.c */
+#line 337 "lev_comp.y"
{
- add_opvars(splev, "iiiiiiiio", VA_PASS9(LVLINIT_ROGUE, 0, 0, 0, 0, 0,
- 0, 0, SPO_INITLEVEL));
- }
-#line 2554 "y.tab.c" /* yacc.c:1646 */
- break;
-
- case 14:
-#line 370 "lev_comp.y" /* yacc.c:1646 */
- {
- long fg = what_map_char((char) (yyvsp[-11].i));
- long bg = what_map_char((char) (yyvsp[-9].i));
- long smoothed = (yyvsp[-7].i);
- long joined = (yyvsp[-5].i);
- long lit = (yyvsp[-3].i);
- long walled = (yyvsp[-1].i);
- long filling = (yyvsp[0].i);
- if (fg == INVALID_TYPE || fg >= MAX_TYPE)
- lc_error("INIT_MAP: Invalid foreground type.");
- if (bg == INVALID_TYPE || bg >= MAX_TYPE)
- lc_error("INIT_MAP: Invalid background type.");
- if (joined && fg != CORR && fg != ROOM)
- lc_error("INIT_MAP: Invalid foreground type for joined map.");
-
- if (filling == INVALID_TYPE)
- lc_error("INIT_MAP: Invalid fill char type.");
-
- add_opvars(splev, "iiiiiiiio",
- VA_PASS9(LVLINIT_MINES, filling, walled, lit, joined,
- smoothed, bg, fg, SPO_INITLEVEL));
- max_x_map = COLNO - 1;
- max_y_map = ROWNO;
- }
-#line 2584 "y.tab.c" /* yacc.c:1646 */
+ (yyval.i) = what_map_char((char) (yyvsp[(1) - (1)].i));
+ }
break;
- case 15:
-#line 398 "lev_comp.y" /* yacc.c:1646 */
+ case 11:
+
+/* Line 1455 of yacc.c */
+#line 343 "lev_comp.y"
{
- (yyval.i) = 0;
- }
-#line 2592 "y.tab.c" /* yacc.c:1646 */
+ long filling = (yyvsp[(5) - (5)].terr).ter;
+ if (filling == INVALID_TYPE || filling >= MAX_TYPE)
+ lc_error("INIT_MAP: Invalid fill char type.");
+ add_opvars(splev, "iiiiiiiio",
+ LVLINIT_SOLIDFILL,filling,0,(long)(yyvsp[(5) - (5)].terr).lit, 0,0,0,0, SPO_INITLEVEL);
+ max_x_map = COLNO-1;
+ max_y_map = ROWNO;
+ }
break;
- case 16:
-#line 402 "lev_comp.y" /* yacc.c:1646 */
+ case 12:
+
+/* Line 1455 of yacc.c */
+#line 353 "lev_comp.y"
{
- (yyval.i) = (yyvsp[0].i);
- }
-#line 2600 "y.tab.c" /* yacc.c:1646 */
+ long filling = what_map_char((char) (yyvsp[(5) - (5)].i));
+ if (filling == INVALID_TYPE || filling >= MAX_TYPE)
+ lc_error("INIT_MAP: Invalid fill char type.");
+ add_opvars(splev, "iiiiiiiio",
+ VA_PASS9(LVLINIT_MAZEGRID,filling,0,0,
+ 0,0,0,0, SPO_INITLEVEL));
+ max_x_map = COLNO-1;
+ max_y_map = ROWNO;
+ }
break;
- case 17:
-#line 408 "lev_comp.y" /* yacc.c:1646 */
+ case 13:
+
+/* Line 1455 of yacc.c */
+#line 364 "lev_comp.y"
{
- add_opvars(splev, "o", VA_PASS1(SPO_COPY));
- (yyval.i) = 0;
- }
-#line 2609 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "iiiiiiiio",
+ VA_PASS9(LVLINIT_ROGUE,0,0,0,
+ 0,0,0,0, SPO_INITLEVEL));
+ }
break;
- case 18:
-#line 413 "lev_comp.y" /* yacc.c:1646 */
+ case 14:
+
+/* Line 1455 of yacc.c */
+#line 370 "lev_comp.y"
{
- (yyval.i) = 1;
- }
-#line 2617 "y.tab.c" /* yacc.c:1646 */
+ long fg = what_map_char((char) (yyvsp[(5) - (16)].i));
+ long bg = what_map_char((char) (yyvsp[(7) - (16)].i));
+ long smoothed = (yyvsp[(9) - (16)].i);
+ long joined = (yyvsp[(11) - (16)].i);
+ long lit = (yyvsp[(13) - (16)].i);
+ long walled = (yyvsp[(15) - (16)].i);
+ long filling = (yyvsp[(16) - (16)].i);
+ if (fg == INVALID_TYPE || fg >= MAX_TYPE)
+ lc_error("INIT_MAP: Invalid foreground type.");
+ if (bg == INVALID_TYPE || bg >= MAX_TYPE)
+ lc_error("INIT_MAP: Invalid background type.");
+ if (joined && fg != CORR && fg != ROOM)
+ lc_error("INIT_MAP: Invalid foreground type for joined map.");
+
+ if (filling == INVALID_TYPE)
+ lc_error("INIT_MAP: Invalid fill char type.");
+
+ add_opvars(splev, "iiiiiiiio",
+ VA_PASS9(LVLINIT_MINES,filling,walled,lit,
+ joined,smoothed,bg,fg,
+ SPO_INITLEVEL));
+ max_x_map = COLNO-1;
+ max_y_map = ROWNO;
+ }
break;
- case 19:
-#line 419 "lev_comp.y" /* yacc.c:1646 */
+ case 15:
+
+/* Line 1455 of yacc.c */
+#line 398 "lev_comp.y"
{
- (yyval.i) = -1;
- }
-#line 2625 "y.tab.c" /* yacc.c:1646 */
+ (yyval.i) = 0;
+ }
break;
- case 20:
-#line 423 "lev_comp.y" /* yacc.c:1646 */
+ case 16:
+
+/* Line 1455 of yacc.c */
+#line 402 "lev_comp.y"
{
- (yyval.i) = what_map_char((char) (yyvsp[0].i));
- }
-#line 2633 "y.tab.c" /* yacc.c:1646 */
+ (yyval.i) = (yyvsp[(2) - (2)].i);
+ }
break;
- case 23:
-#line 434 "lev_comp.y" /* yacc.c:1646 */
+ case 17:
+
+/* Line 1455 of yacc.c */
+#line 408 "lev_comp.y"
{
- add_opvars(splev, "io", VA_PASS2(0, SPO_LEVEL_FLAGS));
- }
-#line 2641 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "o", VA_PASS1(SPO_COPY));
+ (yyval.i) = 0;
+ }
break;
- case 24:
-#line 438 "lev_comp.y" /* yacc.c:1646 */
+ case 18:
+
+/* Line 1455 of yacc.c */
+#line 413 "lev_comp.y"
{
- add_opvars(splev, "io", VA_PASS2((yyvsp[0].i), SPO_LEVEL_FLAGS));
- }
-#line 2649 "y.tab.c" /* yacc.c:1646 */
+ (yyval.i) = 1;
+ }
break;
- case 25:
-#line 444 "lev_comp.y" /* yacc.c:1646 */
+ case 19:
+
+/* Line 1455 of yacc.c */
+#line 419 "lev_comp.y"
{
- (yyval.i) = ((yyvsp[-2].i) | (yyvsp[0].i));
- }
-#line 2657 "y.tab.c" /* yacc.c:1646 */
+ (yyval.i) = -1;
+ }
break;
- case 26:
-#line 448 "lev_comp.y" /* yacc.c:1646 */
+ case 20:
+
+/* Line 1455 of yacc.c */
+#line 423 "lev_comp.y"
{
- (yyval.i) = (yyvsp[0].i);
- }
-#line 2665 "y.tab.c" /* yacc.c:1646 */
+ (yyval.i) = what_map_char((char) (yyvsp[(2) - (2)].i));
+ }
break;
- case 27:
-#line 454 "lev_comp.y" /* yacc.c:1646 */
+ case 23:
+
+/* Line 1455 of yacc.c */
+#line 434 "lev_comp.y"
{
- (yyval.i) = 0;
- }
-#line 2673 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "io", VA_PASS2(0, SPO_LEVEL_FLAGS));
+ }
break;
- case 28:
-#line 458 "lev_comp.y" /* yacc.c:1646 */
+ case 24:
+
+/* Line 1455 of yacc.c */
+#line 438 "lev_comp.y"
{
- (yyval.i) = 1 + (yyvsp[0].i);
- }
-#line 2681 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "io", VA_PASS2((yyvsp[(3) - (3)].i), SPO_LEVEL_FLAGS));
+ }
break;
- case 29:
-#line 464 "lev_comp.y" /* yacc.c:1646 */
+ case 25:
+
+/* Line 1455 of yacc.c */
+#line 444 "lev_comp.y"
{
- (yyval.i) = (yyvsp[-1].i);
- }
-#line 2689 "y.tab.c" /* yacc.c:1646 */
- break;
-
- case 97:
-#line 547 "lev_comp.y" /* yacc.c:1646 */
- {
- struct lc_vardefs *vd;
- if ((vd = vardef_defined(variable_definitions, (yyvsp[0].map), 1))) {
- if (!(vd->var_type & SPOVAR_ARRAY))
- lc_error("Trying to shuffle non-array variable '%s'",
- (yyvsp[0].map));
- } else
- lc_error("Trying to shuffle undefined variable '%s'",
- (yyvsp[0].map));
- add_opvars(splev, "so", VA_PASS2((yyvsp[0].map), SPO_SHUFFLE_ARRAY));
- Free((yyvsp[0].map));
- }
-#line 2703 "y.tab.c" /* yacc.c:1646 */
+ (yyval.i) = ((yyvsp[(1) - (3)].i) | (yyvsp[(3) - (3)].i));
+ }
break;
- case 98:
-#line 559 "lev_comp.y" /* yacc.c:1646 */
+ case 26:
+
+/* Line 1455 of yacc.c */
+#line 448 "lev_comp.y"
{
- variable_definitions = add_vardef_type(variable_definitions,
- (yyvsp[-2].map), SPOVAR_INT);
- add_opvars(splev, "iso", VA_PASS3(0, (yyvsp[-2].map), SPO_VAR_INIT));
- Free((yyvsp[-2].map));
- }
-#line 2713 "y.tab.c" /* yacc.c:1646 */
+ (yyval.i) = (yyvsp[(1) - (1)].i);
+ }
break;
- case 99:
-#line 565 "lev_comp.y" /* yacc.c:1646 */
+ case 27:
+
+/* Line 1455 of yacc.c */
+#line 454 "lev_comp.y"
{
- variable_definitions = add_vardef_type(variable_definitions,
- (yyvsp[-4].map), SPOVAR_SEL);
- add_opvars(splev, "iso", VA_PASS3(0, (yyvsp[-4].map), SPO_VAR_INIT));
- Free((yyvsp[-4].map));
- }
-#line 2723 "y.tab.c" /* yacc.c:1646 */
+ (yyval.i) = 0;
+ }
break;
- case 100:
-#line 571 "lev_comp.y" /* yacc.c:1646 */
+ case 28:
+
+/* Line 1455 of yacc.c */
+#line 458 "lev_comp.y"
{
- variable_definitions = add_vardef_type(
- variable_definitions, (yyvsp[-2].map), SPOVAR_STRING);
- add_opvars(splev, "iso", VA_PASS3(0, (yyvsp[-2].map), SPO_VAR_INIT));
- Free((yyvsp[-2].map));
- }
-#line 2733 "y.tab.c" /* yacc.c:1646 */
+ (yyval.i) = 1 + (yyvsp[(2) - (2)].i);
+ }
break;
- case 101:
-#line 577 "lev_comp.y" /* yacc.c:1646 */
+ case 29:
+
+/* Line 1455 of yacc.c */
+#line 464 "lev_comp.y"
{
- variable_definitions = add_vardef_type(
- variable_definitions, (yyvsp[-4].map), SPOVAR_MAPCHAR);
- add_opvars(splev, "iso", VA_PASS3(0, (yyvsp[-4].map), SPO_VAR_INIT));
- Free((yyvsp[-4].map));
- }
-#line 2743 "y.tab.c" /* yacc.c:1646 */
+ (yyval.i) = (yyvsp[(2) - (3)].i);
+ }
break;
- case 102:
-#line 583 "lev_comp.y" /* yacc.c:1646 */
+ case 97:
+
+/* Line 1455 of yacc.c */
+#line 547 "lev_comp.y"
{
- variable_definitions = add_vardef_type(variable_definitions,
- (yyvsp[-4].map), SPOVAR_MONST);
- add_opvars(splev, "iso", VA_PASS3(0, (yyvsp[-4].map), SPO_VAR_INIT));
- Free((yyvsp[-4].map));
- }
-#line 2753 "y.tab.c" /* yacc.c:1646 */
+ struct lc_vardefs *vd;
+ if ((vd = vardef_defined(variable_definitions, (yyvsp[(3) - (3)].map), 1))) {
+ if (!(vd->var_type & SPOVAR_ARRAY))
+ lc_error("Trying to shuffle non-array variable '%s'", (yyvsp[(3) - (3)].map));
+ } else lc_error("Trying to shuffle undefined variable '%s'", (yyvsp[(3) - (3)].map));
+ add_opvars(splev, "so", VA_PASS2((yyvsp[(3) - (3)].map), SPO_SHUFFLE_ARRAY));
+ Free((yyvsp[(3) - (3)].map));
+ }
break;
- case 103:
-#line 589 "lev_comp.y" /* yacc.c:1646 */
+ case 98:
+
+/* Line 1455 of yacc.c */
+#line 559 "lev_comp.y"
{
- variable_definitions = add_vardef_type(variable_definitions,
- (yyvsp[-4].map), SPOVAR_OBJ);
- add_opvars(splev, "iso", VA_PASS3(0, (yyvsp[-4].map), SPO_VAR_INIT));
- Free((yyvsp[-4].map));
- }
-#line 2763 "y.tab.c" /* yacc.c:1646 */
+ variable_definitions = add_vardef_type(variable_definitions, (yyvsp[(1) - (3)].map), SPOVAR_INT);
+ add_opvars(splev, "iso", VA_PASS3(0, (yyvsp[(1) - (3)].map), SPO_VAR_INIT));
+ Free((yyvsp[(1) - (3)].map));
+ }
break;
- case 104:
-#line 595 "lev_comp.y" /* yacc.c:1646 */
+ case 99:
+
+/* Line 1455 of yacc.c */
+#line 565 "lev_comp.y"
{
- variable_definitions = add_vardef_type(variable_definitions,
- (yyvsp[-2].map), SPOVAR_COORD);
- add_opvars(splev, "iso", VA_PASS3(0, (yyvsp[-2].map), SPO_VAR_INIT));
- Free((yyvsp[-2].map));
- }
-#line 2773 "y.tab.c" /* yacc.c:1646 */
+ variable_definitions = add_vardef_type(variable_definitions, (yyvsp[(1) - (5)].map), SPOVAR_SEL);
+ add_opvars(splev, "iso", VA_PASS3(0, (yyvsp[(1) - (5)].map), SPO_VAR_INIT));
+ Free((yyvsp[(1) - (5)].map));
+ }
break;
- case 105:
-#line 601 "lev_comp.y" /* yacc.c:1646 */
+ case 100:
+
+/* Line 1455 of yacc.c */
+#line 571 "lev_comp.y"
{
- variable_definitions = add_vardef_type(
- variable_definitions, (yyvsp[-2].map), SPOVAR_REGION);
- add_opvars(splev, "iso", VA_PASS3(0, (yyvsp[-2].map), SPO_VAR_INIT));
- Free((yyvsp[-2].map));
- }
-#line 2783 "y.tab.c" /* yacc.c:1646 */
+ variable_definitions = add_vardef_type(variable_definitions, (yyvsp[(1) - (3)].map), SPOVAR_STRING);
+ add_opvars(splev, "iso", VA_PASS3(0, (yyvsp[(1) - (3)].map), SPO_VAR_INIT));
+ Free((yyvsp[(1) - (3)].map));
+ }
break;
- case 106:
-#line 607 "lev_comp.y" /* yacc.c:1646 */
+ case 101:
+
+/* Line 1455 of yacc.c */
+#line 577 "lev_comp.y"
{
- long n_items = (yyvsp[-1].i);
- variable_definitions = add_vardef_type(
- variable_definitions, (yyvsp[-4].map), SPOVAR_INT | SPOVAR_ARRAY);
- add_opvars(splev, "iso",
- VA_PASS3(n_items, (yyvsp[-4].map), SPO_VAR_INIT));
- Free((yyvsp[-4].map));
- }
-#line 2795 "y.tab.c" /* yacc.c:1646 */
+ variable_definitions = add_vardef_type(variable_definitions, (yyvsp[(1) - (5)].map), SPOVAR_MAPCHAR);
+ add_opvars(splev, "iso", VA_PASS3(0, (yyvsp[(1) - (5)].map), SPO_VAR_INIT));
+ Free((yyvsp[(1) - (5)].map));
+ }
break;
- case 107:
-#line 615 "lev_comp.y" /* yacc.c:1646 */
+ case 102:
+
+/* Line 1455 of yacc.c */
+#line 583 "lev_comp.y"
{
- long n_items = (yyvsp[-1].i);
- variable_definitions =
- add_vardef_type(variable_definitions, (yyvsp[-4].map),
- SPOVAR_COORD | SPOVAR_ARRAY);
- add_opvars(splev, "iso",
- VA_PASS3(n_items, (yyvsp[-4].map), SPO_VAR_INIT));
- Free((yyvsp[-4].map));
- }
-#line 2807 "y.tab.c" /* yacc.c:1646 */
+ variable_definitions = add_vardef_type(variable_definitions, (yyvsp[(1) - (5)].map), SPOVAR_MONST);
+ add_opvars(splev, "iso", VA_PASS3(0, (yyvsp[(1) - (5)].map), SPO_VAR_INIT));
+ Free((yyvsp[(1) - (5)].map));
+ }
break;
- case 108:
-#line 623 "lev_comp.y" /* yacc.c:1646 */
+ case 103:
+
+/* Line 1455 of yacc.c */
+#line 589 "lev_comp.y"
{
- long n_items = (yyvsp[-1].i);
- variable_definitions =
- add_vardef_type(variable_definitions, (yyvsp[-4].map),
- SPOVAR_REGION | SPOVAR_ARRAY);
- add_opvars(splev, "iso",
- VA_PASS3(n_items, (yyvsp[-4].map), SPO_VAR_INIT));
- Free((yyvsp[-4].map));
- }
-#line 2819 "y.tab.c" /* yacc.c:1646 */
+ variable_definitions = add_vardef_type(variable_definitions, (yyvsp[(1) - (5)].map), SPOVAR_OBJ);
+ add_opvars(splev, "iso", VA_PASS3(0, (yyvsp[(1) - (5)].map), SPO_VAR_INIT));
+ Free((yyvsp[(1) - (5)].map));
+ }
break;
- case 109:
-#line 631 "lev_comp.y" /* yacc.c:1646 */
+ case 104:
+
+/* Line 1455 of yacc.c */
+#line 595 "lev_comp.y"
{
- long n_items = (yyvsp[-1].i);
- variable_definitions =
- add_vardef_type(variable_definitions, (yyvsp[-6].map),
- SPOVAR_MAPCHAR | SPOVAR_ARRAY);
- add_opvars(splev, "iso",
- VA_PASS3(n_items, (yyvsp[-6].map), SPO_VAR_INIT));
- Free((yyvsp[-6].map));
- }
-#line 2831 "y.tab.c" /* yacc.c:1646 */
+ variable_definitions = add_vardef_type(variable_definitions, (yyvsp[(1) - (3)].map), SPOVAR_COORD);
+ add_opvars(splev, "iso", VA_PASS3(0, (yyvsp[(1) - (3)].map), SPO_VAR_INIT));
+ Free((yyvsp[(1) - (3)].map));
+ }
break;
- case 110:
-#line 639 "lev_comp.y" /* yacc.c:1646 */
+ case 105:
+
+/* Line 1455 of yacc.c */
+#line 601 "lev_comp.y"
{
- long n_items = (yyvsp[-1].i);
- variable_definitions =
- add_vardef_type(variable_definitions, (yyvsp[-6].map),
- SPOVAR_MONST | SPOVAR_ARRAY);
- add_opvars(splev, "iso",
- VA_PASS3(n_items, (yyvsp[-6].map), SPO_VAR_INIT));
- Free((yyvsp[-6].map));
- }
-#line 2843 "y.tab.c" /* yacc.c:1646 */
+ variable_definitions = add_vardef_type(variable_definitions, (yyvsp[(1) - (3)].map), SPOVAR_REGION);
+ add_opvars(splev, "iso", VA_PASS3(0, (yyvsp[(1) - (3)].map), SPO_VAR_INIT));
+ Free((yyvsp[(1) - (3)].map));
+ }
break;
- case 111:
-#line 647 "lev_comp.y" /* yacc.c:1646 */
+ case 106:
+
+/* Line 1455 of yacc.c */
+#line 607 "lev_comp.y"
{
- long n_items = (yyvsp[-1].i);
- variable_definitions = add_vardef_type(
- variable_definitions, (yyvsp[-6].map), SPOVAR_OBJ | SPOVAR_ARRAY);
- add_opvars(splev, "iso",
- VA_PASS3(n_items, (yyvsp[-6].map), SPO_VAR_INIT));
- Free((yyvsp[-6].map));
- }
-#line 2855 "y.tab.c" /* yacc.c:1646 */
+ long n_items = (yyvsp[(4) - (5)].i);
+ variable_definitions = add_vardef_type(variable_definitions, (yyvsp[(1) - (5)].map), SPOVAR_INT|SPOVAR_ARRAY);
+ add_opvars(splev, "iso",
+ VA_PASS3(n_items, (yyvsp[(1) - (5)].map), SPO_VAR_INIT));
+ Free((yyvsp[(1) - (5)].map));
+ }
break;
- case 112:
-#line 655 "lev_comp.y" /* yacc.c:1646 */
+ case 107:
+
+/* Line 1455 of yacc.c */
+#line 615 "lev_comp.y"
{
- long n_items = (yyvsp[-1].i);
- variable_definitions =
- add_vardef_type(variable_definitions, (yyvsp[-4].map),
- SPOVAR_STRING | SPOVAR_ARRAY);
- add_opvars(splev, "iso",
- VA_PASS3(n_items, (yyvsp[-4].map), SPO_VAR_INIT));
- Free((yyvsp[-4].map));
- }
-#line 2867 "y.tab.c" /* yacc.c:1646 */
+ long n_items = (yyvsp[(4) - (5)].i);
+ variable_definitions = add_vardef_type(variable_definitions, (yyvsp[(1) - (5)].map), SPOVAR_COORD|SPOVAR_ARRAY);
+ add_opvars(splev, "iso",
+ VA_PASS3(n_items, (yyvsp[(1) - (5)].map), SPO_VAR_INIT));
+ Free((yyvsp[(1) - (5)].map));
+ }
break;
- case 113:
-#line 665 "lev_comp.y" /* yacc.c:1646 */
+ case 108:
+
+/* Line 1455 of yacc.c */
+#line 623 "lev_comp.y"
{
- add_opvars(splev, "O", VA_PASS1((yyvsp[0].i)));
- (yyval.i) = 1;
- }
-#line 2876 "y.tab.c" /* yacc.c:1646 */
+ long n_items = (yyvsp[(4) - (5)].i);
+ variable_definitions = add_vardef_type(variable_definitions, (yyvsp[(1) - (5)].map), SPOVAR_REGION|SPOVAR_ARRAY);
+ add_opvars(splev, "iso",
+ VA_PASS3(n_items, (yyvsp[(1) - (5)].map), SPO_VAR_INIT));
+ Free((yyvsp[(1) - (5)].map));
+ }
break;
- case 114:
-#line 670 "lev_comp.y" /* yacc.c:1646 */
+ case 109:
+
+/* Line 1455 of yacc.c */
+#line 631 "lev_comp.y"
{
- add_opvars(splev, "O", VA_PASS1((yyvsp[0].i)));
- (yyval.i) = 1 + (yyvsp[-2].i);
- }
-#line 2885 "y.tab.c" /* yacc.c:1646 */
+ long n_items = (yyvsp[(6) - (7)].i);
+ variable_definitions = add_vardef_type(variable_definitions, (yyvsp[(1) - (7)].map), SPOVAR_MAPCHAR|SPOVAR_ARRAY);
+ add_opvars(splev, "iso",
+ VA_PASS3(n_items, (yyvsp[(1) - (7)].map), SPO_VAR_INIT));
+ Free((yyvsp[(1) - (7)].map));
+ }
break;
- case 115:
-#line 677 "lev_comp.y" /* yacc.c:1646 */
+ case 110:
+
+/* Line 1455 of yacc.c */
+#line 639 "lev_comp.y"
{
- add_opvars(splev, "M", VA_PASS1((yyvsp[0].i)));
- (yyval.i) = 1;
- }
-#line 2894 "y.tab.c" /* yacc.c:1646 */
+ long n_items = (yyvsp[(6) - (7)].i);
+ variable_definitions = add_vardef_type(variable_definitions, (yyvsp[(1) - (7)].map), SPOVAR_MONST|SPOVAR_ARRAY);
+ add_opvars(splev, "iso",
+ VA_PASS3(n_items, (yyvsp[(1) - (7)].map), SPO_VAR_INIT));
+ Free((yyvsp[(1) - (7)].map));
+ }
break;
- case 116:
-#line 682 "lev_comp.y" /* yacc.c:1646 */
+ case 111:
+
+/* Line 1455 of yacc.c */
+#line 647 "lev_comp.y"
{
- add_opvars(splev, "M", VA_PASS1((yyvsp[0].i)));
- (yyval.i) = 1 + (yyvsp[-2].i);
- }
-#line 2903 "y.tab.c" /* yacc.c:1646 */
+ long n_items = (yyvsp[(6) - (7)].i);
+ variable_definitions = add_vardef_type(variable_definitions, (yyvsp[(1) - (7)].map), SPOVAR_OBJ|SPOVAR_ARRAY);
+ add_opvars(splev, "iso",
+ VA_PASS3(n_items, (yyvsp[(1) - (7)].map), SPO_VAR_INIT));
+ Free((yyvsp[(1) - (7)].map));
+ }
break;
- case 117:
-#line 689 "lev_comp.y" /* yacc.c:1646 */
+ case 112:
+
+/* Line 1455 of yacc.c */
+#line 655 "lev_comp.y"
{
- add_opvars(splev, "m", VA_PASS1((yyvsp[0].i)));
- (yyval.i) = 1;
- }
-#line 2912 "y.tab.c" /* yacc.c:1646 */
+ long n_items = (yyvsp[(4) - (5)].i);
+ variable_definitions = add_vardef_type(variable_definitions, (yyvsp[(1) - (5)].map), SPOVAR_STRING|SPOVAR_ARRAY);
+ add_opvars(splev, "iso",
+ VA_PASS3(n_items, (yyvsp[(1) - (5)].map), SPO_VAR_INIT));
+ Free((yyvsp[(1) - (5)].map));
+ }
+ break;
+
+ case 113:
+
+/* Line 1455 of yacc.c */
+#line 665 "lev_comp.y"
+ {
+ add_opvars(splev, "O", VA_PASS1((yyvsp[(1) - (1)].i)));
+ (yyval.i) = 1;
+ }
break;
- case 118:
-#line 694 "lev_comp.y" /* yacc.c:1646 */
+ case 114:
+
+/* Line 1455 of yacc.c */
+#line 670 "lev_comp.y"
{
- add_opvars(splev, "m", VA_PASS1((yyvsp[0].i)));
- (yyval.i) = 1 + (yyvsp[-2].i);
- }
-#line 2921 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "O", VA_PASS1((yyvsp[(3) - (3)].i)));
+ (yyval.i) = 1 + (yyvsp[(1) - (3)].i);
+ }
break;
- case 119:
-#line 701 "lev_comp.y" /* yacc.c:1646 */
+ case 115:
+
+/* Line 1455 of yacc.c */
+#line 677 "lev_comp.y"
{
- (yyval.i) = 1;
- }
-#line 2929 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "M", VA_PASS1((yyvsp[(1) - (1)].i)));
+ (yyval.i) = 1;
+ }
break;
- case 120:
-#line 705 "lev_comp.y" /* yacc.c:1646 */
+ case 116:
+
+/* Line 1455 of yacc.c */
+#line 682 "lev_comp.y"
{
- (yyval.i) = 1 + (yyvsp[-2].i);
- }
-#line 2937 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "M", VA_PASS1((yyvsp[(3) - (3)].i)));
+ (yyval.i) = 1 + (yyvsp[(1) - (3)].i);
+ }
break;
- case 121:
-#line 711 "lev_comp.y" /* yacc.c:1646 */
+ case 117:
+
+/* Line 1455 of yacc.c */
+#line 689 "lev_comp.y"
{
- add_opvars(splev, "c", VA_PASS1((yyvsp[0].i)));
- (yyval.i) = 1;
- }
-#line 2946 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "m", VA_PASS1((yyvsp[(1) - (1)].i)));
+ (yyval.i) = 1;
+ }
break;
- case 122:
-#line 716 "lev_comp.y" /* yacc.c:1646 */
+ case 118:
+
+/* Line 1455 of yacc.c */
+#line 694 "lev_comp.y"
{
- add_opvars(splev, "c", VA_PASS1((yyvsp[0].i)));
- (yyval.i) = 1 + (yyvsp[-2].i);
- }
-#line 2955 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "m", VA_PASS1((yyvsp[(3) - (3)].i)));
+ (yyval.i) = 1 + (yyvsp[(1) - (3)].i);
+ }
break;
- case 123:
-#line 723 "lev_comp.y" /* yacc.c:1646 */
+ case 119:
+
+/* Line 1455 of yacc.c */
+#line 701 "lev_comp.y"
{
- (yyval.i) = 1;
- }
-#line 2963 "y.tab.c" /* yacc.c:1646 */
+ (yyval.i) = 1;
+ }
break;
- case 124:
-#line 727 "lev_comp.y" /* yacc.c:1646 */
+ case 120:
+
+/* Line 1455 of yacc.c */
+#line 705 "lev_comp.y"
{
- (yyval.i) = 1 + (yyvsp[-2].i);
- }
-#line 2971 "y.tab.c" /* yacc.c:1646 */
+ (yyval.i) = 1 + (yyvsp[(1) - (3)].i);
+ }
break;
- case 125:
-#line 733 "lev_comp.y" /* yacc.c:1646 */
+ case 121:
+
+/* Line 1455 of yacc.c */
+#line 711 "lev_comp.y"
{
- (yyval.i) = 1;
- }
-#line 2979 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "c", VA_PASS1((yyvsp[(1) - (1)].i)));
+ (yyval.i) = 1;
+ }
break;
- case 126:
-#line 737 "lev_comp.y" /* yacc.c:1646 */
+ case 122:
+
+/* Line 1455 of yacc.c */
+#line 716 "lev_comp.y"
{
- (yyval.i) = 1 + (yyvsp[-2].i);
- }
-#line 2987 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "c", VA_PASS1((yyvsp[(3) - (3)].i)));
+ (yyval.i) = 1 + (yyvsp[(1) - (3)].i);
+ }
break;
- case 127:
-#line 743 "lev_comp.y" /* yacc.c:1646 */
+ case 123:
+
+/* Line 1455 of yacc.c */
+#line 723 "lev_comp.y"
{
- struct lc_funcdefs *funcdef;
+ (yyval.i) = 1;
+ }
+ break;
- if (in_function_definition)
- lc_error(
- "Recursively defined functions not allowed (function %s).",
- (yyvsp[-1].map));
+ case 124:
- in_function_definition++;
+/* Line 1455 of yacc.c */
+#line 727 "lev_comp.y"
+ {
+ (yyval.i) = 1 + (yyvsp[(1) - (3)].i);
+ }
+ break;
- if (funcdef_defined(function_definitions, (yyvsp[-1].map), 1))
- lc_error("Function '%s' already defined once.", (yyvsp[-1].map));
+ case 125:
- funcdef = funcdef_new(-1, (yyvsp[-1].map));
- funcdef->next = function_definitions;
- function_definitions = funcdef;
- function_splev_backup = splev;
- splev = &(funcdef->code);
- Free((yyvsp[-1].map));
- curr_function = funcdef;
- function_tmp_var_defs = variable_definitions;
- variable_definitions = NULL;
- }
-#line 3013 "y.tab.c" /* yacc.c:1646 */
+/* Line 1455 of yacc.c */
+#line 733 "lev_comp.y"
+ {
+ (yyval.i) = 1;
+ }
break;
- case 128:
-#line 765 "lev_comp.y" /* yacc.c:1646 */
+ case 126:
+
+/* Line 1455 of yacc.c */
+#line 737 "lev_comp.y"
{
- /* nothing */
- }
-#line 3021 "y.tab.c" /* yacc.c:1646 */
+ (yyval.i) = 1 + (yyvsp[(1) - (3)].i);
+ }
break;
- case 129:
-#line 769 "lev_comp.y" /* yacc.c:1646 */
+ case 127:
+
+/* Line 1455 of yacc.c */
+#line 743 "lev_comp.y"
{
- add_opvars(splev, "io", VA_PASS2(0, SPO_RETURN));
- splev = function_splev_backup;
- in_function_definition--;
- curr_function = NULL;
- vardef_free_all(variable_definitions);
- variable_definitions = function_tmp_var_defs;
- }
-#line 3034 "y.tab.c" /* yacc.c:1646 */
- break;
-
- case 130:
-#line 780 "lev_comp.y" /* yacc.c:1646 */
- {
- struct lc_funcdefs *tmpfunc;
- tmpfunc = funcdef_defined(function_definitions, (yyvsp[-3].map), 1);
- if (tmpfunc) {
- long l;
- long nparams = strlen((yyvsp[-1].map));
- char *fparamstr = funcdef_paramtypes(tmpfunc);
- if (strcmp((yyvsp[-1].map), fparamstr)) {
- char *tmps = strdup(decode_parm_str(fparamstr));
- lc_error(
- "Function '%s' requires params '%s', got '%s' instead.",
- (yyvsp[-3].map), tmps, decode_parm_str((yyvsp[-1].map)));
- Free(tmps);
- }
- Free(fparamstr);
- Free((yyvsp[-1].map));
- if (!(tmpfunc->n_called)) {
- /* we haven't called the function yet, so insert it in the
- * code */
- struct opvar *jmp = New(struct opvar);
- set_opvar_int(jmp, splev->n_opcodes + 1);
- add_opcode(splev, SPO_PUSH, jmp);
- add_opcode(
- splev,
- SPO_JMP, NULL); /* we must jump past it first, then CALL
- it, due to RETURN. */
-
- tmpfunc->addr = splev->n_opcodes;
-
- { /* init function parameter variables */
- struct lc_funcdefs_parm *tfp = tmpfunc->params;
- while (tfp) {
- add_opvars(splev, "iso",
- VA_PASS3(0, tfp->name, SPO_VAR_INIT));
- tfp = tfp->next;
- }
- }
-
- splev_add_from(splev, &(tmpfunc->code));
- set_opvar_int(jmp, splev->n_opcodes - jmp->vardata.l);
- }
- l = tmpfunc->addr - splev->n_opcodes - 2;
- add_opvars(splev, "iio", VA_PASS3(nparams, l, SPO_CALL));
- tmpfunc->n_called++;
- } else {
- lc_error("Function '%s' not defined.", (yyvsp[-3].map));
- }
- Free((yyvsp[-3].map));
- }
-#line 3084 "y.tab.c" /* yacc.c:1646 */
+ struct lc_funcdefs *funcdef;
+
+ if (in_function_definition)
+ lc_error("Recursively defined functions not allowed (function %s).", (yyvsp[(2) - (3)].map));
+
+ in_function_definition++;
+
+ if (funcdef_defined(function_definitions, (yyvsp[(2) - (3)].map), 1))
+ lc_error("Function '%s' already defined once.", (yyvsp[(2) - (3)].map));
+
+ funcdef = funcdef_new(-1, (yyvsp[(2) - (3)].map));
+ funcdef->next = function_definitions;
+ function_definitions = funcdef;
+ function_splev_backup = splev;
+ splev = &(funcdef->code);
+ Free((yyvsp[(2) - (3)].map));
+ curr_function = funcdef;
+ function_tmp_var_defs = variable_definitions;
+ variable_definitions = NULL;
+ }
break;
- case 131:
-#line 828 "lev_comp.y" /* yacc.c:1646 */
+ case 128:
+
+/* Line 1455 of yacc.c */
+#line 765 "lev_comp.y"
{
- add_opcode(splev, SPO_EXIT, NULL);
- }
-#line 3092 "y.tab.c" /* yacc.c:1646 */
+ /* nothing */
+ }
break;
- case 132:
-#line 834 "lev_comp.y" /* yacc.c:1646 */
+ case 129:
+
+/* Line 1455 of yacc.c */
+#line 769 "lev_comp.y"
{
- (yyval.i) = 100;
- }
-#line 3100 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "io", VA_PASS2(0, SPO_RETURN));
+ splev = function_splev_backup;
+ in_function_definition--;
+ curr_function = NULL;
+ vardef_free_all(variable_definitions);
+ variable_definitions = function_tmp_var_defs;
+ }
break;
- case 133:
-#line 838 "lev_comp.y" /* yacc.c:1646 */
+ case 130:
+
+/* Line 1455 of yacc.c */
+#line 780 "lev_comp.y"
{
- (yyval.i) = (yyvsp[0].i);
- }
-#line 3108 "y.tab.c" /* yacc.c:1646 */
+ struct lc_funcdefs *tmpfunc;
+ tmpfunc = funcdef_defined(function_definitions, (yyvsp[(1) - (4)].map), 1);
+ if (tmpfunc) {
+ long l;
+ long nparams = strlen( (yyvsp[(3) - (4)].map) );
+ char *fparamstr = funcdef_paramtypes(tmpfunc);
+ if (strcmp((yyvsp[(3) - (4)].map), fparamstr)) {
+ char *tmps = strdup(decode_parm_str(fparamstr));
+ lc_error("Function '%s' requires params '%s', got '%s' instead.", (yyvsp[(1) - (4)].map), tmps, decode_parm_str((yyvsp[(3) - (4)].map)));
+ Free(tmps);
+ }
+ Free(fparamstr);
+ Free((yyvsp[(3) - (4)].map));
+ if (!(tmpfunc->n_called)) {
+ /* we haven't called the function yet, so insert it in the code */
+ struct opvar *jmp = New(struct opvar);
+ set_opvar_int(jmp, splev->n_opcodes+1);
+ add_opcode(splev, SPO_PUSH, jmp);
+ add_opcode(splev, SPO_JMP, NULL); /* we must jump past it first, then CALL it, due to RETURN. */
+
+ tmpfunc->addr = splev->n_opcodes;
+
+ { /* init function parameter variables */
+ struct lc_funcdefs_parm *tfp = tmpfunc->params;
+ while (tfp) {
+ add_opvars(splev, "iso",
+ VA_PASS3(0, tfp->name,
+ SPO_VAR_INIT));
+ tfp = tfp->next;
+ }
+ }
+
+ splev_add_from(splev, &(tmpfunc->code));
+ set_opvar_int(jmp, splev->n_opcodes - jmp->vardata.l);
+ }
+ l = tmpfunc->addr - splev->n_opcodes - 2;
+ add_opvars(splev, "iio",
+ VA_PASS3(nparams, l, SPO_CALL));
+ tmpfunc->n_called++;
+ } else {
+ lc_error("Function '%s' not defined.", (yyvsp[(1) - (4)].map));
+ }
+ Free((yyvsp[(1) - (4)].map));
+ }
break;
- case 134:
-#line 844 "lev_comp.y" /* yacc.c:1646 */
+ case 131:
+
+/* Line 1455 of yacc.c */
+#line 828 "lev_comp.y"
{
- /* val > rn2(100) */
- add_opvars(splev, "iio", VA_PASS3((long) (yyvsp[0].i), 100, SPO_RN2));
- (yyval.i) = SPO_JG;
- }
-#line 3119 "y.tab.c" /* yacc.c:1646 */
+ add_opcode(splev, SPO_EXIT, NULL);
+ }
break;
- case 135:
-#line 851 "lev_comp.y" /* yacc.c:1646 */
+ case 132:
+
+/* Line 1455 of yacc.c */
+#line 834 "lev_comp.y"
{
- (yyval.i) = (yyvsp[-2].i);
- }
-#line 3127 "y.tab.c" /* yacc.c:1646 */
+ (yyval.i) = 100;
+ }
break;
- case 136:
-#line 855 "lev_comp.y" /* yacc.c:1646 */
+ case 133:
+
+/* Line 1455 of yacc.c */
+#line 838 "lev_comp.y"
{
- /* boolean, explicit foo != 0 */
- add_opvars(splev, "i", VA_PASS1(0));
- (yyval.i) = SPO_JNE;
- }
-#line 3137 "y.tab.c" /* yacc.c:1646 */
+ (yyval.i) = (yyvsp[(1) - (1)].i);
+ }
break;
- case 137:
-#line 863 "lev_comp.y" /* yacc.c:1646 */
+ case 134:
+
+/* Line 1455 of yacc.c */
+#line 844 "lev_comp.y"
{
- is_inconstant_number = 0;
- }
-#line 3145 "y.tab.c" /* yacc.c:1646 */
+ /* val > rn2(100) */
+ add_opvars(splev, "iio",
+ VA_PASS3((long)(yyvsp[(1) - (1)].i), 100, SPO_RN2));
+ (yyval.i) = SPO_JG;
+ }
break;
- case 138:
-#line 867 "lev_comp.y" /* yacc.c:1646 */
+ case 135:
+
+/* Line 1455 of yacc.c */
+#line 851 "lev_comp.y"
{
- struct opvar *chkjmp;
- if (in_switch_statement > 0)
- lc_error("Cannot nest switch-statements.");
+ (yyval.i) = (yyvsp[(3) - (5)].i);
+ }
+ break;
- in_switch_statement++;
+ case 136:
- n_switch_case_list = 0;
- switch_default_case = NULL;
+/* Line 1455 of yacc.c */
+#line 855 "lev_comp.y"
+ {
+ /* boolean, explicit foo != 0 */
+ add_opvars(splev, "i", VA_PASS1(0));
+ (yyval.i) = SPO_JNE;
+ }
+ break;
- if (!is_inconstant_number)
- add_opvars(splev, "o", VA_PASS1(SPO_RN2));
- is_inconstant_number = 0;
+ case 137:
- chkjmp = New(struct opvar);
- set_opvar_int(chkjmp, splev->n_opcodes + 1);
- switch_check_jump = chkjmp;
- add_opcode(splev, SPO_PUSH, chkjmp);
- add_opcode(splev, SPO_JMP, NULL);
- break_stmt_start();
- }
-#line 3171 "y.tab.c" /* yacc.c:1646 */
+/* Line 1455 of yacc.c */
+#line 863 "lev_comp.y"
+ {
+ is_inconstant_number = 0;
+ }
break;
- case 139:
-#line 889 "lev_comp.y" /* yacc.c:1646 */
+ case 138:
+
+/* Line 1455 of yacc.c */
+#line 867 "lev_comp.y"
{
- struct opvar *endjump = New(struct opvar);
- int i;
+ struct opvar *chkjmp;
+ if (in_switch_statement > 0)
+ lc_error("Cannot nest switch-statements.");
- set_opvar_int(endjump, splev->n_opcodes + 1);
+ in_switch_statement++;
- add_opcode(splev, SPO_PUSH, endjump);
- add_opcode(splev, SPO_JMP, NULL);
+ n_switch_case_list = 0;
+ switch_default_case = NULL;
- set_opvar_int(switch_check_jump,
- splev->n_opcodes - switch_check_jump->vardata.l);
+ if (!is_inconstant_number)
+ add_opvars(splev, "o", VA_PASS1(SPO_RN2));
+ is_inconstant_number = 0;
- for (i = 0; i < n_switch_case_list; i++) {
- add_opvars(splev, "oio",
- VA_PASS3(SPO_COPY, switch_case_value[i], SPO_CMP));
- set_opvar_int(switch_case_list[i], switch_case_list[i]->vardata.l
- - splev->n_opcodes - 1);
- add_opcode(splev, SPO_PUSH, switch_case_list[i]);
- add_opcode(splev, SPO_JE, NULL);
- }
+ chkjmp = New(struct opvar);
+ set_opvar_int(chkjmp, splev->n_opcodes+1);
+ switch_check_jump = chkjmp;
+ add_opcode(splev, SPO_PUSH, chkjmp);
+ add_opcode(splev, SPO_JMP, NULL);
+ break_stmt_start();
+ }
+ break;
+
+ case 139:
- if (switch_default_case) {
- set_opvar_int(switch_default_case, switch_default_case->vardata.l
- - splev->n_opcodes - 1);
- add_opcode(splev, SPO_PUSH, switch_default_case);
- add_opcode(splev, SPO_JMP, NULL);
- }
+/* Line 1455 of yacc.c */
+#line 889 "lev_comp.y"
+ {
+ struct opvar *endjump = New(struct opvar);
+ int i;
- set_opvar_int(endjump, splev->n_opcodes - endjump->vardata.l);
+ set_opvar_int(endjump, splev->n_opcodes+1);
- break_stmt_end(splev);
+ add_opcode(splev, SPO_PUSH, endjump);
+ add_opcode(splev, SPO_JMP, NULL);
- add_opcode(splev, SPO_POP, NULL); /* get rid of the value in stack */
- in_switch_statement--;
+ set_opvar_int(switch_check_jump,
+ splev->n_opcodes - switch_check_jump->vardata.l);
- }
-#line 3214 "y.tab.c" /* yacc.c:1646 */
+ for (i = 0; i < n_switch_case_list; i++) {
+ add_opvars(splev, "oio",
+ VA_PASS3(SPO_COPY,
+ switch_case_value[i], SPO_CMP));
+ set_opvar_int(switch_case_list[i],
+ switch_case_list[i]->vardata.l - splev->n_opcodes-1);
+ add_opcode(splev, SPO_PUSH, switch_case_list[i]);
+ add_opcode(splev, SPO_JE, NULL);
+ }
+
+ if (switch_default_case) {
+ set_opvar_int(switch_default_case,
+ switch_default_case->vardata.l - splev->n_opcodes-1);
+ add_opcode(splev, SPO_PUSH, switch_default_case);
+ add_opcode(splev, SPO_JMP, NULL);
+ }
+
+ set_opvar_int(endjump, splev->n_opcodes - endjump->vardata.l);
+
+ break_stmt_end(splev);
+
+ add_opcode(splev, SPO_POP, NULL); /* get rid of the value in stack */
+ in_switch_statement--;
+
+
+ }
break;
- case 142:
-#line 934 "lev_comp.y" /* yacc.c:1646 */
+ case 142:
+
+/* Line 1455 of yacc.c */
+#line 934 "lev_comp.y"
{
- if (n_switch_case_list < MAX_SWITCH_CASES) {
- struct opvar *tmppush = New(struct opvar);
- set_opvar_int(tmppush, splev->n_opcodes);
- switch_case_value[n_switch_case_list] = (yyvsp[-1].i);
- switch_case_list[n_switch_case_list++] = tmppush;
- } else
- lc_error("Too many cases in a switch.");
- }
-#line 3227 "y.tab.c" /* yacc.c:1646 */
+ if (n_switch_case_list < MAX_SWITCH_CASES) {
+ struct opvar *tmppush = New(struct opvar);
+ set_opvar_int(tmppush, splev->n_opcodes);
+ switch_case_value[n_switch_case_list] = (yyvsp[(2) - (3)].i);
+ switch_case_list[n_switch_case_list++] = tmppush;
+ } else lc_error("Too many cases in a switch.");
+ }
break;
- case 143:
-#line 943 "lev_comp.y" /* yacc.c:1646 */
+ case 143:
+
+/* Line 1455 of yacc.c */
+#line 943 "lev_comp.y"
{
- }
-#line 3234 "y.tab.c" /* yacc.c:1646 */
+ }
break;
- case 144:
-#line 946 "lev_comp.y" /* yacc.c:1646 */
+ case 144:
+
+/* Line 1455 of yacc.c */
+#line 946 "lev_comp.y"
{
- struct opvar *tmppush = New(struct opvar);
+ struct opvar *tmppush = New(struct opvar);
- if (switch_default_case)
- lc_error("Switch default case already used.");
+ if (switch_default_case)
+ lc_error("Switch default case already used.");
- set_opvar_int(tmppush, splev->n_opcodes);
- switch_default_case = tmppush;
- }
-#line 3248 "y.tab.c" /* yacc.c:1646 */
+ set_opvar_int(tmppush, splev->n_opcodes);
+ switch_default_case = tmppush;
+ }
break;
- case 145:
-#line 956 "lev_comp.y" /* yacc.c:1646 */
+ case 145:
+
+/* Line 1455 of yacc.c */
+#line 956 "lev_comp.y"
{
- }
-#line 3255 "y.tab.c" /* yacc.c:1646 */
+ }
break;
- case 146:
-#line 961 "lev_comp.y" /* yacc.c:1646 */
+ case 146:
+
+/* Line 1455 of yacc.c */
+#line 961 "lev_comp.y"
{
- if (!allow_break_statements)
- lc_error("Cannot use BREAK outside a statement block.");
- else {
- break_stmt_new(splev, splev->n_opcodes);
- }
- }
-#line 3267 "y.tab.c" /* yacc.c:1646 */
+ if (!allow_break_statements)
+ lc_error("Cannot use BREAK outside a statement block.");
+ else {
+ break_stmt_new(splev, splev->n_opcodes);
+ }
+ }
break;
- case 149:
-#line 975 "lev_comp.y" /* yacc.c:1646 */
+ case 149:
+
+/* Line 1455 of yacc.c */
+#line 975 "lev_comp.y"
{
- char buf[256], buf2[256];
+ char buf[256], buf2[256];
- if (n_forloops >= MAX_NESTED_IFS) {
- lc_error("FOR: Too deeply nested loops.");
- n_forloops = MAX_NESTED_IFS - 1;
- }
+ if (n_forloops >= MAX_NESTED_IFS) {
+ lc_error("FOR: Too deeply nested loops.");
+ n_forloops = MAX_NESTED_IFS - 1;
+ }
- /* first, define a variable for the for-loop end value */
- snprintf(buf, 255, "%s end", (yyvsp[-4].map));
- /* the value of which is already in stack (the 2nd math_expr) */
- add_opvars(splev, "iso", VA_PASS3(0, buf, SPO_VAR_INIT));
+ /* first, define a variable for the for-loop end value */
+ snprintf(buf, 255, "%s end", (yyvsp[(2) - (6)].map));
+ /* the value of which is already in stack (the 2nd math_expr) */
+ add_opvars(splev, "iso", VA_PASS3(0, buf, SPO_VAR_INIT));
- variable_definitions = add_vardef_type(variable_definitions,
- (yyvsp[-4].map), SPOVAR_INT);
- /* define the for-loop variable. value is in stack (1st math_expr) */
- add_opvars(splev, "iso", VA_PASS3(0, (yyvsp[-4].map), SPO_VAR_INIT));
+ variable_definitions = add_vardef_type(variable_definitions,
+ (yyvsp[(2) - (6)].map), SPOVAR_INT);
+ /* define the for-loop variable. value is in stack (1st math_expr) */
+ add_opvars(splev, "iso", VA_PASS3(0, (yyvsp[(2) - (6)].map), SPO_VAR_INIT));
- /* calculate value for the loop "step" variable */
- snprintf(buf2, 255, "%s step", (yyvsp[-4].map));
- /* end - start */
- add_opvars(splev, "vvo",
- VA_PASS3(buf, (yyvsp[-4].map), SPO_MATH_SUB));
- /* sign of that */
- add_opvars(splev, "o", VA_PASS1(SPO_MATH_SIGN));
- /* save the sign into the step var */
- add_opvars(splev, "iso", VA_PASS3(0, buf2, SPO_VAR_INIT));
+ /* calculate value for the loop "step" variable */
+ snprintf(buf2, 255, "%s step", (yyvsp[(2) - (6)].map));
+ /* end - start */
+ add_opvars(splev, "vvo",
+ VA_PASS3(buf, (yyvsp[(2) - (6)].map), SPO_MATH_SUB));
+ /* sign of that */
+ add_opvars(splev, "o", VA_PASS1(SPO_MATH_SIGN));
+ /* save the sign into the step var */
+ add_opvars(splev, "iso",
+ VA_PASS3(0, buf2, SPO_VAR_INIT));
- forloop_list[n_forloops].varname = strdup((yyvsp[-4].map));
- forloop_list[n_forloops].jmp_point = splev->n_opcodes;
+ forloop_list[n_forloops].varname = strdup((yyvsp[(2) - (6)].map));
+ forloop_list[n_forloops].jmp_point = splev->n_opcodes;
- n_forloops++;
- Free((yyvsp[-4].map));
- }
-#line 3307 "y.tab.c" /* yacc.c:1646 */
+ n_forloops++;
+ Free((yyvsp[(2) - (6)].map));
+ }
break;
- case 150:
-#line 1013 "lev_comp.y" /* yacc.c:1646 */
+ case 150:
+
+/* Line 1455 of yacc.c */
+#line 1013 "lev_comp.y"
{
- /* nothing */
- break_stmt_start();
- }
-#line 3316 "y.tab.c" /* yacc.c:1646 */
- break;
-
- case 151:
-#line 1018 "lev_comp.y" /* yacc.c:1646 */
- {
- char buf[256], buf2[256];
- n_forloops--;
- snprintf(buf, 255, "%s step", forloop_list[n_forloops].varname);
- snprintf(buf2, 255, "%s end", forloop_list[n_forloops].varname);
- /* compare for-loop var to end value */
- add_opvars(splev, "vvo",
- VA_PASS3(forloop_list[n_forloops].varname, buf2, SPO_CMP));
- /* var + step */
- add_opvars(
- splev, "vvo",
- VA_PASS3(buf, forloop_list[n_forloops].varname, SPO_MATH_ADD));
- /* for-loop var = (for-loop var + step) */
- add_opvars(splev, "iso", VA_PASS3(0, forloop_list[n_forloops].varname,
- SPO_VAR_INIT));
- /* jump back if compared values were not equal */
- add_opvars(splev, "io", VA_PASS2(forloop_list[n_forloops].jmp_point
- - splev->n_opcodes - 1,
- SPO_JNE));
- Free(forloop_list[n_forloops].varname);
- break_stmt_end(splev);
- }
-#line 3346 "y.tab.c" /* yacc.c:1646 */
+ /* nothing */
+ break_stmt_start();
+ }
break;
- case 152:
-#line 1046 "lev_comp.y" /* yacc.c:1646 */
+ case 151:
+
+/* Line 1455 of yacc.c */
+#line 1018 "lev_comp.y"
{
- struct opvar *tmppush = New(struct opvar);
+ char buf[256], buf2[256];
+ n_forloops--;
+ snprintf(buf, 255, "%s step", forloop_list[n_forloops].varname);
+ snprintf(buf2, 255, "%s end", forloop_list[n_forloops].varname);
+ /* compare for-loop var to end value */
+ add_opvars(splev, "vvo",
+ VA_PASS3(forloop_list[n_forloops].varname,
+ buf2, SPO_CMP));
+ /* var + step */
+ add_opvars(splev, "vvo",
+ VA_PASS3(buf, forloop_list[n_forloops].varname,
+ SPO_MATH_ADD));
+ /* for-loop var = (for-loop var + step) */
+ add_opvars(splev, "iso",
+ VA_PASS3(0, forloop_list[n_forloops].varname,
+ SPO_VAR_INIT));
+ /* jump back if compared values were not equal */
+ add_opvars(splev, "io",
+ VA_PASS2(
+ forloop_list[n_forloops].jmp_point - splev->n_opcodes - 1,
+ SPO_JNE));
+ Free(forloop_list[n_forloops].varname);
+ break_stmt_end(splev);
+ }
+ break;
- if (n_if_list >= MAX_NESTED_IFS) {
- lc_error("LOOP: Too deeply nested conditionals.");
- n_if_list = MAX_NESTED_IFS - 1;
- }
- set_opvar_int(tmppush, splev->n_opcodes);
- if_list[n_if_list++] = tmppush;
+ case 152:
- add_opvars(splev, "o", VA_PASS1(SPO_DEC));
- break_stmt_start();
- }
-#line 3364 "y.tab.c" /* yacc.c:1646 */
+/* Line 1455 of yacc.c */
+#line 1046 "lev_comp.y"
+ {
+ struct opvar *tmppush = New(struct opvar);
+
+ if (n_if_list >= MAX_NESTED_IFS) {
+ lc_error("LOOP: Too deeply nested conditionals.");
+ n_if_list = MAX_NESTED_IFS - 1;
+ }
+ set_opvar_int(tmppush, splev->n_opcodes);
+ if_list[n_if_list++] = tmppush;
+
+ add_opvars(splev, "o", VA_PASS1(SPO_DEC));
+ break_stmt_start();
+ }
break;
- case 153:
-#line 1060 "lev_comp.y" /* yacc.c:1646 */
+ case 153:
+
+/* Line 1455 of yacc.c */
+#line 1060 "lev_comp.y"
{
- struct opvar *tmppush;
+ struct opvar *tmppush;
- add_opvars(splev, "oio", VA_PASS3(SPO_COPY, 0, SPO_CMP));
+ add_opvars(splev, "oio", VA_PASS3(SPO_COPY, 0, SPO_CMP));
- tmppush = (struct opvar *) if_list[--n_if_list];
- set_opvar_int(tmppush, tmppush->vardata.l - splev->n_opcodes - 1);
- add_opcode(splev, SPO_PUSH, tmppush);
- add_opcode(splev, SPO_JG, NULL);
- add_opcode(splev, SPO_POP,
- NULL); /* get rid of the count value in stack */
- break_stmt_end(splev);
- }
-#line 3381 "y.tab.c" /* yacc.c:1646 */
+ tmppush = (struct opvar *) if_list[--n_if_list];
+ set_opvar_int(tmppush, tmppush->vardata.l - splev->n_opcodes-1);
+ add_opcode(splev, SPO_PUSH, tmppush);
+ add_opcode(splev, SPO_JG, NULL);
+ add_opcode(splev, SPO_POP, NULL); /* get rid of the count value in stack */
+ break_stmt_end(splev);
+ }
break;
- case 154:
-#line 1075 "lev_comp.y" /* yacc.c:1646 */
+ case 154:
+
+/* Line 1455 of yacc.c */
+#line 1075 "lev_comp.y"
{
- struct opvar *tmppush2 = New(struct opvar);
+ struct opvar *tmppush2 = New(struct opvar);
- if (n_if_list >= MAX_NESTED_IFS) {
- lc_error("IF: Too deeply nested conditionals.");
- n_if_list = MAX_NESTED_IFS - 1;
- }
+ if (n_if_list >= MAX_NESTED_IFS) {
+ lc_error("IF: Too deeply nested conditionals.");
+ n_if_list = MAX_NESTED_IFS - 1;
+ }
- add_opcode(splev, SPO_CMP, NULL);
+ add_opcode(splev, SPO_CMP, NULL);
- set_opvar_int(tmppush2, splev->n_opcodes + 1);
+ set_opvar_int(tmppush2, splev->n_opcodes+1);
- if_list[n_if_list++] = tmppush2;
+ if_list[n_if_list++] = tmppush2;
- add_opcode(splev, SPO_PUSH, tmppush2);
+ add_opcode(splev, SPO_PUSH, tmppush2);
- add_opcode(splev, reverse_jmp_opcode((yyvsp[-1].i)), NULL);
+ add_opcode(splev, reverse_jmp_opcode( (yyvsp[(1) - (2)].i) ), NULL);
- }
-#line 3405 "y.tab.c" /* yacc.c:1646 */
+ }
break;
- case 155:
-#line 1095 "lev_comp.y" /* yacc.c:1646 */
+ case 155:
+
+/* Line 1455 of yacc.c */
+#line 1095 "lev_comp.y"
{
- if (n_if_list > 0) {
- struct opvar *tmppush;
- tmppush = (struct opvar *) if_list[--n_if_list];
- set_opvar_int(tmppush, splev->n_opcodes - tmppush->vardata.l);
- } else
- lc_error("IF: Huh?! No start address?");
- }
-#line 3417 "y.tab.c" /* yacc.c:1646 */
+ if (n_if_list > 0) {
+ struct opvar *tmppush;
+ tmppush = (struct opvar *) if_list[--n_if_list];
+ set_opvar_int(tmppush, splev->n_opcodes - tmppush->vardata.l);
+ } else lc_error("IF: Huh?! No start address?");
+ }
break;
- case 156:
-#line 1105 "lev_comp.y" /* yacc.c:1646 */
+ case 156:
+
+/* Line 1455 of yacc.c */
+#line 1105 "lev_comp.y"
{
- struct opvar *tmppush2 = New(struct opvar);
+ struct opvar *tmppush2 = New(struct opvar);
- if (n_if_list >= MAX_NESTED_IFS) {
- lc_error("IF: Too deeply nested conditionals.");
- n_if_list = MAX_NESTED_IFS - 1;
- }
+ if (n_if_list >= MAX_NESTED_IFS) {
+ lc_error("IF: Too deeply nested conditionals.");
+ n_if_list = MAX_NESTED_IFS - 1;
+ }
- add_opcode(splev, SPO_CMP, NULL);
+ add_opcode(splev, SPO_CMP, NULL);
- set_opvar_int(tmppush2, splev->n_opcodes + 1);
+ set_opvar_int(tmppush2, splev->n_opcodes+1);
- if_list[n_if_list++] = tmppush2;
+ if_list[n_if_list++] = tmppush2;
- add_opcode(splev, SPO_PUSH, tmppush2);
+ add_opcode(splev, SPO_PUSH, tmppush2);
- add_opcode(splev, reverse_jmp_opcode((yyvsp[0].i)), NULL);
+ add_opcode(splev, reverse_jmp_opcode( (yyvsp[(2) - (2)].i) ), NULL);
- }
-#line 3441 "y.tab.c" /* yacc.c:1646 */
+ }
break;
- case 157:
-#line 1125 "lev_comp.y" /* yacc.c:1646 */
+ case 157:
+
+/* Line 1455 of yacc.c */
+#line 1125 "lev_comp.y"
{
- /* do nothing */
- }
-#line 3449 "y.tab.c" /* yacc.c:1646 */
+ /* do nothing */
+ }
break;
- case 158:
-#line 1131 "lev_comp.y" /* yacc.c:1646 */
+ case 158:
+
+/* Line 1455 of yacc.c */
+#line 1131 "lev_comp.y"
{
- if (n_if_list > 0) {
- struct opvar *tmppush;
- tmppush = (struct opvar *) if_list[--n_if_list];
- set_opvar_int(tmppush, splev->n_opcodes - tmppush->vardata.l);
- } else
- lc_error("IF: Huh?! No start address?");
- }
-#line 3461 "y.tab.c" /* yacc.c:1646 */
+ if (n_if_list > 0) {
+ struct opvar *tmppush;
+ tmppush = (struct opvar *) if_list[--n_if_list];
+ set_opvar_int(tmppush, splev->n_opcodes - tmppush->vardata.l);
+ } else lc_error("IF: Huh?! No start address?");
+ }
break;
- case 159:
-#line 1139 "lev_comp.y" /* yacc.c:1646 */
+ case 159:
+
+/* Line 1455 of yacc.c */
+#line 1139 "lev_comp.y"
{
- if (n_if_list > 0) {
- struct opvar *tmppush = New(struct opvar);
- struct opvar *tmppush2;
+ if (n_if_list > 0) {
+ struct opvar *tmppush = New(struct opvar);
+ struct opvar *tmppush2;
- set_opvar_int(tmppush, splev->n_opcodes + 1);
- add_opcode(splev, SPO_PUSH, tmppush);
+ set_opvar_int(tmppush, splev->n_opcodes+1);
+ add_opcode(splev, SPO_PUSH, tmppush);
- add_opcode(splev, SPO_JMP, NULL);
+ add_opcode(splev, SPO_JMP, NULL);
- tmppush2 = (struct opvar *) if_list[--n_if_list];
+ tmppush2 = (struct opvar *) if_list[--n_if_list];
- set_opvar_int(tmppush2, splev->n_opcodes - tmppush2->vardata.l);
- if_list[n_if_list++] = tmppush;
- } else
- lc_error("IF: Huh?! No else-part address?");
- }
-#line 3482 "y.tab.c" /* yacc.c:1646 */
+ set_opvar_int(tmppush2, splev->n_opcodes - tmppush2->vardata.l);
+ if_list[n_if_list++] = tmppush;
+ } else lc_error("IF: Huh?! No else-part address?");
+ }
break;
- case 160:
-#line 1156 "lev_comp.y" /* yacc.c:1646 */
+ case 160:
+
+/* Line 1455 of yacc.c */
+#line 1156 "lev_comp.y"
{
- if (n_if_list > 0) {
- struct opvar *tmppush;
- tmppush = (struct opvar *) if_list[--n_if_list];
- set_opvar_int(tmppush, splev->n_opcodes - tmppush->vardata.l);
- } else
- lc_error("IF: Huh?! No end address?");
- }
-#line 3494 "y.tab.c" /* yacc.c:1646 */
+ if (n_if_list > 0) {
+ struct opvar *tmppush;
+ tmppush = (struct opvar *) if_list[--n_if_list];
+ set_opvar_int(tmppush, splev->n_opcodes - tmppush->vardata.l);
+ } else lc_error("IF: Huh?! No end address?");
+ }
break;
- case 161:
-#line 1166 "lev_comp.y" /* yacc.c:1646 */
+ case 161:
+
+/* Line 1455 of yacc.c */
+#line 1166 "lev_comp.y"
{
- add_opvars(splev, "o", VA_PASS1(SPO_MESSAGE));
- }
-#line 3502 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "o", VA_PASS1(SPO_MESSAGE));
+ }
break;
- case 162:
-#line 1172 "lev_comp.y" /* yacc.c:1646 */
+ case 162:
+
+/* Line 1455 of yacc.c */
+#line 1172 "lev_comp.y"
{
- add_opvars(splev, "iiiiiio",
- VA_PASS7(-1, 0, -1, -1, -1, -1, SPO_CORRIDOR));
- }
-#line 3511 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "iiiiiio",
+ VA_PASS7(-1, 0, -1, -1, -1, -1, SPO_CORRIDOR));
+ }
break;
- case 163:
-#line 1177 "lev_comp.y" /* yacc.c:1646 */
+ case 163:
+
+/* Line 1455 of yacc.c */
+#line 1177 "lev_comp.y"
{
- add_opvars(splev, "iiiiiio",
- VA_PASS7(-1, (yyvsp[0].i), -1, -1, -1, -1, SPO_CORRIDOR));
- }
-#line 3520 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "iiiiiio",
+ VA_PASS7(-1, (yyvsp[(3) - (3)].i), -1, -1, -1, -1, SPO_CORRIDOR));
+ }
break;
- case 164:
-#line 1182 "lev_comp.y" /* yacc.c:1646 */
+ case 164:
+
+/* Line 1455 of yacc.c */
+#line 1182 "lev_comp.y"
{
- add_opvars(splev, "iiiiiio",
- VA_PASS7(-1, -1, -1, -1, -1, -1, SPO_CORRIDOR));
- }
-#line 3529 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "iiiiiio",
+ VA_PASS7(-1, -1, -1, -1, -1, -1, SPO_CORRIDOR));
+ }
break;
- case 165:
-#line 1189 "lev_comp.y" /* yacc.c:1646 */
+ case 165:
+
+/* Line 1455 of yacc.c */
+#line 1189 "lev_comp.y"
{
- add_opvars(splev, "iiiiiio",
- VA_PASS7((yyvsp[-2].corpos).room, (yyvsp[-2].corpos).door,
- (yyvsp[-2].corpos).wall, (yyvsp[0].corpos).room,
- (yyvsp[0].corpos).door, (yyvsp[0].corpos).wall,
- SPO_CORRIDOR));
- }
-#line 3540 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "iiiiiio",
+ VA_PASS7((yyvsp[(3) - (5)].corpos).room, (yyvsp[(3) - (5)].corpos).door, (yyvsp[(3) - (5)].corpos).wall,
+ (yyvsp[(5) - (5)].corpos).room, (yyvsp[(5) - (5)].corpos).door, (yyvsp[(5) - (5)].corpos).wall,
+ SPO_CORRIDOR));
+ }
break;
- case 166:
-#line 1196 "lev_comp.y" /* yacc.c:1646 */
+ case 166:
+
+/* Line 1455 of yacc.c */
+#line 1196 "lev_comp.y"
{
- add_opvars(splev, "iiiiiio",
- VA_PASS7((yyvsp[-2].corpos).room, (yyvsp[-2].corpos).door,
- (yyvsp[-2].corpos).wall, -1, -1,
- (long) (yyvsp[0].i), SPO_CORRIDOR));
- }
-#line 3551 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "iiiiiio",
+ VA_PASS7((yyvsp[(3) - (5)].corpos).room, (yyvsp[(3) - (5)].corpos).door, (yyvsp[(3) - (5)].corpos).wall,
+ -1, -1, (long)(yyvsp[(5) - (5)].i),
+ SPO_CORRIDOR));
+ }
break;
- case 167:
-#line 1205 "lev_comp.y" /* yacc.c:1646 */
+ case 167:
+
+/* Line 1455 of yacc.c */
+#line 1205 "lev_comp.y"
{
- (yyval.corpos).room = (yyvsp[-5].i);
- (yyval.corpos).wall = (yyvsp[-3].i);
- (yyval.corpos).door = (yyvsp[-1].i);
- }
-#line 3561 "y.tab.c" /* yacc.c:1646 */
+ (yyval.corpos).room = (yyvsp[(2) - (7)].i);
+ (yyval.corpos).wall = (yyvsp[(4) - (7)].i);
+ (yyval.corpos).door = (yyvsp[(6) - (7)].i);
+ }
break;
- case 168:
-#line 1213 "lev_comp.y" /* yacc.c:1646 */
+ case 168:
+
+/* Line 1455 of yacc.c */
+#line 1213 "lev_comp.y"
{
- if (((yyvsp[-2].i) < 100) && ((yyvsp[-3].i) == OROOM))
- lc_error("Only typed rooms can have a chance.");
- else {
- add_opvars(splev, "iii",
- VA_PASS3((long) (yyvsp[-3].i), (long) (yyvsp[-2].i),
- (long) (yyvsp[0].i)));
- }
- }
-#line 3574 "y.tab.c" /* yacc.c:1646 */
+ if (((yyvsp[(2) - (4)].i) < 100) && ((yyvsp[(1) - (4)].i) == OROOM))
+ lc_error("Only typed rooms can have a chance.");
+ else {
+ add_opvars(splev, "iii",
+ VA_PASS3((long)(yyvsp[(1) - (4)].i), (long)(yyvsp[(2) - (4)].i), (long)(yyvsp[(4) - (4)].i)));
+ }
+ }
break;
- case 169:
-#line 1224 "lev_comp.y" /* yacc.c:1646 */
+ case 169:
+
+/* Line 1455 of yacc.c */
+#line 1224 "lev_comp.y"
{
- long rflags = (yyvsp[0].i);
+ long rflags = (yyvsp[(8) - (8)].i);
- if (rflags == -1)
- rflags = (1 << 0);
- add_opvars(splev, "iiiiiiio",
- VA_PASS8(rflags, ERR, ERR, (yyvsp[-3].crd).x,
- (yyvsp[-3].crd).y, (yyvsp[-1].sze).width,
- (yyvsp[-1].sze).height, SPO_SUBROOM));
- break_stmt_start();
- }
-#line 3589 "y.tab.c" /* yacc.c:1646 */
+ if (rflags == -1) rflags = (1 << 0);
+ add_opvars(splev, "iiiiiiio",
+ VA_PASS8(rflags, ERR, ERR,
+ (yyvsp[(5) - (8)].crd).x, (yyvsp[(5) - (8)].crd).y, (yyvsp[(7) - (8)].sze).width, (yyvsp[(7) - (8)].sze).height,
+ SPO_SUBROOM));
+ break_stmt_start();
+ }
break;
- case 170:
-#line 1235 "lev_comp.y" /* yacc.c:1646 */
+ case 170:
+
+/* Line 1455 of yacc.c */
+#line 1235 "lev_comp.y"
{
- break_stmt_end(splev);
- add_opcode(splev, SPO_ENDROOM, NULL);
- }
-#line 3598 "y.tab.c" /* yacc.c:1646 */
+ break_stmt_end(splev);
+ add_opcode(splev, SPO_ENDROOM, NULL);
+ }
break;
- case 171:
-#line 1242 "lev_comp.y" /* yacc.c:1646 */
+ case 171:
+
+/* Line 1455 of yacc.c */
+#line 1242 "lev_comp.y"
{
- long rflags = (yyvsp[-2].i);
+ long rflags = (yyvsp[(8) - (10)].i);
- if (rflags == -1)
- rflags = (1 << 0);
- add_opvars(splev, "iiiiiiio",
- VA_PASS8(rflags, (yyvsp[-3].crd).x, (yyvsp[-3].crd).y,
- (yyvsp[-5].crd).x, (yyvsp[-5].crd).y,
- (yyvsp[-1].sze).width, (yyvsp[-1].sze).height,
- SPO_ROOM));
- break_stmt_start();
- }
-#line 3613 "y.tab.c" /* yacc.c:1646 */
+ if (rflags == -1) rflags = (1 << 0);
+ add_opvars(splev, "iiiiiiio",
+ VA_PASS8(rflags,
+ (yyvsp[(7) - (10)].crd).x, (yyvsp[(7) - (10)].crd).y, (yyvsp[(5) - (10)].crd).x, (yyvsp[(5) - (10)].crd).y,
+ (yyvsp[(9) - (10)].sze).width, (yyvsp[(9) - (10)].sze).height, SPO_ROOM));
+ break_stmt_start();
+ }
break;
- case 172:
-#line 1253 "lev_comp.y" /* yacc.c:1646 */
+ case 172:
+
+/* Line 1455 of yacc.c */
+#line 1253 "lev_comp.y"
{
- break_stmt_end(splev);
- add_opcode(splev, SPO_ENDROOM, NULL);
- }
-#line 3622 "y.tab.c" /* yacc.c:1646 */
+ break_stmt_end(splev);
+ add_opcode(splev, SPO_ENDROOM, NULL);
+ }
break;
- case 173:
-#line 1260 "lev_comp.y" /* yacc.c:1646 */
+ case 173:
+
+/* Line 1455 of yacc.c */
+#line 1260 "lev_comp.y"
{
- (yyval.i) = 1;
- }
-#line 3630 "y.tab.c" /* yacc.c:1646 */
+ (yyval.i) = 1;
+ }
break;
- case 174:
-#line 1264 "lev_comp.y" /* yacc.c:1646 */
+ case 174:
+
+/* Line 1455 of yacc.c */
+#line 1264 "lev_comp.y"
{
- (yyval.i) = (yyvsp[0].i);
- }
-#line 3638 "y.tab.c" /* yacc.c:1646 */
+ (yyval.i) = (yyvsp[(2) - (2)].i);
+ }
break;
- case 175:
-#line 1270 "lev_comp.y" /* yacc.c:1646 */
+ case 175:
+
+/* Line 1455 of yacc.c */
+#line 1270 "lev_comp.y"
{
- if ((yyvsp[-3].i) < 1 || (yyvsp[-3].i) > 5 || (yyvsp[-1].i) < 1
- || (yyvsp[-1].i) > 5) {
- lc_error("Room positions should be between 1-5: (%li,%li)!",
- (yyvsp[-3].i), (yyvsp[-1].i));
- } else {
- (yyval.crd).x = (yyvsp[-3].i);
- (yyval.crd).y = (yyvsp[-1].i);
- }
- }
-#line 3652 "y.tab.c" /* yacc.c:1646 */
+ if ( (yyvsp[(2) - (5)].i) < 1 || (yyvsp[(2) - (5)].i) > 5 ||
+ (yyvsp[(4) - (5)].i) < 1 || (yyvsp[(4) - (5)].i) > 5 ) {
+ lc_error("Room positions should be between 1-5: (%li,%li)!", (yyvsp[(2) - (5)].i), (yyvsp[(4) - (5)].i));
+ } else {
+ (yyval.crd).x = (yyvsp[(2) - (5)].i);
+ (yyval.crd).y = (yyvsp[(4) - (5)].i);
+ }
+ }
break;
- case 176:
-#line 1280 "lev_comp.y" /* yacc.c:1646 */
+ case 176:
+
+/* Line 1455 of yacc.c */
+#line 1280 "lev_comp.y"
{
- (yyval.crd).x = (yyval.crd).y = ERR;
- }
-#line 3660 "y.tab.c" /* yacc.c:1646 */
+ (yyval.crd).x = (yyval.crd).y = ERR;
+ }
break;
- case 177:
-#line 1286 "lev_comp.y" /* yacc.c:1646 */
+ case 177:
+
+/* Line 1455 of yacc.c */
+#line 1286 "lev_comp.y"
{
- if ((yyvsp[-3].i) < 0 || (yyvsp[-1].i) < 0) {
- lc_error("Invalid subroom position (%li,%li)!", (yyvsp[-3].i),
- (yyvsp[-1].i));
- } else {
- (yyval.crd).x = (yyvsp[-3].i);
- (yyval.crd).y = (yyvsp[-1].i);
- }
- }
-#line 3673 "y.tab.c" /* yacc.c:1646 */
+ if ( (yyvsp[(2) - (5)].i) < 0 || (yyvsp[(4) - (5)].i) < 0) {
+ lc_error("Invalid subroom position (%li,%li)!", (yyvsp[(2) - (5)].i), (yyvsp[(4) - (5)].i));
+ } else {
+ (yyval.crd).x = (yyvsp[(2) - (5)].i);
+ (yyval.crd).y = (yyvsp[(4) - (5)].i);
+ }
+ }
break;
- case 178:
-#line 1295 "lev_comp.y" /* yacc.c:1646 */
+ case 178:
+
+/* Line 1455 of yacc.c */
+#line 1295 "lev_comp.y"
{
- (yyval.crd).x = (yyval.crd).y = ERR;
- }
-#line 3681 "y.tab.c" /* yacc.c:1646 */
+ (yyval.crd).x = (yyval.crd).y = ERR;
+ }
break;
- case 179:
-#line 1301 "lev_comp.y" /* yacc.c:1646 */
+ case 179:
+
+/* Line 1455 of yacc.c */
+#line 1301 "lev_comp.y"
{
- (yyval.crd).x = (yyvsp[-3].i);
- (yyval.crd).y = (yyvsp[-1].i);
- }
-#line 3690 "y.tab.c" /* yacc.c:1646 */
+ (yyval.crd).x = (yyvsp[(2) - (5)].i);
+ (yyval.crd).y = (yyvsp[(4) - (5)].i);
+ }
break;
- case 180:
-#line 1306 "lev_comp.y" /* yacc.c:1646 */
+ case 180:
+
+/* Line 1455 of yacc.c */
+#line 1306 "lev_comp.y"
{
- (yyval.crd).x = (yyval.crd).y = ERR;
- }
-#line 3698 "y.tab.c" /* yacc.c:1646 */
+ (yyval.crd).x = (yyval.crd).y = ERR;
+ }
break;
- case 181:
-#line 1312 "lev_comp.y" /* yacc.c:1646 */
+ case 181:
+
+/* Line 1455 of yacc.c */
+#line 1312 "lev_comp.y"
{
- (yyval.sze).width = (yyvsp[-3].i);
- (yyval.sze).height = (yyvsp[-1].i);
- }
-#line 3707 "y.tab.c" /* yacc.c:1646 */
+ (yyval.sze).width = (yyvsp[(2) - (5)].i);
+ (yyval.sze).height = (yyvsp[(4) - (5)].i);
+ }
break;
- case 182:
-#line 1317 "lev_comp.y" /* yacc.c:1646 */
+ case 182:
+
+/* Line 1455 of yacc.c */
+#line 1317 "lev_comp.y"
{
- (yyval.sze).height = (yyval.sze).width = ERR;
- }
-#line 3715 "y.tab.c" /* yacc.c:1646 */
+ (yyval.sze).height = (yyval.sze).width = ERR;
+ }
break;
- case 183:
-#line 1323 "lev_comp.y" /* yacc.c:1646 */
+ case 183:
+
+/* Line 1455 of yacc.c */
+#line 1323 "lev_comp.y"
{
- /* ERR means random here */
- if ((yyvsp[-2].i) == ERR && (yyvsp[0].i) != ERR) {
- lc_error("If the door wall is random, so must be its pos!");
- } else {
- add_opvars(splev, "iiiio",
- VA_PASS5((long) (yyvsp[0].i), (long) (yyvsp[-4].i),
- (long) (yyvsp[-6].i), (long) (yyvsp[-2].i),
- SPO_ROOM_DOOR));
- }
- }
-#line 3730 "y.tab.c" /* yacc.c:1646 */
+ /* ERR means random here */
+ if ((yyvsp[(7) - (9)].i) == ERR && (yyvsp[(9) - (9)].i) != ERR) {
+ lc_error("If the door wall is random, so must be its pos!");
+ } else {
+ add_opvars(splev, "iiiio",
+ VA_PASS5((long)(yyvsp[(9) - (9)].i), (long)(yyvsp[(5) - (9)].i), (long)(yyvsp[(3) - (9)].i),
+ (long)(yyvsp[(7) - (9)].i), SPO_ROOM_DOOR));
+ }
+ }
break;
- case 184:
-#line 1334 "lev_comp.y" /* yacc.c:1646 */
+ case 184:
+
+/* Line 1455 of yacc.c */
+#line 1334 "lev_comp.y"
{
- add_opvars(splev, "io", VA_PASS2((long) (yyvsp[-2].i), SPO_DOOR));
- }
-#line 3738 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "io", VA_PASS2((long)(yyvsp[(3) - (5)].i), SPO_DOOR));
+ }
break;
- case 189:
-#line 1348 "lev_comp.y" /* yacc.c:1646 */
+ case 189:
+
+/* Line 1455 of yacc.c */
+#line 1348 "lev_comp.y"
{
- (yyval.i) = (yyvsp[0].i);
- }
-#line 3746 "y.tab.c" /* yacc.c:1646 */
+ (yyval.i) = (yyvsp[(1) - (1)].i);
+ }
break;
- case 190:
-#line 1352 "lev_comp.y" /* yacc.c:1646 */
+ case 190:
+
+/* Line 1455 of yacc.c */
+#line 1352 "lev_comp.y"
{
- (yyval.i) = ((yyvsp[-2].i) | (yyvsp[0].i));
- }
-#line 3754 "y.tab.c" /* yacc.c:1646 */
+ (yyval.i) = ((yyvsp[(1) - (3)].i) | (yyvsp[(3) - (3)].i));
+ }
break;
- case 193:
-#line 1362 "lev_comp.y" /* yacc.c:1646 */
+ case 193:
+
+/* Line 1455 of yacc.c */
+#line 1362 "lev_comp.y"
{
- add_opvars(splev, "ciisiio",
- VA_PASS7(0, 0, 1, (char *) 0, 0, 0, SPO_MAP));
- max_x_map = COLNO - 1;
- max_y_map = ROWNO;
- }
-#line 3765 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "ciisiio",
+ VA_PASS7(0, 0, 1, (char *)0, 0, 0, SPO_MAP));
+ max_x_map = COLNO-1;
+ max_y_map = ROWNO;
+ }
break;
- case 194:
-#line 1369 "lev_comp.y" /* yacc.c:1646 */
+ case 194:
+
+/* Line 1455 of yacc.c */
+#line 1369 "lev_comp.y"
{
- add_opvars(splev, "cii",
- VA_PASS3(SP_COORD_PACK(((yyvsp[-4].i)), ((yyvsp[-2].i))),
- 1, (long) (yyvsp[-1].i)));
- scan_map((yyvsp[0].map), splev);
- Free((yyvsp[0].map));
- }
-#line 3777 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "cii",
+ VA_PASS3(SP_COORD_PACK(((yyvsp[(3) - (7)].i)),((yyvsp[(5) - (7)].i))),
+ 1, (long)(yyvsp[(6) - (7)].i)));
+ scan_map((yyvsp[(7) - (7)].map), splev);
+ Free((yyvsp[(7) - (7)].map));
+ }
break;
- case 195:
-#line 1377 "lev_comp.y" /* yacc.c:1646 */
+ case 195:
+
+/* Line 1455 of yacc.c */
+#line 1377 "lev_comp.y"
{
- add_opvars(splev, "ii", VA_PASS2(2, (long) (yyvsp[-1].i)));
- scan_map((yyvsp[0].map), splev);
- Free((yyvsp[0].map));
- }
-#line 3787 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "ii", VA_PASS2(2, (long)(yyvsp[(4) - (5)].i)));
+ scan_map((yyvsp[(5) - (5)].map), splev);
+ Free((yyvsp[(5) - (5)].map));
+ }
break;
- case 200:
-#line 1393 "lev_comp.y" /* yacc.c:1646 */
+ case 200:
+
+/* Line 1455 of yacc.c */
+#line 1393 "lev_comp.y"
{
- add_opvars(splev, "io", VA_PASS2(0, SPO_MONSTER));
- }
-#line 3795 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "io", VA_PASS2(0, SPO_MONSTER));
+ }
break;
- case 201:
-#line 1397 "lev_comp.y" /* yacc.c:1646 */
+ case 201:
+
+/* Line 1455 of yacc.c */
+#line 1397 "lev_comp.y"
{
- add_opvars(splev, "io", VA_PASS2(1, SPO_MONSTER));
- in_container_obj++;
- break_stmt_start();
- }
-#line 3805 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "io", VA_PASS2(1, SPO_MONSTER));
+ in_container_obj++;
+ break_stmt_start();
+ }
break;
- case 202:
-#line 1403 "lev_comp.y" /* yacc.c:1646 */
+ case 202:
+
+/* Line 1455 of yacc.c */
+#line 1403 "lev_comp.y"
{
- break_stmt_end(splev);
- in_container_obj--;
- add_opvars(splev, "o", VA_PASS1(SPO_END_MONINVENT));
- }
-#line 3815 "y.tab.c" /* yacc.c:1646 */
+ break_stmt_end(splev);
+ in_container_obj--;
+ add_opvars(splev, "o", VA_PASS1(SPO_END_MONINVENT));
+ }
break;
- case 203:
-#line 1411 "lev_comp.y" /* yacc.c:1646 */
+ case 203:
+
+/* Line 1455 of yacc.c */
+#line 1411 "lev_comp.y"
{
- /* nothing */
- }
-#line 3823 "y.tab.c" /* yacc.c:1646 */
+ /* nothing */
+ }
break;
- case 204:
-#line 1417 "lev_comp.y" /* yacc.c:1646 */
+ case 204:
+
+/* Line 1455 of yacc.c */
+#line 1417 "lev_comp.y"
{
- struct opvar *stopit = New(struct opvar);
- set_opvar_int(stopit, SP_M_V_END);
- add_opcode(splev, SPO_PUSH, stopit);
- (yyval.i) = 0x0000;
- }
-#line 3834 "y.tab.c" /* yacc.c:1646 */
+ struct opvar *stopit = New(struct opvar);
+ set_opvar_int(stopit, SP_M_V_END);
+ add_opcode(splev, SPO_PUSH, stopit);
+ (yyval.i) = 0x0000;
+ }
break;
- case 205:
-#line 1424 "lev_comp.y" /* yacc.c:1646 */
+ case 205:
+
+/* Line 1455 of yacc.c */
+#line 1424 "lev_comp.y"
{
- if (((yyvsp[-2].i) & (yyvsp[0].i)))
- lc_error("MONSTER extra info defined twice.");
- (yyval.i) = ((yyvsp[-2].i) | (yyvsp[0].i));
- }
-#line 3844 "y.tab.c" /* yacc.c:1646 */
+ if (( (yyvsp[(1) - (3)].i) & (yyvsp[(3) - (3)].i) ))
+ lc_error("MONSTER extra info defined twice.");
+ (yyval.i) = ( (yyvsp[(1) - (3)].i) | (yyvsp[(3) - (3)].i) );
+ }
break;
- case 206:
-#line 1432 "lev_comp.y" /* yacc.c:1646 */
+ case 206:
+
+/* Line 1455 of yacc.c */
+#line 1432 "lev_comp.y"
{
- add_opvars(splev, "i", VA_PASS1(SP_M_V_NAME));
- (yyval.i) = 0x0001;
- }
-#line 3853 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "i", VA_PASS1(SP_M_V_NAME));
+ (yyval.i) = 0x0001;
+ }
break;
- case 207:
-#line 1437 "lev_comp.y" /* yacc.c:1646 */
+ case 207:
+
+/* Line 1455 of yacc.c */
+#line 1437 "lev_comp.y"
{
- add_opvars(splev, "ii",
- VA_PASS2((long) (yyvsp[0].i), SP_M_V_PEACEFUL));
- (yyval.i) = 0x0002;
- }
-#line 3863 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "ii",
+ VA_PASS2((long)(yyvsp[(1) - (1)].i), SP_M_V_PEACEFUL));
+ (yyval.i) = 0x0002;
+ }
break;
- case 208:
-#line 1443 "lev_comp.y" /* yacc.c:1646 */
+ case 208:
+
+/* Line 1455 of yacc.c */
+#line 1443 "lev_comp.y"
{
- add_opvars(splev, "ii", VA_PASS2((long) (yyvsp[0].i), SP_M_V_ASLEEP));
- (yyval.i) = 0x0004;
- }
-#line 3873 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "ii",
+ VA_PASS2((long)(yyvsp[(1) - (1)].i), SP_M_V_ASLEEP));
+ (yyval.i) = 0x0004;
+ }
break;
- case 209:
-#line 1449 "lev_comp.y" /* yacc.c:1646 */
+ case 209:
+
+/* Line 1455 of yacc.c */
+#line 1449 "lev_comp.y"
{
- add_opvars(splev, "ii", VA_PASS2((long) (yyvsp[0].i), SP_M_V_ALIGN));
- (yyval.i) = 0x0008;
- }
-#line 3883 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "ii",
+ VA_PASS2((long)(yyvsp[(1) - (1)].i), SP_M_V_ALIGN));
+ (yyval.i) = 0x0008;
+ }
break;
- case 210:
-#line 1455 "lev_comp.y" /* yacc.c:1646 */
+ case 210:
+
+/* Line 1455 of yacc.c */
+#line 1455 "lev_comp.y"
{
- add_opvars(splev, "ii",
- VA_PASS2((long) (yyvsp[-1].i), SP_M_V_APPEAR));
- (yyval.i) = 0x0010;
- }
-#line 3893 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "ii",
+ VA_PASS2((long)(yyvsp[(1) - (2)].i), SP_M_V_APPEAR));
+ (yyval.i) = 0x0010;
+ }
break;
- case 211:
-#line 1461 "lev_comp.y" /* yacc.c:1646 */
+ case 211:
+
+/* Line 1455 of yacc.c */
+#line 1461 "lev_comp.y"
{
- add_opvars(splev, "ii", VA_PASS2(1, SP_M_V_FEMALE));
- (yyval.i) = 0x0020;
- }
-#line 3902 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "ii", VA_PASS2(1, SP_M_V_FEMALE));
+ (yyval.i) = 0x0020;
+ }
break;
- case 212:
-#line 1466 "lev_comp.y" /* yacc.c:1646 */
+ case 212:
+
+/* Line 1455 of yacc.c */
+#line 1466 "lev_comp.y"
{
- add_opvars(splev, "ii", VA_PASS2(1, SP_M_V_INVIS));
- (yyval.i) = 0x0040;
- }
-#line 3911 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "ii", VA_PASS2(1, SP_M_V_INVIS));
+ (yyval.i) = 0x0040;
+ }
break;
- case 213:
-#line 1471 "lev_comp.y" /* yacc.c:1646 */
+ case 213:
+
+/* Line 1455 of yacc.c */
+#line 1471 "lev_comp.y"
{
- add_opvars(splev, "ii", VA_PASS2(1, SP_M_V_CANCELLED));
- (yyval.i) = 0x0080;
- }
-#line 3920 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "ii", VA_PASS2(1, SP_M_V_CANCELLED));
+ (yyval.i) = 0x0080;
+ }
break;
- case 214:
-#line 1476 "lev_comp.y" /* yacc.c:1646 */
+ case 214:
+
+/* Line 1455 of yacc.c */
+#line 1476 "lev_comp.y"
{
- add_opvars(splev, "ii", VA_PASS2(1, SP_M_V_REVIVED));
- (yyval.i) = 0x0100;
- }
-#line 3929 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "ii", VA_PASS2(1, SP_M_V_REVIVED));
+ (yyval.i) = 0x0100;
+ }
break;
- case 215:
-#line 1481 "lev_comp.y" /* yacc.c:1646 */
+ case 215:
+
+/* Line 1455 of yacc.c */
+#line 1481 "lev_comp.y"
{
- add_opvars(splev, "ii", VA_PASS2(1, SP_M_V_AVENGE));
- (yyval.i) = 0x0200;
- }
-#line 3938 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "ii", VA_PASS2(1, SP_M_V_AVENGE));
+ (yyval.i) = 0x0200;
+ }
break;
- case 216:
-#line 1486 "lev_comp.y" /* yacc.c:1646 */
+ case 216:
+
+/* Line 1455 of yacc.c */
+#line 1486 "lev_comp.y"
{
- add_opvars(splev, "i", VA_PASS1(SP_M_V_FLEEING));
- (yyval.i) = 0x0400;
- }
-#line 3947 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "i", VA_PASS1(SP_M_V_FLEEING));
+ (yyval.i) = 0x0400;
+ }
break;
- case 217:
-#line 1491 "lev_comp.y" /* yacc.c:1646 */
+ case 217:
+
+/* Line 1455 of yacc.c */
+#line 1491 "lev_comp.y"
{
- add_opvars(splev, "i", VA_PASS1(SP_M_V_BLINDED));
- (yyval.i) = 0x0800;
- }
-#line 3956 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "i", VA_PASS1(SP_M_V_BLINDED));
+ (yyval.i) = 0x0800;
+ }
break;
- case 218:
-#line 1496 "lev_comp.y" /* yacc.c:1646 */
+ case 218:
+
+/* Line 1455 of yacc.c */
+#line 1496 "lev_comp.y"
{
- add_opvars(splev, "i", VA_PASS1(SP_M_V_PARALYZED));
- (yyval.i) = 0x1000;
- }
-#line 3965 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "i", VA_PASS1(SP_M_V_PARALYZED));
+ (yyval.i) = 0x1000;
+ }
break;
- case 219:
-#line 1501 "lev_comp.y" /* yacc.c:1646 */
+ case 219:
+
+/* Line 1455 of yacc.c */
+#line 1501 "lev_comp.y"
{
- add_opvars(splev, "ii", VA_PASS2(1, SP_M_V_STUNNED));
- (yyval.i) = 0x2000;
- }
-#line 3974 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "ii", VA_PASS2(1, SP_M_V_STUNNED));
+ (yyval.i) = 0x2000;
+ }
break;
- case 220:
-#line 1506 "lev_comp.y" /* yacc.c:1646 */
+ case 220:
+
+/* Line 1455 of yacc.c */
+#line 1506 "lev_comp.y"
{
- add_opvars(splev, "ii", VA_PASS2(1, SP_M_V_CONFUSED));
- (yyval.i) = 0x4000;
- }
-#line 3983 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "ii", VA_PASS2(1, SP_M_V_CONFUSED));
+ (yyval.i) = 0x4000;
+ }
break;
- case 221:
-#line 1511 "lev_comp.y" /* yacc.c:1646 */
+ case 221:
+
+/* Line 1455 of yacc.c */
+#line 1511 "lev_comp.y"
{
- add_opvars(splev, "ii",
- VA_PASS2((long) (yyvsp[0].i), SP_M_V_SEENTRAPS));
- (yyval.i) = 0x8000;
- }
-#line 3993 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "ii",
+ VA_PASS2((long)(yyvsp[(3) - (3)].i), SP_M_V_SEENTRAPS));
+ (yyval.i) = 0x8000;
+ }
break;
- case 222:
-#line 1519 "lev_comp.y" /* yacc.c:1646 */
+ case 222:
+
+/* Line 1455 of yacc.c */
+#line 1519 "lev_comp.y"
{
- int token = get_trap_type((yyvsp[0].map));
- if (token == ERR || token == 0)
- lc_error("Unknown trap type '%s'!", (yyvsp[0].map));
- (yyval.i) = (1L << (token - 1));
- }
-#line 4004 "y.tab.c" /* yacc.c:1646 */
+ int token = get_trap_type((yyvsp[(1) - (1)].map));
+ if (token == ERR || token == 0)
+ lc_error("Unknown trap type '%s'!", (yyvsp[(1) - (1)].map));
+ (yyval.i) = (1L << (token - 1));
+ }
break;
- case 223:
-#line 1526 "lev_comp.y" /* yacc.c:1646 */
+ case 223:
+
+/* Line 1455 of yacc.c */
+#line 1526 "lev_comp.y"
{
- (yyval.i) = (long) ~0;
- }
-#line 4012 "y.tab.c" /* yacc.c:1646 */
+ (yyval.i) = (long) ~0;
+ }
break;
- case 224:
-#line 1530 "lev_comp.y" /* yacc.c:1646 */
+ case 224:
+
+/* Line 1455 of yacc.c */
+#line 1530 "lev_comp.y"
{
- int token = get_trap_type((yyvsp[-2].map));
- if (token == ERR || token == 0)
- lc_error("Unknown trap type '%s'!", (yyvsp[-2].map));
+ int token = get_trap_type((yyvsp[(1) - (3)].map));
+ if (token == ERR || token == 0)
+ lc_error("Unknown trap type '%s'!", (yyvsp[(1) - (3)].map));
- if ((1L << (token - 1)) & (yyvsp[0].i))
- lc_error("Monster seen_traps, trap '%s' listed twice.",
- (yyvsp[-2].map));
+ if ((1L << (token - 1)) & (yyvsp[(3) - (3)].i))
+ lc_error("Monster seen_traps, trap '%s' listed twice.", (yyvsp[(1) - (3)].map));
- (yyval.i) = ((1L << (token - 1)) | (yyvsp[0].i));
- }
-#line 4027 "y.tab.c" /* yacc.c:1646 */
+ (yyval.i) = ((1L << (token - 1)) | (yyvsp[(3) - (3)].i));
+ }
break;
- case 225:
-#line 1543 "lev_comp.y" /* yacc.c:1646 */
+ case 225:
+
+/* Line 1455 of yacc.c */
+#line 1543 "lev_comp.y"
{
- long cnt = 0;
- if (in_container_obj)
- cnt |= SP_OBJ_CONTENT;
- add_opvars(splev, "io", VA_PASS2(cnt, SPO_OBJECT));
- }
-#line 4037 "y.tab.c" /* yacc.c:1646 */
+ long cnt = 0;
+ if (in_container_obj) cnt |= SP_OBJ_CONTENT;
+ add_opvars(splev, "io", VA_PASS2(cnt, SPO_OBJECT));
+ }
break;
- case 226:
-#line 1549 "lev_comp.y" /* yacc.c:1646 */
+ case 226:
+
+/* Line 1455 of yacc.c */
+#line 1549 "lev_comp.y"
{
- long cnt = SP_OBJ_CONTAINER;
- if (in_container_obj)
- cnt |= SP_OBJ_CONTENT;
- add_opvars(splev, "io", VA_PASS2(cnt, SPO_OBJECT));
- in_container_obj++;
- break_stmt_start();
- }
-#line 4049 "y.tab.c" /* yacc.c:1646 */
+ long cnt = SP_OBJ_CONTAINER;
+ if (in_container_obj) cnt |= SP_OBJ_CONTENT;
+ add_opvars(splev, "io", VA_PASS2(cnt, SPO_OBJECT));
+ in_container_obj++;
+ break_stmt_start();
+ }
break;
- case 227:
-#line 1557 "lev_comp.y" /* yacc.c:1646 */
+ case 227:
+
+/* Line 1455 of yacc.c */
+#line 1557 "lev_comp.y"
{
- break_stmt_end(splev);
- in_container_obj--;
- add_opcode(splev, SPO_POP_CONTAINER, NULL);
- }
-#line 4059 "y.tab.c" /* yacc.c:1646 */
+ break_stmt_end(splev);
+ in_container_obj--;
+ add_opcode(splev, SPO_POP_CONTAINER, NULL);
+ }
break;
- case 228:
-#line 1565 "lev_comp.y" /* yacc.c:1646 */
+ case 228:
+
+/* Line 1455 of yacc.c */
+#line 1565 "lev_comp.y"
{
- if (((yyvsp[0].i) & 0x4000) && in_container_obj)
- lc_error("Object cannot have a coord when contained.");
- else if (!((yyvsp[0].i) & 0x4000) && !in_container_obj)
- lc_error("Object needs a coord when not contained.");
- }
-#line 4068 "y.tab.c" /* yacc.c:1646 */
+ if (( (yyvsp[(2) - (2)].i) & 0x4000) && in_container_obj) lc_error("Object cannot have a coord when contained.");
+ else if (!( (yyvsp[(2) - (2)].i) & 0x4000) && !in_container_obj) lc_error("Object needs a coord when not contained.");
+ }
break;
- case 229:
-#line 1572 "lev_comp.y" /* yacc.c:1646 */
+ case 229:
+
+/* Line 1455 of yacc.c */
+#line 1572 "lev_comp.y"
{
- struct opvar *stopit = New(struct opvar);
- set_opvar_int(stopit, SP_O_V_END);
- add_opcode(splev, SPO_PUSH, stopit);
- (yyval.i) = 0x00;
- }
-#line 4079 "y.tab.c" /* yacc.c:1646 */
+ struct opvar *stopit = New(struct opvar);
+ set_opvar_int(stopit, SP_O_V_END);
+ add_opcode(splev, SPO_PUSH, stopit);
+ (yyval.i) = 0x00;
+ }
break;
- case 230:
-#line 1579 "lev_comp.y" /* yacc.c:1646 */
+ case 230:
+
+/* Line 1455 of yacc.c */
+#line 1579 "lev_comp.y"
{
- if (((yyvsp[-2].i) & (yyvsp[0].i)))
- lc_error("OBJECT extra info '%s' defined twice.", curr_token);
- (yyval.i) = ((yyvsp[-2].i) | (yyvsp[0].i));
- }
-#line 4089 "y.tab.c" /* yacc.c:1646 */
+ if (( (yyvsp[(1) - (3)].i) & (yyvsp[(3) - (3)].i) ))
+ lc_error("OBJECT extra info '%s' defined twice.", curr_token);
+ (yyval.i) = ( (yyvsp[(1) - (3)].i) | (yyvsp[(3) - (3)].i) );
+ }
break;
- case 231:
-#line 1587 "lev_comp.y" /* yacc.c:1646 */
+ case 231:
+
+/* Line 1455 of yacc.c */
+#line 1587 "lev_comp.y"
{
- add_opvars(splev, "ii", VA_PASS2((long) (yyvsp[0].i), SP_O_V_CURSE));
- (yyval.i) = 0x0001;
- }
-#line 4099 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "ii",
+ VA_PASS2((long)(yyvsp[(1) - (1)].i), SP_O_V_CURSE));
+ (yyval.i) = 0x0001;
+ }
break;
- case 232:
-#line 1593 "lev_comp.y" /* yacc.c:1646 */
+ case 232:
+
+/* Line 1455 of yacc.c */
+#line 1593 "lev_comp.y"
{
- add_opvars(splev, "i", VA_PASS1(SP_O_V_CORPSENM));
- (yyval.i) = 0x0002;
- }
-#line 4108 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "i", VA_PASS1(SP_O_V_CORPSENM));
+ (yyval.i) = 0x0002;
+ }
break;
- case 233:
-#line 1598 "lev_comp.y" /* yacc.c:1646 */
+ case 233:
+
+/* Line 1455 of yacc.c */
+#line 1598 "lev_comp.y"
{
- add_opvars(splev, "i", VA_PASS1(SP_O_V_SPE));
- (yyval.i) = 0x0004;
- }
-#line 4117 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "i", VA_PASS1(SP_O_V_SPE));
+ (yyval.i) = 0x0004;
+ }
break;
- case 234:
-#line 1603 "lev_comp.y" /* yacc.c:1646 */
+ case 234:
+
+/* Line 1455 of yacc.c */
+#line 1603 "lev_comp.y"
{
- add_opvars(splev, "i", VA_PASS1(SP_O_V_NAME));
- (yyval.i) = 0x0008;
- }
-#line 4126 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "i", VA_PASS1(SP_O_V_NAME));
+ (yyval.i) = 0x0008;
+ }
break;
- case 235:
-#line 1608 "lev_comp.y" /* yacc.c:1646 */
+ case 235:
+
+/* Line 1455 of yacc.c */
+#line 1608 "lev_comp.y"
{
- add_opvars(splev, "i", VA_PASS1(SP_O_V_QUAN));
- (yyval.i) = 0x0010;
- }
-#line 4135 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "i", VA_PASS1(SP_O_V_QUAN));
+ (yyval.i) = 0x0010;
+ }
break;
- case 236:
-#line 1613 "lev_comp.y" /* yacc.c:1646 */
+ case 236:
+
+/* Line 1455 of yacc.c */
+#line 1613 "lev_comp.y"
{
- add_opvars(splev, "ii", VA_PASS2(1, SP_O_V_BURIED));
- (yyval.i) = 0x0020;
- }
-#line 4144 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "ii", VA_PASS2(1, SP_O_V_BURIED));
+ (yyval.i) = 0x0020;
+ }
break;
- case 237:
-#line 1618 "lev_comp.y" /* yacc.c:1646 */
+ case 237:
+
+/* Line 1455 of yacc.c */
+#line 1618 "lev_comp.y"
{
- add_opvars(splev, "ii", VA_PASS2((long) (yyvsp[0].i), SP_O_V_LIT));
- (yyval.i) = 0x0040;
- }
-#line 4153 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "ii", VA_PASS2((long)(yyvsp[(1) - (1)].i), SP_O_V_LIT));
+ (yyval.i) = 0x0040;
+ }
break;
- case 238:
-#line 1623 "lev_comp.y" /* yacc.c:1646 */
+ case 238:
+
+/* Line 1455 of yacc.c */
+#line 1623 "lev_comp.y"
{
- add_opvars(splev, "i", VA_PASS1(SP_O_V_ERODED));
- (yyval.i) = 0x0080;
- }
-#line 4162 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "i", VA_PASS1(SP_O_V_ERODED));
+ (yyval.i) = 0x0080;
+ }
break;
- case 239:
-#line 1628 "lev_comp.y" /* yacc.c:1646 */
+ case 239:
+
+/* Line 1455 of yacc.c */
+#line 1628 "lev_comp.y"
{
- add_opvars(splev, "ii", VA_PASS2(-1, SP_O_V_ERODED));
- (yyval.i) = 0x0080;
- }
-#line 4171 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "ii", VA_PASS2(-1, SP_O_V_ERODED));
+ (yyval.i) = 0x0080;
+ }
break;
- case 240:
-#line 1633 "lev_comp.y" /* yacc.c:1646 */
+ case 240:
+
+/* Line 1455 of yacc.c */
+#line 1633 "lev_comp.y"
{
- if ((yyvsp[0].i) == D_LOCKED) {
- add_opvars(splev, "ii", VA_PASS2(1, SP_O_V_LOCKED));
- (yyval.i) = 0x0100;
- } else if ((yyvsp[0].i) == D_BROKEN) {
- add_opvars(splev, "ii", VA_PASS2(1, SP_O_V_BROKEN));
- (yyval.i) = 0x0200;
- } else
- lc_error("DOOR state can only be locked or broken.");
- }
-#line 4186 "y.tab.c" /* yacc.c:1646 */
+ if ((yyvsp[(1) - (1)].i) == D_LOCKED) {
+ add_opvars(splev, "ii", VA_PASS2(1, SP_O_V_LOCKED));
+ (yyval.i) = 0x0100;
+ } else if ((yyvsp[(1) - (1)].i) == D_BROKEN) {
+ add_opvars(splev, "ii", VA_PASS2(1, SP_O_V_BROKEN));
+ (yyval.i) = 0x0200;
+ } else
+ lc_error("DOOR state can only be locked or broken.");
+ }
break;
- case 241:
-#line 1644 "lev_comp.y" /* yacc.c:1646 */
+ case 241:
+
+/* Line 1455 of yacc.c */
+#line 1644 "lev_comp.y"
{
- add_opvars(splev, "ii", VA_PASS2(1, SP_O_V_TRAPPED));
- (yyval.i) = 0x0400;
- }
-#line 4195 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "ii", VA_PASS2(1, SP_O_V_TRAPPED));
+ (yyval.i) = 0x0400;
+ }
break;
- case 242:
-#line 1649 "lev_comp.y" /* yacc.c:1646 */
+ case 242:
+
+/* Line 1455 of yacc.c */
+#line 1649 "lev_comp.y"
{
- add_opvars(splev, "i", VA_PASS1(SP_O_V_RECHARGED));
- (yyval.i) = 0x0800;
- }
-#line 4204 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "i", VA_PASS1(SP_O_V_RECHARGED));
+ (yyval.i) = 0x0800;
+ }
break;
- case 243:
-#line 1654 "lev_comp.y" /* yacc.c:1646 */
+ case 243:
+
+/* Line 1455 of yacc.c */
+#line 1654 "lev_comp.y"
{
- add_opvars(splev, "ii", VA_PASS2(1, SP_O_V_INVIS));
- (yyval.i) = 0x1000;
- }
-#line 4213 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "ii", VA_PASS2(1, SP_O_V_INVIS));
+ (yyval.i) = 0x1000;
+ }
break;
- case 244:
-#line 1659 "lev_comp.y" /* yacc.c:1646 */
+ case 244:
+
+/* Line 1455 of yacc.c */
+#line 1659 "lev_comp.y"
{
- add_opvars(splev, "ii", VA_PASS2(1, SP_O_V_GREASED));
- (yyval.i) = 0x2000;
- }
-#line 4222 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "ii", VA_PASS2(1, SP_O_V_GREASED));
+ (yyval.i) = 0x2000;
+ }
break;
- case 245:
-#line 1664 "lev_comp.y" /* yacc.c:1646 */
+ case 245:
+
+/* Line 1455 of yacc.c */
+#line 1664 "lev_comp.y"
{
- add_opvars(splev, "i", VA_PASS1(SP_O_V_COORD));
- (yyval.i) = 0x4000;
- }
-#line 4231 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "i", VA_PASS1(SP_O_V_COORD));
+ (yyval.i) = 0x4000;
+ }
break;
- case 246:
-#line 1671 "lev_comp.y" /* yacc.c:1646 */
+ case 246:
+
+/* Line 1455 of yacc.c */
+#line 1671 "lev_comp.y"
{
- add_opvars(splev, "io", VA_PASS2((long) (yyvsp[-2].i), SPO_TRAP));
- }
-#line 4239 "y.tab.c" /* yacc.c:1646 */
- break;
-
- case 247:
-#line 1677 "lev_comp.y" /* yacc.c:1646 */
- {
- long dir, state = 0;
-
- /* convert dir from a DIRECTION to a DB_DIR */
- dir = (yyvsp[-2].i);
- switch (dir) {
- case W_NORTH:
- dir = DB_NORTH;
- break;
- case W_SOUTH:
- dir = DB_SOUTH;
- break;
- case W_EAST:
- dir = DB_EAST;
- break;
- case W_WEST:
- dir = DB_WEST;
- break;
- default:
- lc_error("Invalid drawbridge direction.");
- break;
- }
-
- if ((yyvsp[0].i) == D_ISOPEN)
- state = 1;
- else if ((yyvsp[0].i) == D_CLOSED)
- state = 0;
- else if ((yyvsp[0].i) == -1)
- state = -1;
- else
- lc_error("A drawbridge can only be open, closed or random!");
- add_opvars(splev, "iio", VA_PASS3(state, dir, SPO_DRAWBRIDGE));
- }
-#line 4270 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "io", VA_PASS2((long)(yyvsp[(3) - (5)].i), SPO_TRAP));
+ }
break;
- case 248:
-#line 1706 "lev_comp.y" /* yacc.c:1646 */
+ case 247:
+
+/* Line 1455 of yacc.c */
+#line 1677 "lev_comp.y"
{
- add_opvars(splev, "iiio",
- VA_PASS4((long) (yyvsp[0].i), 1, 0, SPO_MAZEWALK));
- }
-#line 4279 "y.tab.c" /* yacc.c:1646 */
+ long dir, state = 0;
+
+ /* convert dir from a DIRECTION to a DB_DIR */
+ dir = (yyvsp[(5) - (7)].i);
+ switch (dir) {
+ case W_NORTH: dir = DB_NORTH; break;
+ case W_SOUTH: dir = DB_SOUTH; break;
+ case W_EAST: dir = DB_EAST; break;
+ case W_WEST: dir = DB_WEST; break;
+ default:
+ lc_error("Invalid drawbridge direction.");
+ break;
+ }
+
+ if ( (yyvsp[(7) - (7)].i) == D_ISOPEN )
+ state = 1;
+ else if ( (yyvsp[(7) - (7)].i) == D_CLOSED )
+ state = 0;
+ else if ( (yyvsp[(7) - (7)].i) == -1 )
+ state = -1;
+ else
+ lc_error("A drawbridge can only be open, closed or random!");
+ add_opvars(splev, "iio",
+ VA_PASS3(state, dir, SPO_DRAWBRIDGE));
+ }
break;
- case 249:
-#line 1711 "lev_comp.y" /* yacc.c:1646 */
+ case 248:
+
+/* Line 1455 of yacc.c */
+#line 1706 "lev_comp.y"
{
- add_opvars(splev, "iiio",
- VA_PASS4((long) (yyvsp[-3].i), (long) (yyvsp[-1].i),
- (long) (yyvsp[0].i), SPO_MAZEWALK));
- }
-#line 4289 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "iiio",
+ VA_PASS4((long)(yyvsp[(5) - (5)].i), 1, 0, SPO_MAZEWALK));
+ }
break;
- case 250:
-#line 1719 "lev_comp.y" /* yacc.c:1646 */
+ case 249:
+
+/* Line 1455 of yacc.c */
+#line 1711 "lev_comp.y"
{
- add_opvars(splev, "rio",
- VA_PASS3(SP_REGION_PACK(-1, -1, -1, -1), 0, SPO_WALLIFY));
- }
-#line 4299 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "iiio",
+ VA_PASS4((long)(yyvsp[(5) - (8)].i), (long)(yyvsp[(7) - (8)].i),
+ (long)(yyvsp[(8) - (8)].i), SPO_MAZEWALK));
+ }
break;
- case 251:
-#line 1725 "lev_comp.y" /* yacc.c:1646 */
+ case 250:
+
+/* Line 1455 of yacc.c */
+#line 1719 "lev_comp.y"
{
- add_opvars(splev, "io", VA_PASS2(1, SPO_WALLIFY));
- }
-#line 4307 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "rio",
+ VA_PASS3(SP_REGION_PACK(-1,-1,-1,-1),
+ 0, SPO_WALLIFY));
+ }
break;
- case 252:
-#line 1731 "lev_comp.y" /* yacc.c:1646 */
+ case 251:
+
+/* Line 1455 of yacc.c */
+#line 1725 "lev_comp.y"
{
- add_opvars(splev, "io", VA_PASS2((long) (yyvsp[0].i), SPO_LADDER));
- }
-#line 4316 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "io", VA_PASS2(1, SPO_WALLIFY));
+ }
break;
- case 253:
-#line 1738 "lev_comp.y" /* yacc.c:1646 */
+ case 252:
+
+/* Line 1455 of yacc.c */
+#line 1731 "lev_comp.y"
{
- add_opvars(splev, "io", VA_PASS2((long) (yyvsp[0].i), SPO_STAIR));
- }
-#line 4325 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "io",
+ VA_PASS2((long)(yyvsp[(5) - (5)].i), SPO_LADDER));
+ }
break;
- case 254:
-#line 1745 "lev_comp.y" /* yacc.c:1646 */
+ case 253:
+
+/* Line 1455 of yacc.c */
+#line 1738 "lev_comp.y"
{
- add_opvars(
- splev, "iiiii iiiii iiso",
- VA_PASS14((yyvsp[-4].lregn).x1, (yyvsp[-4].lregn).y1,
- (yyvsp[-4].lregn).x2, (yyvsp[-4].lregn).y2,
- (yyvsp[-4].lregn).area, (yyvsp[-2].lregn).x1,
- (yyvsp[-2].lregn).y1, (yyvsp[-2].lregn).x2,
- (yyvsp[-2].lregn).y2, (yyvsp[-2].lregn).area,
- (long) (((yyvsp[0].i)) ? LR_UPSTAIR : LR_DOWNSTAIR), 0,
- (char *) 0, SPO_LEVREGION));
- }
-#line 4337 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "io",
+ VA_PASS2((long)(yyvsp[(5) - (5)].i), SPO_STAIR));
+ }
break;
- case 255:
-#line 1755 "lev_comp.y" /* yacc.c:1646 */
+ case 254:
+
+/* Line 1455 of yacc.c */
+#line 1745 "lev_comp.y"
{
- add_opvars(splev, "iiiii iiiii iiso",
- VA_PASS14((yyvsp[-4].lregn).x1, (yyvsp[-4].lregn).y1,
- (yyvsp[-4].lregn).x2, (yyvsp[-4].lregn).y2,
- (yyvsp[-4].lregn).area, (yyvsp[-2].lregn).x1,
- (yyvsp[-2].lregn).y1, (yyvsp[-2].lregn).x2,
- (yyvsp[-2].lregn).y2, (yyvsp[-2].lregn).area,
- LR_PORTAL, 0, (yyvsp[0].map), SPO_LEVREGION));
- Free((yyvsp[0].map));
- }
-#line 4349 "y.tab.c" /* yacc.c:1646 */
- break;
-
- case 256:
-#line 1765 "lev_comp.y" /* yacc.c:1646 */
- {
- long rtyp = 0;
- switch ((yyvsp[0].i)) {
- case -1:
- rtyp = LR_TELE;
- break;
- case 0:
- rtyp = LR_DOWNTELE;
- break;
- case 1:
- rtyp = LR_UPTELE;
- break;
- }
- add_opvars(splev, "iiiii iiiii iiso",
- VA_PASS14((yyvsp[-3].lregn).x1, (yyvsp[-3].lregn).y1,
- (yyvsp[-3].lregn).x2, (yyvsp[-3].lregn).y2,
- (yyvsp[-3].lregn).area, (yyvsp[-1].lregn).x1,
- (yyvsp[-1].lregn).y1, (yyvsp[-1].lregn).x2,
- (yyvsp[-1].lregn).y2, (yyvsp[-1].lregn).area,
- rtyp, 0, (char *) 0, SPO_LEVREGION));
- }
-#line 4366 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "iiiii iiiii iiso",
+ VA_PASS14((yyvsp[(3) - (7)].lregn).x1, (yyvsp[(3) - (7)].lregn).y1, (yyvsp[(3) - (7)].lregn).x2, (yyvsp[(3) - (7)].lregn).y2, (yyvsp[(3) - (7)].lregn).area,
+ (yyvsp[(5) - (7)].lregn).x1, (yyvsp[(5) - (7)].lregn).y1, (yyvsp[(5) - (7)].lregn).x2, (yyvsp[(5) - (7)].lregn).y2, (yyvsp[(5) - (7)].lregn).area,
+ (long)(((yyvsp[(7) - (7)].i)) ? LR_UPSTAIR : LR_DOWNSTAIR),
+ 0, (char *)0, SPO_LEVREGION));
+ }
break;
- case 257:
-#line 1780 "lev_comp.y" /* yacc.c:1646 */
+ case 255:
+
+/* Line 1455 of yacc.c */
+#line 1755 "lev_comp.y"
{
- add_opvars(splev, "iiiii iiiii iiso",
- VA_PASS14((yyvsp[-2].lregn).x1, (yyvsp[-2].lregn).y1,
- (yyvsp[-2].lregn).x2, (yyvsp[-2].lregn).y2,
- (yyvsp[-2].lregn).area, (yyvsp[0].lregn).x1,
- (yyvsp[0].lregn).y1, (yyvsp[0].lregn).x2,
- (yyvsp[0].lregn).y2, (yyvsp[0].lregn).area,
- (long) LR_BRANCH, 0, (char *) 0, SPO_LEVREGION));
- }
-#line 4378 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "iiiii iiiii iiso",
+ VA_PASS14((yyvsp[(3) - (7)].lregn).x1, (yyvsp[(3) - (7)].lregn).y1, (yyvsp[(3) - (7)].lregn).x2, (yyvsp[(3) - (7)].lregn).y2, (yyvsp[(3) - (7)].lregn).area,
+ (yyvsp[(5) - (7)].lregn).x1, (yyvsp[(5) - (7)].lregn).y1, (yyvsp[(5) - (7)].lregn).x2, (yyvsp[(5) - (7)].lregn).y2, (yyvsp[(5) - (7)].lregn).area,
+ LR_PORTAL, 0, (yyvsp[(7) - (7)].map), SPO_LEVREGION));
+ Free((yyvsp[(7) - (7)].map));
+ }
break;
- case 258:
-#line 1790 "lev_comp.y" /* yacc.c:1646 */
+ case 256:
+
+/* Line 1455 of yacc.c */
+#line 1765 "lev_comp.y"
{
- (yyval.i) = -1;
- }
-#line 4386 "y.tab.c" /* yacc.c:1646 */
+ long rtyp = 0;
+ switch((yyvsp[(6) - (6)].i)) {
+ case -1: rtyp = LR_TELE; break;
+ case 0: rtyp = LR_DOWNTELE; break;
+ case 1: rtyp = LR_UPTELE; break;
+ }
+ add_opvars(splev, "iiiii iiiii iiso",
+ VA_PASS14((yyvsp[(3) - (6)].lregn).x1, (yyvsp[(3) - (6)].lregn).y1, (yyvsp[(3) - (6)].lregn).x2, (yyvsp[(3) - (6)].lregn).y2, (yyvsp[(3) - (6)].lregn).area,
+ (yyvsp[(5) - (6)].lregn).x1, (yyvsp[(5) - (6)].lregn).y1, (yyvsp[(5) - (6)].lregn).x2, (yyvsp[(5) - (6)].lregn).y2, (yyvsp[(5) - (6)].lregn).area,
+ rtyp, 0, (char *)0, SPO_LEVREGION));
+ }
break;
- case 259:
-#line 1794 "lev_comp.y" /* yacc.c:1646 */
+ case 257:
+
+/* Line 1455 of yacc.c */
+#line 1780 "lev_comp.y"
{
- (yyval.i) = (yyvsp[0].i);
- }
-#line 4394 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "iiiii iiiii iiso",
+ VA_PASS14((yyvsp[(3) - (5)].lregn).x1, (yyvsp[(3) - (5)].lregn).y1, (yyvsp[(3) - (5)].lregn).x2, (yyvsp[(3) - (5)].lregn).y2, (yyvsp[(3) - (5)].lregn).area,
+ (yyvsp[(5) - (5)].lregn).x1, (yyvsp[(5) - (5)].lregn).y1, (yyvsp[(5) - (5)].lregn).x2, (yyvsp[(5) - (5)].lregn).y2, (yyvsp[(5) - (5)].lregn).area,
+ (long)LR_BRANCH, 0,
+ (char *)0, SPO_LEVREGION));
+ }
break;
- case 260:
-#line 1800 "lev_comp.y" /* yacc.c:1646 */
+ case 258:
+
+/* Line 1455 of yacc.c */
+#line 1790 "lev_comp.y"
{
- add_opvars(splev, "o", VA_PASS1(SPO_FOUNTAIN));
- }
-#line 4402 "y.tab.c" /* yacc.c:1646 */
+ (yyval.i) = -1;
+ }
break;
- case 261:
-#line 1806 "lev_comp.y" /* yacc.c:1646 */
+ case 259:
+
+/* Line 1455 of yacc.c */
+#line 1794 "lev_comp.y"
{
- add_opvars(splev, "o", VA_PASS1(SPO_SINK));
- }
-#line 4410 "y.tab.c" /* yacc.c:1646 */
+ (yyval.i) = (yyvsp[(2) - (2)].i);
+ }
break;
- case 262:
-#line 1812 "lev_comp.y" /* yacc.c:1646 */
+ case 260:
+
+/* Line 1455 of yacc.c */
+#line 1800 "lev_comp.y"
{
- add_opvars(splev, "o", VA_PASS1(SPO_POOL));
- }
-#line 4418 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "o", VA_PASS1(SPO_FOUNTAIN));
+ }
break;
- case 263:
-#line 1818 "lev_comp.y" /* yacc.c:1646 */
+ case 261:
+
+/* Line 1455 of yacc.c */
+#line 1806 "lev_comp.y"
{
- (yyval.terr).lit = -2;
- (yyval.terr).ter = what_map_char((char) (yyvsp[0].i));
- }
-#line 4427 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "o", VA_PASS1(SPO_SINK));
+ }
break;
- case 264:
-#line 1823 "lev_comp.y" /* yacc.c:1646 */
+ case 262:
+
+/* Line 1455 of yacc.c */
+#line 1812 "lev_comp.y"
{
- (yyval.terr).lit = (yyvsp[-1].i);
- (yyval.terr).ter = what_map_char((char) (yyvsp[-3].i));
- }
-#line 4436 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "o", VA_PASS1(SPO_POOL));
+ }
break;
- case 265:
-#line 1830 "lev_comp.y" /* yacc.c:1646 */
+ case 263:
+
+/* Line 1455 of yacc.c */
+#line 1818 "lev_comp.y"
{
- add_opvars(splev, "io", VA_PASS2((yyvsp[0].i), SPO_REPLACETERRAIN));
- }
-#line 4445 "y.tab.c" /* yacc.c:1646 */
+ (yyval.terr).lit = -2;
+ (yyval.terr).ter = what_map_char((char) (yyvsp[(1) - (1)].i));
+ }
break;
- case 266:
-#line 1837 "lev_comp.y" /* yacc.c:1646 */
+ case 264:
+
+/* Line 1455 of yacc.c */
+#line 1823 "lev_comp.y"
{
- add_opvars(splev, "o", VA_PASS1(SPO_TERRAIN));
- }
-#line 4453 "y.tab.c" /* yacc.c:1646 */
+ (yyval.terr).lit = (yyvsp[(4) - (5)].i);
+ (yyval.terr).ter = what_map_char((char) (yyvsp[(2) - (5)].i));
+ }
break;
- case 267:
-#line 1843 "lev_comp.y" /* yacc.c:1646 */
+ case 265:
+
+/* Line 1455 of yacc.c */
+#line 1830 "lev_comp.y"
{
- add_opvars(splev, "o", VA_PASS1(SPO_NON_DIGGABLE));
- }
-#line 4461 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "io",
+ VA_PASS2((yyvsp[(9) - (9)].i), SPO_REPLACETERRAIN));
+ }
break;
- case 268:
-#line 1849 "lev_comp.y" /* yacc.c:1646 */
+ case 266:
+
+/* Line 1455 of yacc.c */
+#line 1837 "lev_comp.y"
{
- add_opvars(splev, "o", VA_PASS1(SPO_NON_PASSWALL));
- }
-#line 4469 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "o", VA_PASS1(SPO_TERRAIN));
+ }
break;
- case 269:
-#line 1855 "lev_comp.y" /* yacc.c:1646 */
+ case 267:
+
+/* Line 1455 of yacc.c */
+#line 1843 "lev_comp.y"
{
- long irr;
- long rt = (yyvsp[-1].i);
- long rflags = (yyvsp[0].i);
+ add_opvars(splev, "o", VA_PASS1(SPO_NON_DIGGABLE));
+ }
+ break;
- if (rflags == -1)
- rflags = (1 << 0);
- if (!(rflags & 1))
- rt += MAXRTYPE + 1;
- irr = ((rflags & 2) != 0);
- add_opvars(splev, "iiio",
- VA_PASS4((long) (yyvsp[-3].i), rt, rflags, SPO_REGION));
- (yyval.i) = (irr || (rflags & 1) || rt != OROOM);
- break_stmt_start();
- }
-#line 4487 "y.tab.c" /* yacc.c:1646 */
+ case 268:
+
+/* Line 1455 of yacc.c */
+#line 1849 "lev_comp.y"
+ {
+ add_opvars(splev, "o", VA_PASS1(SPO_NON_PASSWALL));
+ }
break;
- case 270:
-#line 1869 "lev_comp.y" /* yacc.c:1646 */
+ case 269:
+
+/* Line 1455 of yacc.c */
+#line 1855 "lev_comp.y"
{
- break_stmt_end(splev);
- if ((yyvsp[-1].i)) {
- add_opcode(splev, SPO_ENDROOM, NULL);
- } else if ((yyvsp[0].i))
- lc_error("Cannot use lev statements in non-permanent REGION");
- }
-#line 4499 "y.tab.c" /* yacc.c:1646 */
+ long irr;
+ long rt = (yyvsp[(7) - (8)].i);
+ long rflags = (yyvsp[(8) - (8)].i);
+
+ if (rflags == -1) rflags = (1 << 0);
+ if (!(rflags & 1)) rt += MAXRTYPE+1;
+ irr = ((rflags & 2) != 0);
+ add_opvars(splev, "iiio",
+ VA_PASS4((long)(yyvsp[(5) - (8)].i), rt, rflags, SPO_REGION));
+ (yyval.i) = (irr || (rflags & 1) || rt != OROOM);
+ break_stmt_start();
+ }
break;
- case 271:
-#line 1879 "lev_comp.y" /* yacc.c:1646 */
+ case 270:
+
+/* Line 1455 of yacc.c */
+#line 1869 "lev_comp.y"
{
- (yyval.i) = 0;
- }
-#line 4507 "y.tab.c" /* yacc.c:1646 */
+ break_stmt_end(splev);
+ if ( (yyvsp[(9) - (10)].i) ) {
+ add_opcode(splev, SPO_ENDROOM, NULL);
+ } else if ( (yyvsp[(10) - (10)].i) )
+ lc_error("Cannot use lev statements in non-permanent REGION");
+ }
break;
- case 272:
-#line 1883 "lev_comp.y" /* yacc.c:1646 */
+ case 271:
+
+/* Line 1455 of yacc.c */
+#line 1879 "lev_comp.y"
{
- (yyval.i) = (yyvsp[0].i);
- }
-#line 4515 "y.tab.c" /* yacc.c:1646 */
+ (yyval.i) = 0;
+ }
break;
- case 273:
-#line 1889 "lev_comp.y" /* yacc.c:1646 */
+ case 272:
+
+/* Line 1455 of yacc.c */
+#line 1883 "lev_comp.y"
{
- add_opvars(splev, "iio", VA_PASS3((long) (yyvsp[0].i),
- (long) (yyvsp[-2].i), SPO_ALTAR));
- }
-#line 4524 "y.tab.c" /* yacc.c:1646 */
+ (yyval.i) = (yyvsp[(1) - (1)].i);
+ }
break;
- case 274:
-#line 1896 "lev_comp.y" /* yacc.c:1646 */
+ case 273:
+
+/* Line 1455 of yacc.c */
+#line 1889 "lev_comp.y"
{
- add_opvars(splev, "io", VA_PASS2(2, SPO_GRAVE));
- }
-#line 4532 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "iio",
+ VA_PASS3((long)(yyvsp[(7) - (7)].i), (long)(yyvsp[(5) - (7)].i), SPO_ALTAR));
+ }
break;
- case 275:
-#line 1900 "lev_comp.y" /* yacc.c:1646 */
+ case 274:
+
+/* Line 1455 of yacc.c */
+#line 1896 "lev_comp.y"
{
- add_opvars(splev, "sio", VA_PASS3((char *) 0, 1, SPO_GRAVE));
- }
-#line 4541 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "io", VA_PASS2(2, SPO_GRAVE));
+ }
break;
- case 276:
-#line 1905 "lev_comp.y" /* yacc.c:1646 */
+ case 275:
+
+/* Line 1455 of yacc.c */
+#line 1900 "lev_comp.y"
{
- add_opvars(splev, "sio", VA_PASS3((char *) 0, 0, SPO_GRAVE));
- }
-#line 4550 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "sio",
+ VA_PASS3((char *)0, 1, SPO_GRAVE));
+ }
break;
- case 277:
-#line 1912 "lev_comp.y" /* yacc.c:1646 */
+ case 276:
+
+/* Line 1455 of yacc.c */
+#line 1905 "lev_comp.y"
{
- add_opvars(splev, "o", VA_PASS1(SPO_GOLD));
- }
-#line 4558 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "sio",
+ VA_PASS3((char *)0, 0, SPO_GRAVE));
+ }
break;
- case 278:
-#line 1918 "lev_comp.y" /* yacc.c:1646 */
+ case 277:
+
+/* Line 1455 of yacc.c */
+#line 1912 "lev_comp.y"
{
- add_opvars(splev, "io",
- VA_PASS2((long) (yyvsp[-2].i), SPO_ENGRAVING));
- }
-#line 4567 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "o", VA_PASS1(SPO_GOLD));
+ }
break;
- case 279:
-#line 1925 "lev_comp.y" /* yacc.c:1646 */
+ case 278:
+
+/* Line 1455 of yacc.c */
+#line 1918 "lev_comp.y"
{
- add_opvars(splev, "o", VA_PASS1(SPO_MINERALIZE));
- }
-#line 4575 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "io",
+ VA_PASS2((long)(yyvsp[(5) - (7)].i), SPO_ENGRAVING));
+ }
break;
- case 280:
-#line 1929 "lev_comp.y" /* yacc.c:1646 */
+ case 279:
+
+/* Line 1455 of yacc.c */
+#line 1925 "lev_comp.y"
{
- add_opvars(splev, "iiiio",
- VA_PASS5(-1L, -1L, -1L, -1L, SPO_MINERALIZE));
- }
-#line 4584 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "o", VA_PASS1(SPO_MINERALIZE));
+ }
break;
- case 281:
-#line 1936 "lev_comp.y" /* yacc.c:1646 */
+ case 280:
+
+/* Line 1455 of yacc.c */
+#line 1929 "lev_comp.y"
{
- int token = get_trap_type((yyvsp[0].map));
- if (token == ERR)
- lc_error("Unknown trap type '%s'!", (yyvsp[0].map));
- (yyval.i) = token;
- Free((yyvsp[0].map));
- }
-#line 4596 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "iiiio",
+ VA_PASS5(-1L, -1L, -1L, -1L, SPO_MINERALIZE));
+ }
break;
- case 283:
-#line 1947 "lev_comp.y" /* yacc.c:1646 */
+ case 281:
+
+/* Line 1455 of yacc.c */
+#line 1936 "lev_comp.y"
{
- int token = get_room_type((yyvsp[0].map));
- if (token == ERR) {
- lc_warning("Unknown room type \"%s\"! Making ordinary room...",
- (yyvsp[0].map));
- (yyval.i) = OROOM;
- } else
- (yyval.i) = token;
- Free((yyvsp[0].map));
- }
-#line 4610 "y.tab.c" /* yacc.c:1646 */
+ int token = get_trap_type((yyvsp[(1) - (1)].map));
+ if (token == ERR)
+ lc_error("Unknown trap type '%s'!", (yyvsp[(1) - (1)].map));
+ (yyval.i) = token;
+ Free((yyvsp[(1) - (1)].map));
+ }
break;
- case 285:
-#line 1960 "lev_comp.y" /* yacc.c:1646 */
+ case 283:
+
+/* Line 1455 of yacc.c */
+#line 1947 "lev_comp.y"
{
- (yyval.i) = -1;
- }
-#line 4618 "y.tab.c" /* yacc.c:1646 */
+ int token = get_room_type((yyvsp[(1) - (1)].map));
+ if (token == ERR) {
+ lc_warning("Unknown room type \"%s\"! Making ordinary room...", (yyvsp[(1) - (1)].map));
+ (yyval.i) = OROOM;
+ } else
+ (yyval.i) = token;
+ Free((yyvsp[(1) - (1)].map));
+ }
break;
- case 286:
-#line 1964 "lev_comp.y" /* yacc.c:1646 */
+ case 285:
+
+/* Line 1455 of yacc.c */
+#line 1960 "lev_comp.y"
{
- (yyval.i) = (yyvsp[0].i);
- }
-#line 4626 "y.tab.c" /* yacc.c:1646 */
+ (yyval.i) = -1;
+ }
break;
- case 287:
-#line 1970 "lev_comp.y" /* yacc.c:1646 */
+ case 286:
+
+/* Line 1455 of yacc.c */
+#line 1964 "lev_comp.y"
{
- (yyval.i) = (yyvsp[0].i);
- }
-#line 4634 "y.tab.c" /* yacc.c:1646 */
+ (yyval.i) = (yyvsp[(2) - (2)].i);
+ }
break;
- case 288:
-#line 1974 "lev_comp.y" /* yacc.c:1646 */
+ case 287:
+
+/* Line 1455 of yacc.c */
+#line 1970 "lev_comp.y"
{
- (yyval.i) = (yyvsp[-2].i) | (yyvsp[0].i);
- }
-#line 4642 "y.tab.c" /* yacc.c:1646 */
+ (yyval.i) = (yyvsp[(1) - (1)].i);
+ }
break;
- case 289:
-#line 1981 "lev_comp.y" /* yacc.c:1646 */
+ case 288:
+
+/* Line 1455 of yacc.c */
+#line 1974 "lev_comp.y"
{
- (yyval.i) = ((yyvsp[0].i) << 0);
- }
-#line 4650 "y.tab.c" /* yacc.c:1646 */
+ (yyval.i) = (yyvsp[(1) - (3)].i) | (yyvsp[(3) - (3)].i);
+ }
break;
- case 290:
-#line 1985 "lev_comp.y" /* yacc.c:1646 */
+ case 289:
+
+/* Line 1455 of yacc.c */
+#line 1981 "lev_comp.y"
{
- (yyval.i) = ((yyvsp[0].i) << 1);
- }
-#line 4658 "y.tab.c" /* yacc.c:1646 */
+ (yyval.i) = ((yyvsp[(1) - (1)].i) << 0);
+ }
break;
- case 291:
-#line 1989 "lev_comp.y" /* yacc.c:1646 */
+ case 290:
+
+/* Line 1455 of yacc.c */
+#line 1985 "lev_comp.y"
{
- (yyval.i) = ((yyvsp[0].i) << 2);
- }
-#line 4666 "y.tab.c" /* yacc.c:1646 */
+ (yyval.i) = ((yyvsp[(1) - (1)].i) << 1);
+ }
break;
- case 298:
-#line 2005 "lev_comp.y" /* yacc.c:1646 */
+ case 291:
+
+/* Line 1455 of yacc.c */
+#line 1989 "lev_comp.y"
{
- (yyval.i) = -MAX_REGISTERS - 1;
- }
-#line 4674 "y.tab.c" /* yacc.c:1646 */
+ (yyval.i) = ((yyvsp[(1) - (1)].i) << 2);
+ }
break;
- case 301:
-#line 2013 "lev_comp.y" /* yacc.c:1646 */
+ case 298:
+
+/* Line 1455 of yacc.c */
+#line 2005 "lev_comp.y"
{
- (yyval.i) = -MAX_REGISTERS - 1;
- }
-#line 4682 "y.tab.c" /* yacc.c:1646 */
+ (yyval.i) = - MAX_REGISTERS - 1;
+ }
break;
- case 304:
-#line 2023 "lev_comp.y" /* yacc.c:1646 */
+ case 301:
+
+/* Line 1455 of yacc.c */
+#line 2013 "lev_comp.y"
{
- if ((yyvsp[-1].i) >= 3)
- lc_error("Register Index overflow!");
- else
- (yyval.i) = -(yyvsp[-1].i) - 1;
- }
-#line 4693 "y.tab.c" /* yacc.c:1646 */
+ (yyval.i) = - MAX_REGISTERS - 1;
+ }
break;
- case 305:
-#line 2032 "lev_comp.y" /* yacc.c:1646 */
+ case 304:
+
+/* Line 1455 of yacc.c */
+#line 2023 "lev_comp.y"
{
- add_opvars(splev, "s", VA_PASS1((yyvsp[0].map)));
- Free((yyvsp[0].map));
- }
-#line 4702 "y.tab.c" /* yacc.c:1646 */
+ if ( (yyvsp[(3) - (4)].i) >= 3 )
+ lc_error("Register Index overflow!");
+ else
+ (yyval.i) = - (yyvsp[(3) - (4)].i) - 1;
+ }
break;
- case 306:
-#line 2037 "lev_comp.y" /* yacc.c:1646 */
+ case 305:
+
+/* Line 1455 of yacc.c */
+#line 2032 "lev_comp.y"
{
- check_vardef_type(variable_definitions, (yyvsp[0].map),
- SPOVAR_STRING);
- vardef_used(variable_definitions, (yyvsp[0].map));
- add_opvars(splev, "v", VA_PASS1((yyvsp[0].map)));
- Free((yyvsp[0].map));
- }
-#line 4713 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "s", VA_PASS1((yyvsp[(1) - (1)].map)));
+ Free((yyvsp[(1) - (1)].map));
+ }
break;
- case 307:
-#line 2044 "lev_comp.y" /* yacc.c:1646 */
+ case 306:
+
+/* Line 1455 of yacc.c */
+#line 2037 "lev_comp.y"
{
- check_vardef_type(variable_definitions, (yyvsp[-3].map),
- SPOVAR_STRING | SPOVAR_ARRAY);
- vardef_used(variable_definitions, (yyvsp[-3].map));
- add_opvars(splev, "v", VA_PASS1((yyvsp[-3].map)));
- Free((yyvsp[-3].map));
- }
-#line 4724 "y.tab.c" /* yacc.c:1646 */
+ check_vardef_type(variable_definitions, (yyvsp[(1) - (1)].map), SPOVAR_STRING);
+ vardef_used(variable_definitions, (yyvsp[(1) - (1)].map));
+ add_opvars(splev, "v", VA_PASS1((yyvsp[(1) - (1)].map)));
+ Free((yyvsp[(1) - (1)].map));
+ }
break;
- case 308:
-#line 2054 "lev_comp.y" /* yacc.c:1646 */
+ case 307:
+
+/* Line 1455 of yacc.c */
+#line 2044 "lev_comp.y"
{
- /* nothing */
- }
-#line 4732 "y.tab.c" /* yacc.c:1646 */
+ check_vardef_type(variable_definitions, (yyvsp[(1) - (4)].map), SPOVAR_STRING|SPOVAR_ARRAY);
+ vardef_used(variable_definitions, (yyvsp[(1) - (4)].map));
+ add_opvars(splev, "v", VA_PASS1((yyvsp[(1) - (4)].map)));
+ Free((yyvsp[(1) - (4)].map));
+ }
break;
- case 309:
-#line 2060 "lev_comp.y" /* yacc.c:1646 */
+ case 308:
+
+/* Line 1455 of yacc.c */
+#line 2054 "lev_comp.y"
{
- add_opvars(splev, "c", VA_PASS1((yyvsp[0].i)));
- }
-#line 4740 "y.tab.c" /* yacc.c:1646 */
+ /* nothing */
+ }
break;
- case 310:
-#line 2064 "lev_comp.y" /* yacc.c:1646 */
+ case 309:
+
+/* Line 1455 of yacc.c */
+#line 2060 "lev_comp.y"
{
- add_opvars(splev, "o", VA_PASS1(SPO_SEL_RNDCOORD));
- }
-#line 4748 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "c", VA_PASS1((yyvsp[(1) - (1)].i)));
+ }
break;
- case 311:
-#line 2068 "lev_comp.y" /* yacc.c:1646 */
+ case 310:
+
+/* Line 1455 of yacc.c */
+#line 2064 "lev_comp.y"
{
- check_vardef_type(variable_definitions, (yyvsp[0].map), SPOVAR_COORD);
- vardef_used(variable_definitions, (yyvsp[0].map));
- add_opvars(splev, "v", VA_PASS1((yyvsp[0].map)));
- Free((yyvsp[0].map));
- }
-#line 4759 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "o", VA_PASS1(SPO_SEL_RNDCOORD));
+ }
break;
- case 312:
-#line 2075 "lev_comp.y" /* yacc.c:1646 */
+ case 311:
+
+/* Line 1455 of yacc.c */
+#line 2068 "lev_comp.y"
{
- check_vardef_type(variable_definitions, (yyvsp[-3].map),
- SPOVAR_COORD | SPOVAR_ARRAY);
- vardef_used(variable_definitions, (yyvsp[-3].map));
- add_opvars(splev, "v", VA_PASS1((yyvsp[-3].map)));
- Free((yyvsp[-3].map));
- }
-#line 4770 "y.tab.c" /* yacc.c:1646 */
+ check_vardef_type(variable_definitions, (yyvsp[(1) - (1)].map), SPOVAR_COORD);
+ vardef_used(variable_definitions, (yyvsp[(1) - (1)].map));
+ add_opvars(splev, "v", VA_PASS1((yyvsp[(1) - (1)].map)));
+ Free((yyvsp[(1) - (1)].map));
+ }
break;
- case 313:
-#line 2084 "lev_comp.y" /* yacc.c:1646 */
+ case 312:
+
+/* Line 1455 of yacc.c */
+#line 2075 "lev_comp.y"
{
- if ((yyvsp[-3].i) < 0 || (yyvsp[-1].i) < 0 || (yyvsp[-3].i) >= COLNO
- || (yyvsp[-1].i) >= ROWNO)
- lc_error("Coordinates (%li,%li) out of map range!", (yyvsp[-3].i),
- (yyvsp[-1].i));
- (yyval.i) = SP_COORD_PACK((yyvsp[-3].i), (yyvsp[-1].i));
- }
-#line 4780 "y.tab.c" /* yacc.c:1646 */
+ check_vardef_type(variable_definitions, (yyvsp[(1) - (4)].map), SPOVAR_COORD|SPOVAR_ARRAY);
+ vardef_used(variable_definitions, (yyvsp[(1) - (4)].map));
+ add_opvars(splev, "v", VA_PASS1((yyvsp[(1) - (4)].map)));
+ Free((yyvsp[(1) - (4)].map));
+ }
break;
- case 314:
-#line 2090 "lev_comp.y" /* yacc.c:1646 */
+ case 313:
+
+/* Line 1455 of yacc.c */
+#line 2084 "lev_comp.y"
{
- (yyval.i) = SP_COORD_PACK_RANDOM(0);
- }
-#line 4788 "y.tab.c" /* yacc.c:1646 */
+ if ((yyvsp[(2) - (5)].i) < 0 || (yyvsp[(4) - (5)].i) < 0 || (yyvsp[(2) - (5)].i) >= COLNO || (yyvsp[(4) - (5)].i) >= ROWNO)
+ lc_error("Coordinates (%li,%li) out of map range!", (yyvsp[(2) - (5)].i), (yyvsp[(4) - (5)].i));
+ (yyval.i) = SP_COORD_PACK((yyvsp[(2) - (5)].i), (yyvsp[(4) - (5)].i));
+ }
break;
- case 315:
-#line 2094 "lev_comp.y" /* yacc.c:1646 */
+ case 314:
+
+/* Line 1455 of yacc.c */
+#line 2090 "lev_comp.y"
{
- (yyval.i) = SP_COORD_PACK_RANDOM((yyvsp[-1].i));
- }
-#line 4796 "y.tab.c" /* yacc.c:1646 */
+ (yyval.i) = SP_COORD_PACK_RANDOM(0);
+ }
break;
- case 316:
-#line 2100 "lev_comp.y" /* yacc.c:1646 */
+ case 315:
+
+/* Line 1455 of yacc.c */
+#line 2094 "lev_comp.y"
{
- (yyval.i) = (yyvsp[0].i);
- }
-#line 4804 "y.tab.c" /* yacc.c:1646 */
+ (yyval.i) = SP_COORD_PACK_RANDOM( (yyvsp[(2) - (3)].i) );
+ }
break;
- case 317:
-#line 2104 "lev_comp.y" /* yacc.c:1646 */
+ case 316:
+
+/* Line 1455 of yacc.c */
+#line 2100 "lev_comp.y"
{
- if (((yyvsp[-2].i) & (yyvsp[0].i)))
- lc_warning("Humidity flag used twice.");
- (yyval.i) = ((yyvsp[-2].i) | (yyvsp[0].i));
- }
-#line 4814 "y.tab.c" /* yacc.c:1646 */
+ (yyval.i) = (yyvsp[(1) - (1)].i);
+ }
break;
- case 318:
-#line 2112 "lev_comp.y" /* yacc.c:1646 */
+ case 317:
+
+/* Line 1455 of yacc.c */
+#line 2104 "lev_comp.y"
{
- /* nothing */
- }
-#line 4822 "y.tab.c" /* yacc.c:1646 */
+ if (((yyvsp[(1) - (3)].i) & (yyvsp[(3) - (3)].i)))
+ lc_warning("Humidity flag used twice.");
+ (yyval.i) = ((yyvsp[(1) - (3)].i) | (yyvsp[(3) - (3)].i));
+ }
break;
- case 319:
-#line 2116 "lev_comp.y" /* yacc.c:1646 */
+ case 318:
+
+/* Line 1455 of yacc.c */
+#line 2112 "lev_comp.y"
{
- check_vardef_type(variable_definitions, (yyvsp[0].map),
- SPOVAR_REGION);
- vardef_used(variable_definitions, (yyvsp[0].map));
- add_opvars(splev, "v", VA_PASS1((yyvsp[0].map)));
- Free((yyvsp[0].map));
- }
-#line 4833 "y.tab.c" /* yacc.c:1646 */
+ /* nothing */
+ }
break;
- case 320:
-#line 2123 "lev_comp.y" /* yacc.c:1646 */
+ case 319:
+
+/* Line 1455 of yacc.c */
+#line 2116 "lev_comp.y"
{
- check_vardef_type(variable_definitions, (yyvsp[-3].map),
- SPOVAR_REGION | SPOVAR_ARRAY);
- vardef_used(variable_definitions, (yyvsp[-3].map));
- add_opvars(splev, "v", VA_PASS1((yyvsp[-3].map)));
- Free((yyvsp[-3].map));
- }
-#line 4844 "y.tab.c" /* yacc.c:1646 */
+ check_vardef_type(variable_definitions, (yyvsp[(1) - (1)].map), SPOVAR_REGION);
+ vardef_used(variable_definitions, (yyvsp[(1) - (1)].map));
+ add_opvars(splev, "v", VA_PASS1((yyvsp[(1) - (1)].map)));
+ Free((yyvsp[(1) - (1)].map));
+ }
+ break;
+
+ case 320:
+
+/* Line 1455 of yacc.c */
+#line 2123 "lev_comp.y"
+ {
+ check_vardef_type(variable_definitions, (yyvsp[(1) - (4)].map), SPOVAR_REGION|SPOVAR_ARRAY);
+ vardef_used(variable_definitions, (yyvsp[(1) - (4)].map));
+ add_opvars(splev, "v", VA_PASS1((yyvsp[(1) - (4)].map)));
+ Free((yyvsp[(1) - (4)].map));
+ }
break;
- case 321:
-#line 2132 "lev_comp.y" /* yacc.c:1646 */
+ case 321:
+
+/* Line 1455 of yacc.c */
+#line 2132 "lev_comp.y"
{
- long r = SP_REGION_PACK((yyvsp[-7].i), (yyvsp[-5].i), (yyvsp[-3].i),
- (yyvsp[-1].i));
- if ((yyvsp[-7].i) > (yyvsp[-3].i) || (yyvsp[-5].i) > (yyvsp[-1].i))
- lc_error("Region start > end: (%li,%li,%li,%li)!", (yyvsp[-7].i),
- (yyvsp[-5].i), (yyvsp[-3].i), (yyvsp[-1].i));
+ long r = SP_REGION_PACK((yyvsp[(2) - (9)].i), (yyvsp[(4) - (9)].i), (yyvsp[(6) - (9)].i), (yyvsp[(8) - (9)].i));
+ if ( (yyvsp[(2) - (9)].i) > (yyvsp[(6) - (9)].i) || (yyvsp[(4) - (9)].i) > (yyvsp[(8) - (9)].i) )
+ lc_error("Region start > end: (%li,%li,%li,%li)!", (yyvsp[(2) - (9)].i), (yyvsp[(4) - (9)].i), (yyvsp[(6) - (9)].i), (yyvsp[(8) - (9)].i));
- add_opvars(splev, "r", VA_PASS1(r));
- (yyval.i) = r;
- }
-#line 4857 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "r", VA_PASS1(r));
+ (yyval.i) = r;
+ }
break;
- case 322:
-#line 2143 "lev_comp.y" /* yacc.c:1646 */
+ case 322:
+
+/* Line 1455 of yacc.c */
+#line 2143 "lev_comp.y"
{
- add_opvars(splev, "m", VA_PASS1((yyvsp[0].i)));
- }
-#line 4865 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "m", VA_PASS1((yyvsp[(1) - (1)].i)));
+ }
break;
- case 323:
-#line 2147 "lev_comp.y" /* yacc.c:1646 */
+ case 323:
+
+/* Line 1455 of yacc.c */
+#line 2147 "lev_comp.y"
{
- check_vardef_type(variable_definitions, (yyvsp[0].map),
- SPOVAR_MAPCHAR);
- vardef_used(variable_definitions, (yyvsp[0].map));
- add_opvars(splev, "v", VA_PASS1((yyvsp[0].map)));
- Free((yyvsp[0].map));
- }
-#line 4876 "y.tab.c" /* yacc.c:1646 */
+ check_vardef_type(variable_definitions, (yyvsp[(1) - (1)].map), SPOVAR_MAPCHAR);
+ vardef_used(variable_definitions, (yyvsp[(1) - (1)].map));
+ add_opvars(splev, "v", VA_PASS1((yyvsp[(1) - (1)].map)));
+ Free((yyvsp[(1) - (1)].map));
+ }
break;
- case 324:
-#line 2154 "lev_comp.y" /* yacc.c:1646 */
+ case 324:
+
+/* Line 1455 of yacc.c */
+#line 2154 "lev_comp.y"
{
- check_vardef_type(variable_definitions, (yyvsp[-3].map),
- SPOVAR_MAPCHAR | SPOVAR_ARRAY);
- vardef_used(variable_definitions, (yyvsp[-3].map));
- add_opvars(splev, "v", VA_PASS1((yyvsp[-3].map)));
- Free((yyvsp[-3].map));
- }
-#line 4887 "y.tab.c" /* yacc.c:1646 */
+ check_vardef_type(variable_definitions, (yyvsp[(1) - (4)].map), SPOVAR_MAPCHAR|SPOVAR_ARRAY);
+ vardef_used(variable_definitions, (yyvsp[(1) - (4)].map));
+ add_opvars(splev, "v", VA_PASS1((yyvsp[(1) - (4)].map)));
+ Free((yyvsp[(1) - (4)].map));
+ }
break;
- case 325:
-#line 2163 "lev_comp.y" /* yacc.c:1646 */
+ case 325:
+
+/* Line 1455 of yacc.c */
+#line 2163 "lev_comp.y"
{
- if (what_map_char((char) (yyvsp[0].i)) != INVALID_TYPE)
- (yyval.i) =
- SP_MAPCHAR_PACK(what_map_char((char) (yyvsp[0].i)), -2);
- else {
- lc_error("Unknown map char type '%c'!", (yyvsp[0].i));
- (yyval.i) = SP_MAPCHAR_PACK(STONE, -2);
- }
- }
-#line 4900 "y.tab.c" /* yacc.c:1646 */
+ if (what_map_char((char) (yyvsp[(1) - (1)].i)) != INVALID_TYPE)
+ (yyval.i) = SP_MAPCHAR_PACK(what_map_char((char) (yyvsp[(1) - (1)].i)), -2);
+ else {
+ lc_error("Unknown map char type '%c'!", (yyvsp[(1) - (1)].i));
+ (yyval.i) = SP_MAPCHAR_PACK(STONE, -2);
+ }
+ }
break;
- case 326:
-#line 2172 "lev_comp.y" /* yacc.c:1646 */
+ case 326:
+
+/* Line 1455 of yacc.c */
+#line 2172 "lev_comp.y"
{
- if (what_map_char((char) (yyvsp[-3].i)) != INVALID_TYPE)
- (yyval.i) = SP_MAPCHAR_PACK(what_map_char((char) (yyvsp[-3].i)),
- (yyvsp[-1].i));
- else {
- lc_error("Unknown map char type '%c'!", (yyvsp[-3].i));
- (yyval.i) = SP_MAPCHAR_PACK(STONE, (yyvsp[-1].i));
- }
- }
-#line 4913 "y.tab.c" /* yacc.c:1646 */
+ if (what_map_char((char) (yyvsp[(2) - (5)].i)) != INVALID_TYPE)
+ (yyval.i) = SP_MAPCHAR_PACK(what_map_char((char) (yyvsp[(2) - (5)].i)), (yyvsp[(4) - (5)].i));
+ else {
+ lc_error("Unknown map char type '%c'!", (yyvsp[(2) - (5)].i));
+ (yyval.i) = SP_MAPCHAR_PACK(STONE, (yyvsp[(4) - (5)].i));
+ }
+ }
break;
- case 327:
-#line 2183 "lev_comp.y" /* yacc.c:1646 */
+ case 327:
+
+/* Line 1455 of yacc.c */
+#line 2183 "lev_comp.y"
{
- add_opvars(splev, "M", VA_PASS1((yyvsp[0].i)));
- }
-#line 4921 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "M", VA_PASS1((yyvsp[(1) - (1)].i)));
+ }
break;
- case 328:
-#line 2187 "lev_comp.y" /* yacc.c:1646 */
+ case 328:
+
+/* Line 1455 of yacc.c */
+#line 2187 "lev_comp.y"
{
- check_vardef_type(variable_definitions, (yyvsp[0].map), SPOVAR_MONST);
- vardef_used(variable_definitions, (yyvsp[0].map));
- add_opvars(splev, "v", VA_PASS1((yyvsp[0].map)));
- Free((yyvsp[0].map));
- }
-#line 4932 "y.tab.c" /* yacc.c:1646 */
+ check_vardef_type(variable_definitions, (yyvsp[(1) - (1)].map), SPOVAR_MONST);
+ vardef_used(variable_definitions, (yyvsp[(1) - (1)].map));
+ add_opvars(splev, "v", VA_PASS1((yyvsp[(1) - (1)].map)));
+ Free((yyvsp[(1) - (1)].map));
+ }
break;
- case 329:
-#line 2194 "lev_comp.y" /* yacc.c:1646 */
+ case 329:
+
+/* Line 1455 of yacc.c */
+#line 2194 "lev_comp.y"
{
- check_vardef_type(variable_definitions, (yyvsp[-3].map),
- SPOVAR_MONST | SPOVAR_ARRAY);
- vardef_used(variable_definitions, (yyvsp[-3].map));
- add_opvars(splev, "v", VA_PASS1((yyvsp[-3].map)));
- Free((yyvsp[-3].map));
- }
-#line 4943 "y.tab.c" /* yacc.c:1646 */
+ check_vardef_type(variable_definitions, (yyvsp[(1) - (4)].map), SPOVAR_MONST|SPOVAR_ARRAY);
+ vardef_used(variable_definitions, (yyvsp[(1) - (4)].map));
+ add_opvars(splev, "v", VA_PASS1((yyvsp[(1) - (4)].map)));
+ Free((yyvsp[(1) - (4)].map));
+ }
break;
- case 330:
-#line 2203 "lev_comp.y" /* yacc.c:1646 */
+ case 330:
+
+/* Line 1455 of yacc.c */
+#line 2203 "lev_comp.y"
{
- long m = get_monster_id((yyvsp[0].map), (char) 0);
- if (m == ERR) {
- lc_error("Unknown monster \"%s\"!", (yyvsp[0].map));
- (yyval.i) = -1;
- } else
- (yyval.i) = SP_MONST_PACK(m, def_monsyms[(int) mons[m].mlet].sym);
- }
-#line 4956 "y.tab.c" /* yacc.c:1646 */
+ long m = get_monster_id((yyvsp[(1) - (1)].map), (char)0);
+ if (m == ERR) {
+ lc_error("Unknown monster \"%s\"!", (yyvsp[(1) - (1)].map));
+ (yyval.i) = -1;
+ } else
+ (yyval.i) = SP_MONST_PACK(m, def_monsyms[(int)mons[m].mlet].sym);
+ }
break;
- case 331:
-#line 2212 "lev_comp.y" /* yacc.c:1646 */
+ case 331:
+
+/* Line 1455 of yacc.c */
+#line 2212 "lev_comp.y"
{
- if (check_monster_char((char) (yyvsp[0].i)))
- (yyval.i) = SP_MONST_PACK(-1, (yyvsp[0].i));
- else {
- lc_error("Unknown monster class '%c'!", (yyvsp[0].i));
- (yyval.i) = -1;
- }
- }
-#line 4969 "y.tab.c" /* yacc.c:1646 */
+ if (check_monster_char((char) (yyvsp[(1) - (1)].i)))
+ (yyval.i) = SP_MONST_PACK(-1, (yyvsp[(1) - (1)].i));
+ else {
+ lc_error("Unknown monster class '%c'!", (yyvsp[(1) - (1)].i));
+ (yyval.i) = -1;
+ }
+ }
break;
- case 332:
-#line 2221 "lev_comp.y" /* yacc.c:1646 */
+ case 332:
+
+/* Line 1455 of yacc.c */
+#line 2221 "lev_comp.y"
{
- long m = get_monster_id((yyvsp[-1].map), (char) (yyvsp[-3].i));
- if (m == ERR) {
- lc_error("Unknown monster ('%c', \"%s\")!", (yyvsp[-3].i),
- (yyvsp[-1].map));
- (yyval.i) = -1;
- } else
- (yyval.i) = SP_MONST_PACK(m, (yyvsp[-3].i));
- }
-#line 4982 "y.tab.c" /* yacc.c:1646 */
+ long m = get_monster_id((yyvsp[(4) - (5)].map), (char) (yyvsp[(2) - (5)].i));
+ if (m == ERR) {
+ lc_error("Unknown monster ('%c', \"%s\")!", (yyvsp[(2) - (5)].i), (yyvsp[(4) - (5)].map));
+ (yyval.i) = -1;
+ } else
+ (yyval.i) = SP_MONST_PACK(m, (yyvsp[(2) - (5)].i));
+ }
break;
- case 333:
-#line 2230 "lev_comp.y" /* yacc.c:1646 */
+ case 333:
+
+/* Line 1455 of yacc.c */
+#line 2230 "lev_comp.y"
{
- (yyval.i) = -1;
- }
-#line 4990 "y.tab.c" /* yacc.c:1646 */
+ (yyval.i) = -1;
+ }
break;
- case 334:
-#line 2236 "lev_comp.y" /* yacc.c:1646 */
+ case 334:
+
+/* Line 1455 of yacc.c */
+#line 2236 "lev_comp.y"
{
- add_opvars(splev, "O", VA_PASS1((yyvsp[0].i)));
- }
-#line 4998 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "O", VA_PASS1((yyvsp[(1) - (1)].i)));
+ }
break;
- case 335:
-#line 2240 "lev_comp.y" /* yacc.c:1646 */
+ case 335:
+
+/* Line 1455 of yacc.c */
+#line 2240 "lev_comp.y"
{
- check_vardef_type(variable_definitions, (yyvsp[0].map), SPOVAR_OBJ);
- vardef_used(variable_definitions, (yyvsp[0].map));
- add_opvars(splev, "v", VA_PASS1((yyvsp[0].map)));
- Free((yyvsp[0].map));
- }
-#line 5009 "y.tab.c" /* yacc.c:1646 */
+ check_vardef_type(variable_definitions, (yyvsp[(1) - (1)].map), SPOVAR_OBJ);
+ vardef_used(variable_definitions, (yyvsp[(1) - (1)].map));
+ add_opvars(splev, "v", VA_PASS1((yyvsp[(1) - (1)].map)));
+ Free((yyvsp[(1) - (1)].map));
+ }
break;
- case 336:
-#line 2247 "lev_comp.y" /* yacc.c:1646 */
+ case 336:
+
+/* Line 1455 of yacc.c */
+#line 2247 "lev_comp.y"
{
- check_vardef_type(variable_definitions, (yyvsp[-3].map),
- SPOVAR_OBJ | SPOVAR_ARRAY);
- vardef_used(variable_definitions, (yyvsp[-3].map));
- add_opvars(splev, "v", VA_PASS1((yyvsp[-3].map)));
- Free((yyvsp[-3].map));
- }
-#line 5020 "y.tab.c" /* yacc.c:1646 */
+ check_vardef_type(variable_definitions, (yyvsp[(1) - (4)].map), SPOVAR_OBJ|SPOVAR_ARRAY);
+ vardef_used(variable_definitions, (yyvsp[(1) - (4)].map));
+ add_opvars(splev, "v", VA_PASS1((yyvsp[(1) - (4)].map)));
+ Free((yyvsp[(1) - (4)].map));
+ }
break;
- case 337:
-#line 2256 "lev_comp.y" /* yacc.c:1646 */
+ case 337:
+
+/* Line 1455 of yacc.c */
+#line 2256 "lev_comp.y"
{
- long m = get_object_id((yyvsp[0].map), (char) 0);
- if (m == ERR) {
- lc_error("Unknown object \"%s\"!", (yyvsp[0].map));
- (yyval.i) = -1;
- } else
- (yyval.i) = SP_OBJ_PACK(m, 1); /* obj class != 0 to force
- generation of a specific item */
+ long m = get_object_id((yyvsp[(1) - (1)].map), (char)0);
+ if (m == ERR) {
+ lc_error("Unknown object \"%s\"!", (yyvsp[(1) - (1)].map));
+ (yyval.i) = -1;
+ } else
+ (yyval.i) = SP_OBJ_PACK(m, 1); /* obj class != 0 to force generation of a specific item */
- }
-#line 5034 "y.tab.c" /* yacc.c:1646 */
+ }
break;
- case 338:
-#line 2266 "lev_comp.y" /* yacc.c:1646 */
+ case 338:
+
+/* Line 1455 of yacc.c */
+#line 2266 "lev_comp.y"
{
- if (check_object_char((char) (yyvsp[0].i)))
- (yyval.i) = SP_OBJ_PACK(-1, (yyvsp[0].i));
- else {
- lc_error("Unknown object class '%c'!", (yyvsp[0].i));
- (yyval.i) = -1;
- }
- }
-#line 5047 "y.tab.c" /* yacc.c:1646 */
+ if (check_object_char((char) (yyvsp[(1) - (1)].i)))
+ (yyval.i) = SP_OBJ_PACK(-1, (yyvsp[(1) - (1)].i));
+ else {
+ lc_error("Unknown object class '%c'!", (yyvsp[(1) - (1)].i));
+ (yyval.i) = -1;
+ }
+ }
break;
- case 339:
-#line 2275 "lev_comp.y" /* yacc.c:1646 */
+ case 339:
+
+/* Line 1455 of yacc.c */
+#line 2275 "lev_comp.y"
{
- long m = get_object_id((yyvsp[-1].map), (char) (yyvsp[-3].i));
- if (m == ERR) {
- lc_error("Unknown object ('%c', \"%s\")!", (yyvsp[-3].i),
- (yyvsp[-1].map));
- (yyval.i) = -1;
- } else
- (yyval.i) = SP_OBJ_PACK(m, (yyvsp[-3].i));
- }
-#line 5060 "y.tab.c" /* yacc.c:1646 */
+ long m = get_object_id((yyvsp[(4) - (5)].map), (char) (yyvsp[(2) - (5)].i));
+ if (m == ERR) {
+ lc_error("Unknown object ('%c', \"%s\")!", (yyvsp[(2) - (5)].i), (yyvsp[(4) - (5)].map));
+ (yyval.i) = -1;
+ } else
+ (yyval.i) = SP_OBJ_PACK(m, (yyvsp[(2) - (5)].i));
+ }
break;
- case 340:
-#line 2284 "lev_comp.y" /* yacc.c:1646 */
+ case 340:
+
+/* Line 1455 of yacc.c */
+#line 2284 "lev_comp.y"
{
- (yyval.i) = -1;
- }
-#line 5068 "y.tab.c" /* yacc.c:1646 */
+ (yyval.i) = -1;
+ }
+ break;
+
+ case 341:
+
+/* Line 1455 of yacc.c */
+#line 2290 "lev_comp.y"
+ { }
break;
- case 341:
-#line 2290 "lev_comp.y" /* yacc.c:1646 */
+ case 342:
+
+/* Line 1455 of yacc.c */
+#line 2292 "lev_comp.y"
{
- }
-#line 5074 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "o", VA_PASS1(SPO_MATH_ADD));
+ }
break;
- case 342:
-#line 2292 "lev_comp.y" /* yacc.c:1646 */
+ case 343:
+
+/* Line 1455 of yacc.c */
+#line 2298 "lev_comp.y"
{
- add_opvars(splev, "o", VA_PASS1(SPO_MATH_ADD));
- }
-#line 5082 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "i", VA_PASS1((yyvsp[(1) - (1)].i)));
+ }
break;
- case 343:
-#line 2298 "lev_comp.y" /* yacc.c:1646 */
+ case 344:
+
+/* Line 1455 of yacc.c */
+#line 2302 "lev_comp.y"
{
- add_opvars(splev, "i", VA_PASS1((yyvsp[0].i)));
- }
-#line 5090 "y.tab.c" /* yacc.c:1646 */
+ is_inconstant_number = 1;
+ }
break;
- case 344:
-#line 2302 "lev_comp.y" /* yacc.c:1646 */
+ case 345:
+
+/* Line 1455 of yacc.c */
+#line 2306 "lev_comp.y"
{
- is_inconstant_number = 1;
- }
-#line 5098 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "i", VA_PASS1((yyvsp[(2) - (3)].i)));
+ }
break;
- case 345:
-#line 2306 "lev_comp.y" /* yacc.c:1646 */
+ case 346:
+
+/* Line 1455 of yacc.c */
+#line 2310 "lev_comp.y"
{
- add_opvars(splev, "i", VA_PASS1((yyvsp[-1].i)));
- }
-#line 5106 "y.tab.c" /* yacc.c:1646 */
+ check_vardef_type(variable_definitions, (yyvsp[(1) - (1)].map), SPOVAR_INT);
+ vardef_used(variable_definitions, (yyvsp[(1) - (1)].map));
+ add_opvars(splev, "v", VA_PASS1((yyvsp[(1) - (1)].map)));
+ Free((yyvsp[(1) - (1)].map));
+ is_inconstant_number = 1;
+ }
break;
- case 346:
-#line 2310 "lev_comp.y" /* yacc.c:1646 */
+ case 347:
+
+/* Line 1455 of yacc.c */
+#line 2318 "lev_comp.y"
{
- check_vardef_type(variable_definitions, (yyvsp[0].map), SPOVAR_INT);
- vardef_used(variable_definitions, (yyvsp[0].map));
- add_opvars(splev, "v", VA_PASS1((yyvsp[0].map)));
- Free((yyvsp[0].map));
- is_inconstant_number = 1;
- }
-#line 5118 "y.tab.c" /* yacc.c:1646 */
+ check_vardef_type(variable_definitions,
+ (yyvsp[(1) - (4)].map), SPOVAR_INT|SPOVAR_ARRAY);
+ vardef_used(variable_definitions, (yyvsp[(1) - (4)].map));
+ add_opvars(splev, "v", VA_PASS1((yyvsp[(1) - (4)].map)));
+ Free((yyvsp[(1) - (4)].map));
+ is_inconstant_number = 1;
+ }
break;
- case 347:
-#line 2318 "lev_comp.y" /* yacc.c:1646 */
+ case 348:
+
+/* Line 1455 of yacc.c */
+#line 2327 "lev_comp.y"
{
- check_vardef_type(variable_definitions, (yyvsp[-3].map),
- SPOVAR_INT | SPOVAR_ARRAY);
- vardef_used(variable_definitions, (yyvsp[-3].map));
- add_opvars(splev, "v", VA_PASS1((yyvsp[-3].map)));
- Free((yyvsp[-3].map));
- is_inconstant_number = 1;
- }
-#line 5131 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "o", VA_PASS1(SPO_MATH_ADD));
+ }
break;
- case 348:
-#line 2327 "lev_comp.y" /* yacc.c:1646 */
+ case 349:
+
+/* Line 1455 of yacc.c */
+#line 2331 "lev_comp.y"
{
- add_opvars(splev, "o", VA_PASS1(SPO_MATH_ADD));
- }
-#line 5139 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "o", VA_PASS1(SPO_MATH_SUB));
+ }
break;
- case 349:
-#line 2331 "lev_comp.y" /* yacc.c:1646 */
+ case 350:
+
+/* Line 1455 of yacc.c */
+#line 2335 "lev_comp.y"
{
- add_opvars(splev, "o", VA_PASS1(SPO_MATH_SUB));
- }
-#line 5147 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "o", VA_PASS1(SPO_MATH_MUL));
+ }
break;
- case 350:
-#line 2335 "lev_comp.y" /* yacc.c:1646 */
+ case 351:
+
+/* Line 1455 of yacc.c */
+#line 2339 "lev_comp.y"
{
- add_opvars(splev, "o", VA_PASS1(SPO_MATH_MUL));
- }
-#line 5155 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "o", VA_PASS1(SPO_MATH_DIV));
+ }
break;
- case 351:
-#line 2339 "lev_comp.y" /* yacc.c:1646 */
+ case 352:
+
+/* Line 1455 of yacc.c */
+#line 2343 "lev_comp.y"
{
- add_opvars(splev, "o", VA_PASS1(SPO_MATH_DIV));
- }
-#line 5163 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "o", VA_PASS1(SPO_MATH_MOD));
+ }
+ break;
+
+ case 353:
+
+/* Line 1455 of yacc.c */
+#line 2346 "lev_comp.y"
+ { }
break;
- case 352:
-#line 2343 "lev_comp.y" /* yacc.c:1646 */
+ case 354:
+
+/* Line 1455 of yacc.c */
+#line 2350 "lev_comp.y"
{
- add_opvars(splev, "o", VA_PASS1(SPO_MATH_MOD));
- }
-#line 5171 "y.tab.c" /* yacc.c:1646 */
+ if (!strcmp("int", (yyvsp[(1) - (1)].map)) || !strcmp("integer", (yyvsp[(1) - (1)].map))) {
+ (yyval.i) = (int)'i';
+ } else
+ lc_error("Unknown function parameter type '%s'", (yyvsp[(1) - (1)].map));
+ }
break;
- case 353:
-#line 2346 "lev_comp.y" /* yacc.c:1646 */
+ case 355:
+
+/* Line 1455 of yacc.c */
+#line 2357 "lev_comp.y"
{
- }
-#line 5177 "y.tab.c" /* yacc.c:1646 */
+ if (!strcmp("str", (yyvsp[(1) - (1)].map)) || !strcmp("string", (yyvsp[(1) - (1)].map))) {
+ (yyval.i) = (int)'s';
+ } else
+ lc_error("Unknown function parameter type '%s'", (yyvsp[(1) - (1)].map));
+ }
break;
- case 354:
-#line 2350 "lev_comp.y" /* yacc.c:1646 */
+ case 356:
+
+/* Line 1455 of yacc.c */
+#line 2366 "lev_comp.y"
{
- if (!strcmp("int", (yyvsp[0].map))
- || !strcmp("integer", (yyvsp[0].map))) {
- (yyval.i) = (int) 'i';
- } else
- lc_error("Unknown function parameter type '%s'", (yyvsp[0].map));
- }
-#line 5188 "y.tab.c" /* yacc.c:1646 */
+ struct lc_funcdefs_parm *tmp = New(struct lc_funcdefs_parm);
+
+ if (!curr_function) {
+ lc_error("Function parameters outside function definition.");
+ } else if (!tmp) {
+ lc_error("Could not alloc function params.");
+ } else {
+ long vt;
+ tmp->name = strdup((yyvsp[(1) - (3)].map));
+ tmp->parmtype = (char) (yyvsp[(3) - (3)].i);
+ tmp->next = curr_function->params;
+ curr_function->params = tmp;
+ curr_function->n_params++;
+ switch (tmp->parmtype) {
+ case 'i': vt = SPOVAR_INT; break;
+ case 's': vt = SPOVAR_STRING; break;
+ default: lc_error("Unknown func param conversion."); break;
+ }
+ variable_definitions = add_vardef_type(
+ variable_definitions,
+ (yyvsp[(1) - (3)].map), vt);
+ }
+ Free((yyvsp[(1) - (3)].map));
+ }
break;
- case 355:
-#line 2357 "lev_comp.y" /* yacc.c:1646 */
+ case 361:
+
+/* Line 1455 of yacc.c */
+#line 2402 "lev_comp.y"
{
- if (!strcmp("str", (yyvsp[0].map))
- || !strcmp("string", (yyvsp[0].map))) {
- (yyval.i) = (int) 's';
- } else
- lc_error("Unknown function parameter type '%s'", (yyvsp[0].map));
- }
-#line 5199 "y.tab.c" /* yacc.c:1646 */
- break;
-
- case 356:
-#line 2366 "lev_comp.y" /* yacc.c:1646 */
- {
- struct lc_funcdefs_parm *tmp = New(struct lc_funcdefs_parm);
-
- if (!curr_function) {
- lc_error("Function parameters outside function definition.");
- } else if (!tmp) {
- lc_error("Could not alloc function params.");
- } else {
- long vt;
- tmp->name = strdup((yyvsp[-2].map));
- tmp->parmtype = (char) (yyvsp[0].i);
- tmp->next = curr_function->params;
- curr_function->params = tmp;
- curr_function->n_params++;
- switch (tmp->parmtype) {
- case 'i':
- vt = SPOVAR_INT;
- break;
- case 's':
- vt = SPOVAR_STRING;
- break;
- default:
- lc_error("Unknown func param conversion.");
- break;
- }
- variable_definitions =
- add_vardef_type(variable_definitions, (yyvsp[-2].map), vt);
- }
- Free((yyvsp[-2].map));
- }
-#line 5229 "y.tab.c" /* yacc.c:1646 */
+ (yyval.i) = (int)'i';
+ }
break;
- case 361:
-#line 2402 "lev_comp.y" /* yacc.c:1646 */
+ case 362:
+
+/* Line 1455 of yacc.c */
+#line 2406 "lev_comp.y"
{
- (yyval.i) = (int) 'i';
- }
-#line 5237 "y.tab.c" /* yacc.c:1646 */
+ (yyval.i) = (int)'s';
+ }
break;
- case 362:
-#line 2406 "lev_comp.y" /* yacc.c:1646 */
+ case 363:
+
+/* Line 1455 of yacc.c */
+#line 2413 "lev_comp.y"
{
- (yyval.i) = (int) 's';
- }
-#line 5245 "y.tab.c" /* yacc.c:1646 */
+ char tmpbuf[2];
+ tmpbuf[0] = (char) (yyvsp[(1) - (1)].i);
+ tmpbuf[1] = '\0';
+ (yyval.map) = strdup(tmpbuf);
+ }
break;
- case 363:
-#line 2413 "lev_comp.y" /* yacc.c:1646 */
+ case 364:
+
+/* Line 1455 of yacc.c */
+#line 2420 "lev_comp.y"
{
- char tmpbuf[2];
- tmpbuf[0] = (char) (yyvsp[0].i);
- tmpbuf[1] = '\0';
- (yyval.map) = strdup(tmpbuf);
- }
-#line 5256 "y.tab.c" /* yacc.c:1646 */
+ long len = strlen( (yyvsp[(1) - (3)].map) );
+ char *tmp = (char *)alloc(len + 2);
+ sprintf(tmp, "%c%s", (char) (yyvsp[(3) - (3)].i), (yyvsp[(1) - (3)].map) );
+ Free( (yyvsp[(1) - (3)].map) );
+ (yyval.map) = tmp;
+ }
break;
- case 364:
-#line 2420 "lev_comp.y" /* yacc.c:1646 */
+ case 365:
+
+/* Line 1455 of yacc.c */
+#line 2430 "lev_comp.y"
{
- long len = strlen((yyvsp[-2].map));
- char *tmp = (char *) alloc(len + 2);
- sprintf(tmp, "%c%s", (char) (yyvsp[0].i), (yyvsp[-2].map));
- Free((yyvsp[-2].map));
- (yyval.map) = tmp;
- }
-#line 5268 "y.tab.c" /* yacc.c:1646 */
+ (yyval.map) = strdup("");
+ }
break;
- case 365:
-#line 2430 "lev_comp.y" /* yacc.c:1646 */
+ case 366:
+
+/* Line 1455 of yacc.c */
+#line 2434 "lev_comp.y"
{
- (yyval.map) = strdup("");
- }
-#line 5276 "y.tab.c" /* yacc.c:1646 */
+ char *tmp = strdup( (yyvsp[(1) - (1)].map) );
+ Free( (yyvsp[(1) - (1)].map) );
+ (yyval.map) = tmp;
+ }
break;
- case 366:
-#line 2434 "lev_comp.y" /* yacc.c:1646 */
+ case 367:
+
+/* Line 1455 of yacc.c */
+#line 2442 "lev_comp.y"
{
- char *tmp = strdup((yyvsp[0].map));
- Free((yyvsp[0].map));
- (yyval.map) = tmp;
- }
-#line 5286 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "o", VA_PASS1(SPO_SEL_POINT));
+ }
break;
- case 367:
-#line 2442 "lev_comp.y" /* yacc.c:1646 */
+ case 368:
+
+/* Line 1455 of yacc.c */
+#line 2446 "lev_comp.y"
{
- add_opvars(splev, "o", VA_PASS1(SPO_SEL_POINT));
- }
-#line 5294 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "o", VA_PASS1(SPO_SEL_RECT));
+ }
break;
- case 368:
-#line 2446 "lev_comp.y" /* yacc.c:1646 */
+ case 369:
+
+/* Line 1455 of yacc.c */
+#line 2450 "lev_comp.y"
{
- add_opvars(splev, "o", VA_PASS1(SPO_SEL_RECT));
- }
-#line 5302 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "o", VA_PASS1(SPO_SEL_FILLRECT));
+ }
break;
- case 369:
-#line 2450 "lev_comp.y" /* yacc.c:1646 */
+ case 370:
+
+/* Line 1455 of yacc.c */
+#line 2454 "lev_comp.y"
{
- add_opvars(splev, "o", VA_PASS1(SPO_SEL_FILLRECT));
- }
-#line 5310 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "o", VA_PASS1(SPO_SEL_LINE));
+ }
break;
- case 370:
-#line 2454 "lev_comp.y" /* yacc.c:1646 */
+ case 371:
+
+/* Line 1455 of yacc.c */
+#line 2458 "lev_comp.y"
{
- add_opvars(splev, "o", VA_PASS1(SPO_SEL_LINE));
- }
-#line 5318 "y.tab.c" /* yacc.c:1646 */
+ /* randline (x1,y1),(x2,y2), roughness */
+ add_opvars(splev, "o", VA_PASS1(SPO_SEL_RNDLINE));
+ }
break;
- case 371:
-#line 2458 "lev_comp.y" /* yacc.c:1646 */
+ case 372:
+
+/* Line 1455 of yacc.c */
+#line 2463 "lev_comp.y"
{
- /* randline (x1,y1),(x2,y2), roughness */
- add_opvars(splev, "o", VA_PASS1(SPO_SEL_RNDLINE));
- }
-#line 5327 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "io", VA_PASS2(W_ANY, SPO_SEL_GROW));
+ }
break;
- case 372:
-#line 2463 "lev_comp.y" /* yacc.c:1646 */
+ case 373:
+
+/* Line 1455 of yacc.c */
+#line 2467 "lev_comp.y"
{
- add_opvars(splev, "io", VA_PASS2(W_ANY, SPO_SEL_GROW));
- }
-#line 5335 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "io", VA_PASS2((yyvsp[(3) - (6)].i), SPO_SEL_GROW));
+ }
break;
- case 373:
-#line 2467 "lev_comp.y" /* yacc.c:1646 */
+ case 374:
+
+/* Line 1455 of yacc.c */
+#line 2471 "lev_comp.y"
{
- add_opvars(splev, "io", VA_PASS2((yyvsp[-3].i), SPO_SEL_GROW));
- }
-#line 5343 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "iio",
+ VA_PASS3((yyvsp[(3) - (6)].i), SPOFILTER_PERCENT, SPO_SEL_FILTER));
+ }
break;
- case 374:
-#line 2471 "lev_comp.y" /* yacc.c:1646 */
+ case 375:
+
+/* Line 1455 of yacc.c */
+#line 2476 "lev_comp.y"
{
- add_opvars(splev, "iio", VA_PASS3((yyvsp[-3].i), SPOFILTER_PERCENT,
- SPO_SEL_FILTER));
- }
-#line 5352 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "io",
+ VA_PASS2(SPOFILTER_SELECTION, SPO_SEL_FILTER));
+ }
break;
- case 375:
-#line 2476 "lev_comp.y" /* yacc.c:1646 */
+ case 376:
+
+/* Line 1455 of yacc.c */
+#line 2481 "lev_comp.y"
{
- add_opvars(splev, "io",
- VA_PASS2(SPOFILTER_SELECTION, SPO_SEL_FILTER));
- }
-#line 5361 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "io",
+ VA_PASS2(SPOFILTER_MAPCHAR, SPO_SEL_FILTER));
+ }
break;
- case 376:
-#line 2481 "lev_comp.y" /* yacc.c:1646 */
+ case 377:
+
+/* Line 1455 of yacc.c */
+#line 2486 "lev_comp.y"
{
- add_opvars(splev, "io", VA_PASS2(SPOFILTER_MAPCHAR, SPO_SEL_FILTER));
- }
-#line 5370 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "o", VA_PASS1(SPO_SEL_FLOOD));
+ }
break;
- case 377:
-#line 2486 "lev_comp.y" /* yacc.c:1646 */
+ case 378:
+
+/* Line 1455 of yacc.c */
+#line 2490 "lev_comp.y"
{
- add_opvars(splev, "o", VA_PASS1(SPO_SEL_FLOOD));
- }
-#line 5378 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "oio",
+ VA_PASS3(SPO_COPY, 1, SPO_SEL_ELLIPSE));
+ }
break;
- case 378:
-#line 2490 "lev_comp.y" /* yacc.c:1646 */
+ case 379:
+
+/* Line 1455 of yacc.c */
+#line 2495 "lev_comp.y"
{
- add_opvars(splev, "oio", VA_PASS3(SPO_COPY, 1, SPO_SEL_ELLIPSE));
- }
-#line 5387 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "oio",
+ VA_PASS3(SPO_COPY, (yyvsp[(7) - (8)].i), SPO_SEL_ELLIPSE));
+ }
break;
- case 379:
-#line 2495 "lev_comp.y" /* yacc.c:1646 */
+ case 380:
+
+/* Line 1455 of yacc.c */
+#line 2500 "lev_comp.y"
{
- add_opvars(splev, "oio",
- VA_PASS3(SPO_COPY, (yyvsp[-1].i), SPO_SEL_ELLIPSE));
- }
-#line 5396 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "io", VA_PASS2(1, SPO_SEL_ELLIPSE));
+ }
break;
- case 380:
-#line 2500 "lev_comp.y" /* yacc.c:1646 */
+ case 381:
+
+/* Line 1455 of yacc.c */
+#line 2504 "lev_comp.y"
{
- add_opvars(splev, "io", VA_PASS2(1, SPO_SEL_ELLIPSE));
- }
-#line 5404 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "io", VA_PASS2((yyvsp[(9) - (10)].i), SPO_SEL_ELLIPSE));
+ }
break;
- case 381:
-#line 2504 "lev_comp.y" /* yacc.c:1646 */
+ case 382:
+
+/* Line 1455 of yacc.c */
+#line 2508 "lev_comp.y"
{
- add_opvars(splev, "io", VA_PASS2((yyvsp[-1].i), SPO_SEL_ELLIPSE));
- }
-#line 5412 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "iio",
+ VA_PASS3((yyvsp[(9) - (14)].i), (yyvsp[(3) - (14)].i), SPO_SEL_GRADIENT));
+ }
break;
- case 382:
-#line 2508 "lev_comp.y" /* yacc.c:1646 */
+ case 383:
+
+/* Line 1455 of yacc.c */
+#line 2513 "lev_comp.y"
{
- add_opvars(splev, "iio",
- VA_PASS3((yyvsp[-5].i), (yyvsp[-11].i), SPO_SEL_GRADIENT));
- }
-#line 5421 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "o", VA_PASS1(SPO_SEL_COMPLEMENT));
+ }
break;
- case 383:
-#line 2513 "lev_comp.y" /* yacc.c:1646 */
+ case 384:
+
+/* Line 1455 of yacc.c */
+#line 2517 "lev_comp.y"
{
- add_opvars(splev, "o", VA_PASS1(SPO_SEL_COMPLEMENT));
- }
-#line 5429 "y.tab.c" /* yacc.c:1646 */
+ check_vardef_type(variable_definitions, (yyvsp[(1) - (1)].map), SPOVAR_SEL);
+ vardef_used(variable_definitions, (yyvsp[(1) - (1)].map));
+ add_opvars(splev, "v", VA_PASS1((yyvsp[(1) - (1)].map)));
+ Free((yyvsp[(1) - (1)].map));
+ }
break;
- case 384:
-#line 2517 "lev_comp.y" /* yacc.c:1646 */
+ case 385:
+
+/* Line 1455 of yacc.c */
+#line 2524 "lev_comp.y"
{
- check_vardef_type(variable_definitions, (yyvsp[0].map), SPOVAR_SEL);
- vardef_used(variable_definitions, (yyvsp[0].map));
- add_opvars(splev, "v", VA_PASS1((yyvsp[0].map)));
- Free((yyvsp[0].map));
- }
-#line 5440 "y.tab.c" /* yacc.c:1646 */
+ /* nothing */
+ }
break;
- case 385:
-#line 2524 "lev_comp.y" /* yacc.c:1646 */
+ case 386:
+
+/* Line 1455 of yacc.c */
+#line 2530 "lev_comp.y"
{
- /* nothing */
- }
-#line 5448 "y.tab.c" /* yacc.c:1646 */
+ /* nothing */
+ }
break;
- case 386:
-#line 2530 "lev_comp.y" /* yacc.c:1646 */
+ case 387:
+
+/* Line 1455 of yacc.c */
+#line 2534 "lev_comp.y"
{
- /* nothing */
- }
-#line 5456 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "o", VA_PASS1(SPO_SEL_ADD));
+ }
break;
- case 387:
-#line 2534 "lev_comp.y" /* yacc.c:1646 */
+ case 388:
+
+/* Line 1455 of yacc.c */
+#line 2540 "lev_comp.y"
{
- add_opvars(splev, "o", VA_PASS1(SPO_SEL_ADD));
- }
-#line 5464 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "iio",
+ VA_PASS3((yyvsp[(1) - (1)].dice).num, (yyvsp[(1) - (1)].dice).die, SPO_DICE));
+ }
+ break;
+
+ case 392:
+
+/* Line 1455 of yacc.c */
+#line 2552 "lev_comp.y"
+ {
+ add_opvars(splev, "i", VA_PASS1((yyvsp[(1) - (1)].i)));
+ }
break;
- case 388:
-#line 2540 "lev_comp.y" /* yacc.c:1646 */
+ case 393:
+
+/* Line 1455 of yacc.c */
+#line 2556 "lev_comp.y"
{
- add_opvars(splev, "iio", VA_PASS3((yyvsp[0].dice).num,
- (yyvsp[0].dice).die, SPO_DICE));
- }
-#line 5473 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "i", VA_PASS1((yyvsp[(1) - (1)].i)));
+ }
break;
- case 392:
-#line 2552 "lev_comp.y" /* yacc.c:1646 */
+ case 394:
+
+/* Line 1455 of yacc.c */
+#line 2560 "lev_comp.y"
{
- add_opvars(splev, "i", VA_PASS1((yyvsp[0].i)));
- }
-#line 5481 "y.tab.c" /* yacc.c:1646 */
+ add_opvars(splev, "i", VA_PASS1((yyvsp[(1) - (1)].i)));
+ }
break;
- case 393:
-#line 2556 "lev_comp.y" /* yacc.c:1646 */
+ case 395:
+
+/* Line 1455 of yacc.c */
+#line 2564 "lev_comp.y"
{
- add_opvars(splev, "i", VA_PASS1((yyvsp[0].i)));
- }
-#line 5489 "y.tab.c" /* yacc.c:1646 */
+ /* nothing */
+ }
break;
- case 394:
-#line 2560 "lev_comp.y" /* yacc.c:1646 */
+ case 404:
+
+/* Line 1455 of yacc.c */
+#line 2586 "lev_comp.y"
{
- add_opvars(splev, "i", VA_PASS1((yyvsp[0].i)));
- }
-#line 5497 "y.tab.c" /* yacc.c:1646 */
+ (yyval.lregn) = (yyvsp[(1) - (1)].lregn);
+ }
break;
- case 395:
-#line 2564 "lev_comp.y" /* yacc.c:1646 */
+ case 405:
+
+/* Line 1455 of yacc.c */
+#line 2590 "lev_comp.y"
{
- /* nothing */
- }
-#line 5505 "y.tab.c" /* yacc.c:1646 */
+ if ((yyvsp[(3) - (10)].i) <= 0 || (yyvsp[(3) - (10)].i) >= COLNO)
+ lc_error("Region (%li,%li,%li,%li) out of level range (x1)!", (yyvsp[(3) - (10)].i), (yyvsp[(5) - (10)].i), (yyvsp[(7) - (10)].i), (yyvsp[(9) - (10)].i));
+ else if ((yyvsp[(5) - (10)].i) < 0 || (yyvsp[(5) - (10)].i) >= ROWNO)
+ lc_error("Region (%li,%li,%li,%li) out of level range (y1)!", (yyvsp[(3) - (10)].i), (yyvsp[(5) - (10)].i), (yyvsp[(7) - (10)].i), (yyvsp[(9) - (10)].i));
+ else if ((yyvsp[(7) - (10)].i) <= 0 || (yyvsp[(7) - (10)].i) >= COLNO)
+ lc_error("Region (%li,%li,%li,%li) out of level range (x2)!", (yyvsp[(3) - (10)].i), (yyvsp[(5) - (10)].i), (yyvsp[(7) - (10)].i), (yyvsp[(9) - (10)].i));
+ else if ((yyvsp[(9) - (10)].i) < 0 || (yyvsp[(9) - (10)].i) >= ROWNO)
+ lc_error("Region (%li,%li,%li,%li) out of level range (y2)!", (yyvsp[(3) - (10)].i), (yyvsp[(5) - (10)].i), (yyvsp[(7) - (10)].i), (yyvsp[(9) - (10)].i));
+ (yyval.lregn).x1 = (yyvsp[(3) - (10)].i);
+ (yyval.lregn).y1 = (yyvsp[(5) - (10)].i);
+ (yyval.lregn).x2 = (yyvsp[(7) - (10)].i);
+ (yyval.lregn).y2 = (yyvsp[(9) - (10)].i);
+ (yyval.lregn).area = 1;
+ }
break;
- case 404:
-#line 2586 "lev_comp.y" /* yacc.c:1646 */
+ case 406:
+
+/* Line 1455 of yacc.c */
+#line 2608 "lev_comp.y"
{
- (yyval.lregn) = (yyvsp[0].lregn);
- }
-#line 5513 "y.tab.c" /* yacc.c:1646 */
- break;
-
- case 405:
-#line 2590 "lev_comp.y" /* yacc.c:1646 */
- {
- if ((yyvsp[-7].i) <= 0 || (yyvsp[-7].i) >= COLNO)
- lc_error("Region (%li,%li,%li,%li) out of level range (x1)!",
- (yyvsp[-7].i), (yyvsp[-5].i), (yyvsp[-3].i),
- (yyvsp[-1].i));
- else if ((yyvsp[-5].i) < 0 || (yyvsp[-5].i) >= ROWNO)
- lc_error("Region (%li,%li,%li,%li) out of level range (y1)!",
- (yyvsp[-7].i), (yyvsp[-5].i), (yyvsp[-3].i),
- (yyvsp[-1].i));
- else if ((yyvsp[-3].i) <= 0 || (yyvsp[-3].i) >= COLNO)
- lc_error("Region (%li,%li,%li,%li) out of level range (x2)!",
- (yyvsp[-7].i), (yyvsp[-5].i), (yyvsp[-3].i),
- (yyvsp[-1].i));
- else if ((yyvsp[-1].i) < 0 || (yyvsp[-1].i) >= ROWNO)
- lc_error("Region (%li,%li,%li,%li) out of level range (y2)!",
- (yyvsp[-7].i), (yyvsp[-5].i), (yyvsp[-3].i),
- (yyvsp[-1].i));
- (yyval.lregn).x1 = (yyvsp[-7].i);
- (yyval.lregn).y1 = (yyvsp[-5].i);
- (yyval.lregn).x2 = (yyvsp[-3].i);
- (yyval.lregn).y2 = (yyvsp[-1].i);
- (yyval.lregn).area = 1;
- }
-#line 5533 "y.tab.c" /* yacc.c:1646 */
- break;
-
- case 406:
-#line 2608 "lev_comp.y" /* yacc.c:1646 */
- {
- /* This series of if statements is a hack for MSC 5.1. It seems that
- its
- tiny little brain cannot compile if these are all one big if
- statement. */
- if ((yyvsp[-7].i) < 0 || (yyvsp[-7].i) > (int) max_x_map)
- lc_error("Region (%li,%li,%li,%li) out of map range (x1)!",
- (yyvsp[-7].i), (yyvsp[-5].i), (yyvsp[-3].i),
- (yyvsp[-1].i));
- else if ((yyvsp[-5].i) < 0 || (yyvsp[-5].i) > (int) max_y_map)
- lc_error("Region (%li,%li,%li,%li) out of map range (y1)!",
- (yyvsp[-7].i), (yyvsp[-5].i), (yyvsp[-3].i),
- (yyvsp[-1].i));
- else if ((yyvsp[-3].i) < 0 || (yyvsp[-3].i) > (int) max_x_map)
- lc_error("Region (%li,%li,%li,%li) out of map range (x2)!",
- (yyvsp[-7].i), (yyvsp[-5].i), (yyvsp[-3].i),
- (yyvsp[-1].i));
- else if ((yyvsp[-1].i) < 0 || (yyvsp[-1].i) > (int) max_y_map)
- lc_error("Region (%li,%li,%li,%li) out of map range (y2)!",
- (yyvsp[-7].i), (yyvsp[-5].i), (yyvsp[-3].i),
- (yyvsp[-1].i));
- (yyval.lregn).area = 0;
- (yyval.lregn).x1 = (yyvsp[-7].i);
- (yyval.lregn).y1 = (yyvsp[-5].i);
- (yyval.lregn).x2 = (yyvsp[-3].i);
- (yyval.lregn).y2 = (yyvsp[-1].i);
- }
-#line 5555 "y.tab.c" /* yacc.c:1646 */
+/* This series of if statements is a hack for MSC 5.1. It seems that its
+ tiny little brain cannot compile if these are all one big if statement. */
+ if ((yyvsp[(2) - (9)].i) < 0 || (yyvsp[(2) - (9)].i) > (int)max_x_map)
+ lc_error("Region (%li,%li,%li,%li) out of map range (x1)!", (yyvsp[(2) - (9)].i), (yyvsp[(4) - (9)].i), (yyvsp[(6) - (9)].i), (yyvsp[(8) - (9)].i));
+ else if ((yyvsp[(4) - (9)].i) < 0 || (yyvsp[(4) - (9)].i) > (int)max_y_map)
+ lc_error("Region (%li,%li,%li,%li) out of map range (y1)!", (yyvsp[(2) - (9)].i), (yyvsp[(4) - (9)].i), (yyvsp[(6) - (9)].i), (yyvsp[(8) - (9)].i));
+ else if ((yyvsp[(6) - (9)].i) < 0 || (yyvsp[(6) - (9)].i) > (int)max_x_map)
+ lc_error("Region (%li,%li,%li,%li) out of map range (x2)!", (yyvsp[(2) - (9)].i), (yyvsp[(4) - (9)].i), (yyvsp[(6) - (9)].i), (yyvsp[(8) - (9)].i));
+ else if ((yyvsp[(8) - (9)].i) < 0 || (yyvsp[(8) - (9)].i) > (int)max_y_map)
+ lc_error("Region (%li,%li,%li,%li) out of map range (y2)!", (yyvsp[(2) - (9)].i), (yyvsp[(4) - (9)].i), (yyvsp[(6) - (9)].i), (yyvsp[(8) - (9)].i));
+ (yyval.lregn).area = 0;
+ (yyval.lregn).x1 = (yyvsp[(2) - (9)].i);
+ (yyval.lregn).y1 = (yyvsp[(4) - (9)].i);
+ (yyval.lregn).x2 = (yyvsp[(6) - (9)].i);
+ (yyval.lregn).y2 = (yyvsp[(8) - (9)].i);
+ }
break;
-#line 5559 "y.tab.c" /* yacc.c:1646 */
- default:
- break;
+
+
+/* Line 1455 of yacc.c */
+#line 6144 "y.tab.c"
+ default: break;
}
- /* User semantic actions sometimes alter yychar, and that requires
- that yytoken be updated with the new translation. We take the
- approach of translating immediately before every use of yytoken.
- One alternative is translating here after every semantic action,
- but that translation would be missed if the semantic action invokes
- YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or
- if it invokes YYBACKUP. In the case of YYABORT or YYACCEPT, an
- incorrect destructor might then be invoked immediately. In the
- case of YYERROR or YYBACKUP, subsequent parser actions might lead
- to an incorrect destructor call or verbose syntax error message
- before the lookahead is translated. */
- YY_SYMBOL_PRINT("-> $$ =", yyr1[yyn], &yyval, &yyloc);
-
- YYPOPSTACK(yylen);
- yylen = 0;
- YY_STACK_PRINT(yyss, yyssp);
-
- *++yyvsp = yyval;
-
- /* Now 'shift' the result of the reduction. Determine what state
- that goes to, based on the state we popped back to and the rule
- number reduced by. */
-
- yyn = yyr1[yyn];
-
- yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
- if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
- yystate = yytable[yystate];
- else
- yystate = yydefgoto[yyn - YYNTOKENS];
-
- goto yynewstate;
-
-/*--------------------------------------.
-| yyerrlab -- here on detecting error. |
-`--------------------------------------*/
+ YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
+
+ YYPOPSTACK (yylen);
+ yylen = 0;
+ YY_STACK_PRINT (yyss, yyssp);
+
+ *++yyvsp = yyval;
+
+ /* Now `shift' the result of the reduction. Determine what state
+ that goes to, based on the state we popped back to and the rule
+ number reduced by. */
+
+ yyn = yyr1[yyn];
+
+ yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
+ if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
+ yystate = yytable[yystate];
+ else
+ yystate = yydefgoto[yyn - YYNTOKENS];
+
+ goto yynewstate;
+
+
+/*------------------------------------.
+| yyerrlab -- here on detecting error |
+`------------------------------------*/
yyerrlab:
- /* Make sure we have latest lookahead translation. See comments at
- user semantic actions for why this is necessary. */
- yytoken = yychar == YYEMPTY ? YYEMPTY : YYTRANSLATE(yychar);
-
- /* If not already recovering from an error, report this error. */
- if (!yyerrstatus) {
- ++yynerrs;
-#if !YYERROR_VERBOSE
- yyerror(YY_("syntax error"));
+ /* If not already recovering from an error, report this error. */
+ if (!yyerrstatus)
+ {
+ ++yynerrs;
+#if ! YYERROR_VERBOSE
+ yyerror (YY_("syntax error"));
#else
-#define YYSYNTAX_ERROR yysyntax_error(&yymsg_alloc, &yymsg, yyssp, yytoken)
- {
- char const *yymsgp = YY_("syntax error");
- int yysyntax_error_status;
- yysyntax_error_status = YYSYNTAX_ERROR;
- if (yysyntax_error_status == 0)
- yymsgp = yymsg;
- else if (yysyntax_error_status == 1) {
- if (yymsg != yymsgbuf)
- YYSTACK_FREE(yymsg);
- yymsg = (char *) YYSTACK_ALLOC(yymsg_alloc);
- if (!yymsg) {
- yymsg = yymsgbuf;
- yymsg_alloc = sizeof yymsgbuf;
- yysyntax_error_status = 2;
- } else {
- yysyntax_error_status = YYSYNTAX_ERROR;
- yymsgp = yymsg;
- }
- }
- yyerror(yymsgp);
- if (yysyntax_error_status == 2)
- goto yyexhaustedlab;
- }
-#undef YYSYNTAX_ERROR
+ {
+ YYSIZE_T yysize = yysyntax_error (0, yystate, yychar);
+ if (yymsg_alloc < yysize && yymsg_alloc < YYSTACK_ALLOC_MAXIMUM)
+ {
+ YYSIZE_T yyalloc = 2 * yysize;
+ if (! (yysize <= yyalloc && yyalloc <= YYSTACK_ALLOC_MAXIMUM))
+ yyalloc = YYSTACK_ALLOC_MAXIMUM;
+ if (yymsg != yymsgbuf)
+ YYSTACK_FREE (yymsg);
+ yymsg = (char *) YYSTACK_ALLOC (yyalloc);
+ if (yymsg)
+ yymsg_alloc = yyalloc;
+ else
+ {
+ yymsg = yymsgbuf;
+ yymsg_alloc = sizeof yymsgbuf;
+ }
+ }
+
+ if (0 < yysize && yysize <= yymsg_alloc)
+ {
+ (void) yysyntax_error (yymsg, yystate, yychar);
+ yyerror (yymsg);
+ }
+ else
+ {
+ yyerror (YY_("syntax error"));
+ if (yysize != 0)
+ goto yyexhaustedlab;
+ }
+ }
#endif
}
- if (yyerrstatus == 3) {
- /* If just tried and failed to reuse lookahead token after an
- error, discard it. */
-
- if (yychar <= YYEOF) {
- /* Return failure if at end of input. */
- if (yychar == YYEOF)
- YYABORT;
- } else {
- yydestruct("Error: discarding", yytoken, &yylval);
- yychar = YYEMPTY;
- }
+
+
+ if (yyerrstatus == 3)
+ {
+ /* If just tried and failed to reuse lookahead token after an
+ error, discard it. */
+
+ if (yychar <= YYEOF)
+ {
+ /* Return failure if at end of input. */
+ if (yychar == YYEOF)
+ YYABORT;
+ }
+ else
+ {
+ yydestruct ("Error: discarding",
+ yytoken, &yylval);
+ yychar = YYEMPTY;
+ }
}
- /* Else will try to reuse lookahead token after shifting the error
- token. */
- goto yyerrlab1;
+ /* Else will try to reuse lookahead token after shifting the error
+ token. */
+ goto yyerrlab1;
+
/*---------------------------------------------------.
| yyerrorlab -- error raised explicitly by YYERROR. |
`---------------------------------------------------*/
yyerrorlab:
- /* Pacify compilers like GCC when the user code never invokes
- YYERROR and the label yyerrorlab therefore never appears in user
- code. */
- if (/*CONSTCOND*/ 0)
- goto yyerrorlab;
+ /* Pacify compilers like GCC when the user code never invokes
+ YYERROR and the label yyerrorlab therefore never appears in user
+ code. */
+ if (/*CONSTCOND*/ 0)
+ goto yyerrorlab;
+
+ /* Do not reclaim the symbols of the rule which action triggered
+ this YYERROR. */
+ YYPOPSTACK (yylen);
+ yylen = 0;
+ YY_STACK_PRINT (yyss, yyssp);
+ yystate = *yyssp;
+ goto yyerrlab1;
- /* Do not reclaim the symbols of the rule whose action triggered
- this YYERROR. */
- YYPOPSTACK(yylen);
- yylen = 0;
- YY_STACK_PRINT(yyss, yyssp);
- yystate = *yyssp;
- goto yyerrlab1;
/*-------------------------------------------------------------.
| yyerrlab1 -- common code for both syntax error and YYERROR. |
`-------------------------------------------------------------*/
yyerrlab1:
- yyerrstatus = 3; /* Each real token shifted decrements this. */
-
- for (;;) {
- yyn = yypact[yystate];
- if (!yypact_value_is_default(yyn)) {
- yyn += YYTERROR;
- if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR) {
- yyn = yytable[yyn];
- if (0 < yyn)
- break;
- }
- }
-
- /* Pop the current state because it cannot handle the error token. */
- if (yyssp == yyss)
- YYABORT;
-
- yydestruct("Error: popping", yystos[yystate], yyvsp);
- YYPOPSTACK(1);
- yystate = *yyssp;
- YY_STACK_PRINT(yyss, yyssp);
+ yyerrstatus = 3; /* Each real token shifted decrements this. */
+
+ for (;;)
+ {
+ yyn = yypact[yystate];
+ if (yyn != YYPACT_NINF)
+ {
+ yyn += YYTERROR;
+ if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
+ {
+ yyn = yytable[yyn];
+ if (0 < yyn)
+ break;
+ }
+ }
+
+ /* Pop the current state because it cannot handle the error token. */
+ if (yyssp == yyss)
+ YYABORT;
+
+
+ yydestruct ("Error: popping",
+ yystos[yystate], yyvsp);
+ YYPOPSTACK (1);
+ yystate = *yyssp;
+ YY_STACK_PRINT (yyss, yyssp);
}
- YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
- *++yyvsp = yylval;
- YY_IGNORE_MAYBE_UNINITIALIZED_END
+ *++yyvsp = yylval;
- /* Shift the error token. */
- YY_SYMBOL_PRINT("Shifting", yystos[yyn], yyvsp, yylsp);
- yystate = yyn;
- goto yynewstate;
+ /* Shift the error token. */
+ YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp);
+
+ yystate = yyn;
+ goto yynewstate;
+
/*-------------------------------------.
| yyacceptlab -- YYACCEPT comes here. |
`-------------------------------------*/
yyacceptlab:
- yyresult = 0;
- goto yyreturn;
+ yyresult = 0;
+ goto yyreturn;
/*-----------------------------------.
| yyabortlab -- YYABORT comes here. |
`-----------------------------------*/
yyabortlab:
- yyresult = 1;
- goto yyreturn;
+ yyresult = 1;
+ goto yyreturn;
-#if !defined yyoverflow || YYERROR_VERBOSE
+#if !defined(yyoverflow) || YYERROR_VERBOSE
/*-------------------------------------------------.
| yyexhaustedlab -- memory exhaustion comes here. |
`-------------------------------------------------*/
yyexhaustedlab:
- yyerror(YY_("memory exhausted"));
- yyresult = 2;
-/* Fall through. */
+ yyerror (YY_("memory exhausted"));
+ yyresult = 2;
+ /* Fall through. */
#endif
yyreturn:
- if (yychar != YYEMPTY) {
- /* Make sure we have latest lookahead translation. See comments at
- user semantic actions for why this is necessary. */
- yytoken = YYTRANSLATE(yychar);
- yydestruct("Cleanup: discarding lookahead", yytoken, &yylval);
- }
- /* Do not reclaim the symbols of the rule whose action triggered
- this YYABORT or YYACCEPT. */
- YYPOPSTACK(yylen);
- YY_STACK_PRINT(yyss, yyssp);
- while (yyssp != yyss) {
- yydestruct("Cleanup: popping", yystos[*yyssp], yyvsp);
- YYPOPSTACK(1);
+ if (yychar != YYEMPTY)
+ yydestruct ("Cleanup: discarding lookahead",
+ yytoken, &yylval);
+ /* Do not reclaim the symbols of the rule which action triggered
+ this YYABORT or YYACCEPT. */
+ YYPOPSTACK (yylen);
+ YY_STACK_PRINT (yyss, yyssp);
+ while (yyssp != yyss)
+ {
+ yydestruct ("Cleanup: popping",
+ yystos[*yyssp], yyvsp);
+ YYPOPSTACK (1);
}
#ifndef yyoverflow
- if (yyss != yyssa)
- YYSTACK_FREE(yyss);
+ if (yyss != yyssa)
+ YYSTACK_FREE (yyss);
#endif
#if YYERROR_VERBOSE
- if (yymsg != yymsgbuf)
- YYSTACK_FREE(yymsg);
+ if (yymsg != yymsgbuf)
+ YYSTACK_FREE (yymsg);
#endif
- return yyresult;
+ /* Make sure YYID is used. */
+ return YYID (yyresult);
}
-#line 2628 "lev_comp.y" /* yacc.c:1906 */
+
+
+
+/* Line 1675 of yacc.c */
+#line 2628 "lev_comp.y"
+
/*lev_comp.y*/
+