touch $(distdir)/MANIFEST
(cd $(distdir); find . | sort > MANIFEST)
-# Update the prebuilt directory in the original source from the built
-# versions; this is for the repository version of C-INTERCAL, so it's
-# up to date the same way that distributed versions are.
-repoupdate: parser.c parser.h lexer.c oil-oil.c $(srcdir)/MANIFEST
- cp parser.c $(srcdir)/prebuilt/parser.c
- cp parser.h $(srcdir)/prebuilt/parser.h
- cp lexer.c $(srcdir)/prebuilt/lexer.c
- cp oil-oil.c $(srcdir)/prebuilt/oil-oil.c
$(srcdir)/MANIFEST: distdir
cp $(distdir)/MANIFEST $(srcdir)/MANIFEST
$(am__remove_distdir)
# versions of the prebuilt files. (The source tree versions will
# be safe in the prebuilt dir, which Automake doesn't even know
# about.)
-DISTCLEANFILES = parser.c parser.h lexer.c oil-oil.c config.h
+DISTCLEANFILES = parser.c parser.h lexer.c oil-oil.c config.h coopt.sh
# If a documentation file is needed but not available, invoke the doc
# makefile to build it.
+++ /dev/null
-
-#line 3 "lexer.c"
-
-#define YY_INT_ALIGNED short int
-
-/* A lexical scanner generated by flex */
-
-#define FLEX_SCANNER
-#define YY_FLEX_MAJOR_VERSION 2
-#define YY_FLEX_MINOR_VERSION 5
-#define YY_FLEX_SUBMINOR_VERSION 35
-#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)
-#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
-
-/* The "const" storage-class-modifier is valid. */
-#define YY_USE_CONST
-
-#else /* ! __cplusplus */
-
-/* C99 requires __STDC__ to be defined as 1. */
-#if defined (__STDC__)
-
-#define YY_USE_CONST
-
-#endif /* defined (__STDC__) */
-#endif /* ! __cplusplus */
-
-#ifdef YY_USE_CONST
-#define yyconst const
-#else
-#define yyconst
-#endif
-
-/* Returned upon end-of-file. */
-#define YY_NULL 0
-
-/* Promotes a possibly negative, possibly signed char to an unsigned
- * integer for use as an array index. If the signed char is negative,
- * we want to instead treat it as an 8-bit unsigned char, hence the
- * double cast.
- */
-#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
-
-/* Enter a start condition. This macro really ought to take a parameter,
- * but we do it the disgusting crufty way forced on us by the ()-less
- * definition of BEGIN.
- */
-#define BEGIN (yy_start) = 1 + 2 *
-
-/* Translate the current start state into a value that can be later handed
- * to BEGIN to return to the state. The YYSTATE alias is for lex
- * compatibility.
- */
-#define YY_START (((yy_start) - 1) / 2)
-#define YYSTATE YY_START
-
-/* Action number for EOF rule of a given start state. */
-#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
-
-/* Special action meaning "start processing a new file". */
-#define YY_NEW_FILE yyrestart(yyin )
-
-#define YY_END_OF_BUFFER_CHAR 0
-
-/* Size of default input buffer. */
-#ifndef YY_BUF_SIZE
-#define YY_BUF_SIZE 16384
-#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
-
-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)
-
-/* Return all but the first "n" matched characters back to the input stream. */
-#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_TYPEDEF_YY_SIZE_T
-#define YY_TYPEDEF_YY_SIZE_T
-typedef size_t yy_size_t;
-#endif
-
-#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.
- */
- 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;
-
- 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;
-
-#define YY_BUFFER_NEW 0
-#define YY_BUFFER_NORMAL 1
- /* When an EOF's been seen but there's still some text to process
- * then we mark the buffer as YY_EOF_PENDING, to indicate that we
- * shouldn't try reading from the input source any more. We might
- * still have a bunch of tokens to match, though, because of
- * possible backing-up.
- *
- * When we actually see the EOF, we change the status to "new"
- * (via yyrestart()), so that the user can continue scanning by
- * just pointing yyin at a new input file.
- */
-#define YY_BUFFER_EOF_PENDING 2
-
- };
-#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. */
-
-/* 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)
-
-/* 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 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 */
-
-/* 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 );
-
-#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,int len );
-
-void *yyalloc (yy_size_t );
-void *yyrealloc (void *,yy_size_t );
-void yyfree (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_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_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
-
-/* Begin user sect3 */
-
-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[] );
-
-/* 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_NUM_RULES 168
-#define YY_END_OF_BUFFER 169
-/* 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[646] =
- { 0,
- 164, 164, 169, 167, 164, 164, 49, 7, 11, 167,
- 37, 48, 167, 163, 5, 3, 35, 1, 1, 4,
- 6, 167, 43, 46, 165, 165, 165, 165, 165, 165,
- 165, 165, 165, 165, 165, 165, 165, 165, 165, 165,
- 165, 165, 38, 165, 36, 45, 2, 167, 44, 34,
- 12, 13, 14, 39, 64, 65, 8, 40, 167, 167,
- 167, 0, 164, 0, 70, 0, 0, 1, 1, 47,
- 74, 0, 0, 0, 0, 73, 0, 0, 0, 0,
- 0, 51, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
-
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 15, 16, 17, 0, 0, 0,
- 0, 0, 70, 0, 50, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 52, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 62, 0, 63, 61, 0, 121,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 71, 0, 0, 0, 0, 0, 31,
- 32, 33, 18, 19, 20, 21, 22, 23, 24, 25,
- 26, 27, 28, 29, 30, 42, 166, 0, 0, 0,
-
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 139, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 136, 66,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 41, 0,
- 0, 9, 10, 0, 0, 0, 68, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 57, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
-
- 0, 0, 0, 0, 0, 0, 0, 0, 86, 0,
- 0, 145, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 158,
- 0, 135, 0, 0, 0, 85, 78, 142, 0, 149,
- 0, 0, 0, 0, 94, 0, 0, 89, 69, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 54, 53, 0, 0, 0, 0, 0, 0, 150, 0,
- 0, 82, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 102, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 120, 0, 159, 0, 0, 0, 0,
-
- 0, 0, 0, 0, 0, 0, 0, 153, 0, 0,
- 154, 0, 0, 0, 0, 0, 147, 58, 0, 0,
- 0, 0, 138, 122, 0, 0, 0, 0, 0, 67,
- 0, 110, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 146, 114, 0, 0, 0, 0,
- 0, 0, 0, 77, 0, 0, 132, 0, 0, 0,
- 118, 0, 0, 0, 0, 0, 0, 0, 160, 161,
- 0, 0, 0, 0, 87, 0, 0, 0, 96, 91,
- 111, 109, 0, 0, 0, 126, 0, 0, 0, 55,
- 0, 0, 0, 81, 152, 0, 0, 98, 84, 90,
-
- 0, 0, 0, 88, 144, 0, 0, 0, 0, 0,
- 101, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 117, 0, 140, 0, 0, 0, 0, 0, 156, 0,
- 0, 125, 141, 0, 0, 0, 151, 0, 97, 0,
- 0, 0, 0, 0, 0, 0, 0, 105, 0, 106,
- 0, 0, 0, 0, 0, 0, 0, 116, 104, 0,
- 133, 131, 79, 0, 0, 0, 0, 134, 119, 0,
- 157, 0, 0, 127, 0, 0, 0, 0, 80, 155,
- 0, 0, 0, 0, 0, 0, 0, 0, 112, 0,
- 0, 0, 0, 92, 115, 113, 0, 103, 0, 0,
-
- 75, 76, 0, 130, 162, 143, 0, 0, 0, 93,
- 59, 0, 0, 0, 124, 128, 0, 137, 0, 0,
- 108, 100, 148, 0, 0, 0, 123, 0, 0, 0,
- 0, 0, 56, 83, 0, 0, 129, 95, 60, 99,
- 0, 107, 0, 72, 0
- } ;
-
-static yyconst flex_int32_t yy_ec[256] =
- { 0,
- 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 2, 1, 4, 5, 6, 7, 8, 9, 10,
- 11, 1, 12, 13, 14, 15, 16, 17, 17, 18,
- 18, 18, 18, 17, 17, 17, 17, 19, 20, 21,
- 1, 1, 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, 33,
- 1, 49, 1, 50, 51, 1, 1, 1, 52, 1,
-
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 53, 1, 54, 1, 55, 1, 56,
- 1, 1, 1, 1, 1, 57, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 58,
- 59, 60, 61, 62, 63, 64, 65, 66, 67, 68,
- 69, 70, 1, 1, 1, 1, 1, 71, 72, 1,
- 1, 1, 1, 73, 1, 1, 1, 1, 74, 75,
- 76, 1, 1, 77, 1, 1, 1, 1, 1, 1,
-
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 78, 1, 79, 1, 1, 1, 1,
- 1, 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[80] =
- { 0,
- 1, 1, 2, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 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_int16_t yy_base[647] =
- { 0,
- 0, 0, 967, 916, 78, 80, 915, 914, 913, 82,
- 912, 911, 84, 910, 909, 908, 907, 86, 88, 906,
- 905, 79, 904, 903, 83, 44, 71, 87, 67, 102,
- 103, 902, 112, 118, 123, 122, 70, 113, 72, 111,
- 131, 128, 901, 135, 900, 899, 898, 897, 896, 895,
- 894, 893, 892, 891, 890, 889, 888, 887, 127, 121,
- 108, 905, 94, 180, 188, 190, 193, 197, 199, 968,
- 968, 893, 889, 909, 900, 968, 896, 87, 902, 138,
- 887, 968, 884, 901, 885, 887, 879, 210, 899, 885,
- 877, 892, 889, 880, 869, 880, 880, 871, 866, 166,
-
- 886, 874, 195, 872, 871, 194, 867, 883, 881, 857,
- 873, 871, 870, 870, 968, 968, 968, 153, 824, 185,
- 844, 0, 254, 256, 968, 855, 869, 864, 867, 868,
- 232, 202, 869, 855, 852, 848, 861, 968, 858, 851,
- 858, 259, 854, 860, 846, 840, 843, 852, 838, 850,
- 838, 851, 843, 831, 968, 830, 968, 968, 844, 834,
- 844, 845, 821, 830, 839, 827, 201, 827, 835, 818,
- 820, 828, 817, 968, 263, 844, 822, 813, 216, 968,
- 968, 968, 968, 968, 968, 968, 968, 968, 968, 968,
- 968, 968, 968, 968, 968, 968, 968, 246, 818, 817,
-
- 816, 808, 273, 814, 822, 821, 816, 806, 803, 818,
- 816, 811, 240, 814, 968, 236, 813, 814, 809, 796,
- 796, 245, 792, 248, 803, 806, 796, 800, 288, 968,
- 799, 802, 787, 796, 800, 290, 791, 788, 783, 781,
- 786, 785, 788, 794, 787, 294, 787, 779, 968, 266,
- 271, 968, 968, 783, 777, 272, 968, 785, 777, 303,
- 770, 780, 271, 782, 782, 307, 283, 779, 765, 769,
- 777, 775, 759, 310, 762, 776, 765, 321, 760, 293,
- 770, 768, 759, 767, 765, 755, 324, 759, 751, 327,
- 748, 751, 750, 743, 757, 748, 759, 331, 745, 737,
-
- 752, 752, 750, 734, 751, 303, 747, 746, 741, 748,
- 741, 968, 733, 334, 732, 731, 739, 729, 724, 301,
- 740, 725, 338, 734, 718, 732, 731, 341, 715, 345,
- 312, 316, 733, 712, 711, 968, 711, 968, 726, 968,
- 356, 721, 727, 709, 968, 712, 704, 968, 968, 703,
- 358, 716, 362, 707, 709, 701, 707, 703, 710, 709,
- 368, 372, 714, 701, 706, 692, 693, 689, 968, 708,
- 703, 968, 693, 684, 331, 691, 695, 374, 696, 376,
- 688, 694, 691, 346, 695, 693, 693, 691, 345, 682,
- 382, 676, 675, 320, 674, 390, 686, 392, 388, 683,
-
- 675, 684, 682, 668, 673, 671, 674, 968, 677, 678,
- 968, 673, 666, 665, 401, 653, 968, 968, 671, 656,
- 665, 660, 407, 968, 410, 671, 413, 656, 656, 968,
- 415, 968, 664, 655, 273, 649, 659, 391, 661, 659,
- 656, 648, 418, 654, 968, 968, 422, 646, 655, 653,
- 636, 428, 635, 968, 651, 645, 431, 638, 637, 637,
- 968, 645, 435, 441, 645, 630, 444, 446, 968, 968,
- 626, 448, 641, 644, 968, 630, 642, 631, 968, 968,
- 968, 968, 640, 635, 636, 463, 465, 620, 634, 968,
- 632, 467, 614, 620, 968, 628, 428, 623, 968, 968,
-
- 617, 609, 472, 968, 968, 628, 474, 614, 620, 605,
- 968, 612, 476, 619, 610, 601, 607, 478, 480, 607,
- 968, 612, 968, 482, 484, 597, 596, 505, 968, 603,
- 487, 507, 968, 385, 608, 610, 968, 594, 598, 610,
- 510, 512, 594, 603, 586, 586, 600, 968, 589, 968,
- 586, 585, 591, 580, 489, 557, 558, 968, 968, 548,
- 968, 516, 968, 542, 535, 522, 525, 968, 968, 530,
- 968, 528, 525, 968, 535, 532, 519, 516, 968, 968,
- 503, 469, 450, 549, 551, 435, 394, 396, 968, 384,
- 387, 377, 366, 968, 968, 968, 282, 968, 553, 555,
-
- 968, 968, 568, 968, 968, 968, 557, 578, 257, 968,
- 574, 244, 235, 580, 968, 968, 235, 968, 205, 183,
- 968, 968, 968, 585, 597, 602, 968, 148, 590, 141,
- 123, 88, 968, 968, 91, 607, 968, 968, 968, 968,
- 604, 968, 609, 968, 968, 97
- } ;
-
-static yyconst flex_int16_t yy_def[647] =
- { 0,
- 645, 1, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
-
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 646, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 646, 645, 645, 646, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
-
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
-
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
-
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
-
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
-
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 0, 645
- } ;
-
-static yyconst flex_int16_t yy_nxt[1048] =
- { 0,
- 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,
- 4, 14, 15, 4, 16, 17, 18, 19, 20, 21,
- 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
- 32, 33, 32, 32, 34, 35, 36, 37, 38, 39,
- 40, 41, 42, 32, 43, 44, 32, 32, 45, 46,
- 47, 48, 49, 50, 4, 4, 4, 4, 4, 51,
- 52, 53, 54, 4, 4, 4, 4, 55, 4, 56,
- 4, 4, 4, 57, 58, 4, 59, 60, 61, 63,
- 63, 63, 63, 64, 64, 66, 66, 68, 68, 69,
- 69, 76, 71, 62, 77, 63, 63, 197, 65, 65,
-
- 67, 67, 68, 68, 68, 68, 101, 72, 78, 73,
- 70, 79, 74, 83, 80, 105, 62, 75, 81, 62,
- 62, 62, 131, 132, 82, 84, 642, 62, 62, 641,
- 98, 62, 62, 62, 87, 62, 62, 62, 106, 85,
- 88, 90, 86, 89, 102, 93, 95, 103, 91, 99,
- 96, 62, 62, 104, 92, 94, 107, 62, 640, 100,
- 62, 62, 62, 120, 121, 112, 97, 62, 110, 134,
- 62, 62, 62, 108, 109, 113, 62, 62, 639, 135,
- 62, 64, 64, 638, 62, 118, 115, 116, 117, 123,
- 123, 66, 66, 119, 124, 124, 65, 65, 68, 68,
-
- 69, 69, 157, 125, 123, 123, 67, 67, 158, 124,
- 124, 142, 142, 68, 68, 68, 68, 165, 161, 166,
- 167, 70, 162, 180, 181, 168, 635, 206, 238, 169,
- 207, 252, 239, 143, 144, 170, 171, 274, 274, 208,
- 634, 145, 183, 184, 185, 186, 187, 188, 189, 190,
- 191, 192, 193, 194, 195, 123, 123, 124, 124, 203,
- 142, 142, 633, 204, 246, 246, 125, 205, 253, 254,
- 123, 123, 124, 124, 260, 260, 271, 255, 632, 275,
- 272, 281, 143, 144, 284, 282, 247, 631, 285, 290,
- 290, 298, 298, 312, 248, 246, 246, 313, 314, 318,
-
- 628, 261, 315, 319, 260, 260, 324, 325, 328, 328,
- 330, 274, 274, 496, 331, 497, 291, 247, 623, 292,
- 345, 299, 341, 341, 346, 353, 353, 300, 290, 290,
- 372, 261, 298, 298, 373, 380, 380, 387, 329, 391,
- 391, 388, 328, 328, 342, 343, 398, 398, 400, 401,
- 354, 460, 402, 275, 399, 291, 403, 341, 341, 415,
- 415, 461, 355, 353, 353, 381, 392, 439, 300, 425,
- 425, 440, 329, 427, 427, 443, 443, 380, 380, 342,
- 343, 455, 449, 391, 391, 416, 450, 456, 354, 467,
- 467, 463, 463, 398, 398, 622, 426, 444, 428, 464,
-
- 355, 399, 415, 415, 468, 468, 621, 381, 487, 487,
- 392, 425, 425, 620, 427, 427, 492, 492, 500, 443,
- 443, 577, 501, 507, 507, 578, 465, 619, 416, 513,
- 513, 618, 518, 518, 617, 488, 463, 463, 426, 428,
- 519, 444, 524, 524, 464, 467, 467, 528, 528, 531,
- 531, 549, 493, 508, 514, 550, 529, 525, 525, 551,
- 468, 468, 528, 528, 541, 541, 487, 487, 492, 492,
- 616, 532, 542, 555, 555, 507, 507, 513, 513, 518,
- 518, 566, 566, 524, 524, 570, 570, 519, 531, 531,
- 555, 555, 613, 488, 571, 612, 567, 567, 525, 525,
-
- 570, 570, 514, 556, 493, 508, 528, 528, 575, 575,
- 532, 541, 541, 584, 584, 529, 576, 599, 599, 542,
- 556, 528, 528, 566, 566, 600, 603, 603, 585, 585,
- 611, 570, 570, 607, 607, 604, 575, 575, 567, 567,
- 571, 603, 603, 610, 576, 609, 570, 570, 608, 608,
- 584, 584, 614, 614, 599, 599, 624, 624, 607, 607,
- 606, 615, 600, 605, 602, 585, 585, 614, 614, 603,
- 603, 625, 625, 608, 608, 629, 629, 601, 604, 626,
- 626, 614, 614, 598, 603, 603, 624, 624, 627, 597,
- 615, 629, 629, 596, 626, 626, 614, 614, 636, 636,
-
- 630, 625, 625, 626, 626, 643, 643, 637, 636, 636,
- 643, 643, 627, 636, 636, 595, 630, 637, 626, 626,
- 594, 593, 592, 636, 636, 591, 590, 644, 589, 588,
- 587, 586, 644, 583, 582, 581, 580, 579, 574, 573,
- 572, 569, 568, 565, 564, 563, 562, 561, 560, 559,
- 558, 557, 554, 553, 552, 548, 547, 546, 545, 544,
- 543, 540, 539, 538, 537, 536, 535, 534, 533, 530,
- 527, 526, 523, 522, 521, 520, 517, 516, 515, 512,
- 511, 510, 509, 506, 505, 504, 503, 502, 499, 498,
- 495, 494, 491, 490, 489, 486, 485, 484, 483, 482,
-
- 481, 480, 479, 478, 477, 476, 475, 474, 473, 472,
- 471, 470, 469, 466, 462, 459, 458, 457, 454, 453,
- 452, 451, 448, 447, 446, 445, 442, 441, 438, 437,
- 436, 435, 434, 433, 432, 431, 430, 429, 424, 423,
- 422, 421, 420, 419, 418, 417, 414, 413, 412, 411,
- 410, 409, 408, 407, 406, 405, 404, 397, 396, 395,
- 394, 393, 390, 389, 386, 385, 384, 383, 382, 379,
- 378, 377, 376, 375, 374, 371, 370, 369, 368, 367,
- 366, 365, 364, 363, 362, 361, 360, 359, 358, 357,
- 356, 352, 351, 350, 349, 348, 347, 344, 340, 339,
-
- 338, 337, 336, 335, 334, 333, 332, 327, 326, 323,
- 322, 321, 320, 317, 316, 311, 310, 309, 308, 307,
- 306, 305, 304, 303, 302, 301, 297, 296, 295, 294,
- 293, 289, 288, 287, 286, 283, 280, 279, 278, 277,
- 276, 273, 270, 269, 268, 267, 266, 265, 264, 263,
- 262, 259, 258, 257, 256, 251, 250, 249, 245, 244,
- 243, 242, 241, 240, 237, 236, 235, 234, 233, 232,
- 231, 230, 229, 228, 227, 226, 225, 224, 223, 222,
- 221, 220, 219, 218, 217, 216, 215, 214, 213, 212,
- 211, 210, 209, 202, 201, 200, 199, 198, 196, 182,
-
- 179, 178, 177, 176, 175, 174, 173, 172, 164, 163,
- 160, 159, 156, 155, 154, 153, 152, 151, 150, 149,
- 148, 147, 146, 141, 140, 139, 138, 137, 136, 133,
- 130, 129, 128, 127, 126, 122, 62, 62, 62, 62,
- 62, 62, 62, 62, 62, 62, 114, 62, 62, 62,
- 111, 62, 62, 62, 62, 62, 62, 62, 62, 62,
- 62, 62, 62, 62, 62, 62, 645, 3, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
-
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645
- } ;
-
-static yyconst flex_int16_t yy_chk[1048] =
- { 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, 5,
- 5, 6, 6, 10, 10, 13, 13, 18, 18, 19,
- 19, 26, 22, 26, 27, 63, 63, 646, 10, 10,
-
- 13, 13, 18, 18, 19, 19, 37, 25, 27, 25,
- 19, 27, 25, 29, 28, 39, 29, 25, 28, 37,
- 27, 39, 78, 78, 28, 30, 635, 5, 22, 632,
- 36, 10, 25, 13, 31, 18, 28, 19, 40, 30,
- 31, 33, 30, 31, 38, 34, 35, 38, 33, 36,
- 35, 30, 31, 38, 33, 34, 41, 61, 631, 36,
- 40, 33, 38, 61, 61, 44, 35, 34, 42, 80,
- 60, 36, 35, 41, 41, 44, 59, 42, 630, 80,
- 41, 64, 64, 628, 44, 60, 59, 59, 59, 65,
- 65, 66, 66, 60, 67, 67, 64, 64, 68, 68,
-
- 69, 69, 100, 67, 65, 65, 66, 66, 100, 67,
- 67, 88, 88, 68, 68, 69, 69, 106, 103, 106,
- 106, 69, 103, 118, 118, 106, 620, 132, 167, 106,
- 132, 179, 167, 88, 88, 106, 106, 216, 216, 132,
- 619, 88, 120, 120, 120, 120, 120, 120, 120, 120,
- 120, 120, 120, 120, 120, 123, 123, 124, 124, 131,
- 142, 142, 617, 131, 175, 175, 124, 131, 179, 198,
- 123, 123, 124, 124, 203, 203, 213, 198, 613, 216,
- 213, 222, 142, 142, 224, 222, 175, 612, 224, 229,
- 229, 236, 236, 250, 175, 246, 246, 250, 251, 256,
-
- 609, 203, 251, 256, 260, 260, 263, 263, 266, 266,
- 267, 274, 274, 435, 267, 435, 229, 246, 597, 229,
- 280, 236, 278, 278, 280, 287, 287, 236, 290, 290,
- 306, 260, 298, 298, 306, 314, 314, 320, 266, 323,
- 323, 320, 328, 328, 278, 278, 330, 330, 331, 331,
- 287, 394, 332, 274, 330, 290, 332, 341, 341, 351,
- 351, 394, 287, 353, 353, 314, 323, 375, 298, 361,
- 361, 375, 328, 362, 362, 378, 378, 380, 380, 341,
- 341, 389, 384, 391, 391, 351, 384, 389, 353, 399,
- 399, 396, 396, 398, 398, 593, 361, 378, 362, 396,
-
- 353, 398, 415, 415, 399, 399, 592, 380, 423, 423,
- 391, 425, 425, 591, 427, 427, 431, 431, 438, 443,
- 443, 534, 438, 447, 447, 534, 396, 590, 415, 452,
- 452, 588, 457, 457, 587, 423, 463, 463, 425, 427,
- 457, 443, 464, 464, 463, 467, 467, 468, 468, 472,
- 472, 497, 431, 447, 452, 497, 468, 464, 464, 497,
- 467, 467, 468, 468, 486, 486, 487, 487, 492, 492,
- 586, 472, 486, 503, 503, 507, 507, 513, 513, 518,
- 518, 519, 519, 524, 524, 525, 525, 518, 531, 531,
- 555, 555, 583, 487, 525, 582, 519, 519, 524, 524,
-
- 525, 525, 513, 503, 492, 507, 528, 528, 532, 532,
- 531, 541, 541, 542, 542, 528, 532, 562, 562, 541,
- 555, 528, 528, 566, 566, 562, 567, 567, 542, 542,
- 581, 570, 570, 576, 576, 567, 575, 575, 566, 566,
- 570, 567, 567, 578, 575, 577, 570, 570, 576, 576,
- 584, 584, 585, 585, 599, 599, 600, 600, 607, 607,
- 573, 585, 599, 572, 565, 584, 584, 585, 585, 603,
- 603, 600, 600, 607, 607, 611, 611, 564, 603, 608,
- 608, 614, 614, 560, 603, 603, 624, 624, 608, 557,
- 614, 629, 629, 556, 608, 608, 614, 614, 625, 625,
-
- 611, 624, 624, 626, 626, 641, 641, 625, 636, 636,
- 643, 643, 626, 625, 625, 554, 629, 636, 626, 626,
- 553, 552, 551, 636, 636, 549, 547, 641, 546, 545,
- 544, 543, 643, 540, 539, 538, 536, 535, 530, 527,
- 526, 522, 520, 517, 516, 515, 514, 512, 510, 509,
- 508, 506, 502, 501, 498, 496, 494, 493, 491, 489,
- 488, 485, 484, 483, 478, 477, 476, 474, 473, 471,
- 466, 465, 462, 460, 459, 458, 456, 455, 453, 451,
- 450, 449, 448, 444, 442, 441, 440, 439, 437, 436,
- 434, 433, 429, 428, 426, 422, 421, 420, 419, 416,
-
- 414, 413, 412, 410, 409, 407, 406, 405, 404, 403,
- 402, 401, 400, 397, 395, 393, 392, 390, 388, 387,
- 386, 385, 383, 382, 381, 379, 377, 376, 374, 373,
- 371, 370, 368, 367, 366, 365, 364, 363, 360, 359,
- 358, 357, 356, 355, 354, 352, 350, 347, 346, 344,
- 343, 342, 339, 337, 335, 334, 333, 329, 327, 326,
- 325, 324, 322, 321, 319, 318, 317, 316, 315, 313,
- 311, 310, 309, 308, 307, 305, 304, 303, 302, 301,
- 300, 299, 297, 296, 295, 294, 293, 292, 291, 289,
- 288, 286, 285, 284, 283, 282, 281, 279, 277, 276,
-
- 275, 273, 272, 271, 270, 269, 268, 265, 264, 262,
- 261, 259, 258, 255, 254, 248, 247, 245, 244, 243,
- 242, 241, 240, 239, 238, 237, 235, 234, 233, 232,
- 231, 228, 227, 226, 225, 223, 221, 220, 219, 218,
- 217, 214, 212, 211, 210, 209, 208, 207, 206, 205,
- 204, 202, 201, 200, 199, 178, 177, 176, 173, 172,
- 171, 170, 169, 168, 166, 165, 164, 163, 162, 161,
- 160, 159, 156, 154, 153, 152, 151, 150, 149, 148,
- 147, 146, 145, 144, 143, 141, 140, 139, 137, 136,
- 135, 134, 133, 130, 129, 128, 127, 126, 121, 119,
-
- 114, 113, 112, 111, 110, 109, 108, 107, 105, 104,
- 102, 101, 99, 98, 97, 96, 95, 94, 93, 92,
- 91, 90, 89, 87, 86, 85, 84, 83, 81, 79,
- 77, 75, 74, 73, 72, 62, 58, 57, 56, 55,
- 54, 53, 52, 51, 50, 49, 48, 47, 46, 45,
- 43, 32, 24, 23, 21, 20, 17, 16, 15, 14,
- 12, 11, 9, 8, 7, 4, 3, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
-
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645, 645, 645, 645,
- 645, 645, 645, 645, 645, 645, 645
- } ;
-
-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 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 "lexer.l"
-#line 5 "lexer.l"
-/* the directives above are for Solaris lex, and will be ignored by
- * flex */
-
-/*
- * NAME
- * lexer.l -- source for the C-INTERCAL lexical analyzer.
- *
-LICENSE TERMS
- Copyright (C) 1996 Eric S. Raymond
-
- 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 2 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, write to the Free Software
- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-*/
-#include "config.h"
-#include <stdio.h>
-#include <stdlib.h>
-#include <ctype.h>
-#include <string.h>
-#include "ick.h"
-#include "parser.h"
-#include "ick_lose.h"
-
-/*#undef wchar_t*/
-/*#define wchar_t unsigned char*/
-
-#ifndef yywrap
-static int yywrap(void)
-{
- return 1;
-}
-#endif /* yywrap */
-
-int iyylineno = 1;
-
-#ifdef MAIN
-YYSTYPE yylval;
-#endif /* MAIN */
-
-char **textlines = NULL;
-int textlinecount = 0;
-int politesse = 0;
-int stbeginline = 0;
-
-/* AIS: Sort out a grammar near-ambiguity */
-unsigned long sparkearsstack[SENESTMAX] = {0};
-int sparkearslev = 0;
-
-/* AIS: Some symbols are ambiguous between C-INTERCAL and CLC-INTERCAL:
- Symbol C-INTERCAL CLC-INTERCAL
- NOSPOT _ @
- WHIRL @ ?
- XOR ? yen, or bookworm (bookworm's also C-INTERCAL legal)
- By default, the C-INTERCAL meanings are used; the extern variable clclex
- causes CLC-INTERCAL interpretations to be put on the ambiguous symbols.
- Otherwise, mixing syntaxes freely is allowed. */
-extern int clclex;
-
-#ifdef FLEX_SCANNER
-static char linebuf[YY_BUF_SIZE];
-#else /* FLEX_SCANNER */
-static char linebuf[YYLMAX];
-#endif /* FLEX_SCANNER */
-
-static char *lineptr = linebuf;
-
-ick_bool re_send_token = ick_FALSE;
-
-int lexer(void);
-static int myatoi(const char *text);
-void yyerror(const char *errtype);
-
-#define SETLINENO \
- {if (stbeginline == 0) stbeginline = iyylineno;\
- else if (stbeginline < 0) stbeginline = 0;}
-
-/* AIS: Keep track of the spark/ears situation */
-#define STACKSPARKEARS(a) \
- if (sparkearslev+1>=SENESTMAX*32) ick_lose(IE281, iyylineno, (char*) NULL); \
- sparkearslev++; sparkearsstack[sparkearslev/32]<<=1; \
- sparkearsstack[sparkearslev/32]+=a
-#define CLEARSPARKEARSTACK {int i=SENESTMAX; \
- while(i--) sparkearsstack[i] = 0;} \
- sparkearslev = 0
-
-/*
- * The spectacular ugliness of INTERCAL syntax requires that the lexical
- * analyzer have two levels. One, embedded in the getc() function, handles
- * logical-line continuation and the ! abbrev, and stashes each logical
- * line away in a buffer accessible to the code generator (this is necessary
- * for the * construct to be interpreted correctly). The upper level is
- * generated by lex(1) and does normal tokenizing.
- */
-
-#undef getc
-int getc(FILE *fp)
-{
- extern FILE* yyin;
-
- static ick_bool bangflag = ick_FALSE;
- static ick_bool backflag = ick_FALSE;
-
- static ick_bool eolflag = ick_FALSE;
-
- if ((size_t)(lineptr - linebuf) > sizeof linebuf)
- ick_lose(IE666, iyylineno, (char *)NULL);
-
- if (bangflag)
- {
- bangflag = ick_FALSE;
- /* *lineptr++ = '!'; */
- return('.');
- }
- else if (backflag) /* converting ctrl-H (backspace) to two chars "^H" */
- {
- backflag = ick_FALSE;
- /* *lineptr++ = '\b'; */
- return('H');
- }
- else
- {
- int c;
- char c_char;
- /*fprintf(stderr,"about to fgetc(\045p)",(void*)fp);*/
-
- c_char=0; /* AIS */
- (void)fread(&c_char,1,1,fp);
- /* AIS: ignore the first \r in a row to deal with DOS newlines. The
- second in a row is definitely an error, though, and will be caught
- later on. */
- if(c_char=='\r') (void)fread(&c_char,1,1,fp);
- c = c_char;
-
- if(feof(fp)) c=EOF;
- if(!eolflag && c == EOF) c = '\n';
-
- /*fprintf(stderr,"getc input a character: %c\n",c);*/
-
- if (feof(yyin))
- {
- *lineptr = '\0';
- if(eolflag) return(EOF);
- if(c=='\0' || c==EOF) c='\n';
- }
-
- eolflag = ick_FALSE;
-
- if (c == '!')
- {
- *lineptr++ = '!';
- bangflag = ick_TRUE;
- return(c = '\'');
- }
- else if (c == '\b') /* convert ctrl-H (backspace) to
- two chars "^" and "H" so lex can take it */
- {
- *lineptr++ = '\b';
- backflag = ick_TRUE;
- return(c = '^');
- }
- else if (c == '\n')
- {
- *lineptr = '\0';
- lineptr = linebuf;
- if (iyylineno >= textlinecount)
- {
- textlinecount += ALLOC_CHUNK;
- if (textlines)
- textlines = realloc(textlines,
- textlinecount * sizeof(char*));
- else
- textlines = malloc(textlinecount * sizeof(char*));
- if (!textlines)
- ick_lose(IE666, iyylineno, (char *)NULL);
- }
- textlines[iyylineno] = malloc(1 + strlen(linebuf));
- if (!textlines[iyylineno])
- ick_lose(IE666, iyylineno, (char *)NULL);
- strcpy(textlines[iyylineno], linebuf);
- iyylineno++;
- eolflag=ick_TRUE;
- return('\n');
- }
- else
- {
- return(*lineptr++ = c);
- }
- }
-}
-
-/* replace YY_INPUT so that it uses our getc function. */
-#undef YY_INPUT
-#define YY_INPUT(buf,result,max_size) \
- { \
- int c = getc(yyin); \
- if (c == EOF) { \
- if (ferror(yyin)) \
- YY_FATAL_ERROR("input in flex scanner failed"); \
- result = YY_NULL; \
- } else { \
- buf[0] = c; \
- result = 1; \
- } \
- }
-
-#line 1111 "lexer.c"
-
-#define INITIAL 0
-
-#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 );
-
-int yyget_leng (void );
-
-char *yyget_text (void );
-
-int yyget_lineno (void );
-
-void yyset_lineno (int line_number );
-
-/* 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 );
-#else
-extern int yywrap (void );
-#endif
-#endif
-
- static void yyunput (int c,char *buf_ptr );
-
-#ifndef yytext_ptr
-static void yy_flex_strncpy (char *,yyconst char *,int );
-#endif
-
-#ifdef YY_NEED_STRLEN
-static int yy_flex_strlen (yyconst char * );
-#endif
-
-#ifndef YY_NO_INPUT
-
-#ifdef __cplusplus
-static int yyinput (void );
-#else
-static int input (void );
-#endif
-
-#endif
-
-/* Amount of stuff to slurp up with each read. */
-#ifndef YY_READ_BUF_SIZE
-#define YY_READ_BUF_SIZE 8192
-#endif
-
-/* Copy whatever the last rule matched to the standard output. */
-#ifndef ECHO
-/* This used to be an fputs(), but since the string might contain NUL's,
- * we now use fwrite().
- */
-#define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
-#endif
-
-/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
- * is returned in "result".
- */
-#ifndef YY_INPUT
-#define YY_INPUT(buf,result,max_size) \
- if ( YY_CURRENT_BUFFER_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
-
-/* No semi-colon after return; correct usage is to write "yyterminate();" -
- * we don't want an extra ';' after the "return" because that will cause
- * some compilers to complain about unreachable statements.
- */
-#ifndef yyterminate
-#define yyterminate() return YY_NULL
-#endif
-
-/* Number of entries by which start-condition stack grows. */
-#ifndef YY_START_STACK_INCR
-#define YY_START_STACK_INCR 25
-#endif
-
-/* Report a fatal error. */
-#ifndef YY_FATAL_ERROR
-#define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
-#endif
-
-/* 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 */
-
-/* Code executed at the beginning of each rule, after yytext and yyleng
- * have been set up.
- */
-#ifndef YY_USER_ACTION
-#define YY_USER_ACTION
-#endif
-
-/* Code executed at the end of each rule. */
-#ifndef YY_BREAK
-#define YY_BREAK break;
-#endif
-
-#define YY_RULE_SETUP \
- YY_USER_ACTION
-
-/** 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;
-
-#line 226 "lexer.l"
-
-
-#line 1296 "lexer.c"
-
- if ( !(yy_init) )
- {
- (yy_init) = 1;
-
-#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 ) {
- yyensure_buffer_stack ();
- YY_CURRENT_BUFFER_LVALUE =
- yy_create_buffer(yyin,YY_BUF_SIZE );
- }
-
- yy_load_buffer_state( );
- }
-
- while ( 1 ) /* loops until end-of-file is reached */
- {
- yy_cp = (yy_c_buf_p);
-
- /* Support of yytext. */
- *yy_cp = (yy_hold_char);
-
- /* yy_bp points to the position in yy_ch_buf of the start of
- * the current run.
- */
- yy_bp = yy_cp;
-
- yy_current_state = (yy_start);
-yy_match:
- do
- {
- register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
- if ( yy_accept[yy_current_state] )
- {
- (yy_last_accepting_state) = yy_current_state;
- (yy_last_accepting_cpos) = yy_cp;
- }
- while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
- {
- yy_current_state = (int) yy_def[yy_current_state];
- if ( yy_current_state >= 646 )
- 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] != 968 );
-
-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:
-/* rule 1 can match eol */
-YY_RULE_SETUP
-#line 228 "lexer.l"
-{yylval.numval = myatoi(yytext); return(NUMBER);}
- YY_BREAK
-case 2:
-YY_RULE_SETUP
-#line 229 "lexer.l"
-{return(NOSPOT);}
- YY_BREAK
-case 3:
-YY_RULE_SETUP
-#line 230 "lexer.l"
-{return(ick_ONESPOT);}
- YY_BREAK
-case 4:
-YY_RULE_SETUP
-#line 231 "lexer.l"
-{return(ick_TWOSPOT);}
- YY_BREAK
-case 5:
-YY_RULE_SETUP
-#line 232 "lexer.l"
-{return(ick_TAIL);}
- YY_BREAK
-case 6:
-YY_RULE_SETUP
-#line 233 "lexer.l"
-{return(ick_HYBRID);}
- YY_BREAK
-case 7:
-YY_RULE_SETUP
-#line 234 "lexer.l"
-{return(MESH);}
- YY_BREAK
-case 8:
-#line 237 "lexer.l"
-case 9:
-#line 238 "lexer.l"
-case 10:
-YY_RULE_SETUP
-#line 238 "lexer.l"
-{return(MINGLE); /* AIS: CLC-INTERCAL ick_mingle symbols.
- The \xBD is ISO-8859-1 for cent. */}
- YY_BREAK
-case 11:
-#line 241 "lexer.l"
-case 12:
-#line 242 "lexer.l"
-case 13:
-#line 243 "lexer.l"
-case 14:
-#line 244 "lexer.l"
-case 15:
-#line 245 "lexer.l"
-case 16:
-#line 246 "lexer.l"
-case 17:
-#line 247 "lexer.l"
-case 18:
-#line 248 "lexer.l"
-case 19:
-#line 249 "lexer.l"
-case 20:
-#line 250 "lexer.l"
-case 21:
-#line 251 "lexer.l"
-case 22:
-#line 252 "lexer.l"
-case 23:
-#line 253 "lexer.l"
-case 24:
-#line 254 "lexer.l"
-case 25:
-#line 255 "lexer.l"
-case 26:
-#line 256 "lexer.l"
-case 27:
-#line 257 "lexer.l"
-case 28:
-#line 258 "lexer.l"
-case 29:
-#line 259 "lexer.l"
-case 30:
-#line 260 "lexer.l"
-case 31:
-#line 261 "lexer.l"
-case 32:
-#line 262 "lexer.l"
-case 33:
-YY_RULE_SETUP
-#line 262 "lexer.l"
-{return(MINGLE);}
- YY_BREAK
-case 34:
-YY_RULE_SETUP
-#line 264 "lexer.l"
-{return(SELECT);}
- YY_BREAK
-case 35:
-YY_RULE_SETUP
-#line 266 "lexer.l"
-{return(SLAT); /* AIS: Operand overloading */}
- YY_BREAK
-case 36:
-YY_RULE_SETUP
-#line 267 "lexer.l"
-{return(BACKSLAT); /* ditto */}
- YY_BREAK
-case 37:
-YY_RULE_SETUP
-#line 269 "lexer.l"
-{yylval.numval = AND; return(UNARY);}
- YY_BREAK
-case 38:
-YY_RULE_SETUP
-#line 270 "lexer.l"
-{yylval.numval = OR; return(UNARY);}
- YY_BREAK
-case 39:
-#line 272 "lexer.l"
-case 40:
-#line 273 "lexer.l"
-case 41:
-#line 274 "lexer.l"
-case 42:
-YY_RULE_SETUP
-#line 274 "lexer.l"
-{yylval.numval = XOR; return(UNARY);
- /* AIS: CLC-INTERCAL uses \xBE, ISO-8859-1 for yen;
- for some reason, \xA5 is what was detected by the compiler
- during my tests, so that's here too */}
- YY_BREAK
-case 43:
-YY_RULE_SETUP
-#line 278 "lexer.l"
-{if(clclex) yylval.numval = WHIRL;
- else yylval.numval = XOR; return(UNARY);
- /* AIS: ? is a unary operator in both C-INTERCAL and
- CLC-INTERCAL, but with different meanings. */}
- YY_BREAK
-case 44:
-#line 283 "lexer.l"
-case 45:
-YY_RULE_SETUP
-#line 283 "lexer.l"
-{yylval.numval = FIN; return(UNARY); /* AIS: | is CLC */}
- YY_BREAK
-case 46:
-YY_RULE_SETUP
-#line 284 "lexer.l"
-{if(clclex) return(NOSPOT); /* AIS: a C/CLC ambiguity */
- else {yylval.numval = WHIRL; return(UNARY);}}
- YY_BREAK
-case 47:
-/* rule 47 can match eol */
-YY_RULE_SETUP
-#line 286 "lexer.l"
-{yylval.numval = WHIRL + myatoi(yytext) - 1; return(UNARY);}
- YY_BREAK
-case 48:
-YY_RULE_SETUP
-#line 288 "lexer.l"
-{char temp = sparkearsstack[sparkearslev/32]&1;
- STACKSPARKEARS(0); /* AIS: I added all mentions of
- STACKSPARKEARS, OPEN\(SPARK\|EARS\),
- CLOSE\(SPARK\|EARS\),
- and CLEARSPARKEARSTACK */
- return(temp?OPENSPARK:CLOSESPARK);}
- YY_BREAK
-case 49:
-YY_RULE_SETUP
-#line 294 "lexer.l"
-{char temp = sparkearsstack[sparkearslev/32]&1;
- STACKSPARKEARS(1);
- return(temp?CLOSEEARS:OPENEARS);}
- YY_BREAK
-case 50:
-/* rule 50 can match eol */
-YY_RULE_SETUP
-#line 298 "lexer.l"
-{SETLINENO; yylval.numval = myatoi(yytext); return(LABEL);}
- YY_BREAK
-case 51:
-YY_RULE_SETUP
-#line 300 "lexer.l"
-{SETLINENO; CLEARSPARKEARSTACK; return(DO);}
- YY_BREAK
-case 52:
-YY_RULE_SETUP
-#line 301 "lexer.l"
-{SETLINENO; CLEARSPARKEARSTACK; return(DO);}
- YY_BREAK
-case 53:
-YY_RULE_SETUP
-#line 302 "lexer.l"
-{SETLINENO; CLEARSPARKEARSTACK; politesse++; return(DO);}
- YY_BREAK
-case 54:
-YY_RULE_SETUP
-#line 303 "lexer.l"
-{SETLINENO; CLEARSPARKEARSTACK; politesse++; return(DO);}
- YY_BREAK
-case 55:
-/* rule 55 can match eol */
-YY_RULE_SETUP
-#line 304 "lexer.l"
-{SETLINENO; CLEARSPARKEARSTACK; politesse++; return(DO);}
- YY_BREAK
-case 56:
-/* rule 56 can match eol */
-YY_RULE_SETUP
-#line 305 "lexer.l"
-{SETLINENO; CLEARSPARKEARSTACK; politesse++; return(DO);}
- YY_BREAK
-case 57:
-YY_RULE_SETUP
-#line 306 "lexer.l"
-{SETLINENO; CLEARSPARKEARSTACK; return(MAYBE);}
- YY_BREAK
-case 58:
-/* rule 58 can match eol */
-YY_RULE_SETUP
-#line 307 "lexer.l"
-{SETLINENO; CLEARSPARKEARSTACK; return(MAYBE);}
- YY_BREAK
-case 59:
-/* rule 59 can match eol */
-YY_RULE_SETUP
-#line 308 "lexer.l"
-{SETLINENO; CLEARSPARKEARSTACK; politesse++; return(MAYBE);}
- YY_BREAK
-case 60:
-/* rule 60 can match eol */
-YY_RULE_SETUP
-#line 309 "lexer.l"
-{SETLINENO; CLEARSPARKEARSTACK; politesse++; return(MAYBE);
- /* AIS: I added all the MAYBE cases. It seems that MAYBE
- has no simple Latin synonym. */}
- YY_BREAK
-case 61:
-YY_RULE_SETUP
-#line 313 "lexer.l"
-{return(NOT);}
- YY_BREAK
-case 62:
-YY_RULE_SETUP
-#line 314 "lexer.l"
-{return(NOT);}
- YY_BREAK
-case 63:
-YY_RULE_SETUP
-#line 315 "lexer.l"
-{return(NOT);}
- YY_BREAK
-case 64:
-YY_RULE_SETUP
-#line 316 "lexer.l"
-{return(NOT); /* AIS: CLC-INTERCAL again, this time it's
- ISO-8859-1 for the logical NOT symbol... */}
- YY_BREAK
-case 65:
-YY_RULE_SETUP
-#line 318 "lexer.l"
-{return(NOT); /* ... but my computer translates it to \xAC */}
- YY_BREAK
-case 66:
-YY_RULE_SETUP
-#line 320 "lexer.l"
-{return(ONCE);}
- YY_BREAK
-case 67:
-YY_RULE_SETUP
-#line 321 "lexer.l"
-{return(ONCE);}
- YY_BREAK
-case 68:
-YY_RULE_SETUP
-#line 322 "lexer.l"
-{return(AGAIN);}
- YY_BREAK
-case 69:
-YY_RULE_SETUP
-#line 323 "lexer.l"
-{return(AGAIN);}
- YY_BREAK
-case 70:
-/* rule 70 can match eol */
-YY_RULE_SETUP
-#line 325 "lexer.l"
-{yylval.numval = myatoi(yytext);
- if (yylval.numval && yylval.numval < 100)
- return(OHOHSEVEN);
- else
- ick_lose(IE017, iyylineno, (char *)NULL);}
- YY_BREAK
-case 71:
-YY_RULE_SETUP
-#line 330 "lexer.l"
-{return(SUB);}
- YY_BREAK
-case 72:
-/* rule 72 can match eol */
-#line 332 "lexer.l"
-case 73:
-/* rule 73 can match eol */
-YY_RULE_SETUP
-#line 332 "lexer.l"
-{return(BY);}
- YY_BREAK
-case 74:
-YY_RULE_SETUP
-#line 334 "lexer.l"
-{return(GETS);}
- YY_BREAK
-case 75:
-#line 336 "lexer.l"
-case 76:
-YY_RULE_SETUP
-#line 336 "lexer.l"
-{yylval.numval = GETS; return(GERUND);}
- YY_BREAK
-case 77:
-#line 339 "lexer.l"
-case 78:
-YY_RULE_SETUP
-#line 339 "lexer.l"
-{return(FORGET);}
- YY_BREAK
-case 79:
-#line 341 "lexer.l"
-case 80:
-YY_RULE_SETUP
-#line 341 "lexer.l"
-{yylval.numval = FORGET; return(GERUND);}
- YY_BREAK
-case 81:
-#line 343 "lexer.l"
-case 82:
-YY_RULE_SETUP
-#line 343 "lexer.l"
-{return(RESUME);}
- YY_BREAK
-case 83:
-#line 345 "lexer.l"
-case 84:
-YY_RULE_SETUP
-#line 345 "lexer.l"
-{yylval.numval = RESUME; return(GERUND);}
- YY_BREAK
-case 85:
-#line 347 "lexer.l"
-case 86:
-YY_RULE_SETUP
-#line 347 "lexer.l"
-{return(STASH);}
- YY_BREAK
-case 87:
-#line 349 "lexer.l"
-case 88:
-YY_RULE_SETUP
-#line 349 "lexer.l"
-{yylval.numval = STASH; return(GERUND);}
- YY_BREAK
-case 89:
-#line 351 "lexer.l"
-case 90:
-YY_RULE_SETUP
-#line 351 "lexer.l"
-{return(RETRIEVE);}
- YY_BREAK
-case 91:
-#line 353 "lexer.l"
-case 92:
-YY_RULE_SETUP
-#line 353 "lexer.l"
-{yylval.numval = RETRIEVE; return(GERUND);}
- YY_BREAK
-case 93:
-#line 355 "lexer.l"
-case 94:
-YY_RULE_SETUP
-#line 355 "lexer.l"
-{return(IGNORE);}
- YY_BREAK
-case 95:
-#line 357 "lexer.l"
-case 96:
-YY_RULE_SETUP
-#line 357 "lexer.l"
-{yylval.numval = IGNORE; return(GERUND);}
- YY_BREAK
-case 97:
-#line 359 "lexer.l"
-case 98:
-YY_RULE_SETUP
-#line 359 "lexer.l"
-{return(REMEMBER);}
- YY_BREAK
-case 99:
-#line 361 "lexer.l"
-case 100:
-YY_RULE_SETUP
-#line 361 "lexer.l"
-{yylval.numval = REMEMBER; return(GERUND);}
- YY_BREAK
-case 101:
-#line 363 "lexer.l"
-case 102:
-YY_RULE_SETUP
-#line 363 "lexer.l"
-{return(ABSTAIN);}
- YY_BREAK
-case 103:
-#line 365 "lexer.l"
-case 104:
-YY_RULE_SETUP
-#line 365 "lexer.l"
-{yylval.numval = ABSTAIN; return(GERUND);}
- YY_BREAK
-case 105:
-#line 367 "lexer.l"
-case 106:
-YY_RULE_SETUP
-#line 367 "lexer.l"
-{return(REINSTATE);}
- YY_BREAK
-case 107:
-#line 369 "lexer.l"
-case 108:
-YY_RULE_SETUP
-#line 369 "lexer.l"
-{yylval.numval = REINSTATE; return(GERUND);}
- YY_BREAK
-case 109:
-/* rule 109 can match eol */
-#line 371 "lexer.l"
-case 110:
-/* rule 110 can match eol */
-YY_RULE_SETUP
-#line 371 "lexer.l"
-{return(READ_OUT);}
- YY_BREAK
-case 111:
-#line 373 "lexer.l"
-case 112:
-/* rule 112 can match eol */
-YY_RULE_SETUP
-#line 373 "lexer.l"
-{yylval.numval = READ_OUT; return(GERUND);}
- YY_BREAK
-case 113:
-/* rule 113 can match eol */
-#line 375 "lexer.l"
-case 114:
-/* rule 114 can match eol */
-YY_RULE_SETUP
-#line 375 "lexer.l"
-{return(WRITE_IN);}
- YY_BREAK
-case 115:
-#line 377 "lexer.l"
-case 116:
-/* rule 116 can match eol */
-YY_RULE_SETUP
-#line 377 "lexer.l"
-{yylval.numval = WRITE_IN; return(GERUND);}
- YY_BREAK
-case 117:
-#line 379 "lexer.l"
-case 118:
-#line 380 "lexer.l"
-case 119:
-#line 381 "lexer.l"
-case 120:
-YY_RULE_SETUP
-#line 381 "lexer.l"
-{yylval.numval = UNKNOWN; return(GERUND);
- /* AIS: An idea stolen from CLC-INTERCAL.
- The Latin means literally 'remind' or 'mention'. */}
- YY_BREAK
-case 121:
-YY_RULE_SETUP
-#line 384 "lexer.l"
-{/* By AIS. I can't find a Latin translation for this. */
- return(PIN);}
- YY_BREAK
-case 122:
-YY_RULE_SETUP
-#line 386 "lexer.l"
-{/* By AIS */ yylval.numval = PIN; return(GERUND);}
- YY_BREAK
-case 123:
-/* rule 123 can match eol */
-#line 388 "lexer.l"
-case 124:
-/* rule 124 can match eol */
-YY_RULE_SETUP
-#line 388 "lexer.l"
-{/* AIS */ yylval.numval = myatoi(yytext);
- return(NEXTFROMLABEL);}
- YY_BREAK
-case 125:
-/* rule 125 can match eol */
-#line 391 "lexer.l"
-case 126:
-/* rule 126 can match eol */
-YY_RULE_SETUP
-#line 391 "lexer.l"
-{/* AIS: 'next' is not a verb, so the Latin is invented */
- return(NEXTFROMEXPR);}
- YY_BREAK
-case 127:
-#line 394 "lexer.l"
-case 128:
-/* rule 128 can match eol */
-YY_RULE_SETUP
-#line 394 "lexer.l"
-{/* AIS */ yylval.numval = NEXTFROMLABEL; return(GERUND);}
- YY_BREAK
-case 129:
-/* rule 129 can match eol */
-#line 396 "lexer.l"
-case 130:
-/* rule 130 can match eol */
-YY_RULE_SETUP
-#line 396 "lexer.l"
-{/* AIS */ yylval.numval = myatoi(yytext);
- return(COME_FROM);}
- YY_BREAK
-case 131:
-/* rule 131 can match eol */
-#line 399 "lexer.l"
-case 132:
-/* rule 132 can match eol */
-YY_RULE_SETUP
-#line 399 "lexer.l"
-{/* AIS */ return(COMPUCOME);}
- YY_BREAK
-case 133:
-#line 401 "lexer.l"
-case 134:
-/* rule 134 can match eol */
-YY_RULE_SETUP
-#line 401 "lexer.l"
-{yylval.numval = COME_FROM; return(GERUND);}
- YY_BREAK
-case 135:
-#line 403 "lexer.l"
-case 136:
-YY_RULE_SETUP
-#line 403 "lexer.l"
-{stbeginline = 0; return(NEXT);}
- YY_BREAK
-case 137:
-#line 405 "lexer.l"
-case 138:
-YY_RULE_SETUP
-#line 405 "lexer.l"
-{yylval.numval = NEXT; return(GERUND);}
- YY_BREAK
-case 139:
-YY_RULE_SETUP
-#line 406 "lexer.l"
-{return(FROM); /* AIS: Latin is 'A', which confuses the rest
- of the parser */}
- YY_BREAK
-case 140:
-#line 409 "lexer.l"
-case 141:
-#line 410 "lexer.l"
-case 142:
-/* rule 142 can match eol */
-YY_RULE_SETUP
-#line 410 "lexer.l"
-{return(GIVE_UP);}
- YY_BREAK
-case 143:
-/* rule 143 can match eol */
-#line 412 "lexer.l"
-case 144:
-/* rule 144 can match eol */
-YY_RULE_SETUP
-#line 412 "lexer.l"
-{return(TRY_AGAIN);}
- YY_BREAK
-case 145:
-YY_RULE_SETUP
-#line 413 "lexer.l"
-{return(WHILE); /* AIS. Latin for this is needed. */}
- YY_BREAK
-case 146:
-#line 415 "lexer.l"
-case 147:
-YY_RULE_SETUP
-#line 415 "lexer.l"
-{yylval.numval = WHILE; return(GERUND);}
- YY_BREAK
-case 148:
-/* rule 148 can match eol */
-YY_RULE_SETUP
-#line 416 "lexer.l"
-{yylval.numval = TRY_AGAIN; return(GERUND);}
- YY_BREAK
-case 149:
-/* rule 149 can match eol */
-#line 418 "lexer.l"
-case 150:
-/* rule 150 can match eol */
-YY_RULE_SETUP
-#line 418 "lexer.l"
-{return(GO_BACK);}
- YY_BREAK
-case 151:
-/* rule 151 can match eol */
-#line 420 "lexer.l"
-case 152:
-/* rule 152 can match eol */
-YY_RULE_SETUP
-#line 420 "lexer.l"
-{yylval.numval = GO_BACK; return(GERUND);}
- YY_BREAK
-case 153:
-/* rule 153 can match eol */
-#line 422 "lexer.l"
-case 154:
-/* rule 154 can match eol */
-YY_RULE_SETUP
-#line 422 "lexer.l"
-{return(GO_AHEAD);}
- YY_BREAK
-case 155:
-/* rule 155 can match eol */
-YY_RULE_SETUP
-#line 423 "lexer.l"
-{yylval.numval = GO_AHEAD; return(GERUND);
- /* AIS: I'm having a few deponent troubles with the Latin, so
- there are no Latin gerunds around here. Besides, the Latin
- 'gerunds' look somewhat like gerundives to me, but that's
- purely based on memory so I may be wrong. */}
- YY_BREAK
-case 156:
-/* rule 156 can match eol */
-#line 429 "lexer.l"
-case 157:
-/* rule 157 can match eol */
-YY_RULE_SETUP
-#line 429 "lexer.l"
-{yylval.numval = myatoi(yytext); return(CREATE);}
- YY_BREAK
-case 158:
-#line 431 "lexer.l"
-case 159:
-YY_RULE_SETUP
-#line 431 "lexer.l"
-{return(COMPUCREATE);}
- YY_BREAK
-case 160:
-#line 433 "lexer.l"
-case 161:
-#line 434 "lexer.l"
-case 162:
-YY_RULE_SETUP
-#line 434 "lexer.l"
-{yylval.numval = CREATE; return(GERUND);}
- YY_BREAK
-case 163:
-YY_RULE_SETUP
-#line 436 "lexer.l"
-{return(INTERSECTION);}
- YY_BREAK
-case 164:
-/* rule 164 can match eol */
-YY_RULE_SETUP
-#line 438 "lexer.l"
-;
- YY_BREAK
-case 165:
-YY_RULE_SETUP
-#line 439 "lexer.l"
-{/* AIS */ yylval.numval = *yytext; return(UNKNOWNID);}
- YY_BREAK
-case 166:
-YY_RULE_SETUP
-#line 440 "lexer.l"
-{/* AIS */ yylval.numval = yytext[0]*256 + yytext[3];
- if(yytext[0] > yytext[3])
- yylval.numval = yytext[0] + yytext[3]*256;
- return(BADCHAR);}
- YY_BREAK
-case 167:
-YY_RULE_SETUP
-#line 444 "lexer.l"
-{yylval.numval = yytext[0]; /* AIS: The line below for debug */
- if(yydebug) fprintf(stdout, "yylex: bad char %#x\n",(unsigned char)yytext[0]);
- return(BADCHAR);}
- YY_BREAK
-case 168:
-YY_RULE_SETUP
-#line 449 "lexer.l"
-ECHO;
- YY_BREAK
-#line 2082 "lexer.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_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 yylex */
-
-/* yy_get_next_buffer - try to read in a new buffer
- *
- * Returns a code representing an action:
- * EOB_ACT_LAST_MATCH -
- * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
- * EOB_ACT_END_OF_FILE - end of file
- */
-static int yy_get_next_buffer (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
- {
- int 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;
-
- 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. */
- 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), (size_t) 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 yy_state_type yy_get_previous_state (void)
-{
- register yy_state_type yy_current_state;
- register char *yy_cp;
-
- yy_current_state = (yy_start);
-
- for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
- {
- register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
- if ( yy_accept[yy_current_state] )
- {
- (yy_last_accepting_state) = yy_current_state;
- (yy_last_accepting_cpos) = yy_cp;
- }
- while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
- {
- yy_current_state = (int) yy_def[yy_current_state];
- if ( yy_current_state >= 646 )
- 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 >= 646 )
- 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 == 645);
-
- return yy_is_jam ? 0 : yy_current_state;
-}
-
- static void yyunput (int c, register char * yy_bp )
-{
- register char *yy_cp;
-
- yy_cp = (yy_c_buf_p);
-
- /* undo effects of setting up yytext */
- *yy_cp = (yy_hold_char);
-
- if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->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_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_LVALUE->yy_ch_buf )
- *--dest = *--source;
-
- 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_LVALUE->yy_ch_buf + 2 )
- YY_FATAL_ERROR( "flex scanner push-back overflow" );
- }
-
- *--yy_cp = (char) c;
-
- (yytext_ptr) = yy_bp;
- (yy_hold_char) = *yy_cp;
- (yy_c_buf_p) = yy_cp;
-}
-
-#ifndef YY_NO_INPUT
-#ifdef __cplusplus
- static int yyinput (void)
-#else
- static int input (void)
-#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 */
- 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 );
-
- /*FALLTHROUGH*/
-
- case EOB_ACT_END_OF_FILE:
- {
- if ( yywrap( ) )
- return EOF;
-
- if ( ! (yy_did_buffer_switch_on_eof) )
- YY_NEW_FILE;
-#ifdef __cplusplus
- return yyinput();
-#else
- return input();
-#endif
- }
-
- case EOB_ACT_CONTINUE_SCAN:
- (yy_c_buf_p) = (yytext_ptr) + offset;
- break;
- }
- }
- }
-
- c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */
- *(yy_c_buf_p) = '\0'; /* preserve yytext */
- (yy_hold_char) = *++(yy_c_buf_p);
-
- return c;
-}
-#endif /* ifndef YY_NO_INPUT */
-
-/** 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_init_buffer(YY_CURRENT_BUFFER,input_file );
- yy_load_buffer_state( );
-}
-
-/** 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);
-}
-
-/** 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;
-
- 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;
-
- /* 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;
-
- yy_init_buffer(b,file );
-
- return b;
-}
-
-/** Destroy the buffer.
- * @param b a buffer created with yy_create_buffer()
- *
- */
- void yy_delete_buffer (YY_BUFFER_STATE b )
-{
-
- if ( ! b )
- return;
-
- if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
- YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
-
- if ( b->yy_is_our_buffer )
- yyfree((void *) b->yy_ch_buf );
-
- yyfree((void *) b );
-}
-
-#ifndef __cplusplus
-extern int isatty (int );
-#endif /* __cplusplus */
-
-/* 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;
-
- yy_flush_buffer(b );
-
- b->yy_input_file = file;
- b->yy_fill_buffer = 1;
-
- /* 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;
- }
-
- b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
-
- errno = oerrno;
-}
-
-/** 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;
-
- b->yy_n_chars = 0;
-
- /* We always need two end-of-buffer characters. The first causes
- * a transition to the end-of-buffer state. The second causes
- * a jam in that state.
- */
- b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
- b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
-
- b->yy_buf_pos = &b->yy_ch_buf[0];
-
- b->yy_at_bol = 1;
- b->yy_buffer_status = YY_BUFFER_NEW;
-
- if ( b == YY_CURRENT_BUFFER )
- yy_load_buffer_state( );
-}
-
-/** 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;
-}
-
-/** 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;
- }
-}
-
-/* Allocates the stack if it does not exist.
- * Guarantees space for at least one push.
- */
-static void yyensure_buffer_stack (void)
-{
- int num_to_alloc;
-
- 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;
- }
-}
-
-/** 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;
-}
-
-/** 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) );
-}
-
-/** 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 bytes the byte buffer to scan
- * @param 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, int _yybytes_len )
-{
- YY_BUFFER_STATE b;
- char *buf;
- yy_size_t n;
- int i;
-
- /* 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];
-
- 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()" );
-
- /* 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;
-}
-
-#ifndef YY_EXIT_FAILURE
-#define YY_EXIT_FAILURE 2
-#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. */
-
-#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;
-}
-
-/** Get the input stream.
- *
- */
-FILE *yyget_in (void)
-{
- return yyin;
-}
-
-/** Get the output stream.
- *
- */
-FILE *yyget_out (void)
-{
- return yyout;
-}
-
-/** Get the length of the current token.
- *
- */
-int yyget_leng (void)
-{
- return yyleng;
-}
-
-/** Get the current token.
- *
- */
-
-char *yyget_text (void)
-{
- return yytext;
-}
-
-/** 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 ;
-}
-
-void yyset_out (FILE * out_str )
-{
- yyout = out_str ;
-}
-
-int yyget_debug (void)
-{
- return yy_flex_debug;
-}
-
-void yyset_debug (int bdebug )
-{
- yy_flex_debug = bdebug ;
-}
-
-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.
- */
-
- (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;
-#else
- yyin = (FILE *) 0;
- yyout = (FILE *) 0;
-#endif
-
- /* 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.
- */
-
-#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];
-}
-#endif
-
-#ifdef YY_NEED_STRLEN
-static int yy_flex_strlen (yyconst char * s )
-{
- register int n;
- for ( n = 0; s[n]; ++n )
- ;
-
- return n;
-}
-#endif
-
-void *yyalloc (yy_size_t size )
-{
- return (void *) malloc( size );
-}
-
-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"
-
-#line 449 "lexer.l"
-
-
-
-int lexer(void)
-{
- static int tok = BADCHAR;
-
- if (re_send_token)
- re_send_token = ick_FALSE;
- else
- {
- tok = yylex();
-#ifdef YYDEBUG
- if (yydebug)
- (void) fprintf(stdout, "yylex: returning token %d\n", tok);
-#endif /* YYDEBUG */
- }
-
-#ifdef YYDEBUG
- if (yydebug)
- (void) fprintf(stdout, "lexer: returning token %d\n", tok);
-#endif /* YYDEBUG */
- return(tok);
-}
-
-static int myatoi(const char *text) /* AIS */
-{
-#define MAXTEXT 100
- static char buf[MAXTEXT];
- static char thinbuf[MAXTEXT];
- char* bp;
- char* tp;
- register int i;
-
- for(buf[i = 0] = '\0';*text && i < MAXTEXT;text++) {
- if(isdigit(*text)) {
- buf[i++] = *text;
- }
- }
- buf[i] = '\0';
- bp=buf; tp=thinbuf;
- while(((*tp++=*bp++))); /* thinbuf code added by an AIS
- in case we want to work with wchar_t;
- the extra brackets tell GCC that this is
- intended and not a mistaken assignment */
- return atoi(thinbuf);
-}
-
-void yyerror(const char *errtype)
-{
-#ifdef MAIN
- (void) printf("lextest: lexer error: %s.\n", errtype);
-#else /* MAIN */
- (void) errtype;
-#endif /* MAIN */
-}
-
-#ifdef MAIN
-int ick_main(void)
-{
- int t;
-
- while ((t = yylex()) > 0)
- {
- (void) printf("%03d %09d\n", t, yylval.numval);
- yylval.numval = 0;
- }
- return 0;
-}
-#endif /* MAIN */
-
+++ /dev/null
-/* A Bison parser, made by GNU Bison 2.3. */
-
-/* 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 2, 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, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA. */
-
-/* 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.3"
-
-/* Skeleton name. */
-#define YYSKELETON_NAME "yacc.c"
-
-/* Pure parsers. */
-#define YYPURE 0
-
-/* Using locations. */
-#define YYLSP_NEEDED 0
-
-
-
-/* Tokens. */
-#ifndef YYTOKENTYPE
-# define YYTOKENTYPE
- /* Put the tokens into the symbol table, so that GDB and other debuggers
- know about them. */
- enum yytokentype {
- LEXERLEAF = 258
- };
-#endif
-/* Tokens. */
-#define LEXERLEAF 258
-
-
-
-
-/* Copy the first part of user declarations. */
-#line 25 "oil.y"
-
-
-#include "bconfig.h"
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <ctype.h>
-
-/* Autoconf lets us know if we have _Bool available, usually. On DJGPP there's
- an occasional bug that I haven't managed to reproduce that leaves
- SIZEOF_BOOL as the null string, so detect that ick_first. */
-#if 100 - SIZEOF__BOOL - 1 == 101
-/* The bug happened, so play safe. */
- typedef int mybool;
-#else
-# if SIZEOF__BOOL > 0
- typedef _Bool mybool;
-# else
- typedef int mybool;
-# endif
-#endif
-
-/* Define strdup if it isn't available */
-#ifndef HAVE_STRDUP
-char* strdup(const char* s)
-{
- char* t=malloc(strlen(s)+1);
- if(t) strcpy(t,s);
- return t;
-}
-#endif
-
-/*
-#define YYDEBUG 1
-int yydebug=1;
-*/
-
-/* Each semantic value represents either a constraint on a node that needs to
- be true for the optimization template to match, or part of the replacement
- for the optimization template. */
-struct ickstype
-{
- unsigned depth; /* The number of child nodes this is from the root */
- unsigned long path; /* Bits from the end of this number represent the
- sequence of lvals (=0) or rvals (=1) this is from the
- root; depth bits from the end are relevant, and the
- bit nearest the root is least significant */
- const char* condition; /* Points to a constant string; the condition to generate
- on that node. Could also point to something the lexer
- mallocs, but then the lexer has to keep track of being
- able to free it again. If this is NULL, it means that
- there isn't a condition other than maybe mustbemesh */
- const char* nodetypename; /* The name of the type of node this condition matches,
- or NULL for a LEXERLEAF */
- mybool usec; /* Whether to append the value of c to the condition */
- mybool mustbemesh; /* Must this node be a mesh or mesh32? */
- mybool cxneeded; /* True means calculate c and x for the node and the
- condition is on those; false means append 'condition'
- to the node itself to form the condition and c and x
- aren't needed */
- mybool width32; /* Generate a 32-bit node? */
- mybool ublo; /* Is this a UBLO (if set, generate conditions
- to check width)? */
- unsigned long c; /* The value to append to the condition */
- int replnum; /* Number of this group for replacements */
- struct ickstype *n1;/* n1 and n2 are pointers to other conditions that */
- struct ickstype *n2;/* also have to be satisified */
-};
-
-#define YYSTYPE YYSTYPE
-
-#define MAXOPTNAMELEN 64
-char optname[MAXOPTNAMELEN]="undefined";
-
-typedef struct ickstype *YYSTYPE;
-
-void splitend(void);
-void splitstart(void);
-
-void treedepthup(YYSTYPE, mybool);
-void treefree(YYSTYPE);
-void gennodepath(unsigned, unsigned long);
-mybool treeshapecond(YYSTYPE, mybool);
-YYSTYPE treenscheck(YYSTYPE, YYSTYPE, int);
-void treecxcond(YYSTYPE);
-void treerepcount(YYSTYPE, int*);
-void treerepgen(YYSTYPE, YYSTYPE*, int*);
-
-int countgetchar(void);
-int countungetc(int, FILE*);
-int cgccol;
-int cgcrow;
-
-/* #defines for chaining together template expressions; here, s is the type
- of expression (e.g. select, bitwise and, unary and) that's chaining the
- expressions together and n is the nonterminal that's the rval */
-#define BINARYEXPR(s,m,l,r,w) do{ \
- m=malloc(sizeof(struct ickstype)); \
- m->n1=l; \
- m->n2=r; \
- m->usec=0; \
- m->condition="->opcode==" s; \
- m->nodetypename=s; \
- m->mustbemesh=0; \
- m->cxneeded=0; \
- m->depth=0; \
- m->path=0; \
- m->replnum=0; \
- m->width32=w; \
- m->ublo=0; \
- treedepthup(m->n1,0); \
- treedepthup(m->n2,1); \
- } while(0)
-
-#define UNARYEXPR(s,m,r,w,u) do{ \
- m=malloc(sizeof(struct ickstype)); \
- m->n1=0; \
- m->n2=r; \
- m->usec=0; \
- m->condition="->opcode==" s; \
- m->nodetypename=s; \
- m->mustbemesh=0; \
- m->cxneeded=0; \
- m->depth=0; \
- m->path=0; \
- m->replnum=0; \
- m->width32=w; \
- m->ublo=u; \
- treedepthup(m->n2,1); \
- } while(0)
-
-/* Error handling and lexing */
-int yylex(void);
-int yyerror(char const *);
-
-/* Split the output file */
-#define SPLITMAX 20
-int splitcount=SPLITMAX;
-int filenumber=0;
-mybool inloop=0;
-
-
-/* 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
-
-#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
-typedef int YYSTYPE;
-# define yystype YYSTYPE /* obsolescent; will be withdrawn */
-# define YYSTYPE_IS_DECLARED 1
-# define YYSTYPE_IS_TRIVIAL 1
-#endif
-
-
-
-/* Copy the second part of user declarations. */
-
-
-/* Line 216 of yacc.c. */
-#line 254 "oil-oil.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 i)
-#else
-static int
-YYID (i)
- int i;
-#endif
-{
- return i;
-}
-#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;
- YYSTYPE yyvs;
- };
-
-/* 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) \
- do \
- { \
- YYSIZE_T yynewbytes; \
- YYCOPY (&yyptr->Stack, Stack, yysize); \
- Stack = &yyptr->Stack; \
- yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
- yyptr += yynewbytes / sizeof (*yyptr); \
- } \
- while (YYID (0))
-
-#endif
-
-/* YYFINAL -- State number of the termination state. */
-#define YYFINAL 2
-/* YYLAST -- Last index in YYTABLE. */
-#define YYLAST 345
-
-/* YYNTOKENS -- Number of terminals. */
-#define YYNTOKENS 31
-/* YYNNTS -- Number of nonterminals. */
-#define YYNNTS 8
-/* YYNRULES -- Number of rules. */
-#define YYNRULES 89
-/* YYNRULES -- Number of states. */
-#define YYNSTATES 244
-
-/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
-#define YYUNDEFTOK 2
-#define YYMAXUTOK 258
-
-#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, 29, 9, 2, 11, 28, 17, 10,
- 7, 8, 26, 25, 2, 4, 2, 27, 2, 13,
- 16, 15, 22, 23, 14, 2, 2, 2, 2, 2,
- 6, 30, 5, 19, 21, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 18, 2, 2, 2,
- 2, 2, 2, 2, 20, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 24, 2, 12, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 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
-};
-
-#if YYDEBUG
-/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
- YYRHS. */
-static const yytype_uint16 yyprhs[] =
-{
- 0, 0, 3, 4, 7, 12, 17, 19, 21, 25,
- 29, 33, 35, 37, 41, 45, 51, 57, 62, 67,
- 72, 77, 82, 87, 92, 97, 102, 108, 114, 120,
- 126, 131, 137, 143, 149, 155, 159, 165, 171, 175,
- 181, 187, 191, 197, 203, 207, 213, 219, 223, 229,
- 235, 239, 245, 251, 255, 261, 267, 271, 277, 283,
- 287, 293, 299, 303, 309, 315, 320, 325, 330, 337,
- 344, 349, 356, 363, 368, 375, 382, 387, 394, 401,
- 406, 413, 420, 425, 432, 439, 442, 447, 452, 454
-};
-
-/* YYRHS -- A `-1'-separated list of the rules' RHS. */
-static const yytype_int8 yyrhs[] =
-{
- 32, 0, -1, -1, 32, 33, -1, 34, 4, 5,
- 38, -1, 6, 3, 4, 3, -1, 5, -1, 35,
- -1, 7, 37, 8, -1, 9, 37, 9, -1, 10,
- 37, 10, -1, 35, -1, 3, -1, 36, 11, 36,
- -1, 36, 12, 36, -1, 36, 12, 13, 14, 36,
- -1, 36, 12, 15, 16, 36, -1, 17, 13, 14,
- 36, -1, 17, 15, 16, 36, -1, 18, 13, 14,
- 36, -1, 18, 15, 16, 36, -1, 19, 13, 14,
- 36, -1, 19, 15, 16, 36, -1, 20, 13, 14,
- 36, -1, 20, 15, 16, 36, -1, 21, 13, 14,
- 36, -1, 21, 16, 13, 14, 36, -1, 21, 15,
- 13, 14, 36, -1, 21, 22, 13, 14, 36, -1,
- 21, 23, 13, 14, 36, -1, 21, 15, 16, 36,
- -1, 21, 16, 15, 16, 36, -1, 21, 15, 15,
- 16, 36, -1, 21, 22, 15, 16, 36, -1, 21,
- 23, 15, 16, 36, -1, 36, 17, 36, -1, 36,
- 17, 13, 14, 36, -1, 36, 17, 15, 16, 36,
- -1, 36, 24, 36, -1, 36, 24, 13, 14, 36,
- -1, 36, 24, 15, 16, 36, -1, 36, 20, 36,
- -1, 36, 20, 13, 14, 36, -1, 36, 20, 15,
- 16, 36, -1, 36, 25, 36, -1, 36, 25, 13,
- 14, 36, -1, 36, 25, 15, 16, 36, -1, 36,
- 4, 36, -1, 36, 4, 13, 14, 36, -1, 36,
- 4, 15, 16, 36, -1, 36, 26, 36, -1, 36,
- 26, 13, 14, 36, -1, 36, 26, 15, 16, 36,
- -1, 36, 27, 36, -1, 36, 27, 13, 14, 36,
- -1, 36, 27, 15, 16, 36, -1, 36, 28, 36,
- -1, 36, 28, 13, 14, 36, -1, 36, 28, 15,
- 16, 36, -1, 36, 5, 36, -1, 36, 5, 13,
- 14, 36, -1, 36, 5, 15, 16, 36, -1, 36,
- 6, 36, -1, 36, 6, 13, 14, 36, -1, 36,
- 6, 15, 16, 36, -1, 12, 13, 14, 36, -1,
- 12, 15, 16, 36, -1, 36, 29, 30, 36, -1,
- 36, 29, 30, 13, 14, 36, -1, 36, 29, 30,
- 15, 16, 36, -1, 36, 30, 30, 36, -1, 36,
- 30, 30, 13, 14, 36, -1, 36, 30, 30, 15,
- 16, 36, -1, 36, 17, 17, 36, -1, 36, 17,
- 17, 13, 14, 36, -1, 36, 17, 17, 15, 16,
- 36, -1, 36, 24, 24, 36, -1, 36, 24, 24,
- 13, 14, 36, -1, 36, 24, 24, 15, 16, 36,
- -1, 36, 5, 5, 36, -1, 36, 5, 5, 13,
- 14, 36, -1, 36, 5, 5, 15, 16, 36, -1,
- 36, 6, 6, 36, -1, 36, 6, 6, 13, 14,
- 36, -1, 36, 6, 6, 15, 16, 36, -1, 29,
- 36, -1, 29, 13, 14, 36, -1, 29, 15, 16,
- 36, -1, 36, -1, 35, -1
-};
-
-/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
-static const yytype_uint16 yyrline[] =
-{
- 0, 198, 198, 198, 200, 258, 270, 272, 274, 275,
- 276, 278, 279, 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, 358
-};
-#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", "LEXERLEAF", "'-'", "'>'", "'<'", "'('",
- "')'", "'\"'", "'''", "'$'", "'~'", "'1'", "'6'", "'3'", "'2'", "'&'",
- "'V'", "'?'", "'^'", "'@'", "'4'", "'5'", "'|'", "'+'", "'*'", "'/'",
- "'%'", "'!'", "'='", "$accept", "input", "optimization", "template",
- "expr3", "expr", "expr2", "replacement", 0
-};
-#endif
-
-# ifdef YYPRINT
-/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
- token YYLEX-NUM. */
-static const yytype_uint16 yytoknum[] =
-{
- 0, 256, 257, 258, 45, 62, 60, 40, 41, 34,
- 39, 36, 126, 49, 54, 51, 50, 38, 86, 63,
- 94, 64, 52, 53, 124, 43, 42, 47, 37, 33,
- 61
-};
-# endif
-
-/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
-static const yytype_uint8 yyr1[] =
-{
- 0, 31, 32, 32, 33, 33, 33, 34, 35, 35,
- 35, 36, 36, 37, 37, 37, 37, 37, 37, 37,
- 37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
- 37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
- 37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
- 37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
- 37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
- 37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
- 37, 37, 37, 37, 37, 37, 37, 37, 37, 38
-};
-
-/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
-static const yytype_uint8 yyr2[] =
-{
- 0, 2, 0, 2, 4, 4, 1, 1, 3, 3,
- 3, 1, 1, 3, 3, 5, 5, 4, 4, 4,
- 4, 4, 4, 4, 4, 4, 5, 5, 5, 5,
- 4, 5, 5, 5, 5, 3, 5, 5, 3, 5,
- 5, 3, 5, 5, 3, 5, 5, 3, 5, 5,
- 3, 5, 5, 3, 5, 5, 3, 5, 5, 3,
- 5, 5, 3, 5, 5, 4, 4, 4, 6, 6,
- 4, 6, 6, 4, 6, 6, 4, 6, 6, 4,
- 6, 6, 4, 6, 6, 2, 4, 4, 1, 1
-};
-
-/* 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, 1, 6, 0, 0, 0, 0, 3, 0,
- 7, 0, 12, 0, 0, 0, 0, 0, 0, 0,
- 11, 88, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 85, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 8,
- 9, 10, 0, 5, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 47, 0,
- 0, 0, 59, 0, 0, 0, 62, 13, 0, 0,
- 14, 0, 0, 0, 35, 0, 0, 41, 0, 0,
- 0, 38, 0, 0, 44, 0, 0, 50, 0, 0,
- 53, 0, 0, 56, 0, 0, 89, 4, 65, 66,
- 17, 18, 19, 20, 21, 22, 23, 24, 25, 0,
- 0, 30, 0, 0, 0, 0, 0, 0, 86, 87,
- 0, 0, 0, 0, 79, 0, 0, 0, 0, 82,
- 0, 0, 0, 0, 0, 0, 0, 0, 73, 0,
- 0, 0, 0, 0, 0, 76, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 67, 0, 0, 70,
- 27, 32, 26, 31, 28, 33, 29, 34, 48, 49,
- 0, 0, 60, 61, 0, 0, 63, 64, 15, 16,
- 36, 37, 0, 0, 42, 43, 39, 40, 0, 0,
- 45, 46, 51, 52, 54, 55, 57, 58, 0, 0,
- 0, 0, 80, 81, 83, 84, 74, 75, 77, 78,
- 68, 69, 71, 72
-};
-
-/* YYDEFGOTO[NTERM-NUM]. */
-static const yytype_int8 yydefgoto[] =
-{
- -1, 1, 8, 9, 20, 21, 22, 127
-};
-
-/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
- STATE-NUM. */
-#define YYPACT_NINF -20
-static const yytype_int16 yypact[] =
-{
- -20, 10, -20, -20, 1, 210, 210, 210, -20, 3,
- -20, 17, -20, -10, -2, 29, 63, 120, 192, 89,
- -20, 83, 31, 34, 46, 67, 65, 68, 74, 72,
- 77, 87, 81, 101, 102, 105, 106, 115, 25, 125,
- 134, 141, 116, 118, -20, 188, 70, 162, 15, 231,
- 54, 240, -1, 249, 258, 267, 276, 51, 109, -20,
- -20, -20, 107, -20, 15, 15, 15, 15, 15, 15,
- 15, 15, 15, 15, 15, 152, 132, 15, 153, 139,
- 156, 157, 160, 163, 15, 15, 164, 167, -20, 285,
- 166, 168, -20, 294, 173, 172, -20, -20, 175, 174,
- -20, 178, 180, 303, -20, 190, 186, -20, 202, 205,
- 312, -20, 204, 207, -20, 211, 208, -20, 212, 216,
- -20, 219, 220, -20, 321, 330, -20, -20, -20, -20,
- -20, -20, -20, -20, -20, -20, -20, -20, -20, 15,
- 15, -20, 15, 15, 15, 15, 15, 15, -20, -20,
- 15, 15, 221, 226, -20, 15, 15, 223, 229, -20,
- 15, 15, 15, 15, 15, 15, 234, 235, -20, 15,
- 15, 15, 15, 243, 238, -20, 15, 15, 15, 15,
- 15, 15, 15, 15, 246, 247, -20, 252, 253, -20,
- -20, -20, -20, -20, -20, -20, -20, -20, -20, -20,
- 15, 15, -20, -20, 15, 15, -20, -20, -20, -20,
- -20, -20, 15, 15, -20, -20, -20, -20, 15, 15,
- -20, -20, -20, -20, -20, -20, -20, -20, 15, 15,
- 15, 15, -20, -20, -20, -20, -20, -20, -20, -20,
- -20, -20, -20, -20
-};
-
-/* YYPGOTO[NTERM-NUM]. */
-static const yytype_int8 yypgoto[] =
-{
- -20, -20, -20, -20, 0, -19, 53, -20
-};
-
-/* 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[] =
-{
- 44, 10, 12, 27, 11, 28, 5, 25, 6, 7,
- 2, 29, 108, 30, 109, 3, 4, 5, 12, 6,
- 7, 26, 5, 110, 6, 7, 88, 92, 96, 97,
- 100, 104, 107, 111, 114, 117, 120, 123, 75, 59,
- 76, 77, 31, 60, 32, 128, 129, 130, 131, 132,
- 133, 134, 135, 136, 137, 138, 61, 12, 141, 23,
- 24, 5, 126, 6, 7, 148, 149, 101, 63, 102,
- 154, 103, 62, 12, 159, 89, 33, 5, 34, 6,
- 7, 124, 64, 90, 168, 91, 66, 45, 46, 47,
- 65, 175, 12, 67, 48, 49, 5, 69, 6, 7,
- 50, 68, 42, 51, 43, 186, 189, 52, 53, 54,
- 55, 56, 57, 58, 5, 70, 6, 7, 71, 72,
- 190, 191, 73, 192, 193, 194, 195, 196, 197, 74,
- 84, 198, 199, 35, 85, 36, 202, 203, 78, 125,
- 79, 206, 207, 208, 209, 210, 211, 80, 140, 81,
- 214, 215, 216, 217, 82, 143, 83, 220, 221, 222,
- 223, 224, 225, 226, 227, 12, 139, 142, 93, 5,
- 144, 6, 7, 145, 146, 94, 0, 95, 150, 147,
- 155, 232, 233, 151, 156, 234, 235, 160, 161, 162,
- 163, 12, 164, 236, 237, 5, 165, 6, 7, 238,
- 239, 86, 170, 87, 169, 37, 0, 38, 39, 240,
- 241, 242, 243, 12, 40, 41, 171, 5, 176, 6,
- 7, 172, 13, 177, 179, 178, 180, 14, 15, 16,
- 17, 18, 181, 182, 12, 200, 183, 204, 5, 19,
- 6, 7, 201, 12, 98, 205, 99, 5, 212, 6,
- 7, 213, 12, 105, 219, 106, 5, 218, 6, 7,
- 228, 12, 112, 229, 113, 5, 230, 6, 7, 231,
- 12, 115, 0, 116, 5, 0, 6, 7, 0, 12,
- 118, 0, 119, 5, 0, 6, 7, 0, 12, 121,
- 0, 122, 5, 0, 6, 7, 0, 12, 152, 0,
- 153, 5, 0, 6, 7, 0, 12, 157, 0, 158,
- 5, 0, 6, 7, 0, 12, 166, 0, 167, 5,
- 0, 6, 7, 0, 12, 173, 0, 174, 5, 0,
- 6, 7, 0, 12, 184, 0, 185, 5, 0, 6,
- 7, 0, 0, 187, 0, 188
-};
-
-static const yytype_int16 yycheck[] =
-{
- 19, 1, 3, 13, 3, 15, 7, 4, 9, 10,
- 0, 13, 13, 15, 15, 5, 6, 7, 3, 9,
- 10, 4, 7, 24, 9, 10, 45, 46, 47, 48,
- 49, 50, 51, 52, 53, 54, 55, 56, 13, 8,
- 15, 16, 13, 9, 15, 64, 65, 66, 67, 68,
- 69, 70, 71, 72, 73, 74, 10, 3, 77, 6,
- 7, 7, 62, 9, 10, 84, 85, 13, 3, 15,
- 89, 17, 5, 3, 93, 5, 13, 7, 15, 9,
- 10, 30, 14, 13, 103, 15, 14, 4, 5, 6,
- 16, 110, 3, 16, 11, 12, 7, 16, 9, 10,
- 17, 14, 13, 20, 15, 124, 125, 24, 25, 26,
- 27, 28, 29, 30, 7, 14, 9, 10, 16, 14,
- 139, 140, 16, 142, 143, 144, 145, 146, 147, 14,
- 14, 150, 151, 13, 16, 15, 155, 156, 13, 30,
- 15, 160, 161, 162, 163, 164, 165, 13, 16, 15,
- 169, 170, 171, 172, 13, 16, 15, 176, 177, 178,
- 179, 180, 181, 182, 183, 3, 14, 14, 6, 7,
- 14, 9, 10, 16, 14, 13, -1, 15, 14, 16,
- 14, 200, 201, 16, 16, 204, 205, 14, 16, 14,
- 16, 3, 14, 212, 213, 7, 16, 9, 10, 218,
- 219, 13, 16, 15, 14, 13, -1, 15, 16, 228,
- 229, 230, 231, 3, 22, 23, 14, 7, 14, 9,
- 10, 16, 12, 16, 16, 14, 14, 17, 18, 19,
- 20, 21, 16, 14, 3, 14, 16, 14, 7, 29,
- 9, 10, 16, 3, 13, 16, 15, 7, 14, 9,
- 10, 16, 3, 13, 16, 15, 7, 14, 9, 10,
- 14, 3, 13, 16, 15, 7, 14, 9, 10, 16,
- 3, 13, -1, 15, 7, -1, 9, 10, -1, 3,
- 13, -1, 15, 7, -1, 9, 10, -1, 3, 13,
- -1, 15, 7, -1, 9, 10, -1, 3, 13, -1,
- 15, 7, -1, 9, 10, -1, 3, 13, -1, 15,
- 7, -1, 9, 10, -1, 3, 13, -1, 15, 7,
- -1, 9, 10, -1, 3, 13, -1, 15, 7, -1,
- 9, 10, -1, 3, 13, -1, 15, 7, -1, 9,
- 10, -1, -1, 13, -1, 15
-};
-
-/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
- symbol of state STATE-NUM. */
-static const yytype_uint8 yystos[] =
-{
- 0, 32, 0, 5, 6, 7, 9, 10, 33, 34,
- 35, 3, 3, 12, 17, 18, 19, 20, 21, 29,
- 35, 36, 37, 37, 37, 4, 4, 13, 15, 13,
- 15, 13, 15, 13, 15, 13, 15, 13, 15, 16,
- 22, 23, 13, 15, 36, 4, 5, 6, 11, 12,
- 17, 20, 24, 25, 26, 27, 28, 29, 30, 8,
- 9, 10, 5, 3, 14, 16, 14, 16, 14, 16,
- 14, 16, 14, 16, 14, 13, 15, 16, 13, 15,
- 13, 15, 13, 15, 14, 16, 13, 15, 36, 5,
- 13, 15, 36, 6, 13, 15, 36, 36, 13, 15,
- 36, 13, 15, 17, 36, 13, 15, 36, 13, 15,
- 24, 36, 13, 15, 36, 13, 15, 36, 13, 15,
- 36, 13, 15, 36, 30, 30, 35, 38, 36, 36,
- 36, 36, 36, 36, 36, 36, 36, 36, 36, 14,
- 16, 36, 14, 16, 14, 16, 14, 16, 36, 36,
- 14, 16, 13, 15, 36, 14, 16, 13, 15, 36,
- 14, 16, 14, 16, 14, 16, 13, 15, 36, 14,
- 16, 14, 16, 13, 15, 36, 14, 16, 14, 16,
- 14, 16, 14, 16, 13, 15, 36, 13, 15, 36,
- 36, 36, 36, 36, 36, 36, 36, 36, 36, 36,
- 14, 16, 36, 36, 14, 16, 36, 36, 36, 36,
- 36, 36, 14, 16, 36, 36, 36, 36, 14, 16,
- 36, 36, 36, 36, 36, 36, 36, 36, 14, 16,
- 14, 16, 36, 36, 36, 36, 36, 36, 36, 36,
- 36, 36, 36, 36
-};
-
-#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
-
-
-/* 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
-# 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
-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 *bottom, yytype_int16 *top)
-#else
-static void
-yy_stack_print (bottom, top)
- yytype_int16 *bottom;
- yytype_int16 *top;
-#endif
-{
- YYFPRINTF (stderr, "Stack now");
- for (; bottom <= top; ++bottom)
- YYFPRINTF (stderr, " %d", *bottom);
- 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++)
- {
- fprintf (stderr, " $%d = ", yyi + 1);
- yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi],
- &(yyvsp[(yyi + 1) - (yynrhs)])
- );
- fprintf (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;
-#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;
- }
-}
-\f
-
-/* 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 look-ahead symbol. */
-int yychar;
-
-/* The semantic value of the look-ahead symbol. */
-YYSTYPE yylval;
-
-/* Number of syntax errors so far. */
-int yynerrs;
-
-
-
-/*----------.
-| yyparse. |
-`----------*/
-
-#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;
- int yyn;
- int yyresult;
- /* Number of tokens to shift before error messages enabled. */
- int yyerrstatus;
- /* Look-ahead token as an internal (translated) token number. */
- int yytoken = 0;
-#if YYERROR_VERBOSE
- /* Buffer for error messages, and its allocated size. */
- char yymsgbuf[128];
- char *yymsg = yymsgbuf;
- YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
-#endif
-
- /* Three stacks and their tools:
- `yyss': related to states,
- `yyvs': related to semantic values,
- `yyls': related to locations.
-
- Refer to the stacks thru separate pointers, to allow yyoverflow
- to reallocate them elsewhere. */
-
- /* The state stack. */
- yytype_int16 yyssa[YYINITDEPTH];
- yytype_int16 *yyss = yyssa;
- yytype_int16 *yyssp;
-
- /* The semantic value stack. */
- YYSTYPE yyvsa[YYINITDEPTH];
- YYSTYPE *yyvs = yyvsa;
- YYSTYPE *yyvsp;
-
-
-
-#define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N))
-
- YYSIZE_T yystacksize = YYINITDEPTH;
-
- /* The variables used to return semantic value and location from the
- action routines. */
- YYSTYPE yyval;
-
-
- /* The number of symbols on the RHS of the reduced rule.
- Keep to zero when no symbol should be popped. */
- int yylen = 0;
-
- 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);
- YYSTACK_RELOCATE (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));
-
- goto yybackup;
-
-/*-----------.
-| yybackup. |
-`-----------*/
-yybackup:
-
- /* Do appropriate processing given the current state. Read a
- look-ahead token if we need one and don't already have one. */
-
- /* First try to decide what to do without reference to look-ahead token. */
- yyn = yypact[yystate];
- if (yyn == YYPACT_NINF)
- goto yydefault;
-
- /* Not known => get a look-ahead token if don't already have one. */
-
- /* YYCHAR is either YYEMPTY or YYEOF or a valid look-ahead 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;
- }
-
- if (yyn == YYFINAL)
- YYACCEPT;
-
- /* Count tokens shifted since error; after three, turn off error
- status. */
- if (yyerrstatus)
- yyerrstatus--;
-
- /* Shift the look-ahead token. */
- YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
-
- /* Discard the shifted token unless it is eof. */
- if (yychar != YYEOF)
- 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 4:
-#line 201 "oil.y"
- {
- static YYSTYPE tempmem[10];
- static int replcount[10];
- /* Handle splitting the file. */
- if(splitcount) splitcount--;
- if(!splitcount && !inloop)
- {
- splitcount=SPLITMAX;
- splitend();
- ++filenumber;
- splitstart();
- }
- /* This is where we actually generate the optimizer code. */
- /* Tree-shape and is-constant conditions */
- printf(" checknodeactbits(np);\n");
- if(treeshapecond((yyvsp[(1) - (4)]),1)) printf(" if(1"); printf(")\n do\n {\n");
- /* Nodesame and cxdata conditions */
- {
- int i=10;
- YYSTYPE temp;
- while(--i)
- {
- temp=treenscheck((yyvsp[(1) - (4)]),0,i);
- if(temp)
- {
- printf(" x%d=np",i);
- gennodepath(temp->depth,temp->path);
- printf("->constant; c%d=np",i);
- gennodepath(temp->depth,temp->path);
- printf("->optdata;\n");
- }
- tempmem[i]=temp;
- replcount[i]=0; /* we need to zero this somewhere, may as well be here */
- }
- treecxcond((yyvsp[(1) - (4)]));
- }
- /* If we reach this point in the generated code, we have an optimizer
- template match. */
- printf(" OPTING(%s);\n",optname);
-
- /* We now need to replace np with its replacement. This is done by creating
- a new nodetree, copying across tempmem'd nodes where necessary, and then
- substituting one for the other. (This is an inefficient but general way
- to do this.) One special case is needed; because pointers into the root
- node need to continue pointing there, the temporary node tp is copied
- member-for-member and then freed again. To make coding optimizations
- easier, the root stays as the same width no matter what. */
- printf(" tp=newnode();\n");
- treerepcount((yyvsp[(4) - (4)]),replcount);
- treerepgen((yyvsp[(4) - (4)]),tempmem,replcount);
- printf(" nodefree(np->lval); nodefree(np->rval);\n");
- printf(" tempw=np->width; *np=*tp; np->width=tempw; free(tp);\n");
- printf(" } while(0);\n\n");
- /* Free the template and replacement now they're finished being used. */
- treefree((yyvsp[(1) - (4)]));
- treefree((yyvsp[(4) - (4)]));
-}
- break;
-
- case 5:
-#line 259 "oil.y"
- {
- if(!(yyvsp[(2) - (4)])->mustbemesh||!(yyvsp[(4) - (4)])->mustbemesh)
- {
- yyerror("syntax error in <#..#()->()> construct");
- free((yyvsp[(2) - (4)])); free((yyvsp[(4) - (4)]));
- YYERROR;
- }
- printf(" r=%luLU; while(r<=%luLU) {\n",(yyvsp[(2) - (4)])->c,(yyvsp[(4) - (4)])->c);
- free((yyvsp[(2) - (4)])); free((yyvsp[(4) - (4)]));
- inloop=1;
-}
- break;
-
- case 6:
-#line 270 "oil.y"
- {printf(" r++;\n }\n"); inloop=0;}
- break;
-
- case 8:
-#line 274 "oil.y"
- {(yyval)=(yyvsp[(2) - (3)]);}
- break;
-
- case 9:
-#line 275 "oil.y"
- {(yyval)=(yyvsp[(2) - (3)]);}
- break;
-
- case 10:
-#line 276 "oil.y"
- {(yyval)=(yyvsp[(2) - (3)]);}
- break;
-
- case 13:
-#line 281 "oil.y"
- {BINARYEXPR("MINGLE",(yyval),(yyvsp[(1) - (3)]),(yyvsp[(3) - (3)]),1);}
- break;
-
- case 14:
-#line 282 "oil.y"
- {BINARYEXPR("SELECT",(yyval),(yyvsp[(1) - (3)]),(yyvsp[(3) - (3)]),1);}
- break;
-
- case 15:
-#line 283 "oil.y"
- {BINARYEXPR("SELECT",(yyval),(yyvsp[(1) - (5)]),(yyvsp[(5) - (5)]),0);}
- break;
-
- case 16:
-#line 284 "oil.y"
- {BINARYEXPR("SELECT",(yyval),(yyvsp[(1) - (5)]),(yyvsp[(5) - (5)]),1);}
- break;
-
- case 17:
-#line 285 "oil.y"
- {UNARYEXPR("AND",(yyval),(yyvsp[(4) - (4)]),0,1);}
- break;
-
- case 18:
-#line 286 "oil.y"
- {UNARYEXPR("AND",(yyval),(yyvsp[(4) - (4)]),1,1);}
- break;
-
- case 19:
-#line 287 "oil.y"
- {UNARYEXPR("OR",(yyval),(yyvsp[(4) - (4)]),0,1);}
- break;
-
- case 20:
-#line 288 "oil.y"
- {UNARYEXPR("OR",(yyval),(yyvsp[(4) - (4)]),1,1);}
- break;
-
- case 21:
-#line 289 "oil.y"
- {UNARYEXPR("XOR",(yyval),(yyvsp[(4) - (4)]),0,1);}
- break;
-
- case 22:
-#line 290 "oil.y"
- {UNARYEXPR("XOR",(yyval),(yyvsp[(4) - (4)]),1,1);}
- break;
-
- case 23:
-#line 291 "oil.y"
- {UNARYEXPR("FIN",(yyval),(yyvsp[(4) - (4)]),0,1);}
- break;
-
- case 24:
-#line 292 "oil.y"
- {UNARYEXPR("FIN",(yyval),(yyvsp[(4) - (4)]),1,1);}
- break;
-
- case 25:
-#line 293 "oil.y"
- {UNARYEXPR("WHIRL",(yyval),(yyvsp[(4) - (4)]),0,1);}
- break;
-
- case 26:
-#line 294 "oil.y"
- {UNARYEXPR("WHIRL2",(yyval),(yyvsp[(5) - (5)]),0,1);}
- break;
-
- case 27:
-#line 295 "oil.y"
- {UNARYEXPR("WHIRL3",(yyval),(yyvsp[(5) - (5)]),0,1);}
- break;
-
- case 28:
-#line 296 "oil.y"
- {UNARYEXPR("WHIRL4",(yyval),(yyvsp[(5) - (5)]),0,1);}
- break;
-
- case 29:
-#line 297 "oil.y"
- {UNARYEXPR("WHIRL5",(yyval),(yyvsp[(5) - (5)]),0,1);}
- break;
-
- case 30:
-#line 298 "oil.y"
- {UNARYEXPR("WHIRL",(yyval),(yyvsp[(4) - (4)]),1,1);}
- break;
-
- case 31:
-#line 299 "oil.y"
- {UNARYEXPR("WHIRL2",(yyval),(yyvsp[(5) - (5)]),1,1);}
- break;
-
- case 32:
-#line 300 "oil.y"
- {UNARYEXPR("WHIRL3",(yyval),(yyvsp[(5) - (5)]),1,1);}
- break;
-
- case 33:
-#line 301 "oil.y"
- {UNARYEXPR("WHIRL4",(yyval),(yyvsp[(5) - (5)]),1,1);}
- break;
-
- case 34:
-#line 302 "oil.y"
- {UNARYEXPR("WHIRL5",(yyval),(yyvsp[(5) - (5)]),1,1);}
- break;
-
- case 35:
-#line 303 "oil.y"
- {BINARYEXPR("C_AND",(yyval),(yyvsp[(1) - (3)]),(yyvsp[(3) - (3)]),1);}
- break;
-
- case 36:
-#line 304 "oil.y"
- {BINARYEXPR("C_AND",(yyval),(yyvsp[(1) - (5)]),(yyvsp[(5) - (5)]),0);}
- break;
-
- case 37:
-#line 305 "oil.y"
- {BINARYEXPR("C_AND",(yyval),(yyvsp[(1) - (5)]),(yyvsp[(5) - (5)]),1);}
- break;
-
- case 38:
-#line 306 "oil.y"
- {BINARYEXPR("C_OR",(yyval),(yyvsp[(1) - (3)]),(yyvsp[(3) - (3)]),1);}
- break;
-
- case 39:
-#line 307 "oil.y"
- {BINARYEXPR("C_OR",(yyval),(yyvsp[(1) - (5)]),(yyvsp[(5) - (5)]),0);}
- break;
-
- case 40:
-#line 308 "oil.y"
- {BINARYEXPR("C_OR",(yyval),(yyvsp[(1) - (5)]),(yyvsp[(5) - (5)]),1);}
- break;
-
- case 41:
-#line 309 "oil.y"
- {BINARYEXPR("C_XOR",(yyval),(yyvsp[(1) - (3)]),(yyvsp[(3) - (3)]),1);}
- break;
-
- case 42:
-#line 310 "oil.y"
- {BINARYEXPR("C_XOR",(yyval),(yyvsp[(1) - (5)]),(yyvsp[(5) - (5)]),0);}
- break;
-
- case 43:
-#line 311 "oil.y"
- {BINARYEXPR("C_XOR",(yyval),(yyvsp[(1) - (5)]),(yyvsp[(5) - (5)]),1);}
- break;
-
- case 44:
-#line 312 "oil.y"
- {BINARYEXPR("C_PLUS",(yyval),(yyvsp[(1) - (3)]),(yyvsp[(3) - (3)]),1);}
- break;
-
- case 45:
-#line 313 "oil.y"
- {BINARYEXPR("C_PLUS",(yyval),(yyvsp[(1) - (5)]),(yyvsp[(5) - (5)]),0);}
- break;
-
- case 46:
-#line 314 "oil.y"
- {BINARYEXPR("C_PLUS",(yyval),(yyvsp[(1) - (5)]),(yyvsp[(5) - (5)]),1);}
- break;
-
- case 47:
-#line 315 "oil.y"
- {BINARYEXPR("C_MINUS",(yyval),(yyvsp[(1) - (3)]),(yyvsp[(3) - (3)]),1);}
- break;
-
- case 48:
-#line 316 "oil.y"
- {BINARYEXPR("C_MINUS",(yyval),(yyvsp[(1) - (5)]),(yyvsp[(5) - (5)]),0);}
- break;
-
- case 49:
-#line 317 "oil.y"
- {BINARYEXPR("C_MINUS",(yyval),(yyvsp[(1) - (5)]),(yyvsp[(5) - (5)]),1);}
- break;
-
- case 50:
-#line 318 "oil.y"
- {BINARYEXPR("C_TIMES",(yyval),(yyvsp[(1) - (3)]),(yyvsp[(3) - (3)]),1);}
- break;
-
- case 51:
-#line 319 "oil.y"
- {BINARYEXPR("C_TIMES",(yyval),(yyvsp[(1) - (5)]),(yyvsp[(5) - (5)]),0);}
- break;
-
- case 52:
-#line 320 "oil.y"
- {BINARYEXPR("C_TIMES",(yyval),(yyvsp[(1) - (5)]),(yyvsp[(5) - (5)]),1);}
- break;
-
- case 53:
-#line 321 "oil.y"
- {BINARYEXPR("C_DIVIDEBY",(yyval),(yyvsp[(1) - (3)]),(yyvsp[(3) - (3)]),1);}
- break;
-
- case 54:
-#line 322 "oil.y"
- {BINARYEXPR("C_DIVIDEBY",(yyval),(yyvsp[(1) - (5)]),(yyvsp[(5) - (5)]),0);}
- break;
-
- case 55:
-#line 323 "oil.y"
- {BINARYEXPR("C_DIVIDEBY",(yyval),(yyvsp[(1) - (5)]),(yyvsp[(5) - (5)]),1);}
- break;
-
- case 56:
-#line 324 "oil.y"
- {BINARYEXPR("C_MODULUS",(yyval),(yyvsp[(1) - (3)]),(yyvsp[(3) - (3)]),1);}
- break;
-
- case 57:
-#line 325 "oil.y"
- {BINARYEXPR("C_MODULUS",(yyval),(yyvsp[(1) - (5)]),(yyvsp[(5) - (5)]),0);}
- break;
-
- case 58:
-#line 326 "oil.y"
- {BINARYEXPR("C_MODULUS",(yyval),(yyvsp[(1) - (5)]),(yyvsp[(5) - (5)]),1);}
- break;
-
- case 59:
-#line 327 "oil.y"
- {BINARYEXPR("C_GREATER",(yyval),(yyvsp[(1) - (3)]),(yyvsp[(3) - (3)]),1);}
- break;
-
- case 60:
-#line 328 "oil.y"
- {BINARYEXPR("C_GREATER",(yyval),(yyvsp[(1) - (5)]),(yyvsp[(5) - (5)]),0);}
- break;
-
- case 61:
-#line 329 "oil.y"
- {BINARYEXPR("C_GREATER",(yyval),(yyvsp[(1) - (5)]),(yyvsp[(5) - (5)]),1);}
- break;
-
- case 62:
-#line 330 "oil.y"
- {BINARYEXPR("C_LESS",(yyval),(yyvsp[(1) - (3)]),(yyvsp[(3) - (3)]),1);}
- break;
-
- case 63:
-#line 331 "oil.y"
- {BINARYEXPR("C_LESS",(yyval),(yyvsp[(1) - (5)]),(yyvsp[(5) - (5)]),0);}
- break;
-
- case 64:
-#line 332 "oil.y"
- {BINARYEXPR("C_LESS",(yyval),(yyvsp[(1) - (5)]),(yyvsp[(5) - (5)]),1);}
- break;
-
- case 65:
-#line 333 "oil.y"
- {UNARYEXPR("C_NOT",(yyval),(yyvsp[(4) - (4)]),0,1);}
- break;
-
- case 66:
-#line 334 "oil.y"
- {UNARYEXPR("C_NOT",(yyval),(yyvsp[(4) - (4)]),1,1);}
- break;
-
- case 67:
-#line 335 "oil.y"
- {BINARYEXPR("C_NOTEQUAL",(yyval),(yyvsp[(1) - (4)]),(yyvsp[(4) - (4)]),0);}
- break;
-
- case 68:
-#line 336 "oil.y"
- {BINARYEXPR("C_NOTEQUAL",(yyval),(yyvsp[(1) - (6)]),(yyvsp[(6) - (6)]),0);}
- break;
-
- case 69:
-#line 337 "oil.y"
- {BINARYEXPR("C_NOTEQUAL",(yyval),(yyvsp[(1) - (6)]),(yyvsp[(6) - (6)]),1);}
- break;
-
- case 70:
-#line 338 "oil.y"
- {BINARYEXPR("C_ISEQUAL",(yyval),(yyvsp[(1) - (4)]),(yyvsp[(4) - (4)]),0);}
- break;
-
- case 71:
-#line 339 "oil.y"
- {BINARYEXPR("C_ISEQUAL",(yyval),(yyvsp[(1) - (6)]),(yyvsp[(6) - (6)]),0);}
- break;
-
- case 72:
-#line 340 "oil.y"
- {BINARYEXPR("C_ISEQUAL",(yyval),(yyvsp[(1) - (6)]),(yyvsp[(6) - (6)]),1);}
- break;
-
- case 73:
-#line 341 "oil.y"
- {BINARYEXPR("C_LOGICALAND",(yyval),(yyvsp[(1) - (4)]),(yyvsp[(4) - (4)]),0);}
- break;
-
- case 74:
-#line 342 "oil.y"
- {BINARYEXPR("C_LOGICALAND",(yyval),(yyvsp[(1) - (6)]),(yyvsp[(6) - (6)]),0);}
- break;
-
- case 75:
-#line 343 "oil.y"
- {BINARYEXPR("C_LOGICALAND",(yyval),(yyvsp[(1) - (6)]),(yyvsp[(6) - (6)]),1);}
- break;
-
- case 76:
-#line 344 "oil.y"
- {BINARYEXPR("C_LOGICALOR",(yyval),(yyvsp[(1) - (4)]),(yyvsp[(4) - (4)]),0);}
- break;
-
- case 77:
-#line 345 "oil.y"
- {BINARYEXPR("C_LOGICALOR",(yyval),(yyvsp[(1) - (6)]),(yyvsp[(6) - (6)]),0);}
- break;
-
- case 78:
-#line 346 "oil.y"
- {BINARYEXPR("C_LOGICALOR",(yyval),(yyvsp[(1) - (6)]),(yyvsp[(6) - (6)]),1);}
- break;
-
- case 79:
-#line 347 "oil.y"
- {BINARYEXPR("C_RSHIFTBY",(yyval),(yyvsp[(1) - (4)]),(yyvsp[(4) - (4)]),1);}
- break;
-
- case 80:
-#line 348 "oil.y"
- {BINARYEXPR("C_RSHIFTBY",(yyval),(yyvsp[(1) - (6)]),(yyvsp[(6) - (6)]),0);}
- break;
-
- case 81:
-#line 349 "oil.y"
- {BINARYEXPR("C_RSHIFTBY",(yyval),(yyvsp[(1) - (6)]),(yyvsp[(6) - (6)]),1);}
- break;
-
- case 82:
-#line 350 "oil.y"
- {BINARYEXPR("C_LSHIFTBY",(yyval),(yyvsp[(1) - (4)]),(yyvsp[(4) - (4)]),1);}
- break;
-
- case 83:
-#line 351 "oil.y"
- {BINARYEXPR("C_LSHIFTBY",(yyval),(yyvsp[(1) - (6)]),(yyvsp[(6) - (6)]),0);}
- break;
-
- case 84:
-#line 352 "oil.y"
- {BINARYEXPR("C_LSHIFTBY",(yyval),(yyvsp[(1) - (6)]),(yyvsp[(6) - (6)]),1);}
- break;
-
- case 85:
-#line 353 "oil.y"
- {UNARYEXPR("C_LOGICALNOT",(yyval),(yyvsp[(2) - (2)]),0,0);}
- break;
-
- case 86:
-#line 354 "oil.y"
- {UNARYEXPR("C_LOGICALNOT",(yyval),(yyvsp[(4) - (4)]),0,0);}
- break;
-
- case 87:
-#line 355 "oil.y"
- {UNARYEXPR("C_LOGICALNOT",(yyval),(yyvsp[(4) - (4)]),1,0);}
- break;
-
-
-/* Line 1267 of yacc.c. */
-#line 2127 "oil-oil.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 look-ahead 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 look-ahead 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);
- }
-
- if (yyn == YYFINAL)
- YYACCEPT;
-
- *++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;
-
-#ifndef yyoverflow
-/*-------------------------------------------------.
-| yyexhaustedlab -- memory exhaustion comes here. |
-`-------------------------------------------------*/
-yyexhaustedlab:
- yyerror (YY_("memory exhausted"));
- yyresult = 2;
- /* Fall through. */
-#endif
-
-yyreturn:
- if (yychar != YYEOF && 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 360 "oil.y"
-
-
-#define MAXTOFREE 1000
-
-char* tofree[MAXTOFREE]={0};
-int tfi=0;
-
-int yylex(void)
-{
- int c;
- unsigned long acc;
-
- /* Whitespace is completely insignificant here, even inside && and other
- two-character operators. Just to be different, though, it /is/ significant
- inside constructs like .1 and #{1}2; in such cases, it isn't allowed. */
- c=countgetchar();
- while(isspace(c)) c=countgetchar();
- while(c==';'||c=='[')
- {
- /* Comments go from a semicolon/hybrid to the end of the line. */
- if(c==';')
- {
- c=countgetchar();
- while(c!='\n') c=countgetchar();
- while(isspace(c)) c=countgetchar();
- }
- /* Square brackets set the name for optimizations. */
- if(c=='[')
- {
- int i=0;
- c=countgetchar();
- while(c!=']')
- {
- optname[i++]=c;
- c=countgetchar();
- if(i==MAXOPTNAMELEN-1) {i=0; yyerror("optimization name too long");}
- }
- optname[i]=0;
- c=countgetchar();
- while(isspace(c)) c=countgetchar();
- }
- }
- if(c==EOF) return 0;
- switch(c)
- {
- case '#':
- c=countgetchar();
- if(c!='{')
- {
- acc=0;
- while(isdigit(c))
- {
- acc*=10;
- acc+=(c-'0');
- c=countgetchar();
- }
- yylval=malloc(sizeof(struct ickstype));
- yylval->depth=0;
- yylval->path=0;
- yylval->condition="->constant==";
- yylval->nodetypename=0;
- yylval->usec=1;
- yylval->mustbemesh=1;
- yylval->cxneeded=0;
- yylval->c=acc;
- yylval->replnum=0;
- yylval->n1=0;
- yylval->n2=0;
- yylval->ublo=0;
- yylval->width32=1; /* generate MESH32 not MESH; we can still AND16 it,
- etc., if necessary */
- countungetc(c, stdin);
- return LEXERLEAF;
- }
- countungetc(c, stdin);
- c='#';
- /* fall through */
- case '_':
- case ':':
- case '.':
- yylval=malloc(sizeof(struct ickstype));
- yylval->depth=0;
- yylval->path=0;
- yylval->condition=0; /* _ or # */
- yylval->width32=1; /* should never matter, but you never
- know... */
- yylval->ublo=0;
- if(c==':') yylval->condition="->width==32";
- if(c=='.') {yylval->condition="->width==16"; yylval->width32=0;}
- yylval->nodetypename=0;
- yylval->usec=0;
- yylval->mustbemesh=c=='#';
- yylval->cxneeded=0;
- c=countgetchar();
- if(c=='{')
- {
- /* Create a new node to hold the c/x condition */
- yylval->n1=malloc(sizeof(struct ickstype));
- yylval->n1->depth=0;
- yylval->n1->path=0;
- {
- static char buf[512];
- int bi=0;
- c=countgetchar();
- while(c!='}')
- {
- buf[bi++]=c;
- if(bi==511) {yyerror("{quoted} string too long"); bi=0;}
- c=countgetchar();
- }
- buf[bi]=0;
- yylval->n1->condition=tofree[tfi++]=strdup(buf);
- if(tfi==MAXTOFREE) {yyerror("Too many {quoted} strings"); tfi--;}
- c=countgetchar();
- }
- yylval->n1->nodetypename=0;
- yylval->n1->usec=0;
- yylval->n1->mustbemesh=0;
- yylval->n1->cxneeded=1;
- yylval->n1->n1=0;
- yylval->n1->n2=0;
- yylval->n1->width32=yylval->width32;
- yylval->n1->ublo=0;
- }
- else yylval->n1=0;
- yylval->replnum=0;
- if(yylval->n1) yylval->n1->replnum=c-'0'; else yylval->replnum=c-'0';
- yylval->n2=0;
- return LEXERLEAF;
- default:
- return c;
- }
-}
-
-void treedepthup(YYSTYPE v, mybool i)
-{
- if(!v) return;
- treedepthup(v->n1,i);
- treedepthup(v->n2,i);
- v->depth++;
- v->path<<=1;
- v->path|=i;
- if(v->depth>30) yyerror("Nesting too deep in template or replacement\n");
-}
-
-void treefree(YYSTYPE v)
-{
- if(!v) return;
- treefree(v->n1);
- treefree(v->n2);
- free(v);
-}
-
-void gennodepath(unsigned depth, unsigned long path)
-{
- while(depth--)
- {
- if(path&1) printf("->rval"); else printf("->lval");
- path>>=1;
- }
-}
-
-mybool treeshapecond(YYSTYPE v, mybool firstopt)
-{
- if(!v) return firstopt;
- /* To prevent possibly dereferencing a null pointer, check the root ick_first */
- if(v->mustbemesh) /* it's a must-be-constant constraint */
- {
- printf(firstopt?" if((np":" &&\n (np");
- gennodepath(v->depth,v->path);
- printf("->opcode==MESH || np");
- gennodepath(v->depth,v->path);
- printf("->opcode==MESH32)");
- firstopt=0;
- }
- if(v->condition&&!v->cxneeded) /* it's a tree-shape constraint */
- {
- printf(firstopt?" if(np":" &&\n np");
- gennodepath(v->depth,v->path);
- printf("%s",v->condition);
- if(v->usec) printf("%luLU",v->c);
- firstopt=0;
- }
- if(v->ublo) /* generate a width check */
- {
- printf(firstopt?" if(np":" &&\n np");
- gennodepath(v->depth,v->path);
- printf("->width==%d",v->width32?32:16);
- firstopt=0;
- }
- firstopt=treeshapecond(v->n1,firstopt);
- return treeshapecond(v->n2,firstopt);
-}
-
-YYSTYPE treenscheck(YYSTYPE v, YYSTYPE prev, int replnum)
-{
- if(!v) return prev;
- prev=treenscheck(v->n1,prev,replnum);
- prev=treenscheck(v->n2,prev,replnum);
- if(v->replnum!=replnum) return prev;
- if(prev)
- {
- printf(" if(!nodessame(np");
- gennodepath(prev->depth,prev->path);
- printf(",np");
- gennodepath(v->depth,v->path);
- printf(")) break;\n");
- }
- return v;
-}
-
-void treecxcond(YYSTYPE v)
-{
- if(!v) return;
- if(v->cxneeded&&strcmp(v->condition,"1"))
- {
- if(v->replnum)
- printf(" x=x%d; c=c%d; ",v->replnum,v->replnum);
- else
- {
- printf(" x=np");
- gennodepath(v->depth,v->path);
- printf("->constant;\n c=np");
- gennodepath(v->depth,v->path);
- printf("->optdata;\n ");
- }
- printf("if(!(%s)) break;\n",v->condition);
- }
- treecxcond(v->n1);
- treecxcond(v->n2);
-}
-
-void treerepcount(YYSTYPE v, int* rc)
-{
- if(!v) return;
- if(!(v->nodetypename)&&v->replnum&&!(v->cxneeded)) rc[v->replnum]++;
- treerepcount(v->n1, rc);
- treerepcount(v->n2, rc);
-}
-
-void treerepgen(YYSTYPE v, YYSTYPE* refs, int* rc)
-{
- if(!v) return;
- /* We absolutely have to generate the root node ick_first here, because otherwise
- the nodes in question won't exist. */
- if(v->nodetypename) /* Generate an intermediate node */
- {
- printf(" MAYBENEWNODE(tp");
- gennodepath(v->depth,v->path);
- printf(");\n tp");
- gennodepath(v->depth,v->path);
- printf("->opcode=%s;\n tp",v->nodetypename);
- gennodepath(v->depth,v->path);
- printf("->width=%d;\n",v->width32?32:16);
- /* optdata will be filled in by checknodeactbits before the ick_next idiom is
- tested; constant is irrelevant, lval and rval are NULL at present and
- will be filled in by later recursions of this function, and I seriously
- hope that nextslat is never filled in by an optimizer idiom. */
- }
- else if(v->replnum&&!(v->cxneeded))
- {
- /* Copy a node from the template. The node ought not to be allocated at
- this point, so we can safely just ick_assign to it with a new malloced
- node. */
- if(refs[v->replnum])
- {
- if(rc[v->replnum]>1||!refs[v->replnum]->depth)
- {
- /* The node actually has to be copied, either because another copy is
- needed or because it's np itself that's being copied over. */
- rc[v->replnum]--;
- printf(" tp");
- gennodepath(v->depth,v->path);
- printf("=nodecopy(np");
- gennodepath(refs[v->replnum]->depth,refs[v->replnum]->path);
- printf(");\n");
- }
- else
- {
- /* This can be optimized slightly by moving rather than copying,
- zeroing backlinks so that the node won't be freed. */
- rc[v->replnum]--;
- printf(" tp");
- gennodepath(v->depth,v->path);
- printf("=np");
- gennodepath(refs[v->replnum]->depth,refs[v->replnum]->path);
- printf(";\n np");
- gennodepath(refs[v->replnum]->depth,refs[v->replnum]->path);
- printf("=0;\n");
- }
- }
- else yyerror("Replacement isn't in the template");
- }
- else if(v->cxneeded)
- {
- /* Generate a constant node based on an expression (#{expr}0). */
- printf(" MAYBENEWNODE(tp");
- gennodepath(v->depth,v->path);
- printf(");\n tp");
- gennodepath(v->depth,v->path);
- printf("->opcode=MESH32;\n tp");
- gennodepath(v->depth,v->path);
- printf("->width=32;\n tp");
- gennodepath(v->depth,v->path);
- printf("->constant=(%s);\n",v->condition);
- }
- else if(v->mustbemesh&&!v->n1)
- {
- /* Generate a constant node based on a constant (#65535). */
- printf(" MAYBENEWNODE(tp");
- gennodepath(v->depth,v->path);
- printf(");\n tp");
- gennodepath(v->depth,v->path);
- printf("->opcode=MESH32;\n tp");
- gennodepath(v->depth,v->path);
- printf("->width=32;\n tp");
- gennodepath(v->depth,v->path);
- printf("->constant=(%luLU);\n",v->c);
- }
- else if(v->mustbemesh&&v->n1)
- /* let this node's n1 handle it */ ;
- else
- yyerror("can't figure out how to generate a replacement node\n");
- treerepgen(v->n1,refs,rc);
- treerepgen(v->n2,refs,rc);
-}
-
-int yyerror(char const *s)
-{
- fprintf(stderr,"Error at (%d:%d): \"%s\"\n",cgcrow,cgccol,s);
- return 0; /* this return value is ignored anyway */
-}
-
-static int cgcpushback=0;
-
-int countgetchar(void)
-{
- int c=getchar();
- if(cgcpushback) {cgcpushback=0; return c;}
- cgccol++;
- if(c=='\n') {cgccol=0; cgcrow++;}
- return c;
-}
-
-int countungetc(int c, FILE* f)
-{
- ungetc(c,f);
- cgcpushback=1;
- return c;
-}
-
-void splitstart(void)
-{
- static char fname[]="oilout00.c";
- if(filenumber>255)
- {
- filenumber=255;
- fprintf(stdout,"Input file too long.\n");
- }
- sprintf(fname,"oilout%02x.c",filenumber);
- freopen(fname,"w",stdout);
- puts("/* Automatically generated output, edit source and recompile to "
- "change */");
- printf("#include \"oil.h\"\n"
- "int optimize_pass1_%x(node *np)\n"
- "{"
- " int opted=0;\n"
- " unsigned long c,c1,c2,c3,c4,c5,c6,c7,c8,c9;\n"
- " unsigned long x,x1,x2,x3,x4,x5,x6,x7,x8,x9,r;\n"
- " int tempw;\n"
- " node *tp;\n", filenumber);
-}
-
-void splitend(void)
-{
- /* Disabling warnings about unused variables. gcc will optimize this right
- out, and in any case the raise(SIGSEGV) will be unreachable (but will
- cause a pretty recognizable error because it'll be caught by the handler
- for SIGSEGV and output an internal error, with an obvious debug backtrace
- if -U is used). */
- printf(" c=c1=c2=c3=c4=c5=c6=c7=c8=c9=0;\n"
- " x=x1=x2=x3=x4=x5=x6=x7=x8=x9=r=0;\n"
- " if(c+c1+c2+c3+c4+c5+c6+c7+c8+c9+r+\n"
- " x+x1+x2+x3+x4+x5+x6+x7+x8+x9) raise(SIGSEGV);\n");
- printf(" return opted;\n}\n");
- fclose(stdout);
-}
-
-int main(void)
-{
- int e,i;
- /*
- " if(!np) return 0;\n"
- " if(np->lval) opted|=optimize_pass1(np->lval);\n"
- " if(np->rval) opted|=optimize_pass1(np->rval);\n"
- */
- splitstart();
- cgccol=0;
- cgcrow=1;
- e=yyparse();
- while(tfi--) free(tofree[tfi]);
- splitend();
- freopen("oilout-m.c","w",stdout);
- puts("/* Automatically generated output, edit source and recompile to "
- "change */");
- puts("#include \"ick.h\"");
- i=filenumber+1;
- while(i--) printf("extern int optimize_pass1_%x(node*);\n",i);
- puts("int optimize_pass1(node* np)\n"
- "{\n"
- " int opted=0;\n"
- " if(!np) return 0;\n"
- " if(np->lval) opted|=optimize_pass1(np->lval);\n"
- " if(np->rval) opted|=optimize_pass1(np->rval);");
- i=filenumber+1;
- while(i--) printf(" opted|=optimize_pass1_%x(np);\n",i);
- puts(" return opted;\n"
- "}");
- return e;
-}
-
+++ /dev/null
-/* A Bison parser, made by GNU Bison 2.3. */
-
-/* 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 2, 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, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA. */
-
-/* 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.3"
-
-/* Skeleton name. */
-#define YYSKELETON_NAME "yacc.c"
-
-/* Pure parsers. */
-#define YYPURE 0
-
-/* Using locations. */
-#define YYLSP_NEEDED 0
-
-
-
-/* Tokens. */
-#ifndef YYTOKENTYPE
-# define YYTOKENTYPE
- /* Put the tokens into the symbol table, so that GDB and other debuggers
- know about them. */
- enum yytokentype {
- UNKNOWN = 258,
- GETS = 259,
- RESIZE = 260,
- NEXT = 261,
- GO_AHEAD = 262,
- GO_BACK = 263,
- FORGET = 264,
- RESUME = 265,
- STASH = 266,
- RETRIEVE = 267,
- IGNORE = 268,
- REMEMBER = 269,
- ABSTAIN = 270,
- REINSTATE = 271,
- DISABLE = 272,
- ENABLE = 273,
- MANYFROM = 274,
- GIVE_UP = 275,
- READ_OUT = 276,
- WRITE_IN = 277,
- PIN = 278,
- COME_FROM = 279,
- NEXTFROMLABEL = 280,
- NEXTFROMEXPR = 281,
- NEXTFROMGERUND = 282,
- COMPUCOME = 283,
- GERUCOME = 284,
- PREPROC = 285,
- WHILE = 286,
- TRY_AGAIN = 287,
- CREATE = 288,
- COMPUCREATE = 289,
- FROM = 290,
- MAYBE = 291,
- DO = 292,
- PLEASE = 293,
- NOT = 294,
- ONCE = 295,
- AGAIN = 296,
- MESH = 297,
- NOSPOT = 298,
- ick_ONESPOT = 299,
- ick_TWOSPOT = 300,
- ick_TAIL = 301,
- ick_HYBRID = 302,
- MINGLE = 303,
- SELECT = 304,
- UNKNOWNOP = 305,
- SUB = 306,
- BY = 307,
- SLAT = 308,
- BACKSLAT = 309,
- NUMBER = 310,
- UNARY = 311,
- OHOHSEVEN = 312,
- GERUND = 313,
- LABEL = 314,
- BADCHAR = 315,
- INTERSECTION = 316,
- SPLATTERED = 317,
- MESH32 = 318,
- C_AND = 319,
- C_OR = 320,
- C_XOR = 321,
- C_NOT = 322,
- C_LOGICALNOT = 323,
- C_LSHIFTBY = 324,
- C_RSHIFTBY = 325,
- C_NOTEQUAL = 326,
- C_A = 327,
- C_PLUS = 328,
- C_MINUS = 329,
- C_TIMES = 330,
- C_DIVIDEBY = 331,
- C_MODULUS = 332,
- C_GREATER = 333,
- C_LESS = 334,
- C_ISEQUAL = 335,
- C_LOGICALAND = 336,
- C_LOGICALOR = 337,
- AND = 338,
- OR = 339,
- XOR = 340,
- FIN = 341,
- WHIRL = 342,
- WHIRL2 = 343,
- WHIRL3 = 344,
- WHIRL4 = 345,
- WHIRL5 = 346,
- REV_AND = 347,
- REV_OR = 348,
- REV_XOR = 349,
- REV_FIN = 350,
- REV_WHIRL = 351,
- REV_WHIRL2 = 352,
- REV_WHIRL3 = 353,
- REV_WHIRL4 = 354,
- REV_WHIRL5 = 355,
- UNKNOWNID = 356,
- US_ID = 357,
- US_SCALAR = 358,
- US_ARRVAR = 359,
- US_ELEM = 360,
- US_EXPR = 361,
- CLOSESPARK = 362,
- CLOSEEARS = 363,
- OPENSPARK = 364,
- OPENEARS = 365,
- HIGHPREC = 366,
- UNARYPREC = 367,
- LOWPREC = 368
- };
-#endif
-/* Tokens. */
-#define UNKNOWN 258
-#define GETS 259
-#define RESIZE 260
-#define NEXT 261
-#define GO_AHEAD 262
-#define GO_BACK 263
-#define FORGET 264
-#define RESUME 265
-#define STASH 266
-#define RETRIEVE 267
-#define IGNORE 268
-#define REMEMBER 269
-#define ABSTAIN 270
-#define REINSTATE 271
-#define DISABLE 272
-#define ENABLE 273
-#define MANYFROM 274
-#define GIVE_UP 275
-#define READ_OUT 276
-#define WRITE_IN 277
-#define PIN 278
-#define COME_FROM 279
-#define NEXTFROMLABEL 280
-#define NEXTFROMEXPR 281
-#define NEXTFROMGERUND 282
-#define COMPUCOME 283
-#define GERUCOME 284
-#define PREPROC 285
-#define WHILE 286
-#define TRY_AGAIN 287
-#define CREATE 288
-#define COMPUCREATE 289
-#define FROM 290
-#define MAYBE 291
-#define DO 292
-#define PLEASE 293
-#define NOT 294
-#define ONCE 295
-#define AGAIN 296
-#define MESH 297
-#define NOSPOT 298
-#define ick_ONESPOT 299
-#define ick_TWOSPOT 300
-#define ick_TAIL 301
-#define ick_HYBRID 302
-#define MINGLE 303
-#define SELECT 304
-#define UNKNOWNOP 305
-#define SUB 306
-#define BY 307
-#define SLAT 308
-#define BACKSLAT 309
-#define NUMBER 310
-#define UNARY 311
-#define OHOHSEVEN 312
-#define GERUND 313
-#define LABEL 314
-#define BADCHAR 315
-#define INTERSECTION 316
-#define SPLATTERED 317
-#define MESH32 318
-#define C_AND 319
-#define C_OR 320
-#define C_XOR 321
-#define C_NOT 322
-#define C_LOGICALNOT 323
-#define C_LSHIFTBY 324
-#define C_RSHIFTBY 325
-#define C_NOTEQUAL 326
-#define C_A 327
-#define C_PLUS 328
-#define C_MINUS 329
-#define C_TIMES 330
-#define C_DIVIDEBY 331
-#define C_MODULUS 332
-#define C_GREATER 333
-#define C_LESS 334
-#define C_ISEQUAL 335
-#define C_LOGICALAND 336
-#define C_LOGICALOR 337
-#define AND 338
-#define OR 339
-#define XOR 340
-#define FIN 341
-#define WHIRL 342
-#define WHIRL2 343
-#define WHIRL3 344
-#define WHIRL4 345
-#define WHIRL5 346
-#define REV_AND 347
-#define REV_OR 348
-#define REV_XOR 349
-#define REV_FIN 350
-#define REV_WHIRL 351
-#define REV_WHIRL2 352
-#define REV_WHIRL3 353
-#define REV_WHIRL4 354
-#define REV_WHIRL5 355
-#define UNKNOWNID 356
-#define US_ID 357
-#define US_SCALAR 358
-#define US_ARRVAR 359
-#define US_ELEM 360
-#define US_EXPR 361
-#define CLOSESPARK 362
-#define CLOSEEARS 363
-#define OPENSPARK 364
-#define OPENEARS 365
-#define HIGHPREC 366
-#define UNARYPREC 367
-#define LOWPREC 368
-
-
-
-
-/* Copy the first part of user declarations. */
-#line 30 "parser.y"
-
-#include "config.h"
-#include <stdio.h>
-#include <stdlib.h>
-#include "sizes.h"
-#include "ick.h"
-#include "feh.h"
-#include "ick_lose.h"
-
-extern int yyerror(const char*);
-
-/* Intervene our ick_first-stage lexer. */
-extern int lexer(void);
-#define yylex() lexer()
-
-static node *rlist; /* pointer to current right-hand node list */
-/*static node *llist;*/ /* pointer to current left-hand node list */
-static node *np; /* variable for building node lists */
-
-extern int stbeginline; /* line number of last seen preamble */
-static int thisline; /* line number of beginning of current statement */
-
-extern int mark112; /* AIS: Mark the tuple for W112 when it's created. */
-static int lineuid=65537; /* AIS: a line number not used anywhere else */
-static int cacsofar=0; /* AIS: Number of args in a CREATE statement */
-
-static tuple *splat(int);
-
-static tuple *prevtuple = NULL;
-
-#define GETLINENO \
- {if (stbeginline < 0) thisline = -stbeginline; \
- else {thisline = stbeginline; stbeginline = 0;}}
-
-#define ACTION(x, nt, nn) \
- {x = newtuple(); x->type = nt; x->ick_lineno = thisline; x->u.node = nn;}
-#define TARGET(x, nt, nn) \
- {x = newtuple(); x->type = nt; x->ick_lineno = thisline; x->u.target = nn;}
-#define ACTARGET(x, nt, nn, nn2)\
- {x = newtuple(); x->type = nt; x->ick_lineno = thisline;\
- x->u.node = nn; x->u.target = nn2;}
-/* AIS : The macro above was added for ABSTAIN expr FROM. */
-#define NEWFANGLED mark112 = 1; /* AIS: Added the mention of mark112 */ \
- if (ick_traditional) ick_lose(IE111,iyylineno,(char*)NULL); else
-
-#define DESTACKSE1 sparkearsstack[sparkearslev--/32] >>= 1
-#define DESTACKSPARKEARS DESTACKSE1; DESTACKSE1
-
-
-
-/* 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
-
-#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
-typedef union YYSTYPE
-#line 83 "parser.y"
-{
- int numval; /* a numeric value */
- tuple *tuple; /* a code tuple */
- node *node; /* an expression-tree node */
-}
-/* Line 187 of yacc.c. */
-#line 378 "parser.c"
- YYSTYPE;
-# define yystype YYSTYPE /* obsolescent; will be withdrawn */
-# define YYSTYPE_IS_DECLARED 1
-# define YYSTYPE_IS_TRIVIAL 1
-#endif
-
-
-
-/* Copy the second part of user declarations. */
-
-
-/* Line 216 of yacc.c. */
-#line 391 "parser.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 i)
-#else
-static int
-YYID (i)
- int i;
-#endif
-{
- return i;
-}
-#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;
- YYSTYPE yyvs;
- };
-
-/* 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) \
- do \
- { \
- YYSIZE_T yynewbytes; \
- YYCOPY (&yyptr->Stack, Stack, yysize); \
- Stack = &yyptr->Stack; \
- yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
- yyptr += yynewbytes / sizeof (*yyptr); \
- } \
- while (YYID (0))
-
-#endif
-
-/* YYFINAL -- State number of the termination state. */
-#define YYFINAL 2
-/* YYLAST -- Last index in YYTABLE. */
-#define YYLAST 670
-
-/* YYNTOKENS -- Number of terminals. */
-#define YYNTOKENS 114
-/* YYNNTS -- Number of nonterminals. */
-#define YYNNTS 43
-/* YYNRULES -- Number of rules. */
-#define YYNRULES 145
-/* YYNRULES -- Number of states. */
-#define YYNSTATES 230
-
-/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
-#define YYUNDEFTOK 2
-#define YYMAXUTOK 368
-
-#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,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 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
-};
-
-#if YYDEBUG
-/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
- YYRHS. */
-static const yytype_uint16 yyprhs[] =
-{
- 0, 0, 3, 4, 7, 10, 14, 18, 23, 25,
- 27, 30, 33, 35, 39, 41, 44, 46, 49, 53,
- 57, 61, 64, 67, 70, 73, 76, 79, 82, 86,
- 90, 95, 100, 103, 106, 109, 112, 115, 117, 119,
- 121, 123, 125, 128, 131, 133, 136, 139, 142, 146,
- 149, 153, 155, 157, 159, 161, 164, 166, 168, 171,
- 173, 176, 178, 180, 182, 184, 186, 188, 192, 194,
- 196, 198, 200, 203, 206, 209, 212, 215, 219, 223,
- 226, 228, 232, 234, 236, 238, 242, 244, 246, 248,
- 250, 252, 256, 258, 262, 264, 266, 270, 274, 277,
- 280, 282, 284, 286, 288, 292, 296, 298, 300, 304,
- 308, 312, 316, 318, 320, 322, 324, 328, 332, 336,
- 340, 342, 346, 350, 354, 358, 360, 362, 364, 366,
- 368, 370, 374, 379, 384, 388, 392, 394, 396, 398,
- 401, 403, 406, 408, 410, 412
-};
-
-/* YYRHS -- A `-1'-separated list of the rules' RHS. */
-static const yytype_int16 yyrhs[] =
-{
- 115, 0, -1, -1, 115, 116, -1, 119, 117, -1,
- 119, 57, 117, -1, 59, 119, 117, -1, 59, 119,
- 57, 117, -1, 1, -1, 118, -1, 118, 40, -1,
- 118, 41, -1, 120, -1, 120, 31, 120, -1, 37,
- -1, 37, 39, -1, 36, -1, 36, 39, -1, 128,
- 4, 147, -1, 131, 4, 139, -1, 148, 4, 147,
- -1, 59, 6, -1, 9, 147, -1, 10, 147, -1,
- 11, 134, -1, 12, 134, -1, 13, 134, -1, 14,
- 134, -1, 15, 35, 59, -1, 15, 35, 126, -1,
- 15, 147, 35, 59, -1, 15, 147, 35, 126, -1,
- 16, 59, -1, 16, 126, -1, 22, 136, -1, 21,
- 138, -1, 23, 129, -1, 20, -1, 7, -1, 8,
- -1, 32, -1, 24, -1, 28, 126, -1, 28, 147,
- -1, 25, -1, 26, 126, -1, 26, 147, -1, 33,
- 121, -1, 34, 147, 122, -1, 33, 146, -1, 34,
- 154, 146, -1, 121, -1, 60, -1, 1, -1, 124,
- -1, 123, 124, -1, 123, -1, 125, -1, 125, 121,
- -1, 125, -1, 121, 125, -1, 140, -1, 130, -1,
- 148, -1, 131, -1, 101, -1, 58, -1, 126, 61,
- 58, -1, 130, -1, 131, -1, 130, -1, 140, -1,
- 45, 55, -1, 44, 55, -1, 45, 55, -1, 46,
- 55, -1, 47, 55, -1, 46, 56, 55, -1, 47,
- 56, 55, -1, 42, 55, -1, 127, -1, 134, 61,
- 127, -1, 130, -1, 140, -1, 131, -1, 135, 61,
- 136, -1, 135, -1, 130, -1, 140, -1, 133, -1,
- 131, -1, 137, 61, 138, -1, 137, -1, 147, 52,
- 139, -1, 147, -1, 141, -1, 131, 51, 142, -1,
- 131, 51, 143, -1, 154, 142, -1, 154, 143, -1,
- 141, -1, 145, -1, 154, -1, 145, -1, 132, 51,
- 142, -1, 132, 51, 143, -1, 60, -1, 154, -1,
- 154, 49, 147, -1, 154, 48, 147, -1, 154, 146,
- 147, -1, 130, 53, 147, -1, 140, -1, 144, -1,
- 153, -1, 144, -1, 154, 49, 147, -1, 154, 48,
- 147, -1, 154, 146, 147, -1, 130, 53, 147, -1,
- 152, -1, 152, 49, 147, -1, 152, 48, 147, -1,
- 152, 146, 147, -1, 130, 53, 147, -1, 140, -1,
- 144, -1, 42, -1, 44, -1, 45, -1, 133, -1,
- 150, 56, 55, -1, 155, 56, 147, 107, -1, 156,
- 56, 147, 108, -1, 155, 149, 107, -1, 156, 149,
- 108, -1, 151, -1, 130, -1, 151, -1, 56, 154,
- -1, 152, -1, 56, 154, -1, 109, -1, 107, -1,
- 110, -1, 108, -1
-};
-
-/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
-static const yytype_uint16 yyrline[] =
-{
- 0, 168, 168, 169, 181, 183, 185, 187, 189, 204,
- 206, 209, 226, 227, 266, 267, 268, 269, 273, 274,
- 275, 279, 280, 281, 282, 283, 284, 285, 286, 287,
- 288, 289, 291, 292, 293, 294, 295, 296, 297, 298,
- 299, 300, 301, 304, 307, 309, 312, 315, 316, 319,
- 321, 325, 327, 328, 333, 334, 336, 339, 340, 342,
- 343, 348, 355, 362, 369, 372, 376, 378, 387, 387,
- 389, 389, 391, 397, 403, 411, 417, 427, 435, 446,
- 461, 462, 468, 468, 468, 469, 470, 475, 475, 475,
- 475, 476, 477, 483, 484, 488, 489, 491, 493, 494,
- 496, 497, 498, 502, 503, 506, 511, 516, 519, 520,
- 521, 532, 537, 538, 542, 543, 544, 545, 546, 556,
- 564, 565, 566, 567, 577, 582, 583, 587, 587, 587,
- 592, 594, 616, 623, 632, 633, 636, 637, 640, 641,
- 651, 652, 656, 657, 660, 661
-};
-#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", "UNKNOWN", "GETS", "RESIZE", "NEXT",
- "GO_AHEAD", "GO_BACK", "FORGET", "RESUME", "STASH", "RETRIEVE", "IGNORE",
- "REMEMBER", "ABSTAIN", "REINSTATE", "DISABLE", "ENABLE", "MANYFROM",
- "GIVE_UP", "READ_OUT", "WRITE_IN", "PIN", "COME_FROM", "NEXTFROMLABEL",
- "NEXTFROMEXPR", "NEXTFROMGERUND", "COMPUCOME", "GERUCOME", "PREPROC",
- "WHILE", "TRY_AGAIN", "CREATE", "COMPUCREATE", "FROM", "MAYBE", "DO",
- "PLEASE", "NOT", "ONCE", "AGAIN", "MESH", "NOSPOT", "ick_ONESPOT",
- "ick_TWOSPOT", "ick_TAIL", "ick_HYBRID", "MINGLE", "SELECT", "UNKNOWNOP",
- "SUB", "BY", "SLAT", "BACKSLAT", "NUMBER", "UNARY", "OHOHSEVEN",
- "GERUND", "LABEL", "BADCHAR", "INTERSECTION", "SPLATTERED", "MESH32",
- "C_AND", "C_OR", "C_XOR", "C_NOT", "C_LOGICALNOT", "C_LSHIFTBY",
- "C_RSHIFTBY", "C_NOTEQUAL", "C_A", "C_PLUS", "C_MINUS", "C_TIMES",
- "C_DIVIDEBY", "C_MODULUS", "C_GREATER", "C_LESS", "C_ISEQUAL",
- "C_LOGICALAND", "C_LOGICALOR", "AND", "OR", "XOR", "FIN", "WHIRL",
- "WHIRL2", "WHIRL3", "WHIRL4", "WHIRL5", "REV_AND", "REV_OR", "REV_XOR",
- "REV_FIN", "REV_WHIRL", "REV_WHIRL2", "REV_WHIRL3", "REV_WHIRL4",
- "REV_WHIRL5", "UNKNOWNID", "US_ID", "US_SCALAR", "US_ARRVAR", "US_ELEM",
- "US_EXPR", "CLOSESPARK", "CLOSEEARS", "OPENSPARK", "OPENEARS",
- "HIGHPREC", "UNARYPREC", "LOWPREC", "$accept", "program", "command",
- "mtperform", "preproc", "please", "perform", "unknownstatement",
- "unknownsif", "unknownsin", "unknownatom", "unknownaid", "gerunds",
- "variable", "lvalue", "scalar2s", "scalar", "ick_array", "oparray",
- "constant", "varlist", "initem", "inlist", "outitem", "outlist",
- "byexpr", "subscr", "subscr1", "sublist", "sublist1", "osubscr",
- "osubscr1", "unop", "expr", "notanlvalue", "limexpr", "preftype",
- "lunambig", "limunambig", "nlunambig", "unambig", "eitherspark",
- "eitherears", 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, 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
-};
-# endif
-
-/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
-static const yytype_uint8 yyr1[] =
-{
- 0, 114, 115, 115, 116, 116, 116, 116, 116, 117,
- 117, 117, 118, 118, 119, 119, 119, 119, 120, 120,
- 120, 120, 120, 120, 120, 120, 120, 120, 120, 120,
- 120, 120, 120, 120, 120, 120, 120, 120, 120, 120,
- 120, 120, 120, 120, 120, 120, 120, 120, 120, 120,
- 120, 120, 120, 120, 121, 121, 121, 122, 122, 123,
- 123, 124, 124, 124, 124, 125, 126, 126, 127, 127,
- 128, 128, 129, 130, 130, 131, 131, 132, 132, 133,
- 134, 134, 135, 135, 135, 136, 136, 137, 137, 137,
- 137, 138, 138, 139, 139, 140, 140, 141, 142, 142,
- 143, 143, 143, 144, 144, 145, 146, 147, 147, 147,
- 147, 147, 147, 147, 148, 148, 148, 148, 148, 148,
- 149, 149, 149, 149, 149, 149, 149, 150, 150, 150,
- 151, 151, 151, 151, 151, 151, 152, 152, 153, 153,
- 154, 154, 155, 155, 156, 156
-};
-
-/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
-static const yytype_uint8 yyr2[] =
-{
- 0, 2, 0, 2, 2, 3, 3, 4, 1, 1,
- 2, 2, 1, 3, 1, 2, 1, 2, 3, 3,
- 3, 2, 2, 2, 2, 2, 2, 2, 3, 3,
- 4, 4, 2, 2, 2, 2, 2, 1, 1, 1,
- 1, 1, 2, 2, 1, 2, 2, 2, 3, 2,
- 3, 1, 1, 1, 1, 2, 1, 1, 2, 1,
- 2, 1, 1, 1, 1, 1, 1, 3, 1, 1,
- 1, 1, 2, 2, 2, 2, 2, 3, 3, 2,
- 1, 3, 1, 1, 1, 3, 1, 1, 1, 1,
- 1, 3, 1, 3, 1, 1, 3, 3, 2, 2,
- 1, 1, 1, 1, 3, 3, 1, 1, 3, 3,
- 3, 3, 1, 1, 1, 1, 3, 3, 3, 3,
- 1, 3, 3, 3, 3, 1, 1, 1, 1, 1,
- 1, 3, 4, 4, 3, 3, 1, 1, 1, 2,
- 1, 2, 1, 1, 1, 1
-};
-
-/* 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, 1, 8, 16, 14, 0, 3, 0, 17,
- 15, 0, 53, 38, 39, 0, 0, 0, 0, 0,
- 0, 0, 0, 37, 0, 0, 0, 41, 44, 0,
- 0, 40, 0, 0, 127, 128, 129, 0, 0, 0,
- 0, 0, 52, 65, 143, 145, 142, 144, 4, 9,
- 12, 51, 56, 54, 59, 0, 62, 64, 0, 130,
- 61, 95, 115, 103, 63, 0, 138, 140, 114, 0,
- 0, 0, 0, 6, 0, 137, 0, 112, 113, 22,
- 136, 107, 23, 0, 0, 0, 0, 80, 68, 69,
- 24, 25, 26, 27, 0, 0, 66, 32, 33, 0,
- 87, 90, 89, 92, 35, 88, 82, 84, 86, 34,
- 83, 0, 36, 45, 46, 42, 43, 106, 47, 62,
- 64, 61, 49, 63, 0, 107, 79, 73, 74, 75,
- 0, 76, 0, 137, 139, 5, 21, 10, 11, 0,
- 60, 55, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 137, 125, 126, 0, 120, 0, 0,
- 7, 141, 0, 0, 0, 0, 0, 28, 29, 0,
- 0, 0, 0, 72, 48, 57, 50, 77, 78, 13,
- 18, 119, 19, 94, 0, 0, 100, 96, 97, 101,
- 102, 104, 105, 20, 131, 117, 116, 118, 0, 0,
- 134, 0, 0, 0, 0, 135, 111, 109, 108, 110,
- 81, 30, 31, 67, 91, 85, 58, 0, 0, 0,
- 98, 99, 132, 124, 122, 121, 123, 133, 93, 102
-};
-
-/* YYDEFGOTO[NTERM-NUM]. */
-static const yytype_int16 yydefgoto[] =
-{
- -1, 1, 7, 48, 49, 8, 50, 51, 174, 52,
- 53, 54, 98, 87, 55, 112, 75, 76, 58, 59,
- 90, 108, 109, 103, 104, 182, 77, 61, 187, 188,
- 78, 63, 122, 183, 64, 156, 65, 80, 67, 68,
- 81, 70, 71
-};
-
-/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
- STATE-NUM. */
-#define YYPACT_NINF -140
-static const yytype_int16 yypact[] =
-{
- -140, 129, -140, -140, -31, -25, 6, -140, 290, -140,
- -140, 362, -140, -140, -140, 438, 438, 248, 248, 248,
- 248, 152, 102, -140, 207, 248, -27, -140, -140, 457,
- 457, -140, 451, 438, -34, -32, -29, 84, 128, -17,
- 432, 24, -140, -140, -140, -140, -140, -140, -140, 149,
- 5, -51, 478, -140, -140, 48, 165, 9, 14, -140,
- 66, -140, -140, -140, 69, 33, 8, -140, -140, 74,
- 547, 553, 432, -140, -17, 41, 49, -140, -140, -140,
- -140, 94, -140, -32, -29, 43, 53, -140, -140, -140,
- 52, 52, 52, 52, 162, 83, -140, -140, 55, -34,
- -140, 49, -140, 59, -140, -140, -140, 49, 67, -140,
- -140, 77, -140, 55, -140, 55, -140, -140, -51, -15,
- 49, -140, -140, -140, -51, 94, -140, -140, -140, -140,
- 89, -140, 91, -140, 157, -140, -140, -140, -140, 432,
- -140, -140, 438, 438, 438, 438, 438, 438, 95, 438,
- 438, 438, 438, 71, -140, -140, 45, 167, 438, 28,
- -140, -140, 438, 438, 438, 438, 248, -140, 55, 176,
- 99, 207, 248, -140, -140, 472, 438, -140, -140, -140,
- -140, -140, -140, 110, 125, 130, -140, -140, -140, -140,
- 560, -140, -140, -140, -140, -140, -140, -140, 78, 438,
- -140, 438, 438, 438, 104, -140, -140, -140, -140, -140,
- -140, -140, 55, -140, -140, -140, -51, 438, 438, 438,
- -140, -140, -140, -140, -140, -140, -140, -140, -140, -140
-};
-
-/* YYPGOTO[NTERM-NUM]. */
-static const yytype_int16 yypgoto[] =
-{
- -140, -140, -140, -5, -140, 185, 64, -28, -140, -140,
- 155, -46, -10, 70, -140, -140, -8, 29, -63, -23,
- 57, -140, 37, -140, 85, 38, 101, -41, -139, -131,
- 218, -39, -40, 81, -30, 192, -140, 63, 171, -140,
- 47, -140, -140
-};
-
-/* 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 -142
-static const yytype_int16 yytable[] =
-{
- 56, 102, 123, 56, 118, 140, 73, 191, 9, 88,
- 88, 88, 88, 144, 10, 192, 100, 106, 111, 113,
- 115, 126, 123, 127, 119, 34, 128, 35, 36, 151,
- 136, 133, 56, -137, -137, 135, 139, 57, 143, 74,
- 57, 165, 4, 5, 119, -137, 89, 89, 89, 89,
- 43, 220, 142, 101, 107, 69, -136, -136, 69, 221,
- 145, 120, 153, 153, 56, 146, 133, 160, -136, 57,
- -71, 66, 140, 147, 66, 91, 92, 93, 175, 69,
- 125, 120, 185, 185, 168, 176, 134, 69, 192, 148,
- 44, 45, 46, 47, 162, 66, 79, 82, 129, 69,
- 145, 57, 95, 66, 186, 186, 189, 189, 131, 60,
- 114, 116, 60, 166, 124, 66, 170, 203, 169, 69,
- 171, 161, 149, 150, 199, 105, 110, 185, 172, 2,
- 3, 56, 173, 121, 117, 66, 205, 133, 133, 129,
- 130, 60, 163, 164, 177, 123, 178, 216, 102, 186,
- 194, 189, 200, 121, 117, 185, 185, 213, 88, 212,
- 96, 97, 217, 100, 106, 4, 5, 119, 57, -70,
- 140, 154, 154, 60, 184, 184, 218, 186, 186, 189,
- 189, 219, 133, 131, 132, 222, 69, 94, 6, 137,
- 138, 11, 190, 190, 34, 89, 35, 36, 37, 38,
- 101, 107, 66, 179, 120, -141, -141, 141, 74, 215,
- 133, 133, 227, -137, -137, 201, 202, -141, 143, 184,
- 96, 167, 69, 180, 181, -137, 62, 117, 193, 62,
- 195, 196, 197, 198, 96, 211, 210, 190, 66, 204,
- 60, 157, 157, 206, 207, 208, 209, 184, 184, 99,
- 62, 83, 84, 85, 86, 228, 214, 209, 62, 44,
- 45, 46, 47, 159, 0, 229, 229, 0, 0, 0,
- 62, 0, 105, 110, 0, 0, 121, 0, 0, 0,
- 223, 0, 224, 225, 226, 0, 0, 0, 155, 155,
- 62, 12, 83, 84, 85, 86, 0, 13, 14, 15,
- 16, 17, 18, 19, 20, 21, 22, 0, 0, 0,
- 23, 24, 25, 26, 27, 28, 29, 0, 30, 0,
- 0, 0, 31, 32, 33, 0, 0, 0, 0, 0,
- 0, 0, 34, 0, 35, 36, 37, 38, 0, 0,
- 0, 0, 0, 0, 0, 0, 39, 40, 0, 41,
- 42, 0, 0, 0, 0, 0, 0, 62, 0, 0,
- 0, 0, 0, 12, 0, 0, 0, 0, 0, 13,
- 14, 15, 16, 17, 18, 19, 20, 21, 22, 0,
- 0, 0, 23, 24, 25, 26, 27, 28, 29, 0,
- 30, 43, 0, 62, 31, 32, 33, 44, 45, 46,
- 47, 0, 0, 0, 34, 0, 35, 36, 37, 38,
- 0, 0, 0, 0, 0, 0, 0, 0, 39, 72,
- 0, 41, 42, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 12, 0, 0, 0, 0, 0, 13,
- 14, 15, 16, 17, 18, 19, 20, 21, 22, 0,
- 0, 0, 23, 24, 25, 26, 27, 28, 29, 0,
- 30, 0, 0, 43, 31, 32, 33, 0, 0, 44,
- 45, 46, 47, 0, 34, 0, 35, 36, 37, 38,
- 34, 0, 35, 36, 37, 38, 0, 0, 39, 0,
- 0, 41, 42, 34, 74, 35, 36, 37, 38, 34,
- 0, 35, 36, 37, 38, 0, 0, 39, 0, 0,
- 0, 117, 0, 74, 34, 96, 35, 36, 37, 38,
- 34, 0, 35, 36, 37, 38, 0, 0, 39, 0,
- 0, 0, 0, 43, 39, 0, 0, 0, 0, 44,
- 45, 46, 47, 0, 0, 44, 45, 46, 47, 0,
- 0, 0, 43, 0, 0, 0, 0, 0, 44, 45,
- 46, 47, 0, 0, 44, 45, 46, 47, 0, 0,
- 0, 0, 0, 43, 0, 0, 0, 0, 0, 44,
- 45, 46, 47, 0, 0, 44, 45, 46, 47, 34,
- 0, 35, 36, 37, 38, 34, 0, 35, 36, 37,
- 38, 0, 34, 152, 35, 36, 37, 38, 0, 158,
- 0, 0, 0, 0, 0, 0, 74, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 44, 45, 46, 47, 0, 0,
- 44, 45, 46, 47, 0, 0, 0, 0, 0, 46,
- 47
-};
-
-static const yytype_int16 yycheck[] =
-{
- 8, 24, 32, 11, 32, 51, 11, 146, 39, 17,
- 18, 19, 20, 4, 39, 146, 24, 25, 45, 29,
- 30, 55, 52, 55, 32, 42, 55, 44, 45, 69,
- 6, 39, 40, 48, 49, 40, 31, 8, 53, 56,
- 11, 81, 36, 37, 52, 60, 17, 18, 19, 20,
- 101, 190, 4, 24, 25, 8, 48, 49, 11, 190,
- 51, 32, 70, 71, 72, 51, 74, 72, 60, 40,
- 4, 8, 118, 4, 11, 18, 19, 20, 124, 32,
- 33, 52, 145, 146, 94, 125, 39, 40, 219, 56,
- 107, 108, 109, 110, 53, 32, 15, 16, 55, 52,
- 51, 72, 21, 40, 145, 146, 145, 146, 55, 8,
- 29, 30, 11, 61, 33, 52, 61, 157, 35, 72,
- 61, 74, 48, 49, 53, 24, 25, 190, 61, 0,
- 1, 139, 55, 32, 60, 72, 108, 145, 146, 55,
- 56, 40, 48, 49, 55, 175, 55, 175, 171, 190,
- 55, 190, 107, 52, 60, 218, 219, 58, 166, 169,
- 58, 59, 52, 171, 172, 36, 37, 175, 139, 4,
- 216, 70, 71, 72, 145, 146, 51, 218, 219, 218,
- 219, 51, 190, 55, 56, 107, 139, 35, 59, 40,
- 41, 6, 145, 146, 42, 166, 44, 45, 46, 47,
- 171, 172, 139, 139, 175, 48, 49, 52, 56, 172,
- 218, 219, 108, 48, 49, 48, 49, 60, 53, 190,
- 58, 59, 175, 142, 143, 60, 8, 60, 147, 11,
- 149, 150, 151, 152, 58, 59, 166, 190, 175, 158,
- 139, 70, 71, 162, 163, 164, 165, 218, 219, 42,
- 32, 44, 45, 46, 47, 217, 171, 176, 40, 107,
- 108, 109, 110, 71, -1, 218, 219, -1, -1, -1,
- 52, -1, 171, 172, -1, -1, 175, -1, -1, -1,
- 199, -1, 201, 202, 203, -1, -1, -1, 70, 71,
- 72, 1, 44, 45, 46, 47, -1, 7, 8, 9,
- 10, 11, 12, 13, 14, 15, 16, -1, -1, -1,
- 20, 21, 22, 23, 24, 25, 26, -1, 28, -1,
- -1, -1, 32, 33, 34, -1, -1, -1, -1, -1,
- -1, -1, 42, -1, 44, 45, 46, 47, -1, -1,
- -1, -1, -1, -1, -1, -1, 56, 57, -1, 59,
- 60, -1, -1, -1, -1, -1, -1, 139, -1, -1,
- -1, -1, -1, 1, -1, -1, -1, -1, -1, 7,
- 8, 9, 10, 11, 12, 13, 14, 15, 16, -1,
- -1, -1, 20, 21, 22, 23, 24, 25, 26, -1,
- 28, 101, -1, 175, 32, 33, 34, 107, 108, 109,
- 110, -1, -1, -1, 42, -1, 44, 45, 46, 47,
- -1, -1, -1, -1, -1, -1, -1, -1, 56, 57,
- -1, 59, 60, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, 1, -1, -1, -1, -1, -1, 7,
- 8, 9, 10, 11, 12, 13, 14, 15, 16, -1,
- -1, -1, 20, 21, 22, 23, 24, 25, 26, -1,
- 28, -1, -1, 101, 32, 33, 34, -1, -1, 107,
- 108, 109, 110, -1, 42, -1, 44, 45, 46, 47,
- 42, -1, 44, 45, 46, 47, -1, -1, 56, -1,
- -1, 59, 60, 42, 56, 44, 45, 46, 47, 42,
- -1, 44, 45, 46, 47, -1, -1, 56, -1, -1,
- -1, 60, -1, 56, 42, 58, 44, 45, 46, 47,
- 42, -1, 44, 45, 46, 47, -1, -1, 56, -1,
- -1, -1, -1, 101, 56, -1, -1, -1, -1, 107,
- 108, 109, 110, -1, -1, 107, 108, 109, 110, -1,
- -1, -1, 101, -1, -1, -1, -1, -1, 107, 108,
- 109, 110, -1, -1, 107, 108, 109, 110, -1, -1,
- -1, -1, -1, 101, -1, -1, -1, -1, -1, 107,
- 108, 109, 110, -1, -1, 107, 108, 109, 110, 42,
- -1, 44, 45, 46, 47, 42, -1, 44, 45, 46,
- 47, -1, 42, 56, 44, 45, 46, 47, -1, 56,
- -1, -1, -1, -1, -1, -1, 56, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, 107, 108, 109, 110, -1, -1,
- 107, 108, 109, 110, -1, -1, -1, -1, -1, 109,
- 110
-};
-
-/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
- symbol of state STATE-NUM. */
-static const yytype_uint8 yystos[] =
-{
- 0, 115, 0, 1, 36, 37, 59, 116, 119, 39,
- 39, 119, 1, 7, 8, 9, 10, 11, 12, 13,
- 14, 15, 16, 20, 21, 22, 23, 24, 25, 26,
- 28, 32, 33, 34, 42, 44, 45, 46, 47, 56,
- 57, 59, 60, 101, 107, 108, 109, 110, 117, 118,
- 120, 121, 123, 124, 125, 128, 130, 131, 132, 133,
- 140, 141, 144, 145, 148, 150, 151, 152, 153, 154,
- 155, 156, 57, 117, 56, 130, 131, 140, 144, 147,
- 151, 154, 147, 44, 45, 46, 47, 127, 130, 131,
- 134, 134, 134, 134, 35, 147, 58, 59, 126, 42,
- 130, 131, 133, 137, 138, 140, 130, 131, 135, 136,
- 140, 45, 129, 126, 147, 126, 147, 60, 121, 130,
- 131, 140, 146, 148, 147, 154, 55, 55, 55, 55,
- 56, 55, 56, 130, 154, 117, 6, 40, 41, 31,
- 125, 124, 4, 53, 4, 51, 51, 4, 56, 48,
- 49, 146, 56, 130, 140, 144, 149, 152, 56, 149,
- 117, 154, 53, 48, 49, 146, 61, 59, 126, 35,
- 61, 61, 61, 55, 122, 125, 146, 55, 55, 120,
- 147, 147, 139, 147, 131, 132, 141, 142, 143, 145,
- 154, 142, 143, 147, 55, 147, 147, 147, 147, 53,
- 107, 48, 49, 146, 147, 108, 147, 147, 147, 147,
- 127, 59, 126, 58, 138, 136, 121, 52, 51, 51,
- 142, 143, 107, 147, 147, 147, 147, 108, 139, 154
-};
-
-#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
-
-
-/* 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
-# 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
-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 *bottom, yytype_int16 *top)
-#else
-static void
-yy_stack_print (bottom, top)
- yytype_int16 *bottom;
- yytype_int16 *top;
-#endif
-{
- YYFPRINTF (stderr, "Stack now");
- for (; bottom <= top; ++bottom)
- YYFPRINTF (stderr, " %d", *bottom);
- 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++)
- {
- fprintf (stderr, " $%d = ", yyi + 1);
- yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi],
- &(yyvsp[(yyi + 1) - (yynrhs)])
- );
- fprintf (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;
-#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;
- }
-}
-\f
-
-/* 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 look-ahead symbol. */
-int yychar;
-
-/* The semantic value of the look-ahead symbol. */
-YYSTYPE yylval;
-
-/* Number of syntax errors so far. */
-int yynerrs;
-
-
-
-/*----------.
-| yyparse. |
-`----------*/
-
-#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;
- int yyn;
- int yyresult;
- /* Number of tokens to shift before error messages enabled. */
- int yyerrstatus;
- /* Look-ahead token as an internal (translated) token number. */
- int yytoken = 0;
-#if YYERROR_VERBOSE
- /* Buffer for error messages, and its allocated size. */
- char yymsgbuf[128];
- char *yymsg = yymsgbuf;
- YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
-#endif
-
- /* Three stacks and their tools:
- `yyss': related to states,
- `yyvs': related to semantic values,
- `yyls': related to locations.
-
- Refer to the stacks thru separate pointers, to allow yyoverflow
- to reallocate them elsewhere. */
-
- /* The state stack. */
- yytype_int16 yyssa[YYINITDEPTH];
- yytype_int16 *yyss = yyssa;
- yytype_int16 *yyssp;
-
- /* The semantic value stack. */
- YYSTYPE yyvsa[YYINITDEPTH];
- YYSTYPE *yyvs = yyvsa;
- YYSTYPE *yyvsp;
-
-
-
-#define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N))
-
- YYSIZE_T yystacksize = YYINITDEPTH;
-
- /* The variables used to return semantic value and location from the
- action routines. */
- YYSTYPE yyval;
-
-
- /* The number of symbols on the RHS of the reduced rule.
- Keep to zero when no symbol should be popped. */
- int yylen = 0;
-
- 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);
- YYSTACK_RELOCATE (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));
-
- goto yybackup;
-
-/*-----------.
-| yybackup. |
-`-----------*/
-yybackup:
-
- /* Do appropriate processing given the current state. Read a
- look-ahead token if we need one and don't already have one. */
-
- /* First try to decide what to do without reference to look-ahead token. */
- yyn = yypact[yystate];
- if (yyn == YYPACT_NINF)
- goto yydefault;
-
- /* Not known => get a look-ahead token if don't already have one. */
-
- /* YYCHAR is either YYEMPTY or YYEOF or a valid look-ahead 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;
- }
-
- if (yyn == YYFINAL)
- YYACCEPT;
-
- /* Count tokens shifted since error; after three, turn off error
- status. */
- if (yyerrstatus)
- yyerrstatus--;
-
- /* Shift the look-ahead token. */
- YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
-
- /* Discard the shifted token unless it is eof. */
- if (yychar != YYEOF)
- 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 4:
-#line 182 "parser.y"
- {(yyvsp[(2) - (2)].tuple)->label = 0; (yyvsp[(2) - (2)].tuple)->exechance = (yyvsp[(1) - (2)].numval) * 100;}
- break;
-
- case 5:
-#line 184 "parser.y"
- {(yyvsp[(3) - (3)].tuple)->label = 0; (yyvsp[(3) - (3)].tuple)->exechance = (yyvsp[(1) - (3)].numval) * (yyvsp[(2) - (3)].numval);}
- break;
-
- case 6:
-#line 186 "parser.y"
- {checklabel((yyvsp[(1) - (3)].numval)); (yyvsp[(3) - (3)].tuple)->label = (yyvsp[(1) - (3)].numval); (yyvsp[(3) - (3)].tuple)->exechance = (yyvsp[(2) - (3)].numval) * 100;}
- break;
-
- case 7:
-#line 188 "parser.y"
- {checklabel((yyvsp[(1) - (4)].numval)); (yyvsp[(4) - (4)].tuple)->label = (yyvsp[(1) - (4)].numval); (yyvsp[(4) - (4)].tuple)->exechance = (yyvsp[(2) - (4)].numval) * (yyvsp[(3) - (4)].numval);}
- break;
-
- case 8:
-#line 190 "parser.y"
- {/* AIS: catch errors which occur after the end of a statement
- (highly likely when comments are being written, as the
- start of them will be parsed as an UNKNOWN) */
- yyerrok; yyclearin; cacsofar=0;
- if(prevtuple) {prevtuple->type=SPLATTERED; splat(0);}
- else splat(1); /* this is the first statement */
- }
- break;
-
- case 9:
-#line 205 "parser.y"
- {(yyvsp[(1) - (1)].tuple)->onceagainflag = onceagain_NORMAL; prevtuple = (yyval.tuple) = (yyvsp[(1) - (1)].tuple);}
- break;
-
- case 10:
-#line 207 "parser.y"
- {NEWFANGLED {(yyvsp[(1) - (2)].tuple)->onceagainflag = onceagain_ONCE;
- prevtuple = (yyval.tuple) = (yyvsp[(1) - (2)].tuple);}}
- break;
-
- case 11:
-#line 210 "parser.y"
- {NEWFANGLED {(yyvsp[(1) - (2)].tuple)->onceagainflag = onceagain_AGAIN;
- prevtuple = (yyval.tuple) = (yyvsp[(1) - (2)].tuple);}}
- break;
-
- case 12:
-#line 226 "parser.y"
- {(yyval.tuple) = (yyvsp[(1) - (1)].tuple);}
- break;
-
- case 13:
-#line 228 "parser.y"
- {
- if(!multithread) ick_lose(IE405, iyylineno, (char*)NULL);
- NEWFANGLED{
- /* (x) DO a WHILE b
- is equivalent to
- #11 (l0) DO REINSTATE (l3) <weave on>
- #10 (l1) DO COME FROM (l2) AGAIN
- #9 DO b
- #8 DO COME FROM (l0)
- #7 DO NOTHING
- #6 DO NOTHING
- #5 (l2) DO NOTHING
- #4 DO GIVE UP
- #3 DO COME FROM (l0)
- #2 (x) DO a
- #1 (l3) DON'T ABSTAIN FROM (l1) AGAIN <weave off> */
- tuple* temptuple;
- TARGET(temptuple, COME_FROM, lineuid+2);
- temptuple->label=lineuid+1; temptuple->preproc=1; /* #10 */
- TARGET(temptuple, COME_FROM, lineuid+0); temptuple->preproc=1; /* #8 */
- ACTION(temptuple, PREPROC, 0); temptuple->preproc=1; /* #7 */
- ACTION(temptuple, PREPROC, 0); temptuple->preproc=1; /* #6 */
- ACTION(temptuple, PREPROC, 0);
- temptuple->label=lineuid+2; temptuple->preproc=1; /* #5 */
- ACTION(temptuple, GIVE_UP, 0); temptuple->preproc=1; /* #4 */
- TARGET(temptuple, COME_FROM, lineuid+0); temptuple->preproc=1; /* #3 */
- TARGET(temptuple, REINSTATE, lineuid+3); temptuple->setweave=1;
- temptuple->label=lineuid+0; temptuple->preproc=1; /* #11 */
- TARGET(temptuple, ABSTAIN, lineuid+1); temptuple->label=lineuid+3; /* #1 */
- temptuple->preproc=1; temptuple->setweave=-1; temptuple->exechance=-100;
- politesse += 3; /* Keep the politeness checker happy */
- ppinit(11); tupleswap(10,9); tupleswap(11,2); lineuid+=4; /* #2, #9 */
- tuples[ick_lineno-10].onceagainflag=onceagain_AGAIN;
- tuples[ick_lineno-1].onceagainflag=onceagain_AGAIN;
- (yyval.tuple)=&(tuples[ick_lineno-2]);
-}}
- break;
-
- case 14:
-#line 266 "parser.y"
- {GETLINENO; (yyval.numval) = 1;}
- break;
-
- case 15:
-#line 267 "parser.y"
- {GETLINENO; (yyval.numval) = -1;}
- break;
-
- case 16:
-#line 268 "parser.y"
- {NEWFANGLED {GETLINENO; (yyval.numval) = 101;}}
- break;
-
- case 17:
-#line 269 "parser.y"
- {NEWFANGLED {GETLINENO; (yyval.numval) = -101;}}
- break;
-
- case 18:
-#line 273 "parser.y"
- {ACTION((yyval.tuple), GETS, cons(GETS,(yyvsp[(1) - (3)].node),(yyvsp[(3) - (3)].node)));}
- break;
-
- case 19:
-#line 274 "parser.y"
- {ACTION((yyval.tuple), RESIZE, cons(RESIZE,(yyvsp[(1) - (3)].node),(yyvsp[(3) - (3)].node)));}
- break;
-
- case 20:
-#line 276 "parser.y"
- {/* AIS: This is for variableconstants, and an error otherwise.*/
- if(variableconstants) ACTION((yyval.tuple), GETS, cons(GETS,(yyvsp[(1) - (3)].node),(yyvsp[(3) - (3)].node)))
- else {yyerrok; yyclearin; (yyval.tuple)=splat(1);}}
- break;
-
- case 21:
-#line 279 "parser.y"
- {TARGET((yyval.tuple), NEXT, (yyvsp[(1) - (2)].numval));}
- break;
-
- case 22:
-#line 280 "parser.y"
- {ACTION((yyval.tuple), FORGET, (yyvsp[(2) - (2)].node));}
- break;
-
- case 23:
-#line 281 "parser.y"
- {ACTION((yyval.tuple), RESUME, (yyvsp[(2) - (2)].node));}
- break;
-
- case 24:
-#line 282 "parser.y"
- {ACTION((yyval.tuple), STASH, rlist);}
- break;
-
- case 25:
-#line 283 "parser.y"
- {ACTION((yyval.tuple), RETRIEVE, rlist);}
- break;
-
- case 26:
-#line 284 "parser.y"
- {ACTION((yyval.tuple), IGNORE, rlist);}
- break;
-
- case 27:
-#line 285 "parser.y"
- {ACTION((yyval.tuple), REMEMBER, rlist);}
- break;
-
- case 28:
-#line 286 "parser.y"
- {stbeginline=0; TARGET((yyval.tuple), ABSTAIN, (yyvsp[(3) - (3)].numval));}
- break;
-
- case 29:
-#line 287 "parser.y"
- {ACTION((yyval.tuple), DISABLE, rlist);}
- break;
-
- case 30:
-#line 288 "parser.y"
- {/* AIS */ NEWFANGLED {stbeginline=0; ACTARGET((yyval.tuple), FROM, (yyvsp[(2) - (4)].node), (yyvsp[(4) - (4)].numval));}}
- break;
-
- case 31:
-#line 289 "parser.y"
- {/* AIS */ NEWFANGLED {(yyval.tuple) = newtuple(); (yyval.tuple)->type = MANYFROM; (yyval.tuple)->ick_lineno = thisline; \
- {node* tempnode=newnode(); (yyval.tuple)->u.node = tempnode; tempnode->lval=(yyvsp[(2) - (4)].node); tempnode->rval=rlist; tempnode->opcode=MANYFROM;}}}
- break;
-
- case 32:
-#line 291 "parser.y"
- {stbeginline=0; TARGET((yyval.tuple), REINSTATE, (yyvsp[(2) - (2)].numval));}
- break;
-
- case 33:
-#line 292 "parser.y"
- {ACTION((yyval.tuple), ENABLE, rlist);}
- break;
-
- case 34:
-#line 293 "parser.y"
- {ACTION((yyval.tuple), WRITE_IN, (yyvsp[(2) - (2)].node));}
- break;
-
- case 35:
-#line 294 "parser.y"
- {ACTION((yyval.tuple), READ_OUT, (yyvsp[(2) - (2)].node));}
- break;
-
- case 36:
-#line 295 "parser.y"
- {ACTION((yyval.tuple), PIN, (yyvsp[(2) - (2)].node));}
- break;
-
- case 37:
-#line 296 "parser.y"
- {ACTION((yyval.tuple), GIVE_UP, 0);}
- break;
-
- case 38:
-#line 297 "parser.y"
- {/* AIS */ NEWFANGLED {ACTION((yyval.tuple), GO_AHEAD, 0);}}
- break;
-
- case 39:
-#line 298 "parser.y"
- {/* AIS */ NEWFANGLED {ACTION((yyval.tuple), GO_BACK, 0);}}
- break;
-
- case 40:
-#line 299 "parser.y"
- {/* AIS */ NEWFANGLED {ACTION((yyval.tuple),TRY_AGAIN,0);}}
- break;
-
- case 41:
-#line 300 "parser.y"
- {/* AIS: Modified */ NEWFANGLED {TARGET((yyval.tuple),COME_FROM,(yyvsp[(1) - (1)].numval));}}
- break;
-
- case 42:
-#line 301 "parser.y"
- {/* AIS: COME FROM gerund */
- NEWFANGLED{ACTION((yyval.tuple),GERUCOME,rlist);
- compucomesused=1; gerucomesused=1;}}
- break;
-
- case 43:
-#line 304 "parser.y"
- {/* AIS */NEWFANGLED {ACTION((yyval.tuple),COMPUCOME,(yyvsp[(2) - (2)].node));
- compucomesused=1;}}
- break;
-
- case 44:
-#line 307 "parser.y"
- {NEWFANGLED {TARGET((yyval.tuple),NEXTFROMLABEL,(yyvsp[(1) - (1)].numval));}
- nextfromsused=1;}
- break;
-
- case 45:
-#line 309 "parser.y"
- {NEWFANGLED{ACTION((yyval.tuple),NEXTFROMGERUND,rlist);
- compucomesused=1; gerucomesused=1;}
- nextfromsused=1;}
- break;
-
- case 46:
-#line 312 "parser.y"
- {NEWFANGLED {ACTION((yyval.tuple),NEXTFROMEXPR,(yyvsp[(2) - (2)].node));
- compucomesused=1; nextfromsused=1;}}
- break;
-
- case 47:
-#line 315 "parser.y"
- {NEWFANGLED{ACTARGET((yyval.tuple),CREATE,(yyvsp[(2) - (2)].node),(yyvsp[(1) - (2)].numval)); cacsofar=0;}}
- break;
-
- case 48:
-#line 316 "parser.y"
- {NEWFANGLED{ACTION((yyval.tuple),COMPUCREATE,
- cons(INTERSECTION,(yyvsp[(2) - (3)].node),(yyvsp[(3) - (3)].node))); cacsofar=0;}}
- break;
-
- case 49:
-#line 319 "parser.y"
- {NEWFANGLED{ACTARGET((yyval.tuple),CREATE,(yyvsp[(2) - (2)].node),(yyvsp[(1) - (2)].numval));
- cacsofar=0;}}
- break;
-
- case 50:
-#line 322 "parser.y"
- {NEWFANGLED{ACTION((yyval.tuple),COMPUCREATE,
- cons(INTERSECTION,(yyvsp[(2) - (3)].node),(yyvsp[(3) - (3)].node))); cacsofar=0;}}
- break;
-
- case 51:
-#line 325 "parser.y"
- {NEWFANGLED {ACTION((yyval.tuple),UNKNOWN,(yyvsp[(1) - (1)].node)); cacsofar=0;}}
- break;
-
- case 52:
-#line 327 "parser.y"
- {yyclearin; yyerrok; (yyval.tuple) = splat(1); cacsofar=0;}
- break;
-
- case 53:
-#line 328 "parser.y"
- {yyclearin; yyerrok; (yyval.tuple) = splat(1); cacsofar=0;}
- break;
-
- case 54:
-#line 333 "parser.y"
- {(yyval.node) = (yyvsp[(1) - (1)].node); intern(ick_TWOSPOT,cacsofar+++1601);}
- break;
-
- case 55:
-#line 334 "parser.y"
- {(yyval.node)=cons(INTERSECTION,(yyvsp[(1) - (2)].node),(yyvsp[(2) - (2)].node));
- intern(ick_TWOSPOT,cacsofar+++1601);}
- break;
-
- case 56:
-#line 336 "parser.y"
- {(yyval.node) = (yyvsp[(1) - (1)].node);}
- break;
-
- case 57:
-#line 339 "parser.y"
- {(yyval.node) = (yyvsp[(1) - (1)].node);}
- break;
-
- case 58:
-#line 340 "parser.y"
- {(yyval.node)=cons(INTERSECTION,(yyvsp[(1) - (2)].node),(yyvsp[(2) - (2)].node));}
- break;
-
- case 59:
-#line 342 "parser.y"
- {(yyval.node) = (yyvsp[(1) - (1)].node);}
- break;
-
- case 60:
-#line 343 "parser.y"
- {(yyval.node)=cons(INTERSECTION,(yyvsp[(1) - (2)].node),(yyvsp[(2) - (2)].node));}
- break;
-
- case 61:
-#line 348 "parser.y"
- {(yyval.node)=cons(US_ELEM,0,(yyvsp[(1) - (1)].node));
- if(createsused){
- opoverused=1; if(!firstslat)
- firstslat=(yyvsp[(1) - (1)].node); else
- prevslat->nextslat=(yyvsp[(1) - (1)].node);
- prevslat=(yyvsp[(1) - (1)].node);
- (yyvsp[(1) - (1)].node)->nextslat=0;}}
- break;
-
- case 62:
-#line 355 "parser.y"
- {(yyval.node)=cons(US_SCALAR,0,(yyvsp[(1) - (1)].node));
- if(createsused){
- opoverused=1; if(!firstslat)
- firstslat=(yyvsp[(1) - (1)].node); else
- prevslat->nextslat=(yyvsp[(1) - (1)].node);
- prevslat=(yyvsp[(1) - (1)].node);
- (yyvsp[(1) - (1)].node)->nextslat=0;}}
- break;
-
- case 63:
-#line 362 "parser.y"
- {(yyval.node)=cons(US_EXPR,0,(yyvsp[(1) - (1)].node));
- if(createsused){
- opoverused=1; if(!firstslat)
- firstslat=(yyvsp[(1) - (1)].node); else
- prevslat->nextslat=(yyvsp[(1) - (1)].node);
- prevslat=(yyvsp[(1) - (1)].node);
- (yyvsp[(1) - (1)].node)->nextslat=0;}}
- break;
-
- case 64:
-#line 369 "parser.y"
- {(yyval.node)=cons(US_ARRVAR,0,(yyvsp[(1) - (1)].node));}
- break;
-
- case 65:
-#line 372 "parser.y"
- {(yyval.node)=newnode(); (yyval.node)->opcode=US_ID; (yyval.node)->constant=(yyvsp[(1) - (1)].numval);}
- break;
-
- case 66:
-#line 377 "parser.y"
- {rlist = np = newnode(); np->constant = (yyvsp[(1) - (1)].numval);}
- break;
-
- case 67:
-#line 379 "parser.y"
- {
- np->rval = newnode();
- np = np->rval;
- np->constant = (yyvsp[(3) - (3)].numval);
- }
- break;
-
- case 72:
-#line 392 "parser.y"
- {
- (yyval.node) = newnode();
- (yyval.node)->opcode = ick_TWOSPOT;
- (yyval.node)->constant = intern(ick_TWOSPOT, (yyvsp[(2) - (2)].numval));
- }
- break;
-
- case 73:
-#line 398 "parser.y"
- {
- (yyval.node) = newnode();
- (yyval.node)->opcode = ick_ONESPOT;
- (yyval.node)->constant = intern(ick_ONESPOT, (yyvsp[(2) - (2)].numval));
- }
- break;
-
- case 74:
-#line 404 "parser.y"
- {
- (yyval.node) = newnode();
- (yyval.node)->opcode = ick_TWOSPOT;
- (yyval.node)->constant = intern(ick_TWOSPOT, (yyvsp[(2) - (2)].numval));
- }
- break;
-
- case 75:
-#line 412 "parser.y"
- {
- (yyval.node) = newnode();
- (yyval.node)->opcode = ick_TAIL;
- (yyval.node)->constant = intern(ick_TAIL, (yyvsp[(2) - (2)].numval));
- }
- break;
-
- case 76:
-#line 418 "parser.y"
- {
- (yyval.node) = newnode();
- (yyval.node)->opcode = ick_HYBRID;
- (yyval.node)->constant = intern(ick_HYBRID, (yyvsp[(2) - (2)].numval));
- }
- break;
-
- case 77:
-#line 428 "parser.y"
- {
- (yyval.node) = newnode();
- (yyval.node)->opcode = (yyvsp[(2) - (3)].numval);
- (yyval.node)->rval = newnode();
- (yyval.node)->rval->opcode = ick_TAIL;
- (yyval.node)->rval->constant = intern(ick_TAIL, (yyvsp[(3) - (3)].numval));
- }
- break;
-
- case 78:
-#line 436 "parser.y"
- {
- (yyval.node) = newnode();
- (yyval.node)->opcode = (yyvsp[(2) - (3)].numval);
- (yyval.node)->rval = newnode();
- (yyval.node)->rval->opcode = ick_HYBRID;
- (yyval.node)->rval->constant = intern(ick_HYBRID, (yyvsp[(3) - (3)].numval));
- }
- break;
-
- case 79:
-#line 447 "parser.y"
- {
- /* enforce the 16-bit constant constraint */
- if ((unsigned int)(yyvsp[(2) - (2)].numval) > ick_Max_small)
- ick_lose(IE017, iyylineno, (char *)NULL);
- (yyval.node) = newnode();
- (yyval.node)->opcode = MESH;
- if(variableconstants) /* AIS */
- (yyval.node)->constant = intern(MESH, (yyvsp[(2) - (2)].numval));
- else
- (yyval.node)->constant = (yyvsp[(2) - (2)].numval);
- }
- break;
-
- case 80:
-#line 461 "parser.y"
- {rlist = np = (yyvsp[(1) - (1)].node);}
- break;
-
- case 81:
-#line 462 "parser.y"
- {np = np->rval = (yyvsp[(3) - (3)].node);
- /* newnode(); */ }
- break;
-
- case 85:
-#line 469 "parser.y"
- {(yyval.node)=cons(INTERSECTION,(yyvsp[(1) - (3)].node),(yyvsp[(3) - (3)].node));}
- break;
-
- case 86:
-#line 470 "parser.y"
- {(yyval.node)=cons(INTERSECTION,(yyvsp[(1) - (1)].node),0);}
- break;
-
- case 91:
-#line 476 "parser.y"
- {(yyval.node)=cons(INTERSECTION,(yyvsp[(1) - (3)].node),(yyvsp[(3) - (3)].node));}
- break;
-
- case 92:
-#line 477 "parser.y"
- {(yyval.node)=cons(INTERSECTION,(yyvsp[(1) - (1)].node),0);}
- break;
-
- case 93:
-#line 483 "parser.y"
- {(yyval.node) = cons(BY, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));}
- break;
-
- case 94:
-#line 484 "parser.y"
- {(yyval.node) = cons(BY, (yyvsp[(1) - (1)].node), 0);}
- break;
-
- case 95:
-#line 488 "parser.y"
- {(yyval.node) = (yyvsp[(1) - (1)].node);}
- break;
-
- case 96:
-#line 489 "parser.y"
- {(yyval.node) = cons(SUB, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));}
- break;
-
- case 97:
-#line 491 "parser.y"
- {(yyval.node) = cons(SUB, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));}
- break;
-
- case 98:
-#line 493 "parser.y"
- {(yyval.node) = cons(INTERSECTION, (yyvsp[(1) - (2)].node), (yyvsp[(2) - (2)].node));}
- break;
-
- case 99:
-#line 494 "parser.y"
- {(yyval.node) = cons(INTERSECTION, (yyvsp[(1) - (2)].node), (yyvsp[(2) - (2)].node));}
- break;
-
- case 100:
-#line 496 "parser.y"
- {(yyval.node) = cons(INTERSECTION, (yyvsp[(1) - (1)].node), 0);}
- break;
-
- case 101:
-#line 497 "parser.y"
- {(yyval.node) = cons(INTERSECTION, (yyvsp[(1) - (1)].node), 0);}
- break;
-
- case 102:
-#line 498 "parser.y"
- {(yyval.node) = cons(INTERSECTION, (yyvsp[(1) - (1)].node), 0);}
- break;
-
- case 103:
-#line 502 "parser.y"
- {(yyval.node) = (yyvsp[(1) - (1)].node);}
- break;
-
- case 104:
-#line 504 "parser.y"
- {(yyval.node) = (yyvsp[(1) - (3)].node); (yyval.node)->rval = cons(SUB, (yyval.node)->rval, (yyvsp[(3) - (3)].node));}
- break;
-
- case 105:
-#line 507 "parser.y"
- {(yyval.node) = (yyvsp[(1) - (3)].node); (yyval.node)->rval = cons(SUB, (yyval.node)->rval, (yyvsp[(3) - (3)].node));}
- break;
-
- case 106:
-#line 511 "parser.y"
- {(yyval.node) = newnode(); (yyval.node)->opcode = BADCHAR;
- (yyval.node)->constant = (yyvsp[(1) - (1)].numval);}
- break;
-
- case 107:
-#line 516 "parser.y"
- {(yyval.node) = (yyvsp[(1) - (1)].node);}
- break;
-
- case 108:
-#line 519 "parser.y"
- {(yyval.node) = cons(SELECT, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));}
- break;
-
- case 109:
-#line 520 "parser.y"
- {(yyval.node) = cons(MINGLE, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));}
- break;
-
- case 110:
-#line 521 "parser.y"
- {(yyval.node) = cons(UNKNOWNOP, (yyvsp[(2) - (3)].node),
- cons(INTERSECTION, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node)));
- if(useickec && createsused) {
- if(!firstslat) firstslat=(yyvsp[(1) - (3)].node);
- else prevslat->nextslat=(yyvsp[(1) - (3)].node);
- (yyvsp[(1) - (3)].node)->nextslat=(yyvsp[(3) - (3)].node); prevslat=(yyvsp[(3) - (3)].node);
- (yyvsp[(3) - (3)].node)->nextslat=0; opoverused=1;
- intern(ick_TWOSPOT, 1601);
- intern(ick_TWOSPOT, 1602);
- intern(ick_TWOSPOT, 1603);}}
- break;
-
- case 111:
-#line 532 "parser.y"
- {NEWFANGLED{(yyval.node) = cons(SLAT, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));
- opoverused=1; if(!firstslat)
- firstslat=(yyvsp[(3) - (3)].node); else
- prevslat->nextslat=(yyvsp[(3) - (3)].node); prevslat=(yyvsp[(3) - (3)].node);
- (yyvsp[(3) - (3)].node)->nextslat=0;}}
- break;
-
- case 112:
-#line 537 "parser.y"
- {(yyval.node) = (yyvsp[(1) - (1)].node);}
- break;
-
- case 113:
-#line 538 "parser.y"
- {(yyval.node) = (yyvsp[(1) - (1)].node);}
- break;
-
- case 114:
-#line 542 "parser.y"
- {(yyval.node) = (yyvsp[(1) - (1)].node);}
- break;
-
- case 115:
-#line 543 "parser.y"
- {(yyval.node) = (yyvsp[(1) - (1)].node);}
- break;
-
- case 116:
-#line 544 "parser.y"
- {(yyval.node) = cons(SELECT, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));}
- break;
-
- case 117:
-#line 545 "parser.y"
- {(yyval.node) = cons(MINGLE, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));}
- break;
-
- case 118:
-#line 546 "parser.y"
- {(yyval.node) = cons(UNKNOWNOP, (yyvsp[(2) - (3)].node),
- cons(INTERSECTION, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node)));
- if(useickec && createsused) {
- if(!firstslat) firstslat=(yyvsp[(1) - (3)].node);
- else prevslat->nextslat=(yyvsp[(1) - (3)].node);
- (yyvsp[(1) - (3)].node)->nextslat=(yyvsp[(3) - (3)].node); prevslat=(yyvsp[(3) - (3)].node);
- (yyvsp[(3) - (3)].node)->nextslat=0; opoverused=1;
- intern(ick_TWOSPOT, 1601);
- intern(ick_TWOSPOT, 1602);
- intern(ick_TWOSPOT, 1603);}}
- break;
-
- case 119:
-#line 556 "parser.y"
- {NEWFANGLED{(yyval.node) = cons(SLAT, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));
- opoverused=1; if(!firstslat)
- firstslat=(yyvsp[(3) - (3)].node); else
- prevslat->nextslat=(yyvsp[(3) - (3)].node); prevslat=(yyvsp[(3) - (3)].node);
- (yyvsp[(3) - (3)].node)->nextslat=0;}}
- break;
-
- case 120:
-#line 564 "parser.y"
- {(yyval.node) = (yyvsp[(1) - (1)].node);}
- break;
-
- case 121:
-#line 565 "parser.y"
- {(yyval.node) = cons(SELECT, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));}
- break;
-
- case 122:
-#line 566 "parser.y"
- {(yyval.node) = cons(MINGLE, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));}
- break;
-
- case 123:
-#line 567 "parser.y"
- {(yyval.node) = cons(UNKNOWNOP, (yyvsp[(2) - (3)].node),
- cons(INTERSECTION, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node)));
- if(useickec && createsused) {
- if(!firstslat) firstslat=(yyvsp[(1) - (3)].node);
- else prevslat->nextslat=(yyvsp[(1) - (3)].node);
- (yyvsp[(1) - (3)].node)->nextslat=(yyvsp[(3) - (3)].node); prevslat=(yyvsp[(3) - (3)].node);
- (yyvsp[(3) - (3)].node)->nextslat=0; opoverused=1;
- intern(ick_TWOSPOT, 1601);
- intern(ick_TWOSPOT, 1602);
- intern(ick_TWOSPOT, 1603);}}
- break;
-
- case 124:
-#line 577 "parser.y"
- {NEWFANGLED{(yyval.node) = cons(SLAT, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));
- opoverused=1; if(!firstslat)
- firstslat=(yyvsp[(3) - (3)].node); else
- prevslat->nextslat=(yyvsp[(3) - (3)].node); prevslat=(yyvsp[(3) - (3)].node);
- (yyvsp[(3) - (3)].node)->nextslat=0;}}
- break;
-
- case 125:
-#line 582 "parser.y"
- {(yyval.node) = (yyvsp[(1) - (1)].node);}
- break;
-
- case 126:
-#line 583 "parser.y"
- {(yyval.node) = (yyvsp[(1) - (1)].node);}
- break;
-
- case 127:
-#line 587 "parser.y"
- {(yyval.numval)=MESH; }
- break;
-
- case 128:
-#line 587 "parser.y"
- {(yyval.numval)=ick_ONESPOT;}
- break;
-
- case 129:
-#line 587 "parser.y"
- {(yyval.numval)=ick_TWOSPOT;}
- break;
-
- case 130:
-#line 592 "parser.y"
- {(yyval.node) = (yyvsp[(1) - (1)].node);}
- break;
-
- case 131:
-#line 595 "parser.y"
- {
- (yyval.node) = newnode();
- (yyval.node)->opcode = (yyvsp[(2) - (3)].numval);
- (yyval.node)->rval = newnode();
- (yyval.node)->rval->opcode = (yyvsp[(1) - (3)].numval);
- if((yyvsp[(1) - (3)].numval) == MESH) {
- /* enforce the 16-bit constant constraint */
- if ((unsigned int)(yyvsp[(3) - (3)].numval) > ick_Max_small)
- ick_lose(IE017, iyylineno, (char *)NULL);
- if(variableconstants) /* AIS, patched by JH */
- (yyval.node)->rval->constant = intern(MESH, (yyvsp[(3) - (3)].numval));
- else
- (yyval.node)->rval->constant = (yyvsp[(3) - (3)].numval);
- }
- else {
- (yyval.node)->rval->constant = intern((yyvsp[(1) - (3)].numval), (yyvsp[(3) - (3)].numval));
- }
- }
- break;
-
- case 132:
-#line 617 "parser.y"
- {
- (yyval.node) = newnode();
- (yyval.node)->opcode = (yyvsp[(2) - (4)].numval);
- (yyval.node)->rval = (yyvsp[(3) - (4)].node);
- DESTACKSPARKEARS;
- }
- break;
-
- case 133:
-#line 624 "parser.y"
- {
- (yyval.node) = newnode();
- (yyval.node)->opcode = (yyvsp[(2) - (4)].numval);
- (yyval.node)->rval = (yyvsp[(3) - (4)].node);
- DESTACKSPARKEARS;
- }
- break;
-
- case 134:
-#line 632 "parser.y"
- {(yyval.node) = (yyvsp[(2) - (3)].node); DESTACKSPARKEARS;}
- break;
-
- case 135:
-#line 633 "parser.y"
- {(yyval.node) = (yyvsp[(2) - (3)].node); DESTACKSPARKEARS;}
- break;
-
- case 136:
-#line 636 "parser.y"
- {(yyval.node) = (yyvsp[(1) - (1)].node);}
- break;
-
- case 137:
-#line 637 "parser.y"
- {(yyval.node) = (yyvsp[(1) - (1)].node);}
- break;
-
- case 138:
-#line 640 "parser.y"
- {(yyval.node) = (yyvsp[(1) - (1)].node);}
- break;
-
- case 139:
-#line 642 "parser.y"
- {(yyval.node)=newnode(); (yyval.node)->opcode = (yyvsp[(1) - (2)].numval); (yyval.node)->rval = (yyvsp[(2) - (2)].node);}
- break;
-
- case 140:
-#line 651 "parser.y"
- {(yyval.node) = (yyvsp[(1) - (1)].node);}
- break;
-
- case 141:
-#line 653 "parser.y"
- {(yyval.node)=newnode(); (yyval.node)->opcode = (yyvsp[(1) - (2)].numval); (yyval.node)->rval = (yyvsp[(2) - (2)].node);}
- break;
-
-
-/* Line 1267 of yacc.c. */
-#line 2746 "parser.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 look-ahead 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 look-ahead 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);
- }
-
- if (yyn == YYFINAL)
- YYACCEPT;
-
- *++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;
-
-#ifndef yyoverflow
-/*-------------------------------------------------.
-| yyexhaustedlab -- memory exhaustion comes here. |
-`-------------------------------------------------*/
-yyexhaustedlab:
- yyerror (YY_("memory exhausted"));
- yyresult = 2;
- /* Fall through. */
-#endif
-
-yyreturn:
- if (yychar != YYEOF && 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 664 "parser.y"
-
-
-static tuple *splat(int gentuple)
-/* try to recover from an invalid statement. */
-{
- tuple *sp;
- int tok, i;
- extern ick_bool re_send_token;
-
- /*
- * The idea
- * here is to skip to the ick_next DO, PLEASE or label, then unget that token.
- * which we can do with a tricky flag on the lexer (re_send_token).
- */
-
- if(re_send_token == ick_TRUE) /* By AIS */
- {
- /* We're still cleaning up from the previous error. */
- return prevtuple;
- }
-
- /* fprintf(stderr,"attempting to splat at line %d....\n",iyylineno); */
- /* AIS: Set the flag to true the first time round, false for subsequent
- iterations. That way, if the error was triggered on a DO or label,
- we use that token as the start of the next statement. */
- for(i = 0,re_send_token = ick_TRUE;;i++,re_send_token = ick_FALSE) {
- tok = lexer();
- if (!tok)
- {
- re_send_token = ick_TRUE;
- tok = ' '; /* scanner must not see a NUL */
- break;
- }
- else if (tok == DO || tok == PLEASE || tok == LABEL
- /* AIS */ || tok == MAYBE) {
- re_send_token = ick_TRUE;
- break;
- }
- }
- /*
- fprintf(stderr,"found %d on line %d after %d other tokens.\n",
- tok,iyylineno,i);
- */
-
- /* generate a placeholder tuple for the text line */
- if(gentuple /* AIS */) {TARGET(sp, SPLATTERED, 0); prevtuple=sp;}
- else sp=NULL;
-
- return(sp);
-}
-
-/* parser.y ends here */
-
+++ /dev/null
-/* A Bison parser, made by GNU Bison 2.3. */
-
-/* Skeleton interface 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 2, 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, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA. */
-
-/* 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. */
-
-/* Tokens. */
-#ifndef YYTOKENTYPE
-# define YYTOKENTYPE
- /* Put the tokens into the symbol table, so that GDB and other debuggers
- know about them. */
- enum yytokentype {
- UNKNOWN = 258,
- GETS = 259,
- RESIZE = 260,
- NEXT = 261,
- GO_AHEAD = 262,
- GO_BACK = 263,
- FORGET = 264,
- RESUME = 265,
- STASH = 266,
- RETRIEVE = 267,
- IGNORE = 268,
- REMEMBER = 269,
- ABSTAIN = 270,
- REINSTATE = 271,
- DISABLE = 272,
- ENABLE = 273,
- MANYFROM = 274,
- GIVE_UP = 275,
- READ_OUT = 276,
- WRITE_IN = 277,
- PIN = 278,
- COME_FROM = 279,
- NEXTFROMLABEL = 280,
- NEXTFROMEXPR = 281,
- NEXTFROMGERUND = 282,
- COMPUCOME = 283,
- GERUCOME = 284,
- PREPROC = 285,
- WHILE = 286,
- TRY_AGAIN = 287,
- CREATE = 288,
- COMPUCREATE = 289,
- FROM = 290,
- MAYBE = 291,
- DO = 292,
- PLEASE = 293,
- NOT = 294,
- ONCE = 295,
- AGAIN = 296,
- MESH = 297,
- NOSPOT = 298,
- ick_ONESPOT = 299,
- ick_TWOSPOT = 300,
- ick_TAIL = 301,
- ick_HYBRID = 302,
- MINGLE = 303,
- SELECT = 304,
- UNKNOWNOP = 305,
- SUB = 306,
- BY = 307,
- SLAT = 308,
- BACKSLAT = 309,
- NUMBER = 310,
- UNARY = 311,
- OHOHSEVEN = 312,
- GERUND = 313,
- LABEL = 314,
- BADCHAR = 315,
- INTERSECTION = 316,
- SPLATTERED = 317,
- MESH32 = 318,
- C_AND = 319,
- C_OR = 320,
- C_XOR = 321,
- C_NOT = 322,
- C_LOGICALNOT = 323,
- C_LSHIFTBY = 324,
- C_RSHIFTBY = 325,
- C_NOTEQUAL = 326,
- C_A = 327,
- C_PLUS = 328,
- C_MINUS = 329,
- C_TIMES = 330,
- C_DIVIDEBY = 331,
- C_MODULUS = 332,
- C_GREATER = 333,
- C_LESS = 334,
- C_ISEQUAL = 335,
- C_LOGICALAND = 336,
- C_LOGICALOR = 337,
- AND = 338,
- OR = 339,
- XOR = 340,
- FIN = 341,
- WHIRL = 342,
- WHIRL2 = 343,
- WHIRL3 = 344,
- WHIRL4 = 345,
- WHIRL5 = 346,
- REV_AND = 347,
- REV_OR = 348,
- REV_XOR = 349,
- REV_FIN = 350,
- REV_WHIRL = 351,
- REV_WHIRL2 = 352,
- REV_WHIRL3 = 353,
- REV_WHIRL4 = 354,
- REV_WHIRL5 = 355,
- UNKNOWNID = 356,
- US_ID = 357,
- US_SCALAR = 358,
- US_ARRVAR = 359,
- US_ELEM = 360,
- US_EXPR = 361,
- CLOSESPARK = 362,
- CLOSEEARS = 363,
- OPENSPARK = 364,
- OPENEARS = 365,
- HIGHPREC = 366,
- UNARYPREC = 367,
- LOWPREC = 368
- };
-#endif
-/* Tokens. */
-#define UNKNOWN 258
-#define GETS 259
-#define RESIZE 260
-#define NEXT 261
-#define GO_AHEAD 262
-#define GO_BACK 263
-#define FORGET 264
-#define RESUME 265
-#define STASH 266
-#define RETRIEVE 267
-#define IGNORE 268
-#define REMEMBER 269
-#define ABSTAIN 270
-#define REINSTATE 271
-#define DISABLE 272
-#define ENABLE 273
-#define MANYFROM 274
-#define GIVE_UP 275
-#define READ_OUT 276
-#define WRITE_IN 277
-#define PIN 278
-#define COME_FROM 279
-#define NEXTFROMLABEL 280
-#define NEXTFROMEXPR 281
-#define NEXTFROMGERUND 282
-#define COMPUCOME 283
-#define GERUCOME 284
-#define PREPROC 285
-#define WHILE 286
-#define TRY_AGAIN 287
-#define CREATE 288
-#define COMPUCREATE 289
-#define FROM 290
-#define MAYBE 291
-#define DO 292
-#define PLEASE 293
-#define NOT 294
-#define ONCE 295
-#define AGAIN 296
-#define MESH 297
-#define NOSPOT 298
-#define ick_ONESPOT 299
-#define ick_TWOSPOT 300
-#define ick_TAIL 301
-#define ick_HYBRID 302
-#define MINGLE 303
-#define SELECT 304
-#define UNKNOWNOP 305
-#define SUB 306
-#define BY 307
-#define SLAT 308
-#define BACKSLAT 309
-#define NUMBER 310
-#define UNARY 311
-#define OHOHSEVEN 312
-#define GERUND 313
-#define LABEL 314
-#define BADCHAR 315
-#define INTERSECTION 316
-#define SPLATTERED 317
-#define MESH32 318
-#define C_AND 319
-#define C_OR 320
-#define C_XOR 321
-#define C_NOT 322
-#define C_LOGICALNOT 323
-#define C_LSHIFTBY 324
-#define C_RSHIFTBY 325
-#define C_NOTEQUAL 326
-#define C_A 327
-#define C_PLUS 328
-#define C_MINUS 329
-#define C_TIMES 330
-#define C_DIVIDEBY 331
-#define C_MODULUS 332
-#define C_GREATER 333
-#define C_LESS 334
-#define C_ISEQUAL 335
-#define C_LOGICALAND 336
-#define C_LOGICALOR 337
-#define AND 338
-#define OR 339
-#define XOR 340
-#define FIN 341
-#define WHIRL 342
-#define WHIRL2 343
-#define WHIRL3 344
-#define WHIRL4 345
-#define WHIRL5 346
-#define REV_AND 347
-#define REV_OR 348
-#define REV_XOR 349
-#define REV_FIN 350
-#define REV_WHIRL 351
-#define REV_WHIRL2 352
-#define REV_WHIRL3 353
-#define REV_WHIRL4 354
-#define REV_WHIRL5 355
-#define UNKNOWNID 356
-#define US_ID 357
-#define US_SCALAR 358
-#define US_ARRVAR 359
-#define US_ELEM 360
-#define US_EXPR 361
-#define CLOSESPARK 362
-#define CLOSEEARS 363
-#define OPENSPARK 364
-#define OPENEARS 365
-#define HIGHPREC 366
-#define UNARYPREC 367
-#define LOWPREC 368
-
-
-
-
-#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
-typedef union YYSTYPE
-#line 83 "parser.y"
-{
- int numval; /* a numeric value */
- tuple *tuple; /* a code tuple */
- node *node; /* an expression-tree node */
-}
-/* Line 1489 of yacc.c. */
-#line 281 "parser.h"
- YYSTYPE;
-# define yystype YYSTYPE /* obsolescent; will be withdrawn */
-# define YYSTYPE_IS_DECLARED 1
-# define YYSTYPE_IS_TRIVIAL 1
-#endif
-
-extern YYSTYPE yylval;
-