From 324280b3f25a71d7d560f76c02bdb4269c6fe4eb Mon Sep 17 00:00:00 2001 From: David Rose Date: Tue, 25 Feb 2003 02:33:58 +0000 Subject: [PATCH] update prebuilt --- direct/src/dcparser/dcLexer.cxx.prebuilt | 4453 ++++++------ direct/src/dcparser/dcParser.cxx.prebuilt | 1597 +++-- direct/src/dcparser/dcParser.h.prebuilt | 71 +- dtool/src/cppparser/cppBison.cxx.prebuilt | 6099 +++++++++-------- dtool/src/cppparser/cppBison.h.prebuilt | 221 +- panda/src/egg/lexer.cxx.prebuilt | 7 +- panda/src/egg/parser.cxx.prebuilt | 3655 +++++----- panda/src/egg/parser.h.prebuilt | 165 +- .../src/stitchbase/stitchLexer.cxx.prebuilt | 1945 ++++++ .../src/stitchbase/stitchParser.cxx.prebuilt | 1752 +++++ .../src/stitchbase/stitchParser.h.prebuilt | 50 + 11 files changed, 12202 insertions(+), 7813 deletions(-) create mode 100644 pandaapp/src/stitchbase/stitchLexer.cxx.prebuilt create mode 100644 pandaapp/src/stitchbase/stitchParser.cxx.prebuilt create mode 100644 pandaapp/src/stitchbase/stitchParser.h.prebuilt diff --git a/direct/src/dcparser/dcLexer.cxx.prebuilt b/direct/src/dcparser/dcLexer.cxx.prebuilt index 818df3325d..6df29a3094 100644 --- a/direct/src/dcparser/dcLexer.cxx.prebuilt +++ b/direct/src/dcparser/dcLexer.cxx.prebuilt @@ -1,2213 +1,2240 @@ -#define yy_create_buffer dcyy_create_buffer -#define yy_delete_buffer dcyy_delete_buffer -#define yy_scan_buffer dcyy_scan_buffer -#define yy_scan_string dcyy_scan_string -#define yy_scan_bytes dcyy_scan_bytes -#define yy_flex_debug dcyy_flex_debug -#define yy_init_buffer dcyy_init_buffer -#define yy_flush_buffer dcyy_flush_buffer -#define yy_load_buffer_state dcyy_load_buffer_state -#define yy_switch_to_buffer dcyy_switch_to_buffer -#define yyin dcyyin -#define yyleng dcyyleng -#define yylex dcyylex -#define yyout dcyyout -#define yyrestart dcyyrestart -#define yytext dcyytext -#define yywrap dcyywrap - -#line 20 "lex.yy.c" -/* A lexical scanner generated by flex */ - -/* Scanner skeleton version: - * $Header$ - */ - -#define FLEX_SCANNER -#define YY_FLEX_MAJOR_VERSION 2 -#define YY_FLEX_MINOR_VERSION 5 - -#include - - -/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */ -#ifdef c_plusplus -#ifndef __cplusplus -#define __cplusplus -#endif -#endif - - -#ifdef __cplusplus - -#include - -/* Use prototypes in function declarations. */ -#define YY_USE_PROTOS - -/* The "const" storage-class-modifier is valid. */ -#define YY_USE_CONST - -#else /* ! __cplusplus */ - -#if __STDC__ - -#define YY_USE_PROTOS -#define YY_USE_CONST - -#endif /* __STDC__ */ -#endif /* ! __cplusplus */ - -#ifdef __TURBOC__ - #pragma warn -rch - #pragma warn -use -#include -#include -#define YY_USE_CONST -#define YY_USE_PROTOS -#endif - -#ifdef YY_USE_CONST -#define yyconst const -#else -#define yyconst -#endif - - -#ifdef YY_USE_PROTOS -#define YY_PROTO(proto) proto -#else -#define YY_PROTO(proto) () -#endif - -/* Returned upon end-of-file. */ -#define YY_NULL 0 - -/* Promotes a possibly negative, possibly signed char to an unsigned - * integer for use as an array index. If the signed char is negative, - * we want to instead treat it as an 8-bit unsigned char, hence the - * double cast. - */ -#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) - -/* Enter a start condition. This macro really ought to take a parameter, - * but we do it the disgusting crufty way forced on us by the ()-less - * definition of BEGIN. - */ -#define BEGIN yy_start = 1 + 2 * - -/* Translate the current start state into a value that can be later handed - * to BEGIN to return to the state. The YYSTATE alias is for lex - * compatibility. - */ -#define YY_START ((yy_start - 1) / 2) -#define YYSTATE YY_START - -/* Action number for EOF rule of a given start state. */ -#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) - -/* Special action meaning "start processing a new file". */ -#define YY_NEW_FILE yyrestart( yyin ) - -#define YY_END_OF_BUFFER_CHAR 0 - -/* Size of default input buffer. */ -#define YY_BUF_SIZE 16384 - -typedef struct yy_buffer_state *YY_BUFFER_STATE; - -extern int yyleng; -extern FILE *yyin, *yyout; - -#define EOB_ACT_CONTINUE_SCAN 0 -#define EOB_ACT_END_OF_FILE 1 -#define EOB_ACT_LAST_MATCH 2 - -/* The funky do-while in the following #define is used to turn the definition - * int a single C statement (which needs a semi-colon terminator). This - * avoids problems with code like: - * - * if ( condition_holds ) - * yyless( 5 ); - * else - * do_something_else(); - * - * Prior to using the do-while the compiler would get upset at the - * "else" because it interpreted the "if" statement as being all - * done when it reached the ';' after the yyless() call. - */ - -/* Return all but the first 'n' matched characters back to the input stream. */ - -#define yyless(n) \ - do \ - { \ - /* Undo effects of setting up yytext. */ \ - *yy_cp = yy_hold_char; \ - yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \ - YY_DO_BEFORE_ACTION; /* set up yytext again */ \ - } \ - while ( 0 ) - -#define unput(c) yyunput( c, yytext_ptr ) - -/* The following is because we cannot portably get our hands on size_t - * (without autoconf's help, which isn't available because we want - * flex-generated scanners to compile on their own). - */ -typedef unsigned int yy_size_t; - - -struct yy_buffer_state - { - FILE *yy_input_file; - - char *yy_ch_buf; /* input buffer */ - char *yy_buf_pos; /* current position in input buffer */ - - /* Size of input buffer in bytes, not including room for EOB - * characters. - */ - yy_size_t yy_buf_size; - - /* Number of characters read into yy_ch_buf, not including EOB - * characters. - */ - int yy_n_chars; - - /* Whether we "own" the buffer - i.e., we know we created it, - * and can realloc() it to grow it, and should free() it to - * delete it. - */ - int yy_is_our_buffer; - - /* Whether this is an "interactive" input source; if so, and - * if we're using stdio for input, then we want to use getc() - * instead of fread(), to make sure we stop fetching input after - * each newline. - */ - int yy_is_interactive; - - /* Whether we're considered to be at the beginning of a line. - * If so, '^' rules will be active on the next match, otherwise - * not. - */ - int yy_at_bol; - - /* Whether to try to fill the input buffer when we reach the - * end of it. - */ - int yy_fill_buffer; - - int yy_buffer_status; -#define YY_BUFFER_NEW 0 -#define YY_BUFFER_NORMAL 1 - /* When an EOF's been seen but there's still some text to process - * then we mark the buffer as YY_EOF_PENDING, to indicate that we - * shouldn't try reading from the input source any more. We might - * still have a bunch of tokens to match, though, because of - * possible backing-up. - * - * When we actually see the EOF, we change the status to "new" - * (via yyrestart()), so that the user can continue scanning by - * just pointing yyin at a new input file. - */ -#define YY_BUFFER_EOF_PENDING 2 - }; - -static YY_BUFFER_STATE yy_current_buffer = 0; - -/* We provide macros for accessing buffer states in case in the - * future we want to put the buffer states in a more general - * "scanner state". - */ -#define YY_CURRENT_BUFFER yy_current_buffer - - -/* yy_hold_char holds the character lost when yytext is formed. */ -static char yy_hold_char; - -static int yy_n_chars; /* number of characters read into yy_ch_buf */ - - -int yyleng; - -/* Points to current character in buffer. */ -static char *yy_c_buf_p = (char *) 0; -static int yy_init = 1; /* whether we need to initialize */ -static int yy_start = 0; /* start state number */ - -/* Flag which is used to allow yywrap()'s to do buffer switches - * instead of setting up a fresh yyin. A bit of a hack ... - */ -static int yy_did_buffer_switch_on_eof; - -void yyrestart YY_PROTO(( FILE *input_file )); - -void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer )); -void yy_load_buffer_state YY_PROTO(( void )); -YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size )); -void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b )); -void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file )); -void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b )); -#define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer ) - -YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size )); -YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *str )); -YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len )); - -static void *yy_flex_alloc YY_PROTO(( yy_size_t )); -static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t )); -static void yy_flex_free YY_PROTO(( void * )); - -#define yy_new_buffer yy_create_buffer - -#define yy_set_interactive(is_interactive) \ - { \ - if ( ! yy_current_buffer ) \ - yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \ - yy_current_buffer->yy_is_interactive = is_interactive; \ - } - -#define yy_set_bol(at_bol) \ - { \ - if ( ! yy_current_buffer ) \ - yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \ - yy_current_buffer->yy_at_bol = at_bol; \ - } - -#define YY_AT_BOL() (yy_current_buffer->yy_at_bol) - -typedef unsigned char YY_CHAR; -FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0; -typedef int yy_state_type; -extern char *yytext; -#define yytext_ptr yytext - -static yy_state_type yy_get_previous_state YY_PROTO(( void )); -static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state )); -static int yy_get_next_buffer YY_PROTO(( void )); -static void yy_fatal_error YY_PROTO(( yyconst char msg[] )); - -/* Done after the current pattern has been matched and before the - * corresponding action - sets up yytext. - */ -#define YY_DO_BEFORE_ACTION \ - yytext_ptr = yy_bp; \ - yyleng = (int) (yy_cp - yy_bp); \ - yy_hold_char = *yy_cp; \ - *yy_cp = '\0'; \ - yy_c_buf_p = yy_cp; - -#define YY_NUM_RULES 40 -#define YY_END_OF_BUFFER 41 -static yyconst short int yy_accept[157] = - { 0, - 0, 0, 41, 39, 2, 1, 36, 39, 39, 39, - 33, 33, 37, 38, 38, 38, 38, 38, 38, 38, - 38, 38, 38, 38, 38, 1, 0, 33, 35, 4, - 3, 35, 34, 38, 38, 38, 38, 29, 38, 38, - 38, 38, 38, 38, 38, 38, 38, 38, 0, 3, - 34, 38, 38, 38, 38, 38, 38, 38, 38, 38, - 27, 28, 38, 38, 38, 0, 35, 16, 38, 38, - 38, 38, 38, 38, 38, 38, 6, 24, 38, 38, - 38, 38, 38, 38, 38, 38, 38, 7, 8, 9, - 38, 38, 38, 38, 38, 38, 38, 10, 38, 31, - - 30, 5, 38, 38, 38, 38, 38, 38, 15, 11, - 12, 13, 38, 38, 14, 38, 38, 38, 32, 38, - 38, 38, 38, 38, 38, 38, 38, 38, 25, 38, - 38, 38, 38, 26, 38, 38, 17, 38, 38, 38, - 38, 18, 19, 38, 38, 38, 20, 21, 22, 38, - 38, 38, 38, 38, 23, 0 - } ; - -static yyconst int yy_ec[256] = - { 0, - 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, - 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 2, 1, 4, 1, 1, 1, 1, 1, 1, - 1, 5, 6, 1, 6, 7, 8, 9, 10, 11, - 12, 13, 14, 15, 14, 16, 14, 1, 1, 17, - 1, 1, 1, 1, 18, 18, 18, 18, 19, 18, - 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, - 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, - 1, 1, 1, 1, 20, 1, 21, 22, 23, 24, - - 25, 26, 27, 20, 28, 20, 20, 29, 30, 31, - 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, - 42, 20, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1 - } ; - -static yyconst int yy_meta[43] = - { 0, - 1, 1, 2, 1, 1, 3, 4, 1, 5, 5, - 5, 5, 5, 5, 5, 5, 1, 6, 6, 7, - 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, - 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, - 7, 7 - } ; - -static yyconst short int yy_base[164] = - { 0, - 0, 0, 200, 201, 201, 0, 201, 192, 0, 38, - 37, 191, 201, 0, 16, 168, 25, 167, 164, 162, - 153, 181, 28, 154, 162, 0, 0, 182, 31, 201, - 0, 0, 0, 0, 156, 155, 19, 0, 157, 153, - 147, 154, 151, 148, 150, 145, 143, 146, 170, 0, - 0, 153, 153, 148, 147, 150, 149, 47, 70, 133, - 0, 0, 130, 139, 129, 159, 158, 0, 139, 139, - 130, 124, 122, 143, 146, 143, 134, 0, 129, 125, - 121, 54, 128, 111, 125, 112, 132, 125, 124, 0, - 109, 112, 107, 114, 125, 128, 125, 116, 115, 0, - - 0, 0, 122, 99, 98, 97, 107, 105, 0, 108, - 37, 0, 93, 91, 0, 91, 90, 103, 0, 99, - 87, 86, 92, 84, 81, 96, 95, 73, 0, 79, - 78, 81, 90, 0, 67, 58, 0, 67, 56, 39, - 32, 0, 0, 31, 30, 55, 0, 0, 0, 47, - 32, 30, 40, 18, 0, 201, 86, 90, 47, 91, - 98, 101, 105 - } ; - -static yyconst short int yy_def[164] = - { 0, - 156, 1, 156, 156, 156, 157, 156, 158, 159, 156, - 158, 158, 156, 160, 160, 160, 160, 160, 160, 160, - 160, 160, 160, 160, 160, 157, 159, 158, 159, 156, - 161, 29, 162, 160, 160, 160, 160, 160, 160, 160, - 160, 160, 160, 160, 160, 160, 160, 160, 163, 161, - 162, 160, 160, 160, 160, 160, 160, 160, 160, 160, - 160, 160, 160, 160, 160, 163, 163, 160, 160, 160, - 160, 160, 160, 160, 160, 160, 160, 59, 160, 160, - 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, - 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, - - 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, - 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, - 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, - 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, - 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, - 160, 160, 160, 160, 160, 0, 156, 156, 156, 156, - 156, 156, 156 - } ; - -static yyconst short int yy_nxt[244] = - { 0, - 4, 5, 6, 7, 4, 8, 9, 10, 11, 12, - 12, 12, 12, 12, 12, 12, 13, 14, 14, 14, - 14, 15, 16, 17, 14, 18, 14, 19, 14, 20, - 14, 21, 22, 14, 23, 24, 14, 25, 14, 14, - 14, 14, 30, 32, 35, 31, 38, 39, 45, 49, - 36, 29, 46, 54, 55, 49, 74, 122, 75, 155, - 154, 76, 77, 95, 153, 96, 152, 151, 97, 98, - 150, 149, 148, 147, 123, 146, 145, 33, 78, 78, - 78, 78, 78, 78, 78, 78, 26, 144, 26, 26, - 26, 26, 26, 28, 28, 34, 34, 34, 50, 143, - - 50, 50, 50, 50, 50, 51, 51, 67, 142, 67, - 141, 140, 139, 138, 137, 136, 135, 134, 133, 132, - 131, 130, 129, 128, 127, 126, 125, 124, 121, 120, - 119, 118, 117, 116, 115, 114, 113, 112, 111, 110, - 109, 108, 107, 106, 105, 104, 103, 102, 101, 100, - 99, 94, 93, 92, 91, 90, 89, 88, 87, 86, - 85, 84, 83, 156, 156, 82, 81, 80, 79, 73, - 72, 71, 70, 69, 68, 66, 65, 64, 63, 62, - 61, 60, 59, 58, 57, 56, 53, 52, 32, 48, - 47, 44, 43, 42, 41, 40, 37, 32, 27, 156, - - 3, 156, 156, 156, 156, 156, 156, 156, 156, 156, - 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, - 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, - 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, - 156, 156, 156 - } ; - -static yyconst short int yy_chk[244] = - { 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, 10, 11, 15, 10, 17, 17, 23, 29, - 15, 159, 23, 37, 37, 29, 58, 111, 58, 154, - 153, 58, 58, 82, 152, 82, 151, 150, 82, 82, - 146, 145, 144, 141, 111, 140, 139, 11, 59, 59, - 59, 59, 59, 59, 59, 59, 157, 138, 157, 157, - 157, 157, 157, 158, 158, 160, 160, 160, 161, 136, - - 161, 161, 161, 161, 161, 162, 162, 163, 135, 163, - 133, 132, 131, 130, 128, 127, 126, 125, 124, 123, - 122, 121, 120, 118, 117, 116, 114, 113, 110, 108, - 107, 106, 105, 104, 103, 99, 98, 97, 96, 95, - 94, 93, 92, 91, 89, 88, 87, 86, 85, 84, - 83, 81, 80, 79, 77, 76, 75, 74, 73, 72, - 71, 70, 69, 67, 66, 65, 64, 63, 60, 57, - 56, 55, 54, 53, 52, 49, 48, 47, 46, 45, - 44, 43, 42, 41, 40, 39, 36, 35, 28, 25, - 24, 22, 21, 20, 19, 18, 16, 12, 8, 3, - - 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, - 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, - 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, - 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, - 156, 156, 156 - } ; - -static yy_state_type yy_last_accepting_state; -static char *yy_last_accepting_cpos; - -/* The intent behind this definition is that it'll catch - * any uses of REJECT which flex missed. - */ -#define REJECT reject_used_but_not_detected -#define yymore() yymore_used_but_not_detected -#define YY_MORE_ADJ 0 -char *yytext; -#line 1 "dcLexer.lxx" -#define INITIAL 0 -/* -// Filename: dcLexer.lxx -// Created by: drose (05Oct00) -// -//////////////////////////////////////////////////////////////////// -*/ -#line 9 "dcLexer.lxx" -#include "dcLexerDefs.h" -#include "dcParserDefs.h" -#include "dcParser.h" -#include "dcindent.h" - - -static int yyinput(void); // declared by flex. -extern "C" int dcyywrap(); - -//////////////////////////////////////////////////////////////////// -// Static variables -//////////////////////////////////////////////////////////////////// - -// We'll increment line_number and col_number as we parse the file, so -// that we can report the position of an error. -static int line_number = 0; -static int col_number = 0; - -// current_line holds as much of the current line as will fit. Its -// only purpose is for printing it out to report an error to the user. -static const int max_error_width = 1024; -static char current_line[max_error_width + 1]; - -static int error_count = 0; -static int warning_count = 0; - -// This is the pointer to the current input stream. -static istream *inp = NULL; - -// This is the name of the dc file we're parsing. We keep it so we -// can print it out for error messages. -static string dc_filename; - - -//////////////////////////////////////////////////////////////////// -// Defining the interface to the lexer. -//////////////////////////////////////////////////////////////////// - -void -dc_init_lexer(istream &in, const string &filename) { - inp = ∈ - dc_filename = filename; - line_number = 0; - col_number = 0; - error_count = 0; - warning_count = 0; -} - -int -dc_error_count() { - return error_count; -} - -int -dc_warning_count() { - return warning_count; -} - - -//////////////////////////////////////////////////////////////////// -// Internal support functions. -//////////////////////////////////////////////////////////////////// - -int -dcyywrap(void) { - return 1; -} - -void -dcyyerror(const string &msg) { - cerr << "\nError"; - if (!dc_filename.empty()) { - cerr << " in " << dc_filename; - } - cerr - << " at line " << line_number << ", column " << col_number << ":\n" - << current_line << "\n"; - indent(cerr, col_number-1) - << "^\n" << msg << "\n\n"; - - error_count++; -} - -void -dcyywarning(const string &msg) { - cerr << "\nWarning"; - if (!dc_filename.empty()) { - cerr << " in " << dc_filename; - } - cerr - << " at line " << line_number << ", column " << col_number << ":\n" - << current_line << "\n"; - indent(cerr, col_number-1) - << "^\n" << msg << "\n\n"; - - warning_count++; -} - -// Now define a function to take input from an istream instead of a -// stdio FILE pointer. This is flex-specific. -static void -input_chars(char *buffer, int &result, int max_size) { - nassertv(inp != NULL); - if (*inp) { - inp->read(buffer, max_size); - result = inp->gcount(); - - if (line_number == 0) { - // This is a special case. If we are reading the very first bit - // from the stream, copy it into the current_line array. This - // is because the \n.* rule below, which fills current_line - // normally, doesn't catch the first line. - strncpy(current_line, yytext, max_error_width); - current_line[max_error_width] = '\0'; - line_number++; - col_number = 0; - - // Truncate it at the newline. - char *end = strchr(current_line, '\n'); - if (end != NULL) { - *end = '\0'; - } - } - - } else { - // End of file or I/O error. - result = 0; - } -} -#undef YY_INPUT -#define YY_INPUT(buffer, result, max_size) input_chars(buffer, result, max_size) - -// read_char reads and returns a single character, incrementing the -// supplied line and column numbers as appropriate. A convenience -// function for the scanning functions below. -static int -read_char(int &line, int &col) { - int c = yyinput(); - if (c == '\n') { - line++; - col = 0; - } else { - col++; - } - return c; -} - -// scan_quoted_string reads a string delimited by quotation marks and -// returns it. -static string -scan_quoted_string() { - string result; - - // We don't touch the current line number and column number during - // scanning, so that if we detect an error while scanning the string - // (e.g. an unterminated string), we'll report the error as - // occurring at the start of the string, not at the end--somewhat - // more convenient for the user. - - // Instead of adjusting the global line_number and col_number - // variables, we'll operate on our own local variables for the - // interim. - int line = line_number; - int col = col_number; - - int c; - c = read_char(line, col); - while (c != '"' && c != EOF) { - result += c; - c = read_char(line, col); - } - - if (c == EOF) { - dcyyerror("This quotation mark is unterminated."); - } - - line_number = line; - col_number = col; - - return result; -} - -// scan_hex_string reads a string of hexadecimal digits delimited by -// angle brackets and returns the representative string. -static string -scan_hex_string() { - string result; - - // We don't touch the current line number and column number during - // scanning, so that if we detect an error while scanning the string - // (e.g. an unterminated string), we'll report the error as - // occurring at the start of the string, not at the end--somewhat - // more convenient for the user. - - // Instead of adjusting the global line_number and col_number - // variables, we'll operate on our own local variables for the - // interim. - int line = line_number; - int col = col_number; - - bool odd = false; - int last = 0; - int c; - c = read_char(line, col); - while (c != '>' && c != EOF) { - int value; - if (c >= '0' && c <= '9') { - value = c - '0'; - } else if (c >= 'a' && c <= 'f') { - value = c - 'a' + 10; - } else if (c >= 'A' && c <= 'F') { - value = c - 'A' + 10; - } else { - line_number = line; - col_number = col; - dcyyerror("Invalid hex digit."); - return string(); - } - - odd = !odd; - if (odd) { - last = value; - } else { - result += (char)((last << 4) | value); - } - c = read_char(line, col); - } - - if (c == EOF) { - dcyyerror("This hex string is unterminated."); - return string(); - } else if (odd) { - dcyyerror("Odd number of hex digits."); - return string(); - } - - line_number = line; - col_number = col; - - return result; -} - -// eat_c_comment scans past all characters up until the first */ -// encountered. -static void -eat_c_comment() { - // As above, we'll operate on our own local copies of line_number - // and col_number within this function. - - int line = line_number; - int col = col_number; - - int c, last_c; - - last_c = '\0'; - c = read_char(line, col); - while (c != EOF && !(last_c == '*' && c == '/')) { - if (last_c == '/' && c == '*') { - dcyywarning("This comment contains a nested /* symbol--possibly unclosed?"); - } - last_c = c; - c = read_char(line, col); - } - - if (c == EOF) { - dcyyerror("This comment marker is unclosed."); - } - - line_number = line; - col_number = col; -} - - - -// accept() is called below as each piece is pulled off and -// accepted by the lexer; it increments the current column number. -inline void accept() { - col_number += yyleng; -} - -#line 773 "lex.yy.c" - -/* Macros after this point can all be overridden by user definitions in - * section 1. - */ - -#ifndef YY_SKIP_YYWRAP -#ifdef __cplusplus -extern "C" int yywrap YY_PROTO(( void )); -#else -extern int yywrap YY_PROTO(( void )); -#endif -#endif - -#ifndef YY_NO_UNPUT -static void yyunput YY_PROTO(( int c, char *buf_ptr )); -#endif - -#ifndef yytext_ptr -static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int )); -#endif - -#ifndef YY_NO_INPUT -#ifdef __cplusplus -static int yyinput YY_PROTO(( void )); -#else -static int input YY_PROTO(( void )); -#endif -#endif - -#if YY_STACK_USED -static int yy_start_stack_ptr = 0; -static int yy_start_stack_depth = 0; -static int *yy_start_stack = 0; -#ifndef YY_NO_PUSH_STATE -static void yy_push_state YY_PROTO(( int new_state )); -#endif -#ifndef YY_NO_POP_STATE -static void yy_pop_state YY_PROTO(( void )); -#endif -#ifndef YY_NO_TOP_STATE -static int yy_top_state YY_PROTO(( void )); -#endif - -#else -#define YY_NO_PUSH_STATE 1 -#define YY_NO_POP_STATE 1 -#define YY_NO_TOP_STATE 1 -#endif - -#ifdef YY_MALLOC_DECL -YY_MALLOC_DECL -#else -#if __STDC__ -#ifndef __cplusplus -#include -#endif -#else -/* Just try to get by without declaring the routines. This will fail - * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int) - * or sizeof(void*) != sizeof(int). - */ -#endif -#endif - -/* Amount of stuff to slurp up with each read. */ -#ifndef YY_READ_BUF_SIZE -#define YY_READ_BUF_SIZE 8192 -#endif - -/* Copy whatever the last rule matched to the standard output. */ - -#ifndef ECHO -/* This used to be an fputs(), but since the string might contain NUL's, - * we now use fwrite(). - */ -#define ECHO (void) fwrite( yytext, yyleng, 1, yyout ) -#endif - -/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, - * is returned in "result". - */ -#ifndef YY_INPUT -#define YY_INPUT(buf,result,max_size) \ - if ( yy_current_buffer->yy_is_interactive ) \ - { \ - int c = '*', n; \ - for ( n = 0; n < max_size && \ - (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ - buf[n] = (char) c; \ - if ( c == '\n' ) \ - buf[n++] = (char) c; \ - if ( c == EOF && ferror( yyin ) ) \ - YY_FATAL_ERROR( "input in flex scanner failed" ); \ - result = n; \ - } \ - else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \ - && ferror( yyin ) ) \ - YY_FATAL_ERROR( "input in flex scanner failed" ); -#endif - -/* No semi-colon after return; correct usage is to write "yyterminate();" - - * we don't want an extra ';' after the "return" because that will cause - * some compilers to complain about unreachable statements. - */ -#ifndef yyterminate -#define yyterminate() return YY_NULL -#endif - -/* Number of entries by which start-condition stack grows. */ -#ifndef YY_START_STACK_INCR -#define YY_START_STACK_INCR 25 -#endif - -/* Report a fatal error. */ -#ifndef YY_FATAL_ERROR -#define YY_FATAL_ERROR(msg) yy_fatal_error( msg ) -#endif - -/* Default declaration of generated scanner - a define so the user can - * easily add parameters. - */ -#ifndef YY_DECL -#define YY_DECL int yylex YY_PROTO(( void )) -#endif - -/* Code executed at the beginning of each rule, after yytext and yyleng - * have been set up. - */ -#ifndef YY_USER_ACTION -#define YY_USER_ACTION -#endif - -/* Code executed at the end of each rule. */ -#ifndef YY_BREAK -#define YY_BREAK break; -#endif - -#define YY_RULE_SETUP \ - YY_USER_ACTION - -YY_DECL - { - register yy_state_type yy_current_state; - register char *yy_cp, *yy_bp; - register int yy_act; - -#line 295 "dcLexer.lxx" - - - - - -#line 926 "lex.yy.c" - - if ( yy_init ) - { - yy_init = 0; - -#ifdef YY_USER_INIT - YY_USER_INIT; -#endif - - if ( ! yy_start ) - yy_start = 1; /* first start state */ - - if ( ! yyin ) - yyin = stdin; - - if ( ! yyout ) - yyout = stdout; - - if ( ! yy_current_buffer ) - yy_current_buffer = - yy_create_buffer( yyin, YY_BUF_SIZE ); - - yy_load_buffer_state(); - } - - while ( 1 ) /* loops until end-of-file is reached */ - { - yy_cp = yy_c_buf_p; - - /* Support of yytext. */ - *yy_cp = yy_hold_char; - - /* yy_bp points to the position in yy_ch_buf of the start of - * the current run. - */ - yy_bp = yy_cp; - - yy_current_state = yy_start; -yy_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 >= 157 ) - 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] != 201 ); - -yy_find_action: - yy_act = yy_accept[yy_current_state]; - if ( yy_act == 0 ) - { /* have to back up */ - yy_cp = yy_last_accepting_cpos; - yy_current_state = yy_last_accepting_state; - yy_act = yy_accept[yy_current_state]; - } - - YY_DO_BEFORE_ACTION; - - -do_action: /* This label is used only to access EOF actions. */ - - - switch ( yy_act ) - { /* beginning of action switch */ - case 0: /* must back up */ - /* undo the effects of YY_DO_BEFORE_ACTION */ - *yy_cp = yy_hold_char; - yy_cp = yy_last_accepting_cpos; - yy_current_state = yy_last_accepting_state; - goto yy_find_action; - -case 1: -YY_RULE_SETUP -#line 300 "dcLexer.lxx" -{ - // New line. Save a copy of the line so we can print it out for the - // benefit of the user in case we get an error. - - strncpy(current_line, yytext+1, max_error_width); - current_line[max_error_width] = '\0'; - line_number++; - col_number=0; - - // Return the whole line to the lexer, except the newline character, - // which we eat. - yyless(1); -} - YY_BREAK -case 2: -YY_RULE_SETUP -#line 314 "dcLexer.lxx" -{ - // Eat whitespace. - accept(); -} - YY_BREAK -case 3: -YY_RULE_SETUP -#line 319 "dcLexer.lxx" -{ - // Eat C++-style comments. - accept(); -} - YY_BREAK -case 4: -YY_RULE_SETUP -#line 324 "dcLexer.lxx" -{ - // Eat C-style comments. - accept(); - eat_c_comment(); -} - YY_BREAK -case 5: -YY_RULE_SETUP -#line 331 "dcLexer.lxx" -{ - accept(); - return KW_DCLASS; -} - YY_BREAK -case 6: -YY_RULE_SETUP -#line 336 "dcLexer.lxx" -{ - accept(); - return KW_INT8; -} - YY_BREAK -case 7: -YY_RULE_SETUP -#line 341 "dcLexer.lxx" -{ - accept(); - return KW_INT16; -} - YY_BREAK -case 8: -YY_RULE_SETUP -#line 346 "dcLexer.lxx" -{ - accept(); - return KW_INT32; -} - YY_BREAK -case 9: -YY_RULE_SETUP -#line 351 "dcLexer.lxx" -{ - accept(); - return KW_INT64; -} - YY_BREAK -case 10: -YY_RULE_SETUP -#line 356 "dcLexer.lxx" -{ - accept(); - return KW_UINT8; -} - YY_BREAK -case 11: -YY_RULE_SETUP -#line 361 "dcLexer.lxx" -{ - accept(); - return KW_UINT16; -} - YY_BREAK -case 12: -YY_RULE_SETUP -#line 366 "dcLexer.lxx" -{ - accept(); - return KW_UINT32; -} - YY_BREAK -case 13: -YY_RULE_SETUP -#line 371 "dcLexer.lxx" -{ - accept(); - return KW_UINT64; -} - YY_BREAK -case 14: -YY_RULE_SETUP -#line 376 "dcLexer.lxx" -{ - accept(); - return KW_FLOAT64; -} - YY_BREAK -case 15: -YY_RULE_SETUP -#line 381 "dcLexer.lxx" -{ - accept(); - return KW_STRING; -} - YY_BREAK -case 16: -YY_RULE_SETUP -#line 386 "dcLexer.lxx" -{ - accept(); - return KW_BLOB; -} - YY_BREAK -case 17: -YY_RULE_SETUP -#line 391 "dcLexer.lxx" -{ - accept(); - return KW_INT8ARRAY; -} - YY_BREAK -case 18: -YY_RULE_SETUP -#line 396 "dcLexer.lxx" -{ - accept(); - return KW_INT16ARRAY; -} - YY_BREAK -case 19: -YY_RULE_SETUP -#line 401 "dcLexer.lxx" -{ - accept(); - return KW_INT32ARRAY; -} - YY_BREAK -case 20: -YY_RULE_SETUP -#line 406 "dcLexer.lxx" -{ - accept(); - return KW_UINT8ARRAY; -} - YY_BREAK -case 21: -YY_RULE_SETUP -#line 411 "dcLexer.lxx" -{ - accept(); - return KW_UINT16ARRAY; -} - YY_BREAK -case 22: -YY_RULE_SETUP -#line 416 "dcLexer.lxx" -{ - accept(); - return KW_UINT32ARRAY; -} - YY_BREAK -case 23: -YY_RULE_SETUP -#line 421 "dcLexer.lxx" -{ - accept(); - return KW_UINT32UINT8ARRAY; -} - YY_BREAK -case 24: -YY_RULE_SETUP -#line 426 "dcLexer.lxx" -{ - // A molecular keyword. - accept(); - dcyylval.u.integer = atoi(dcyytext + 3); - dcyylval.str = yytext; - return KW_MOL; -} - YY_BREAK -case 25: -YY_RULE_SETUP -#line 434 "dcLexer.lxx" -{ - accept(); - return KW_REQUIRED; -} - YY_BREAK -case 26: -YY_RULE_SETUP -#line 439 "dcLexer.lxx" -{ - accept(); - return KW_BROADCAST; -} - YY_BREAK -case 27: -YY_RULE_SETUP -#line 444 "dcLexer.lxx" -{ - accept(); - return KW_P2P; -} - YY_BREAK -case 28: -YY_RULE_SETUP -#line 449 "dcLexer.lxx" -{ - accept(); - return KW_RAM; -} - YY_BREAK -case 29: -YY_RULE_SETUP -#line 454 "dcLexer.lxx" -{ - accept(); - return KW_DB; -} - YY_BREAK -case 30: -YY_RULE_SETUP -#line 459 "dcLexer.lxx" -{ - accept(); - return KW_CLSEND; -} - YY_BREAK -case 31: -YY_RULE_SETUP -#line 464 "dcLexer.lxx" -{ - accept(); - return KW_CLRECV; -} - YY_BREAK -case 32: -YY_RULE_SETUP -#line 469 "dcLexer.lxx" -{ - accept(); - return KW_OWNSEND; -} - YY_BREAK -case 33: -YY_RULE_SETUP -#line 474 "dcLexer.lxx" -{ - // An integer number. - accept(); - dcyylval.u.integer = atoi(dcyytext); - dcyylval.str = yytext; - return INTEGER; -} - YY_BREAK -case 34: -YY_RULE_SETUP -#line 482 "dcLexer.lxx" -{ - // A hexadecimal integer number. - accept(); - dcyylval.u.integer = strtoul(yytext+2, NULL, 16); - dcyylval.str = yytext; - return INTEGER; -} - YY_BREAK -case 35: -YY_RULE_SETUP -#line 490 "dcLexer.lxx" -{ - // A floating-point number. - accept(); - dcyylval.u.real = atof(dcyytext); - dcyylval.str = yytext; - return REAL; -} - YY_BREAK -case 36: -YY_RULE_SETUP -#line 498 "dcLexer.lxx" -{ - // Quoted string. - accept(); - dcyylval.str = scan_quoted_string(); - return STRING; -} - YY_BREAK -case 37: -YY_RULE_SETUP -#line 505 "dcLexer.lxx" -{ - // Long hex string. - accept(); - dcyylval.str = scan_hex_string(); - return HEX_STRING; -} - YY_BREAK -case 38: -YY_RULE_SETUP -#line 512 "dcLexer.lxx" -{ - // Identifier. - accept(); - dcyylval.str = yytext; - return IDENTIFIER; -} - YY_BREAK -case 39: -YY_RULE_SETUP -#line 520 "dcLexer.lxx" -{ - // Send any other printable character as itself. - accept(); - return dcyytext[0]; -} - YY_BREAK -case 40: -YY_RULE_SETUP -#line 526 "dcLexer.lxx" -ECHO; - YY_BREAK -#line 1355 "lex.yy.c" -case YY_STATE_EOF(INITIAL): - yyterminate(); - - case YY_END_OF_BUFFER: - { - /* Amount of text matched not including the EOB char. */ - int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1; - - /* Undo the effects of YY_DO_BEFORE_ACTION. */ - *yy_cp = yy_hold_char; - - if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW ) - { - /* We're scanning a new file or input source. It's - * possible that this happened because the user - * just pointed yyin at a new source and called - * yylex(). If so, then we have to assure - * consistency between yy_current_buffer and our - * globals. Here is the right place to do so, because - * this is the first action (other than possibly a - * back-up) that will match for the new input source. - */ - yy_n_chars = yy_current_buffer->yy_n_chars; - yy_current_buffer->yy_input_file = yyin; - yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL; - } - - /* Note that here we test for yy_c_buf_p "<=" to the position - * of the first EOB in the buffer, since yy_c_buf_p will - * already have been incremented past the NUL character - * (since all states make transitions on EOB to the - * end-of-buffer state). Contrast this with the test - * in input(). - */ - if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] ) - { /* This was really a NUL. */ - yy_state_type yy_next_state; - - yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text; - - yy_current_state = yy_get_previous_state(); - - /* Okay, we're now positioned to make the NUL - * transition. We couldn't have - * yy_get_previous_state() go ahead and do it - * for us because it doesn't know how to deal - * with the possibility of jamming (and we don't - * want to build jamming into it because then it - * will run more slowly). - */ - - yy_next_state = yy_try_NUL_trans( yy_current_state ); - - yy_bp = yytext_ptr + YY_MORE_ADJ; - - if ( yy_next_state ) - { - /* Consume the NUL. */ - yy_cp = ++yy_c_buf_p; - yy_current_state = yy_next_state; - goto yy_match; - } - - else - { - yy_cp = yy_c_buf_p; - goto yy_find_action; - } - } - - else switch ( yy_get_next_buffer() ) - { - case EOB_ACT_END_OF_FILE: - { - yy_did_buffer_switch_on_eof = 0; - - if ( yywrap() ) - { - /* Note: because we've taken care in - * yy_get_next_buffer() to have set up - * yytext, we can now set up - * yy_c_buf_p so that if some total - * hoser (like flex itself) wants to - * call the scanner after we return the - * YY_NULL, it'll still work - another - * YY_NULL will get returned. - */ - yy_c_buf_p = yytext_ptr + YY_MORE_ADJ; - - yy_act = YY_STATE_EOF(YY_START); - goto do_action; - } - - else - { - if ( ! yy_did_buffer_switch_on_eof ) - YY_NEW_FILE; - } - break; - } - - case EOB_ACT_CONTINUE_SCAN: - yy_c_buf_p = - yytext_ptr + yy_amount_of_matched_text; - - yy_current_state = yy_get_previous_state(); - - yy_cp = yy_c_buf_p; - yy_bp = yytext_ptr + YY_MORE_ADJ; - goto yy_match; - - case EOB_ACT_LAST_MATCH: - yy_c_buf_p = - &yy_current_buffer->yy_ch_buf[yy_n_chars]; - - yy_current_state = yy_get_previous_state(); - - yy_cp = yy_c_buf_p; - yy_bp = yytext_ptr + YY_MORE_ADJ; - goto yy_find_action; - } - break; - } - - default: - YY_FATAL_ERROR( - "fatal flex scanner internal error--no action found" ); - } /* end of action switch */ - } /* end of scanning one token */ - } /* end of yylex */ - - -/* yy_get_next_buffer - try to read in a new buffer - * - * Returns a code representing an action: - * EOB_ACT_LAST_MATCH - - * EOB_ACT_CONTINUE_SCAN - continue scanning from current position - * EOB_ACT_END_OF_FILE - end of file - */ - -static int yy_get_next_buffer() - { - register char *dest = yy_current_buffer->yy_ch_buf; - register char *source = yytext_ptr; - register int number_to_move, i; - int ret_val; - - if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] ) - YY_FATAL_ERROR( - "fatal flex scanner internal error--end of buffer missed" ); - - if ( yy_current_buffer->yy_fill_buffer == 0 ) - { /* Don't try to fill the buffer, so this is an EOF. */ - if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 ) - { - /* We matched a singled characater, the EOB, so - * treat this as a final EOF. - */ - return EOB_ACT_END_OF_FILE; - } - - else - { - /* We matched some text prior to the EOB, first - * process it. - */ - return EOB_ACT_LAST_MATCH; - } - } - - /* Try to read more data. */ - - /* First move last chars to start of buffer. */ - number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1; - - for ( i = 0; i < number_to_move; ++i ) - *(dest++) = *(source++); - - if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING ) - /* don't do the read, it's not guaranteed to return an EOF, - * just force an EOF - */ - yy_n_chars = 0; - - else - { - int num_to_read = - yy_current_buffer->yy_buf_size - number_to_move - 1; - - while ( num_to_read <= 0 ) - { /* Not enough room in the buffer - grow it. */ -#ifdef YY_USES_REJECT - YY_FATAL_ERROR( -"input buffer overflow, can't enlarge buffer because scanner uses REJECT" ); -#else - - /* just a shorter name for the current buffer */ - YY_BUFFER_STATE b = yy_current_buffer; - - int yy_c_buf_p_offset = - (int) (yy_c_buf_p - b->yy_ch_buf); - - if ( b->yy_is_our_buffer ) - { - int new_size = b->yy_buf_size * 2; - - if ( new_size <= 0 ) - b->yy_buf_size += b->yy_buf_size / 8; - else - b->yy_buf_size *= 2; - - b->yy_ch_buf = (char *) - /* Include room in for 2 EOB chars. */ - yy_flex_realloc( (void *) b->yy_ch_buf, - b->yy_buf_size + 2 ); - } - else - /* Can't grow it, we don't own it. */ - b->yy_ch_buf = 0; - - if ( ! b->yy_ch_buf ) - YY_FATAL_ERROR( - "fatal error - scanner input buffer overflow" ); - - yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset]; - - num_to_read = yy_current_buffer->yy_buf_size - - number_to_move - 1; -#endif - } - - if ( num_to_read > YY_READ_BUF_SIZE ) - num_to_read = YY_READ_BUF_SIZE; - - /* Read in more data. */ - YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]), - yy_n_chars, num_to_read ); - } - - if ( yy_n_chars == 0 ) - { - if ( number_to_move == YY_MORE_ADJ ) - { - ret_val = EOB_ACT_END_OF_FILE; - yyrestart( yyin ); - } - - else - { - ret_val = EOB_ACT_LAST_MATCH; - yy_current_buffer->yy_buffer_status = - YY_BUFFER_EOF_PENDING; - } - } - - else - ret_val = EOB_ACT_CONTINUE_SCAN; - - yy_n_chars += number_to_move; - yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR; - yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR; - - yytext_ptr = &yy_current_buffer->yy_ch_buf[0]; - - return ret_val; - } - - -/* yy_get_previous_state - get the state just before the EOB char was reached */ - -static yy_state_type yy_get_previous_state() - { - register yy_state_type yy_current_state; - register char *yy_cp; - - yy_current_state = yy_start; - - for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp ) - { - register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); - if ( yy_accept[yy_current_state] ) - { - yy_last_accepting_state = yy_current_state; - yy_last_accepting_cpos = yy_cp; - } - while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) - { - yy_current_state = (int) yy_def[yy_current_state]; - if ( yy_current_state >= 157 ) - yy_c = yy_meta[(unsigned int) yy_c]; - } - yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; - } - - return yy_current_state; - } - - -/* yy_try_NUL_trans - try to make a transition on the NUL character - * - * synopsis - * next_state = yy_try_NUL_trans( current_state ); - */ - -#ifdef YY_USE_PROTOS -static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state ) -#else -static yy_state_type yy_try_NUL_trans( yy_current_state ) -yy_state_type yy_current_state; -#endif - { - register int yy_is_jam; - register char *yy_cp = yy_c_buf_p; - - register YY_CHAR yy_c = 1; - if ( yy_accept[yy_current_state] ) - { - yy_last_accepting_state = yy_current_state; - yy_last_accepting_cpos = yy_cp; - } - while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) - { - yy_current_state = (int) yy_def[yy_current_state]; - if ( yy_current_state >= 157 ) - 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 == 156); - - return yy_is_jam ? 0 : yy_current_state; - } - - -#ifndef YY_NO_UNPUT -#ifdef YY_USE_PROTOS -static void yyunput( int c, register char *yy_bp ) -#else -static void yyunput( c, yy_bp ) -int c; -register char *yy_bp; -#endif - { - register char *yy_cp = yy_c_buf_p; - - /* undo effects of setting up yytext */ - *yy_cp = yy_hold_char; - - if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 ) - { /* need to shift things up to make room */ - /* +2 for EOB chars. */ - register int number_to_move = yy_n_chars + 2; - register char *dest = &yy_current_buffer->yy_ch_buf[ - yy_current_buffer->yy_buf_size + 2]; - register char *source = - &yy_current_buffer->yy_ch_buf[number_to_move]; - - while ( source > yy_current_buffer->yy_ch_buf ) - *--dest = *--source; - - yy_cp += (int) (dest - source); - yy_bp += (int) (dest - source); - yy_n_chars = yy_current_buffer->yy_buf_size; - - if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 ) - YY_FATAL_ERROR( "flex scanner push-back overflow" ); - } - - *--yy_cp = (char) c; - - - yytext_ptr = yy_bp; - yy_hold_char = *yy_cp; - yy_c_buf_p = yy_cp; - } -#endif /* ifndef YY_NO_UNPUT */ - - -#ifdef __cplusplus -static int yyinput() -#else -static int input() -#endif - { - int c; - - *yy_c_buf_p = yy_hold_char; - - if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR ) - { - /* yy_c_buf_p now points to the character we want to return. - * If this occurs *before* the EOB characters, then it's a - * valid NUL; if not, then we've hit the end of the buffer. - */ - if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] ) - /* This was really a NUL. */ - *yy_c_buf_p = '\0'; - - else - { /* need more input */ - yytext_ptr = yy_c_buf_p; - ++yy_c_buf_p; - - switch ( yy_get_next_buffer() ) - { - case EOB_ACT_END_OF_FILE: - { - if ( yywrap() ) - { - yy_c_buf_p = - yytext_ptr + YY_MORE_ADJ; - return EOF; - } - - if ( ! yy_did_buffer_switch_on_eof ) - YY_NEW_FILE; -#ifdef __cplusplus - return yyinput(); -#else - return input(); -#endif - } - - case EOB_ACT_CONTINUE_SCAN: - yy_c_buf_p = yytext_ptr + YY_MORE_ADJ; - break; - - case EOB_ACT_LAST_MATCH: -#ifdef __cplusplus - YY_FATAL_ERROR( - "unexpected last match in yyinput()" ); -#else - YY_FATAL_ERROR( - "unexpected last match in input()" ); -#endif - } - } - } - - c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */ - *yy_c_buf_p = '\0'; /* preserve yytext */ - yy_hold_char = *++yy_c_buf_p; - - - return c; - } - - -#ifdef YY_USE_PROTOS -void yyrestart( FILE *input_file ) -#else -void yyrestart( input_file ) -FILE *input_file; -#endif - { - if ( ! yy_current_buffer ) - yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); - - yy_init_buffer( yy_current_buffer, input_file ); - yy_load_buffer_state(); - } - - -#ifdef YY_USE_PROTOS -void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer ) -#else -void yy_switch_to_buffer( new_buffer ) -YY_BUFFER_STATE new_buffer; -#endif - { - if ( yy_current_buffer == new_buffer ) - return; - - if ( yy_current_buffer ) - { - /* Flush out information for old buffer. */ - *yy_c_buf_p = yy_hold_char; - yy_current_buffer->yy_buf_pos = yy_c_buf_p; - yy_current_buffer->yy_n_chars = yy_n_chars; - } - - yy_current_buffer = new_buffer; - yy_load_buffer_state(); - - /* We don't actually know whether we did this switch during - * EOF (yywrap()) processing, but the only time this flag - * is looked at is after yywrap() is called, so it's safe - * to go ahead and always set it. - */ - yy_did_buffer_switch_on_eof = 1; - } - - -#ifdef YY_USE_PROTOS -void yy_load_buffer_state( void ) -#else -void yy_load_buffer_state() -#endif - { - yy_n_chars = yy_current_buffer->yy_n_chars; - yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos; - yyin = yy_current_buffer->yy_input_file; - yy_hold_char = *yy_c_buf_p; - } - - -#ifdef YY_USE_PROTOS -YY_BUFFER_STATE yy_create_buffer( FILE *file, int size ) -#else -YY_BUFFER_STATE yy_create_buffer( file, size ) -FILE *file; -int size; -#endif - { - YY_BUFFER_STATE b; - - b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) ); - if ( ! b ) - YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); - - b->yy_buf_size = size; - - /* yy_ch_buf has to be 2 characters longer than the size given because - * we need to put in 2 end-of-buffer characters. - */ - b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 ); - if ( ! b->yy_ch_buf ) - YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); - - b->yy_is_our_buffer = 1; - - yy_init_buffer( b, file ); - - return b; - } - - -#ifdef YY_USE_PROTOS -void yy_delete_buffer( YY_BUFFER_STATE b ) -#else -void yy_delete_buffer( b ) -YY_BUFFER_STATE b; -#endif - { - if ( ! b ) - return; - - if ( b == yy_current_buffer ) - yy_current_buffer = (YY_BUFFER_STATE) 0; - - if ( b->yy_is_our_buffer ) - yy_flex_free( (void *) b->yy_ch_buf ); - - yy_flex_free( (void *) b ); - } - - -#ifndef YY_ALWAYS_INTERACTIVE -#ifndef YY_NEVER_INTERACTIVE -extern int isatty YY_PROTO(( int )); -#endif -#endif - -#ifdef YY_USE_PROTOS -void yy_init_buffer( YY_BUFFER_STATE b, FILE *file ) -#else -void yy_init_buffer( b, file ) -YY_BUFFER_STATE b; -FILE *file; -#endif - - - { - yy_flush_buffer( b ); - - b->yy_input_file = file; - b->yy_fill_buffer = 1; - -#if YY_ALWAYS_INTERACTIVE - b->yy_is_interactive = 1; -#else -#if YY_NEVER_INTERACTIVE - b->yy_is_interactive = 0; -#else - b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; -#endif -#endif - } - - -#ifdef YY_USE_PROTOS -void yy_flush_buffer( YY_BUFFER_STATE b ) -#else -void yy_flush_buffer( b ) -YY_BUFFER_STATE b; -#endif - - { - b->yy_n_chars = 0; - - /* We always need two end-of-buffer characters. The first causes - * a transition to the end-of-buffer state. The second causes - * a jam in that state. - */ - b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; - b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; - - b->yy_buf_pos = &b->yy_ch_buf[0]; - - b->yy_at_bol = 1; - b->yy_buffer_status = YY_BUFFER_NEW; - - if ( b == yy_current_buffer ) - yy_load_buffer_state(); - } - - -#ifndef YY_NO_SCAN_BUFFER -#ifdef YY_USE_PROTOS -YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size ) -#else -YY_BUFFER_STATE yy_scan_buffer( base, size ) -char *base; -yy_size_t size; -#endif - { - YY_BUFFER_STATE b; - - if ( size < 2 || - base[size-2] != YY_END_OF_BUFFER_CHAR || - base[size-1] != YY_END_OF_BUFFER_CHAR ) - /* They forgot to leave room for the EOB's. */ - return 0; - - b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) ); - if ( ! b ) - YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" ); - - b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */ - b->yy_buf_pos = b->yy_ch_buf = base; - b->yy_is_our_buffer = 0; - b->yy_input_file = 0; - b->yy_n_chars = b->yy_buf_size; - b->yy_is_interactive = 0; - b->yy_at_bol = 1; - b->yy_fill_buffer = 0; - b->yy_buffer_status = YY_BUFFER_NEW; - - yy_switch_to_buffer( b ); - - return b; - } -#endif - - -#ifndef YY_NO_SCAN_STRING -#ifdef YY_USE_PROTOS -YY_BUFFER_STATE yy_scan_string( yyconst char *str ) -#else -YY_BUFFER_STATE yy_scan_string( str ) -yyconst char *str; -#endif - { - int len; - for ( len = 0; str[len]; ++len ) - ; - - return yy_scan_bytes( str, len ); - } -#endif - - -#ifndef YY_NO_SCAN_BYTES -#ifdef YY_USE_PROTOS -YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len ) -#else -YY_BUFFER_STATE yy_scan_bytes( bytes, len ) -yyconst char *bytes; -int len; -#endif - { - YY_BUFFER_STATE b; - char *buf; - yy_size_t n; - int i; - - /* Get memory for full buffer, including space for trailing EOB's. */ - n = len + 2; - buf = (char *) yy_flex_alloc( n ); - if ( ! buf ) - YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" ); - - for ( i = 0; i < len; ++i ) - buf[i] = bytes[i]; - - buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR; - - b = yy_scan_buffer( buf, n ); - if ( ! b ) - YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" ); - - /* It's okay to grow etc. this buffer, and we should throw it - * away when we're done. - */ - b->yy_is_our_buffer = 1; - - return b; - } -#endif - - -#ifndef YY_NO_PUSH_STATE -#ifdef YY_USE_PROTOS -static void yy_push_state( int new_state ) -#else -static void yy_push_state( new_state ) -int new_state; -#endif - { - if ( yy_start_stack_ptr >= yy_start_stack_depth ) - { - yy_size_t new_size; - - yy_start_stack_depth += YY_START_STACK_INCR; - new_size = yy_start_stack_depth * sizeof( int ); - - if ( ! yy_start_stack ) - yy_start_stack = (int *) yy_flex_alloc( new_size ); - - else - yy_start_stack = (int *) yy_flex_realloc( - (void *) yy_start_stack, new_size ); - - if ( ! yy_start_stack ) - YY_FATAL_ERROR( - "out of memory expanding start-condition stack" ); - } - - yy_start_stack[yy_start_stack_ptr++] = YY_START; - - BEGIN(new_state); - } -#endif - - -#ifndef YY_NO_POP_STATE -static void yy_pop_state() - { - if ( --yy_start_stack_ptr < 0 ) - YY_FATAL_ERROR( "start-condition stack underflow" ); - - BEGIN(yy_start_stack[yy_start_stack_ptr]); - } -#endif - - -#ifndef YY_NO_TOP_STATE -static int yy_top_state() - { - return yy_start_stack[yy_start_stack_ptr - 1]; - } -#endif - -#ifndef YY_EXIT_FAILURE -#define YY_EXIT_FAILURE 2 -#endif - -#ifdef YY_USE_PROTOS -static void yy_fatal_error( yyconst char msg[] ) -#else -static void yy_fatal_error( msg ) -char msg[]; -#endif - { - (void) fprintf( stderr, "%s\n", msg ); - exit( YY_EXIT_FAILURE ); - } - - - -/* Redefine yyless() so it works in section 3 code. */ - -#undef yyless -#define yyless(n) \ - do \ - { \ - /* Undo effects of setting up yytext. */ \ - yytext[yyleng] = yy_hold_char; \ - yy_c_buf_p = yytext + n - YY_MORE_ADJ; \ - yy_hold_char = *yy_c_buf_p; \ - *yy_c_buf_p = '\0'; \ - yyleng = n; \ - } \ - while ( 0 ) - - -/* Internal utility routines. */ - -#ifndef yytext_ptr -#ifdef YY_USE_PROTOS -static void yy_flex_strncpy( char *s1, yyconst char *s2, int n ) -#else -static void yy_flex_strncpy( s1, s2, n ) -char *s1; -yyconst char *s2; -int n; -#endif - { - register int i; - for ( i = 0; i < n; ++i ) - s1[i] = s2[i]; - } -#endif - - -#ifdef YY_USE_PROTOS -static void *yy_flex_alloc( yy_size_t size ) -#else -static void *yy_flex_alloc( size ) -yy_size_t size; -#endif - { - return (void *) malloc( size ); - } - -#ifdef YY_USE_PROTOS -static void *yy_flex_realloc( void *ptr, yy_size_t size ) -#else -static void *yy_flex_realloc( ptr, size ) -void *ptr; -yy_size_t size; -#endif - { - /* The cast to (char *) in the following accommodates both - * implementations that use char* generic pointers, and those - * that use void* generic pointers. It works with the latter - * because both ANSI C and C++ allow castless assignment from - * any pointer type to void*, and deal with argument conversions - * as though doing an assignment. - */ - return (void *) realloc( (char *) ptr, size ); - } - -#ifdef YY_USE_PROTOS -static void yy_flex_free( void *ptr ) -#else -static void yy_flex_free( ptr ) -void *ptr; -#endif - { - free( ptr ); - } - -#if YY_MAIN -int main() - { - yylex(); - return 0; - } -#endif -#line 526 "dcLexer.lxx" +#define yy_create_buffer dcyy_create_buffer +#define yy_delete_buffer dcyy_delete_buffer +#define yy_scan_buffer dcyy_scan_buffer +#define yy_scan_string dcyy_scan_string +#define yy_scan_bytes dcyy_scan_bytes +#define yy_flex_debug dcyy_flex_debug +#define yy_init_buffer dcyy_init_buffer +#define yy_flush_buffer dcyy_flush_buffer +#define yy_load_buffer_state dcyy_load_buffer_state +#define yy_switch_to_buffer dcyy_switch_to_buffer +#define yyin dcyyin +#define yyleng dcyyleng +#define yylex dcyylex +#define yyout dcyyout +#define yyrestart dcyyrestart +#define yytext dcyytext +#define yywrap dcyywrap + +#line 20 "lex.yy.c" +/* A lexical scanner generated by flex */ + +/* Scanner skeleton version: + * $Header$ + */ + +#define FLEX_SCANNER +#define YY_FLEX_MAJOR_VERSION 2 +#define YY_FLEX_MINOR_VERSION 5 + +#include + + +/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */ +#ifdef c_plusplus +#ifndef __cplusplus +#define __cplusplus +#endif +#endif + + +#ifdef __cplusplus + +#include + +/* Use prototypes in function declarations. */ +#define YY_USE_PROTOS + +/* The "const" storage-class-modifier is valid. */ +#define YY_USE_CONST + +#else /* ! __cplusplus */ + +#if __STDC__ + +#define YY_USE_PROTOS +#define YY_USE_CONST + +#endif /* __STDC__ */ +#endif /* ! __cplusplus */ + +#ifdef __TURBOC__ + #pragma warn -rch + #pragma warn -use +#include +#include +#define YY_USE_CONST +#define YY_USE_PROTOS +#endif + +#ifdef YY_USE_CONST +#define yyconst const +#else +#define yyconst +#endif + + +#ifdef YY_USE_PROTOS +#define YY_PROTO(proto) proto +#else +#define YY_PROTO(proto) () +#endif + +/* Returned upon end-of-file. */ +#define YY_NULL 0 + +/* Promotes a possibly negative, possibly signed char to an unsigned + * integer for use as an array index. If the signed char is negative, + * we want to instead treat it as an 8-bit unsigned char, hence the + * double cast. + */ +#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) + +/* Enter a start condition. This macro really ought to take a parameter, + * but we do it the disgusting crufty way forced on us by the ()-less + * definition of BEGIN. + */ +#define BEGIN yy_start = 1 + 2 * + +/* Translate the current start state into a value that can be later handed + * to BEGIN to return to the state. The YYSTATE alias is for lex + * compatibility. + */ +#define YY_START ((yy_start - 1) / 2) +#define YYSTATE YY_START + +/* Action number for EOF rule of a given start state. */ +#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) + +/* Special action meaning "start processing a new file". */ +#define YY_NEW_FILE yyrestart( yyin ) + +#define YY_END_OF_BUFFER_CHAR 0 + +/* Size of default input buffer. */ +#define YY_BUF_SIZE 16384 + +typedef struct yy_buffer_state *YY_BUFFER_STATE; + +extern int yyleng; +extern FILE *yyin, *yyout; + +#define EOB_ACT_CONTINUE_SCAN 0 +#define EOB_ACT_END_OF_FILE 1 +#define EOB_ACT_LAST_MATCH 2 + +/* The funky do-while in the following #define is used to turn the definition + * int a single C statement (which needs a semi-colon terminator). This + * avoids problems with code like: + * + * if ( condition_holds ) + * yyless( 5 ); + * else + * do_something_else(); + * + * Prior to using the do-while the compiler would get upset at the + * "else" because it interpreted the "if" statement as being all + * done when it reached the ';' after the yyless() call. + */ + +/* Return all but the first 'n' matched characters back to the input stream. */ + +#define yyless(n) \ + do \ + { \ + /* Undo effects of setting up yytext. */ \ + *yy_cp = yy_hold_char; \ + YY_RESTORE_YY_MORE_OFFSET \ + yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \ + YY_DO_BEFORE_ACTION; /* set up yytext again */ \ + } \ + while ( 0 ) + +#define unput(c) yyunput( c, yytext_ptr ) + +/* The following is because we cannot portably get our hands on size_t + * (without autoconf's help, which isn't available because we want + * flex-generated scanners to compile on their own). + */ +typedef unsigned int yy_size_t; + + +struct yy_buffer_state + { + FILE *yy_input_file; + + char *yy_ch_buf; /* input buffer */ + char *yy_buf_pos; /* current position in input buffer */ + + /* Size of input buffer in bytes, not including room for EOB + * characters. + */ + yy_size_t yy_buf_size; + + /* Number of characters read into yy_ch_buf, not including EOB + * characters. + */ + int yy_n_chars; + + /* Whether we "own" the buffer - i.e., we know we created it, + * and can realloc() it to grow it, and should free() it to + * delete it. + */ + int yy_is_our_buffer; + + /* Whether this is an "interactive" input source; if so, and + * if we're using stdio for input, then we want to use getc() + * instead of fread(), to make sure we stop fetching input after + * each newline. + */ + int yy_is_interactive; + + /* Whether we're considered to be at the beginning of a line. + * If so, '^' rules will be active on the next match, otherwise + * not. + */ + int yy_at_bol; + + /* Whether to try to fill the input buffer when we reach the + * end of it. + */ + int yy_fill_buffer; + + int yy_buffer_status; +#define YY_BUFFER_NEW 0 +#define YY_BUFFER_NORMAL 1 + /* When an EOF's been seen but there's still some text to process + * then we mark the buffer as YY_EOF_PENDING, to indicate that we + * shouldn't try reading from the input source any more. We might + * still have a bunch of tokens to match, though, because of + * possible backing-up. + * + * When we actually see the EOF, we change the status to "new" + * (via yyrestart()), so that the user can continue scanning by + * just pointing yyin at a new input file. + */ +#define YY_BUFFER_EOF_PENDING 2 + }; + +static YY_BUFFER_STATE yy_current_buffer = 0; + +/* We provide macros for accessing buffer states in case in the + * future we want to put the buffer states in a more general + * "scanner state". + */ +#define YY_CURRENT_BUFFER yy_current_buffer + + +/* yy_hold_char holds the character lost when yytext is formed. */ +static char yy_hold_char; + +static int yy_n_chars; /* number of characters read into yy_ch_buf */ + + +int yyleng; + +/* Points to current character in buffer. */ +static char *yy_c_buf_p = (char *) 0; +static int yy_init = 1; /* whether we need to initialize */ +static int yy_start = 0; /* start state number */ + +/* Flag which is used to allow yywrap()'s to do buffer switches + * instead of setting up a fresh yyin. A bit of a hack ... + */ +static int yy_did_buffer_switch_on_eof; + +void yyrestart YY_PROTO(( FILE *input_file )); + +void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer )); +void yy_load_buffer_state YY_PROTO(( void )); +YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size )); +void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b )); +void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file )); +void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b )); +#define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer ) + +YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size )); +YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str )); +YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len )); + +static void *yy_flex_alloc YY_PROTO(( yy_size_t )); +static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t )); +static void yy_flex_free YY_PROTO(( void * )); + +#define yy_new_buffer yy_create_buffer + +#define yy_set_interactive(is_interactive) \ + { \ + if ( ! yy_current_buffer ) \ + yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \ + yy_current_buffer->yy_is_interactive = is_interactive; \ + } + +#define yy_set_bol(at_bol) \ + { \ + if ( ! yy_current_buffer ) \ + yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \ + yy_current_buffer->yy_at_bol = at_bol; \ + } + +#define YY_AT_BOL() (yy_current_buffer->yy_at_bol) + +typedef unsigned char YY_CHAR; +FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0; +typedef int yy_state_type; +extern char *yytext; +#define yytext_ptr yytext + +static yy_state_type yy_get_previous_state YY_PROTO(( void )); +static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state )); +static int yy_get_next_buffer YY_PROTO(( void )); +static void yy_fatal_error YY_PROTO(( yyconst char msg[] )); + +/* Done after the current pattern has been matched and before the + * corresponding action - sets up yytext. + */ +#define YY_DO_BEFORE_ACTION \ + yytext_ptr = yy_bp; \ + yyleng = (int) (yy_cp - yy_bp); \ + yy_hold_char = *yy_cp; \ + *yy_cp = '\0'; \ + yy_c_buf_p = yy_cp; + +#define YY_NUM_RULES 40 +#define YY_END_OF_BUFFER 41 +static yyconst short int yy_accept[157] = + { 0, + 0, 0, 41, 39, 2, 1, 36, 39, 39, 39, + 33, 33, 37, 38, 38, 38, 38, 38, 38, 38, + 38, 38, 38, 38, 38, 1, 0, 33, 35, 4, + 3, 35, 34, 38, 38, 38, 38, 29, 38, 38, + 38, 38, 38, 38, 38, 38, 38, 38, 0, 3, + 34, 38, 38, 38, 38, 38, 38, 38, 38, 38, + 27, 28, 38, 38, 38, 0, 35, 16, 38, 38, + 38, 38, 38, 38, 38, 38, 6, 24, 38, 38, + 38, 38, 38, 38, 38, 38, 38, 7, 8, 9, + 38, 38, 38, 38, 38, 38, 38, 10, 38, 31, + + 30, 5, 38, 38, 38, 38, 38, 38, 15, 11, + 12, 13, 38, 38, 14, 38, 38, 38, 32, 38, + 38, 38, 38, 38, 38, 38, 38, 38, 25, 38, + 38, 38, 38, 26, 38, 38, 17, 38, 38, 38, + 38, 18, 19, 38, 38, 38, 20, 21, 22, 38, + 38, 38, 38, 38, 23, 0 + } ; + +static yyconst int yy_ec[256] = + { 0, + 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, + 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 2, 1, 4, 1, 1, 1, 1, 1, 1, + 1, 5, 6, 1, 6, 7, 8, 9, 10, 11, + 12, 13, 14, 15, 14, 16, 14, 1, 1, 17, + 1, 1, 1, 1, 18, 18, 18, 18, 19, 18, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 1, 1, 1, 1, 20, 1, 21, 22, 23, 24, + + 25, 26, 27, 20, 28, 20, 20, 29, 30, 31, + 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, + 42, 20, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1 + } ; + +static yyconst int yy_meta[43] = + { 0, + 1, 1, 2, 1, 1, 3, 4, 1, 5, 5, + 5, 5, 5, 5, 5, 5, 1, 6, 6, 7, + 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, + 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, + 7, 7 + } ; + +static yyconst short int yy_base[164] = + { 0, + 0, 0, 200, 201, 201, 0, 201, 192, 0, 38, + 37, 191, 201, 0, 16, 168, 25, 167, 164, 162, + 153, 181, 28, 154, 162, 0, 0, 182, 31, 201, + 0, 0, 0, 0, 156, 155, 19, 0, 157, 153, + 147, 154, 151, 148, 150, 145, 143, 146, 170, 0, + 0, 153, 153, 148, 147, 150, 149, 47, 70, 133, + 0, 0, 130, 139, 129, 159, 158, 0, 139, 139, + 130, 124, 122, 143, 146, 143, 134, 0, 129, 125, + 121, 54, 128, 111, 125, 112, 132, 125, 124, 0, + 109, 112, 107, 114, 125, 128, 125, 116, 115, 0, + + 0, 0, 122, 99, 98, 97, 107, 105, 0, 108, + 37, 0, 93, 91, 0, 91, 90, 103, 0, 99, + 87, 86, 92, 84, 81, 96, 95, 73, 0, 79, + 78, 81, 90, 0, 67, 58, 0, 67, 56, 39, + 32, 0, 0, 31, 30, 55, 0, 0, 0, 47, + 32, 30, 40, 18, 0, 201, 86, 90, 47, 91, + 98, 101, 105 + } ; + +static yyconst short int yy_def[164] = + { 0, + 156, 1, 156, 156, 156, 157, 156, 158, 159, 156, + 158, 158, 156, 160, 160, 160, 160, 160, 160, 160, + 160, 160, 160, 160, 160, 157, 159, 158, 159, 156, + 161, 29, 162, 160, 160, 160, 160, 160, 160, 160, + 160, 160, 160, 160, 160, 160, 160, 160, 163, 161, + 162, 160, 160, 160, 160, 160, 160, 160, 160, 160, + 160, 160, 160, 160, 160, 163, 163, 160, 160, 160, + 160, 160, 160, 160, 160, 160, 160, 59, 160, 160, + 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, + 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, + + 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, + 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, + 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, + 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, + 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, + 160, 160, 160, 160, 160, 0, 156, 156, 156, 156, + 156, 156, 156 + } ; + +static yyconst short int yy_nxt[244] = + { 0, + 4, 5, 6, 7, 4, 8, 9, 10, 11, 12, + 12, 12, 12, 12, 12, 12, 13, 14, 14, 14, + 14, 15, 16, 17, 14, 18, 14, 19, 14, 20, + 14, 21, 22, 14, 23, 24, 14, 25, 14, 14, + 14, 14, 30, 32, 35, 31, 38, 39, 45, 49, + 36, 29, 46, 54, 55, 49, 74, 122, 75, 155, + 154, 76, 77, 95, 153, 96, 152, 151, 97, 98, + 150, 149, 148, 147, 123, 146, 145, 33, 78, 78, + 78, 78, 78, 78, 78, 78, 26, 144, 26, 26, + 26, 26, 26, 28, 28, 34, 34, 34, 50, 143, + + 50, 50, 50, 50, 50, 51, 51, 67, 142, 67, + 141, 140, 139, 138, 137, 136, 135, 134, 133, 132, + 131, 130, 129, 128, 127, 126, 125, 124, 121, 120, + 119, 118, 117, 116, 115, 114, 113, 112, 111, 110, + 109, 108, 107, 106, 105, 104, 103, 102, 101, 100, + 99, 94, 93, 92, 91, 90, 89, 88, 87, 86, + 85, 84, 83, 156, 156, 82, 81, 80, 79, 73, + 72, 71, 70, 69, 68, 66, 65, 64, 63, 62, + 61, 60, 59, 58, 57, 56, 53, 52, 32, 48, + 47, 44, 43, 42, 41, 40, 37, 32, 27, 156, + + 3, 156, 156, 156, 156, 156, 156, 156, 156, 156, + 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, + 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, + 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, + 156, 156, 156 + } ; + +static yyconst short int yy_chk[244] = + { 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, 10, 11, 15, 10, 17, 17, 23, 29, + 15, 159, 23, 37, 37, 29, 58, 111, 58, 154, + 153, 58, 58, 82, 152, 82, 151, 150, 82, 82, + 146, 145, 144, 141, 111, 140, 139, 11, 59, 59, + 59, 59, 59, 59, 59, 59, 157, 138, 157, 157, + 157, 157, 157, 158, 158, 160, 160, 160, 161, 136, + + 161, 161, 161, 161, 161, 162, 162, 163, 135, 163, + 133, 132, 131, 130, 128, 127, 126, 125, 124, 123, + 122, 121, 120, 118, 117, 116, 114, 113, 110, 108, + 107, 106, 105, 104, 103, 99, 98, 97, 96, 95, + 94, 93, 92, 91, 89, 88, 87, 86, 85, 84, + 83, 81, 80, 79, 77, 76, 75, 74, 73, 72, + 71, 70, 69, 67, 66, 65, 64, 63, 60, 57, + 56, 55, 54, 53, 52, 49, 48, 47, 46, 45, + 44, 43, 42, 41, 40, 39, 36, 35, 28, 25, + 24, 22, 21, 20, 19, 18, 16, 12, 8, 3, + + 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, + 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, + 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, + 156, 156, 156, 156, 156, 156, 156, 156, 156, 156, + 156, 156, 156 + } ; + +static yy_state_type yy_last_accepting_state; +static char *yy_last_accepting_cpos; + +/* The intent behind this definition is that it'll catch + * any uses of REJECT which flex missed. + */ +#define REJECT reject_used_but_not_detected +#define yymore() yymore_used_but_not_detected +#define YY_MORE_ADJ 0 +#define YY_RESTORE_YY_MORE_OFFSET +char *yytext; +#line 1 "dcLexer.lxx" +#define INITIAL 0 +/* +// Filename: dcLexer.lxx +// Created by: drose (05Oct00) +// +//////////////////////////////////////////////////////////////////// +*/ +#line 9 "dcLexer.lxx" +#include "dcLexerDefs.h" +#include "dcParserDefs.h" +#include "dcParser.h" +#include "dcindent.h" + + +static int yyinput(void); // declared by flex. +extern "C" int dcyywrap(); + +//////////////////////////////////////////////////////////////////// +// Static variables +//////////////////////////////////////////////////////////////////// + +// We'll increment line_number and col_number as we parse the file, so +// that we can report the position of an error. +static int line_number = 0; +static int col_number = 0; + +// current_line holds as much of the current line as will fit. Its +// only purpose is for printing it out to report an error to the user. +static const int max_error_width = 1024; +static char current_line[max_error_width + 1]; + +static int error_count = 0; +static int warning_count = 0; + +// This is the pointer to the current input stream. +static istream *inp = NULL; + +// This is the name of the dc file we're parsing. We keep it so we +// can print it out for error messages. +static string dc_filename; + + +//////////////////////////////////////////////////////////////////// +// Defining the interface to the lexer. +//////////////////////////////////////////////////////////////////// + +void +dc_init_lexer(istream &in, const string &filename) { + inp = ∈ + dc_filename = filename; + line_number = 0; + col_number = 0; + error_count = 0; + warning_count = 0; +} + +int +dc_error_count() { + return error_count; +} + +int +dc_warning_count() { + return warning_count; +} + + +//////////////////////////////////////////////////////////////////// +// Internal support functions. +//////////////////////////////////////////////////////////////////// + +int +dcyywrap(void) { + return 1; +} + +void +dcyyerror(const string &msg) { + cerr << "\nError"; + if (!dc_filename.empty()) { + cerr << " in " << dc_filename; + } + cerr + << " at line " << line_number << ", column " << col_number << ":\n" + << current_line << "\n"; + indent(cerr, col_number-1) + << "^\n" << msg << "\n\n"; + + error_count++; +} + +void +dcyywarning(const string &msg) { + cerr << "\nWarning"; + if (!dc_filename.empty()) { + cerr << " in " << dc_filename; + } + cerr + << " at line " << line_number << ", column " << col_number << ":\n" + << current_line << "\n"; + indent(cerr, col_number-1) + << "^\n" << msg << "\n\n"; + + warning_count++; +} + +// Now define a function to take input from an istream instead of a +// stdio FILE pointer. This is flex-specific. +static void +input_chars(char *buffer, int &result, int max_size) { + nassertv(inp != NULL); + if (*inp) { + inp->read(buffer, max_size); + result = inp->gcount(); + + if (line_number == 0) { + // This is a special case. If we are reading the very first bit + // from the stream, copy it into the current_line array. This + // is because the \n.* rule below, which fills current_line + // normally, doesn't catch the first line. + strncpy(current_line, yytext, max_error_width); + current_line[max_error_width] = '\0'; + line_number++; + col_number = 0; + + // Truncate it at the newline. + char *end = strchr(current_line, '\n'); + if (end != NULL) { + *end = '\0'; + } + } + + } else { + // End of file or I/O error. + result = 0; + } +} +#undef YY_INPUT +#define YY_INPUT(buffer, result, max_size) input_chars(buffer, result, max_size) + +// read_char reads and returns a single character, incrementing the +// supplied line and column numbers as appropriate. A convenience +// function for the scanning functions below. +static int +read_char(int &line, int &col) { + int c = yyinput(); + if (c == '\n') { + line++; + col = 0; + } else { + col++; + } + return c; +} + +// scan_quoted_string reads a string delimited by quotation marks and +// returns it. +static string +scan_quoted_string() { + string result; + + // We don't touch the current line number and column number during + // scanning, so that if we detect an error while scanning the string + // (e.g. an unterminated string), we'll report the error as + // occurring at the start of the string, not at the end--somewhat + // more convenient for the user. + + // Instead of adjusting the global line_number and col_number + // variables, we'll operate on our own local variables for the + // interim. + int line = line_number; + int col = col_number; + + int c; + c = read_char(line, col); + while (c != '"' && c != EOF) { + result += c; + c = read_char(line, col); + } + + if (c == EOF) { + dcyyerror("This quotation mark is unterminated."); + } + + line_number = line; + col_number = col; + + return result; +} + +// scan_hex_string reads a string of hexadecimal digits delimited by +// angle brackets and returns the representative string. +static string +scan_hex_string() { + string result; + + // We don't touch the current line number and column number during + // scanning, so that if we detect an error while scanning the string + // (e.g. an unterminated string), we'll report the error as + // occurring at the start of the string, not at the end--somewhat + // more convenient for the user. + + // Instead of adjusting the global line_number and col_number + // variables, we'll operate on our own local variables for the + // interim. + int line = line_number; + int col = col_number; + + bool odd = false; + int last = 0; + int c; + c = read_char(line, col); + while (c != '>' && c != EOF) { + int value; + if (c >= '0' && c <= '9') { + value = c - '0'; + } else if (c >= 'a' && c <= 'f') { + value = c - 'a' + 10; + } else if (c >= 'A' && c <= 'F') { + value = c - 'A' + 10; + } else { + line_number = line; + col_number = col; + dcyyerror("Invalid hex digit."); + return string(); + } + + odd = !odd; + if (odd) { + last = value; + } else { + result += (char)((last << 4) | value); + } + c = read_char(line, col); + } + + if (c == EOF) { + dcyyerror("This hex string is unterminated."); + return string(); + } else if (odd) { + dcyyerror("Odd number of hex digits."); + return string(); + } + + line_number = line; + col_number = col; + + return result; +} + +// eat_c_comment scans past all characters up until the first */ +// encountered. +static void +eat_c_comment() { + // As above, we'll operate on our own local copies of line_number + // and col_number within this function. + + int line = line_number; + int col = col_number; + + int c, last_c; + + last_c = '\0'; + c = read_char(line, col); + while (c != EOF && !(last_c == '*' && c == '/')) { + if (last_c == '/' && c == '*') { + dcyywarning("This comment contains a nested /* symbol--possibly unclosed?"); + } + last_c = c; + c = read_char(line, col); + } + + if (c == EOF) { + dcyyerror("This comment marker is unclosed."); + } + + line_number = line; + col_number = col; +} + + + +// accept() is called below as each piece is pulled off and +// accepted by the lexer; it increments the current column number. +inline void accept() { + col_number += yyleng; +} + +#line 775 "lex.yy.c" + +/* Macros after this point can all be overridden by user definitions in + * section 1. + */ + +#ifndef YY_SKIP_YYWRAP +#ifdef __cplusplus +extern "C" int yywrap YY_PROTO(( void )); +#else +extern int yywrap YY_PROTO(( void )); +#endif +#endif + +#ifndef YY_NO_UNPUT +static void yyunput YY_PROTO(( int c, char *buf_ptr )); +#endif + +#ifndef yytext_ptr +static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int )); +#endif + +#ifdef YY_NEED_STRLEN +static int yy_flex_strlen YY_PROTO(( yyconst char * )); +#endif + +#ifndef YY_NO_INPUT +#ifdef __cplusplus +static int yyinput YY_PROTO(( void )); +#else +static int input YY_PROTO(( void )); +#endif +#endif + +#if YY_STACK_USED +static int yy_start_stack_ptr = 0; +static int yy_start_stack_depth = 0; +static int *yy_start_stack = 0; +#ifndef YY_NO_PUSH_STATE +static void yy_push_state YY_PROTO(( int new_state )); +#endif +#ifndef YY_NO_POP_STATE +static void yy_pop_state YY_PROTO(( void )); +#endif +#ifndef YY_NO_TOP_STATE +static int yy_top_state YY_PROTO(( void )); +#endif + +#else +#define YY_NO_PUSH_STATE 1 +#define YY_NO_POP_STATE 1 +#define YY_NO_TOP_STATE 1 +#endif + +#ifdef YY_MALLOC_DECL +YY_MALLOC_DECL +#else +#if __STDC__ +#ifndef __cplusplus +#include +#endif +#else +/* Just try to get by without declaring the routines. This will fail + * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int) + * or sizeof(void*) != sizeof(int). + */ +#endif +#endif + +/* Amount of stuff to slurp up with each read. */ +#ifndef YY_READ_BUF_SIZE +#define YY_READ_BUF_SIZE 8192 +#endif + +/* Copy whatever the last rule matched to the standard output. */ + +#ifndef ECHO +/* This used to be an fputs(), but since the string might contain NUL's, + * we now use fwrite(). + */ +#define ECHO (void) fwrite( yytext, yyleng, 1, yyout ) +#endif + +/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, + * is returned in "result". + */ +#ifndef YY_INPUT +#define YY_INPUT(buf,result,max_size) \ + if ( yy_current_buffer->yy_is_interactive ) \ + { \ + int c = '*', n; \ + for ( n = 0; n < max_size && \ + (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ + buf[n] = (char) c; \ + if ( c == '\n' ) \ + buf[n++] = (char) c; \ + if ( c == EOF && ferror( yyin ) ) \ + YY_FATAL_ERROR( "input in flex scanner failed" ); \ + result = n; \ + } \ + else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \ + && ferror( yyin ) ) \ + YY_FATAL_ERROR( "input in flex scanner failed" ); +#endif + +/* No semi-colon after return; correct usage is to write "yyterminate();" - + * we don't want an extra ';' after the "return" because that will cause + * some compilers to complain about unreachable statements. + */ +#ifndef yyterminate +#define yyterminate() return YY_NULL +#endif + +/* Number of entries by which start-condition stack grows. */ +#ifndef YY_START_STACK_INCR +#define YY_START_STACK_INCR 25 +#endif + +/* Report a fatal error. */ +#ifndef YY_FATAL_ERROR +#define YY_FATAL_ERROR(msg) yy_fatal_error( msg ) +#endif + +/* Default declaration of generated scanner - a define so the user can + * easily add parameters. + */ +#ifndef YY_DECL +#define YY_DECL int yylex YY_PROTO(( void )) +#endif + +/* Code executed at the beginning of each rule, after yytext and yyleng + * have been set up. + */ +#ifndef YY_USER_ACTION +#define YY_USER_ACTION +#endif + +/* Code executed at the end of each rule. */ +#ifndef YY_BREAK +#define YY_BREAK break; +#endif + +#define YY_RULE_SETUP \ + YY_USER_ACTION + +YY_DECL + { + register yy_state_type yy_current_state; + register char *yy_cp = NULL, *yy_bp = NULL; + register int yy_act; + +#line 295 "dcLexer.lxx" + + + + + +#line 932 "lex.yy.c" + + if ( yy_init ) + { + yy_init = 0; + +#ifdef YY_USER_INIT + YY_USER_INIT; +#endif + + if ( ! yy_start ) + yy_start = 1; /* first start state */ + + if ( ! yyin ) + yyin = stdin; + + if ( ! yyout ) + yyout = stdout; + + if ( ! yy_current_buffer ) + yy_current_buffer = + yy_create_buffer( yyin, YY_BUF_SIZE ); + + yy_load_buffer_state(); + } + + while ( 1 ) /* loops until end-of-file is reached */ + { + yy_cp = yy_c_buf_p; + + /* Support of yytext. */ + *yy_cp = yy_hold_char; + + /* yy_bp points to the position in yy_ch_buf of the start of + * the current run. + */ + yy_bp = yy_cp; + + yy_current_state = yy_start; +yy_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 >= 157 ) + 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] != 201 ); + +yy_find_action: + yy_act = yy_accept[yy_current_state]; + if ( yy_act == 0 ) + { /* have to back up */ + yy_cp = yy_last_accepting_cpos; + yy_current_state = yy_last_accepting_state; + yy_act = yy_accept[yy_current_state]; + } + + YY_DO_BEFORE_ACTION; + + +do_action: /* This label is used only to access EOF actions. */ + + + switch ( yy_act ) + { /* beginning of action switch */ + case 0: /* must back up */ + /* undo the effects of YY_DO_BEFORE_ACTION */ + *yy_cp = yy_hold_char; + yy_cp = yy_last_accepting_cpos; + yy_current_state = yy_last_accepting_state; + goto yy_find_action; + +case 1: +YY_RULE_SETUP +#line 300 "dcLexer.lxx" +{ + // New line. Save a copy of the line so we can print it out for the + // benefit of the user in case we get an error. + + strncpy(current_line, yytext+1, max_error_width); + current_line[max_error_width] = '\0'; + line_number++; + col_number=0; + + // Return the whole line to the lexer, except the newline character, + // which we eat. + yyless(1); +} + YY_BREAK +case 2: +YY_RULE_SETUP +#line 314 "dcLexer.lxx" +{ + // Eat whitespace. + accept(); +} + YY_BREAK +case 3: +YY_RULE_SETUP +#line 319 "dcLexer.lxx" +{ + // Eat C++-style comments. + accept(); +} + YY_BREAK +case 4: +YY_RULE_SETUP +#line 324 "dcLexer.lxx" +{ + // Eat C-style comments. + accept(); + eat_c_comment(); +} + YY_BREAK +case 5: +YY_RULE_SETUP +#line 331 "dcLexer.lxx" +{ + accept(); + return KW_DCLASS; +} + YY_BREAK +case 6: +YY_RULE_SETUP +#line 336 "dcLexer.lxx" +{ + accept(); + return KW_INT8; +} + YY_BREAK +case 7: +YY_RULE_SETUP +#line 341 "dcLexer.lxx" +{ + accept(); + return KW_INT16; +} + YY_BREAK +case 8: +YY_RULE_SETUP +#line 346 "dcLexer.lxx" +{ + accept(); + return KW_INT32; +} + YY_BREAK +case 9: +YY_RULE_SETUP +#line 351 "dcLexer.lxx" +{ + accept(); + return KW_INT64; +} + YY_BREAK +case 10: +YY_RULE_SETUP +#line 356 "dcLexer.lxx" +{ + accept(); + return KW_UINT8; +} + YY_BREAK +case 11: +YY_RULE_SETUP +#line 361 "dcLexer.lxx" +{ + accept(); + return KW_UINT16; +} + YY_BREAK +case 12: +YY_RULE_SETUP +#line 366 "dcLexer.lxx" +{ + accept(); + return KW_UINT32; +} + YY_BREAK +case 13: +YY_RULE_SETUP +#line 371 "dcLexer.lxx" +{ + accept(); + return KW_UINT64; +} + YY_BREAK +case 14: +YY_RULE_SETUP +#line 376 "dcLexer.lxx" +{ + accept(); + return KW_FLOAT64; +} + YY_BREAK +case 15: +YY_RULE_SETUP +#line 381 "dcLexer.lxx" +{ + accept(); + return KW_STRING; +} + YY_BREAK +case 16: +YY_RULE_SETUP +#line 386 "dcLexer.lxx" +{ + accept(); + return KW_BLOB; +} + YY_BREAK +case 17: +YY_RULE_SETUP +#line 391 "dcLexer.lxx" +{ + accept(); + return KW_INT8ARRAY; +} + YY_BREAK +case 18: +YY_RULE_SETUP +#line 396 "dcLexer.lxx" +{ + accept(); + return KW_INT16ARRAY; +} + YY_BREAK +case 19: +YY_RULE_SETUP +#line 401 "dcLexer.lxx" +{ + accept(); + return KW_INT32ARRAY; +} + YY_BREAK +case 20: +YY_RULE_SETUP +#line 406 "dcLexer.lxx" +{ + accept(); + return KW_UINT8ARRAY; +} + YY_BREAK +case 21: +YY_RULE_SETUP +#line 411 "dcLexer.lxx" +{ + accept(); + return KW_UINT16ARRAY; +} + YY_BREAK +case 22: +YY_RULE_SETUP +#line 416 "dcLexer.lxx" +{ + accept(); + return KW_UINT32ARRAY; +} + YY_BREAK +case 23: +YY_RULE_SETUP +#line 421 "dcLexer.lxx" +{ + accept(); + return KW_UINT32UINT8ARRAY; +} + YY_BREAK +case 24: +YY_RULE_SETUP +#line 426 "dcLexer.lxx" +{ + // A molecular keyword. + accept(); + dcyylval.u.integer = atoi(dcyytext + 3); + dcyylval.str = yytext; + return KW_MOL; +} + YY_BREAK +case 25: +YY_RULE_SETUP +#line 434 "dcLexer.lxx" +{ + accept(); + return KW_REQUIRED; +} + YY_BREAK +case 26: +YY_RULE_SETUP +#line 439 "dcLexer.lxx" +{ + accept(); + return KW_BROADCAST; +} + YY_BREAK +case 27: +YY_RULE_SETUP +#line 444 "dcLexer.lxx" +{ + accept(); + return KW_P2P; +} + YY_BREAK +case 28: +YY_RULE_SETUP +#line 449 "dcLexer.lxx" +{ + accept(); + return KW_RAM; +} + YY_BREAK +case 29: +YY_RULE_SETUP +#line 454 "dcLexer.lxx" +{ + accept(); + return KW_DB; +} + YY_BREAK +case 30: +YY_RULE_SETUP +#line 459 "dcLexer.lxx" +{ + accept(); + return KW_CLSEND; +} + YY_BREAK +case 31: +YY_RULE_SETUP +#line 464 "dcLexer.lxx" +{ + accept(); + return KW_CLRECV; +} + YY_BREAK +case 32: +YY_RULE_SETUP +#line 469 "dcLexer.lxx" +{ + accept(); + return KW_OWNSEND; +} + YY_BREAK +case 33: +YY_RULE_SETUP +#line 474 "dcLexer.lxx" +{ + // An integer number. + accept(); + dcyylval.u.integer = atoi(dcyytext); + dcyylval.str = yytext; + return INTEGER; +} + YY_BREAK +case 34: +YY_RULE_SETUP +#line 482 "dcLexer.lxx" +{ + // A hexadecimal integer number. + accept(); + dcyylval.u.integer = strtoul(yytext+2, NULL, 16); + dcyylval.str = yytext; + return INTEGER; +} + YY_BREAK +case 35: +YY_RULE_SETUP +#line 490 "dcLexer.lxx" +{ + // A floating-point number. + accept(); + dcyylval.u.real = atof(dcyytext); + dcyylval.str = yytext; + return REAL; +} + YY_BREAK +case 36: +YY_RULE_SETUP +#line 498 "dcLexer.lxx" +{ + // Quoted string. + accept(); + dcyylval.str = scan_quoted_string(); + return STRING; +} + YY_BREAK +case 37: +YY_RULE_SETUP +#line 505 "dcLexer.lxx" +{ + // Long hex string. + accept(); + dcyylval.str = scan_hex_string(); + return HEX_STRING; +} + YY_BREAK +case 38: +YY_RULE_SETUP +#line 512 "dcLexer.lxx" +{ + // Identifier. + accept(); + dcyylval.str = yytext; + return IDENTIFIER; +} + YY_BREAK +case 39: +YY_RULE_SETUP +#line 520 "dcLexer.lxx" +{ + // Send any other printable character as itself. + accept(); + return dcyytext[0]; +} + YY_BREAK +case 40: +YY_RULE_SETUP +#line 526 "dcLexer.lxx" +ECHO; + YY_BREAK +#line 1361 "lex.yy.c" +case YY_STATE_EOF(INITIAL): + yyterminate(); + + case YY_END_OF_BUFFER: + { + /* Amount of text matched not including the EOB char. */ + int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1; + + /* Undo the effects of YY_DO_BEFORE_ACTION. */ + *yy_cp = yy_hold_char; + YY_RESTORE_YY_MORE_OFFSET + + if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW ) + { + /* We're scanning a new file or input source. It's + * possible that this happened because the user + * just pointed yyin at a new source and called + * yylex(). If so, then we have to assure + * consistency between yy_current_buffer and our + * globals. Here is the right place to do so, because + * this is the first action (other than possibly a + * back-up) that will match for the new input source. + */ + yy_n_chars = yy_current_buffer->yy_n_chars; + yy_current_buffer->yy_input_file = yyin; + yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL; + } + + /* Note that here we test for yy_c_buf_p "<=" to the position + * of the first EOB in the buffer, since yy_c_buf_p will + * already have been incremented past the NUL character + * (since all states make transitions on EOB to the + * end-of-buffer state). Contrast this with the test + * in input(). + */ + if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] ) + { /* This was really a NUL. */ + yy_state_type yy_next_state; + + yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text; + + yy_current_state = yy_get_previous_state(); + + /* Okay, we're now positioned to make the NUL + * transition. We couldn't have + * yy_get_previous_state() go ahead and do it + * for us because it doesn't know how to deal + * with the possibility of jamming (and we don't + * want to build jamming into it because then it + * will run more slowly). + */ + + yy_next_state = yy_try_NUL_trans( yy_current_state ); + + yy_bp = yytext_ptr + YY_MORE_ADJ; + + if ( yy_next_state ) + { + /* Consume the NUL. */ + yy_cp = ++yy_c_buf_p; + yy_current_state = yy_next_state; + goto yy_match; + } + + else + { + yy_cp = yy_c_buf_p; + goto yy_find_action; + } + } + + else switch ( yy_get_next_buffer() ) + { + case EOB_ACT_END_OF_FILE: + { + yy_did_buffer_switch_on_eof = 0; + + if ( yywrap() ) + { + /* Note: because we've taken care in + * yy_get_next_buffer() to have set up + * yytext, we can now set up + * yy_c_buf_p so that if some total + * hoser (like flex itself) wants to + * call the scanner after we return the + * YY_NULL, it'll still work - another + * YY_NULL will get returned. + */ + yy_c_buf_p = yytext_ptr + YY_MORE_ADJ; + + yy_act = YY_STATE_EOF(YY_START); + goto do_action; + } + + else + { + if ( ! yy_did_buffer_switch_on_eof ) + YY_NEW_FILE; + } + break; + } + + case EOB_ACT_CONTINUE_SCAN: + yy_c_buf_p = + yytext_ptr + yy_amount_of_matched_text; + + yy_current_state = yy_get_previous_state(); + + yy_cp = yy_c_buf_p; + yy_bp = yytext_ptr + YY_MORE_ADJ; + goto yy_match; + + case EOB_ACT_LAST_MATCH: + yy_c_buf_p = + &yy_current_buffer->yy_ch_buf[yy_n_chars]; + + yy_current_state = yy_get_previous_state(); + + yy_cp = yy_c_buf_p; + yy_bp = yytext_ptr + YY_MORE_ADJ; + goto yy_find_action; + } + break; + } + + default: + YY_FATAL_ERROR( + "fatal flex scanner internal error--no action found" ); + } /* end of action switch */ + } /* end of scanning one token */ + } /* end of yylex */ + + +/* yy_get_next_buffer - try to read in a new buffer + * + * Returns a code representing an action: + * EOB_ACT_LAST_MATCH - + * EOB_ACT_CONTINUE_SCAN - continue scanning from current position + * EOB_ACT_END_OF_FILE - end of file + */ + +static int yy_get_next_buffer() + { + register char *dest = yy_current_buffer->yy_ch_buf; + register char *source = yytext_ptr; + register int number_to_move, i; + int ret_val; + + if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] ) + YY_FATAL_ERROR( + "fatal flex scanner internal error--end of buffer missed" ); + + if ( yy_current_buffer->yy_fill_buffer == 0 ) + { /* Don't try to fill the buffer, so this is an EOF. */ + if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 ) + { + /* We matched a single character, the EOB, so + * treat this as a final EOF. + */ + return EOB_ACT_END_OF_FILE; + } + + else + { + /* We matched some text prior to the EOB, first + * process it. + */ + return EOB_ACT_LAST_MATCH; + } + } + + /* Try to read more data. */ + + /* First move last chars to start of buffer. */ + number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1; + + for ( i = 0; i < number_to_move; ++i ) + *(dest++) = *(source++); + + if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING ) + /* don't do the read, it's not guaranteed to return an EOF, + * just force an EOF + */ + yy_current_buffer->yy_n_chars = yy_n_chars = 0; + + else + { + int num_to_read = + yy_current_buffer->yy_buf_size - number_to_move - 1; + + while ( num_to_read <= 0 ) + { /* Not enough room in the buffer - grow it. */ +#ifdef YY_USES_REJECT + YY_FATAL_ERROR( +"input buffer overflow, can't enlarge buffer because scanner uses REJECT" ); +#else + + /* just a shorter name for the current buffer */ + YY_BUFFER_STATE b = yy_current_buffer; + + int yy_c_buf_p_offset = + (int) (yy_c_buf_p - b->yy_ch_buf); + + if ( b->yy_is_our_buffer ) + { + int new_size = b->yy_buf_size * 2; + + if ( new_size <= 0 ) + b->yy_buf_size += b->yy_buf_size / 8; + else + b->yy_buf_size *= 2; + + b->yy_ch_buf = (char *) + /* Include room in for 2 EOB chars. */ + yy_flex_realloc( (void *) b->yy_ch_buf, + b->yy_buf_size + 2 ); + } + else + /* Can't grow it, we don't own it. */ + b->yy_ch_buf = 0; + + if ( ! b->yy_ch_buf ) + YY_FATAL_ERROR( + "fatal error - scanner input buffer overflow" ); + + yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset]; + + num_to_read = yy_current_buffer->yy_buf_size - + number_to_move - 1; +#endif + } + + if ( num_to_read > YY_READ_BUF_SIZE ) + num_to_read = YY_READ_BUF_SIZE; + + /* Read in more data. */ + YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]), + yy_n_chars, num_to_read ); + + yy_current_buffer->yy_n_chars = yy_n_chars; + } + + if ( yy_n_chars == 0 ) + { + if ( number_to_move == YY_MORE_ADJ ) + { + ret_val = EOB_ACT_END_OF_FILE; + yyrestart( yyin ); + } + + else + { + ret_val = EOB_ACT_LAST_MATCH; + yy_current_buffer->yy_buffer_status = + YY_BUFFER_EOF_PENDING; + } + } + + else + ret_val = EOB_ACT_CONTINUE_SCAN; + + yy_n_chars += number_to_move; + yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR; + yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR; + + yytext_ptr = &yy_current_buffer->yy_ch_buf[0]; + + return ret_val; + } + + +/* yy_get_previous_state - get the state just before the EOB char was reached */ + +static yy_state_type yy_get_previous_state() + { + register yy_state_type yy_current_state; + register char *yy_cp; + + yy_current_state = yy_start; + + for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp ) + { + register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); + if ( yy_accept[yy_current_state] ) + { + yy_last_accepting_state = yy_current_state; + yy_last_accepting_cpos = yy_cp; + } + while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) + { + yy_current_state = (int) yy_def[yy_current_state]; + if ( yy_current_state >= 157 ) + yy_c = yy_meta[(unsigned int) yy_c]; + } + yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; + } + + return yy_current_state; + } + + +/* yy_try_NUL_trans - try to make a transition on the NUL character + * + * synopsis + * next_state = yy_try_NUL_trans( current_state ); + */ + +#ifdef YY_USE_PROTOS +static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state ) +#else +static yy_state_type yy_try_NUL_trans( yy_current_state ) +yy_state_type yy_current_state; +#endif + { + register int yy_is_jam; + register char *yy_cp = yy_c_buf_p; + + register YY_CHAR yy_c = 1; + if ( yy_accept[yy_current_state] ) + { + yy_last_accepting_state = yy_current_state; + yy_last_accepting_cpos = yy_cp; + } + while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) + { + yy_current_state = (int) yy_def[yy_current_state]; + if ( yy_current_state >= 157 ) + 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 == 156); + + return yy_is_jam ? 0 : yy_current_state; + } + + +#ifndef YY_NO_UNPUT +#ifdef YY_USE_PROTOS +static void yyunput( int c, register char *yy_bp ) +#else +static void yyunput( c, yy_bp ) +int c; +register char *yy_bp; +#endif + { + register char *yy_cp = yy_c_buf_p; + + /* undo effects of setting up yytext */ + *yy_cp = yy_hold_char; + + if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 ) + { /* need to shift things up to make room */ + /* +2 for EOB chars. */ + register int number_to_move = yy_n_chars + 2; + register char *dest = &yy_current_buffer->yy_ch_buf[ + yy_current_buffer->yy_buf_size + 2]; + register char *source = + &yy_current_buffer->yy_ch_buf[number_to_move]; + + while ( source > yy_current_buffer->yy_ch_buf ) + *--dest = *--source; + + yy_cp += (int) (dest - source); + yy_bp += (int) (dest - source); + yy_current_buffer->yy_n_chars = + yy_n_chars = yy_current_buffer->yy_buf_size; + + if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 ) + YY_FATAL_ERROR( "flex scanner push-back overflow" ); + } + + *--yy_cp = (char) c; + + + yytext_ptr = yy_bp; + yy_hold_char = *yy_cp; + yy_c_buf_p = yy_cp; + } +#endif /* ifndef YY_NO_UNPUT */ + + +#ifdef __cplusplus +static int yyinput() +#else +static int input() +#endif + { + int c; + + *yy_c_buf_p = yy_hold_char; + + if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR ) + { + /* yy_c_buf_p now points to the character we want to return. + * If this occurs *before* the EOB characters, then it's a + * valid NUL; if not, then we've hit the end of the buffer. + */ + if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] ) + /* This was really a NUL. */ + *yy_c_buf_p = '\0'; + + else + { /* need more input */ + int offset = yy_c_buf_p - yytext_ptr; + ++yy_c_buf_p; + + switch ( yy_get_next_buffer() ) + { + case EOB_ACT_LAST_MATCH: + /* This happens because yy_g_n_b() + * sees that we've accumulated a + * token and flags that we need to + * try matching the token before + * proceeding. But for input(), + * there's no matching to consider. + * So convert the EOB_ACT_LAST_MATCH + * to EOB_ACT_END_OF_FILE. + */ + + /* Reset buffer status. */ + yyrestart( yyin ); + + /* fall through */ + + case EOB_ACT_END_OF_FILE: + { + if ( yywrap() ) + return EOF; + + if ( ! yy_did_buffer_switch_on_eof ) + YY_NEW_FILE; +#ifdef __cplusplus + return yyinput(); +#else + return input(); +#endif + } + + case EOB_ACT_CONTINUE_SCAN: + yy_c_buf_p = yytext_ptr + offset; + break; + } + } + } + + c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */ + *yy_c_buf_p = '\0'; /* preserve yytext */ + yy_hold_char = *++yy_c_buf_p; + + + return c; + } + + +#ifdef YY_USE_PROTOS +void yyrestart( FILE *input_file ) +#else +void yyrestart( input_file ) +FILE *input_file; +#endif + { + if ( ! yy_current_buffer ) + yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); + + yy_init_buffer( yy_current_buffer, input_file ); + yy_load_buffer_state(); + } + + +#ifdef YY_USE_PROTOS +void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer ) +#else +void yy_switch_to_buffer( new_buffer ) +YY_BUFFER_STATE new_buffer; +#endif + { + if ( yy_current_buffer == new_buffer ) + return; + + if ( yy_current_buffer ) + { + /* Flush out information for old buffer. */ + *yy_c_buf_p = yy_hold_char; + yy_current_buffer->yy_buf_pos = yy_c_buf_p; + yy_current_buffer->yy_n_chars = yy_n_chars; + } + + yy_current_buffer = new_buffer; + yy_load_buffer_state(); + + /* We don't actually know whether we did this switch during + * EOF (yywrap()) processing, but the only time this flag + * is looked at is after yywrap() is called, so it's safe + * to go ahead and always set it. + */ + yy_did_buffer_switch_on_eof = 1; + } + + +#ifdef YY_USE_PROTOS +void yy_load_buffer_state( void ) +#else +void yy_load_buffer_state() +#endif + { + yy_n_chars = yy_current_buffer->yy_n_chars; + yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos; + yyin = yy_current_buffer->yy_input_file; + yy_hold_char = *yy_c_buf_p; + } + + +#ifdef YY_USE_PROTOS +YY_BUFFER_STATE yy_create_buffer( FILE *file, int size ) +#else +YY_BUFFER_STATE yy_create_buffer( file, size ) +FILE *file; +int size; +#endif + { + YY_BUFFER_STATE b; + + b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) ); + if ( ! b ) + YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); + + b->yy_buf_size = size; + + /* yy_ch_buf has to be 2 characters longer than the size given because + * we need to put in 2 end-of-buffer characters. + */ + b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 ); + if ( ! b->yy_ch_buf ) + YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); + + b->yy_is_our_buffer = 1; + + yy_init_buffer( b, file ); + + return b; + } + + +#ifdef YY_USE_PROTOS +void yy_delete_buffer( YY_BUFFER_STATE b ) +#else +void yy_delete_buffer( b ) +YY_BUFFER_STATE b; +#endif + { + if ( ! b ) + return; + + if ( b == yy_current_buffer ) + yy_current_buffer = (YY_BUFFER_STATE) 0; + + if ( b->yy_is_our_buffer ) + yy_flex_free( (void *) b->yy_ch_buf ); + + yy_flex_free( (void *) b ); + } + + + +#ifdef YY_USE_PROTOS +void yy_init_buffer( YY_BUFFER_STATE b, FILE *file ) +#else +void yy_init_buffer( b, file ) +YY_BUFFER_STATE b; +FILE *file; +#endif + + + { + yy_flush_buffer( b ); + + b->yy_input_file = file; + b->yy_fill_buffer = 1; + +#if YY_ALWAYS_INTERACTIVE + b->yy_is_interactive = 1; +#else +#if YY_NEVER_INTERACTIVE + b->yy_is_interactive = 0; +#else + b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; +#endif +#endif + } + + +#ifdef YY_USE_PROTOS +void yy_flush_buffer( YY_BUFFER_STATE b ) +#else +void yy_flush_buffer( b ) +YY_BUFFER_STATE b; +#endif + + { + if ( ! b ) + return; + + b->yy_n_chars = 0; + + /* We always need two end-of-buffer characters. The first causes + * a transition to the end-of-buffer state. The second causes + * a jam in that state. + */ + b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; + b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; + + b->yy_buf_pos = &b->yy_ch_buf[0]; + + b->yy_at_bol = 1; + b->yy_buffer_status = YY_BUFFER_NEW; + + if ( b == yy_current_buffer ) + yy_load_buffer_state(); + } + + +#ifndef YY_NO_SCAN_BUFFER +#ifdef YY_USE_PROTOS +YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size ) +#else +YY_BUFFER_STATE yy_scan_buffer( base, size ) +char *base; +yy_size_t size; +#endif + { + YY_BUFFER_STATE b; + + if ( size < 2 || + base[size-2] != YY_END_OF_BUFFER_CHAR || + base[size-1] != YY_END_OF_BUFFER_CHAR ) + /* They forgot to leave room for the EOB's. */ + return 0; + + b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) ); + if ( ! b ) + YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" ); + + b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */ + b->yy_buf_pos = b->yy_ch_buf = base; + b->yy_is_our_buffer = 0; + b->yy_input_file = 0; + b->yy_n_chars = b->yy_buf_size; + b->yy_is_interactive = 0; + b->yy_at_bol = 1; + b->yy_fill_buffer = 0; + b->yy_buffer_status = YY_BUFFER_NEW; + + yy_switch_to_buffer( b ); + + return b; + } +#endif + + +#ifndef YY_NO_SCAN_STRING +#ifdef YY_USE_PROTOS +YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str ) +#else +YY_BUFFER_STATE yy_scan_string( yy_str ) +yyconst char *yy_str; +#endif + { + int len; + for ( len = 0; yy_str[len]; ++len ) + ; + + return yy_scan_bytes( yy_str, len ); + } +#endif + + +#ifndef YY_NO_SCAN_BYTES +#ifdef YY_USE_PROTOS +YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len ) +#else +YY_BUFFER_STATE yy_scan_bytes( bytes, len ) +yyconst char *bytes; +int len; +#endif + { + YY_BUFFER_STATE b; + char *buf; + yy_size_t n; + int i; + + /* Get memory for full buffer, including space for trailing EOB's. */ + n = len + 2; + buf = (char *) yy_flex_alloc( n ); + if ( ! buf ) + YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" ); + + for ( i = 0; i < len; ++i ) + buf[i] = bytes[i]; + + buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR; + + b = yy_scan_buffer( buf, n ); + if ( ! b ) + YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" ); + + /* It's okay to grow etc. this buffer, and we should throw it + * away when we're done. + */ + b->yy_is_our_buffer = 1; + + return b; + } +#endif + + +#ifndef YY_NO_PUSH_STATE +#ifdef YY_USE_PROTOS +static void yy_push_state( int new_state ) +#else +static void yy_push_state( new_state ) +int new_state; +#endif + { + if ( yy_start_stack_ptr >= yy_start_stack_depth ) + { + yy_size_t new_size; + + yy_start_stack_depth += YY_START_STACK_INCR; + new_size = yy_start_stack_depth * sizeof( int ); + + if ( ! yy_start_stack ) + yy_start_stack = (int *) yy_flex_alloc( new_size ); + + else + yy_start_stack = (int *) yy_flex_realloc( + (void *) yy_start_stack, new_size ); + + if ( ! yy_start_stack ) + YY_FATAL_ERROR( + "out of memory expanding start-condition stack" ); + } + + yy_start_stack[yy_start_stack_ptr++] = YY_START; + + BEGIN(new_state); + } +#endif + + +#ifndef YY_NO_POP_STATE +static void yy_pop_state() + { + if ( --yy_start_stack_ptr < 0 ) + YY_FATAL_ERROR( "start-condition stack underflow" ); + + BEGIN(yy_start_stack[yy_start_stack_ptr]); + } +#endif + + +#ifndef YY_NO_TOP_STATE +static int yy_top_state() + { + return yy_start_stack[yy_start_stack_ptr - 1]; + } +#endif + +#ifndef YY_EXIT_FAILURE +#define YY_EXIT_FAILURE 2 +#endif + +#ifdef YY_USE_PROTOS +static void yy_fatal_error( yyconst char msg[] ) +#else +static void yy_fatal_error( msg ) +char msg[]; +#endif + { + (void) fprintf( stderr, "%s\n", msg ); + exit( YY_EXIT_FAILURE ); + } + + + +/* Redefine yyless() so it works in section 3 code. */ + +#undef yyless +#define yyless(n) \ + do \ + { \ + /* Undo effects of setting up yytext. */ \ + yytext[yyleng] = yy_hold_char; \ + yy_c_buf_p = yytext + n; \ + yy_hold_char = *yy_c_buf_p; \ + *yy_c_buf_p = '\0'; \ + yyleng = n; \ + } \ + while ( 0 ) + + +/* Internal utility routines. */ + +#ifndef yytext_ptr +#ifdef YY_USE_PROTOS +static void yy_flex_strncpy( char *s1, yyconst char *s2, int n ) +#else +static void yy_flex_strncpy( s1, s2, n ) +char *s1; +yyconst char *s2; +int n; +#endif + { + register int i; + for ( i = 0; i < n; ++i ) + s1[i] = s2[i]; + } +#endif + +#ifdef YY_NEED_STRLEN +#ifdef YY_USE_PROTOS +static int yy_flex_strlen( yyconst char *s ) +#else +static int yy_flex_strlen( s ) +yyconst char *s; +#endif + { + register int n; + for ( n = 0; s[n]; ++n ) + ; + + return n; + } +#endif + + +#ifdef YY_USE_PROTOS +static void *yy_flex_alloc( yy_size_t size ) +#else +static void *yy_flex_alloc( size ) +yy_size_t size; +#endif + { + return (void *) malloc( size ); + } + +#ifdef YY_USE_PROTOS +static void *yy_flex_realloc( void *ptr, yy_size_t size ) +#else +static void *yy_flex_realloc( ptr, size ) +void *ptr; +yy_size_t size; +#endif + { + /* The cast to (char *) in the following accommodates both + * implementations that use char* generic pointers, and those + * that use void* generic pointers. It works with the latter + * because both ANSI C and C++ allow castless assignment from + * any pointer type to void*, and deal with argument conversions + * as though doing an assignment. + */ + return (void *) realloc( (char *) ptr, size ); + } + +#ifdef YY_USE_PROTOS +static void yy_flex_free( void *ptr ) +#else +static void yy_flex_free( ptr ) +void *ptr; +#endif + { + free( ptr ); + } + +#if YY_MAIN +int main() + { + yylex(); + return 0; + } +#endif +#line 526 "dcLexer.lxx" diff --git a/direct/src/dcparser/dcParser.cxx.prebuilt b/direct/src/dcparser/dcParser.cxx.prebuilt index 23f7684dd3..9dd12a84ed 100644 --- a/direct/src/dcparser/dcParser.cxx.prebuilt +++ b/direct/src/dcparser/dcParser.cxx.prebuilt @@ -1,6 +1,5 @@ - -/* A Bison parser, made from dcParser.yxx - by GNU Bison version 1.28 */ +/* A Bison parser, made from dcParser.yxx + by GNU bison 1.35. */ #define YYBISON 1 /* Identify Bison output. */ @@ -11,39 +10,39 @@ #define yychar dcyychar #define yydebug dcyydebug #define yynerrs dcyynerrs -#define INTEGER 257 -#define REAL 258 -#define STRING 259 -#define HEX_STRING 260 -#define IDENTIFIER 261 -#define KW_DCLASS 262 -#define KW_INT8 263 -#define KW_INT16 264 -#define KW_INT32 265 -#define KW_INT64 266 -#define KW_UINT8 267 -#define KW_UINT16 268 -#define KW_UINT32 269 -#define KW_UINT64 270 -#define KW_FLOAT64 271 -#define KW_STRING 272 -#define KW_BLOB 273 -#define KW_INT8ARRAY 274 -#define KW_INT16ARRAY 275 -#define KW_INT32ARRAY 276 -#define KW_UINT8ARRAY 277 -#define KW_UINT16ARRAY 278 -#define KW_UINT32ARRAY 279 -#define KW_UINT32UINT8ARRAY 280 -#define KW_MOL 281 -#define KW_REQUIRED 282 -#define KW_BROADCAST 283 -#define KW_P2P 284 -#define KW_RAM 285 -#define KW_DB 286 -#define KW_CLSEND 287 -#define KW_CLRECV 288 -#define KW_OWNSEND 289 +# define INTEGER 257 +# define REAL 258 +# define STRING 259 +# define HEX_STRING 260 +# define IDENTIFIER 261 +# define KW_DCLASS 262 +# define KW_INT8 263 +# define KW_INT16 264 +# define KW_INT32 265 +# define KW_INT64 266 +# define KW_UINT8 267 +# define KW_UINT16 268 +# define KW_UINT32 269 +# define KW_UINT64 270 +# define KW_FLOAT64 271 +# define KW_STRING 272 +# define KW_BLOB 273 +# define KW_INT8ARRAY 274 +# define KW_INT16ARRAY 275 +# define KW_INT32ARRAY 276 +# define KW_UINT8ARRAY 277 +# define KW_UINT16ARRAY 278 +# define KW_UINT32ARRAY 279 +# define KW_UINT32UINT8ARRAY 280 +# define KW_MOL 281 +# define KW_REQUIRED 282 +# define KW_BROADCAST 283 +# define KW_P2P 284 +# define KW_RAM 285 +# define KW_DB 286 +# define KW_CLSEND 287 +# define KW_CLRECV 288 +# define KW_OWNSEND 289 #line 6 "dcParser.yxx" @@ -83,12 +82,8 @@ dc_cleanup_parser() { dc_file = (DCFile *)NULL; } -#include - -#ifndef __cplusplus -#ifndef __STDC__ -#define const -#endif +#ifndef YYDEBUG +# define YYDEBUG 0 #endif @@ -97,203 +92,229 @@ dc_cleanup_parser() { #define YYFLAG -32768 #define YYNTBASE 46 +/* YYTRANSLATE(YYLEX) -- Bison token number corresponding to YYLEX. */ #define YYTRANSLATE(x) ((unsigned)(x) <= 289 ? yytranslate[x] : 71) -static const char 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, 41, - 42, 45, 2, 40, 2, 2, 43, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 39, 36, 2, - 44, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 37, 2, 38, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 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, 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 +/* YYTRANSLATE[YYLEX] -- Bison token number corresponding to YYLEX. */ +static const char 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, + 41, 42, 45, 2, 40, 2, 2, 43, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 39, 36, + 2, 44, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 37, 2, 38, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 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, 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 }; -#if YYDEBUG != 0 -static const short yyprhs[] = { 0, - 0, 2, 5, 8, 9, 17, 19, 21, 24, 26, - 30, 32, 35, 38, 41, 42, 49, 51, 53, 55, - 57, 61, 62, 66, 68, 72, 75, 79, 83, 87, - 91, 97, 99, 102, 104, 106, 108, 112, 114, 116, - 118, 120, 124, 128, 132, 134, 136, 138, 140, 142, - 144, 146, 148, 150, 152, 154, 156, 158, 160, 162, - 164, 166, 168, 170, 173, 176, 179, 182, 185, 188, - 191, 194, 195, 200, 202, 206 +#if YYDEBUG +static const short yyprhs[] = +{ + 0, 0, 2, 5, 8, 9, 17, 19, 21, 24, + 26, 30, 32, 35, 38, 41, 42, 49, 51, 53, + 55, 57, 61, 62, 66, 68, 72, 75, 79, 83, + 87, 91, 97, 99, 102, 104, 106, 108, 112, 114, + 116, 118, 120, 124, 128, 132, 134, 136, 138, 140, + 142, 144, 146, 148, 150, 152, 154, 156, 158, 160, + 162, 164, 166, 168, 170, 173, 176, 179, 182, 185, + 188, 191, 194, 195, 200, 202, 206 }; - -static const short yyrhs[] = { 70, - 0, 46, 36, 0, 46, 47, 0, 0, 8, 7, - 48, 50, 37, 52, 38, 0, 7, 0, 70, 0, - 39, 51, 0, 49, 0, 51, 40, 49, 0, 70, - 0, 52, 36, 0, 52, 53, 0, 52, 67, 0, - 0, 7, 41, 54, 56, 42, 66, 0, 7, 0, - 70, 0, 57, 0, 58, 0, 57, 40, 58, 0, - 0, 65, 59, 60, 0, 70, 0, 60, 43, 3, - 0, 60, 7, 0, 60, 44, 3, 0, 60, 44, - 4, 0, 60, 44, 5, 0, 60, 44, 6, 0, - 60, 44, 37, 61, 38, 0, 70, 0, 63, 62, - 0, 70, 0, 40, 0, 64, 0, 63, 40, 64, - 0, 3, 0, 4, 0, 5, 0, 6, 0, 3, - 45, 3, 0, 4, 45, 3, 0, 6, 45, 3, - 0, 9, 0, 10, 0, 11, 0, 12, 0, 13, - 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, - 0, 19, 0, 20, 0, 21, 0, 22, 0, 23, - 0, 24, 0, 25, 0, 26, 0, 70, 0, 66, - 28, 0, 66, 29, 0, 66, 30, 0, 66, 31, - 0, 66, 32, 0, 66, 33, 0, 66, 34, 0, - 66, 35, 0, 0, 7, 39, 68, 69, 0, 55, - 0, 69, 40, 55, 0, 0 +static const short yyrhs[] = +{ + 70, 0, 46, 36, 0, 46, 47, 0, 0, 8, + 7, 48, 50, 37, 52, 38, 0, 7, 0, 70, + 0, 39, 51, 0, 49, 0, 51, 40, 49, 0, + 70, 0, 52, 36, 0, 52, 53, 0, 52, 67, + 0, 0, 7, 41, 54, 56, 42, 66, 0, 7, + 0, 70, 0, 57, 0, 58, 0, 57, 40, 58, + 0, 0, 65, 59, 60, 0, 70, 0, 60, 43, + 3, 0, 60, 7, 0, 60, 44, 3, 0, 60, + 44, 4, 0, 60, 44, 5, 0, 60, 44, 6, + 0, 60, 44, 37, 61, 38, 0, 70, 0, 63, + 62, 0, 70, 0, 40, 0, 64, 0, 63, 40, + 64, 0, 3, 0, 4, 0, 5, 0, 6, 0, + 3, 45, 3, 0, 4, 45, 3, 0, 6, 45, + 3, 0, 9, 0, 10, 0, 11, 0, 12, 0, + 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, + 18, 0, 19, 0, 20, 0, 21, 0, 22, 0, + 23, 0, 24, 0, 25, 0, 26, 0, 70, 0, + 66, 28, 0, 66, 29, 0, 66, 30, 0, 66, + 31, 0, 66, 32, 0, 66, 33, 0, 66, 34, + 0, 66, 35, 0, 0, 7, 39, 68, 69, 0, + 55, 0, 69, 40, 55, 0, 0 }; #endif -#if YYDEBUG != 0 -static const short yyrline[] = { 0, - 87, 89, 90, 93, 102, 105, 119, 121, 124, 131, - 139, 141, 142, 143, 146, 155, 158, 174, 176, 179, - 181, 184, 191, 196, 198, 202, 206, 212, 218, 224, - 230, 240, 242, 245, 247, 250, 252, 255, 262, 268, - 274, 280, 289, 298, 309, 314, 318, 322, 326, 330, - 334, 338, 342, 346, 350, 354, 358, 362, 366, 370, - 374, 378, 384, 386, 390, 394, 398, 402, 406, 410, - 414, 420, 430, 432, 439, 452 +#if YYDEBUG +/* YYRLINE[YYN] -- source line where rule number YYN was defined. */ +static const short yyrline[] = +{ + 0, 87, 89, 90, 93, 93, 105, 119, 121, 124, + 131, 139, 141, 142, 143, 146, 146, 158, 174, 176, + 179, 181, 184, 184, 196, 198, 202, 206, 212, 218, + 224, 230, 240, 242, 245, 247, 250, 252, 255, 262, + 268, 274, 280, 289, 298, 309, 314, 318, 322, 326, + 330, 334, 338, 342, 346, 350, 354, 358, 362, 366, + 370, 374, 378, 384, 386, 390, 394, 398, 402, 406, + 410, 414, 420, 420, 432, 439, 452 }; #endif -#if YYDEBUG != 0 || defined (YYERROR_VERBOSE) +#if (YYDEBUG) || defined YYERROR_VERBOSE -static const char * const yytname[] = { "$","error","$undefined.","INTEGER", -"REAL","STRING","HEX_STRING","IDENTIFIER","KW_DCLASS","KW_INT8","KW_INT16","KW_INT32", -"KW_INT64","KW_UINT8","KW_UINT16","KW_UINT32","KW_UINT64","KW_FLOAT64","KW_STRING", -"KW_BLOB","KW_INT8ARRAY","KW_INT16ARRAY","KW_INT32ARRAY","KW_UINT8ARRAY","KW_UINT16ARRAY", -"KW_UINT32ARRAY","KW_UINT32UINT8ARRAY","KW_MOL","KW_REQUIRED","KW_BROADCAST", -"KW_P2P","KW_RAM","KW_DB","KW_CLSEND","KW_CLRECV","KW_OWNSEND","';'","'{'","'}'", -"':'","','","'('","')'","'/'","'='","'*'","dc","dclass","@1","dclass_name","dclass_derivation", -"base_list","dclass_fields","atomic_field","@2","atomic_name","parameter_list", -"nonempty_parameter_list","atomic_element","@3","atomic_element_definition", -"default_array","maybe_comma","default_array_def","default_array_element","type_token", -"atomic_flags","molecular_field","@4","molecular_atom_list","empty", NULL +/* YYTNAME[TOKEN_NUM] -- String name of the token TOKEN_NUM. */ +static const char *const yytname[] = +{ + "$", "error", "$undefined.", "INTEGER", "REAL", "STRING", "HEX_STRING", + "IDENTIFIER", "KW_DCLASS", "KW_INT8", "KW_INT16", "KW_INT32", + "KW_INT64", "KW_UINT8", "KW_UINT16", "KW_UINT32", "KW_UINT64", + "KW_FLOAT64", "KW_STRING", "KW_BLOB", "KW_INT8ARRAY", "KW_INT16ARRAY", + "KW_INT32ARRAY", "KW_UINT8ARRAY", "KW_UINT16ARRAY", "KW_UINT32ARRAY", + "KW_UINT32UINT8ARRAY", "KW_MOL", "KW_REQUIRED", "KW_BROADCAST", + "KW_P2P", "KW_RAM", "KW_DB", "KW_CLSEND", "KW_CLRECV", "KW_OWNSEND", + "';'", "'{'", "'}'", "':'", "','", "'('", "')'", "'/'", "'='", "'*'", + "dc", "dclass", "@1", "dclass_name", "dclass_derivation", "base_list", + "dclass_fields", "atomic_field", "@2", "atomic_name", "parameter_list", + "nonempty_parameter_list", "atomic_element", "@3", + "atomic_element_definition", "default_array", "maybe_comma", + "default_array_def", "default_array_element", "type_token", + "atomic_flags", "molecular_field", "@4", "molecular_atom_list", "empty", 0 }; #endif -static const short yyr1[] = { 0, - 46, 46, 46, 48, 47, 49, 50, 50, 51, 51, - 52, 52, 52, 52, 54, 53, 55, 56, 56, 57, - 57, 59, 58, 60, 60, 60, 60, 60, 60, 60, - 60, 61, 61, 62, 62, 63, 63, 64, 64, 64, - 64, 64, 64, 64, 65, 65, 65, 65, 65, 65, - 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, - 65, 65, 66, 66, 66, 66, 66, 66, 66, 66, - 66, 68, 67, 69, 69, 70 +/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ +static const short yyr1[] = +{ + 0, 46, 46, 46, 48, 47, 49, 50, 50, 51, + 51, 52, 52, 52, 52, 54, 53, 55, 56, 56, + 57, 57, 59, 58, 60, 60, 60, 60, 60, 60, + 60, 60, 61, 61, 62, 62, 63, 63, 64, 64, + 64, 64, 64, 64, 64, 65, 65, 65, 65, 65, + 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, + 65, 65, 65, 66, 66, 66, 66, 66, 66, 66, + 66, 66, 68, 67, 69, 69, 70 }; -static const short yyr2[] = { 0, - 1, 2, 2, 0, 7, 1, 1, 2, 1, 3, - 1, 2, 2, 2, 0, 6, 1, 1, 1, 1, - 3, 0, 3, 1, 3, 2, 3, 3, 3, 3, - 5, 1, 2, 1, 1, 1, 3, 1, 1, 1, - 1, 3, 3, 3, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, - 2, 0, 4, 1, 3, 0 +/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ +static const short yyr2[] = +{ + 0, 1, 2, 2, 0, 7, 1, 1, 2, 1, + 3, 1, 2, 2, 2, 0, 6, 1, 1, 1, + 1, 3, 0, 3, 1, 3, 2, 3, 3, 3, + 3, 5, 1, 2, 1, 1, 1, 3, 1, 1, + 1, 1, 3, 3, 3, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, + 2, 2, 0, 4, 1, 3, 0 }; -static const short yydefact[] = { 76, - 0, 1, 0, 2, 3, 4, 76, 0, 0, 7, - 6, 9, 8, 76, 0, 0, 11, 10, 0, 12, - 5, 13, 14, 72, 15, 0, 76, 17, 74, 73, - 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, - 55, 56, 57, 58, 59, 60, 61, 62, 0, 19, - 20, 22, 18, 0, 76, 0, 76, 75, 16, 63, - 21, 23, 24, 64, 65, 66, 67, 68, 69, 70, - 71, 26, 0, 0, 25, 27, 28, 29, 30, 76, - 38, 39, 40, 41, 0, 76, 36, 32, 0, 0, - 0, 31, 35, 33, 34, 42, 43, 44, 37, 0, - 0 +/* YYDEFACT[S] -- default rule to reduce with in state S when YYTABLE + doesn't specify something else to do. Zero means the default is an + error. */ +static const short yydefact[] = +{ + 76, 0, 1, 0, 2, 3, 4, 76, 0, 0, + 7, 6, 9, 8, 76, 0, 0, 11, 10, 0, + 12, 5, 13, 14, 72, 15, 0, 76, 17, 74, + 73, 45, 46, 47, 48, 49, 50, 51, 52, 53, + 54, 55, 56, 57, 58, 59, 60, 61, 62, 0, + 19, 20, 22, 18, 0, 76, 0, 76, 75, 16, + 63, 21, 23, 24, 64, 65, 66, 67, 68, 69, + 70, 71, 26, 0, 0, 25, 27, 28, 29, 30, + 76, 38, 39, 40, 41, 0, 76, 36, 32, 0, + 0, 0, 31, 35, 33, 34, 42, 43, 44, 37, + 0, 0 }; -static const short yydefgoto[] = { 1, - 5, 7, 12, 9, 13, 16, 22, 27, 29, 49, - 50, 51, 57, 62, 85, 94, 86, 87, 52, 59, - 23, 26, 30, 2 +static const short yydefgoto[] = +{ + 1, 5, 7, 12, 9, 13, 16, 22, 27, 29, + 49, 50, 51, 57, 62, 85, 94, 86, 87, 52, + 59, 23, 26, 30, 2 }; -static const short yypact[] = {-32768, - 3,-32768, -2,-32768,-32768,-32768, -31, 2, -27,-32768, --32768,-32768, -19,-32768, 2, -5,-32768,-32768, -35,-32768, --32768,-32768,-32768,-32768,-32768, 15, 42,-32768,-32768, -17, --32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, --32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, -18, -15, --32768,-32768,-32768, 15,-32768, 42,-32768,-32768, 52,-32768, --32768, -6,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, --32768,-32768, 23, 9,-32768,-32768,-32768,-32768,-32768, 13, - -16, -13,-32768, -11, -10, -4,-32768,-32768, 24, 27, - 32,-32768, 13,-32768,-32768,-32768,-32768,-32768,-32768, 40, --32768 +static const short yypact[] = +{ + -32768, 3,-32768, -2,-32768,-32768,-32768, -31, 2, -27, + -32768,-32768,-32768, -19,-32768, 2, -5,-32768,-32768, -35, + -32768,-32768,-32768,-32768,-32768,-32768, 15, 42,-32768,-32768, + -17,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, + -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, -18, + -15,-32768,-32768,-32768, 15,-32768, 42,-32768,-32768, 52, + -32768,-32768, -6,-32768,-32768,-32768,-32768,-32768,-32768,-32768, + -32768,-32768,-32768, 23, 9,-32768,-32768,-32768,-32768,-32768, + 13, -16, -13,-32768, -11, -10, -4,-32768,-32768, 24, + 27, 32,-32768, 13,-32768,-32768,-32768,-32768,-32768,-32768, + 40,-32768 }; -static const short yypgoto[] = {-32768, --32768,-32768, 26,-32768,-32768,-32768,-32768,-32768, -12,-32768, --32768, -9,-32768,-32768,-32768,-32768,-32768, -50,-32768,-32768, --32768,-32768,-32768, -7 +static const short yypgoto[] = +{ + -32768,-32768,-32768, 26,-32768,-32768,-32768,-32768,-32768, -12, + -32768,-32768, -9,-32768,-32768,-32768,-32768,-32768, -50,-32768, + -32768,-32768,-32768,-32768, -7 }; #define YYLAST 87 -static const short yytable[] = { 10, - 72, 19, 100, 24, 6, 25, 17, 8, 11, 14, - 3, 76, 77, 78, 79, 81, 82, 83, 84, 53, - 15, 28, 54, 55, 56, 75, 96, 92, 89, 97, - 20, 90, 21, 91, 98, 93, 73, 74, 4, 101, - 18, 58, 99, 0, 0, 80, 61, 60, 0, 63, - 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, - 41, 42, 43, 44, 45, 46, 47, 48, 0, 0, - 0, 0, 88, 0, 0, 0, 0, 0, 95, 64, - 65, 66, 67, 68, 69, 70, 71 +static const short yytable[] = +{ + 10, 72, 19, 100, 24, 6, 25, 17, 8, 11, + 14, 3, 76, 77, 78, 79, 81, 82, 83, 84, + 53, 15, 28, 54, 55, 56, 75, 96, 92, 89, + 97, 20, 90, 21, 91, 98, 93, 73, 74, 4, + 101, 18, 58, 99, 0, 0, 80, 61, 60, 0, + 63, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44, 45, 46, 47, 48, 0, + 0, 0, 0, 88, 0, 0, 0, 0, 0, 95, + 64, 65, 66, 67, 68, 69, 70, 71 }; -static const short yycheck[] = { 7, - 7, 7, 0, 39, 7, 41, 14, 39, 7, 37, - 8, 3, 4, 5, 6, 3, 4, 5, 6, 27, - 40, 7, 40, 42, 40, 3, 3, 38, 45, 3, - 36, 45, 38, 45, 3, 40, 43, 44, 36, 0, - 15, 54, 93, -1, -1, 37, 56, 55, -1, 57, - 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, - 19, 20, 21, 22, 23, 24, 25, 26, -1, -1, - -1, -1, 80, -1, -1, -1, -1, -1, 86, 28, - 29, 30, 31, 32, 33, 34, 35 +static const short yycheck[] = +{ + 7, 7, 7, 0, 39, 7, 41, 14, 39, 7, + 37, 8, 3, 4, 5, 6, 3, 4, 5, 6, + 27, 40, 7, 40, 42, 40, 3, 3, 38, 45, + 3, 36, 45, 38, 45, 3, 40, 43, 44, 36, + 0, 15, 54, 93, -1, -1, 37, 56, 55, -1, + 57, 9, 10, 11, 12, 13, 14, 15, 16, 17, + 18, 19, 20, 21, 22, 23, 24, 25, 26, -1, + -1, -1, -1, 80, -1, -1, -1, -1, -1, 86, + 28, 29, 30, 31, 32, 33, 34, 35 }; /* -*-C-*- Note some compilers choke on comments on `#line' lines. */ -#line 3 "/usr/share/bison.simple" -/* This file comes from bison-1.28. */ +#line 3 "/usr/share/bison/bison.simple" /* Skeleton output parser for bison, - Copyright (C) 1984, 1989, 1990 Free Software Foundation, Inc. + + Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 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 @@ -315,62 +336,131 @@ static const short yycheck[] = { 7, This special exception was added by the Free Software Foundation in version 1.24 of Bison. */ -/* This is the parser code that is written into each bison parser - when the %semantic_parser declaration is not specified in the grammar. - It was written by Richard Stallman by simplifying the hairy parser - used when %semantic_parser is specified. */ +/* This is the parser code that is written into each bison parser when + the %semantic_parser declaration is not specified in the grammar. + It was written by Richard Stallman by simplifying the hairy parser + used when %semantic_parser is specified. */ -#ifndef YYSTACK_USE_ALLOCA -#ifdef alloca -#define YYSTACK_USE_ALLOCA -#else /* alloca not defined */ -#ifdef __GNUC__ -#define YYSTACK_USE_ALLOCA -#define alloca __builtin_alloca -#else /* not GNU C. */ -#if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi) || (defined (__sun) && defined (__i386)) -#define YYSTACK_USE_ALLOCA -#include -#else /* not sparc */ -/* We think this test detects Watcom and Microsoft C. */ -/* This used to test MSDOS, but that is a bad idea - since that symbol is in the user namespace. */ -#if (defined (_MSDOS) || defined (_MSDOS_)) && !defined (__TURBOC__) -#if 0 /* No need for malloc.h, which pollutes the namespace; - instead, just don't use alloca. */ -#include -#endif -#else /* not MSDOS, or __TURBOC__ */ -#if defined(_AIX) -/* I don't know what this was needed for, but it pollutes the namespace. - So I turned it off. rms, 2 May 1997. */ -/* #include */ - #pragma alloca -#define YYSTACK_USE_ALLOCA -#else /* not MSDOS, or __TURBOC__, or _AIX */ -#if 0 -#ifdef __hpux /* haible@ilog.fr says this works for HPUX 9.05 and up, - and on HPUX 10. Eventually we can turn this on. */ -#define YYSTACK_USE_ALLOCA -#define alloca __builtin_alloca -#endif /* __hpux */ -#endif -#endif /* not _AIX */ -#endif /* not MSDOS, or __TURBOC__ */ -#endif /* not sparc */ -#endif /* not GNU C */ -#endif /* alloca not defined */ -#endif /* YYSTACK_USE_ALLOCA not defined */ +/* 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. */ + +#if ! defined (yyoverflow) || defined (YYERROR_VERBOSE) + +/* The parser invokes alloca or malloc; define the necessary symbols. */ + +# if YYSTACK_USE_ALLOCA +# define YYSTACK_ALLOC alloca +# else +# ifndef YYSTACK_USE_ALLOCA +# if defined (alloca) || defined (_ALLOCA_H) +# define YYSTACK_ALLOC alloca +# else +# ifdef __GNUC__ +# define YYSTACK_ALLOC __builtin_alloca +# endif +# endif +# endif +# endif + +# ifdef YYSTACK_ALLOC + /* Pacify GCC's `empty if-body' warning. */ +# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0) +# else +# if defined (__STDC__) || defined (__cplusplus) +# include /* INFRINGES ON USER NAME SPACE */ +# define YYSIZE_T size_t +# endif +# define YYSTACK_ALLOC malloc +# define YYSTACK_FREE free +# endif +#endif /* ! defined (yyoverflow) || defined (YYERROR_VERBOSE) */ + + +#if (! defined (yyoverflow) \ + && (! defined (__cplusplus) \ + || (YYLTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) + +/* A type that is properly aligned for any stack member. */ +union yyalloc +{ + short yyss; + YYSTYPE yyvs; +# if YYLSP_NEEDED + YYLTYPE yyls; +# endif +}; + +/* The size of the maximum gap between one aligned stack and the next. */ +# define YYSTACK_GAP_MAX (sizeof (union yyalloc) - 1) + +/* The size of an array large to enough to hold all stacks, each with + N elements. */ +# if YYLSP_NEEDED +# define YYSTACK_BYTES(N) \ + ((N) * (sizeof (short) + sizeof (YYSTYPE) + sizeof (YYLTYPE)) \ + + 2 * YYSTACK_GAP_MAX) +# else +# define YYSTACK_BYTES(N) \ + ((N) * (sizeof (short) + sizeof (YYSTYPE)) \ + + YYSTACK_GAP_MAX) +# endif + +/* Copy COUNT objects from FROM to TO. The source and destination do + not overlap. */ +# ifndef YYCOPY +# if 1 < __GNUC__ +# define YYCOPY(To, From, Count) \ + __builtin_memcpy (To, From, (Count) * sizeof (*(From))) +# else +# define YYCOPY(To, From, Count) \ + do \ + { \ + register YYSIZE_T yyi; \ + for (yyi = 0; yyi < (Count); yyi++) \ + (To)[yyi] = (From)[yyi]; \ + } \ + while (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_MAX; \ + yyptr += yynewbytes / sizeof (*yyptr); \ + } \ + while (0) -#ifdef YYSTACK_USE_ALLOCA -#define YYSTACK_ALLOC alloca -#else -#define YYSTACK_ALLOC malloc #endif -/* Note: there must be only one dollar sign in this file. - It is replaced by the list of actions, each action - as one case of the switch. */ + +#if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__) +# define YYSIZE_T __SIZE_TYPE__ +#endif +#if ! defined (YYSIZE_T) && defined (size_t) +# define YYSIZE_T size_t +#endif +#if ! defined (YYSIZE_T) +# if defined (__STDC__) || defined (__cplusplus) +# include /* INFRINGES ON USER NAME SPACE */ +# define YYSIZE_T size_t +# endif +#endif +#if ! defined (YYSIZE_T) +# define YYSIZE_T unsigned int +#endif #define yyerrok (yyerrstatus = 0) #define yyclearin (yychar = YYEMPTY) @@ -379,131 +469,161 @@ static const short yycheck[] = { 7, #define YYACCEPT goto yyacceptlab #define YYABORT goto yyabortlab #define YYERROR goto yyerrlab1 -/* Like YYERROR except do call yyerror. - This remains here temporarily to ease the - transition to the new meaning of YYERROR, for GCC. +/* 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) \ +#define YYBACKUP(Token, Value) \ do \ if (yychar == YYEMPTY && yylen == 1) \ - { yychar = (token), yylval = (value); \ + { \ + yychar = (Token); \ + yylval = (Value); \ yychar1 = YYTRANSLATE (yychar); \ YYPOPSTACK; \ goto yybackup; \ } \ else \ - { yyerror ("syntax error: cannot back up"); YYERROR; } \ + { \ + yyerror ("syntax error: cannot back up"); \ + YYERROR; \ + } \ while (0) #define YYTERROR 1 #define YYERRCODE 256 -#ifndef YYPURE -#define YYLEX yylex() + +/* YYLLOC_DEFAULT -- Compute the default location (before the actions + are run). + + When YYLLOC_DEFAULT is run, CURRENT is set the location of the + first token. By default, to implement support for ranges, extend + its range to the last symbol. */ + +#ifndef YYLLOC_DEFAULT +# define YYLLOC_DEFAULT(Current, Rhs, N) \ + Current.last_line = Rhs[N].last_line; \ + Current.last_column = Rhs[N].last_column; #endif -#ifdef YYPURE -#ifdef YYLSP_NEEDED -#ifdef YYLEX_PARAM -#define YYLEX yylex(&yylval, &yylloc, YYLEX_PARAM) -#else -#define YYLEX yylex(&yylval, &yylloc) -#endif -#else /* not YYLSP_NEEDED */ -#ifdef YYLEX_PARAM -#define YYLEX yylex(&yylval, YYLEX_PARAM) -#else -#define YYLEX yylex(&yylval) -#endif -#endif /* not YYLSP_NEEDED */ -#endif -/* If nonreentrant, generate the variables here */ +/* YYLEX -- calling `yylex' with the right arguments. */ -#ifndef YYPURE +#if YYPURE +# if YYLSP_NEEDED +# ifdef YYLEX_PARAM +# define YYLEX yylex (&yylval, &yylloc, YYLEX_PARAM) +# else +# define YYLEX yylex (&yylval, &yylloc) +# endif +# else /* !YYLSP_NEEDED */ +# ifdef YYLEX_PARAM +# define YYLEX yylex (&yylval, YYLEX_PARAM) +# else +# define YYLEX yylex (&yylval) +# endif +# endif /* !YYLSP_NEEDED */ +#else /* !YYPURE */ +# define YYLEX yylex () +#endif /* !YYPURE */ -int yychar; /* the lookahead symbol */ -YYSTYPE yylval; /* the semantic value of the */ - /* lookahead symbol */ -#ifdef YYLSP_NEEDED -YYLTYPE yylloc; /* location data for the lookahead */ - /* symbol */ -#endif +/* Enable debugging if requested. */ +#if YYDEBUG -int yynerrs; /* number of parse errors so far */ -#endif /* not YYPURE */ +# ifndef YYFPRINTF +# include /* INFRINGES ON USER NAME SPACE */ +# define YYFPRINTF fprintf +# endif -#if YYDEBUG != 0 -int yydebug; /* nonzero means print parse trace */ -/* Since this is uninitialized, it does not stop multiple parsers - from coexisting. */ -#endif - -/* YYINITDEPTH indicates the initial size of the parser's stacks */ +# define YYDPRINTF(Args) \ +do { \ + if (yydebug) \ + YYFPRINTF Args; \ +} while (0) +/* Nonzero means print parse trace. It is left uninitialized so that + multiple parsers can coexist. */ +int yydebug; +#else /* !YYDEBUG */ +# define YYDPRINTF(Args) +#endif /* !YYDEBUG */ +/* YYINITDEPTH -- initial size of the parser's stacks. */ #ifndef YYINITDEPTH -#define YYINITDEPTH 200 +# define YYINITDEPTH 200 #endif -/* YYMAXDEPTH is the maximum size the stacks can grow to - (effective only if the built-in stack extension method is used). */ +/* 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 + SIZE_MAX < YYSTACK_BYTES (YYMAXDEPTH) + evaluated with infinite-precision integer arithmetic. */ #if YYMAXDEPTH == 0 -#undef YYMAXDEPTH +# undef YYMAXDEPTH #endif #ifndef YYMAXDEPTH -#define YYMAXDEPTH 10000 +# define YYMAXDEPTH 10000 #endif -/* Define __yy_memcpy. Note that the size argument - should be passed with type unsigned int, because that is what the non-GCC - definitions require. With GCC, __builtin_memcpy takes an arg - of type size_t, but it can handle unsigned int. */ +#ifdef YYERROR_VERBOSE -#if __GNUC__ > 1 /* GNU C and GNU C++ define this. */ -#define __yy_memcpy(TO,FROM,COUNT) __builtin_memcpy(TO,FROM,COUNT) -#else /* not GNU C or C++ */ -#ifndef __cplusplus - -/* This is the most reliable way to avoid incompatibilities - in available built-in functions on various systems. */ -static void -__yy_memcpy (to, from, count) - char *to; - char *from; - unsigned int count; +# ifndef yystrlen +# if defined (__GLIBC__) && defined (_STRING_H) +# define yystrlen strlen +# else +/* Return the length of YYSTR. */ +static YYSIZE_T +# if defined (__STDC__) || defined (__cplusplus) +yystrlen (const char *yystr) +# else +yystrlen (yystr) + const char *yystr; +# endif { - register char *f = from; - register char *t = to; - register int i = count; + register const char *yys = yystr; - while (i-- > 0) - *t++ = *f++; + while (*yys++ != '\0') + continue; + + return yys - yystr - 1; } +# endif +# endif -#else /* __cplusplus */ - -/* This is the most reliable way to avoid incompatibilities - in available built-in functions on various systems. */ -static void -__yy_memcpy (char *to, char *from, unsigned int count) +# 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. */ +static char * +# if defined (__STDC__) || defined (__cplusplus) +yystpcpy (char *yydest, const char *yysrc) +# else +yystpcpy (yydest, yysrc) + char *yydest; + const char *yysrc; +# endif { - register char *t = to; - register char *f = from; - register int i = count; + register char *yyd = yydest; + register const char *yys = yysrc; - while (i-- > 0) - *t++ = *f++; + while ((*yyd++ = *yys++) != '\0') + continue; + + return yyd - 1; } - -#endif +# endif +# endif #endif -#line 217 "/usr/share/bison.simple" +#line 315 "/usr/share/bison/bison.simple" + /* The user can define YYPARSE_PARAM as the name of an argument to be passed into yyparse. The argument should have type void *. @@ -512,76 +632,121 @@ __yy_memcpy (char *to, char *from, unsigned int count) to the proper pointer type. */ #ifdef YYPARSE_PARAM -#ifdef __cplusplus -#define YYPARSE_PARAM_ARG void *YYPARSE_PARAM -#define YYPARSE_PARAM_DECL -#else /* not __cplusplus */ -#define YYPARSE_PARAM_ARG YYPARSE_PARAM -#define YYPARSE_PARAM_DECL void *YYPARSE_PARAM; -#endif /* not __cplusplus */ -#else /* not YYPARSE_PARAM */ -#define YYPARSE_PARAM_ARG -#define YYPARSE_PARAM_DECL -#endif /* not YYPARSE_PARAM */ +# if defined (__STDC__) || defined (__cplusplus) +# define YYPARSE_PARAM_ARG void *YYPARSE_PARAM +# define YYPARSE_PARAM_DECL +# else +# define YYPARSE_PARAM_ARG YYPARSE_PARAM +# define YYPARSE_PARAM_DECL void *YYPARSE_PARAM; +# endif +#else /* !YYPARSE_PARAM */ +# define YYPARSE_PARAM_ARG +# define YYPARSE_PARAM_DECL +#endif /* !YYPARSE_PARAM */ /* Prevent warning if -Wstrict-prototypes. */ #ifdef __GNUC__ -#ifdef YYPARSE_PARAM +# ifdef YYPARSE_PARAM int yyparse (void *); -#else +# else int yyparse (void); +# endif #endif + +/* YY_DECL_VARIABLES -- depending whether we use a pure parser, + variables are global, or local to YYPARSE. */ + +#define YY_DECL_NON_LSP_VARIABLES \ +/* The lookahead symbol. */ \ +int yychar; \ + \ +/* The semantic value of the lookahead symbol. */ \ +YYSTYPE yylval; \ + \ +/* Number of parse errors so far. */ \ +int yynerrs; + +#if YYLSP_NEEDED +# define YY_DECL_VARIABLES \ +YY_DECL_NON_LSP_VARIABLES \ + \ +/* Location data for the lookahead symbol. */ \ +YYLTYPE yylloc; +#else +# define YY_DECL_VARIABLES \ +YY_DECL_NON_LSP_VARIABLES #endif + +/* If nonreentrant, generate the variables here. */ + +#if !YYPURE +YY_DECL_VARIABLES +#endif /* !YYPURE */ + int -yyparse(YYPARSE_PARAM_ARG) +yyparse (YYPARSE_PARAM_ARG) YYPARSE_PARAM_DECL { + /* If reentrant, generate the variables here. */ +#if YYPURE + YY_DECL_VARIABLES +#endif /* !YYPURE */ + register int yystate; register int yyn; + int yyresult; + /* Number of tokens to shift before error messages enabled. */ + int yyerrstatus; + /* Lookahead token as an internal (translated) token number. */ + int yychar1 = 0; + + /* 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. */ + short yyssa[YYINITDEPTH]; + short *yyss = yyssa; register short *yyssp; + + /* The semantic value stack. */ + YYSTYPE yyvsa[YYINITDEPTH]; + YYSTYPE *yyvs = yyvsa; register YYSTYPE *yyvsp; - int yyerrstatus; /* number of tokens to shift before error messages enabled */ - int yychar1 = 0; /* lookahead token as an internal (translated) token number */ - short yyssa[YYINITDEPTH]; /* the state stack */ - YYSTYPE yyvsa[YYINITDEPTH]; /* the semantic value stack */ - - short *yyss = yyssa; /* refer to the stacks thru separate pointers */ - YYSTYPE *yyvs = yyvsa; /* to allow yyoverflow to reallocate them elsewhere */ - -#ifdef YYLSP_NEEDED - YYLTYPE yylsa[YYINITDEPTH]; /* the location stack */ +#if YYLSP_NEEDED + /* The location stack. */ + YYLTYPE yylsa[YYINITDEPTH]; YYLTYPE *yyls = yylsa; YYLTYPE *yylsp; +#endif -#define YYPOPSTACK (yyvsp--, yyssp--, yylsp--) +#if YYLSP_NEEDED +# define YYPOPSTACK (yyvsp--, yyssp--, yylsp--) #else -#define YYPOPSTACK (yyvsp--, yyssp--) +# define YYPOPSTACK (yyvsp--, yyssp--) #endif - int yystacksize = YYINITDEPTH; - int yyfree_stacks = 0; + YYSIZE_T yystacksize = YYINITDEPTH; -#ifdef YYPURE - int yychar; - YYSTYPE yylval; - int yynerrs; -#ifdef YYLSP_NEEDED - YYLTYPE yylloc; -#endif + + /* The variables used to return semantic value and location from the + action routines. */ + YYSTYPE yyval; +#if YYLSP_NEEDED + YYLTYPE yyloc; #endif - YYSTYPE yyval; /* the variable used to return */ - /* semantic values from the action */ - /* routines */ - + /* When reducing, the number of symbols on the RHS of the reduced + rule. */ int yylen; -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Starting parse\n"); -#endif + YYDPRINTF ((stderr, "Starting parse\n")); yystate = 0; yyerrstatus = 0; @@ -593,110 +758,110 @@ yyparse(YYPARSE_PARAM_ARG) so that they stay on the same level as the state stack. The wasted elements are never initialized. */ - yyssp = yyss - 1; + yyssp = yyss; yyvsp = yyvs; -#ifdef YYLSP_NEEDED +#if YYLSP_NEEDED yylsp = yyls; #endif + goto yysetstate; -/* Push a new state, which is found in yystate . */ -/* In all cases, when you get here, the value and location stacks - have just been pushed. so pushing a state here evens the stacks. */ -yynewstate: +/*------------------------------------------------------------. +| 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++; - *++yyssp = yystate; + yysetstate: + *yyssp = yystate; if (yyssp >= yyss + yystacksize - 1) { - /* 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; - short *yyss1 = yyss; -#ifdef YYLSP_NEEDED - YYLTYPE *yyls1 = yyls; -#endif - /* Get the current used size of the three stacks, in elements. */ - int size = yyssp - yyss + 1; + YYSIZE_T yysize = yyssp - yyss + 1; #ifdef yyoverflow - /* Each stack pointer address is followed by the size of - the data in use in that stack, in bytes. */ -#ifdef YYLSP_NEEDED - /* This used to be a conditional around just the two extra args, - but that might be undefined if yyoverflow is a macro. */ - yyoverflow("parser stack overflow", - &yyss1, size * sizeof (*yyssp), - &yyvs1, size * sizeof (*yyvsp), - &yyls1, size * sizeof (*yylsp), - &yystacksize); -#else - yyoverflow("parser stack overflow", - &yyss1, size * sizeof (*yyssp), - &yyvs1, size * sizeof (*yyvsp), - &yystacksize); -#endif + { + /* 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; + short *yyss1 = yyss; - yyss = yyss1; yyvs = yyvs1; -#ifdef YYLSP_NEEDED - yyls = yyls1; -#endif + /* Each stack pointer address is followed by the size of the + data in use in that stack, in bytes. */ +# if YYLSP_NEEDED + YYLTYPE *yyls1 = yyls; + /* This used to be a conditional around just the two extra args, + but that might be undefined if yyoverflow is a macro. */ + yyoverflow ("parser stack overflow", + &yyss1, yysize * sizeof (*yyssp), + &yyvs1, yysize * sizeof (*yyvsp), + &yyls1, yysize * sizeof (*yylsp), + &yystacksize); + yyls = yyls1; +# else + yyoverflow ("parser stack overflow", + &yyss1, yysize * sizeof (*yyssp), + &yyvs1, yysize * sizeof (*yyvsp), + &yystacksize); +# endif + yyss = yyss1; + yyvs = yyvs1; + } #else /* no yyoverflow */ +# ifndef YYSTACK_RELOCATE + goto yyoverflowlab; +# else /* Extend the stack our own way. */ if (yystacksize >= YYMAXDEPTH) - { - yyerror("parser stack overflow"); - if (yyfree_stacks) - { - free (yyss); - free (yyvs); -#ifdef YYLSP_NEEDED - free (yyls); -#endif - } - return 2; - } + goto yyoverflowlab; yystacksize *= 2; if (yystacksize > YYMAXDEPTH) yystacksize = YYMAXDEPTH; -#ifndef YYSTACK_USE_ALLOCA - yyfree_stacks = 1; -#endif - yyss = (short *) YYSTACK_ALLOC (yystacksize * sizeof (*yyssp)); - __yy_memcpy ((char *)yyss, (char *)yyss1, - size * (unsigned int) sizeof (*yyssp)); - yyvs = (YYSTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yyvsp)); - __yy_memcpy ((char *)yyvs, (char *)yyvs1, - size * (unsigned int) sizeof (*yyvsp)); -#ifdef YYLSP_NEEDED - yyls = (YYLTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yylsp)); - __yy_memcpy ((char *)yyls, (char *)yyls1, - size * (unsigned int) sizeof (*yylsp)); -#endif + + { + short *yyss1 = yyss; + union yyalloc *yyptr = + (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); + if (! yyptr) + goto yyoverflowlab; + YYSTACK_RELOCATE (yyss); + YYSTACK_RELOCATE (yyvs); +# if YYLSP_NEEDED + YYSTACK_RELOCATE (yyls); +# endif +# undef YYSTACK_RELOCATE + if (yyss1 != yyssa) + YYSTACK_FREE (yyss1); + } +# endif #endif /* no yyoverflow */ - yyssp = yyss + size - 1; - yyvsp = yyvs + size - 1; -#ifdef YYLSP_NEEDED - yylsp = yyls + size - 1; + yyssp = yyss + yysize - 1; + yyvsp = yyvs + yysize - 1; +#if YYLSP_NEEDED + yylsp = yyls + yysize - 1; #endif -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Stack size increased to %d\n", yystacksize); -#endif + YYDPRINTF ((stderr, "Stack size increased to %lu\n", + (unsigned long int) yystacksize)); if (yyssp >= yyss + yystacksize - 1) YYABORT; } -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Entering state %d\n", yystate); -#endif + YYDPRINTF ((stderr, "Entering state %d\n", yystate)); goto yybackup; - yybackup: + + +/*-----------. +| yybackup. | +`-----------*/ +yybackup: /* Do appropriate processing given the current state. */ /* Read a lookahead token if we need one and don't already have one. */ @@ -715,10 +880,7 @@ yynewstate: if (yychar == YYEMPTY) { -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Reading a token: "); -#endif + YYDPRINTF ((stderr, "Reading a token: ")); yychar = YYLEX; } @@ -729,25 +891,25 @@ yynewstate: yychar1 = 0; yychar = YYEOF; /* Don't call YYLEX any more */ -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Now at end of input.\n"); -#endif + YYDPRINTF ((stderr, "Now at end of input.\n")); } else { - yychar1 = YYTRANSLATE(yychar); + yychar1 = YYTRANSLATE (yychar); -#if YYDEBUG != 0 +#if YYDEBUG + /* We have to keep this `#if YYDEBUG', since we use variables + which are defined only if `YYDEBUG' is set. */ if (yydebug) { - fprintf (stderr, "Next token is %d (%s", yychar, yytname[yychar1]); - /* Give the individual parser a way to print the precise meaning - of a token, for further debugging info. */ -#ifdef YYPRINT + YYFPRINTF (stderr, "Next token is %d (%s", + yychar, yytname[yychar1]); + /* Give the individual parser a way to print the precise + meaning of a token, for further debugging info. */ +# ifdef YYPRINT YYPRINT (stderr, yychar, yylval); -#endif - fprintf (stderr, ")\n"); +# endif + YYFPRINTF (stderr, ")\n"); } #endif } @@ -779,55 +941,77 @@ yynewstate: YYACCEPT; /* Shift the lookahead token. */ - -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Shifting token %d (%s), ", yychar, yytname[yychar1]); -#endif + YYDPRINTF ((stderr, "Shifting token %d (%s), ", + yychar, yytname[yychar1])); /* Discard the token being shifted unless it is eof. */ if (yychar != YYEOF) yychar = YYEMPTY; *++yyvsp = yylval; -#ifdef YYLSP_NEEDED +#if YYLSP_NEEDED *++yylsp = yylloc; #endif - /* count tokens shifted since error; after three, turn off error status. */ - if (yyerrstatus) yyerrstatus--; + /* Count tokens shifted since error; after three, turn off error + status. */ + if (yyerrstatus) + yyerrstatus--; yystate = yyn; goto yynewstate; -/* Do the default action for the current state. */ -yydefault: +/*-----------------------------------------------------------. +| yydefault -- do the default action for the current state. | +`-----------------------------------------------------------*/ +yydefault: yyn = yydefact[yystate]; if (yyn == 0) goto yyerrlab; + goto yyreduce; -/* Do a reduction. yyn is the number of a rule to reduce with. */ + +/*-----------------------------. +| yyreduce -- Do a reduction. | +`-----------------------------*/ yyreduce: + /* yyn is the number of a rule to reduce with. */ yylen = yyr2[yyn]; - if (yylen > 0) - yyval = yyvsp[1-yylen]; /* implement default value of the action */ -#if YYDEBUG != 0 - if (yydebug) - { - int i; + /* If YYLEN is nonzero, implement the default value of the action: + `$$ = $1'. - fprintf (stderr, "Reducing via rule %d (line %d), ", - yyn, yyrline[yyn]); + Otherwise, the following line sets YYVAL to the semantic value of + the lookahead token. 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]; - /* Print the symbols being reduced, and their result. */ - for (i = yyprhs[yyn]; yyrhs[i] > 0; i++) - fprintf (stderr, "%s ", yytname[yyrhs[i]]); - fprintf (stderr, " -> %s\n", yytname[yyr1[yyn]]); - } +#if YYLSP_NEEDED + /* Similarly for the default location. Let the user run additional + commands if for instance locations are ranges. */ + yyloc = yylsp[1-yylen]; + YYLLOC_DEFAULT (yyloc, (yylsp - yylen), yylen); #endif +#if YYDEBUG + /* We have to keep this `#if YYDEBUG', since we use variables which + are defined only if `YYDEBUG' is set. */ + if (yydebug) + { + int yyi; + + YYFPRINTF (stderr, "Reducing via rule %d (line %d), ", + yyn, yyrline[yyn]); + + /* Print the symbols being reduced, and their result. */ + for (yyi = yyprhs[yyn]; yyrhs[yyi] > 0; yyi++) + YYFPRINTF (stderr, "%s ", yytname[yyrhs[yyi]]); + YYFPRINTF (stderr, " -> %s\n", yytname[yyr1[yyn]]); + } +#endif switch (yyn) { @@ -839,8 +1023,8 @@ case 4: if (!dc_file->add_class(current_class)) { yyerror("Duplicate class name: " + current_class->_name); } -; - break;} +} + break; case 6: #line 107 "dcParser.yxx" { @@ -852,24 +1036,24 @@ case 6: } else { yyval.u.dclass = (*ni).second; } -; - break;} +} + break; case 9: #line 126 "dcParser.yxx" { if (yyvsp[0].u.dclass != (DCClass *)NULL) { current_class->_parents.push_back(yyvsp[0].u.dclass); } -; - break;} +} + break; case 10: #line 132 "dcParser.yxx" { if (yyvsp[0].u.dclass != (DCClass *)NULL) { current_class->_parents.push_back(yyvsp[0].u.dclass); } -; - break;} +} + break; case 15: #line 148 "dcParser.yxx" { @@ -878,8 +1062,8 @@ case 15: if (!current_class->add_field(current_atomic)) { yyerror("Duplicate field name: " + current_atomic->_name); } -; - break;} +} + break; case 17: #line 160 "dcParser.yxx" { @@ -893,65 +1077,65 @@ case 17: yyerror("Not an atomic field: " + yyvsp[0].str); } } -; - break;} +} + break; case 22: #line 186 "dcParser.yxx" { atomic_element = DCAtomicField::ElementType(); atomic_element._type = yyvsp[0].u.subatomic; -; - break;} +} + break; case 23: #line 191 "dcParser.yxx" { current_atomic->_elements.push_back(atomic_element); -; - break;} +} + break; case 25: #line 199 "dcParser.yxx" { atomic_element._divisor = yyvsp[0].u.integer; -; - break;} +} + break; case 26: #line 203 "dcParser.yxx" { atomic_element._name = yyvsp[0].str; -; - break;} +} + break; case 27: #line 207 "dcParser.yxx" { if (!atomic_element.set_default_value(yyvsp[0].u.integer)) { yyerror("Invalid default value: " + yyvsp[0].str); } -; - break;} +} + break; case 28: #line 213 "dcParser.yxx" { if (!atomic_element.set_default_value(yyvsp[0].u.real)) { yyerror("Invalid default value: " + yyvsp[0].str); } -; - break;} +} + break; case 29: #line 219 "dcParser.yxx" { if (!atomic_element.set_default_value(yyvsp[0].str)) { yyerror("Invalid default value: \"" + yyvsp[0].str + "\""); } -; - break;} +} + break; case 30: #line 225 "dcParser.yxx" { if (!atomic_element.set_default_value_literal(yyvsp[0].str)) { yyerror("Invalid default hex string value"); } -; - break;} +} + break; case 31: #line 231 "dcParser.yxx" { @@ -960,40 +1144,40 @@ case 31: } else { atomic_element._has_default_value = true; } -; - break;} +} + break; case 38: #line 257 "dcParser.yxx" { if (!atomic_element.add_default_value(yyvsp[0].u.integer)) { yyerror("Invalid default value: " + yyvsp[0].str); } -; - break;} +} + break; case 39: #line 263 "dcParser.yxx" { if (!atomic_element.add_default_value(yyvsp[0].u.real)) { yyerror("Invalid default value: " + yyvsp[0].str); } -; - break;} +} + break; case 40: #line 269 "dcParser.yxx" { if (!atomic_element.add_default_value(yyvsp[0].str)) { yyerror("Invalid default value: " + yyvsp[0].str); } -; - break;} +} + break; case 41: #line 275 "dcParser.yxx" { if (!atomic_element.add_default_value_literal(yyvsp[0].str)) { yyerror("Invalid hex literal in default array"); } -; - break;} +} + break; case 42: #line 281 "dcParser.yxx" { @@ -1003,8 +1187,8 @@ case 42: break; } } -; - break;} +} + break; case 43: #line 290 "dcParser.yxx" { @@ -1014,8 +1198,8 @@ case 43: break; } } -; - break;} +} + break; case 44: #line 299 "dcParser.yxx" { @@ -1025,164 +1209,164 @@ case 44: break; } } -; - break;} +} + break; case 45: #line 311 "dcParser.yxx" { yyval.u.subatomic = ST_int8; -; - break;} +} + break; case 46: #line 315 "dcParser.yxx" { yyval.u.subatomic = ST_int16; -; - break;} +} + break; case 47: #line 319 "dcParser.yxx" { yyval.u.subatomic = ST_int32; -; - break;} +} + break; case 48: #line 323 "dcParser.yxx" { yyval.u.subatomic = ST_int64; -; - break;} +} + break; case 49: #line 327 "dcParser.yxx" { yyval.u.subatomic = ST_uint8; -; - break;} +} + break; case 50: #line 331 "dcParser.yxx" { yyval.u.subatomic = ST_uint16; -; - break;} +} + break; case 51: #line 335 "dcParser.yxx" { yyval.u.subatomic = ST_uint32; -; - break;} +} + break; case 52: #line 339 "dcParser.yxx" { yyval.u.subatomic = ST_uint64; -; - break;} +} + break; case 53: #line 343 "dcParser.yxx" { yyval.u.subatomic = ST_float64; -; - break;} +} + break; case 54: #line 347 "dcParser.yxx" { yyval.u.subatomic = ST_string; -; - break;} +} + break; case 55: #line 351 "dcParser.yxx" { yyval.u.subatomic = ST_blob; -; - break;} +} + break; case 56: #line 355 "dcParser.yxx" { yyval.u.subatomic = ST_int8array; -; - break;} +} + break; case 57: #line 359 "dcParser.yxx" { yyval.u.subatomic = ST_int16array; -; - break;} +} + break; case 58: #line 363 "dcParser.yxx" { yyval.u.subatomic = ST_int32array; -; - break;} +} + break; case 59: #line 367 "dcParser.yxx" { yyval.u.subatomic = ST_uint8array; -; - break;} +} + break; case 60: #line 371 "dcParser.yxx" { yyval.u.subatomic = ST_uint16array; -; - break;} +} + break; case 61: #line 375 "dcParser.yxx" { yyval.u.subatomic = ST_uint32array; -; - break;} +} + break; case 62: #line 379 "dcParser.yxx" { yyval.u.subatomic = ST_uint32uint8array; -; - break;} +} + break; case 64: #line 387 "dcParser.yxx" { current_atomic->_flags |= DCAtomicField::F_required; -; - break;} +} + break; case 65: #line 391 "dcParser.yxx" { current_atomic->_flags |= DCAtomicField::F_broadcast; -; - break;} +} + break; case 66: #line 395 "dcParser.yxx" { current_atomic->_flags |= DCAtomicField::F_p2p; -; - break;} +} + break; case 67: #line 399 "dcParser.yxx" { current_atomic->_flags |= DCAtomicField::F_ram; -; - break;} +} + break; case 68: #line 403 "dcParser.yxx" { current_atomic->_flags |= DCAtomicField::F_db; -; - break;} +} + break; case 69: #line 407 "dcParser.yxx" { current_atomic->_flags |= DCAtomicField::F_clsend; -; - break;} +} + break; case 70: #line 411 "dcParser.yxx" { current_atomic->_flags |= DCAtomicField::F_clrecv; -; - break;} +} + break; case 71: #line 415 "dcParser.yxx" { current_atomic->_flags |= DCAtomicField::F_ownsend; -; - break;} +} + break; case 72: #line 422 "dcParser.yxx" { @@ -1191,16 +1375,16 @@ case 72: if (!current_class->add_field(current_molecular)) { yyerror("Duplicate field name: " + current_molecular->_name); } -; - break;} +} + break; case 74: #line 434 "dcParser.yxx" { if (yyvsp[0].u.atomic != (DCAtomicField *)NULL) { current_molecular->_fields.push_back(yyvsp[0].u.atomic); } -; - break;} +} + break; case 75: #line 440 "dcParser.yxx" { @@ -1212,52 +1396,38 @@ case 75: yyvsp[0].u.atomic->_name); } } -; - break;} } - /* the action file gets copied in in place of this dollarsign */ -#line 543 "/usr/share/bison.simple" + break; +} + +#line 705 "/usr/share/bison/bison.simple" + yyvsp -= yylen; yyssp -= yylen; -#ifdef YYLSP_NEEDED +#if YYLSP_NEEDED yylsp -= yylen; #endif -#if YYDEBUG != 0 +#if YYDEBUG if (yydebug) { - short *ssp1 = yyss - 1; - fprintf (stderr, "state stack now"); - while (ssp1 != yyssp) - fprintf (stderr, " %d", *++ssp1); - fprintf (stderr, "\n"); + short *yyssp1 = yyss - 1; + YYFPRINTF (stderr, "state stack now"); + while (yyssp1 != yyssp) + YYFPRINTF (stderr, " %d", *++yyssp1); + YYFPRINTF (stderr, "\n"); } #endif *++yyvsp = yyval; - -#ifdef YYLSP_NEEDED - yylsp++; - if (yylen == 0) - { - yylsp->first_line = yylloc.first_line; - yylsp->first_column = yylloc.first_column; - yylsp->last_line = (yylsp-1)->last_line; - yylsp->last_column = (yylsp-1)->last_column; - yylsp->text = 0; - } - else - { - yylsp->last_line = (yylsp+yylen-1)->last_line; - yylsp->last_column = (yylsp+yylen-1)->last_column; - } +#if YYLSP_NEEDED + *++yylsp = yyloc; #endif - /* 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. */ + /* 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]; @@ -1269,10 +1439,13 @@ case 75: goto yynewstate; -yyerrlab: /* here on detecting error */ - if (! yyerrstatus) - /* If not already recovering from an error, report this error. */ +/*------------------------------------. +| yyerrlab -- here on detecting error | +`------------------------------------*/ +yyerrlab: + /* If not already recovering from an error, report this error. */ + if (!yyerrstatus) { ++yynerrs; @@ -1281,102 +1454,121 @@ yyerrlab: /* here on detecting error */ if (yyn > YYFLAG && yyn < YYLAST) { - int size = 0; - char *msg; - int x, count; + YYSIZE_T yysize = 0; + char *yymsg; + int yyx, yycount; - count = 0; - /* Start X at -yyn if nec to avoid negative indexes in yycheck. */ - for (x = (yyn < 0 ? -yyn : 0); - x < (sizeof(yytname) / sizeof(char *)); x++) - if (yycheck[x + yyn] == x) - size += strlen(yytname[x]) + 15, count++; - msg = (char *) malloc(size + 15); - if (msg != 0) + yycount = 0; + /* Start YYX at -YYN if negative to avoid negative indexes in + YYCHECK. */ + for (yyx = yyn < 0 ? -yyn : 0; + yyx < (int) (sizeof (yytname) / sizeof (char *)); yyx++) + if (yycheck[yyx + yyn] == yyx) + yysize += yystrlen (yytname[yyx]) + 15, yycount++; + yysize += yystrlen ("parse error, unexpected ") + 1; + yysize += yystrlen (yytname[YYTRANSLATE (yychar)]); + yymsg = (char *) YYSTACK_ALLOC (yysize); + if (yymsg != 0) { - strcpy(msg, "parse error"); + char *yyp = yystpcpy (yymsg, "parse error, unexpected "); + yyp = yystpcpy (yyp, yytname[YYTRANSLATE (yychar)]); - if (count < 5) + if (yycount < 5) { - count = 0; - for (x = (yyn < 0 ? -yyn : 0); - x < (sizeof(yytname) / sizeof(char *)); x++) - if (yycheck[x + yyn] == x) + yycount = 0; + for (yyx = yyn < 0 ? -yyn : 0; + yyx < (int) (sizeof (yytname) / sizeof (char *)); + yyx++) + if (yycheck[yyx + yyn] == yyx) { - strcat(msg, count == 0 ? ", expecting `" : " or `"); - strcat(msg, yytname[x]); - strcat(msg, "'"); - count++; + const char *yyq = ! yycount ? ", expecting " : " or "; + yyp = yystpcpy (yyp, yyq); + yyp = yystpcpy (yyp, yytname[yyx]); + yycount++; } } - yyerror(msg); - free(msg); + yyerror (yymsg); + YYSTACK_FREE (yymsg); } else - yyerror ("parse error; also virtual memory exceeded"); + yyerror ("parse error; also virtual memory exhausted"); } else -#endif /* YYERROR_VERBOSE */ - yyerror("parse error"); +#endif /* defined (YYERROR_VERBOSE) */ + yyerror ("parse error"); } - goto yyerrlab1; -yyerrlab1: /* here on error raised explicitly by an action */ + +/*--------------------------------------------------. +| yyerrlab1 -- error raised explicitly by an action | +`--------------------------------------------------*/ +yyerrlab1: if (yyerrstatus == 3) { - /* if just tried and failed to reuse lookahead token after an error, discard it. */ + /* If just tried and failed to reuse lookahead token after an + error, discard it. */ /* return failure if at end of input */ if (yychar == YYEOF) YYABORT; - -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Discarding token %d (%s).\n", yychar, yytname[yychar1]); -#endif - + YYDPRINTF ((stderr, "Discarding token %d (%s).\n", + yychar, yytname[yychar1])); yychar = YYEMPTY; } - /* Else will try to reuse lookahead token - after shifting the error token. */ + /* Else will try to reuse lookahead token after shifting the error + token. */ yyerrstatus = 3; /* Each real token shifted decrements this */ goto yyerrhandle; -yyerrdefault: /* current state does not do anything special for the error token. */ +/*-------------------------------------------------------------------. +| yyerrdefault -- current state does not do anything special for the | +| error token. | +`-------------------------------------------------------------------*/ +yyerrdefault: #if 0 /* This is wrong; only states that explicitly want error tokens should shift them. */ - yyn = yydefact[yystate]; /* If its default is to accept any token, ok. Otherwise pop it.*/ - if (yyn) goto yydefault; + + /* If its default is to accept any token, ok. Otherwise pop it. */ + yyn = yydefact[yystate]; + if (yyn) + goto yydefault; #endif -yyerrpop: /* pop the current state because it cannot handle the error token */ - if (yyssp == yyss) YYABORT; +/*---------------------------------------------------------------. +| yyerrpop -- pop the current state because it cannot handle the | +| error token | +`---------------------------------------------------------------*/ +yyerrpop: + if (yyssp == yyss) + YYABORT; yyvsp--; yystate = *--yyssp; -#ifdef YYLSP_NEEDED +#if YYLSP_NEEDED yylsp--; #endif -#if YYDEBUG != 0 +#if YYDEBUG if (yydebug) { - short *ssp1 = yyss - 1; - fprintf (stderr, "Error: state stack now"); - while (ssp1 != yyssp) - fprintf (stderr, " %d", *++ssp1); - fprintf (stderr, "\n"); + short *yyssp1 = yyss - 1; + YYFPRINTF (stderr, "Error: state stack now"); + while (yyssp1 != yyssp) + YYFPRINTF (stderr, " %d", *++yyssp1); + YYFPRINTF (stderr, "\n"); } #endif +/*--------------. +| yyerrhandle. | +`--------------*/ yyerrhandle: - yyn = yypact[yystate]; if (yyn == YYFLAG) goto yyerrdefault; @@ -1399,41 +1591,44 @@ yyerrhandle: if (yyn == YYFINAL) YYACCEPT; -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Shifting error token, "); -#endif + YYDPRINTF ((stderr, "Shifting error token, ")); *++yyvsp = yylval; -#ifdef YYLSP_NEEDED +#if YYLSP_NEEDED *++yylsp = yylloc; #endif yystate = yyn; goto yynewstate; - yyacceptlab: - /* YYACCEPT comes here. */ - if (yyfree_stacks) - { - free (yyss); - free (yyvs); -#ifdef YYLSP_NEEDED - free (yyls); -#endif - } - return 0; - yyabortlab: - /* YYABORT comes here. */ - if (yyfree_stacks) - { - free (yyss); - free (yyvs); -#ifdef YYLSP_NEEDED - free (yyls); +/*-------------------------------------. +| yyacceptlab -- YYACCEPT comes here. | +`-------------------------------------*/ +yyacceptlab: + yyresult = 0; + goto yyreturn; + +/*-----------------------------------. +| yyabortlab -- YYABORT comes here. | +`-----------------------------------*/ +yyabortlab: + yyresult = 1; + goto yyreturn; + +/*---------------------------------------------. +| yyoverflowab -- parser overflow comes here. | +`---------------------------------------------*/ +yyoverflowlab: + yyerror ("parser stack overflow"); + yyresult = 2; + /* Fall through. */ + +yyreturn: +#ifndef yyoverflow + if (yyss != yyssa) + YYSTACK_FREE (yyss); #endif - } - return 1; + return yyresult; } #line 454 "dcParser.yxx" diff --git a/direct/src/dcparser/dcParser.h.prebuilt b/direct/src/dcparser/dcParser.h.prebuilt index 13ed7ef8cd..165e9c462d 100644 --- a/direct/src/dcparser/dcParser.h.prebuilt +++ b/direct/src/dcparser/dcParser.h.prebuilt @@ -1,36 +1,41 @@ -#define INTEGER 257 -#define REAL 258 -#define STRING 259 -#define HEX_STRING 260 -#define IDENTIFIER 261 -#define KW_DCLASS 262 -#define KW_INT8 263 -#define KW_INT16 264 -#define KW_INT32 265 -#define KW_INT64 266 -#define KW_UINT8 267 -#define KW_UINT16 268 -#define KW_UINT32 269 -#define KW_UINT64 270 -#define KW_FLOAT64 271 -#define KW_STRING 272 -#define KW_BLOB 273 -#define KW_INT8ARRAY 274 -#define KW_INT16ARRAY 275 -#define KW_INT32ARRAY 276 -#define KW_UINT8ARRAY 277 -#define KW_UINT16ARRAY 278 -#define KW_UINT32ARRAY 279 -#define KW_UINT32UINT8ARRAY 280 -#define KW_MOL 281 -#define KW_REQUIRED 282 -#define KW_BROADCAST 283 -#define KW_P2P 284 -#define KW_RAM 285 -#define KW_DB 286 -#define KW_CLSEND 287 -#define KW_CLRECV 288 -#define KW_OWNSEND 289 +#ifndef BISON_Y_TAB_H +# define BISON_Y_TAB_H + +# define INTEGER 257 +# define REAL 258 +# define STRING 259 +# define HEX_STRING 260 +# define IDENTIFIER 261 +# define KW_DCLASS 262 +# define KW_INT8 263 +# define KW_INT16 264 +# define KW_INT32 265 +# define KW_INT64 266 +# define KW_UINT8 267 +# define KW_UINT16 268 +# define KW_UINT32 269 +# define KW_UINT64 270 +# define KW_FLOAT64 271 +# define KW_STRING 272 +# define KW_BLOB 273 +# define KW_INT8ARRAY 274 +# define KW_INT16ARRAY 275 +# define KW_INT32ARRAY 276 +# define KW_UINT8ARRAY 277 +# define KW_UINT16ARRAY 278 +# define KW_UINT32ARRAY 279 +# define KW_UINT32UINT8ARRAY 280 +# define KW_MOL 281 +# define KW_REQUIRED 282 +# define KW_BROADCAST 283 +# define KW_P2P 284 +# define KW_RAM 285 +# define KW_DB 286 +# define KW_CLSEND 287 +# define KW_CLRECV 288 +# define KW_OWNSEND 289 extern YYSTYPE dcyylval; + +#endif /* not BISON_Y_TAB_H */ diff --git a/dtool/src/cppparser/cppBison.cxx.prebuilt b/dtool/src/cppparser/cppBison.cxx.prebuilt index 0755df49ac..79e2324a2a 100644 --- a/dtool/src/cppparser/cppBison.cxx.prebuilt +++ b/dtool/src/cppparser/cppBison.cxx.prebuilt @@ -1,6 +1,5 @@ - -/* A Bison parser, made from cppBison.yxx - by GNU Bison version 1.28 */ +/* A Bison parser, made from cppBison.yxx + by GNU bison 1.35. */ #define YYBISON 1 /* Identify Bison output. */ @@ -11,105 +10,105 @@ #define yychar cppyychar #define yydebug cppyydebug #define yynerrs cppyynerrs -#define YYLSP_NEEDED +#define YYLSP_NEEDED 1 -#define REAL 257 -#define INTEGER 258 -#define CHAR 259 -#define STRING 260 -#define SIMPLE_IDENTIFIER 261 -#define IDENTIFIER 262 -#define TYPENAME_IDENTIFIER 263 -#define SCOPING 264 -#define TYPEDEFNAME 265 -#define ELLIPSIS 266 -#define OROR 267 -#define ANDAND 268 -#define EQCOMPARE 269 -#define NECOMPARE 270 -#define LECOMPARE 271 -#define GECOMPARE 272 -#define LSHIFT 273 -#define RSHIFT 274 -#define POINTSAT_STAR 275 -#define DOT_STAR 276 -#define UNARY 277 -#define UNARY_NOT 278 -#define UNARY_NEGATE 279 -#define UNARY_MINUS 280 -#define UNARY_STAR 281 -#define UNARY_REF 282 -#define POINTSAT 283 -#define SCOPE 284 -#define PLUSPLUS 285 -#define MINUSMINUS 286 -#define TIMESEQUAL 287 -#define DIVIDEEQUAL 288 -#define MODEQUAL 289 -#define PLUSEQUAL 290 -#define MINUSEQUAL 291 -#define OREQUAL 292 -#define ANDEQUAL 293 -#define XOREQUAL 294 -#define LSHIFTEQUAL 295 -#define RSHIFTEQUAL 296 -#define TOKENPASTE 297 -#define KW_BEGIN_PUBLISH 298 -#define KW_BOOL 299 -#define KW_CATCH 300 -#define KW_CHAR 301 -#define KW_CLASS 302 -#define KW_CONST 303 -#define KW_DELETE 304 -#define KW_DOUBLE 305 -#define KW_DYNAMIC_CAST 306 -#define KW_ELSE 307 -#define KW_END_PUBLISH 308 -#define KW_ENUM 309 -#define KW_EXTERN 310 -#define KW_EXPLICIT 311 -#define KW_PUBLISHED 312 -#define KW_FALSE 313 -#define KW_FLOAT 314 -#define KW_FRIEND 315 -#define KW_FOR 316 -#define KW_GOTO 317 -#define KW_IF 318 -#define KW_INLINE 319 -#define KW_INT 320 -#define KW_LONG 321 -#define KW_LONGLONG 322 -#define KW_MUTABLE 323 -#define KW_NAMESPACE 324 -#define KW_NEW 325 -#define KW_OPERATOR 326 -#define KW_PRIVATE 327 -#define KW_PROTECTED 328 -#define KW_PUBLIC 329 -#define KW_REGISTER 330 -#define KW_RETURN 331 -#define KW_SHORT 332 -#define KW_SIGNED 333 -#define KW_SIZEOF 334 -#define KW_STATIC 335 -#define KW_STATIC_CAST 336 -#define KW_STRUCT 337 -#define KW_TEMPLATE 338 -#define KW_THROW 339 -#define KW_TRUE 340 -#define KW_TRY 341 -#define KW_TYPEDEF 342 -#define KW_TYPENAME 343 -#define KW_UNION 344 -#define KW_UNSIGNED 345 -#define KW_USING 346 -#define KW_VIRTUAL 347 -#define KW_VOID 348 -#define KW_VOLATILE 349 -#define KW_WHILE 350 -#define START_CPP 351 -#define START_CONST_EXPR 352 -#define START_TYPE 353 +# define REAL 257 +# define INTEGER 258 +# define CHAR 259 +# define STRING 260 +# define SIMPLE_IDENTIFIER 261 +# define IDENTIFIER 262 +# define TYPENAME_IDENTIFIER 263 +# define SCOPING 264 +# define TYPEDEFNAME 265 +# define ELLIPSIS 266 +# define OROR 267 +# define ANDAND 268 +# define EQCOMPARE 269 +# define NECOMPARE 270 +# define LECOMPARE 271 +# define GECOMPARE 272 +# define LSHIFT 273 +# define RSHIFT 274 +# define POINTSAT_STAR 275 +# define DOT_STAR 276 +# define UNARY 277 +# define UNARY_NOT 278 +# define UNARY_NEGATE 279 +# define UNARY_MINUS 280 +# define UNARY_STAR 281 +# define UNARY_REF 282 +# define POINTSAT 283 +# define SCOPE 284 +# define PLUSPLUS 285 +# define MINUSMINUS 286 +# define TIMESEQUAL 287 +# define DIVIDEEQUAL 288 +# define MODEQUAL 289 +# define PLUSEQUAL 290 +# define MINUSEQUAL 291 +# define OREQUAL 292 +# define ANDEQUAL 293 +# define XOREQUAL 294 +# define LSHIFTEQUAL 295 +# define RSHIFTEQUAL 296 +# define TOKENPASTE 297 +# define KW_BEGIN_PUBLISH 298 +# define KW_BOOL 299 +# define KW_CATCH 300 +# define KW_CHAR 301 +# define KW_CLASS 302 +# define KW_CONST 303 +# define KW_DELETE 304 +# define KW_DOUBLE 305 +# define KW_DYNAMIC_CAST 306 +# define KW_ELSE 307 +# define KW_END_PUBLISH 308 +# define KW_ENUM 309 +# define KW_EXTERN 310 +# define KW_EXPLICIT 311 +# define KW_PUBLISHED 312 +# define KW_FALSE 313 +# define KW_FLOAT 314 +# define KW_FRIEND 315 +# define KW_FOR 316 +# define KW_GOTO 317 +# define KW_IF 318 +# define KW_INLINE 319 +# define KW_INT 320 +# define KW_LONG 321 +# define KW_LONGLONG 322 +# define KW_MUTABLE 323 +# define KW_NAMESPACE 324 +# define KW_NEW 325 +# define KW_OPERATOR 326 +# define KW_PRIVATE 327 +# define KW_PROTECTED 328 +# define KW_PUBLIC 329 +# define KW_REGISTER 330 +# define KW_RETURN 331 +# define KW_SHORT 332 +# define KW_SIGNED 333 +# define KW_SIZEOF 334 +# define KW_STATIC 335 +# define KW_STATIC_CAST 336 +# define KW_STRUCT 337 +# define KW_TEMPLATE 338 +# define KW_THROW 339 +# define KW_TRUE 340 +# define KW_TRY 341 +# define KW_TYPEDEF 342 +# define KW_TYPENAME 343 +# define KW_UNION 344 +# define KW_UNSIGNED 345 +# define KW_USING 346 +# define KW_VIRTUAL 347 +# define KW_VOID 348 +# define KW_VOLATILE 349 +# define KW_WHILE 350 +# define START_CPP 351 +# define START_CONST_EXPR 352 +# define START_TYPE 353 #line 6 "cppBison.yxx" @@ -299,1263 +298,1303 @@ pop_struct() { #ifndef YYLTYPE -typedef - struct yyltype - { - int timestamp; - int first_line; - int first_column; - int last_line; - int last_column; - char *text; - } - yyltype; +typedef struct yyltype +{ + int first_line; + int first_column; -#define YYLTYPE yyltype + int last_line; + int last_column; +} yyltype; + +# define YYLTYPE yyltype +# define YYLTYPE_IS_TRIVIAL 1 #endif -#include - -#ifndef __cplusplus -#ifndef __STDC__ -#define const -#endif +#ifndef YYDEBUG +# define YYDEBUG 0 #endif -#define YYFINAL 837 +#define YYFINAL 840 #define YYFLAG -32768 #define YYNTBASE 124 +/* YYTRANSLATE(YYLEX) -- Bison token number corresponding to YYLEX. */ #define YYTRANSLATE(x) ((unsigned)(x) <= 353 ? yytranslate[x] : 215) -static const char 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, 122, 2, 2, 2, 115, 108, 2, 118, - 120, 113, 111, 101, 112, 117, 114, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 103, 102, 109, - 104, 110, 105, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 119, 2, 123, 107, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 100, 106, 121, 116, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 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, 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 +/* YYTRANSLATE[YYLEX] -- Bison token number corresponding to YYLEX. */ +static const char 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, 122, 2, 2, 2, 115, 108, 2, + 118, 120, 113, 111, 101, 112, 117, 114, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 103, 102, + 109, 104, 110, 105, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 119, 2, 123, 107, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 100, 106, 121, 116, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 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, 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 }; -#if YYDEBUG != 0 -static const short yyprhs[] = { 0, - 0, 3, 6, 9, 11, 14, 17, 19, 23, 28, - 29, 35, 37, 39, 41, 43, 45, 47, 50, 52, - 54, 57, 60, 63, 66, 67, 71, 73, 76, 80, - 83, 86, 89, 92, 95, 98, 101, 103, 107, 111, - 112, 117, 118, 124, 127, 132, 135, 140, 141, 146, - 147, 153, 157, 160, 165, 168, 173, 174, 181, 182, - 189, 190, 198, 199, 210, 211, 223, 224, 233, 234, - 244, 246, 248, 250, 255, 261, 263, 265, 267, 269, - 271, 273, 275, 277, 279, 281, 283, 285, 287, 289, - 291, 293, 295, 297, 299, 301, 303, 305, 307, 309, - 311, 313, 315, 317, 319, 321, 323, 325, 327, 329, - 331, 334, 337, 339, 341, 343, 345, 346, 353, 355, - 357, 359, 363, 366, 371, 375, 380, 382, 384, 386, - 389, 391, 394, 397, 400, 403, 407, 412, 416, 417, - 424, 426, 428, 430, 434, 437, 439, 443, 445, 448, - 450, 453, 455, 459, 465, 469, 474, 476, 478, 481, - 483, 487, 491, 497, 501, 505, 510, 512, 514, 516, - 519, 522, 525, 529, 534, 536, 538, 540, 543, 546, - 549, 553, 558, 566, 568, 571, 574, 577, 581, 586, - 594, 596, 598, 601, 603, 605, 607, 609, 612, 615, - 617, 619, 622, 624, 626, 628, 630, 633, 636, 638, - 640, 643, 646, 649, 652, 656, 657, 663, 664, 672, - 674, 676, 679, 683, 686, 689, 692, 696, 700, 704, - 708, 712, 716, 717, 723, 724, 731, 733, 735, 738, - 740, 744, 748, 754, 756, 758, 760, 762, 763, 770, - 775, 778, 782, 784, 786, 788, 790, 792, 794, 796, - 798, 800, 802, 804, 807, 810, 813, 816, 818, 821, - 823, 827, 830, 832, 833, 836, 838, 841, 843, 845, - 847, 849, 851, 853, 855, 857, 859, 861, 863, 865, - 867, 869, 871, 873, 875, 877, 879, 881, 883, 885, - 887, 889, 891, 893, 895, 897, 899, 901, 903, 905, - 907, 909, 911, 913, 915, 917, 919, 921, 923, 925, - 927, 929, 931, 933, 935, 937, 939, 941, 943, 945, - 947, 949, 951, 953, 955, 957, 959, 961, 963, 965, - 967, 969, 971, 973, 975, 977, 979, 981, 983, 985, - 987, 989, 991, 993, 995, 997, 999, 1001, 1003, 1005, - 1007, 1009, 1011, 1013, 1015, 1017, 1019, 1021, 1023, 1025, - 1027, 1029, 1031, 1033, 1035, 1037, 1039, 1041, 1043, 1045, - 1047, 1051, 1053, 1055, 1057, 1059, 1061, 1065, 1067, 1072, - 1080, 1088, 1093, 1096, 1099, 1102, 1105, 1108, 1112, 1116, - 1120, 1124, 1128, 1132, 1136, 1140, 1144, 1148, 1152, 1156, - 1160, 1164, 1168, 1174, 1179, 1184, 1188, 1192, 1196, 1200, - 1202, 1207, 1215, 1223, 1228, 1233, 1238, 1243, 1248, 1253, - 1258, 1263, 1268, 1273, 1278, 1281, 1287, 1290, 1293, 1296, - 1299, 1302, 1306, 1310, 1314, 1318, 1322, 1326, 1330, 1334, - 1338, 1342, 1346, 1350, 1354, 1358, 1362, 1366, 1370, 1376, - 1381, 1386, 1390, 1394, 1398, 1402, 1404, 1406, 1408, 1410, - 1412, 1414, 1416, 1418, 1421, 1424, 1426, 1428, 1430, 1433 +#if YYDEBUG +static const short yyprhs[] = +{ + 0, 0, 3, 6, 9, 11, 14, 17, 19, 23, + 28, 29, 35, 37, 39, 41, 43, 45, 47, 50, + 52, 54, 57, 60, 63, 66, 67, 71, 73, 76, + 80, 83, 86, 89, 92, 95, 98, 101, 103, 107, + 111, 112, 117, 118, 124, 127, 132, 135, 140, 141, + 146, 147, 153, 157, 160, 165, 168, 173, 174, 181, + 182, 189, 190, 198, 199, 210, 211, 223, 224, 233, + 234, 244, 246, 248, 250, 255, 261, 263, 265, 267, + 269, 271, 273, 275, 277, 279, 281, 283, 285, 287, + 289, 291, 293, 295, 297, 299, 301, 303, 305, 307, + 309, 311, 313, 315, 317, 319, 321, 323, 325, 327, + 329, 331, 334, 337, 339, 341, 343, 345, 346, 353, + 355, 357, 359, 363, 366, 371, 375, 380, 382, 384, + 386, 389, 391, 394, 397, 400, 403, 407, 412, 416, + 420, 421, 428, 430, 432, 434, 438, 441, 443, 447, + 449, 452, 454, 457, 459, 463, 469, 473, 478, 480, + 482, 485, 487, 491, 495, 501, 505, 509, 514, 516, + 518, 520, 523, 526, 529, 533, 538, 540, 542, 544, + 547, 550, 553, 557, 562, 570, 574, 576, 579, 582, + 585, 589, 594, 602, 604, 606, 609, 611, 613, 615, + 617, 620, 623, 625, 627, 630, 632, 634, 636, 638, + 641, 644, 646, 648, 651, 654, 657, 660, 664, 665, + 671, 672, 680, 682, 684, 687, 691, 694, 697, 700, + 704, 708, 712, 716, 720, 724, 725, 731, 732, 739, + 741, 743, 746, 748, 752, 756, 762, 764, 766, 768, + 770, 771, 778, 783, 786, 790, 792, 794, 796, 798, + 800, 802, 804, 806, 808, 810, 812, 815, 818, 821, + 824, 826, 829, 831, 835, 838, 840, 841, 844, 846, + 849, 851, 853, 855, 857, 859, 861, 863, 865, 867, + 869, 871, 873, 875, 877, 879, 881, 883, 885, 887, + 889, 891, 893, 895, 897, 899, 901, 903, 905, 907, + 909, 911, 913, 915, 917, 919, 921, 923, 925, 927, + 929, 931, 933, 935, 937, 939, 941, 943, 945, 947, + 949, 951, 953, 955, 957, 959, 961, 963, 965, 967, + 969, 971, 973, 975, 977, 979, 981, 983, 985, 987, + 989, 991, 993, 995, 997, 999, 1001, 1003, 1005, 1007, + 1009, 1011, 1013, 1015, 1017, 1019, 1021, 1023, 1025, 1027, + 1029, 1031, 1033, 1035, 1037, 1039, 1041, 1043, 1045, 1047, + 1049, 1051, 1053, 1055, 1059, 1061, 1063, 1065, 1067, 1069, + 1073, 1075, 1080, 1088, 1096, 1101, 1104, 1107, 1110, 1113, + 1116, 1120, 1124, 1128, 1132, 1136, 1140, 1144, 1148, 1152, + 1156, 1160, 1164, 1168, 1172, 1176, 1182, 1187, 1192, 1196, + 1200, 1204, 1208, 1210, 1215, 1223, 1231, 1236, 1241, 1246, + 1251, 1256, 1261, 1266, 1271, 1276, 1281, 1286, 1289, 1295, + 1298, 1301, 1304, 1307, 1310, 1314, 1318, 1322, 1326, 1330, + 1334, 1338, 1342, 1346, 1350, 1354, 1358, 1362, 1366, 1370, + 1374, 1378, 1384, 1389, 1394, 1398, 1402, 1406, 1410, 1412, + 1414, 1416, 1418, 1420, 1422, 1424, 1426, 1429, 1432, 1434, + 1436, 1438, 1441 }; - -static const short yyrhs[] = { 97, - 125, 0, 98, 209, 0, 99, 178, 0, 214, 0, - 125, 102, 0, 125, 130, 0, 127, 0, 126, 101, - 127, 0, 212, 118, 206, 120, 0, 0, 133, 100, - 129, 125, 121, 0, 134, 0, 156, 0, 128, 0, - 194, 0, 196, 0, 131, 0, 88, 140, 0, 44, - 0, 54, 0, 58, 103, 0, 75, 103, 0, 74, - 103, 0, 73, 103, 0, 0, 61, 132, 130, 0, - 214, 0, 133, 56, 0, 133, 56, 213, 0, 133, - 81, 0, 133, 65, 0, 133, 93, 0, 133, 57, - 0, 133, 95, 0, 133, 69, 0, 133, 76, 0, - 135, 0, 133, 176, 102, 0, 133, 145, 168, 0, - 0, 133, 176, 136, 138, 0, 0, 133, 49, 175, - 137, 139, 0, 162, 168, 0, 162, 167, 101, 138, - 0, 162, 168, 0, 162, 167, 101, 139, 0, 0, - 133, 176, 141, 143, 0, 0, 133, 49, 175, 142, - 144, 0, 133, 145, 168, 0, 162, 168, 0, 162, - 167, 101, 143, 0, 162, 168, 0, 162, 167, 101, - 144, 0, 0, 8, 118, 146, 164, 120, 153, 0, - 0, 9, 118, 147, 164, 120, 153, 0, 0, 116, - 212, 118, 148, 164, 120, 153, 0, 0, 9, 118, - 113, 162, 120, 118, 149, 164, 120, 153, 0, 0, - 9, 118, 10, 113, 162, 120, 118, 150, 164, 120, - 153, 0, 0, 72, 175, 172, 118, 151, 164, 120, - 153, 0, 0, 72, 49, 175, 172, 118, 152, 164, - 120, 153, 0, 8, 0, 214, 0, 49, 0, 153, - 85, 118, 120, 0, 153, 85, 118, 212, 120, 0, - 122, 0, 116, 0, 113, 0, 114, 0, 115, 0, - 111, 0, 112, 0, 106, 0, 108, 0, 107, 0, - 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, - 18, 0, 109, 0, 110, 0, 19, 0, 20, 0, - 104, 0, 101, 0, 31, 0, 32, 0, 33, 0, - 34, 0, 35, 0, 36, 0, 37, 0, 38, 0, - 39, 0, 40, 0, 41, 0, 42, 0, 29, 0, - 119, 123, 0, 118, 120, 0, 71, 0, 50, 0, - 134, 0, 156, 0, 0, 84, 157, 109, 158, 110, - 155, 0, 214, 0, 159, 0, 160, 0, 159, 101, - 160, 0, 48, 212, 0, 48, 212, 104, 178, 0, - 161, 173, 166, 0, 49, 161, 173, 166, 0, 197, - 0, 8, 0, 9, 0, 89, 212, 0, 212, 0, - 72, 154, 0, 49, 162, 0, 113, 162, 0, 108, - 162, 0, 10, 113, 162, 0, 162, 119, 205, 123, - 0, 118, 162, 120, 0, 0, 162, 118, 163, 164, - 120, 153, 0, 214, 0, 12, 0, 165, 0, 165, - 101, 12, 0, 165, 12, 0, 171, 0, 165, 101, - 171, 0, 214, 0, 104, 208, 0, 214, 0, 104, - 209, 0, 102, 0, 100, 201, 121, 0, 103, 126, - 100, 201, 121, 0, 104, 209, 102, 0, 104, 100, - 169, 121, 0, 214, 0, 170, 0, 170, 101, 0, - 209, 0, 100, 169, 121, 0, 170, 101, 209, 0, - 170, 101, 100, 169, 121, 0, 175, 173, 167, 0, - 8, 173, 167, 0, 49, 175, 173, 167, 0, 214, - 0, 8, 0, 9, 0, 49, 172, 0, 113, 172, - 0, 108, 172, 0, 10, 113, 172, 0, 172, 119, - 205, 123, 0, 214, 0, 8, 0, 9, 0, 49, - 173, 0, 113, 173, 0, 108, 173, 0, 10, 113, - 173, 0, 173, 119, 205, 123, 0, 118, 173, 120, - 118, 164, 120, 153, 0, 214, 0, 49, 174, 0, - 113, 174, 0, 108, 174, 0, 10, 113, 174, 0, - 174, 119, 205, 123, 0, 118, 174, 120, 118, 164, - 120, 153, 0, 197, 0, 9, 0, 89, 212, 0, - 179, 0, 181, 0, 186, 0, 188, 0, 193, 212, - 0, 192, 212, 0, 197, 0, 9, 0, 89, 212, - 0, 179, 0, 181, 0, 186, 0, 188, 0, 193, - 212, 0, 192, 212, 0, 197, 0, 9, 0, 89, - 212, 0, 193, 212, 0, 192, 212, 0, 175, 174, - 0, 49, 175, 174, 0, 0, 193, 100, 180, 125, - 121, 0, 0, 193, 212, 182, 183, 100, 125, 121, - 0, 214, 0, 184, 0, 103, 185, 0, 184, 101, - 185, 0, 75, 211, 0, 74, 211, 0, 73, 211, - 0, 93, 75, 211, 0, 93, 74, 211, 0, 93, - 73, 211, 0, 75, 93, 211, 0, 74, 93, 211, - 0, 73, 93, 211, 0, 0, 192, 100, 187, 190, - 121, 0, 0, 192, 212, 100, 189, 190, 121, 0, - 214, 0, 191, 0, 191, 101, 0, 212, 0, 212, - 104, 209, 0, 191, 101, 212, 0, 191, 101, 212, - 104, 209, 0, 55, 0, 48, 0, 83, 0, 90, - 0, 0, 70, 212, 100, 195, 125, 121, 0, 70, - 100, 125, 121, 0, 92, 212, 0, 92, 70, 212, - 0, 198, 0, 199, 0, 200, 0, 45, 0, 47, - 0, 78, 0, 67, 0, 68, 0, 91, 0, 79, - 0, 66, 0, 78, 198, 0, 67, 198, 0, 91, - 198, 0, 79, 198, 0, 60, 0, 67, 60, 0, - 51, 0, 67, 67, 60, 0, 67, 51, 0, 94, - 0, 0, 202, 203, 0, 214, 0, 203, 204, 0, - 3, 0, 4, 0, 6, 0, 5, 0, 8, 0, - 9, 0, 10, 0, 7, 0, 12, 0, 13, 0, - 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, - 19, 0, 20, 0, 21, 0, 22, 0, 29, 0, - 30, 0, 31, 0, 32, 0, 33, 0, 34, 0, - 35, 0, 36, 0, 37, 0, 38, 0, 39, 0, - 40, 0, 41, 0, 42, 0, 45, 0, 46, 0, - 47, 0, 48, 0, 49, 0, 50, 0, 51, 0, - 52, 0, 53, 0, 55, 0, 56, 0, 57, 0, - 59, 0, 60, 0, 61, 0, 62, 0, 63, 0, - 64, 0, 65, 0, 66, 0, 67, 0, 69, 0, - 71, 0, 73, 0, 74, 0, 75, 0, 58, 0, - 76, 0, 77, 0, 78, 0, 79, 0, 80, 0, - 81, 0, 82, 0, 83, 0, 85, 0, 86, 0, - 87, 0, 88, 0, 89, 0, 90, 0, 91, 0, - 93, 0, 94, 0, 95, 0, 96, 0, 43, 0, - 72, 0, 111, 0, 112, 0, 113, 0, 114, 0, - 108, 0, 106, 0, 107, 0, 122, 0, 116, 0, - 104, 0, 115, 0, 109, 0, 110, 0, 118, 0, - 120, 0, 117, 0, 101, 0, 102, 0, 103, 0, - 119, 0, 123, 0, 105, 0, 100, 203, 121, 0, - 214, 0, 209, 0, 214, 0, 207, 0, 209, 0, - 207, 101, 209, 0, 210, 0, 118, 178, 120, 208, - 0, 82, 109, 178, 110, 118, 207, 120, 0, 52, - 109, 178, 110, 118, 207, 120, 0, 80, 118, 178, - 120, 0, 122, 208, 0, 116, 208, 0, 112, 208, - 0, 113, 208, 0, 108, 208, 0, 208, 113, 208, - 0, 208, 114, 208, 0, 208, 115, 208, 0, 208, - 111, 208, 0, 208, 112, 208, 0, 208, 106, 208, - 0, 208, 108, 208, 0, 208, 13, 208, 0, 208, - 14, 208, 0, 208, 15, 208, 0, 208, 16, 208, - 0, 208, 17, 208, 0, 208, 18, 208, 0, 208, - 19, 208, 0, 208, 20, 208, 0, 208, 105, 208, - 103, 208, 0, 208, 119, 209, 123, 0, 208, 118, - 207, 120, 0, 208, 118, 120, 0, 208, 117, 208, - 0, 208, 29, 208, 0, 118, 207, 120, 0, 210, - 0, 118, 178, 120, 209, 0, 82, 109, 178, 110, - 118, 207, 120, 0, 52, 109, 178, 110, 118, 207, - 120, 0, 9, 118, 206, 120, 0, 66, 118, 206, - 120, 0, 47, 118, 206, 120, 0, 45, 118, 206, - 120, 0, 78, 118, 206, 120, 0, 67, 118, 206, - 120, 0, 91, 118, 206, 120, 0, 79, 118, 206, - 120, 0, 60, 118, 206, 120, 0, 51, 118, 206, - 120, 0, 80, 118, 178, 120, 0, 71, 177, 0, - 71, 177, 118, 206, 120, 0, 122, 209, 0, 116, - 209, 0, 112, 209, 0, 113, 209, 0, 108, 209, - 0, 209, 113, 209, 0, 209, 114, 209, 0, 209, - 115, 209, 0, 209, 111, 209, 0, 209, 112, 209, - 0, 209, 106, 209, 0, 209, 108, 209, 0, 209, - 13, 209, 0, 209, 14, 209, 0, 209, 15, 209, - 0, 209, 16, 209, 0, 209, 17, 209, 0, 209, - 18, 209, 0, 209, 109, 209, 0, 209, 110, 209, - 0, 209, 19, 209, 0, 209, 20, 209, 0, 209, - 105, 209, 103, 209, 0, 209, 119, 209, 123, 0, - 209, 118, 207, 120, 0, 209, 118, 120, 0, 209, - 117, 209, 0, 209, 29, 209, 0, 118, 207, 120, - 0, 4, 0, 86, 0, 59, 0, 5, 0, 3, - 0, 213, 0, 8, 0, 212, 0, 193, 212, 0, - 89, 212, 0, 8, 0, 9, 0, 6, 0, 213, - 6, 0, 0 +static const short yyrhs[] = +{ + 97, 125, 0, 98, 209, 0, 99, 178, 0, 214, + 0, 125, 102, 0, 125, 130, 0, 127, 0, 126, + 101, 127, 0, 212, 118, 206, 120, 0, 0, 133, + 100, 129, 125, 121, 0, 134, 0, 156, 0, 128, + 0, 194, 0, 196, 0, 131, 0, 88, 140, 0, + 44, 0, 54, 0, 58, 103, 0, 75, 103, 0, + 74, 103, 0, 73, 103, 0, 0, 61, 132, 130, + 0, 214, 0, 133, 56, 0, 133, 56, 213, 0, + 133, 81, 0, 133, 65, 0, 133, 93, 0, 133, + 57, 0, 133, 95, 0, 133, 69, 0, 133, 76, + 0, 135, 0, 133, 176, 102, 0, 133, 145, 168, + 0, 0, 133, 176, 136, 138, 0, 0, 133, 49, + 175, 137, 139, 0, 162, 168, 0, 162, 167, 101, + 138, 0, 162, 168, 0, 162, 167, 101, 139, 0, + 0, 133, 176, 141, 143, 0, 0, 133, 49, 175, + 142, 144, 0, 133, 145, 168, 0, 162, 168, 0, + 162, 167, 101, 143, 0, 162, 168, 0, 162, 167, + 101, 144, 0, 0, 8, 118, 146, 164, 120, 153, + 0, 0, 9, 118, 147, 164, 120, 153, 0, 0, + 116, 212, 118, 148, 164, 120, 153, 0, 0, 9, + 118, 113, 162, 120, 118, 149, 164, 120, 153, 0, + 0, 9, 118, 10, 113, 162, 120, 118, 150, 164, + 120, 153, 0, 0, 72, 175, 172, 118, 151, 164, + 120, 153, 0, 0, 72, 49, 175, 172, 118, 152, + 164, 120, 153, 0, 8, 0, 214, 0, 49, 0, + 153, 85, 118, 120, 0, 153, 85, 118, 212, 120, + 0, 122, 0, 116, 0, 113, 0, 114, 0, 115, + 0, 111, 0, 112, 0, 106, 0, 108, 0, 107, + 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, + 0, 18, 0, 109, 0, 110, 0, 19, 0, 20, + 0, 104, 0, 101, 0, 31, 0, 32, 0, 33, + 0, 34, 0, 35, 0, 36, 0, 37, 0, 38, + 0, 39, 0, 40, 0, 41, 0, 42, 0, 29, + 0, 119, 123, 0, 118, 120, 0, 71, 0, 50, + 0, 134, 0, 156, 0, 0, 84, 157, 109, 158, + 110, 155, 0, 214, 0, 159, 0, 160, 0, 159, + 101, 160, 0, 48, 212, 0, 48, 212, 104, 178, + 0, 161, 173, 166, 0, 49, 161, 173, 166, 0, + 197, 0, 8, 0, 9, 0, 89, 212, 0, 212, + 0, 72, 154, 0, 49, 162, 0, 113, 162, 0, + 108, 162, 0, 10, 113, 162, 0, 162, 119, 205, + 123, 0, 162, 103, 4, 0, 118, 162, 120, 0, + 0, 162, 118, 163, 164, 120, 153, 0, 214, 0, + 12, 0, 165, 0, 165, 101, 12, 0, 165, 12, + 0, 171, 0, 165, 101, 171, 0, 214, 0, 104, + 208, 0, 214, 0, 104, 209, 0, 102, 0, 100, + 201, 121, 0, 103, 126, 100, 201, 121, 0, 104, + 209, 102, 0, 104, 100, 169, 121, 0, 214, 0, + 170, 0, 170, 101, 0, 209, 0, 100, 169, 121, + 0, 170, 101, 209, 0, 170, 101, 100, 169, 121, + 0, 175, 173, 167, 0, 8, 173, 167, 0, 49, + 175, 173, 167, 0, 214, 0, 8, 0, 9, 0, + 49, 172, 0, 113, 172, 0, 108, 172, 0, 10, + 113, 172, 0, 172, 119, 205, 123, 0, 214, 0, + 8, 0, 9, 0, 49, 173, 0, 113, 173, 0, + 108, 173, 0, 10, 113, 173, 0, 173, 119, 205, + 123, 0, 118, 173, 120, 118, 164, 120, 153, 0, + 118, 173, 120, 0, 214, 0, 49, 174, 0, 113, + 174, 0, 108, 174, 0, 10, 113, 174, 0, 174, + 119, 205, 123, 0, 118, 174, 120, 118, 164, 120, + 153, 0, 197, 0, 9, 0, 89, 212, 0, 179, + 0, 181, 0, 186, 0, 188, 0, 193, 212, 0, + 192, 212, 0, 197, 0, 9, 0, 89, 212, 0, + 179, 0, 181, 0, 186, 0, 188, 0, 193, 212, + 0, 192, 212, 0, 197, 0, 9, 0, 89, 212, + 0, 193, 212, 0, 192, 212, 0, 175, 174, 0, + 49, 175, 174, 0, 0, 193, 100, 180, 125, 121, + 0, 0, 193, 212, 182, 183, 100, 125, 121, 0, + 214, 0, 184, 0, 103, 185, 0, 184, 101, 185, + 0, 75, 211, 0, 74, 211, 0, 73, 211, 0, + 93, 75, 211, 0, 93, 74, 211, 0, 93, 73, + 211, 0, 75, 93, 211, 0, 74, 93, 211, 0, + 73, 93, 211, 0, 0, 192, 100, 187, 190, 121, + 0, 0, 192, 212, 100, 189, 190, 121, 0, 214, + 0, 191, 0, 191, 101, 0, 212, 0, 212, 104, + 209, 0, 191, 101, 212, 0, 191, 101, 212, 104, + 209, 0, 55, 0, 48, 0, 83, 0, 90, 0, + 0, 70, 212, 100, 195, 125, 121, 0, 70, 100, + 125, 121, 0, 92, 212, 0, 92, 70, 212, 0, + 198, 0, 199, 0, 200, 0, 45, 0, 47, 0, + 78, 0, 67, 0, 68, 0, 91, 0, 79, 0, + 66, 0, 78, 198, 0, 67, 198, 0, 91, 198, + 0, 79, 198, 0, 60, 0, 67, 60, 0, 51, + 0, 67, 67, 60, 0, 67, 51, 0, 94, 0, + 0, 202, 203, 0, 214, 0, 203, 204, 0, 3, + 0, 4, 0, 6, 0, 5, 0, 8, 0, 9, + 0, 10, 0, 7, 0, 12, 0, 13, 0, 14, + 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, + 0, 20, 0, 21, 0, 22, 0, 29, 0, 30, + 0, 31, 0, 32, 0, 33, 0, 34, 0, 35, + 0, 36, 0, 37, 0, 38, 0, 39, 0, 40, + 0, 41, 0, 42, 0, 45, 0, 46, 0, 47, + 0, 48, 0, 49, 0, 50, 0, 51, 0, 52, + 0, 53, 0, 55, 0, 56, 0, 57, 0, 59, + 0, 60, 0, 61, 0, 62, 0, 63, 0, 64, + 0, 65, 0, 66, 0, 67, 0, 69, 0, 71, + 0, 73, 0, 74, 0, 75, 0, 58, 0, 76, + 0, 77, 0, 78, 0, 79, 0, 80, 0, 81, + 0, 82, 0, 83, 0, 85, 0, 86, 0, 87, + 0, 88, 0, 89, 0, 90, 0, 91, 0, 93, + 0, 94, 0, 95, 0, 96, 0, 43, 0, 72, + 0, 111, 0, 112, 0, 113, 0, 114, 0, 108, + 0, 106, 0, 107, 0, 122, 0, 116, 0, 104, + 0, 115, 0, 109, 0, 110, 0, 118, 0, 120, + 0, 117, 0, 101, 0, 102, 0, 103, 0, 119, + 0, 123, 0, 105, 0, 100, 203, 121, 0, 214, + 0, 209, 0, 214, 0, 207, 0, 209, 0, 207, + 101, 209, 0, 210, 0, 118, 178, 120, 208, 0, + 82, 109, 178, 110, 118, 207, 120, 0, 52, 109, + 178, 110, 118, 207, 120, 0, 80, 118, 178, 120, + 0, 122, 208, 0, 116, 208, 0, 112, 208, 0, + 113, 208, 0, 108, 208, 0, 208, 113, 208, 0, + 208, 114, 208, 0, 208, 115, 208, 0, 208, 111, + 208, 0, 208, 112, 208, 0, 208, 106, 208, 0, + 208, 108, 208, 0, 208, 13, 208, 0, 208, 14, + 208, 0, 208, 15, 208, 0, 208, 16, 208, 0, + 208, 17, 208, 0, 208, 18, 208, 0, 208, 19, + 208, 0, 208, 20, 208, 0, 208, 105, 208, 103, + 208, 0, 208, 119, 209, 123, 0, 208, 118, 207, + 120, 0, 208, 118, 120, 0, 208, 117, 208, 0, + 208, 29, 208, 0, 118, 207, 120, 0, 210, 0, + 118, 178, 120, 209, 0, 82, 109, 178, 110, 118, + 207, 120, 0, 52, 109, 178, 110, 118, 207, 120, + 0, 9, 118, 206, 120, 0, 66, 118, 206, 120, + 0, 47, 118, 206, 120, 0, 45, 118, 206, 120, + 0, 78, 118, 206, 120, 0, 67, 118, 206, 120, + 0, 91, 118, 206, 120, 0, 79, 118, 206, 120, + 0, 60, 118, 206, 120, 0, 51, 118, 206, 120, + 0, 80, 118, 178, 120, 0, 71, 177, 0, 71, + 177, 118, 206, 120, 0, 122, 209, 0, 116, 209, + 0, 112, 209, 0, 113, 209, 0, 108, 209, 0, + 209, 113, 209, 0, 209, 114, 209, 0, 209, 115, + 209, 0, 209, 111, 209, 0, 209, 112, 209, 0, + 209, 106, 209, 0, 209, 108, 209, 0, 209, 13, + 209, 0, 209, 14, 209, 0, 209, 15, 209, 0, + 209, 16, 209, 0, 209, 17, 209, 0, 209, 18, + 209, 0, 209, 109, 209, 0, 209, 110, 209, 0, + 209, 19, 209, 0, 209, 20, 209, 0, 209, 105, + 209, 103, 209, 0, 209, 119, 209, 123, 0, 209, + 118, 207, 120, 0, 209, 118, 120, 0, 209, 117, + 209, 0, 209, 29, 209, 0, 118, 207, 120, 0, + 4, 0, 86, 0, 59, 0, 5, 0, 3, 0, + 213, 0, 8, 0, 212, 0, 193, 212, 0, 89, + 212, 0, 8, 0, 9, 0, 6, 0, 213, 6, + 0, 0 }; #endif -#if YYDEBUG != 0 -static const short yyrline[] = { 0, - 374, 376, 380, 386, 388, 389, 392, 394, 397, 409, - 415, 421, 423, 424, 425, 426, 427, 428, 429, 442, - 451, 455, 459, 463, 469, 477, 484, 489, 493, 504, - 508, 512, 516, 520, 524, 528, 534, 539, 548, 558, - 571, 574, 582, 591, 600, 610, 620, 632, 645, 648, - 656, 659, 672, 681, 691, 701, 712, 719, 737, 741, - 761, 765, 791, 795, 806, 810, 823, 829, 854, 860, - 880, 892, 897, 901, 905, 911, 916, 920, 924, 928, - 932, 936, 940, 944, 948, 952, 956, 960, 964, 968, - 972, 976, 980, 984, 988, 992, 996, 1000, 1004, 1008, - 1012, 1016, 1020, 1024, 1028, 1032, 1036, 1040, 1044, 1048, - 1052, 1056, 1060, 1064, 1070, 1072, 1075, 1080, 1086, 1088, - 1091, 1098, 1106, 1111, 1115, 1121, 1130, 1135, 1140, 1145, - 1152, 1157, 1171, 1176, 1181, 1186, 1191, 1196, 1201, 1205, - 1214, 1219, 1224, 1228, 1233, 1240, 1246, 1253, 1258, 1264, - 1269, 1275, 1280, 1284, 1288, 1292, 1298, 1300, 1301, 1304, - 1308, 1309, 1310, 1313, 1319, 1327, 1335, 1340, 1344, 1348, - 1353, 1358, 1363, 1368, 1375, 1380, 1384, 1388, 1393, 1398, - 1403, 1408, 1413, 1421, 1426, 1431, 1436, 1441, 1446, 1451, - 1459, 1464, 1469, 1473, 1477, 1481, 1485, 1489, 1505, 1523, - 1528, 1533, 1537, 1541, 1545, 1549, 1553, 1569, 1587, 1592, - 1597, 1601, 1617, 1635, 1642, 1651, 1666, 1675, 1696, 1705, - 1707, 1710, 1712, 1715, 1720, 1724, 1728, 1732, 1736, 1740, - 1744, 1748, 1754, 1759, 1766, 1771, 1778, 1780, 1781, 1784, - 1790, 1795, 1800, 1807, 1814, 1819, 1823, 1829, 1848, 1852, - 1855, 1862, 1870, 1872, 1873, 1876, 1881, 1885, 1890, 1895, - 1900, 1905, 1910, 1914, 1919, 1928, 1933, 1940, 1945, 1950, - 1954, 1959, 1966, 1976, 1981, 1986, 1988, 1991, 1995, 1998, - 2001, 2004, 2007, 2010, 2013, 2016, 2016, 2016, 2017, 2017, - 2017, 2017, 2018, 2018, 2018, 2018, 2018, 2019, 2019, 2019, - 2020, 2020, 2020, 2020, 2020, 2021, 2021, 2021, 2021, 2021, - 2022, 2022, 2022, 2022, 2022, 2023, 2023, 2023, 2023, 2023, - 2024, 2024, 2024, 2025, 2025, 2025, 2025, 2026, 2026, 2026, - 2027, 2027, 2027, 2027, 2027, 2028, 2028, 2028, 2028, 2029, - 2029, 2029, 2029, 2029, 2030, 2030, 2030, 2030, 2030, 2030, - 2031, 2031, 2031, 2031, 2031, 2032, 2032, 2033, 2036, 2036, - 2036, 2036, 2036, 2036, 2036, 2036, 2036, 2036, 2036, 2037, - 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2038, - 2038, 2041, 2046, 2052, 2057, 2063, 2068, 2074, 2079, 2083, - 2087, 2091, 2095, 2099, 2103, 2115, 2119, 2123, 2127, 2131, - 2135, 2139, 2143, 2147, 2151, 2155, 2159, 2163, 2167, 2171, - 2175, 2179, 2183, 2187, 2191, 2195, 2199, 2203, 2207, 2214, - 2219, 2223, 2227, 2231, 2238, 2244, 2250, 2256, 2263, 2270, - 2277, 2284, 2290, 2296, 2300, 2304, 2308, 2312, 2316, 2328, - 2332, 2336, 2340, 2344, 2348, 2352, 2356, 2360, 2364, 2368, - 2372, 2376, 2380, 2384, 2388, 2392, 2396, 2400, 2404, 2408, - 2412, 2416, 2420, 2424, 2428, 2434, 2439, 2443, 2447, 2451, - 2455, 2459, 2465, 2474, 2482, 2504, 2509, 2515, 2520, 2526 +#if YYDEBUG +/* YYRLINE[YYN] -- source line where rule number YYN was defined. */ +static const short yyrline[] = +{ + 0, 374, 376, 380, 386, 388, 389, 392, 394, 397, + 409, 409, 421, 423, 424, 425, 426, 427, 428, 429, + 442, 451, 455, 459, 463, 469, 469, 484, 489, 493, + 504, 508, 512, 516, 520, 524, 528, 534, 539, 548, + 558, 558, 574, 574, 591, 600, 610, 620, 632, 632, + 648, 648, 659, 672, 681, 691, 701, 712, 712, 737, + 737, 761, 761, 791, 791, 806, 806, 823, 823, 854, + 854, 880, 892, 897, 901, 905, 911, 916, 920, 924, + 928, 932, 936, 940, 944, 948, 952, 956, 960, 964, + 968, 972, 976, 980, 984, 988, 992, 996, 1000, 1004, + 1008, 1012, 1016, 1020, 1024, 1028, 1032, 1036, 1040, 1044, + 1048, 1052, 1056, 1060, 1064, 1070, 1072, 1075, 1075, 1086, + 1088, 1091, 1098, 1106, 1111, 1115, 1121, 1130, 1135, 1140, + 1145, 1152, 1157, 1171, 1176, 1181, 1186, 1191, 1196, 1201, + 1206, 1206, 1219, 1224, 1229, 1233, 1238, 1245, 1251, 1258, + 1263, 1269, 1274, 1280, 1285, 1289, 1293, 1297, 1303, 1305, + 1306, 1309, 1313, 1314, 1315, 1318, 1324, 1332, 1340, 1345, + 1349, 1353, 1358, 1363, 1368, 1373, 1380, 1385, 1389, 1393, + 1398, 1403, 1408, 1413, 1418, 1424, 1431, 1436, 1441, 1446, + 1451, 1456, 1461, 1469, 1474, 1479, 1483, 1487, 1491, 1495, + 1499, 1515, 1533, 1538, 1543, 1547, 1551, 1555, 1559, 1563, + 1579, 1597, 1602, 1607, 1611, 1627, 1645, 1652, 1661, 1661, + 1685, 1685, 1715, 1717, 1720, 1722, 1725, 1730, 1734, 1738, + 1742, 1746, 1750, 1754, 1758, 1764, 1764, 1776, 1776, 1788, + 1790, 1791, 1794, 1800, 1805, 1810, 1817, 1824, 1829, 1833, + 1839, 1839, 1862, 1865, 1872, 1880, 1882, 1883, 1886, 1891, + 1895, 1900, 1905, 1910, 1915, 1920, 1924, 1929, 1938, 1943, + 1950, 1955, 1960, 1964, 1969, 1976, 1986, 1986, 1996, 1998, + 2001, 2005, 2008, 2011, 2014, 2017, 2020, 2023, 2026, 2026, + 2026, 2027, 2027, 2027, 2027, 2028, 2028, 2028, 2028, 2028, + 2029, 2029, 2029, 2030, 2030, 2030, 2030, 2030, 2031, 2031, + 2031, 2031, 2031, 2032, 2032, 2032, 2032, 2032, 2033, 2033, + 2033, 2033, 2033, 2034, 2034, 2034, 2035, 2035, 2035, 2035, + 2036, 2036, 2036, 2037, 2037, 2037, 2037, 2037, 2038, 2038, + 2038, 2038, 2039, 2039, 2039, 2039, 2039, 2040, 2040, 2040, + 2040, 2040, 2040, 2041, 2041, 2041, 2041, 2041, 2042, 2042, + 2043, 2046, 2046, 2046, 2046, 2046, 2046, 2046, 2046, 2046, + 2046, 2046, 2047, 2047, 2047, 2047, 2047, 2047, 2047, 2047, + 2047, 2047, 2048, 2048, 2051, 2056, 2062, 2067, 2073, 2078, + 2084, 2089, 2093, 2097, 2101, 2105, 2109, 2113, 2125, 2129, + 2133, 2137, 2141, 2145, 2149, 2153, 2157, 2161, 2165, 2169, + 2173, 2177, 2181, 2185, 2189, 2193, 2197, 2201, 2205, 2209, + 2213, 2217, 2224, 2229, 2233, 2237, 2241, 2248, 2254, 2260, + 2266, 2273, 2280, 2287, 2294, 2300, 2306, 2310, 2314, 2318, + 2322, 2326, 2338, 2342, 2346, 2350, 2354, 2358, 2362, 2366, + 2370, 2374, 2378, 2382, 2386, 2390, 2394, 2398, 2402, 2406, + 2410, 2414, 2418, 2422, 2426, 2430, 2434, 2438, 2444, 2449, + 2453, 2457, 2461, 2465, 2469, 2475, 2484, 2492, 2514, 2519, + 2525, 2530, 2536 }; #endif -#if YYDEBUG != 0 || defined (YYERROR_VERBOSE) +#if (YYDEBUG) || defined YYERROR_VERBOSE -static const char * const yytname[] = { "$","error","$undefined.","REAL","INTEGER", -"CHAR","STRING","SIMPLE_IDENTIFIER","IDENTIFIER","TYPENAME_IDENTIFIER","SCOPING", -"TYPEDEFNAME","ELLIPSIS","OROR","ANDAND","EQCOMPARE","NECOMPARE","LECOMPARE", -"GECOMPARE","LSHIFT","RSHIFT","POINTSAT_STAR","DOT_STAR","UNARY","UNARY_NOT", -"UNARY_NEGATE","UNARY_MINUS","UNARY_STAR","UNARY_REF","POINTSAT","SCOPE","PLUSPLUS", -"MINUSMINUS","TIMESEQUAL","DIVIDEEQUAL","MODEQUAL","PLUSEQUAL","MINUSEQUAL", -"OREQUAL","ANDEQUAL","XOREQUAL","LSHIFTEQUAL","RSHIFTEQUAL","TOKENPASTE","KW_BEGIN_PUBLISH", -"KW_BOOL","KW_CATCH","KW_CHAR","KW_CLASS","KW_CONST","KW_DELETE","KW_DOUBLE", -"KW_DYNAMIC_CAST","KW_ELSE","KW_END_PUBLISH","KW_ENUM","KW_EXTERN","KW_EXPLICIT", -"KW_PUBLISHED","KW_FALSE","KW_FLOAT","KW_FRIEND","KW_FOR","KW_GOTO","KW_IF", -"KW_INLINE","KW_INT","KW_LONG","KW_LONGLONG","KW_MUTABLE","KW_NAMESPACE","KW_NEW", -"KW_OPERATOR","KW_PRIVATE","KW_PROTECTED","KW_PUBLIC","KW_REGISTER","KW_RETURN", -"KW_SHORT","KW_SIGNED","KW_SIZEOF","KW_STATIC","KW_STATIC_CAST","KW_STRUCT", -"KW_TEMPLATE","KW_THROW","KW_TRUE","KW_TRY","KW_TYPEDEF","KW_TYPENAME","KW_UNION", -"KW_UNSIGNED","KW_USING","KW_VIRTUAL","KW_VOID","KW_VOLATILE","KW_WHILE","START_CPP", -"START_CONST_EXPR","START_TYPE","'{'","','","';'","':'","'='","'?'","'|'","'^'", -"'&'","'<'","'>'","'+'","'-'","'*'","'/'","'%'","'~'","'.'","'('","'['","')'", -"'}'","'!'","']'","grammar","cpp","constructor_inits","constructor_init","extern_c", -"@1","declaration","friend_declaration","@2","storage_class","type_like_declaration", -"multiple_var_declaration","@3","@4","multiple_instance_identifiers","multiple_const_instance_identifiers", -"typedef_declaration","@5","@6","typedef_instance_identifiers","typedef_const_instance_identifiers", -"function_prototype","@7","@8","@9","@10","@11","@12","@13","function_post", -"function_operator","more_template_declaration","template_declaration","@14", -"template_formal_parameters","template_nonempty_formal_parameters","template_formal_parameter", -"template_formal_parameter_type","instance_identifier","@15","formal_parameter_list", -"formal_parameters","template_parameter_maybe_initialize","maybe_initialize", -"maybe_initialize_or_function_body","structure_init","structure_init_body","formal_parameter", -"not_paren_formal_parameter_identifier","formal_parameter_identifier","empty_instance_identifier", -"type","type_decl","predefined_type","full_type","anonymous_struct","@16","named_struct", -"@17","maybe_class_derivation","class_derivation","base_specification","anonymous_enum", -"@18","named_enum","@19","enum_body","enum_body_no_trailing_comma","enum_keyword", -"struct_keyword","namespace_declaration","@20","using_declaration","simple_type", -"simple_int_type","simple_float_type","simple_void_type","code","@21","code_block", -"element","optional_const_expr","optional_const_expr_comma","const_expr_comma", -"no_angle_bracket_const_expr","const_expr","const_operand","class_derivation_name", -"name","string","empty", NULL +/* YYTNAME[TOKEN_NUM] -- String name of the token TOKEN_NUM. */ +static const char *const yytname[] = +{ + "$", "error", "$undefined.", "REAL", "INTEGER", "CHAR", "STRING", + "SIMPLE_IDENTIFIER", "IDENTIFIER", "TYPENAME_IDENTIFIER", "SCOPING", + "TYPEDEFNAME", "ELLIPSIS", "OROR", "ANDAND", "EQCOMPARE", "NECOMPARE", + "LECOMPARE", "GECOMPARE", "LSHIFT", "RSHIFT", "POINTSAT_STAR", + "DOT_STAR", "UNARY", "UNARY_NOT", "UNARY_NEGATE", "UNARY_MINUS", + "UNARY_STAR", "UNARY_REF", "POINTSAT", "SCOPE", "PLUSPLUS", + "MINUSMINUS", "TIMESEQUAL", "DIVIDEEQUAL", "MODEQUAL", "PLUSEQUAL", + "MINUSEQUAL", "OREQUAL", "ANDEQUAL", "XOREQUAL", "LSHIFTEQUAL", + "RSHIFTEQUAL", "TOKENPASTE", "KW_BEGIN_PUBLISH", "KW_BOOL", "KW_CATCH", + "KW_CHAR", "KW_CLASS", "KW_CONST", "KW_DELETE", "KW_DOUBLE", + "KW_DYNAMIC_CAST", "KW_ELSE", "KW_END_PUBLISH", "KW_ENUM", "KW_EXTERN", + "KW_EXPLICIT", "KW_PUBLISHED", "KW_FALSE", "KW_FLOAT", "KW_FRIEND", + "KW_FOR", "KW_GOTO", "KW_IF", "KW_INLINE", "KW_INT", "KW_LONG", + "KW_LONGLONG", "KW_MUTABLE", "KW_NAMESPACE", "KW_NEW", "KW_OPERATOR", + "KW_PRIVATE", "KW_PROTECTED", "KW_PUBLIC", "KW_REGISTER", "KW_RETURN", + "KW_SHORT", "KW_SIGNED", "KW_SIZEOF", "KW_STATIC", "KW_STATIC_CAST", + "KW_STRUCT", "KW_TEMPLATE", "KW_THROW", "KW_TRUE", "KW_TRY", + "KW_TYPEDEF", "KW_TYPENAME", "KW_UNION", "KW_UNSIGNED", "KW_USING", + "KW_VIRTUAL", "KW_VOID", "KW_VOLATILE", "KW_WHILE", "START_CPP", + "START_CONST_EXPR", "START_TYPE", "'{'", "','", "';'", "':'", "'='", + "'?'", "'|'", "'^'", "'&'", "'<'", "'>'", "'+'", "'-'", "'*'", "'/'", + "'%'", "'~'", "'.'", "'('", "'['", "')'", "'}'", "'!'", "']'", + "grammar", "cpp", "constructor_inits", "constructor_init", "extern_c", + "@1", "declaration", "friend_declaration", "@2", "storage_class", + "type_like_declaration", "multiple_var_declaration", "@3", "@4", + "multiple_instance_identifiers", "multiple_const_instance_identifiers", + "typedef_declaration", "@5", "@6", "typedef_instance_identifiers", + "typedef_const_instance_identifiers", "function_prototype", "@7", "@8", + "@9", "@10", "@11", "@12", "@13", "function_post", "function_operator", + "more_template_declaration", "template_declaration", "@14", + "template_formal_parameters", "template_nonempty_formal_parameters", + "template_formal_parameter", "template_formal_parameter_type", + "instance_identifier", "@15", "formal_parameter_list", + "formal_parameters", "template_parameter_maybe_initialize", + "maybe_initialize", "maybe_initialize_or_function_body", + "structure_init", "structure_init_body", "formal_parameter", + "not_paren_formal_parameter_identifier", "formal_parameter_identifier", + "empty_instance_identifier", "type", "type_decl", "predefined_type", + "full_type", "anonymous_struct", "@16", "named_struct", "@17", + "maybe_class_derivation", "class_derivation", "base_specification", + "anonymous_enum", "@18", "named_enum", "@19", "enum_body", + "enum_body_no_trailing_comma", "enum_keyword", "struct_keyword", + "namespace_declaration", "@20", "using_declaration", "simple_type", + "simple_int_type", "simple_float_type", "simple_void_type", "code", + "@21", "code_block", "element", "optional_const_expr", + "optional_const_expr_comma", "const_expr_comma", + "no_angle_bracket_const_expr", "const_expr", "const_operand", + "class_derivation_name", "name", "string", "empty", 0 }; #endif -static const short yyr1[] = { 0, - 124, 124, 124, 125, 125, 125, 126, 126, 127, 129, - 128, 130, 130, 130, 130, 130, 130, 130, 130, 130, - 130, 130, 130, 130, 132, 131, 133, 133, 133, 133, - 133, 133, 133, 133, 133, 133, 134, 134, 134, 136, - 135, 137, 135, 138, 138, 139, 139, 141, 140, 142, - 140, 140, 143, 143, 144, 144, 146, 145, 147, 145, - 148, 145, 149, 145, 150, 145, 151, 145, 152, 145, - 145, 153, 153, 153, 153, 154, 154, 154, 154, 154, - 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, - 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, - 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, - 154, 154, 154, 154, 155, 155, 157, 156, 158, 158, - 159, 159, 160, 160, 160, 160, 161, 161, 161, 161, - 162, 162, 162, 162, 162, 162, 162, 162, 163, 162, - 164, 164, 164, 164, 164, 165, 165, 166, 166, 167, - 167, 168, 168, 168, 168, 168, 169, 169, 169, 170, - 170, 170, 170, 171, 171, 171, 172, 172, 172, 172, - 172, 172, 172, 172, 173, 173, 173, 173, 173, 173, - 173, 173, 173, 174, 174, 174, 174, 174, 174, 174, - 175, 175, 175, 175, 175, 175, 175, 175, 175, 176, - 176, 176, 176, 176, 176, 176, 176, 176, 177, 177, - 177, 177, 177, 178, 178, 180, 179, 182, 181, 183, - 183, 184, 184, 185, 185, 185, 185, 185, 185, 185, - 185, 185, 187, 186, 189, 188, 190, 190, 190, 191, - 191, 191, 191, 192, 193, 193, 193, 195, 194, 194, - 196, 196, 197, 197, 197, 198, 198, 198, 198, 198, - 198, 198, 198, 198, 198, 198, 198, 199, 199, 199, - 199, 199, 200, 202, 201, 203, 203, 204, 204, 204, - 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, - 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, - 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, - 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, - 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, - 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, - 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, - 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, - 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, - 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, - 204, 205, 205, 206, 206, 207, 207, 208, 208, 208, - 208, 208, 208, 208, 208, 208, 208, 208, 208, 208, - 208, 208, 208, 208, 208, 208, 208, 208, 208, 208, - 208, 208, 208, 208, 208, 208, 208, 208, 208, 209, - 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, - 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, - 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, - 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, - 209, 209, 209, 209, 209, 210, 210, 210, 210, 210, - 210, 210, 211, 211, 211, 212, 212, 213, 213, 214 +/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ +static const short yyr1[] = +{ + 0, 124, 124, 124, 125, 125, 125, 126, 126, 127, + 129, 128, 130, 130, 130, 130, 130, 130, 130, 130, + 130, 130, 130, 130, 130, 132, 131, 133, 133, 133, + 133, 133, 133, 133, 133, 133, 133, 134, 134, 134, + 136, 135, 137, 135, 138, 138, 139, 139, 141, 140, + 142, 140, 140, 143, 143, 144, 144, 146, 145, 147, + 145, 148, 145, 149, 145, 150, 145, 151, 145, 152, + 145, 145, 153, 153, 153, 153, 154, 154, 154, 154, + 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, + 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, + 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, + 154, 154, 154, 154, 154, 155, 155, 157, 156, 158, + 158, 159, 159, 160, 160, 160, 160, 161, 161, 161, + 161, 162, 162, 162, 162, 162, 162, 162, 162, 162, + 163, 162, 164, 164, 164, 164, 164, 165, 165, 166, + 166, 167, 167, 168, 168, 168, 168, 168, 169, 169, + 169, 170, 170, 170, 170, 171, 171, 171, 172, 172, + 172, 172, 172, 172, 172, 172, 173, 173, 173, 173, + 173, 173, 173, 173, 173, 173, 174, 174, 174, 174, + 174, 174, 174, 175, 175, 175, 175, 175, 175, 175, + 175, 175, 176, 176, 176, 176, 176, 176, 176, 176, + 176, 177, 177, 177, 177, 177, 178, 178, 180, 179, + 182, 181, 183, 183, 184, 184, 185, 185, 185, 185, + 185, 185, 185, 185, 185, 187, 186, 189, 188, 190, + 190, 190, 191, 191, 191, 191, 192, 193, 193, 193, + 195, 194, 194, 196, 196, 197, 197, 197, 198, 198, + 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, + 199, 199, 199, 199, 199, 200, 202, 201, 203, 203, + 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, + 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, + 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, + 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, + 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, + 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, + 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, + 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, + 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, + 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, + 204, 204, 204, 204, 205, 205, 206, 206, 207, 207, + 208, 208, 208, 208, 208, 208, 208, 208, 208, 208, + 208, 208, 208, 208, 208, 208, 208, 208, 208, 208, + 208, 208, 208, 208, 208, 208, 208, 208, 208, 208, + 208, 208, 209, 209, 209, 209, 209, 209, 209, 209, + 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, + 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, + 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, + 209, 209, 209, 209, 209, 209, 209, 209, 210, 210, + 210, 210, 210, 210, 210, 211, 211, 211, 212, 212, + 213, 213, 214 }; -static const short yyr2[] = { 0, - 2, 2, 2, 1, 2, 2, 1, 3, 4, 0, - 5, 1, 1, 1, 1, 1, 1, 2, 1, 1, - 2, 2, 2, 2, 0, 3, 1, 2, 3, 2, - 2, 2, 2, 2, 2, 2, 1, 3, 3, 0, - 4, 0, 5, 2, 4, 2, 4, 0, 4, 0, - 5, 3, 2, 4, 2, 4, 0, 6, 0, 6, - 0, 7, 0, 10, 0, 11, 0, 8, 0, 9, - 1, 1, 1, 4, 5, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 2, 2, 1, 1, 1, 1, 0, 6, 1, 1, - 1, 3, 2, 4, 3, 4, 1, 1, 1, 2, - 1, 2, 2, 2, 2, 3, 4, 3, 0, 6, - 1, 1, 1, 3, 2, 1, 3, 1, 2, 1, - 2, 1, 3, 5, 3, 4, 1, 1, 2, 1, - 3, 3, 5, 3, 3, 4, 1, 1, 1, 2, - 2, 2, 3, 4, 1, 1, 1, 2, 2, 2, - 3, 4, 7, 1, 2, 2, 2, 3, 4, 7, - 1, 1, 2, 1, 1, 1, 1, 2, 2, 1, - 1, 2, 1, 1, 1, 1, 2, 2, 1, 1, - 2, 2, 2, 2, 3, 0, 5, 0, 7, 1, - 1, 2, 3, 2, 2, 2, 3, 3, 3, 3, - 3, 3, 0, 5, 0, 6, 1, 1, 2, 1, - 3, 3, 5, 1, 1, 1, 1, 0, 6, 4, - 2, 3, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 2, 2, 2, 2, 1, 2, 1, - 3, 2, 1, 0, 2, 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, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 3, 1, 1, 1, 1, 1, 3, 1, 4, 7, - 7, 4, 2, 2, 2, 2, 2, 3, 3, 3, - 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, - 3, 3, 5, 4, 4, 3, 3, 3, 3, 1, - 4, 7, 7, 4, 4, 4, 4, 4, 4, 4, - 4, 4, 4, 4, 2, 5, 2, 2, 2, 2, - 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, - 3, 3, 3, 3, 3, 3, 3, 3, 5, 4, - 4, 3, 3, 3, 3, 1, 1, 1, 1, 1, - 1, 1, 1, 2, 2, 1, 1, 1, 2, 0 +/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ +static const short yyr2[] = +{ + 0, 2, 2, 2, 1, 2, 2, 1, 3, 4, + 0, 5, 1, 1, 1, 1, 1, 1, 2, 1, + 1, 2, 2, 2, 2, 0, 3, 1, 2, 3, + 2, 2, 2, 2, 2, 2, 2, 1, 3, 3, + 0, 4, 0, 5, 2, 4, 2, 4, 0, 4, + 0, 5, 3, 2, 4, 2, 4, 0, 6, 0, + 6, 0, 7, 0, 10, 0, 11, 0, 8, 0, + 9, 1, 1, 1, 4, 5, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 2, 2, 1, 1, 1, 1, 0, 6, 1, + 1, 1, 3, 2, 4, 3, 4, 1, 1, 1, + 2, 1, 2, 2, 2, 2, 3, 4, 3, 3, + 0, 6, 1, 1, 1, 3, 2, 1, 3, 1, + 2, 1, 2, 1, 3, 5, 3, 4, 1, 1, + 2, 1, 3, 3, 5, 3, 3, 4, 1, 1, + 1, 2, 2, 2, 3, 4, 1, 1, 1, 2, + 2, 2, 3, 4, 7, 3, 1, 2, 2, 2, + 3, 4, 7, 1, 1, 2, 1, 1, 1, 1, + 2, 2, 1, 1, 2, 1, 1, 1, 1, 2, + 2, 1, 1, 2, 2, 2, 2, 3, 0, 5, + 0, 7, 1, 1, 2, 3, 2, 2, 2, 3, + 3, 3, 3, 3, 3, 0, 5, 0, 6, 1, + 1, 2, 1, 3, 3, 5, 1, 1, 1, 1, + 0, 6, 4, 2, 3, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, + 1, 2, 1, 3, 2, 1, 0, 2, 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, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 3, 1, 1, 1, 1, 1, 3, + 1, 4, 7, 7, 4, 2, 2, 2, 2, 2, + 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, + 3, 3, 3, 3, 3, 5, 4, 4, 3, 3, + 3, 3, 1, 4, 7, 7, 4, 4, 4, 4, + 4, 4, 4, 4, 4, 4, 4, 2, 5, 2, + 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, + 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, + 3, 5, 4, 4, 3, 3, 3, 3, 1, 1, + 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, + 1, 2, 0 }; -static const short yydefact[] = { 0, - 480, 0, 0, 480, 4, 470, 466, 469, 478, 472, - 0, 0, 0, 0, 0, 468, 0, 0, 0, 0, - 0, 0, 0, 0, 467, 0, 0, 0, 0, 0, - 0, 0, 2, 420, 471, 192, 256, 257, 245, 0, - 270, 244, 268, 263, 259, 260, 258, 262, 246, 0, - 247, 261, 273, 480, 3, 194, 195, 196, 197, 0, - 0, 191, 253, 254, 255, 19, 20, 0, 25, 0, - 0, 0, 0, 117, 480, 0, 5, 14, 6, 17, - 0, 12, 37, 13, 15, 16, 27, 480, 480, 480, - 480, 0, 480, 480, 480, 210, 0, 435, 0, 0, - 209, 480, 480, 0, 0, 480, 441, 439, 440, 438, - 192, 256, 257, 270, 268, 263, 259, 258, 262, 261, - 0, 0, 386, 437, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 479, 480, 272, 269, - 259, 265, 259, 264, 267, 476, 477, 193, 266, 0, - 480, 480, 480, 480, 214, 184, 233, 199, 216, 198, - 21, 480, 480, 0, 24, 23, 22, 0, 0, 18, - 0, 251, 71, 201, 0, 28, 33, 31, 35, 0, - 36, 30, 0, 32, 34, 10, 0, 0, 40, 203, - 204, 205, 206, 0, 0, 200, 0, 385, 384, 0, - 0, 0, 0, 0, 0, 0, 211, 480, 213, 212, - 0, 0, 0, 0, 0, 0, 0, 465, 449, 450, - 451, 452, 453, 454, 457, 458, 464, 0, 447, 448, - 455, 456, 445, 446, 442, 443, 444, 463, 462, 0, - 0, 215, 271, 480, 185, 187, 186, 0, 480, 480, - 235, 480, 480, 26, 480, 248, 480, 0, 0, 48, - 252, 57, 59, 42, 29, 0, 480, 202, 480, 0, - 274, 152, 0, 0, 39, 38, 0, 208, 207, 424, - 427, 426, 433, 0, 432, 425, 429, 0, 428, 431, - 434, 0, 430, 421, 387, 0, 461, 460, 188, 0, - 0, 383, 382, 0, 238, 240, 237, 480, 480, 0, - 0, 221, 220, 250, 480, 128, 129, 0, 0, 0, - 0, 120, 121, 480, 127, 119, 50, 52, 0, 480, - 0, 0, 480, 0, 480, 168, 169, 0, 480, 480, - 480, 0, 167, 480, 61, 0, 480, 0, 7, 0, - 480, 0, 0, 0, 0, 0, 0, 0, 41, 480, - 131, 0, 436, 0, 459, 480, 189, 234, 239, 0, - 0, 217, 0, 0, 0, 0, 222, 480, 0, 480, - 123, 480, 130, 480, 0, 176, 177, 0, 480, 480, - 480, 480, 480, 175, 0, 49, 480, 480, 142, 0, - 0, 143, 146, 480, 141, 0, 0, 0, 43, 480, - 0, 480, 170, 172, 171, 67, 480, 11, 480, 153, - 275, 276, 274, 0, 480, 480, 0, 158, 160, 157, - 155, 0, 133, 86, 87, 88, 89, 90, 91, 94, - 95, 110, 98, 99, 100, 101, 102, 103, 104, 105, - 106, 107, 108, 109, 114, 113, 97, 96, 83, 85, - 84, 92, 93, 81, 82, 78, 79, 80, 77, 0, - 0, 76, 132, 135, 134, 0, 0, 139, 480, 0, - 44, 150, 0, 0, 0, 242, 241, 236, 0, 0, - 0, 226, 473, 0, 225, 0, 224, 0, 0, 0, - 480, 223, 249, 0, 480, 0, 115, 118, 116, 122, - 480, 178, 180, 179, 0, 0, 480, 125, 148, 51, - 480, 0, 53, 480, 480, 480, 145, 0, 480, 0, - 0, 480, 0, 46, 69, 173, 480, 0, 0, 278, - 279, 281, 280, 285, 282, 283, 284, 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, 357, 311, 312, 313, 314, 315, 316, 317, - 318, 319, 320, 321, 322, 337, 323, 324, 325, 326, - 327, 328, 329, 330, 331, 332, 333, 358, 334, 335, - 336, 338, 339, 340, 341, 342, 343, 344, 345, 346, - 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, - 480, 375, 376, 377, 368, 380, 364, 365, 363, 370, - 371, 359, 360, 361, 362, 369, 367, 374, 372, 378, - 373, 366, 379, 277, 0, 8, 0, 0, 156, 159, - 136, 112, 111, 138, 151, 480, 0, 0, 423, 422, - 480, 0, 475, 232, 474, 231, 230, 229, 228, 227, - 219, 124, 126, 181, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 149, 388, 0, 0, 55, 0, - 0, 165, 480, 73, 58, 72, 144, 147, 164, 0, - 63, 60, 0, 480, 0, 174, 480, 0, 154, 9, - 161, 480, 162, 0, 137, 45, 190, 243, 480, 0, - 0, 0, 397, 395, 396, 394, 0, 0, 393, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 182, - 0, 54, 151, 166, 0, 65, 480, 47, 0, 480, - 62, 381, 0, 480, 0, 0, 0, 0, 0, 419, - 405, 406, 407, 408, 409, 410, 411, 412, 418, 0, - 403, 404, 401, 402, 398, 399, 400, 417, 416, 0, - 0, 56, 0, 480, 0, 480, 68, 163, 140, 480, - 0, 392, 0, 389, 0, 415, 414, 74, 0, 0, - 480, 70, 183, 0, 0, 413, 75, 480, 64, 0, - 0, 66, 391, 390, 0, 0, 0 +/* YYDEFACT[S] -- default rule to reduce with in state S when YYTABLE + doesn't specify something else to do. Zero means the default is an + error. */ +static const short yydefact[] = +{ + 0, 482, 0, 0, 482, 4, 472, 468, 471, 480, + 474, 0, 0, 0, 0, 0, 470, 0, 0, 0, + 0, 0, 0, 0, 0, 469, 0, 0, 0, 0, + 0, 0, 0, 2, 422, 473, 194, 258, 259, 247, + 0, 272, 246, 270, 265, 261, 262, 260, 264, 248, + 0, 249, 263, 275, 482, 3, 196, 197, 198, 199, + 0, 0, 193, 255, 256, 257, 19, 20, 0, 25, + 0, 0, 0, 0, 117, 482, 0, 5, 14, 6, + 17, 0, 12, 37, 13, 15, 16, 27, 482, 482, + 482, 482, 0, 482, 482, 482, 212, 0, 437, 0, + 0, 211, 482, 482, 0, 0, 482, 443, 441, 442, + 440, 194, 258, 259, 272, 270, 265, 261, 260, 264, + 263, 0, 0, 388, 439, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 481, 482, 274, + 271, 261, 267, 261, 266, 269, 478, 479, 195, 268, + 0, 482, 482, 482, 482, 216, 186, 235, 201, 218, + 200, 21, 482, 482, 0, 24, 23, 22, 0, 0, + 18, 0, 253, 71, 203, 0, 28, 33, 31, 35, + 0, 36, 30, 0, 32, 34, 10, 0, 0, 40, + 205, 206, 207, 208, 0, 0, 202, 0, 387, 386, + 0, 0, 0, 0, 0, 0, 0, 213, 482, 215, + 214, 0, 0, 0, 0, 0, 0, 0, 467, 451, + 452, 453, 454, 455, 456, 459, 460, 466, 0, 449, + 450, 457, 458, 447, 448, 444, 445, 446, 465, 464, + 0, 0, 217, 273, 482, 187, 189, 188, 0, 482, + 482, 237, 482, 482, 26, 482, 250, 482, 0, 0, + 48, 254, 57, 59, 42, 29, 0, 482, 204, 482, + 0, 276, 153, 0, 0, 39, 38, 0, 210, 209, + 426, 429, 428, 435, 0, 434, 427, 431, 0, 430, + 433, 436, 0, 432, 423, 389, 0, 463, 462, 190, + 0, 0, 385, 384, 0, 240, 242, 239, 482, 482, + 0, 0, 223, 222, 252, 482, 128, 129, 0, 0, + 0, 0, 120, 121, 482, 127, 119, 50, 52, 0, + 482, 0, 0, 482, 0, 482, 169, 170, 0, 482, + 482, 482, 0, 168, 482, 61, 0, 482, 0, 7, + 0, 482, 0, 0, 0, 0, 0, 0, 0, 41, + 482, 131, 0, 438, 0, 461, 482, 191, 236, 241, + 0, 0, 219, 0, 0, 0, 0, 224, 482, 0, + 482, 123, 482, 130, 482, 0, 177, 178, 0, 482, + 482, 482, 482, 482, 176, 0, 49, 482, 482, 143, + 0, 0, 144, 147, 482, 142, 0, 0, 0, 43, + 482, 0, 482, 171, 173, 172, 67, 482, 11, 482, + 154, 277, 278, 276, 0, 482, 482, 0, 159, 161, + 158, 156, 0, 133, 86, 87, 88, 89, 90, 91, + 94, 95, 110, 98, 99, 100, 101, 102, 103, 104, + 105, 106, 107, 108, 109, 114, 113, 97, 96, 83, + 85, 84, 92, 93, 81, 82, 78, 79, 80, 77, + 0, 0, 76, 132, 135, 134, 0, 0, 0, 140, + 482, 0, 44, 151, 0, 0, 0, 244, 243, 238, + 0, 0, 0, 228, 475, 0, 227, 0, 226, 0, + 0, 0, 482, 225, 251, 0, 482, 0, 115, 118, + 116, 122, 482, 179, 181, 180, 0, 0, 482, 125, + 149, 51, 482, 0, 53, 482, 482, 482, 146, 0, + 482, 0, 0, 0, 482, 0, 46, 69, 174, 482, + 0, 0, 280, 281, 283, 282, 287, 284, 285, 286, + 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, 359, 313, 314, 315, 316, + 317, 318, 319, 320, 321, 322, 323, 324, 339, 325, + 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, + 360, 336, 337, 338, 340, 341, 342, 343, 344, 345, + 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, + 356, 357, 358, 482, 377, 378, 379, 370, 382, 366, + 367, 365, 372, 373, 361, 362, 363, 364, 371, 369, + 376, 374, 380, 375, 368, 381, 279, 0, 8, 0, + 0, 157, 160, 136, 112, 111, 139, 138, 152, 482, + 0, 0, 425, 424, 482, 0, 477, 234, 476, 233, + 232, 231, 230, 229, 221, 124, 126, 182, 185, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 150, 390, + 0, 0, 55, 0, 0, 166, 482, 73, 58, 72, + 145, 148, 165, 0, 63, 60, 0, 482, 0, 175, + 482, 0, 155, 9, 162, 482, 163, 0, 137, 45, + 192, 245, 482, 0, 0, 0, 399, 397, 398, 396, + 0, 0, 395, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 183, 0, 54, 152, 167, 0, 65, + 482, 47, 0, 482, 62, 383, 0, 482, 0, 0, + 0, 0, 0, 421, 407, 408, 409, 410, 411, 412, + 413, 414, 420, 0, 405, 406, 403, 404, 400, 401, + 402, 419, 418, 0, 0, 56, 0, 482, 0, 482, + 68, 164, 141, 482, 0, 394, 0, 391, 0, 417, + 416, 74, 0, 0, 482, 70, 184, 0, 0, 415, + 75, 482, 64, 0, 0, 66, 393, 392, 0, 0, + 0 }; -static const short yydefgoto[] = { 835, - 4, 358, 359, 78, 279, 79, 80, 172, 81, 82, - 83, 287, 344, 369, 419, 180, 339, 405, 406, 530, - 198, 340, 343, 429, 767, 804, 547, 714, 705, 483, - 518, 84, 178, 331, 332, 333, 334, 370, 666, 411, - 412, 528, 490, 285, 437, 438, 413, 352, 403, 165, - 414, 199, 98, 55, 56, 262, 57, 263, 321, 322, - 387, 58, 260, 59, 318, 314, 315, 60, 61, 85, - 325, 86, 62, 63, 64, 65, 356, 357, 431, 654, - 311, 207, 208, 695, 123, 34, 502, 371, 35, 209 +static const short yydefgoto[] = +{ + 838, 4, 358, 359, 78, 279, 79, 80, 172, 81, + 82, 83, 287, 344, 369, 419, 180, 339, 405, 406, + 531, 198, 340, 343, 429, 770, 807, 549, 717, 708, + 483, 519, 84, 178, 331, 332, 333, 334, 370, 669, + 411, 412, 529, 491, 285, 437, 438, 413, 352, 403, + 165, 414, 199, 98, 55, 56, 262, 57, 263, 321, + 322, 387, 58, 260, 59, 318, 314, 315, 60, 61, + 85, 325, 86, 62, 63, 64, 65, 356, 357, 431, + 656, 311, 207, 208, 698, 123, 34, 503, 371, 35, + 209 }; -static const short yypact[] = { 139, --32768, 1579, 2512, 724,-32768,-32768,-32768,-32768,-32768,-32768, - -96, -82, -47, -45, -43,-32768, -13, -9, -3, 2574, - 1, 15, 32, 4,-32768, 55, 1579, 1579, 1579, 1579, - 1067, 1579, 1995,-32768, 74,-32768,-32768,-32768,-32768, 2588, --32768,-32768,-32768,-32768, 1317,-32768, 1485, 1485,-32768, 92, --32768, 1485,-32768, 13,-32768,-32768,-32768,-32768,-32768, 49, - 75,-32768,-32768,-32768,-32768,-32768,-32768, 42,-32768, 77, - 64, 80, 104,-32768,-32768, 34,-32768,-32768,-32768,-32768, - 1765,-32768,-32768,-32768,-32768,-32768,-32768, 1579, 1579, 1579, - 1579, 2512, 1579, 1579, 1579,-32768, 92, 60, 92, 92, --32768, 1579, 1579, 2512, 2512, 1579, 67, 67, 67, 67, - -96, -82, -47, -45, -13, -9, 2744, 1063, 1187, 1195, - 90, -61, 1995, 67, 1579, 1579, 1579, 1579, 1579, 1579, - 1579, 1579, 1579, 1579, 1579, 1579, 1579, 1579, 1579, 1579, - 1579, 1579, 1579, 1579, 1159, 1579,-32768, 13,-32768,-32768, - 1447,-32768, 1485,-32768,-32768,-32768,-32768,-32768,-32768, 103, - 13, 13, 13, 13, 99,-32768,-32768, 121,-32768, 27, --32768, 1380,-32768, 123,-32768,-32768,-32768, 119, 1819,-32768, - 92,-32768, 131, 133, 2588, 251,-32768,-32768,-32768, 2526, --32768,-32768, 92,-32768,-32768,-32768, 92, 152, 158,-32768, --32768,-32768,-32768, 49, 75,-32768, 143, 164,-32768, 150, - 154, 157, 162, 167, 170, 172,-32768, 1579,-32768,-32768, - 177, 182, 185, 204, 196, 1579, 1579,-32768, 2028, 2149, - 1623, 1623, 410, 410, 367, 367,-32768, 1957, 2164, 2179, - 410, 410, 468, 468, 67, 67, 67,-32768,-32768, -52, - 454, 99,-32768, 13, 99, 99, 99, 106, 1579, 92, --32768,-32768, 217,-32768, 2615,-32768, 2450, 2588, 152,-32768, --32768,-32768, 25,-32768, 74, 2588, 160,-32768,-32768, 205, --32768,-32768, 92, 1243,-32768,-32768, 46, 121, 27,-32768, --32768,-32768,-32768, 220,-32768,-32768,-32768, 227,-32768,-32768, --32768, 222,-32768, 67, 1995, 1579,-32768,-32768, 99, 246, - 248, 1995,-32768, 159, 273, 272,-32768, 92, 2639, 24, - 277, 280,-32768,-32768,-32768,-32768,-32768, 92, 2464, 92, - 274, 281,-32768, 132,-32768,-32768,-32768,-32768, 46, 2306, - 270, 46, 2306, 46, 160,-32768,-32768, 275, 160, 160, - 160, 176,-32768, 2664,-32768, 265,-32768, 231,-32768, 276, - 1327, 1978, 279, 46, 1689, 46, 46, 46,-32768, 574, --32768, 1579,-32768, 1579, 1995, 2306,-32768,-32768, 92, 1579, - 282,-32768, 592, 659, 682, 209,-32768,-32768, 24, 2688, - 293, 132,-32768, 320, 2450,-32768,-32768, 292, 132, 132, - 132, 132, -44,-32768, 46,-32768, 574, 132,-32768, 2588, - 288, 22,-32768, 132,-32768, 46, 181, 289,-32768, 574, - 233, 160, 295, 295, 295,-32768, 1579,-32768, 2306,-32768, - 946,-32768,-32768, 92, 1579, 1327, 290, 314, 1995,-32768, --32768, 46, 236,-32768,-32768,-32768,-32768,-32768,-32768,-32768, --32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, --32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, --32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, 296, - 294,-32768,-32768, 236, 236, 189, 1243,-32768, 1579, 317, --32768,-32768, -38, -32, 300, 318, 1995,-32768, 92, 364, - 92,-32768,-32768, 364,-32768, 364,-32768, 364, 364, 364, - 2713,-32768,-32768, 2512, -44, 1874,-32768,-32768,-32768,-32768, - 132, 305, 305, 305, 239, 628, 1579,-32768,-32768,-32768, - 574, 326,-32768, -17, 132, 382,-32768, 2402, -17, 208, - 315, 382, 337,-32768,-32768, 295, 2306, 333, 329,-32768, --32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, --32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, --32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, --32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, --32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, --32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, --32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, --32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, --32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, --32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, --32768,-32768,-32768,-32768, 341,-32768, 338, 343,-32768, 1411, - 236,-32768,-32768,-32768, 1978, 2306, 342, 46,-32768,-32768, - 382, 1579,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, --32768,-32768,-32768, 305, 348, 366, 358, 368, 628, 628, - 628, 628, 1067, 628, 2012,-32768, 369, 390,-32768, 46, - 1579,-32768, -17,-32768, 405,-32768,-32768,-32768,-32768, 375, --32768, 405, 46, 2306, 374,-32768, 382, 825,-32768,-32768, --32768, 1327, 1995, 376,-32768,-32768, 405, 1995, 2306, 2512, - 2512, 2512, 95, 95, 95, 95, 392, -8, 95, 628, - 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, - 628, 628, 628, 628, 628, 628, 628, 1495, 1579,-32768, - 46,-32768, 1995,-32768, 395,-32768, 2306,-32768, 397, 382, - 405,-32768, 394, 382, 398, 409, 411, 422, 628,-32768, - 2134, 2194, 2327, 2327, 1059, 1059, 1227, 1227,-32768, 1664, - 2209, 2314, 510, 510, 95, 95, 95,-32768,-32768, 9, - 1082,-32768, 8, 2306, 416, 382, 405,-32768, 405, 382, - 419,-32768, 425, 95, 628,-32768,-32768,-32768, 427, 428, - 382, 405, 405, 1579, 1579, 2012,-32768, 382, 405, 38, - 56, 405,-32768,-32768, 545, 550,-32768 +static const short yypact[] = +{ + 260,-32768, 1635, 2576, 2357,-32768,-32768,-32768,-32768,-32768, + -32768, -108, -102, -81, -57, -86,-32768, -23, -21, -10, + 2638, -3, 38, 60, 4,-32768, 67, 1635, 1635, 1635, + 1635, 1123, 1635, 2057,-32768, 80,-32768,-32768,-32768,-32768, + 2652,-32768,-32768,-32768,-32768, 1541,-32768, 1335, 1335,-32768, + 180,-32768, 1335,-32768, 40,-32768,-32768,-32768,-32768,-32768, + 55, 57,-32768,-32768,-32768,-32768,-32768,-32768, 65,-32768, + 69, 70, 78, 113,-32768,-32768, 62,-32768,-32768,-32768, + -32768, 1827,-32768,-32768,-32768,-32768,-32768,-32768, 1635, 1635, + 1635, 1635, 2576, 1635, 1635, 1635,-32768, 180, 119, 180, + 180,-32768, 1635, 1635, 2576, 2576, 1635, 58, 58, 58, + 58, -108, -102, -81, -57, -23, -21, 234, 1243, 1251, + 1327, 111, -80, 2057, 58, 1635, 1635, 1635, 1635, 1635, + 1635, 1635, 1635, 1635, 1635, 1635, 1635, 1635, 1635, 1635, + 1635, 1635, 1635, 1635, 1635, 1215, 1635,-32768, 40,-32768, + -32768, 735,-32768, 1335,-32768,-32768,-32768,-32768,-32768,-32768, + 147, 40, 40, 40, 40, 146,-32768,-32768, 168,-32768, + -51,-32768, 1436,-32768, 170,-32768,-32768,-32768, 166, 1881, + -32768, 180,-32768, 162, 171, 2652, 278,-32768,-32768,-32768, + 2590,-32768,-32768, 180,-32768,-32768,-32768, 180, 262, 193, + -32768,-32768,-32768,-32768, 55, 57,-32768, 191, 225,-32768, + 208, 212, 220, 241, 243, 256, 261,-32768, 1635,-32768, + -32768, 266, 270, 272, 244, 277, 1635, 1635,-32768, 2090, + 2211, 474, 474, 365, 365, 107, 107,-32768, 2019, 2226, + 2241, 365, 365, 121, 121, 58, 58, 58,-32768,-32768, + -65, 1138, 146,-32768, 40, 146, 146, 146, 20, 1635, + 180,-32768,-32768, 279,-32768, 2363,-32768, 2514, 2652, 262, + -32768,-32768,-32768, 7,-32768, 80, 2652, 82,-32768,-32768, + 287,-32768,-32768, 180, 1299,-32768,-32768, 115, 168, -51, + -32768,-32768,-32768,-32768, 290,-32768,-32768,-32768, 292,-32768, + -32768,-32768, 296,-32768, 58, 2057, 1635,-32768,-32768, 146, + 297, 293, 2057,-32768, 289, 316, 314,-32768, 180, 2679, + 9, 322, 324,-32768,-32768,-32768,-32768,-32768, 180, 2528, + 180, 313, 326,-32768, 134,-32768,-32768,-32768,-32768, 115, + 2452, 320, 115, 2452, 115, 82,-32768,-32768, 321, 82, + 82, 82, 219,-32768, 2703,-32768, 308,-32768, 144,-32768, + 318, 1383, 2040, 325, 115, 1745, 115, 115, 115,-32768, + 203,-32768, 1635,-32768, 1635, 2057, 2452,-32768,-32768, 180, + 1635, 336,-32768, 667, 704, 1139, 299,-32768,-32768, 9, + 2728, 333, 134,-32768, 355, 2514,-32768,-32768, 328, 134, + 134, 134, 134, -59,-32768, 115,-32768, 203, 134,-32768, + 2652, 323, 50,-32768, 134,-32768, 115, 154, 343,-32768, + 203, 228, 82, 342, 342, 342,-32768, 1635,-32768, 2452, + -32768, 1002,-32768,-32768, 180, 1635, 1383, 344, 346, 2057, + -32768,-32768, 115, 249,-32768,-32768,-32768,-32768,-32768,-32768, + -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, + -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, + -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, + 348, 319,-32768,-32768, 249, 249, 190, 327, 1299,-32768, + 1635, 363,-32768,-32768, -32, -26, 351, 362, 2057,-32768, + 180, 594, 180,-32768,-32768, 594,-32768, 594,-32768, 594, + 594, 594, 2752,-32768,-32768, 2576, -59, 1936,-32768,-32768, + -32768,-32768, 134, 353, 353, 353, 284, 574, 1635,-32768, + -32768,-32768, 203, 372,-32768, 63, 134, 425,-32768, 2466, + 63, 196, 471, 367, 425, 380,-32768,-32768, 342, 2452, + 364, 366,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, + -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, + -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, + -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, + -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, + -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, + -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, + -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, + -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, + -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, + -32768,-32768,-32768,-32768,-32768,-32768,-32768, 374,-32768, 368, + 376,-32768, 1467, 249,-32768,-32768,-32768,-32768, 2040, 2452, + 378, 115,-32768,-32768, 425, 1635,-32768,-32768,-32768,-32768, + -32768,-32768,-32768,-32768,-32768,-32768,-32768, 353, 391, 401, + 395, 405, 574, 574, 574, 574, 1123, 574, 748,-32768, + 396, 417,-32768, 115, 1635,-32768, 63,-32768, 435,-32768, + -32768,-32768,-32768, 404,-32768, 435, 115, 2452, 408,-32768, + 425, 881,-32768,-32768,-32768, 1383, 2057, 409,-32768,-32768, + 435, 2057, 2452, 2576, 2576, 2576, 75, 75, 75, 75, + 412, 17, 75, 574, 574, 574, 574, 574, 574, 574, + 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, + 574, 1551, 1635,-32768, 115,-32768, 2057,-32768, 406,-32768, + 2452,-32768, 413, 425, 435,-32768, 416, 425, 418, 430, + 421, 432, 574,-32768, 2196, 2256, 1679, 1679, 626, 626, + 341, 341,-32768, 2074, 2271, 2376, 521, 521, 75, 75, + 75,-32768,-32768, 126, 1715,-32768, 25, 2452, 424, 425, + 435,-32768, 435, 425, 427,-32768, 428, 75, 574,-32768, + -32768,-32768, 429, 437, 425, 435, 435, 1635, 1635, 748, + -32768, 425, 435, 128, 131, 435,-32768,-32768, 547, 552, + -32768 }; -static const short yypgoto[] = {-32768, - -159,-32768, 118,-32768,-32768, 385,-32768,-32768, -57, 180, --32768,-32768,-32768, -107, -138,-32768,-32768,-32768, -130, -185, - 399,-32768,-32768,-32768,-32768,-32768,-32768,-32768, -535,-32768, --32768, 190,-32768,-32768,-32768, 184, 259, -120,-32768, -304, --32768, 76, -388, -190, -431,-32768, 52, -118, -89, -117, - 30, 413,-32768, -27, -73,-32768, -72,-32768,-32768,-32768, - 213, -71,-32768, -68,-32768, 285,-32768, -14, -5,-32768, --32768,-32768, 0, 389,-32768,-32768, 165,-32768, 6,-32768, - -375, -65, -29, -95, 62, -136, -143, -49, 436, -1 +static const short yypgoto[] = +{ + -32768, -145,-32768, 130,-32768,-32768, 388,-32768,-32768, -74, + 172,-32768,-32768,-32768, -109, -151,-32768,-32768,-32768, -135, + -195, 392,-32768,-32768,-32768,-32768,-32768,-32768,-32768, -490, + -32768,-32768, 176,-32768,-32768,-32768, 177, 247, -320,-32768, + -308,-32768, 74, -402, -261, -429,-32768, 34, -95, -273, + -105, 1, 402,-32768, -25, -72,-32768, -69,-32768,-32768, + -32768, 205, -68,-32768, -67,-32768, 282,-32768, -9, -5, + -32768,-32768,-32768, 0, 478,-32768,-32768, 189,-32768, -8, + -32768, -376, -64, -29, 91, 71, -139, -219, 370, 415, + -1 }; -#define YYLAST 2862 +#define YYLAST 2873 -static const short yytable[] = { 5, - 158, 122, 87, 121, 658, 99, 712, 200, 201, 202, - 168, 170, 203, 265, 100, 156, 157, 179, 532, 101, - 174, 88, 160, 210, 211, 212, 182, 214, 215, 216, - 252, 543, 54, 537, 341, 89, 221, 222, 418, 227, - 225, 156, 157, 255, 256, 257, 258, 217, 227, 219, - 220, 548, 166, 156, 157, 363, 156, 157, 228, 526, - 54, 161, 227, 33, 213, 92, 204, 307, 227, 148, - 90, 495, 91, 87, 527, 205, 223, 224, 338, 147, - 206, 669, 156, 157, 156, 157, 701, 670, 107, 108, - 109, 110, 227, 124, 364, 133, 383, 384, 385, 156, - 157, 527, 319, 181, 93, 200, 201, 202, 94, 227, - 203, 780, 105, 667, 95, 250, 386, 365, 102, 354, - 162, 54, 538, 748, 549, 163, -218, 818, 816, -218, - 164, 271, 103, 54, 54, 727, 309, 342, 227, 396, - 397, 398, 698, 278, 171, 702, 166, 280, 167, 104, - 709, 697, 298, 366, 288, 289, 227, 833, 367, 166, - 166, 166, 166, 368, 204, 390, 175, 346, 347, 348, - 87, 5, 106, 205, 169, 834, 173, 218, 206, 491, - 399, 771, 176, 144, 145, 146, 229, 230, 231, 232, - 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, - 243, 244, 245, 246, 247, 248, 177, 251, 349, 226, - 316, 757, 758, 759, 274, 254, 533, 259, 407, 277, - 261, 417, 266, 420, 259, 310, 421, 267, 511, 544, - 423, 424, 425, 360, 807, 1, 2, 3, 809, 400, - 505, 507, 715, 443, 401, 484, 485, 486, 272, 402, - 273, 281, 166, 282, 283, 284, 9, 313, 317, 286, - 5, 323, 290, 87, 227, 336, 335, 350, 316, 291, - 822, 294, 351, 292, 823, 353, 293, 5, 391, 378, - 393, 508, 509, 510, 531, 829, 295, 304, 305, 296, - 773, 297, 832, 426, 427, 540, 299, 337, 488, 489, - 541, 300, 515, 546, 301, 345, 488, 489, 664, 522, - 523, 524, 525, 302, 764, 303, 317, 87, 534, 320, - 312, 661, 355, 5, 539, 488, 489, 710, 335, 496, - 433, 434, 404, 503, 503, 503, 516, 372, 415, 374, - 699, 415, 493, 353, 494, 362, 373, 353, 353, 353, - 545, 427, 87, 488, 489, 432, 674, 527, 685, 440, - 676, 724, 677, 376, 678, 679, 680, 375, 492, 657, - 377, 156, 157, 379, 415, 380, 388, 501, 501, 501, - 389, 395, 416, 394, 360, 430, 5, 422, 87, 696, - 404, 442, 87, 435, 335, 133, 514, 404, 404, 404, - 404, 529, 498, 74, 521, 492, 404, 536, 542, 769, - 659, 39, 404, 427, 660, 662, 663, 668, 492, 671, - 353, 672, 439, 527, 775, 313, 700, 415, 131, 132, - 704, 684, 711, 152, 440, 154, 155, 713, 133, 535, - 159, 497, 200, 201, 202, 703, 49, 203, 717, 673, - 503, 675, 499, 51, 503, 716, 503, 720, 503, 503, - 503, 719, 805, 721, 725, 729, 125, 126, 127, 128, - 129, 130, 131, 132, 730, 731, 732, 139, 140, 141, - 142, 143, 133, 144, 145, 146, 682, 313, 312, 765, - 761, 760, 766, 770, 501, 774, 133, 439, 501, 820, - 501, 204, 501, 501, 501, 152, 154, 155, 159, 87, - 205, 779, 803, 529, 808, 206, 806, 810, 811, 404, - 139, 140, 141, 142, 143, 313, 144, 145, 146, 492, - 812, 813, 492, 404, 706, 821, 824, 492, 748, 152, - 706, 152, 825, 54, 836, 415, 827, 828, 665, 837, - 312, 656, 696, 696, 696, 696, 264, 696, 134, 135, - 726, 136, 137, 138, 139, 140, 141, 142, 143, 762, - 144, 145, 146, 517, 768, 802, 308, 269, 520, 407, - 141, 142, 143, 519, 144, 145, 146, 392, 312, 708, - 683, 270, 420, 733, 734, 735, 736, 655, 739, 156, - 157, 512, 381, 696, 696, 696, 696, 696, 696, 696, - 696, 696, 696, 696, 696, 696, 696, 696, 696, 696, - 696, 275, 754, 755, 756, 0, 757, 758, 759, 432, - 6, 7, 8, 9, 0, 10, 718, 0, 0, 39, - 531, 0, 696, 0, 781, 782, 783, 784, 785, 786, - 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, - 797, 798, 0, 738, 415, 737, 156, 157, 0, 706, - 0, 0, 0, 281, 49, 282, 283, 487, 696, 686, - 499, 51, 0, 814, 500, 0, 16, 0, 0, 156, - 157, 488, 489, 0, 0, 0, 0, 0, 0, 0, - 0, 492, 776, 777, 778, 0, 39, 687, 0, 688, - 0, 0, 415, 25, 0, 706, 0, 0, 0, 826, - 440, 723, 54, -1, 0, 0, 0, 415, 800, 39, - 0, 0, 0, 728, 0, 689, 0, 0, 0, 690, - 691, 49, 0, 692, 0, 693, 0, 499, 51, 694, - 0, 504, 0, 819, 0, 0, 0, 0, 0, 54, - 54, 54, 763, 0, 49, 415, 0, 66, 706, 0, - 499, 51, 706, 0, 506, 0, 0, 67, 0, 0, - 0, 68, 0, 439, 69, 0, 0, 0, 0, 0, - 0, 0, 0, 70, 830, 831, 71, 72, 73, 0, - 0, 0, 415, 0, 706, 0, 0, 74, 706, 0, - 0, 75, 0, 0, 0, 76, 0, 0, 0, 706, - 801, 0, 0, 0, 0, 77, 706, 550, 551, 552, - 553, 554, 555, 556, 557, 0, 558, 559, 560, 561, - 562, 563, 564, 565, 566, 567, 568, 0, 0, 0, - 0, 0, 0, 569, 570, 571, 572, 573, 574, 575, - 576, 577, 578, 579, 580, 581, 582, 583, 0, 584, - 585, 586, 587, 588, 589, 590, 591, 592, 0, 593, - 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, - 604, 605, 0, 606, 0, 607, 608, 609, 610, 611, - 612, 613, 614, 615, 616, 617, 618, 619, 0, 620, - 621, 622, 623, 624, 625, 626, 0, 627, 628, 629, - 630, 0, 0, 0, 631, 632, 633, 634, 635, 636, - 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, - 647, 648, 649, 650, 651, 772, 652, 653, 550, 551, - 552, 553, 554, 555, 556, 557, 0, 558, 559, 560, - 561, 562, 563, 564, 565, 566, 567, 568, 0, 0, - 0, 0, 0, 0, 569, 570, 571, 572, 573, 574, - 575, 576, 577, 578, 579, 580, 581, 582, 583, 0, - 584, 585, 586, 587, 588, 589, 590, 591, 592, 0, - 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, - 603, 604, 605, 0, 606, 0, 607, 608, 609, 610, - 611, 612, 613, 614, 615, 616, 617, 618, 619, 0, - 620, 621, 622, 623, 624, 625, 626, 0, 627, 628, - 629, 630, 0, 0, 0, 631, 632, 633, 634, 635, - 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, - 646, 647, 648, 649, 650, 651, 0, 652, 653, 6, - 7, 8, 9, 0, 10, 111, 0, 746, 747, 0, - 0, 0, 0, 0, 0, 0, 0, 748, 0, 0, - 0, 0, 0, 0, 125, 126, 127, 128, 129, 130, - 131, 132, 0, 0, 0, 0, 0, 37, 0, 38, - 133, 112, 0, 113, 39, 40, 0, 114, 15, 0, - 0, 42, 0, 0, 0, 16, 115, 0, 44, 153, - 46, 0, 116, 117, 46, 0, 0, 20, 0, 0, - 47, 48, 0, 0, 118, 119, 23, 0, 24, 49, - 0, 0, 25, 52, 0, 50, 51, 120, 0, 0, - 53, 6, 7, 8, 9, 0, 10, 11, 0, 752, - 753, 754, 755, 756, 27, 757, 758, 759, 28, 29, - 102, 0, 30, 0, 31, 0, 134, 135, 32, 136, - 137, 138, 139, 140, 141, 142, 143, 0, 144, 145, - 146, 0, 0, 12, 817, 13, 0, 0, 0, 14, - 15, 0, 0, 0, 0, 0, 0, 16, 17, 0, - 0, 0, 0, 0, 18, 19, 0, 0, 0, 20, - 0, 37, 0, 38, 0, 0, 21, 22, 23, 37, - 24, 38, 0, 0, 25, 6, 7, 8, 9, 26, - 10, 11, 44, 153, 46, 748, 0, 0, 0, 0, - 44, 153, 46, 0, 47, 48, 27, 0, 0, 0, - 28, 29, 47, 48, 30, 0, 31, 52, 249, 0, - 32, 0, 0, 0, 0, 52, 0, 12, 0, 13, - 0, 0, 0, 14, 15, 0, 0, 0, 0, 0, - 0, 16, 17, 0, 103, 0, 0, 0, 18, 19, - 0, 0, 106, 20, 0, 0, 0, 0, 0, 0, - 21, 22, 23, 0, 24, 0, 0, 0, 25, 6, - 7, 8, 9, 26, 10, 11, 0, 752, 753, 754, - 755, 756, 361, 757, 758, 759, 0, 0, 0, 0, - 27, 0, 0, 0, 28, 29, 0, 0, 30, 0, - 31, 37, 0, 38, 32, 0, 0, 149, 0, 0, - 0, 12, 0, 13, 0, 0, 150, 14, 15, 0, - 0, 0, 44, 151, 46, 16, 17, 0, 0, 0, - 0, 0, 18, 19, 47, 48, 0, 20, 0, 0, - 0, 0, 0, 0, 21, 22, 23, 52, 24, 0, - 0, 0, 25, 6, 7, 8, 9, 26, 10, 11, - 0, 0, 0, 66, 0, 0, 436, 0, 0, 0, - 0, 0, 0, 67, 27, 0, 0, 68, 28, 29, - 69, 0, 30, 0, 31, 0, 0, 0, 32, 70, - 0, 0, 71, 72, 73, 12, 0, 13, 0, 0, - 0, 14, 15, 74, 0, 0, 0, 75, 0, 16, - 17, 76, 0, 0, 0, 0, 18, 19, 0, 0, - 0, 20, 0, 0, 0, 0, 0, 0, 21, 22, - 23, 37, 24, 38, 0, 0, 25, 6, 7, 8, - 9, 26, 10, 11, 0, 0, 253, 0, 0, 0, - 722, 0, 44, 153, 46, 0, 0, 0, 27, 0, - 0, 0, 28, 29, 47, 48, 30, 0, 31, 37, - 0, 38, 32, 0, 0, 0, 0, 52, 0, 12, - 0, 13, 0, 0, 0, 14, 15, 0, 0, 0, - 44, 153, 46, 16, 17, 0, 0, 0, 0, 0, - 18, 19, 47, 48, 0, 20, 0, 0, 0, 0, - 0, 0, 21, 22, 23, 52, 24, 0, 0, 0, - 25, 6, 7, 8, 9, 26, 10, 11, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 27, 0, 0, 0, 28, 29, 0, 0, - 30, 0, 31, 0, 799, 0, 32, 0, 0, 0, - 0, 0, 0, 12, 0, 13, 0, 0, 0, 14, - 15, 0, 0, 0, 0, 0, 0, 16, 17, 129, - 130, 131, 132, 0, 18, 19, 0, 0, 0, 20, - 0, 133, 0, 0, 0, 0, 21, 22, 23, 0, - 24, 0, 0, 0, 25, 0, 0, 0, 0, 26, - 0, 0, 0, 0, 0, 0, 740, 741, 742, 743, - 744, 745, 746, 747, 0, 0, 27, 0, 0, 0, - 28, 29, 748, 0, 30, 0, 31, 0, 0, 0, - 32, 444, 445, 446, 447, 448, 449, 450, 451, 0, - 0, 0, 0, 0, 0, 0, 0, 452, 0, 453, - 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, - 464, 137, 138, 139, 140, 141, 142, 143, 465, 144, - 145, 146, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 466, - 0, 0, 0, 0, 0, 0, 815, 0, 749, 750, - 0, 751, 183, 184, 752, 753, 754, 755, 756, 0, - 757, 758, 759, 0, 0, 0, 0, 0, 0, 467, - 0, 0, 468, 0, 469, 470, 471, 472, 473, 474, - 475, 476, 477, 478, 479, 0, 480, 481, 0, 37, - 482, 38, 39, 185, 0, 41, 0, 0, 0, 42, - 186, 187, 0, 0, 43, 0, 183, 184, 0, 188, - 44, 45, 46, 189, 0, 0, 190, 0, 0, 0, - 191, 0, 47, 48, 0, 192, 0, 49, 0, 0, - 0, 0, 0, 193, 51, 52, 0, 194, 53, 195, - 0, 0, 0, 37, 196, 38, 39, 268, 0, 41, - 0, 0, 0, 42, 186, 187, 0, 0, 43, 0, - 197, 183, 184, 188, 44, 45, 46, 189, 0, 0, - 190, 0, 0, 0, 191, 0, 47, 48, 0, 192, - 0, 49, 0, 0, 0, 0, 0, 193, 51, 52, - 0, 194, 53, 195, 0, 0, 0, 0, 37, 0, - 38, 39, 185, 0, 41, 0, 0, 0, 42, 186, - 187, 0, 0, 43, 197, 0, 0, 0, 188, 44, - 45, 46, 189, 0, 0, 190, 0, 0, 0, 191, - 0, 47, 48, 0, 192, 0, 49, 0, 0, 0, - 0, 0, 193, 51, 52, 0, 194, 53, 195, 125, - 126, 127, 128, 129, 130, 131, 132, 0, 0, 0, - 0, 0, 0, 0, 0, 133, 0, 0, 0, 197, - 125, 126, 127, 128, 129, 130, 131, 132, 0, 0, - 0, 0, 0, 0, 0, 0, 133, 125, 126, 127, - 128, 129, 130, 131, 132, 0, 0, 0, 0, 0, - 0, 0, 0, 133, 740, 741, 742, 743, 744, 745, - 746, 747, 0, 0, 0, 0, 0, 0, 0, 0, - 748, 126, 127, 128, 129, 130, 131, 132, 0, 0, - 0, 0, 0, 0, 0, 0, 133, 0, 0, 306, - 0, 134, 135, 0, 136, 137, 138, 139, 140, 141, - 142, 143, 0, 144, 145, 146, 0, 0, 0, 441, - 0, 0, 134, 135, 0, 136, 137, 138, 139, 140, - 141, 142, 143, 0, 144, 145, 146, 0, 0, 134, - 135, 0, 136, 137, 138, 139, 140, 141, 142, 143, - 0, 144, 145, 146, 0, 0, 749, 750, 0, 751, - 0, 0, 752, 753, 754, 755, 756, 0, 757, 758, - 759, 0, 0, 135, 0, 136, 137, 138, 139, 140, - 141, 142, 143, 0, 144, 145, 146, 741, 742, 743, - 744, 745, 746, 747, 0, 0, 0, 0, 0, 0, - 0, 0, 748, 127, 128, 129, 130, 131, 132, 0, - 0, 0, 0, 0, 0, 0, 0, 133, 127, 128, - 129, 130, 131, 132, 0, 0, 0, 0, 0, 0, - 0, 0, 133, 127, 128, 129, 130, 131, 132, 0, - 0, 0, 0, 0, 0, 0, 0, 133, 742, 743, - 744, 745, 746, 747, 0, 0, 0, 0, 0, 0, - 0, 0, 748, 742, 743, 744, 745, 746, 747, 0, - 0, 0, 0, 0, 0, 0, 0, 748, 0, 750, - 0, 751, 0, 0, 752, 753, 754, 755, 756, 0, - 757, 758, 759, 0, 135, 0, 136, 137, 138, 139, - 140, 141, 142, 143, 0, 144, 145, 146, 0, 0, - 0, 136, 137, 138, 139, 140, 141, 142, 143, 0, - 144, 145, 146, 0, 0, 0, 0, 137, 138, 139, - 140, 141, 142, 143, 0, 144, 145, 146, 0, 750, - 0, 751, 0, 0, 752, 753, 754, 755, 756, 0, - 757, 758, 759, 408, 36, 0, 751, 409, 0, 752, - 753, 754, 755, 756, 0, 757, 758, 759, 742, 743, - 744, 745, 746, 747, 0, 0, 0, 0, 0, 0, - 0, 0, 748, 744, 745, 746, 747, 0, 0, 0, - 37, 0, 38, 39, 410, 748, 41, 0, 0, 0, - 42, 0, 0, 0, 0, 43, 0, 0, 0, 0, - 0, 44, 45, 46, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 47, 48, 0, 0, 0, 49, 0, - 0, 0, 0, 0, 50, 51, 52, 0, 0, 53, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 408, - 36, 0, 0, 707, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 752, 753, 754, 755, 756, 0, - 757, 758, 759, 0, 0, 0, 0, 752, 753, 754, - 755, 756, 0, 757, 758, 759, 37, 0, 38, 39, - 410, 0, 41, 0, 0, 0, 42, 326, 327, 0, - 0, 43, 0, 0, 0, 0, 0, 44, 45, 46, - 0, 326, 327, 0, 0, 0, 0, 0, 0, 47, - 48, 0, 0, 0, 49, 0, 0, 0, 0, 0, - 50, 51, 52, 0, 37, 53, 38, 328, 329, 0, - 41, 0, 0, 0, 0, 0, 0, 0, 37, 43, - 38, 0, 0, 0, 41, 44, 45, 46, 0, 0, - 36, 0, 0, 43, 0, 0, 0, 47, 48, 44, - 45, 46, 0, 0, 36, 0, 0, 0, 330, 0, - 52, 47, 48, 53, 0, 0, 0, 0, 0, 0, - 0, 0, 330, 0, 52, 0, 37, 53, 38, 39, - 40, 0, 41, 0, 0, 0, 42, 0, 0, 0, - 37, 43, 38, 39, 276, 0, 41, 44, 45, 46, - 42, 0, 96, 0, 0, 43, 0, 0, 0, 47, - 48, 44, 45, 46, 49, 0, 36, 0, 0, 0, - 50, 51, 52, 47, 48, 53, 0, 0, 49, 0, - 0, 0, 0, 0, 50, 51, 52, 0, 37, 53, - 38, 39, 0, 0, 41, 0, 0, 0, 42, 0, - 0, 0, 37, 43, 38, 39, 0, 0, 41, 44, - 45, 46, 42, 0, 0, 0, 0, 43, 0, 0, - 0, 47, 48, 44, 45, 46, 49, 0, 66, 0, - 0, 0, 97, 51, 52, 47, 48, 53, 67, 0, - 49, 0, 68, 0, 0, 69, 50, 51, 52, 0, - 0, 53, 66, 0, 70, 0, 0, 71, 72, 73, - 0, 0, 67, 0, 0, 0, 68, 0, 74, 69, - 0, 0, 75, 0, 0, 0, 76, 66, 70, 0, - 0, 71, 72, 73, 0, 0, 77, 67, 0, 0, - 0, 68, 74, 0, 69, 0, 75, 0, 0, 0, - 76, 66, 0, 70, 0, 324, 71, 72, 73, 0, - 77, 67, 0, 0, 0, 68, 0, 74, 69, 0, - 0, 75, 0, 0, 0, 76, 66, 70, 0, 382, - 71, 72, 73, 0, 0, 77, 67, 0, 0, 0, - 68, 74, 0, 69, 0, 75, 0, 0, 0, 76, - 0, 0, 70, 0, 428, 71, 72, 73, 37, 77, - 38, 0, 0, 0, 149, 0, 74, 0, 0, 0, - 75, 0, 0, 150, 76, 0, 0, 0, 513, 44, - 151, 46, 0, 0, 77, 0, 0, 0, 0, 0, - 0, 47, 48, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 681, 52, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 95 +static const short yytable[] = +{ + 5, 179, 122, 87, 54, 533, 121, 660, 338, 200, + 88, 99, 201, 202, 203, 100, 89, 341, 545, 407, + 101, 227, 417, 92, 420, 210, 211, 212, 265, 214, + 215, 216, 54, 156, 157, 418, 227, 90, 221, 222, + 228, 148, 225, 252, 443, 527, 484, 485, 486, -220, + 160, 550, -220, 166, 715, 307, 255, 256, 257, 258, + 528, 91, 538, 156, 157, 156, 157, 213, 496, 227, + 156, 157, 204, 33, 87, 227, 205, 156, 157, 223, + 224, 206, 383, 384, 385, 532, 147, 133, 672, 161, + 346, 347, 348, 54, 673, 93, 541, 94, 107, 108, + 109, 110, 386, 124, 751, 54, 54, 200, 95, 492, + 201, 202, 203, 105, 670, 102, 250, 319, 227, 516, + 342, 551, 663, 156, 157, 363, 523, 524, 525, 526, + 701, 349, 181, 705, 354, 535, 133, 783, 712, 259, + 310, 540, 396, 397, 398, 821, 534, 166, 162, 309, + 133, 539, 700, 163, 298, 167, 103, 169, 164, 546, + 166, 166, 166, 166, 364, 506, 508, 704, 171, 173, + 204, 87, 5, 175, 205, 144, 145, 146, 104, 206, + 390, 176, 528, 399, 730, 106, 274, 365, 156, 157, + 350, 277, 760, 761, 762, 351, 229, 230, 231, 232, + 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, + 243, 244, 245, 246, 247, 248, 177, 251, 139, 140, + 141, 142, 143, 366, 144, 145, 146, 227, 367, 227, + 774, 226, 227, 368, 141, 142, 143, 218, 144, 145, + 146, 718, 400, 512, 433, 434, 819, 401, 836, 687, + 421, 837, 402, 166, 423, 424, 425, 542, 313, 317, + 254, 5, 323, 706, 87, 259, 336, 335, 261, 337, + 266, 702, 489, 490, 543, 267, 353, 345, 5, 37, + 272, 38, 677, 810, 9, 149, 679, 812, 680, 273, + 681, 682, 683, 542, 150, 286, 776, 304, 305, 542, + 44, 151, 46, 281, 767, 282, 487, 488, 489, 490, + 666, 290, 47, 48, 489, 490, 713, 317, 87, 825, + 517, 489, 490, 826, 5, 52, 227, 548, 291, 335, + 312, 667, 292, 404, 832, 156, 157, 426, 427, 415, + 293, 835, 415, 494, 353, 495, 547, 427, 353, 353, + 353, 294, 95, 87, 302, 362, 432, 1, 2, 3, + 440, 727, 281, 295, 282, 283, 284, 489, 490, 493, + 751, 659, 509, 510, 511, 415, 296, 375, 502, 502, + 502, 297, 320, 407, 131, 132, 299, 5, 699, 87, + 300, 404, 301, 87, 133, 335, 420, 303, 404, 404, + 404, 404, 530, 528, 688, 355, 493, 404, 372, 772, + 378, 536, 373, 404, 374, 376, 377, 379, 380, 493, + 158, 353, 388, 394, 778, 389, 313, 395, 415, 430, + 168, 170, 439, 416, 422, 440, 435, 515, 442, 74, + 174, 522, 665, 537, 532, 200, 182, 662, 201, 202, + 203, 498, 755, 756, 757, 758, 759, 499, 760, 761, + 762, 427, 808, 544, 671, 661, 675, 217, 664, 219, + 220, 674, 528, 703, 707, 667, 139, 140, 141, 142, + 143, 716, 144, 145, 146, 714, 720, 719, 723, 313, + 685, 129, 130, 131, 132, 722, 502, 724, 312, 823, + 502, 728, 502, 133, 502, 502, 502, 439, 204, 732, + 733, 87, 205, 734, 735, 530, 54, 206, 764, 763, + 768, 404, 769, 152, 806, 154, 155, 313, 773, 777, + 159, 493, 782, 809, 493, 404, 709, 811, 813, 493, + 814, 815, 816, 709, 824, 827, 828, 839, 415, 830, + 751, 271, 840, 699, 699, 699, 699, 831, 699, 668, + 264, 312, 729, 278, 658, 771, 518, 280, 765, 805, + 520, 269, 521, 711, 288, 289, 392, 6, 7, 8, + 9, 270, 10, 137, 138, 139, 140, 141, 142, 143, + 686, 144, 145, 146, 513, 152, 154, 155, 159, 312, + 381, 275, 156, 157, 699, 699, 699, 699, 699, 699, + 699, 699, 699, 699, 699, 699, 699, 699, 699, 699, + 699, 699, 657, 0, 0, 721, 689, 0, 0, 152, + 316, 152, 432, 16, 757, 758, 759, 0, 760, 761, + 762, 0, 39, 699, 0, 749, 750, 0, 0, 0, + 0, 0, 0, 360, 690, 751, 691, 0, 0, 0, + 25, 0, 0, 0, 0, 0, 0, 741, 415, 0, + 0, 740, 0, 709, 0, 156, 157, 49, 0, 699, + 0, 0, 692, 500, 51, 0, 693, 694, 316, 0, + 695, 0, 696, 0, 0, 0, 697, 54, 391, 0, + 393, 0, 0, 0, 0, 493, 0, 0, 779, 780, + 781, 0, 156, 157, 0, 39, 415, 0, 0, 709, + 0, 0, 0, 0, 440, 0, 0, 0, 0, 0, + 0, 415, 803, 726, 54, 54, 54, 755, 756, 757, + 758, 759, 0, 760, 761, 762, 731, 0, 0, 497, + 49, 0, 39, 504, 504, 504, 500, 51, 0, 0, + 501, 743, 744, 745, 746, 747, 748, 749, 750, 415, + 0, 0, 709, 0, 0, 766, 709, 751, 0, 0, + 37, 0, 38, 736, 737, 738, 739, 49, 742, 0, + 0, 0, 0, 500, 51, 253, 439, 505, 833, 834, + 0, 44, 153, 46, 360, 0, 415, 0, 709, 0, + 0, 0, 709, 47, 48, 0, 0, 0, 0, 0, + 0, 0, 0, 709, 0, 0, 52, 0, 0, 0, + 709, 0, 0, 804, 784, 785, 786, 787, 788, 789, + 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, + 800, 801, 0, 752, 753, 0, 754, 360, 0, 755, + 756, 757, 758, 759, 0, 760, 761, 762, 0, 0, + 676, 504, 678, 817, 0, 504, 0, 504, 0, 504, + 504, 504, 0, 0, 552, 553, 554, 555, 556, 557, + 558, 559, 0, 560, 561, 562, 563, 564, 565, 566, + 567, 568, 569, 570, 0, 0, 0, 0, 0, 829, + 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, + 581, 582, 583, 584, 585, 0, 586, 587, 588, 589, + 590, 591, 592, 593, 594, 0, 595, 596, 597, 598, + 599, 600, 601, 602, 603, 604, 605, 606, 607, 0, + 608, 0, 609, 610, 611, 612, 613, 614, 615, 616, + 617, 618, 619, 620, 621, 0, 622, 623, 624, 625, + 626, 627, 628, 0, 629, 630, 631, 632, 0, 0, + 0, 633, 634, 635, 636, 637, 638, 639, 640, 641, + 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, + 652, 653, 775, 654, 655, 552, 553, 554, 555, 556, + 557, 558, 559, 0, 560, 561, 562, 563, 564, 565, + 566, 567, 568, 569, 570, 0, 0, 0, 0, 0, + 0, 571, 572, 573, 574, 575, 576, 577, 578, 579, + 580, 581, 582, 583, 584, 585, 0, 586, 587, 588, + 589, 590, 591, 592, 593, 594, 0, 595, 596, 597, + 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, + 0, 608, 0, 609, 610, 611, 612, 613, 614, 615, + 616, 617, 618, 619, 620, 621, 0, 622, 623, 624, + 625, 626, 627, 628, 0, 629, 630, 631, 632, 0, + 0, 0, 633, 634, 635, 636, 637, 638, 639, 640, + 641, 642, 643, 644, 645, 646, 647, 648, 649, 650, + 651, 652, 653, 0, 654, 655, 6, 7, 8, 9, + 0, 10, 111, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 156, 157, 0, + 0, 125, 126, 127, 128, 129, 130, 131, 132, 0, + 0, 0, 0, 0, 0, 0, 0, 133, 112, 0, + 113, 39, 40, 0, 114, 15, 822, 0, 42, 0, + 0, 0, 16, 115, 0, 0, 0, 39, 0, 116, + 117, 46, 0, 0, 20, 0, 0, 0, 0, 0, + 0, 118, 119, 23, 0, 24, 49, 0, 0, 25, + 0, 0, 50, 51, 120, 0, 0, 53, 6, 7, + 8, 9, 49, 10, 11, 0, 0, 0, 500, 51, + 0, 27, 507, 0, 0, 28, 29, 0, 0, 30, + 0, 31, 0, 134, 135, 32, 136, 137, 138, 139, + 140, 141, 142, 143, 0, 144, 145, 146, 0, 0, + 12, 308, 13, 0, 0, 0, 14, 15, 0, 0, + 0, 0, 0, 0, 16, 17, 0, 0, 0, 0, + 0, 18, 19, 0, 0, 0, 20, 0, 37, 0, + 38, 0, 0, 21, 22, 23, 37, 24, 38, 0, + 0, 25, 6, 7, 8, 9, 26, 10, 11, 44, + 153, 46, 0, 0, 0, 0, 0, 44, 153, 46, + 0, 47, 48, 27, 0, 0, 0, 28, 29, 47, + 48, 30, 0, 31, 52, 249, 0, 32, 0, 0, + 0, 0, 52, 0, 12, 0, 13, 0, 0, 0, + 14, 15, 0, 0, 0, 0, 0, 0, 16, 17, + 0, 102, 0, 0, 0, 18, 19, 0, 0, 103, + 20, 0, 37, 0, 38, 0, 0, 21, 22, 23, + 37, 24, 38, 0, 0, 25, 6, 7, 8, 9, + 26, 10, 11, 44, 153, 46, 0, 0, 0, 361, + 0, 44, 153, 46, 0, 47, 48, 27, 0, 0, + 0, 28, 29, 47, 48, 30, 0, 31, 52, 0, + 0, 32, 0, 0, 0, 0, 52, 0, 12, 0, + 13, 0, 0, 0, 14, 15, 0, 0, 0, 0, + 0, 0, 16, 17, 0, 106, 0, 0, 0, 18, + 19, 0, 0, 0, 20, 0, 0, 0, 0, 0, + 0, 21, 22, 23, 0, 24, 0, 0, 0, 25, + 6, 7, 8, 9, 26, 10, 11, 0, 0, 0, + 66, 0, 0, 436, 0, 0, 0, 0, 0, 0, + 67, 27, 0, 0, 68, 28, 29, 69, 0, 30, + 0, 31, 0, 0, 0, 32, 70, 0, 0, 71, + 72, 73, 12, 0, 13, 0, 0, 0, 14, 15, + 74, 0, 0, 0, 75, 0, 16, 17, 76, 0, + 0, 0, 0, 18, 19, 0, 0, 0, 20, 0, + 0, 0, 0, 0, 0, 21, 22, 23, 0, 24, + 0, 0, 0, 25, 6, 7, 8, 9, 26, 10, + 11, 0, 0, 0, 0, 0, 0, 725, 0, 0, + 0, 0, 0, 0, 0, 27, 0, 0, 0, 28, + 29, 0, 0, 30, 0, 31, 37, 0, 38, 32, + 0, 0, 149, 0, 0, 0, 12, 0, 13, 0, + 0, 150, 14, 15, 0, 0, 0, 44, 151, 46, + 16, 17, 0, 0, 0, 0, 0, 18, 19, 47, + 48, 0, 20, 0, 0, 0, 0, 0, 0, 21, + 22, 23, 52, 24, 0, 0, 0, 25, 6, 7, + 8, 9, 26, 10, 11, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 27, + 0, 0, 0, 28, 29, 0, 0, 30, 0, 31, + 0, 802, 0, 32, 0, 0, 0, 0, 0, 0, + 12, 0, 13, 0, 0, 0, 14, 15, 0, 0, + 0, 0, 0, 0, 16, 17, 747, 748, 749, 750, + 0, 18, 19, 0, 0, 0, 20, 0, 751, 0, + 0, 0, 0, 21, 22, 23, 0, 24, 0, 0, + 0, 25, 0, 0, 0, 0, 26, 0, 125, 126, + 127, 128, 129, 130, 131, 132, 0, 0, 0, 0, + 0, 0, 0, 27, 133, 0, 0, 28, 29, 0, + 0, 30, 0, 31, 0, 0, 0, 32, 444, 445, + 446, 447, 448, 449, 450, 451, 0, 0, 0, 0, + 0, 0, 0, 0, 452, 0, 453, 454, 455, 456, + 457, 458, 459, 460, 461, 462, 463, 464, 0, 0, + 755, 756, 757, 758, 759, 465, 760, 761, 762, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 466, 0, 0, 0, + 134, 135, 0, 136, 137, 138, 139, 140, 141, 142, + 143, 0, 144, 145, 146, 183, 184, 0, 820, 0, + 0, 0, 0, 0, 0, 0, 467, 0, 0, 468, + 0, 469, 470, 471, 472, 473, 474, 475, 476, 477, + 478, 479, 0, 480, 481, 0, 0, 482, 0, 0, + 0, 0, 37, 0, 38, 39, 185, 0, 41, 0, + 0, 0, 42, 186, 187, 0, 0, 43, 0, 183, + 184, 0, 188, 44, 45, 46, 189, 0, 0, 190, + 0, 0, 0, 191, 0, 47, 48, 0, 192, 0, + 49, 0, 0, 0, 0, 0, 193, 51, 52, 0, + 194, 53, 195, 0, 0, 0, 37, 196, 38, 39, + 268, 0, 41, 0, 0, 0, 42, 186, 187, 0, + 0, 43, 0, 197, 183, 184, 188, 44, 45, 46, + 189, 0, 0, 190, 0, 0, 0, 191, 0, 47, + 48, 0, 192, 0, 49, 0, 0, 0, 0, 0, + 193, 51, 52, 0, 194, 53, 195, 0, 0, 0, + 0, 37, 0, 38, 39, 185, 0, 41, 0, 0, + 0, 42, 186, 187, 0, 0, 43, 197, 0, 0, + 0, 188, 44, 45, 46, 189, 0, 0, 190, 0, + 0, 0, 191, 0, 47, 48, 0, 192, 0, 49, + 0, 0, 0, 0, 0, 193, 51, 52, 0, 194, + 53, 195, 125, 126, 127, 128, 129, 130, 131, 132, + 0, 0, 0, 0, 0, 0, 0, 0, 133, 0, + 0, 0, 197, 125, 126, 127, 128, 129, 130, 131, + 132, 0, 0, 0, 0, 0, 0, 0, 0, 133, + 125, 126, 127, 128, 129, 130, 131, 132, 0, 0, + 0, 0, 0, 0, 0, 0, 133, 743, 744, 745, + 746, 747, 748, 749, 750, 0, 0, 0, 0, 0, + 0, 0, 0, 751, 126, 127, 128, 129, 130, 131, + 132, 0, 0, 0, 0, 0, 0, 0, 0, 133, + 0, 0, 306, 0, 134, 135, 0, 136, 137, 138, + 139, 140, 141, 142, 143, 0, 144, 145, 146, 0, + 0, 0, 441, 0, 0, 134, 135, 0, 136, 137, + 138, 139, 140, 141, 142, 143, 0, 144, 145, 146, + 0, 0, 134, 135, 0, 136, 137, 138, 139, 140, + 141, 142, 143, 0, 144, 145, 146, 818, 0, 752, + 753, 0, 754, 0, 0, 755, 756, 757, 758, 759, + 0, 760, 761, 762, 0, 0, 135, 0, 136, 137, + 138, 139, 140, 141, 142, 143, 0, 144, 145, 146, + 744, 745, 746, 747, 748, 749, 750, 0, 0, 0, + 0, 0, 0, 0, 0, 751, 127, 128, 129, 130, + 131, 132, 0, 0, 0, 0, 0, 0, 0, 0, + 133, 127, 128, 129, 130, 131, 132, 0, 0, 0, + 0, 0, 0, 0, 0, 133, 127, 128, 129, 130, + 131, 132, 0, 0, 0, 0, 0, 0, 0, 0, + 133, 745, 746, 747, 748, 749, 750, 0, 0, 0, + 0, 0, 0, 0, 0, 751, 745, 746, 747, 748, + 749, 750, 0, 0, 0, 0, 0, 0, 0, 0, + 751, 0, 753, 0, 754, 0, 0, 755, 756, 757, + 758, 759, 0, 760, 761, 762, 0, 135, 0, 136, + 137, 138, 139, 140, 141, 142, 143, 0, 144, 145, + 146, 0, 0, 0, 136, 137, 138, 139, 140, 141, + 142, 143, 0, 144, 145, 146, 0, 0, 0, 0, + 137, 138, 139, 140, 141, 142, 143, -1, 144, 145, + 146, 0, 753, 0, 754, 0, 0, 755, 756, 757, + 758, 759, 0, 760, 761, 762, 0, 0, 0, 754, + 0, 0, 755, 756, 757, 758, 759, 0, 760, 761, + 762, 745, 746, 747, 748, 749, 750, 0, 0, 0, + 0, 66, 0, 0, 0, 751, 0, 66, 0, 0, + 0, 67, 0, 0, 0, 68, 0, 67, 69, 0, + 0, 68, 0, 0, 69, 0, 0, 70, 0, 0, + 71, 72, 73, 70, 0, 0, 71, 72, 73, 0, + 0, 74, 0, 0, 0, 75, 0, 74, 0, 76, + 0, 75, 0, 0, 0, 76, 0, 0, 0, 77, + 408, 36, 0, 0, 409, 77, 0, 0, 0, 0, + 0, 0, 0, 0, 408, 36, 0, 0, 710, 0, + 0, 0, 0, 0, 324, 0, 0, 755, 756, 757, + 758, 759, 0, 760, 761, 762, 0, 37, 0, 38, + 39, 410, 0, 41, 0, 0, 0, 42, 0, 0, + 0, 37, 43, 38, 39, 410, 0, 41, 44, 45, + 46, 42, 326, 327, 0, 0, 43, 0, 0, 0, + 47, 48, 44, 45, 46, 49, 326, 327, 0, 0, + 0, 50, 51, 52, 47, 48, 53, 0, 0, 49, + 0, 0, 0, 0, 0, 50, 51, 52, 0, 37, + 53, 38, 328, 329, 0, 41, 0, 0, 0, 0, + 0, 0, 0, 37, 43, 38, 0, 0, 0, 41, + 44, 45, 46, 0, 0, 36, 0, 0, 43, 0, + 0, 0, 47, 48, 44, 45, 46, 0, 0, 36, + 0, 0, 0, 330, 0, 52, 47, 48, 53, 0, + 0, 0, 0, 0, 0, 0, 0, 330, 0, 52, + 0, 37, 53, 38, 39, 40, 0, 41, 0, 0, + 0, 42, 0, 0, 0, 37, 43, 38, 39, 276, + 0, 41, 44, 45, 46, 42, 0, 96, 0, 0, + 43, 0, 0, 0, 47, 48, 44, 45, 46, 49, + 0, 36, 0, 0, 0, 50, 51, 52, 47, 48, + 53, 0, 0, 49, 0, 0, 0, 0, 0, 50, + 51, 52, 0, 37, 53, 38, 39, 0, 0, 41, + 0, 0, 0, 42, 0, 0, 0, 37, 43, 38, + 39, 0, 0, 41, 44, 45, 46, 42, 0, 0, + 0, 0, 43, 0, 0, 0, 47, 48, 44, 45, + 46, 49, 0, 66, 0, 0, 0, 97, 51, 52, + 47, 48, 53, 67, 0, 49, 0, 68, 0, 0, + 69, 50, 51, 52, 0, 0, 53, 66, 0, 70, + 0, 0, 71, 72, 73, 0, 0, 67, 0, 0, + 0, 68, 0, 74, 69, 0, 0, 75, 0, 0, + 0, 76, 66, 70, 0, 0, 71, 72, 73, 0, + 0, 77, 67, 0, 0, 0, 68, 74, 0, 69, + 0, 75, 0, 0, 0, 76, 66, 0, 70, 0, + 382, 71, 72, 73, 0, 77, 67, 0, 0, 0, + 68, 0, 74, 69, 0, 0, 75, 0, 0, 0, + 76, 0, 70, 0, 428, 71, 72, 73, 0, 0, + 77, 0, 0, 0, 0, 0, 74, 0, 0, 0, + 75, 0, 0, 0, 76, 0, 0, 0, 0, 514, + 0, 0, 0, 0, 77, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 684 }; -static const short yycheck[] = { 1, - 50, 31, 4, 31, 436, 20, 542, 81, 81, 81, - 60, 61, 81, 173, 20, 8, 9, 75, 407, 20, - 70, 118, 10, 89, 90, 91, 76, 93, 94, 95, - 148, 420, 3, 12, 10, 118, 102, 103, 343, 101, - 106, 8, 9, 161, 162, 163, 164, 97, 101, 99, - 100, 427, 54, 8, 9, 10, 8, 9, 120, 104, - 31, 49, 101, 2, 92, 109, 81, 120, 101, 40, - 118, 376, 118, 75, 119, 81, 104, 105, 269, 6, - 81, 120, 8, 9, 8, 9, 104, 120, 27, 28, - 29, 30, 101, 32, 49, 29, 73, 74, 75, 8, - 9, 119, 262, 70, 118, 179, 179, 179, 118, 101, - 179, 120, 109, 489, 118, 145, 93, 72, 118, 279, - 108, 92, 101, 29, 429, 113, 100, 120, 120, 103, - 118, 181, 118, 104, 105, 671, 254, 113, 101, 8, - 9, 10, 531, 193, 103, 534, 148, 197, 100, 118, - 539, 527, 218, 108, 204, 205, 101, 120, 113, 161, - 162, 163, 164, 118, 179, 325, 103, 8, 9, 10, - 172, 173, 118, 179, 100, 120, 100, 118, 179, 370, - 49, 717, 103, 117, 118, 119, 125, 126, 127, 128, - 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, - 139, 140, 141, 142, 143, 144, 103, 146, 49, 120, - 260, 117, 118, 119, 185, 113, 407, 119, 339, 190, - 100, 342, 100, 344, 119, 120, 345, 109, 388, 420, - 349, 350, 351, 283, 770, 97, 98, 99, 774, 108, - 384, 385, 547, 364, 113, 366, 367, 368, 118, 118, - 118, 100, 254, 102, 103, 104, 6, 259, 260, 102, - 262, 263, 120, 265, 101, 267, 267, 108, 318, 120, - 806, 110, 113, 120, 810, 277, 120, 279, 328, 121, - 330, 73, 74, 75, 405, 821, 120, 226, 227, 120, - 722, 120, 828, 118, 119, 416, 120, 268, 118, 119, - 120, 120, 392, 422, 120, 276, 118, 119, 120, 399, - 400, 401, 402, 110, 703, 120, 318, 319, 408, 103, - 259, 442, 118, 325, 414, 118, 119, 120, 329, 379, - 100, 101, 334, 383, 384, 385, 394, 118, 340, 118, - 531, 343, 372, 345, 374, 284, 120, 349, 350, 351, - 118, 119, 354, 118, 119, 357, 500, 119, 120, 361, - 504, 666, 506, 118, 508, 509, 510, 306, 370, 435, - 123, 8, 9, 101, 376, 104, 100, 383, 384, 385, - 101, 101, 113, 110, 434, 121, 388, 113, 390, 526, - 392, 113, 394, 118, 395, 29, 104, 399, 400, 401, - 402, 403, 121, 84, 113, 407, 408, 120, 120, 714, - 121, 48, 414, 119, 101, 120, 123, 101, 420, 120, - 422, 104, 361, 119, 729, 427, 101, 429, 19, 20, - 49, 521, 118, 45, 436, 47, 48, 101, 29, 410, - 52, 380, 516, 516, 516, 535, 83, 516, 120, 499, - 500, 501, 89, 90, 504, 123, 506, 120, 508, 509, - 510, 121, 767, 121, 123, 118, 13, 14, 15, 16, - 17, 18, 19, 20, 109, 118, 109, 111, 112, 113, - 114, 115, 29, 117, 118, 119, 514, 489, 427, 85, - 101, 123, 118, 120, 500, 120, 29, 436, 504, 804, - 506, 516, 508, 509, 510, 117, 118, 119, 120, 511, - 516, 120, 118, 515, 121, 516, 120, 120, 110, 521, - 111, 112, 113, 114, 115, 527, 117, 118, 119, 531, - 120, 110, 534, 535, 536, 120, 118, 539, 29, 151, - 542, 153, 118, 514, 0, 547, 120, 120, 487, 0, - 489, 434, 689, 690, 691, 692, 172, 694, 105, 106, - 668, 108, 109, 110, 111, 112, 113, 114, 115, 700, - 117, 118, 119, 394, 713, 761, 123, 179, 395, 700, - 113, 114, 115, 394, 117, 118, 119, 329, 527, 538, - 515, 179, 713, 689, 690, 691, 692, 433, 694, 8, - 9, 389, 318, 740, 741, 742, 743, 744, 745, 746, - 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, - 757, 186, 113, 114, 115, -1, 117, 118, 119, 631, - 3, 4, 5, 6, -1, 8, 631, -1, -1, 48, - 761, -1, 779, -1, 740, 741, 742, 743, 744, 745, - 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, - 756, 757, -1, 693, 666, 693, 8, 9, -1, 671, - -1, -1, -1, 100, 83, 102, 103, 104, 815, 52, - 89, 90, -1, 779, 93, -1, 59, -1, -1, 8, - 9, 118, 119, -1, -1, -1, -1, -1, -1, -1, - -1, 703, 730, 731, 732, -1, 48, 80, -1, 82, - -1, -1, 714, 86, -1, 717, -1, -1, -1, 815, - 722, 660, 693, 0, -1, -1, -1, 729, 758, 48, - -1, -1, -1, 672, -1, 108, -1, -1, -1, 112, - 113, 83, -1, 116, -1, 118, -1, 89, 90, 122, - -1, 93, -1, 803, -1, -1, -1, -1, -1, 730, - 731, 732, 701, -1, 83, 767, -1, 44, 770, -1, - 89, 90, 774, -1, 93, -1, -1, 54, -1, -1, - -1, 58, -1, 722, 61, -1, -1, -1, -1, -1, - -1, -1, -1, 70, 824, 825, 73, 74, 75, -1, - -1, -1, 804, -1, 806, -1, -1, 84, 810, -1, - -1, 88, -1, -1, -1, 92, -1, -1, -1, 821, - 759, -1, -1, -1, -1, 102, 828, 3, 4, 5, - 6, 7, 8, 9, 10, -1, 12, 13, 14, 15, - 16, 17, 18, 19, 20, 21, 22, -1, -1, -1, - -1, -1, -1, 29, 30, 31, 32, 33, 34, 35, - 36, 37, 38, 39, 40, 41, 42, 43, -1, 45, - 46, 47, 48, 49, 50, 51, 52, 53, -1, 55, - 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, - 66, 67, -1, 69, -1, 71, 72, 73, 74, 75, - 76, 77, 78, 79, 80, 81, 82, 83, -1, 85, - 86, 87, 88, 89, 90, 91, -1, 93, 94, 95, - 96, -1, -1, -1, 100, 101, 102, 103, 104, 105, - 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, - 116, 117, 118, 119, 120, 121, 122, 123, 3, 4, - 5, 6, 7, 8, 9, 10, -1, 12, 13, 14, - 15, 16, 17, 18, 19, 20, 21, 22, -1, -1, - -1, -1, -1, -1, 29, 30, 31, 32, 33, 34, - 35, 36, 37, 38, 39, 40, 41, 42, 43, -1, - 45, 46, 47, 48, 49, 50, 51, 52, 53, -1, - 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, - 65, 66, 67, -1, 69, -1, 71, 72, 73, 74, - 75, 76, 77, 78, 79, 80, 81, 82, 83, -1, - 85, 86, 87, 88, 89, 90, 91, -1, 93, 94, - 95, 96, -1, -1, -1, 100, 101, 102, 103, 104, - 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, - 115, 116, 117, 118, 119, 120, -1, 122, 123, 3, - 4, 5, 6, -1, 8, 9, -1, 19, 20, -1, - -1, -1, -1, -1, -1, -1, -1, 29, -1, -1, - -1, -1, -1, -1, 13, 14, 15, 16, 17, 18, - 19, 20, -1, -1, -1, -1, -1, 45, -1, 47, - 29, 45, -1, 47, 48, 49, -1, 51, 52, -1, - -1, 55, -1, -1, -1, 59, 60, -1, 66, 67, - 68, -1, 66, 67, 68, -1, -1, 71, -1, -1, - 78, 79, -1, -1, 78, 79, 80, -1, 82, 83, - -1, -1, 86, 91, -1, 89, 90, 91, -1, -1, - 94, 3, 4, 5, 6, -1, 8, 9, -1, 111, - 112, 113, 114, 115, 108, 117, 118, 119, 112, 113, - 118, -1, 116, -1, 118, -1, 105, 106, 122, 108, - 109, 110, 111, 112, 113, 114, 115, -1, 117, 118, - 119, -1, -1, 45, 123, 47, -1, -1, -1, 51, - 52, -1, -1, -1, -1, -1, -1, 59, 60, -1, - -1, -1, -1, -1, 66, 67, -1, -1, -1, 71, - -1, 45, -1, 47, -1, -1, 78, 79, 80, 45, - 82, 47, -1, -1, 86, 3, 4, 5, 6, 91, - 8, 9, 66, 67, 68, 29, -1, -1, -1, -1, - 66, 67, 68, -1, 78, 79, 108, -1, -1, -1, - 112, 113, 78, 79, 116, -1, 118, 91, 120, -1, - 122, -1, -1, -1, -1, 91, -1, 45, -1, 47, - -1, -1, -1, 51, 52, -1, -1, -1, -1, -1, - -1, 59, 60, -1, 118, -1, -1, -1, 66, 67, - -1, -1, 118, 71, -1, -1, -1, -1, -1, -1, - 78, 79, 80, -1, 82, -1, -1, -1, 86, 3, - 4, 5, 6, 91, 8, 9, -1, 111, 112, 113, - 114, 115, 100, 117, 118, 119, -1, -1, -1, -1, - 108, -1, -1, -1, 112, 113, -1, -1, 116, -1, - 118, 45, -1, 47, 122, -1, -1, 51, -1, -1, - -1, 45, -1, 47, -1, -1, 60, 51, 52, -1, - -1, -1, 66, 67, 68, 59, 60, -1, -1, -1, - -1, -1, 66, 67, 78, 79, -1, 71, -1, -1, - -1, -1, -1, -1, 78, 79, 80, 91, 82, -1, - -1, -1, 86, 3, 4, 5, 6, 91, 8, 9, - -1, -1, -1, 44, -1, -1, 100, -1, -1, -1, - -1, -1, -1, 54, 108, -1, -1, 58, 112, 113, - 61, -1, 116, -1, 118, -1, -1, -1, 122, 70, - -1, -1, 73, 74, 75, 45, -1, 47, -1, -1, - -1, 51, 52, 84, -1, -1, -1, 88, -1, 59, - 60, 92, -1, -1, -1, -1, 66, 67, -1, -1, - -1, 71, -1, -1, -1, -1, -1, -1, 78, 79, - 80, 45, 82, 47, -1, -1, 86, 3, 4, 5, - 6, 91, 8, 9, -1, -1, 60, -1, -1, -1, - 100, -1, 66, 67, 68, -1, -1, -1, 108, -1, - -1, -1, 112, 113, 78, 79, 116, -1, 118, 45, - -1, 47, 122, -1, -1, -1, -1, 91, -1, 45, - -1, 47, -1, -1, -1, 51, 52, -1, -1, -1, - 66, 67, 68, 59, 60, -1, -1, -1, -1, -1, - 66, 67, 78, 79, -1, 71, -1, -1, -1, -1, - -1, -1, 78, 79, 80, 91, 82, -1, -1, -1, - 86, 3, 4, 5, 6, 91, 8, 9, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, 108, -1, -1, -1, 112, 113, -1, -1, - 116, -1, 118, -1, 120, -1, 122, -1, -1, -1, - -1, -1, -1, 45, -1, 47, -1, -1, -1, 51, - 52, -1, -1, -1, -1, -1, -1, 59, 60, 17, - 18, 19, 20, -1, 66, 67, -1, -1, -1, 71, - -1, 29, -1, -1, -1, -1, 78, 79, 80, -1, - 82, -1, -1, -1, 86, -1, -1, -1, -1, 91, - -1, -1, -1, -1, -1, -1, 13, 14, 15, 16, - 17, 18, 19, 20, -1, -1, 108, -1, -1, -1, - 112, 113, 29, -1, 116, -1, 118, -1, -1, -1, - 122, 13, 14, 15, 16, 17, 18, 19, 20, -1, - -1, -1, -1, -1, -1, -1, -1, 29, -1, 31, - 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, - 42, 109, 110, 111, 112, 113, 114, 115, 50, 117, - 118, 119, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, 71, - -1, -1, -1, -1, -1, -1, 103, -1, 105, 106, - -1, 108, 8, 9, 111, 112, 113, 114, 115, -1, - 117, 118, 119, -1, -1, -1, -1, -1, -1, 101, - -1, -1, 104, -1, 106, 107, 108, 109, 110, 111, - 112, 113, 114, 115, 116, -1, 118, 119, -1, 45, - 122, 47, 48, 49, -1, 51, -1, -1, -1, 55, - 56, 57, -1, -1, 60, -1, 8, 9, -1, 65, - 66, 67, 68, 69, -1, -1, 72, -1, -1, -1, - 76, -1, 78, 79, -1, 81, -1, 83, -1, -1, - -1, -1, -1, 89, 90, 91, -1, 93, 94, 95, - -1, -1, -1, 45, 100, 47, 48, 49, -1, 51, - -1, -1, -1, 55, 56, 57, -1, -1, 60, -1, - 116, 8, 9, 65, 66, 67, 68, 69, -1, -1, - 72, -1, -1, -1, 76, -1, 78, 79, -1, 81, - -1, 83, -1, -1, -1, -1, -1, 89, 90, 91, - -1, 93, 94, 95, -1, -1, -1, -1, 45, -1, - 47, 48, 49, -1, 51, -1, -1, -1, 55, 56, - 57, -1, -1, 60, 116, -1, -1, -1, 65, 66, - 67, 68, 69, -1, -1, 72, -1, -1, -1, 76, - -1, 78, 79, -1, 81, -1, 83, -1, -1, -1, - -1, -1, 89, 90, 91, -1, 93, 94, 95, 13, - 14, 15, 16, 17, 18, 19, 20, -1, -1, -1, - -1, -1, -1, -1, -1, 29, -1, -1, -1, 116, - 13, 14, 15, 16, 17, 18, 19, 20, -1, -1, - -1, -1, -1, -1, -1, -1, 29, 13, 14, 15, - 16, 17, 18, 19, 20, -1, -1, -1, -1, -1, - -1, -1, -1, 29, 13, 14, 15, 16, 17, 18, - 19, 20, -1, -1, -1, -1, -1, -1, -1, -1, - 29, 14, 15, 16, 17, 18, 19, 20, -1, -1, - -1, -1, -1, -1, -1, -1, 29, -1, -1, 103, - -1, 105, 106, -1, 108, 109, 110, 111, 112, 113, - 114, 115, -1, 117, 118, 119, -1, -1, -1, 102, - -1, -1, 105, 106, -1, 108, 109, 110, 111, 112, - 113, 114, 115, -1, 117, 118, 119, -1, -1, 105, - 106, -1, 108, 109, 110, 111, 112, 113, 114, 115, - -1, 117, 118, 119, -1, -1, 105, 106, -1, 108, - -1, -1, 111, 112, 113, 114, 115, -1, 117, 118, - 119, -1, -1, 106, -1, 108, 109, 110, 111, 112, - 113, 114, 115, -1, 117, 118, 119, 14, 15, 16, - 17, 18, 19, 20, -1, -1, -1, -1, -1, -1, - -1, -1, 29, 15, 16, 17, 18, 19, 20, -1, - -1, -1, -1, -1, -1, -1, -1, 29, 15, 16, - 17, 18, 19, 20, -1, -1, -1, -1, -1, -1, - -1, -1, 29, 15, 16, 17, 18, 19, 20, -1, - -1, -1, -1, -1, -1, -1, -1, 29, 15, 16, - 17, 18, 19, 20, -1, -1, -1, -1, -1, -1, - -1, -1, 29, 15, 16, 17, 18, 19, 20, -1, - -1, -1, -1, -1, -1, -1, -1, 29, -1, 106, - -1, 108, -1, -1, 111, 112, 113, 114, 115, -1, - 117, 118, 119, -1, 106, -1, 108, 109, 110, 111, - 112, 113, 114, 115, -1, 117, 118, 119, -1, -1, - -1, 108, 109, 110, 111, 112, 113, 114, 115, -1, - 117, 118, 119, -1, -1, -1, -1, 109, 110, 111, - 112, 113, 114, 115, -1, 117, 118, 119, -1, 106, - -1, 108, -1, -1, 111, 112, 113, 114, 115, -1, - 117, 118, 119, 8, 9, -1, 108, 12, -1, 111, - 112, 113, 114, 115, -1, 117, 118, 119, 15, 16, - 17, 18, 19, 20, -1, -1, -1, -1, -1, -1, - -1, -1, 29, 17, 18, 19, 20, -1, -1, -1, - 45, -1, 47, 48, 49, 29, 51, -1, -1, -1, - 55, -1, -1, -1, -1, 60, -1, -1, -1, -1, - -1, 66, 67, 68, -1, -1, -1, -1, -1, -1, - -1, -1, -1, 78, 79, -1, -1, -1, 83, -1, - -1, -1, -1, -1, 89, 90, 91, -1, -1, 94, - -1, -1, -1, -1, -1, -1, -1, -1, -1, 8, - 9, -1, -1, 12, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 111, 112, 113, 114, 115, -1, - 117, 118, 119, -1, -1, -1, -1, 111, 112, 113, - 114, 115, -1, 117, 118, 119, 45, -1, 47, 48, - 49, -1, 51, -1, -1, -1, 55, 8, 9, -1, - -1, 60, -1, -1, -1, -1, -1, 66, 67, 68, - -1, 8, 9, -1, -1, -1, -1, -1, -1, 78, - 79, -1, -1, -1, 83, -1, -1, -1, -1, -1, - 89, 90, 91, -1, 45, 94, 47, 48, 49, -1, - 51, -1, -1, -1, -1, -1, -1, -1, 45, 60, - 47, -1, -1, -1, 51, 66, 67, 68, -1, -1, - 9, -1, -1, 60, -1, -1, -1, 78, 79, 66, - 67, 68, -1, -1, 9, -1, -1, -1, 89, -1, - 91, 78, 79, 94, -1, -1, -1, -1, -1, -1, - -1, -1, 89, -1, 91, -1, 45, 94, 47, 48, - 49, -1, 51, -1, -1, -1, 55, -1, -1, -1, - 45, 60, 47, 48, 49, -1, 51, 66, 67, 68, - 55, -1, 9, -1, -1, 60, -1, -1, -1, 78, - 79, 66, 67, 68, 83, -1, 9, -1, -1, -1, - 89, 90, 91, 78, 79, 94, -1, -1, 83, -1, - -1, -1, -1, -1, 89, 90, 91, -1, 45, 94, - 47, 48, -1, -1, 51, -1, -1, -1, 55, -1, - -1, -1, 45, 60, 47, 48, -1, -1, 51, 66, - 67, 68, 55, -1, -1, -1, -1, 60, -1, -1, - -1, 78, 79, 66, 67, 68, 83, -1, 44, -1, - -1, -1, 89, 90, 91, 78, 79, 94, 54, -1, - 83, -1, 58, -1, -1, 61, 89, 90, 91, -1, - -1, 94, 44, -1, 70, -1, -1, 73, 74, 75, - -1, -1, 54, -1, -1, -1, 58, -1, 84, 61, - -1, -1, 88, -1, -1, -1, 92, 44, 70, -1, - -1, 73, 74, 75, -1, -1, 102, 54, -1, -1, - -1, 58, 84, -1, 61, -1, 88, -1, -1, -1, - 92, 44, -1, 70, -1, 121, 73, 74, 75, -1, - 102, 54, -1, -1, -1, 58, -1, 84, 61, -1, - -1, 88, -1, -1, -1, 92, 44, 70, -1, 121, - 73, 74, 75, -1, -1, 102, 54, -1, -1, -1, - 58, 84, -1, 61, -1, 88, -1, -1, -1, 92, - -1, -1, 70, -1, 121, 73, 74, 75, 45, 102, - 47, -1, -1, -1, 51, -1, 84, -1, -1, -1, - 88, -1, -1, 60, 92, -1, -1, -1, 121, 66, - 67, 68, -1, -1, 102, -1, -1, -1, -1, -1, - -1, 78, 79, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, 121, 91, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, 118 +static const short yycheck[] = +{ + 1, 75, 31, 4, 3, 407, 31, 436, 269, 81, + 118, 20, 81, 81, 81, 20, 118, 10, 420, 339, + 20, 101, 342, 109, 344, 89, 90, 91, 173, 93, + 94, 95, 31, 8, 9, 343, 101, 118, 102, 103, + 120, 40, 106, 148, 364, 104, 366, 367, 368, 100, + 10, 427, 103, 54, 544, 120, 161, 162, 163, 164, + 119, 118, 12, 8, 9, 8, 9, 92, 376, 101, + 8, 9, 81, 2, 75, 101, 81, 8, 9, 104, + 105, 81, 73, 74, 75, 405, 6, 29, 120, 49, + 8, 9, 10, 92, 120, 118, 416, 118, 27, 28, + 29, 30, 93, 32, 29, 104, 105, 179, 118, 370, + 179, 179, 179, 109, 490, 118, 145, 262, 101, 392, + 113, 429, 442, 8, 9, 10, 399, 400, 401, 402, + 532, 49, 70, 535, 279, 408, 29, 120, 540, 119, + 120, 414, 8, 9, 10, 120, 407, 148, 108, 254, + 29, 101, 528, 113, 218, 100, 118, 100, 118, 420, + 161, 162, 163, 164, 49, 384, 385, 104, 103, 100, + 179, 172, 173, 103, 179, 117, 118, 119, 118, 179, + 325, 103, 119, 49, 674, 118, 185, 72, 8, 9, + 108, 190, 117, 118, 119, 113, 125, 126, 127, 128, + 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, + 139, 140, 141, 142, 143, 144, 103, 146, 111, 112, + 113, 114, 115, 108, 117, 118, 119, 101, 113, 101, + 720, 120, 101, 118, 113, 114, 115, 118, 117, 118, + 119, 549, 108, 388, 100, 101, 120, 113, 120, 522, + 345, 120, 118, 254, 349, 350, 351, 103, 259, 260, + 113, 262, 263, 536, 265, 119, 267, 267, 100, 268, + 100, 532, 118, 119, 120, 109, 277, 276, 279, 45, + 118, 47, 501, 773, 6, 51, 505, 777, 507, 118, + 509, 510, 511, 103, 60, 102, 725, 226, 227, 103, + 66, 67, 68, 100, 706, 102, 103, 104, 118, 119, + 120, 120, 78, 79, 118, 119, 120, 318, 319, 809, + 394, 118, 119, 813, 325, 91, 101, 422, 120, 329, + 259, 4, 120, 334, 824, 8, 9, 118, 119, 340, + 120, 831, 343, 372, 345, 374, 118, 119, 349, 350, + 351, 110, 118, 354, 110, 284, 357, 97, 98, 99, + 361, 669, 100, 120, 102, 103, 104, 118, 119, 370, + 29, 435, 73, 74, 75, 376, 120, 306, 383, 384, + 385, 120, 103, 703, 19, 20, 120, 388, 527, 390, + 120, 392, 120, 394, 29, 395, 716, 120, 399, 400, + 401, 402, 403, 119, 120, 118, 407, 408, 118, 717, + 121, 410, 120, 414, 118, 118, 123, 101, 104, 420, + 50, 422, 100, 110, 732, 101, 427, 101, 429, 121, + 60, 61, 361, 113, 113, 436, 118, 104, 113, 84, + 70, 113, 123, 120, 764, 517, 76, 101, 517, 517, + 517, 380, 111, 112, 113, 114, 115, 121, 117, 118, + 119, 119, 770, 120, 101, 121, 104, 97, 120, 99, + 100, 120, 119, 101, 49, 4, 111, 112, 113, 114, + 115, 101, 117, 118, 119, 118, 120, 123, 120, 490, + 515, 17, 18, 19, 20, 121, 501, 121, 427, 807, + 505, 123, 507, 29, 509, 510, 511, 436, 517, 118, + 109, 512, 517, 118, 109, 516, 515, 517, 101, 123, + 85, 522, 118, 45, 118, 47, 48, 528, 120, 120, + 52, 532, 120, 120, 535, 536, 537, 121, 120, 540, + 110, 120, 110, 544, 120, 118, 118, 0, 549, 120, + 29, 181, 0, 692, 693, 694, 695, 120, 697, 488, + 172, 490, 671, 193, 434, 716, 394, 197, 703, 764, + 394, 179, 395, 539, 204, 205, 329, 3, 4, 5, + 6, 179, 8, 109, 110, 111, 112, 113, 114, 115, + 516, 117, 118, 119, 389, 117, 118, 119, 120, 528, + 318, 186, 8, 9, 743, 744, 745, 746, 747, 748, + 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, + 759, 760, 433, -1, -1, 633, 52, -1, -1, 151, + 260, 153, 633, 59, 113, 114, 115, -1, 117, 118, + 119, -1, 48, 782, -1, 19, 20, -1, -1, -1, + -1, -1, -1, 283, 80, 29, 82, -1, -1, -1, + 86, -1, -1, -1, -1, -1, -1, 696, 669, -1, + -1, 696, -1, 674, -1, 8, 9, 83, -1, 818, + -1, -1, 108, 89, 90, -1, 112, 113, 318, -1, + 116, -1, 118, -1, -1, -1, 122, 696, 328, -1, + 330, -1, -1, -1, -1, 706, -1, -1, 733, 734, + 735, -1, 8, 9, -1, 48, 717, -1, -1, 720, + -1, -1, -1, -1, 725, -1, -1, -1, -1, -1, + -1, 732, 761, 662, 733, 734, 735, 111, 112, 113, + 114, 115, -1, 117, 118, 119, 675, -1, -1, 379, + 83, -1, 48, 383, 384, 385, 89, 90, -1, -1, + 93, 13, 14, 15, 16, 17, 18, 19, 20, 770, + -1, -1, 773, -1, -1, 704, 777, 29, -1, -1, + 45, -1, 47, 692, 693, 694, 695, 83, 697, -1, + -1, -1, -1, 89, 90, 60, 725, 93, 827, 828, + -1, 66, 67, 68, 434, -1, 807, -1, 809, -1, + -1, -1, 813, 78, 79, -1, -1, -1, -1, -1, + -1, -1, -1, 824, -1, -1, 91, -1, -1, -1, + 831, -1, -1, 762, 743, 744, 745, 746, 747, 748, + 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, + 759, 760, -1, 105, 106, -1, 108, 487, -1, 111, + 112, 113, 114, 115, -1, 117, 118, 119, -1, -1, + 500, 501, 502, 782, -1, 505, -1, 507, -1, 509, + 510, 511, -1, -1, 3, 4, 5, 6, 7, 8, + 9, 10, -1, 12, 13, 14, 15, 16, 17, 18, + 19, 20, 21, 22, -1, -1, -1, -1, -1, 818, + 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, + 39, 40, 41, 42, 43, -1, 45, 46, 47, 48, + 49, 50, 51, 52, 53, -1, 55, 56, 57, 58, + 59, 60, 61, 62, 63, 64, 65, 66, 67, -1, + 69, -1, 71, 72, 73, 74, 75, 76, 77, 78, + 79, 80, 81, 82, 83, -1, 85, 86, 87, 88, + 89, 90, 91, -1, 93, 94, 95, 96, -1, -1, + -1, 100, 101, 102, 103, 104, 105, 106, 107, 108, + 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, + 119, 120, 121, 122, 123, 3, 4, 5, 6, 7, + 8, 9, 10, -1, 12, 13, 14, 15, 16, 17, + 18, 19, 20, 21, 22, -1, -1, -1, -1, -1, + -1, 29, 30, 31, 32, 33, 34, 35, 36, 37, + 38, 39, 40, 41, 42, 43, -1, 45, 46, 47, + 48, 49, 50, 51, 52, 53, -1, 55, 56, 57, + 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, + -1, 69, -1, 71, 72, 73, 74, 75, 76, 77, + 78, 79, 80, 81, 82, 83, -1, 85, 86, 87, + 88, 89, 90, 91, -1, 93, 94, 95, 96, -1, + -1, -1, 100, 101, 102, 103, 104, 105, 106, 107, + 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, + 118, 119, 120, -1, 122, 123, 3, 4, 5, 6, + -1, 8, 9, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, 8, 9, -1, + -1, 13, 14, 15, 16, 17, 18, 19, 20, -1, + -1, -1, -1, -1, -1, -1, -1, 29, 45, -1, + 47, 48, 49, -1, 51, 52, 806, -1, 55, -1, + -1, -1, 59, 60, -1, -1, -1, 48, -1, 66, + 67, 68, -1, -1, 71, -1, -1, -1, -1, -1, + -1, 78, 79, 80, -1, 82, 83, -1, -1, 86, + -1, -1, 89, 90, 91, -1, -1, 94, 3, 4, + 5, 6, 83, 8, 9, -1, -1, -1, 89, 90, + -1, 108, 93, -1, -1, 112, 113, -1, -1, 116, + -1, 118, -1, 105, 106, 122, 108, 109, 110, 111, + 112, 113, 114, 115, -1, 117, 118, 119, -1, -1, + 45, 123, 47, -1, -1, -1, 51, 52, -1, -1, + -1, -1, -1, -1, 59, 60, -1, -1, -1, -1, + -1, 66, 67, -1, -1, -1, 71, -1, 45, -1, + 47, -1, -1, 78, 79, 80, 45, 82, 47, -1, + -1, 86, 3, 4, 5, 6, 91, 8, 9, 66, + 67, 68, -1, -1, -1, -1, -1, 66, 67, 68, + -1, 78, 79, 108, -1, -1, -1, 112, 113, 78, + 79, 116, -1, 118, 91, 120, -1, 122, -1, -1, + -1, -1, 91, -1, 45, -1, 47, -1, -1, -1, + 51, 52, -1, -1, -1, -1, -1, -1, 59, 60, + -1, 118, -1, -1, -1, 66, 67, -1, -1, 118, + 71, -1, 45, -1, 47, -1, -1, 78, 79, 80, + 45, 82, 47, -1, -1, 86, 3, 4, 5, 6, + 91, 8, 9, 66, 67, 68, -1, -1, -1, 100, + -1, 66, 67, 68, -1, 78, 79, 108, -1, -1, + -1, 112, 113, 78, 79, 116, -1, 118, 91, -1, + -1, 122, -1, -1, -1, -1, 91, -1, 45, -1, + 47, -1, -1, -1, 51, 52, -1, -1, -1, -1, + -1, -1, 59, 60, -1, 118, -1, -1, -1, 66, + 67, -1, -1, -1, 71, -1, -1, -1, -1, -1, + -1, 78, 79, 80, -1, 82, -1, -1, -1, 86, + 3, 4, 5, 6, 91, 8, 9, -1, -1, -1, + 44, -1, -1, 100, -1, -1, -1, -1, -1, -1, + 54, 108, -1, -1, 58, 112, 113, 61, -1, 116, + -1, 118, -1, -1, -1, 122, 70, -1, -1, 73, + 74, 75, 45, -1, 47, -1, -1, -1, 51, 52, + 84, -1, -1, -1, 88, -1, 59, 60, 92, -1, + -1, -1, -1, 66, 67, -1, -1, -1, 71, -1, + -1, -1, -1, -1, -1, 78, 79, 80, -1, 82, + -1, -1, -1, 86, 3, 4, 5, 6, 91, 8, + 9, -1, -1, -1, -1, -1, -1, 100, -1, -1, + -1, -1, -1, -1, -1, 108, -1, -1, -1, 112, + 113, -1, -1, 116, -1, 118, 45, -1, 47, 122, + -1, -1, 51, -1, -1, -1, 45, -1, 47, -1, + -1, 60, 51, 52, -1, -1, -1, 66, 67, 68, + 59, 60, -1, -1, -1, -1, -1, 66, 67, 78, + 79, -1, 71, -1, -1, -1, -1, -1, -1, 78, + 79, 80, 91, 82, -1, -1, -1, 86, 3, 4, + 5, 6, 91, 8, 9, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, 108, + -1, -1, -1, 112, 113, -1, -1, 116, -1, 118, + -1, 120, -1, 122, -1, -1, -1, -1, -1, -1, + 45, -1, 47, -1, -1, -1, 51, 52, -1, -1, + -1, -1, -1, -1, 59, 60, 17, 18, 19, 20, + -1, 66, 67, -1, -1, -1, 71, -1, 29, -1, + -1, -1, -1, 78, 79, 80, -1, 82, -1, -1, + -1, 86, -1, -1, -1, -1, 91, -1, 13, 14, + 15, 16, 17, 18, 19, 20, -1, -1, -1, -1, + -1, -1, -1, 108, 29, -1, -1, 112, 113, -1, + -1, 116, -1, 118, -1, -1, -1, 122, 13, 14, + 15, 16, 17, 18, 19, 20, -1, -1, -1, -1, + -1, -1, -1, -1, 29, -1, 31, 32, 33, 34, + 35, 36, 37, 38, 39, 40, 41, 42, -1, -1, + 111, 112, 113, 114, 115, 50, 117, 118, 119, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, 71, -1, -1, -1, + 105, 106, -1, 108, 109, 110, 111, 112, 113, 114, + 115, -1, 117, 118, 119, 8, 9, -1, 123, -1, + -1, -1, -1, -1, -1, -1, 101, -1, -1, 104, + -1, 106, 107, 108, 109, 110, 111, 112, 113, 114, + 115, 116, -1, 118, 119, -1, -1, 122, -1, -1, + -1, -1, 45, -1, 47, 48, 49, -1, 51, -1, + -1, -1, 55, 56, 57, -1, -1, 60, -1, 8, + 9, -1, 65, 66, 67, 68, 69, -1, -1, 72, + -1, -1, -1, 76, -1, 78, 79, -1, 81, -1, + 83, -1, -1, -1, -1, -1, 89, 90, 91, -1, + 93, 94, 95, -1, -1, -1, 45, 100, 47, 48, + 49, -1, 51, -1, -1, -1, 55, 56, 57, -1, + -1, 60, -1, 116, 8, 9, 65, 66, 67, 68, + 69, -1, -1, 72, -1, -1, -1, 76, -1, 78, + 79, -1, 81, -1, 83, -1, -1, -1, -1, -1, + 89, 90, 91, -1, 93, 94, 95, -1, -1, -1, + -1, 45, -1, 47, 48, 49, -1, 51, -1, -1, + -1, 55, 56, 57, -1, -1, 60, 116, -1, -1, + -1, 65, 66, 67, 68, 69, -1, -1, 72, -1, + -1, -1, 76, -1, 78, 79, -1, 81, -1, 83, + -1, -1, -1, -1, -1, 89, 90, 91, -1, 93, + 94, 95, 13, 14, 15, 16, 17, 18, 19, 20, + -1, -1, -1, -1, -1, -1, -1, -1, 29, -1, + -1, -1, 116, 13, 14, 15, 16, 17, 18, 19, + 20, -1, -1, -1, -1, -1, -1, -1, -1, 29, + 13, 14, 15, 16, 17, 18, 19, 20, -1, -1, + -1, -1, -1, -1, -1, -1, 29, 13, 14, 15, + 16, 17, 18, 19, 20, -1, -1, -1, -1, -1, + -1, -1, -1, 29, 14, 15, 16, 17, 18, 19, + 20, -1, -1, -1, -1, -1, -1, -1, -1, 29, + -1, -1, 103, -1, 105, 106, -1, 108, 109, 110, + 111, 112, 113, 114, 115, -1, 117, 118, 119, -1, + -1, -1, 102, -1, -1, 105, 106, -1, 108, 109, + 110, 111, 112, 113, 114, 115, -1, 117, 118, 119, + -1, -1, 105, 106, -1, 108, 109, 110, 111, 112, + 113, 114, 115, -1, 117, 118, 119, 103, -1, 105, + 106, -1, 108, -1, -1, 111, 112, 113, 114, 115, + -1, 117, 118, 119, -1, -1, 106, -1, 108, 109, + 110, 111, 112, 113, 114, 115, -1, 117, 118, 119, + 14, 15, 16, 17, 18, 19, 20, -1, -1, -1, + -1, -1, -1, -1, -1, 29, 15, 16, 17, 18, + 19, 20, -1, -1, -1, -1, -1, -1, -1, -1, + 29, 15, 16, 17, 18, 19, 20, -1, -1, -1, + -1, -1, -1, -1, -1, 29, 15, 16, 17, 18, + 19, 20, -1, -1, -1, -1, -1, -1, -1, -1, + 29, 15, 16, 17, 18, 19, 20, -1, -1, -1, + -1, -1, -1, -1, -1, 29, 15, 16, 17, 18, + 19, 20, -1, -1, -1, -1, -1, -1, -1, -1, + 29, -1, 106, -1, 108, -1, -1, 111, 112, 113, + 114, 115, -1, 117, 118, 119, -1, 106, -1, 108, + 109, 110, 111, 112, 113, 114, 115, -1, 117, 118, + 119, -1, -1, -1, 108, 109, 110, 111, 112, 113, + 114, 115, -1, 117, 118, 119, -1, -1, -1, -1, + 109, 110, 111, 112, 113, 114, 115, 0, 117, 118, + 119, -1, 106, -1, 108, -1, -1, 111, 112, 113, + 114, 115, -1, 117, 118, 119, -1, -1, -1, 108, + -1, -1, 111, 112, 113, 114, 115, -1, 117, 118, + 119, 15, 16, 17, 18, 19, 20, -1, -1, -1, + -1, 44, -1, -1, -1, 29, -1, 44, -1, -1, + -1, 54, -1, -1, -1, 58, -1, 54, 61, -1, + -1, 58, -1, -1, 61, -1, -1, 70, -1, -1, + 73, 74, 75, 70, -1, -1, 73, 74, 75, -1, + -1, 84, -1, -1, -1, 88, -1, 84, -1, 92, + -1, 88, -1, -1, -1, 92, -1, -1, -1, 102, + 8, 9, -1, -1, 12, 102, -1, -1, -1, -1, + -1, -1, -1, -1, 8, 9, -1, -1, 12, -1, + -1, -1, -1, -1, 121, -1, -1, 111, 112, 113, + 114, 115, -1, 117, 118, 119, -1, 45, -1, 47, + 48, 49, -1, 51, -1, -1, -1, 55, -1, -1, + -1, 45, 60, 47, 48, 49, -1, 51, 66, 67, + 68, 55, 8, 9, -1, -1, 60, -1, -1, -1, + 78, 79, 66, 67, 68, 83, 8, 9, -1, -1, + -1, 89, 90, 91, 78, 79, 94, -1, -1, 83, + -1, -1, -1, -1, -1, 89, 90, 91, -1, 45, + 94, 47, 48, 49, -1, 51, -1, -1, -1, -1, + -1, -1, -1, 45, 60, 47, -1, -1, -1, 51, + 66, 67, 68, -1, -1, 9, -1, -1, 60, -1, + -1, -1, 78, 79, 66, 67, 68, -1, -1, 9, + -1, -1, -1, 89, -1, 91, 78, 79, 94, -1, + -1, -1, -1, -1, -1, -1, -1, 89, -1, 91, + -1, 45, 94, 47, 48, 49, -1, 51, -1, -1, + -1, 55, -1, -1, -1, 45, 60, 47, 48, 49, + -1, 51, 66, 67, 68, 55, -1, 9, -1, -1, + 60, -1, -1, -1, 78, 79, 66, 67, 68, 83, + -1, 9, -1, -1, -1, 89, 90, 91, 78, 79, + 94, -1, -1, 83, -1, -1, -1, -1, -1, 89, + 90, 91, -1, 45, 94, 47, 48, -1, -1, 51, + -1, -1, -1, 55, -1, -1, -1, 45, 60, 47, + 48, -1, -1, 51, 66, 67, 68, 55, -1, -1, + -1, -1, 60, -1, -1, -1, 78, 79, 66, 67, + 68, 83, -1, 44, -1, -1, -1, 89, 90, 91, + 78, 79, 94, 54, -1, 83, -1, 58, -1, -1, + 61, 89, 90, 91, -1, -1, 94, 44, -1, 70, + -1, -1, 73, 74, 75, -1, -1, 54, -1, -1, + -1, 58, -1, 84, 61, -1, -1, 88, -1, -1, + -1, 92, 44, 70, -1, -1, 73, 74, 75, -1, + -1, 102, 54, -1, -1, -1, 58, 84, -1, 61, + -1, 88, -1, -1, -1, 92, 44, -1, 70, -1, + 121, 73, 74, 75, -1, 102, 54, -1, -1, -1, + 58, -1, 84, 61, -1, -1, 88, -1, -1, -1, + 92, -1, 70, -1, 121, 73, 74, 75, -1, -1, + 102, -1, -1, -1, -1, -1, 84, -1, -1, -1, + 88, -1, -1, -1, 92, -1, -1, -1, -1, 121, + -1, -1, -1, -1, 102, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, 121 }; #define YYPURE 1 /* -*-C-*- Note some compilers choke on comments on `#line' lines. */ -#line 3 "/usr/lib/bison.simple" -/* This file comes from bison-1.28. */ +#line 3 "/usr/share/bison/bison.simple" /* Skeleton output parser for bison, - Copyright (C) 1984, 1989, 1990 Free Software Foundation, Inc. + + Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 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 @@ -1577,62 +1616,131 @@ static const short yycheck[] = { 1, This special exception was added by the Free Software Foundation in version 1.24 of Bison. */ -/* This is the parser code that is written into each bison parser - when the %semantic_parser declaration is not specified in the grammar. - It was written by Richard Stallman by simplifying the hairy parser - used when %semantic_parser is specified. */ +/* This is the parser code that is written into each bison parser when + the %semantic_parser declaration is not specified in the grammar. + It was written by Richard Stallman by simplifying the hairy parser + used when %semantic_parser is specified. */ -#ifndef YYSTACK_USE_ALLOCA -#ifdef alloca -#define YYSTACK_USE_ALLOCA -#else /* alloca not defined */ -#ifdef __GNUC__ -#define YYSTACK_USE_ALLOCA -#define alloca __builtin_alloca -#else /* not GNU C. */ -#if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi) || (defined (__sun) && defined (__i386)) -#define YYSTACK_USE_ALLOCA -#include -#else /* not sparc */ -/* We think this test detects Watcom and Microsoft C. */ -/* This used to test MSDOS, but that is a bad idea - since that symbol is in the user namespace. */ -#if (defined (_MSDOS) || defined (_MSDOS_)) && !defined (__TURBOC__) -#if 0 /* No need for malloc.h, which pollutes the namespace; - instead, just don't use alloca. */ -#include -#endif -#else /* not MSDOS, or __TURBOC__ */ -#if defined(_AIX) -/* I don't know what this was needed for, but it pollutes the namespace. - So I turned it off. rms, 2 May 1997. */ -/* #include */ - #pragma alloca -#define YYSTACK_USE_ALLOCA -#else /* not MSDOS, or __TURBOC__, or _AIX */ -#if 0 -#ifdef __hpux /* haible@ilog.fr says this works for HPUX 9.05 and up, - and on HPUX 10. Eventually we can turn this on. */ -#define YYSTACK_USE_ALLOCA -#define alloca __builtin_alloca -#endif /* __hpux */ -#endif -#endif /* not _AIX */ -#endif /* not MSDOS, or __TURBOC__ */ -#endif /* not sparc */ -#endif /* not GNU C */ -#endif /* alloca not defined */ -#endif /* YYSTACK_USE_ALLOCA not defined */ +/* 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. */ + +#if ! defined (yyoverflow) || defined (YYERROR_VERBOSE) + +/* The parser invokes alloca or malloc; define the necessary symbols. */ + +# if YYSTACK_USE_ALLOCA +# define YYSTACK_ALLOC alloca +# else +# ifndef YYSTACK_USE_ALLOCA +# if defined (alloca) || defined (_ALLOCA_H) +# define YYSTACK_ALLOC alloca +# else +# ifdef __GNUC__ +# define YYSTACK_ALLOC __builtin_alloca +# endif +# endif +# endif +# endif + +# ifdef YYSTACK_ALLOC + /* Pacify GCC's `empty if-body' warning. */ +# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0) +# else +# if defined (__STDC__) || defined (__cplusplus) +# include /* INFRINGES ON USER NAME SPACE */ +# define YYSIZE_T size_t +# endif +# define YYSTACK_ALLOC malloc +# define YYSTACK_FREE free +# endif +#endif /* ! defined (yyoverflow) || defined (YYERROR_VERBOSE) */ + + +#if (! defined (yyoverflow) \ + && (! defined (__cplusplus) \ + || (YYLTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) + +/* A type that is properly aligned for any stack member. */ +union yyalloc +{ + short yyss; + YYSTYPE yyvs; +# if YYLSP_NEEDED + YYLTYPE yyls; +# endif +}; + +/* The size of the maximum gap between one aligned stack and the next. */ +# define YYSTACK_GAP_MAX (sizeof (union yyalloc) - 1) + +/* The size of an array large to enough to hold all stacks, each with + N elements. */ +# if YYLSP_NEEDED +# define YYSTACK_BYTES(N) \ + ((N) * (sizeof (short) + sizeof (YYSTYPE) + sizeof (YYLTYPE)) \ + + 2 * YYSTACK_GAP_MAX) +# else +# define YYSTACK_BYTES(N) \ + ((N) * (sizeof (short) + sizeof (YYSTYPE)) \ + + YYSTACK_GAP_MAX) +# endif + +/* Copy COUNT objects from FROM to TO. The source and destination do + not overlap. */ +# ifndef YYCOPY +# if 1 < __GNUC__ +# define YYCOPY(To, From, Count) \ + __builtin_memcpy (To, From, (Count) * sizeof (*(From))) +# else +# define YYCOPY(To, From, Count) \ + do \ + { \ + register YYSIZE_T yyi; \ + for (yyi = 0; yyi < (Count); yyi++) \ + (To)[yyi] = (From)[yyi]; \ + } \ + while (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_MAX; \ + yyptr += yynewbytes / sizeof (*yyptr); \ + } \ + while (0) -#ifdef YYSTACK_USE_ALLOCA -#define YYSTACK_ALLOC alloca -#else -#define YYSTACK_ALLOC malloc #endif -/* Note: there must be only one dollar sign in this file. - It is replaced by the list of actions, each action - as one case of the switch. */ + +#if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__) +# define YYSIZE_T __SIZE_TYPE__ +#endif +#if ! defined (YYSIZE_T) && defined (size_t) +# define YYSIZE_T size_t +#endif +#if ! defined (YYSIZE_T) +# if defined (__STDC__) || defined (__cplusplus) +# include /* INFRINGES ON USER NAME SPACE */ +# define YYSIZE_T size_t +# endif +#endif +#if ! defined (YYSIZE_T) +# define YYSIZE_T unsigned int +#endif #define yyerrok (yyerrstatus = 0) #define yyclearin (yychar = YYEMPTY) @@ -1641,131 +1749,161 @@ static const short yycheck[] = { 1, #define YYACCEPT goto yyacceptlab #define YYABORT goto yyabortlab #define YYERROR goto yyerrlab1 -/* Like YYERROR except do call yyerror. - This remains here temporarily to ease the - transition to the new meaning of YYERROR, for GCC. +/* 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) \ +#define YYBACKUP(Token, Value) \ do \ if (yychar == YYEMPTY && yylen == 1) \ - { yychar = (token), yylval = (value); \ + { \ + yychar = (Token); \ + yylval = (Value); \ yychar1 = YYTRANSLATE (yychar); \ YYPOPSTACK; \ goto yybackup; \ } \ else \ - { yyerror ("syntax error: cannot back up"); YYERROR; } \ + { \ + yyerror ("syntax error: cannot back up"); \ + YYERROR; \ + } \ while (0) #define YYTERROR 1 #define YYERRCODE 256 -#ifndef YYPURE -#define YYLEX yylex() + +/* YYLLOC_DEFAULT -- Compute the default location (before the actions + are run). + + When YYLLOC_DEFAULT is run, CURRENT is set the location of the + first token. By default, to implement support for ranges, extend + its range to the last symbol. */ + +#ifndef YYLLOC_DEFAULT +# define YYLLOC_DEFAULT(Current, Rhs, N) \ + Current.last_line = Rhs[N].last_line; \ + Current.last_column = Rhs[N].last_column; #endif -#ifdef YYPURE -#ifdef YYLSP_NEEDED -#ifdef YYLEX_PARAM -#define YYLEX yylex(&yylval, &yylloc, YYLEX_PARAM) -#else -#define YYLEX yylex(&yylval, &yylloc) -#endif -#else /* not YYLSP_NEEDED */ -#ifdef YYLEX_PARAM -#define YYLEX yylex(&yylval, YYLEX_PARAM) -#else -#define YYLEX yylex(&yylval) -#endif -#endif /* not YYLSP_NEEDED */ -#endif -/* If nonreentrant, generate the variables here */ +/* YYLEX -- calling `yylex' with the right arguments. */ -#ifndef YYPURE +#if YYPURE +# if YYLSP_NEEDED +# ifdef YYLEX_PARAM +# define YYLEX yylex (&yylval, &yylloc, YYLEX_PARAM) +# else +# define YYLEX yylex (&yylval, &yylloc) +# endif +# else /* !YYLSP_NEEDED */ +# ifdef YYLEX_PARAM +# define YYLEX yylex (&yylval, YYLEX_PARAM) +# else +# define YYLEX yylex (&yylval) +# endif +# endif /* !YYLSP_NEEDED */ +#else /* !YYPURE */ +# define YYLEX yylex () +#endif /* !YYPURE */ -int yychar; /* the lookahead symbol */ -YYSTYPE yylval; /* the semantic value of the */ - /* lookahead symbol */ -#ifdef YYLSP_NEEDED -YYLTYPE yylloc; /* location data for the lookahead */ - /* symbol */ -#endif +/* Enable debugging if requested. */ +#if YYDEBUG -int yynerrs; /* number of parse errors so far */ -#endif /* not YYPURE */ +# ifndef YYFPRINTF +# include /* INFRINGES ON USER NAME SPACE */ +# define YYFPRINTF fprintf +# endif -#if YYDEBUG != 0 -int yydebug; /* nonzero means print parse trace */ -/* Since this is uninitialized, it does not stop multiple parsers - from coexisting. */ -#endif - -/* YYINITDEPTH indicates the initial size of the parser's stacks */ +# define YYDPRINTF(Args) \ +do { \ + if (yydebug) \ + YYFPRINTF Args; \ +} while (0) +/* Nonzero means print parse trace. It is left uninitialized so that + multiple parsers can coexist. */ +int yydebug; +#else /* !YYDEBUG */ +# define YYDPRINTF(Args) +#endif /* !YYDEBUG */ +/* YYINITDEPTH -- initial size of the parser's stacks. */ #ifndef YYINITDEPTH -#define YYINITDEPTH 200 +# define YYINITDEPTH 200 #endif -/* YYMAXDEPTH is the maximum size the stacks can grow to - (effective only if the built-in stack extension method is used). */ +/* 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 + SIZE_MAX < YYSTACK_BYTES (YYMAXDEPTH) + evaluated with infinite-precision integer arithmetic. */ #if YYMAXDEPTH == 0 -#undef YYMAXDEPTH +# undef YYMAXDEPTH #endif #ifndef YYMAXDEPTH -#define YYMAXDEPTH 10000 +# define YYMAXDEPTH 10000 #endif -/* Define __yy_memcpy. Note that the size argument - should be passed with type unsigned int, because that is what the non-GCC - definitions require. With GCC, __builtin_memcpy takes an arg - of type size_t, but it can handle unsigned int. */ +#ifdef YYERROR_VERBOSE -#if __GNUC__ > 1 /* GNU C and GNU C++ define this. */ -#define __yy_memcpy(TO,FROM,COUNT) __builtin_memcpy(TO,FROM,COUNT) -#else /* not GNU C or C++ */ -#ifndef __cplusplus - -/* This is the most reliable way to avoid incompatibilities - in available built-in functions on various systems. */ -static void -__yy_memcpy (to, from, count) - char *to; - char *from; - unsigned int count; +# ifndef yystrlen +# if defined (__GLIBC__) && defined (_STRING_H) +# define yystrlen strlen +# else +/* Return the length of YYSTR. */ +static YYSIZE_T +# if defined (__STDC__) || defined (__cplusplus) +yystrlen (const char *yystr) +# else +yystrlen (yystr) + const char *yystr; +# endif { - register char *f = from; - register char *t = to; - register int i = count; + register const char *yys = yystr; - while (i-- > 0) - *t++ = *f++; + while (*yys++ != '\0') + continue; + + return yys - yystr - 1; } +# endif +# endif -#else /* __cplusplus */ - -/* This is the most reliable way to avoid incompatibilities - in available built-in functions on various systems. */ -static void -__yy_memcpy (char *to, char *from, unsigned int count) +# 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. */ +static char * +# if defined (__STDC__) || defined (__cplusplus) +yystpcpy (char *yydest, const char *yysrc) +# else +yystpcpy (yydest, yysrc) + char *yydest; + const char *yysrc; +# endif { - register char *t = to; - register char *f = from; - register int i = count; + register char *yyd = yydest; + register const char *yys = yysrc; - while (i-- > 0) - *t++ = *f++; + while ((*yyd++ = *yys++) != '\0') + continue; + + return yyd - 1; } - -#endif +# endif +# endif #endif -#line 217 "/usr/lib/bison.simple" +#line 315 "/usr/share/bison/bison.simple" + /* The user can define YYPARSE_PARAM as the name of an argument to be passed into yyparse. The argument should have type void *. @@ -1774,76 +1912,121 @@ __yy_memcpy (char *to, char *from, unsigned int count) to the proper pointer type. */ #ifdef YYPARSE_PARAM -#ifdef __cplusplus -#define YYPARSE_PARAM_ARG void *YYPARSE_PARAM -#define YYPARSE_PARAM_DECL -#else /* not __cplusplus */ -#define YYPARSE_PARAM_ARG YYPARSE_PARAM -#define YYPARSE_PARAM_DECL void *YYPARSE_PARAM; -#endif /* not __cplusplus */ -#else /* not YYPARSE_PARAM */ -#define YYPARSE_PARAM_ARG -#define YYPARSE_PARAM_DECL -#endif /* not YYPARSE_PARAM */ +# if defined (__STDC__) || defined (__cplusplus) +# define YYPARSE_PARAM_ARG void *YYPARSE_PARAM +# define YYPARSE_PARAM_DECL +# else +# define YYPARSE_PARAM_ARG YYPARSE_PARAM +# define YYPARSE_PARAM_DECL void *YYPARSE_PARAM; +# endif +#else /* !YYPARSE_PARAM */ +# define YYPARSE_PARAM_ARG +# define YYPARSE_PARAM_DECL +#endif /* !YYPARSE_PARAM */ /* Prevent warning if -Wstrict-prototypes. */ #ifdef __GNUC__ -#ifdef YYPARSE_PARAM +# ifdef YYPARSE_PARAM int yyparse (void *); -#else +# else int yyparse (void); +# endif #endif + +/* YY_DECL_VARIABLES -- depending whether we use a pure parser, + variables are global, or local to YYPARSE. */ + +#define YY_DECL_NON_LSP_VARIABLES \ +/* The lookahead symbol. */ \ +int yychar; \ + \ +/* The semantic value of the lookahead symbol. */ \ +YYSTYPE yylval; \ + \ +/* Number of parse errors so far. */ \ +int yynerrs; + +#if YYLSP_NEEDED +# define YY_DECL_VARIABLES \ +YY_DECL_NON_LSP_VARIABLES \ + \ +/* Location data for the lookahead symbol. */ \ +YYLTYPE yylloc; +#else +# define YY_DECL_VARIABLES \ +YY_DECL_NON_LSP_VARIABLES #endif + +/* If nonreentrant, generate the variables here. */ + +#if !YYPURE +YY_DECL_VARIABLES +#endif /* !YYPURE */ + int -yyparse(YYPARSE_PARAM_ARG) +yyparse (YYPARSE_PARAM_ARG) YYPARSE_PARAM_DECL { + /* If reentrant, generate the variables here. */ +#if YYPURE + YY_DECL_VARIABLES +#endif /* !YYPURE */ + register int yystate; register int yyn; + int yyresult; + /* Number of tokens to shift before error messages enabled. */ + int yyerrstatus; + /* Lookahead token as an internal (translated) token number. */ + int yychar1 = 0; + + /* 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. */ + short yyssa[YYINITDEPTH]; + short *yyss = yyssa; register short *yyssp; + + /* The semantic value stack. */ + YYSTYPE yyvsa[YYINITDEPTH]; + YYSTYPE *yyvs = yyvsa; register YYSTYPE *yyvsp; - int yyerrstatus; /* number of tokens to shift before error messages enabled */ - int yychar1 = 0; /* lookahead token as an internal (translated) token number */ - short yyssa[YYINITDEPTH]; /* the state stack */ - YYSTYPE yyvsa[YYINITDEPTH]; /* the semantic value stack */ - - short *yyss = yyssa; /* refer to the stacks thru separate pointers */ - YYSTYPE *yyvs = yyvsa; /* to allow yyoverflow to reallocate them elsewhere */ - -#ifdef YYLSP_NEEDED - YYLTYPE yylsa[YYINITDEPTH]; /* the location stack */ +#if YYLSP_NEEDED + /* The location stack. */ + YYLTYPE yylsa[YYINITDEPTH]; YYLTYPE *yyls = yylsa; YYLTYPE *yylsp; +#endif -#define YYPOPSTACK (yyvsp--, yyssp--, yylsp--) +#if YYLSP_NEEDED +# define YYPOPSTACK (yyvsp--, yyssp--, yylsp--) #else -#define YYPOPSTACK (yyvsp--, yyssp--) +# define YYPOPSTACK (yyvsp--, yyssp--) #endif - int yystacksize = YYINITDEPTH; - int yyfree_stacks = 0; + YYSIZE_T yystacksize = YYINITDEPTH; -#ifdef YYPURE - int yychar; - YYSTYPE yylval; - int yynerrs; -#ifdef YYLSP_NEEDED - YYLTYPE yylloc; -#endif + + /* The variables used to return semantic value and location from the + action routines. */ + YYSTYPE yyval; +#if YYLSP_NEEDED + YYLTYPE yyloc; #endif - YYSTYPE yyval; /* the variable used to return */ - /* semantic values from the action */ - /* routines */ - + /* When reducing, the number of symbols on the RHS of the reduced + rule. */ int yylen; -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Starting parse\n"); -#endif + YYDPRINTF ((stderr, "Starting parse\n")); yystate = 0; yyerrstatus = 0; @@ -1855,110 +2038,110 @@ yyparse(YYPARSE_PARAM_ARG) so that they stay on the same level as the state stack. The wasted elements are never initialized. */ - yyssp = yyss - 1; + yyssp = yyss; yyvsp = yyvs; -#ifdef YYLSP_NEEDED +#if YYLSP_NEEDED yylsp = yyls; #endif + goto yysetstate; -/* Push a new state, which is found in yystate . */ -/* In all cases, when you get here, the value and location stacks - have just been pushed. so pushing a state here evens the stacks. */ -yynewstate: +/*------------------------------------------------------------. +| 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++; - *++yyssp = yystate; + yysetstate: + *yyssp = yystate; if (yyssp >= yyss + yystacksize - 1) { - /* 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; - short *yyss1 = yyss; -#ifdef YYLSP_NEEDED - YYLTYPE *yyls1 = yyls; -#endif - /* Get the current used size of the three stacks, in elements. */ - int size = yyssp - yyss + 1; + YYSIZE_T yysize = yyssp - yyss + 1; #ifdef yyoverflow - /* Each stack pointer address is followed by the size of - the data in use in that stack, in bytes. */ -#ifdef YYLSP_NEEDED - /* This used to be a conditional around just the two extra args, - but that might be undefined if yyoverflow is a macro. */ - yyoverflow("parser stack overflow", - &yyss1, size * sizeof (*yyssp), - &yyvs1, size * sizeof (*yyvsp), - &yyls1, size * sizeof (*yylsp), - &yystacksize); -#else - yyoverflow("parser stack overflow", - &yyss1, size * sizeof (*yyssp), - &yyvs1, size * sizeof (*yyvsp), - &yystacksize); -#endif + { + /* 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; + short *yyss1 = yyss; - yyss = yyss1; yyvs = yyvs1; -#ifdef YYLSP_NEEDED - yyls = yyls1; -#endif + /* Each stack pointer address is followed by the size of the + data in use in that stack, in bytes. */ +# if YYLSP_NEEDED + YYLTYPE *yyls1 = yyls; + /* This used to be a conditional around just the two extra args, + but that might be undefined if yyoverflow is a macro. */ + yyoverflow ("parser stack overflow", + &yyss1, yysize * sizeof (*yyssp), + &yyvs1, yysize * sizeof (*yyvsp), + &yyls1, yysize * sizeof (*yylsp), + &yystacksize); + yyls = yyls1; +# else + yyoverflow ("parser stack overflow", + &yyss1, yysize * sizeof (*yyssp), + &yyvs1, yysize * sizeof (*yyvsp), + &yystacksize); +# endif + yyss = yyss1; + yyvs = yyvs1; + } #else /* no yyoverflow */ +# ifndef YYSTACK_RELOCATE + goto yyoverflowlab; +# else /* Extend the stack our own way. */ if (yystacksize >= YYMAXDEPTH) - { - yyerror("parser stack overflow"); - if (yyfree_stacks) - { - free (yyss); - free (yyvs); -#ifdef YYLSP_NEEDED - free (yyls); -#endif - } - return 2; - } + goto yyoverflowlab; yystacksize *= 2; if (yystacksize > YYMAXDEPTH) yystacksize = YYMAXDEPTH; -#ifndef YYSTACK_USE_ALLOCA - yyfree_stacks = 1; -#endif - yyss = (short *) YYSTACK_ALLOC (yystacksize * sizeof (*yyssp)); - __yy_memcpy ((char *)yyss, (char *)yyss1, - size * (unsigned int) sizeof (*yyssp)); - yyvs = (YYSTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yyvsp)); - __yy_memcpy ((char *)yyvs, (char *)yyvs1, - size * (unsigned int) sizeof (*yyvsp)); -#ifdef YYLSP_NEEDED - yyls = (YYLTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yylsp)); - __yy_memcpy ((char *)yyls, (char *)yyls1, - size * (unsigned int) sizeof (*yylsp)); -#endif + + { + short *yyss1 = yyss; + union yyalloc *yyptr = + (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); + if (! yyptr) + goto yyoverflowlab; + YYSTACK_RELOCATE (yyss); + YYSTACK_RELOCATE (yyvs); +# if YYLSP_NEEDED + YYSTACK_RELOCATE (yyls); +# endif +# undef YYSTACK_RELOCATE + if (yyss1 != yyssa) + YYSTACK_FREE (yyss1); + } +# endif #endif /* no yyoverflow */ - yyssp = yyss + size - 1; - yyvsp = yyvs + size - 1; -#ifdef YYLSP_NEEDED - yylsp = yyls + size - 1; + yyssp = yyss + yysize - 1; + yyvsp = yyvs + yysize - 1; +#if YYLSP_NEEDED + yylsp = yyls + yysize - 1; #endif -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Stack size increased to %d\n", yystacksize); -#endif + YYDPRINTF ((stderr, "Stack size increased to %lu\n", + (unsigned long int) yystacksize)); if (yyssp >= yyss + yystacksize - 1) YYABORT; } -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Entering state %d\n", yystate); -#endif + YYDPRINTF ((stderr, "Entering state %d\n", yystate)); goto yybackup; - yybackup: + + +/*-----------. +| yybackup. | +`-----------*/ +yybackup: /* Do appropriate processing given the current state. */ /* Read a lookahead token if we need one and don't already have one. */ @@ -1977,10 +2160,7 @@ yynewstate: if (yychar == YYEMPTY) { -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Reading a token: "); -#endif + YYDPRINTF ((stderr, "Reading a token: ")); yychar = YYLEX; } @@ -1991,25 +2171,25 @@ yynewstate: yychar1 = 0; yychar = YYEOF; /* Don't call YYLEX any more */ -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Now at end of input.\n"); -#endif + YYDPRINTF ((stderr, "Now at end of input.\n")); } else { - yychar1 = YYTRANSLATE(yychar); + yychar1 = YYTRANSLATE (yychar); -#if YYDEBUG != 0 +#if YYDEBUG + /* We have to keep this `#if YYDEBUG', since we use variables + which are defined only if `YYDEBUG' is set. */ if (yydebug) { - fprintf (stderr, "Next token is %d (%s", yychar, yytname[yychar1]); - /* Give the individual parser a way to print the precise meaning - of a token, for further debugging info. */ -#ifdef YYPRINT + YYFPRINTF (stderr, "Next token is %d (%s", + yychar, yytname[yychar1]); + /* Give the individual parser a way to print the precise + meaning of a token, for further debugging info. */ +# ifdef YYPRINT YYPRINT (stderr, yychar, yylval); -#endif - fprintf (stderr, ")\n"); +# endif + YYFPRINTF (stderr, ")\n"); } #endif } @@ -2041,55 +2221,77 @@ yynewstate: YYACCEPT; /* Shift the lookahead token. */ - -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Shifting token %d (%s), ", yychar, yytname[yychar1]); -#endif + YYDPRINTF ((stderr, "Shifting token %d (%s), ", + yychar, yytname[yychar1])); /* Discard the token being shifted unless it is eof. */ if (yychar != YYEOF) yychar = YYEMPTY; *++yyvsp = yylval; -#ifdef YYLSP_NEEDED +#if YYLSP_NEEDED *++yylsp = yylloc; #endif - /* count tokens shifted since error; after three, turn off error status. */ - if (yyerrstatus) yyerrstatus--; + /* Count tokens shifted since error; after three, turn off error + status. */ + if (yyerrstatus) + yyerrstatus--; yystate = yyn; goto yynewstate; -/* Do the default action for the current state. */ -yydefault: +/*-----------------------------------------------------------. +| yydefault -- do the default action for the current state. | +`-----------------------------------------------------------*/ +yydefault: yyn = yydefact[yystate]; if (yyn == 0) goto yyerrlab; + goto yyreduce; -/* Do a reduction. yyn is the number of a rule to reduce with. */ + +/*-----------------------------. +| yyreduce -- Do a reduction. | +`-----------------------------*/ yyreduce: + /* yyn is the number of a rule to reduce with. */ yylen = yyr2[yyn]; - if (yylen > 0) - yyval = yyvsp[1-yylen]; /* implement default value of the action */ -#if YYDEBUG != 0 - if (yydebug) - { - int i; + /* If YYLEN is nonzero, implement the default value of the action: + `$$ = $1'. - fprintf (stderr, "Reducing via rule %d (line %d), ", - yyn, yyrline[yyn]); + Otherwise, the following line sets YYVAL to the semantic value of + the lookahead token. 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]; - /* Print the symbols being reduced, and their result. */ - for (i = yyprhs[yyn]; yyrhs[i] > 0; i++) - fprintf (stderr, "%s ", yytname[yyrhs[i]]); - fprintf (stderr, " -> %s\n", yytname[yyr1[yyn]]); - } +#if YYLSP_NEEDED + /* Similarly for the default location. Let the user run additional + commands if for instance locations are ranges. */ + yyloc = yylsp[1-yylen]; + YYLLOC_DEFAULT (yyloc, (yylsp - yylen), yylen); #endif +#if YYDEBUG + /* We have to keep this `#if YYDEBUG', since we use variables which + are defined only if `YYDEBUG' is set. */ + if (yydebug) + { + int yyi; + + YYFPRINTF (stderr, "Reducing via rule %d (line %d), ", + yyn, yyrline[yyn]); + + /* Print the symbols being reduced, and their result. */ + for (yyi = yyprhs[yyn]; yyrhs[yyi] > 0; yyi++) + YYFPRINTF (stderr, "%s ", yytname[yyrhs[yyi]]); + YYFPRINTF (stderr, " -> %s\n", yytname[yyr1[yyn]]); + } +#endif switch (yyn) { @@ -2097,33 +2299,33 @@ case 2: #line 377 "cppBison.yxx" { current_expr = yyvsp[0].u.expr; -; - break;} +} + break; case 3: #line 381 "cppBison.yxx" { current_type = yyvsp[0].u.type; -; - break;} +} + break; case 9: #line 399 "cppBison.yxx" { delete yyvsp[-1].u.expr; -; - break;} +} + break; case 10: #line 411 "cppBison.yxx" { push_storage_class((current_storage_class & ~CPPInstance::SC_c_binding) | (yyvsp[-1].u.integer & CPPInstance::SC_c_binding)); -; - break;} +} + break; case 11: #line 416 "cppBison.yxx" { pop_storage_class(); -; - break;} +} + break; case 19: #line 430 "cppBison.yxx" { @@ -2137,8 +2339,8 @@ case 19: publish_loc = yylsp[0]; publish_nest_level++; current_scope->set_current_vis(V_published); -; - break;} +} + break; case 20: #line 443 "cppBison.yxx" { @@ -2148,59 +2350,59 @@ case 20: current_scope->set_current_vis(publish_previous); } publish_nest_level = 0; -; - break;} +} + break; case 21: #line 452 "cppBison.yxx" { current_scope->set_current_vis(V_published); -; - break;} +} + break; case 22: #line 456 "cppBison.yxx" { current_scope->set_current_vis(V_public); -; - break;} +} + break; case 23: #line 460 "cppBison.yxx" { current_scope->set_current_vis(V_protected); -; - break;} +} + break; case 24: #line 464 "cppBison.yxx" { current_scope->set_current_vis(V_private); -; - break;} +} + break; case 25: #line 471 "cppBison.yxx" { CPPScope *new_scope = new CPPScope(current_scope, CPPNameComponent("temp"), V_public); push_scope(new_scope); -; - break;} +} + break; case 26: #line 477 "cppBison.yxx" { delete current_scope; pop_scope(); -; - break;} +} + break; case 27: #line 486 "cppBison.yxx" { yyval.u.integer = 0; -; - break;} +} + break; case 28: #line 490 "cppBison.yxx" { yyval.u.integer = yyvsp[-1].u.integer | (int)CPPInstance::SC_extern; -; - break;} +} + break; case 29: #line 494 "cppBison.yxx" { @@ -2212,56 +2414,56 @@ case 29: } else { yywarning("Ignoring unknown linkage type \"" + yyvsp[0].str + "\"", yylsp[0]); } -; - break;} +} + break; case 30: #line 505 "cppBison.yxx" { yyval.u.integer = yyvsp[-1].u.integer | (int)CPPInstance::SC_static; -; - break;} +} + break; case 31: #line 509 "cppBison.yxx" { yyval.u.integer = yyvsp[-1].u.integer | (int)CPPInstance::SC_inline; -; - break;} +} + break; case 32: #line 513 "cppBison.yxx" { yyval.u.integer = yyvsp[-1].u.integer | (int)CPPInstance::SC_virtual; -; - break;} +} + break; case 33: #line 517 "cppBison.yxx" { yyval.u.integer = yyvsp[-1].u.integer | (int)CPPInstance::SC_explicit; -; - break;} +} + break; case 34: #line 521 "cppBison.yxx" { yyval.u.integer = yyvsp[-1].u.integer | (int)CPPInstance::SC_volatile; -; - break;} +} + break; case 35: #line 525 "cppBison.yxx" { yyval.u.integer = yyvsp[-1].u.integer | (int)CPPInstance::SC_mutable; -; - break;} +} + break; case 36: #line 529 "cppBison.yxx" { yyval.u.integer = yyvsp[-1].u.integer | (int)CPPInstance::SC_register; -; - break;} +} + break; case 37: #line 536 "cppBison.yxx" { /* multiple_var_declaration adds itself to the scope. */ -; - break;} +} + break; case 38: #line 540 "cppBison.yxx" { @@ -2271,8 +2473,8 @@ case 38: // parsing. current_scope->add_declaration(yyvsp[-1].u.decl, global_scope, current_lexer, yylsp[-1]); -; - break;} +} + break; case 39: #line 549 "cppBison.yxx" { @@ -2281,8 +2483,8 @@ case 39: current_scope->add_declaration(yyvsp[-1].u.instance, global_scope, current_lexer, yylsp[-1]); yyvsp[-1].u.instance->set_initializer(yyvsp[0].u.expr); } -; - break;} +} + break; case 40: #line 560 "cppBison.yxx" { @@ -2294,14 +2496,14 @@ case 40: current_type = yyvsp[0].u.decl->as_type(); } push_storage_class(yyvsp[-1].u.integer); -; - break;} +} + break; case 41: #line 571 "cppBison.yxx" { pop_storage_class(); -; - break;} +} + break; case 42: #line 575 "cppBison.yxx" { @@ -2309,14 +2511,14 @@ case 42: // multiple_var_declarations. current_type = yyvsp[0].u.type; push_storage_class(yyvsp[-2].u.integer); -; - break;} +} + break; case 43: #line 582 "cppBison.yxx" { pop_storage_class(); -; - break;} +} + break; case 44: #line 593 "cppBison.yxx" { @@ -2325,8 +2527,8 @@ case 44: yylsp[-1].file); inst->set_initializer(yyvsp[0].u.expr); current_scope->add_declaration(inst, global_scope, current_lexer, yylsp[-1]); -; - break;} +} + break; case 45: #line 601 "cppBison.yxx" { @@ -2335,8 +2537,8 @@ case 45: yylsp[-3].file); inst->set_initializer(yyvsp[-2].u.expr); current_scope->add_declaration(inst, global_scope, current_lexer, yylsp[-3]); -; - break;} +} + break; case 46: #line 612 "cppBison.yxx" { @@ -2346,8 +2548,8 @@ case 46: yylsp[-1].file); inst->set_initializer(yyvsp[0].u.expr); current_scope->add_declaration(inst, global_scope, current_lexer, yylsp[-1]); -; - break;} +} + break; case 47: #line 621 "cppBison.yxx" { @@ -2357,8 +2559,8 @@ case 47: yylsp[-3].file); inst->set_initializer(yyvsp[-2].u.expr); current_scope->add_declaration(inst, global_scope, current_lexer, yylsp[-3]); -; - break;} +} + break; case 48: #line 634 "cppBison.yxx" { @@ -2370,14 +2572,14 @@ case 48: current_type = yyvsp[0].u.decl->as_type(); } push_storage_class(yyvsp[-1].u.integer); -; - break;} +} + break; case 49: #line 645 "cppBison.yxx" { pop_storage_class(); -; - break;} +} + break; case 50: #line 649 "cppBison.yxx" { @@ -2385,14 +2587,14 @@ case 50: // multiple_var_declarations. current_type = yyvsp[0].u.type; push_storage_class(yyvsp[-2].u.integer); -; - break;} +} + break; case 51: #line 656 "cppBison.yxx" { pop_storage_class(); -; - break;} +} + break; case 52: #line 660 "cppBison.yxx" { @@ -2404,8 +2606,8 @@ case 52: current_scope->add_declaration(new CPPTypedef(inst, current_scope == global_scope), global_scope, current_lexer, yylsp[-1]); } } -; - break;} +} + break; case 53: #line 674 "cppBison.yxx" { @@ -2414,8 +2616,8 @@ case 53: yylsp[-1].file); inst->set_initializer(yyvsp[0].u.expr); current_scope->add_declaration(new CPPTypedef(inst, current_scope == global_scope), global_scope, current_lexer, yylsp[-1]); -; - break;} +} + break; case 54: #line 682 "cppBison.yxx" { @@ -2424,8 +2626,8 @@ case 54: yylsp[-3].file); inst->set_initializer(yyvsp[-2].u.expr); current_scope->add_declaration(new CPPTypedef(inst, current_scope == global_scope), global_scope, current_lexer, yylsp[-3]); -; - break;} +} + break; case 55: #line 693 "cppBison.yxx" { @@ -2435,8 +2637,8 @@ case 55: yylsp[-1].file); inst->set_initializer(yyvsp[0].u.expr); current_scope->add_declaration(new CPPTypedef(inst, current_scope == global_scope), global_scope, current_lexer, yylsp[-1]); -; - break;} +} + break; case 56: #line 702 "cppBison.yxx" { @@ -2446,14 +2648,14 @@ case 56: yylsp[-3].file); inst->set_initializer(yyvsp[-2].u.expr); current_scope->add_declaration(new CPPTypedef(inst, current_scope == global_scope), global_scope, current_lexer, yylsp[-3]); -; - break;} +} + break; case 57: #line 716 "cppBison.yxx" { push_scope(yyvsp[-1].u.identifier->get_scope(current_scope, global_scope)); -; - break;} +} + break; case 58: #line 720 "cppBison.yxx" { @@ -2472,14 +2674,14 @@ case 58: ii->add_func_modifier(yyvsp[-2].u.param_list, yyvsp[0].u.integer); yyval.u.instance = new CPPInstance(type, ii, 0, yylsp[-5].file); -; - break;} +} + break; case 59: #line 738 "cppBison.yxx" { push_scope(yyvsp[-1].u.identifier->get_scope(current_scope, global_scope)); -; - break;} +} + break; case 60: #line 742 "cppBison.yxx" { @@ -2498,14 +2700,14 @@ case 60: ii->add_func_modifier(yyvsp[-2].u.param_list, yyvsp[0].u.integer); yyval.u.instance = new CPPInstance(type, ii, 0, yylsp[-5].file); -; - break;} +} + break; case 61: #line 762 "cppBison.yxx" { push_scope(yyvsp[-1].u.identifier->get_scope(current_scope, global_scope)); -; - break;} +} + break; case 62: #line 766 "cppBison.yxx" { @@ -2525,14 +2727,14 @@ case 62: yyval.u.instance = new CPPInstance(type, ii, 0, yylsp[-5].file); } -; - break;} +} + break; case 63: #line 792 "cppBison.yxx" { push_scope(yyvsp[-2].u.inst_ident->get_scope(current_scope, global_scope)); -; - break;} +} + break; case 64: #line 796 "cppBison.yxx" { @@ -2544,14 +2746,14 @@ case 64: ii->add_modifier(IIT_pointer); ii->add_func_modifier(yyvsp[-2].u.param_list, yyvsp[0].u.integer); yyval.u.instance = new CPPInstance(type, ii, 0, yylsp[-9].file); -; - break;} +} + break; case 65: #line 807 "cppBison.yxx" { push_scope(yyvsp[-2].u.inst_ident->get_scope(current_scope, global_scope)); -; - break;} +} + break; case 66: #line 811 "cppBison.yxx" { @@ -2563,16 +2765,16 @@ case 66: ii->add_scoped_pointer_modifier(yyvsp[-8].u.identifier); ii->add_func_modifier(yyvsp[-2].u.param_list, yyvsp[0].u.integer); yyval.u.instance = new CPPInstance(type, ii, 0, yylsp[-10].file); -; - break;} +} + break; case 67: #line 824 "cppBison.yxx" { if (yyvsp[-3].u.identifier != NULL) { push_scope(yyvsp[-3].u.identifier->get_scope(current_scope, global_scope)); } -; - break;} +} + break; case 68: #line 830 "cppBison.yxx" { @@ -2598,16 +2800,16 @@ case 68: } yyval.u.instance = CPPInstance::make_typecast_function (new CPPInstance(yyvsp[-6].u.type, yyvsp[-5].u.inst_ident, 0, yylsp[-5].file), ident, yyvsp[-2].u.param_list, yyvsp[0].u.integer); -; - break;} +} + break; case 69: #line 855 "cppBison.yxx" { if (yyvsp[-4].u.identifier != NULL) { push_scope(yyvsp[-4].u.identifier->get_scope(current_scope, global_scope)); } -; - break;} +} + break; case 70: #line 861 "cppBison.yxx" { @@ -2624,8 +2826,8 @@ case 70: yyvsp[-5].u.inst_ident->add_modifier(IIT_const); yyval.u.instance = CPPInstance::make_typecast_function (new CPPInstance(yyvsp[-6].u.type, yyvsp[-5].u.inst_ident, 0, yylsp[-5].file), ident, yyvsp[-2].u.param_list, yyvsp[0].u.integer); -; - break;} +} + break; case 71: #line 881 "cppBison.yxx" { @@ -2636,314 +2838,314 @@ case 71: } else { yyval.u.instance = (CPPInstance *)NULL; } -; - break;} +} + break; case 72: #line 894 "cppBison.yxx" { yyval.u.integer = 0; -; - break;} +} + break; case 73: #line 898 "cppBison.yxx" { yyval.u.integer = (int)CPPFunctionType::F_const_method; -; - break;} +} + break; case 74: #line 902 "cppBison.yxx" { yyval.u.integer = yyvsp[-3].u.integer; -; - break;} +} + break; case 75: #line 906 "cppBison.yxx" { yyval.u.integer = yyvsp[-4].u.integer; -; - break;} +} + break; case 76: #line 913 "cppBison.yxx" { yyval.str = "!"; -; - break;} +} + break; case 77: #line 917 "cppBison.yxx" { yyval.str = "~"; -; - break;} +} + break; case 78: #line 921 "cppBison.yxx" { yyval.str = "*"; -; - break;} +} + break; case 79: #line 925 "cppBison.yxx" { yyval.str = "/"; -; - break;} +} + break; case 80: #line 929 "cppBison.yxx" { yyval.str = "%"; -; - break;} +} + break; case 81: #line 933 "cppBison.yxx" { yyval.str = "+"; -; - break;} +} + break; case 82: #line 937 "cppBison.yxx" { yyval.str = "-"; -; - break;} +} + break; case 83: #line 941 "cppBison.yxx" { yyval.str = "|"; -; - break;} +} + break; case 84: #line 945 "cppBison.yxx" { yyval.str = "&"; -; - break;} +} + break; case 85: #line 949 "cppBison.yxx" { yyval.str = "^"; -; - break;} +} + break; case 86: #line 953 "cppBison.yxx" { yyval.str = "||"; -; - break;} +} + break; case 87: #line 957 "cppBison.yxx" { yyval.str = "&&"; -; - break;} +} + break; case 88: #line 961 "cppBison.yxx" { yyval.str = "=="; -; - break;} +} + break; case 89: #line 965 "cppBison.yxx" { yyval.str = "!="; -; - break;} +} + break; case 90: #line 969 "cppBison.yxx" { yyval.str = "<="; -; - break;} +} + break; case 91: #line 973 "cppBison.yxx" { yyval.str = ">="; -; - break;} +} + break; case 92: #line 977 "cppBison.yxx" { yyval.str = "<"; -; - break;} +} + break; case 93: #line 981 "cppBison.yxx" { yyval.str = ">"; -; - break;} +} + break; case 94: #line 985 "cppBison.yxx" { yyval.str = "<<"; -; - break;} +} + break; case 95: #line 989 "cppBison.yxx" { yyval.str = ">>"; -; - break;} +} + break; case 96: #line 993 "cppBison.yxx" { yyval.str = "="; -; - break;} +} + break; case 97: #line 997 "cppBison.yxx" { yyval.str = ","; -; - break;} +} + break; case 98: #line 1001 "cppBison.yxx" { yyval.str = "++"; -; - break;} +} + break; case 99: #line 1005 "cppBison.yxx" { yyval.str = "--"; -; - break;} +} + break; case 100: #line 1009 "cppBison.yxx" { yyval.str = "*="; -; - break;} +} + break; case 101: #line 1013 "cppBison.yxx" { yyval.str = "/="; -; - break;} +} + break; case 102: #line 1017 "cppBison.yxx" { yyval.str = "%="; -; - break;} +} + break; case 103: #line 1021 "cppBison.yxx" { yyval.str = "+="; -; - break;} +} + break; case 104: #line 1025 "cppBison.yxx" { yyval.str = "-="; -; - break;} +} + break; case 105: #line 1029 "cppBison.yxx" { yyval.str = "|="; -; - break;} +} + break; case 106: #line 1033 "cppBison.yxx" { yyval.str = "&="; -; - break;} +} + break; case 107: #line 1037 "cppBison.yxx" { yyval.str = "^="; -; - break;} +} + break; case 108: #line 1041 "cppBison.yxx" { yyval.str = "<<="; -; - break;} +} + break; case 109: #line 1045 "cppBison.yxx" { yyval.str = ">>="; -; - break;} +} + break; case 110: #line 1049 "cppBison.yxx" { yyval.str = "->"; -; - break;} +} + break; case 111: #line 1053 "cppBison.yxx" { yyval.str = "[]"; -; - break;} +} + break; case 112: #line 1057 "cppBison.yxx" { yyval.str = "()"; -; - break;} +} + break; case 113: #line 1061 "cppBison.yxx" { yyval.str = "new"; -; - break;} +} + break; case 114: #line 1065 "cppBison.yxx" { yyval.str = "delete"; -; - break;} +} + break; case 117: #line 1077 "cppBison.yxx" { push_scope(new CPPTemplateScope(current_scope)); -; - break;} +} + break; case 118: #line 1081 "cppBison.yxx" { pop_scope(); -; - break;} +} + break; case 121: #line 1093 "cppBison.yxx" { CPPTemplateScope *ts = current_scope->as_template_scope(); assert(ts != NULL); ts->add_template_parameter(yyvsp[0].u.decl); -; - break;} +} + break; case 122: #line 1099 "cppBison.yxx" { CPPTemplateScope *ts = current_scope->as_template_scope(); assert(ts != NULL); ts->add_template_parameter(yyvsp[0].u.decl); -; - break;} +} + break; case 123: #line 1108 "cppBison.yxx" { yyval.u.decl = CPPType::new_type(new CPPClassTemplateParameter(yyvsp[0].u.identifier)); -; - break;} +} + break; case 124: #line 1112 "cppBison.yxx" { yyval.u.decl = CPPType::new_type(new CPPClassTemplateParameter(yyvsp[-2].u.identifier, yyvsp[0].u.type)); -; - break;} +} + break; case 125: #line 1116 "cppBison.yxx" { CPPInstance *inst = new CPPInstance(yyvsp[-2].u.type, yyvsp[-1].u.inst_ident, 0, yylsp[-1].file); inst->set_initializer(yyvsp[0].u.expr); yyval.u.decl = inst; -; - break;} +} + break; case 126: #line 1122 "cppBison.yxx" { @@ -2951,40 +3153,40 @@ case 126: CPPInstance *inst = new CPPInstance(yyvsp[-2].u.type, yyvsp[-1].u.inst_ident, 0, yylsp[-1].file); inst->set_initializer(yyvsp[0].u.expr); yyval.u.decl = inst; -; - break;} +} + break; case 127: #line 1132 "cppBison.yxx" { yyval.u.type = CPPType::new_type(yyvsp[0].u.simple_type); -; - break;} +} + break; case 128: #line 1136 "cppBison.yxx" { yywarning("Not a type: " + yyvsp[0].u.identifier->get_fully_scoped_name(), yylsp[0]); yyval.u.type = CPPType::new_type(new CPPSimpleType(CPPSimpleType::T_unknown)); -; - break;} +} + break; case 129: #line 1141 "cppBison.yxx" { yyval.u.type = yyvsp[0].u.identifier->find_type(current_scope, global_scope, false, current_lexer); assert(yyval.u.type != NULL); -; - break;} +} + break; case 130: #line 1146 "cppBison.yxx" { yyval.u.type = CPPType::new_type(new CPPTBDType(yyvsp[0].u.identifier)); -; - break;} +} + break; case 131: #line 1154 "cppBison.yxx" { yyval.u.inst_ident = new CPPInstanceIdentifier(yyvsp[0].u.identifier); -; - break;} +} + break; case 132: #line 1158 "cppBison.yxx" { @@ -2999,421 +3201,417 @@ case 132: } yyval.u.inst_ident = new CPPInstanceIdentifier(ident); -; - break;} +} + break; case 133: #line 1172 "cppBison.yxx" { yyval.u.inst_ident = yyvsp[0].u.inst_ident; yyval.u.inst_ident->add_modifier(IIT_const); -; - break;} +} + break; case 134: #line 1177 "cppBison.yxx" { yyval.u.inst_ident = yyvsp[0].u.inst_ident; yyval.u.inst_ident->add_modifier(IIT_pointer); -; - break;} +} + break; case 135: #line 1182 "cppBison.yxx" { yyval.u.inst_ident = yyvsp[0].u.inst_ident; yyval.u.inst_ident->add_modifier(IIT_reference); -; - break;} +} + break; case 136: #line 1187 "cppBison.yxx" { yyval.u.inst_ident = yyvsp[0].u.inst_ident; yyval.u.inst_ident->add_scoped_pointer_modifier(yyvsp[-2].u.identifier); -; - break;} +} + break; case 137: #line 1192 "cppBison.yxx" { yyval.u.inst_ident = yyvsp[-3].u.inst_ident; yyval.u.inst_ident->add_array_modifier(yyvsp[-1].u.expr); -; - break;} +} + break; case 138: #line 1197 "cppBison.yxx" { - yyval.u.inst_ident = yyvsp[-1].u.inst_ident; - yyval.u.inst_ident->add_modifier(IIT_paren); -; - break;} + // bitfield definition. We ignore the bitfield for now. + yyval.u.inst_ident = yyvsp[-2].u.inst_ident; +} + break; case 139: #line 1202 "cppBison.yxx" { - push_scope(yyvsp[-1].u.inst_ident->get_scope(current_scope, global_scope)); -; - break;} + yyval.u.inst_ident = yyvsp[-1].u.inst_ident; + yyval.u.inst_ident->add_modifier(IIT_paren); +} + break; case 140: -#line 1206 "cppBison.yxx" +#line 1207 "cppBison.yxx" +{ + push_scope(yyvsp[-1].u.inst_ident->get_scope(current_scope, global_scope)); +} + break; +case 141: +#line 1211 "cppBison.yxx" { pop_scope(); yyval.u.inst_ident = yyvsp[-5].u.inst_ident; yyval.u.inst_ident->add_func_modifier(yyvsp[-2].u.param_list, yyvsp[0].u.integer); -; - break;} -case 141: -#line 1216 "cppBison.yxx" -{ - yyval.u.param_list = new CPPParameterList; -; - break;} +} + break; case 142: -#line 1220 "cppBison.yxx" +#line 1221 "cppBison.yxx" { yyval.u.param_list = new CPPParameterList; - yyval.u.param_list->_includes_ellipsis = true; -; - break;} +} + break; case 143: #line 1225 "cppBison.yxx" { - yyval.u.param_list = yyvsp[0].u.param_list; -; - break;} -case 144: -#line 1229 "cppBison.yxx" -{ - yyval.u.param_list = yyvsp[-2].u.param_list; + yyval.u.param_list = new CPPParameterList; yyval.u.param_list->_includes_ellipsis = true; -; - break;} +} + break; +case 144: +#line 1230 "cppBison.yxx" +{ + yyval.u.param_list = yyvsp[0].u.param_list; +} + break; case 145: #line 1234 "cppBison.yxx" +{ + yyval.u.param_list = yyvsp[-2].u.param_list; + yyval.u.param_list->_includes_ellipsis = true; +} + break; +case 146: +#line 1239 "cppBison.yxx" { yyval.u.param_list = yyvsp[-1].u.param_list; yyval.u.param_list->_includes_ellipsis = true; -; - break;} -case 146: -#line 1242 "cppBison.yxx" -{ - yyval.u.param_list = new CPPParameterList; - yyval.u.param_list->_parameters.push_back(yyvsp[0].u.instance); -; - break;} +} + break; case 147: #line 1247 "cppBison.yxx" +{ + yyval.u.param_list = new CPPParameterList; + yyval.u.param_list->_parameters.push_back(yyvsp[0].u.instance); +} + break; +case 148: +#line 1252 "cppBison.yxx" { yyval.u.param_list = yyvsp[-2].u.param_list; yyval.u.param_list->_parameters.push_back(yyvsp[0].u.instance); -; - break;} -case 148: -#line 1255 "cppBison.yxx" -{ - yyval.u.expr = (CPPExpression *)NULL; -; - break;} +} + break; case 149: -#line 1259 "cppBison.yxx" +#line 1260 "cppBison.yxx" { - yyval.u.expr = yyvsp[0].u.expr; -; - break;} + yyval.u.expr = (CPPExpression *)NULL; +} + break; case 150: -#line 1266 "cppBison.yxx" -{ - yyval.u.expr = (CPPExpression *)NULL; -; - break;} -case 151: -#line 1270 "cppBison.yxx" +#line 1264 "cppBison.yxx" { yyval.u.expr = yyvsp[0].u.expr; -; - break;} +} + break; +case 151: +#line 1271 "cppBison.yxx" +{ + yyval.u.expr = (CPPExpression *)NULL; +} + break; case 152: -#line 1277 "cppBison.yxx" +#line 1275 "cppBison.yxx" { - yyval.u.expr = (CPPExpression *)NULL; -; - break;} + yyval.u.expr = yyvsp[0].u.expr; +} + break; case 153: -#line 1281 "cppBison.yxx" +#line 1282 "cppBison.yxx" { yyval.u.expr = (CPPExpression *)NULL; -; - break;} +} + break; case 154: -#line 1285 "cppBison.yxx" +#line 1286 "cppBison.yxx" { yyval.u.expr = (CPPExpression *)NULL; -; - break;} +} + break; case 155: -#line 1289 "cppBison.yxx" +#line 1290 "cppBison.yxx" +{ + yyval.u.expr = (CPPExpression *)NULL; +} + break; +case 156: +#line 1294 "cppBison.yxx" { yyval.u.expr = yyvsp[-1].u.expr; -; - break;} -case 156: -#line 1293 "cppBison.yxx" +} + break; +case 157: +#line 1298 "cppBison.yxx" { yyval.u.expr = (CPPExpression *)NULL; -; - break;} -case 160: -#line 1306 "cppBison.yxx" +} + break; +case 161: +#line 1311 "cppBison.yxx" { -; - break;} -case 164: -#line 1315 "cppBison.yxx" +} + break; +case 165: +#line 1320 "cppBison.yxx" { yyval.u.instance = new CPPInstance(yyvsp[-2].u.type, yyvsp[-1].u.inst_ident, 0, yylsp[-1].file); yyval.u.instance->set_initializer(yyvsp[0].u.expr); -; - break;} -case 165: -#line 1320 "cppBison.yxx" +} + break; +case 166: +#line 1325 "cppBison.yxx" { yywarning("Not a type: " + yyvsp[-2].u.identifier->get_fully_scoped_name(), yylsp[-2]); CPPType *type = CPPType::new_type(new CPPSimpleType(CPPSimpleType::T_unknown)); yyval.u.instance = new CPPInstance(type, yyvsp[-1].u.inst_ident, 0, yylsp[-1].file); yyval.u.instance->set_initializer(yyvsp[0].u.expr); -; - break;} -case 166: -#line 1328 "cppBison.yxx" +} + break; +case 167: +#line 1333 "cppBison.yxx" { yyvsp[-1].u.inst_ident->add_modifier(IIT_const); yyval.u.instance = new CPPInstance(yyvsp[-2].u.type, yyvsp[-1].u.inst_ident, 0, yylsp[-1].file); yyval.u.instance->set_initializer(yyvsp[0].u.expr); -; - break;} -case 167: -#line 1337 "cppBison.yxx" +} + break; +case 168: +#line 1342 "cppBison.yxx" { yyval.u.inst_ident = new CPPInstanceIdentifier((CPPIdentifier *)NULL); -; - break;} -case 168: -#line 1341 "cppBison.yxx" -{ - yyval.u.inst_ident = new CPPInstanceIdentifier(yyvsp[0].u.identifier); -; - break;} +} + break; case 169: -#line 1345 "cppBison.yxx" +#line 1346 "cppBison.yxx" { yyval.u.inst_ident = new CPPInstanceIdentifier(yyvsp[0].u.identifier); -; - break;} +} + break; case 170: -#line 1349 "cppBison.yxx" +#line 1350 "cppBison.yxx" { - yyval.u.inst_ident = yyvsp[0].u.inst_ident; - yyval.u.inst_ident->add_modifier(IIT_const); -; - break;} + yyval.u.inst_ident = new CPPInstanceIdentifier(yyvsp[0].u.identifier); +} + break; case 171: #line 1354 "cppBison.yxx" { yyval.u.inst_ident = yyvsp[0].u.inst_ident; - yyval.u.inst_ident->add_modifier(IIT_pointer); -; - break;} + yyval.u.inst_ident->add_modifier(IIT_const); +} + break; case 172: #line 1359 "cppBison.yxx" { yyval.u.inst_ident = yyvsp[0].u.inst_ident; - yyval.u.inst_ident->add_modifier(IIT_reference); -; - break;} + yyval.u.inst_ident->add_modifier(IIT_pointer); +} + break; case 173: #line 1364 "cppBison.yxx" { yyval.u.inst_ident = yyvsp[0].u.inst_ident; - yyval.u.inst_ident->add_scoped_pointer_modifier(yyvsp[-2].u.identifier); -; - break;} + yyval.u.inst_ident->add_modifier(IIT_reference); +} + break; case 174: #line 1369 "cppBison.yxx" +{ + yyval.u.inst_ident = yyvsp[0].u.inst_ident; + yyval.u.inst_ident->add_scoped_pointer_modifier(yyvsp[-2].u.identifier); +} + break; +case 175: +#line 1374 "cppBison.yxx" { yyval.u.inst_ident = yyvsp[-3].u.inst_ident; yyval.u.inst_ident->add_array_modifier(yyvsp[-1].u.expr); -; - break;} -case 175: -#line 1377 "cppBison.yxx" +} + break; +case 176: +#line 1382 "cppBison.yxx" { yyval.u.inst_ident = new CPPInstanceIdentifier((CPPIdentifier *)NULL); -; - break;} -case 176: -#line 1381 "cppBison.yxx" -{ - yyval.u.inst_ident = new CPPInstanceIdentifier(yyvsp[0].u.identifier); -; - break;} +} + break; case 177: -#line 1385 "cppBison.yxx" +#line 1386 "cppBison.yxx" { yyval.u.inst_ident = new CPPInstanceIdentifier(yyvsp[0].u.identifier); -; - break;} +} + break; case 178: -#line 1389 "cppBison.yxx" +#line 1390 "cppBison.yxx" { - yyval.u.inst_ident = yyvsp[0].u.inst_ident; - yyval.u.inst_ident->add_modifier(IIT_const); -; - break;} + yyval.u.inst_ident = new CPPInstanceIdentifier(yyvsp[0].u.identifier); +} + break; case 179: #line 1394 "cppBison.yxx" { yyval.u.inst_ident = yyvsp[0].u.inst_ident; - yyval.u.inst_ident->add_modifier(IIT_pointer); -; - break;} + yyval.u.inst_ident->add_modifier(IIT_const); +} + break; case 180: #line 1399 "cppBison.yxx" { yyval.u.inst_ident = yyvsp[0].u.inst_ident; - yyval.u.inst_ident->add_modifier(IIT_reference); -; - break;} + yyval.u.inst_ident->add_modifier(IIT_pointer); +} + break; case 181: #line 1404 "cppBison.yxx" { yyval.u.inst_ident = yyvsp[0].u.inst_ident; - yyval.u.inst_ident->add_scoped_pointer_modifier(yyvsp[-2].u.identifier); -; - break;} + yyval.u.inst_ident->add_modifier(IIT_reference); +} + break; case 182: #line 1409 "cppBison.yxx" { - yyval.u.inst_ident = yyvsp[-3].u.inst_ident; - yyval.u.inst_ident->add_array_modifier(yyvsp[-1].u.expr); -; - break;} + yyval.u.inst_ident = yyvsp[0].u.inst_ident; + yyval.u.inst_ident->add_scoped_pointer_modifier(yyvsp[-2].u.identifier); +} + break; case 183: #line 1414 "cppBison.yxx" +{ + yyval.u.inst_ident = yyvsp[-3].u.inst_ident; + yyval.u.inst_ident->add_array_modifier(yyvsp[-1].u.expr); +} + break; +case 184: +#line 1419 "cppBison.yxx" { yyval.u.inst_ident = yyvsp[-5].u.inst_ident; yyval.u.inst_ident->add_modifier(IIT_paren); yyval.u.inst_ident->add_func_modifier(yyvsp[-2].u.param_list, yyvsp[0].u.integer); -; - break;} -case 184: -#line 1423 "cppBison.yxx" +} + break; +case 185: +#line 1425 "cppBison.yxx" +{ + yyval.u.inst_ident = yyvsp[-1].u.inst_ident; + yyval.u.inst_ident->add_modifier(IIT_paren); +} + break; +case 186: +#line 1433 "cppBison.yxx" { yyval.u.inst_ident = new CPPInstanceIdentifier((CPPIdentifier *)NULL); -; - break;} -case 185: -#line 1427 "cppBison.yxx" -{ - yyval.u.inst_ident = yyvsp[0].u.inst_ident; - yyval.u.inst_ident->add_modifier(IIT_const); -; - break;} -case 186: -#line 1432 "cppBison.yxx" -{ - yyval.u.inst_ident = yyvsp[0].u.inst_ident; - yyval.u.inst_ident->add_modifier(IIT_pointer); -; - break;} +} + break; case 187: #line 1437 "cppBison.yxx" { yyval.u.inst_ident = yyvsp[0].u.inst_ident; - yyval.u.inst_ident->add_modifier(IIT_reference); -; - break;} + yyval.u.inst_ident->add_modifier(IIT_const); +} + break; case 188: #line 1442 "cppBison.yxx" { yyval.u.inst_ident = yyvsp[0].u.inst_ident; - yyval.u.inst_ident->add_scoped_pointer_modifier(yyvsp[-2].u.identifier); -; - break;} + yyval.u.inst_ident->add_modifier(IIT_pointer); +} + break; case 189: #line 1447 "cppBison.yxx" { - yyval.u.inst_ident = yyvsp[-3].u.inst_ident; - yyval.u.inst_ident->add_array_modifier(yyvsp[-1].u.expr); -; - break;} + yyval.u.inst_ident = yyvsp[0].u.inst_ident; + yyval.u.inst_ident->add_modifier(IIT_reference); +} + break; case 190: #line 1452 "cppBison.yxx" +{ + yyval.u.inst_ident = yyvsp[0].u.inst_ident; + yyval.u.inst_ident->add_scoped_pointer_modifier(yyvsp[-2].u.identifier); +} + break; +case 191: +#line 1457 "cppBison.yxx" +{ + yyval.u.inst_ident = yyvsp[-3].u.inst_ident; + yyval.u.inst_ident->add_array_modifier(yyvsp[-1].u.expr); +} + break; +case 192: +#line 1462 "cppBison.yxx" { yyval.u.inst_ident = yyvsp[-5].u.inst_ident; yyval.u.inst_ident->add_modifier(IIT_paren); yyval.u.inst_ident->add_func_modifier(yyvsp[-2].u.param_list, yyvsp[0].u.integer); -; - break;} -case 191: -#line 1461 "cppBison.yxx" +} + break; +case 193: +#line 1471 "cppBison.yxx" { yyval.u.type = CPPType::new_type(yyvsp[0].u.simple_type); -; - break;} -case 192: -#line 1465 "cppBison.yxx" +} + break; +case 194: +#line 1475 "cppBison.yxx" { yyval.u.type = yyvsp[0].u.identifier->find_type(current_scope, global_scope, false, current_lexer); assert(yyval.u.type != NULL); -; - break;} -case 193: -#line 1470 "cppBison.yxx" +} + break; +case 195: +#line 1480 "cppBison.yxx" { yyval.u.type = CPPType::new_type(new CPPTBDType(yyvsp[0].u.identifier)); -; - break;} -case 194: -#line 1474 "cppBison.yxx" -{ - yyval.u.type = CPPType::new_type(yyvsp[0].u.struct_type); -; - break;} -case 195: -#line 1478 "cppBison.yxx" -{ - yyval.u.type = CPPType::new_type(yyvsp[0].u.struct_type); -; - break;} +} + break; case 196: -#line 1482 "cppBison.yxx" +#line 1484 "cppBison.yxx" { - yyval.u.type = CPPType::new_type(yyvsp[0].u.enum_type); -; - break;} + yyval.u.type = CPPType::new_type(yyvsp[0].u.struct_type); +} + break; case 197: -#line 1486 "cppBison.yxx" +#line 1488 "cppBison.yxx" +{ + yyval.u.type = CPPType::new_type(yyvsp[0].u.struct_type); +} + break; +case 198: +#line 1492 "cppBison.yxx" { yyval.u.type = CPPType::new_type(yyvsp[0].u.enum_type); -; - break;} -case 198: -#line 1490 "cppBison.yxx" -{ - CPPType *type = yyvsp[0].u.identifier->find_type(current_scope, global_scope, false, current_lexer); - if (type != NULL) { - yyval.u.type = type; - } else { - CPPExtensionType *et = - CPPType::new_type(new CPPExtensionType(yyvsp[-1].u.extension_enum, yyvsp[0].u.identifier, current_scope, yylsp[-1].file)) - ->as_extension_type(); - CPPScope *scope = yyvsp[0].u.identifier->get_scope(current_scope, global_scope); - if (scope != NULL) { - scope->define_extension_type(et); - } - yyval.u.type = et; - } -; - break;} +} + break; case 199: -#line 1506 "cppBison.yxx" +#line 1496 "cppBison.yxx" +{ + yyval.u.type = CPPType::new_type(yyvsp[0].u.enum_type); +} + break; +case 200: +#line 1500 "cppBison.yxx" { CPPType *type = yyvsp[0].u.identifier->find_type(current_scope, global_scope, false, current_lexer); if (type != NULL) { @@ -3428,161 +3626,179 @@ case 199: } yyval.u.type = et; } -; - break;} -case 200: -#line 1525 "cppBison.yxx" +} + break; +case 201: +#line 1516 "cppBison.yxx" +{ + CPPType *type = yyvsp[0].u.identifier->find_type(current_scope, global_scope, false, current_lexer); + if (type != NULL) { + yyval.u.type = type; + } else { + CPPExtensionType *et = + CPPType::new_type(new CPPExtensionType(yyvsp[-1].u.extension_enum, yyvsp[0].u.identifier, current_scope, yylsp[-1].file)) + ->as_extension_type(); + CPPScope *scope = yyvsp[0].u.identifier->get_scope(current_scope, global_scope); + if (scope != NULL) { + scope->define_extension_type(et); + } + yyval.u.type = et; + } +} + break; +case 202: +#line 1535 "cppBison.yxx" { yyval.u.decl = CPPType::new_type(yyvsp[0].u.simple_type); -; - break;} -case 201: -#line 1529 "cppBison.yxx" +} + break; +case 203: +#line 1539 "cppBison.yxx" { yyval.u.decl = yyvsp[0].u.identifier->find_type(current_scope, global_scope, false, current_lexer); assert(yyval.u.decl != NULL); -; - break;} -case 202: -#line 1534 "cppBison.yxx" +} + break; +case 204: +#line 1544 "cppBison.yxx" { yyval.u.decl = CPPType::new_type(new CPPTBDType(yyvsp[0].u.identifier)); -; - break;} -case 203: -#line 1538 "cppBison.yxx" +} + break; +case 205: +#line 1548 "cppBison.yxx" { yyval.u.decl = CPPType::new_type(yyvsp[0].u.struct_type); -; - break;} -case 204: -#line 1542 "cppBison.yxx" +} + break; +case 206: +#line 1552 "cppBison.yxx" { yyval.u.decl = new CPPTypeDeclaration(CPPType::new_type(yyvsp[0].u.struct_type)); -; - break;} -case 205: -#line 1546 "cppBison.yxx" +} + break; +case 207: +#line 1556 "cppBison.yxx" { yyval.u.decl = CPPType::new_type(yyvsp[0].u.enum_type); -; - break;} -case 206: -#line 1550 "cppBison.yxx" +} + break; +case 208: +#line 1560 "cppBison.yxx" { yyval.u.decl = new CPPTypeDeclaration(CPPType::new_type(yyvsp[0].u.enum_type)); -; - break;} -case 207: -#line 1554 "cppBison.yxx" -{ - CPPType *type = yyvsp[0].u.identifier->find_type(current_scope, global_scope, false, current_lexer); - if (type != NULL) { - yyval.u.decl = type; - } else { - CPPExtensionType *et = - CPPType::new_type(new CPPExtensionType(yyvsp[-1].u.extension_enum, yyvsp[0].u.identifier, current_scope, yylsp[-1].file)) - ->as_extension_type(); - CPPScope *scope = yyvsp[0].u.identifier->get_scope(current_scope, global_scope); - if (scope != NULL) { - scope->define_extension_type(et); - } - yyval.u.decl = et; - } -; - break;} -case 208: -#line 1570 "cppBison.yxx" -{ - CPPType *type = yyvsp[0].u.identifier->find_type(current_scope, global_scope, false, current_lexer); - if (type != NULL) { - yyval.u.decl = type; - } else { - CPPExtensionType *et = - CPPType::new_type(new CPPExtensionType(yyvsp[-1].u.extension_enum, yyvsp[0].u.identifier, current_scope, yylsp[-1].file)) - ->as_extension_type(); - CPPScope *scope = yyvsp[0].u.identifier->get_scope(current_scope, global_scope); - if (scope != NULL) { - scope->define_extension_type(et); - } - yyval.u.decl = et; - } -; - break;} +} + break; case 209: -#line 1589 "cppBison.yxx" +#line 1564 "cppBison.yxx" +{ + CPPType *type = yyvsp[0].u.identifier->find_type(current_scope, global_scope, false, current_lexer); + if (type != NULL) { + yyval.u.decl = type; + } else { + CPPExtensionType *et = + CPPType::new_type(new CPPExtensionType(yyvsp[-1].u.extension_enum, yyvsp[0].u.identifier, current_scope, yylsp[-1].file)) + ->as_extension_type(); + CPPScope *scope = yyvsp[0].u.identifier->get_scope(current_scope, global_scope); + if (scope != NULL) { + scope->define_extension_type(et); + } + yyval.u.decl = et; + } +} + break; +case 210: +#line 1580 "cppBison.yxx" +{ + CPPType *type = yyvsp[0].u.identifier->find_type(current_scope, global_scope, false, current_lexer); + if (type != NULL) { + yyval.u.decl = type; + } else { + CPPExtensionType *et = + CPPType::new_type(new CPPExtensionType(yyvsp[-1].u.extension_enum, yyvsp[0].u.identifier, current_scope, yylsp[-1].file)) + ->as_extension_type(); + CPPScope *scope = yyvsp[0].u.identifier->get_scope(current_scope, global_scope); + if (scope != NULL) { + scope->define_extension_type(et); + } + yyval.u.decl = et; + } +} + break; +case 211: +#line 1599 "cppBison.yxx" { yyval.u.type = CPPType::new_type(yyvsp[0].u.simple_type); -; - break;} -case 210: -#line 1593 "cppBison.yxx" +} + break; +case 212: +#line 1603 "cppBison.yxx" { yyval.u.type = yyvsp[0].u.identifier->find_type(current_scope, global_scope, false, current_lexer); assert(yyval.u.type != NULL); -; - break;} -case 211: -#line 1598 "cppBison.yxx" +} + break; +case 213: +#line 1608 "cppBison.yxx" { yyval.u.type = CPPType::new_type(new CPPTBDType(yyvsp[0].u.identifier)); -; - break;} -case 212: -#line 1602 "cppBison.yxx" -{ - CPPType *type = yyvsp[0].u.identifier->find_type(current_scope, global_scope, false, current_lexer); - if (type != NULL) { - yyval.u.type = type; - } else { - CPPExtensionType *et = - CPPType::new_type(new CPPExtensionType(yyvsp[-1].u.extension_enum, yyvsp[0].u.identifier, current_scope, yylsp[-1].file)) - ->as_extension_type(); - CPPScope *scope = yyvsp[0].u.identifier->get_scope(current_scope, global_scope); - if (scope != NULL) { - scope->define_extension_type(et); - } - yyval.u.type = et; - } -; - break;} -case 213: -#line 1618 "cppBison.yxx" -{ - CPPType *type = yyvsp[0].u.identifier->find_type(current_scope, global_scope, false, current_lexer); - if (type != NULL) { - yyval.u.type = type; - } else { - CPPExtensionType *et = - CPPType::new_type(new CPPExtensionType(yyvsp[-1].u.extension_enum, yyvsp[0].u.identifier, current_scope, yylsp[-1].file)) - ->as_extension_type(); - CPPScope *scope = yyvsp[0].u.identifier->get_scope(current_scope, global_scope); - if (scope != NULL) { - scope->define_extension_type(et); - } - yyval.u.type = et; - } -; - break;} +} + break; case 214: -#line 1637 "cppBison.yxx" +#line 1612 "cppBison.yxx" +{ + CPPType *type = yyvsp[0].u.identifier->find_type(current_scope, global_scope, false, current_lexer); + if (type != NULL) { + yyval.u.type = type; + } else { + CPPExtensionType *et = + CPPType::new_type(new CPPExtensionType(yyvsp[-1].u.extension_enum, yyvsp[0].u.identifier, current_scope, yylsp[-1].file)) + ->as_extension_type(); + CPPScope *scope = yyvsp[0].u.identifier->get_scope(current_scope, global_scope); + if (scope != NULL) { + scope->define_extension_type(et); + } + yyval.u.type = et; + } +} + break; +case 215: +#line 1628 "cppBison.yxx" +{ + CPPType *type = yyvsp[0].u.identifier->find_type(current_scope, global_scope, false, current_lexer); + if (type != NULL) { + yyval.u.type = type; + } else { + CPPExtensionType *et = + CPPType::new_type(new CPPExtensionType(yyvsp[-1].u.extension_enum, yyvsp[0].u.identifier, current_scope, yylsp[-1].file)) + ->as_extension_type(); + CPPScope *scope = yyvsp[0].u.identifier->get_scope(current_scope, global_scope); + if (scope != NULL) { + scope->define_extension_type(et); + } + yyval.u.type = et; + } +} + break; +case 216: +#line 1647 "cppBison.yxx" { CPPInstance *inst = new CPPInstance(yyvsp[-1].u.type, yyvsp[0].u.inst_ident, 0, yylsp[-1].file); yyval.u.type = inst->_type; delete inst; -; - break;} -case 215: -#line 1643 "cppBison.yxx" +} + break; +case 217: +#line 1653 "cppBison.yxx" { yyvsp[0].u.inst_ident->add_modifier(IIT_const); CPPInstance *inst = new CPPInstance(yyvsp[-1].u.type, yyvsp[0].u.inst_ident, 0, yylsp[-2].file); yyval.u.type = inst->_type; delete inst; -; - break;} -case 216: -#line 1653 "cppBison.yxx" +} + break; +case 218: +#line 1663 "cppBison.yxx" { CPPVisibility starting_vis = (yyvsp[-1].u.extension_enum == CPPExtensionType::T_class) ? V_private : V_public; @@ -3595,19 +3811,19 @@ case 216: push_scope(new_scope); push_struct(st); -; - break;} -case 217: -#line 1667 "cppBison.yxx" +} + break; +case 219: +#line 1677 "cppBison.yxx" { yyval.u.struct_type = current_struct; current_struct->_incomplete = false; pop_struct(); pop_scope(); -; - break;} -case 218: -#line 1677 "cppBison.yxx" +} + break; +case 220: +#line 1687 "cppBison.yxx" { CPPVisibility starting_vis = (yyvsp[-1].u.extension_enum == CPPExtensionType::T_class) ? V_private : V_public; @@ -3626,151 +3842,151 @@ case 218: push_scope(new_scope); push_struct(st); -; - break;} -case 219: -#line 1697 "cppBison.yxx" +} + break; +case 221: +#line 1707 "cppBison.yxx" { yyval.u.struct_type = current_struct; current_struct->_incomplete = false; pop_struct(); pop_scope(); -; - break;} -case 224: -#line 1717 "cppBison.yxx" +} + break; +case 226: +#line 1727 "cppBison.yxx" { current_struct->append_derivation(yyvsp[0].u.type, V_public, false); -; - break;} -case 225: -#line 1721 "cppBison.yxx" +} + break; +case 227: +#line 1731 "cppBison.yxx" { current_struct->append_derivation(yyvsp[0].u.type, V_protected, false); -; - break;} -case 226: -#line 1725 "cppBison.yxx" +} + break; +case 228: +#line 1735 "cppBison.yxx" { current_struct->append_derivation(yyvsp[0].u.type, V_private, false); -; - break;} -case 227: -#line 1729 "cppBison.yxx" -{ - current_struct->append_derivation(yyvsp[0].u.type, V_public, true); -; - break;} -case 228: -#line 1733 "cppBison.yxx" -{ - current_struct->append_derivation(yyvsp[0].u.type, V_protected, true); -; - break;} +} + break; case 229: -#line 1737 "cppBison.yxx" -{ - current_struct->append_derivation(yyvsp[0].u.type, V_private, true); -; - break;} -case 230: -#line 1741 "cppBison.yxx" +#line 1739 "cppBison.yxx" { current_struct->append_derivation(yyvsp[0].u.type, V_public, true); -; - break;} -case 231: -#line 1745 "cppBison.yxx" +} + break; +case 230: +#line 1743 "cppBison.yxx" { current_struct->append_derivation(yyvsp[0].u.type, V_protected, true); -; - break;} -case 232: -#line 1749 "cppBison.yxx" +} + break; +case 231: +#line 1747 "cppBison.yxx" { current_struct->append_derivation(yyvsp[0].u.type, V_private, true); -; - break;} +} + break; +case 232: +#line 1751 "cppBison.yxx" +{ + current_struct->append_derivation(yyvsp[0].u.type, V_public, true); +} + break; case 233: -#line 1756 "cppBison.yxx" +#line 1755 "cppBison.yxx" +{ + current_struct->append_derivation(yyvsp[0].u.type, V_protected, true); +} + break; +case 234: +#line 1759 "cppBison.yxx" +{ + current_struct->append_derivation(yyvsp[0].u.type, V_private, true); +} + break; +case 235: +#line 1766 "cppBison.yxx" { current_enum = new CPPEnumType(NULL, current_scope, yylsp[-1].file); -; - break;} -case 234: -#line 1760 "cppBison.yxx" +} + break; +case 236: +#line 1770 "cppBison.yxx" { yyval.u.enum_type = current_enum; current_enum = NULL; -; - break;} -case 235: -#line 1768 "cppBison.yxx" +} + break; +case 237: +#line 1778 "cppBison.yxx" { current_enum = new CPPEnumType(yyvsp[-1].u.identifier, current_scope, yylsp[-2].file); -; - break;} -case 236: -#line 1772 "cppBison.yxx" +} + break; +case 238: +#line 1782 "cppBison.yxx" { yyval.u.enum_type = current_enum; current_enum = NULL; -; - break;} -case 240: -#line 1786 "cppBison.yxx" -{ - assert(current_enum != NULL); - current_enum->add_element(yyvsp[0].u.identifier->get_simple_name(), current_scope); -; - break;} -case 241: -#line 1791 "cppBison.yxx" -{ - assert(current_enum != NULL); - current_enum->add_element(yyvsp[-2].u.identifier->get_simple_name(), current_scope, yyvsp[0].u.expr); -; - break;} +} + break; case 242: #line 1796 "cppBison.yxx" { assert(current_enum != NULL); current_enum->add_element(yyvsp[0].u.identifier->get_simple_name(), current_scope); -; - break;} +} + break; case 243: #line 1801 "cppBison.yxx" { assert(current_enum != NULL); current_enum->add_element(yyvsp[-2].u.identifier->get_simple_name(), current_scope, yyvsp[0].u.expr); -; - break;} +} + break; case 244: -#line 1809 "cppBison.yxx" +#line 1806 "cppBison.yxx" +{ + assert(current_enum != NULL); + current_enum->add_element(yyvsp[0].u.identifier->get_simple_name(), current_scope); +} + break; +case 245: +#line 1811 "cppBison.yxx" +{ + assert(current_enum != NULL); + current_enum->add_element(yyvsp[-2].u.identifier->get_simple_name(), current_scope, yyvsp[0].u.expr); +} + break; +case 246: +#line 1819 "cppBison.yxx" { yyval.u.extension_enum = CPPExtensionType::T_enum; -; - break;} -case 245: -#line 1816 "cppBison.yxx" +} + break; +case 247: +#line 1826 "cppBison.yxx" { yyval.u.extension_enum = CPPExtensionType::T_class; -; - break;} -case 246: -#line 1820 "cppBison.yxx" +} + break; +case 248: +#line 1830 "cppBison.yxx" { yyval.u.extension_enum = CPPExtensionType::T_struct; -; - break;} -case 247: -#line 1824 "cppBison.yxx" +} + break; +case 249: +#line 1834 "cppBison.yxx" { yyval.u.extension_enum = CPPExtensionType::T_union; -; - break;} -case 248: -#line 1831 "cppBison.yxx" +} + break; +case 250: +#line 1841 "cppBison.yxx" { CPPScope *scope = yyvsp[-1].u.identifier->find_scope(current_scope, global_scope, current_lexer); if (scope == NULL) { @@ -3787,92 +4003,92 @@ case 248: current_scope->add_declaration(nspace, global_scope, current_lexer, yylsp[-2]); current_scope->define_namespace(nspace); push_scope(scope); -; - break;} -case 249: -#line 1849 "cppBison.yxx" +} + break; +case 251: +#line 1859 "cppBison.yxx" { pop_scope(); -; - break;} -case 251: -#line 1857 "cppBison.yxx" +} + break; +case 253: +#line 1867 "cppBison.yxx" { CPPUsing *using_decl = new CPPUsing(yyvsp[0].u.identifier, false, yylsp[-1].file); current_scope->add_declaration(using_decl, global_scope, current_lexer, yylsp[-1]); current_scope->add_using(using_decl, global_scope, current_lexer); -; - break;} -case 252: -#line 1863 "cppBison.yxx" +} + break; +case 254: +#line 1873 "cppBison.yxx" { CPPUsing *using_decl = new CPPUsing(yyvsp[0].u.identifier, true, yylsp[-2].file); current_scope->add_declaration(using_decl, global_scope, current_lexer, yylsp[-2]); current_scope->add_using(using_decl, global_scope, current_lexer); -; - break;} -case 256: -#line 1878 "cppBison.yxx" +} + break; +case 258: +#line 1888 "cppBison.yxx" { yyval.u.simple_type = new CPPSimpleType(CPPSimpleType::T_bool); -; - break;} -case 257: -#line 1882 "cppBison.yxx" +} + break; +case 259: +#line 1892 "cppBison.yxx" { yyval.u.simple_type = new CPPSimpleType(CPPSimpleType::T_char); -; - break;} -case 258: -#line 1886 "cppBison.yxx" -{ - yyval.u.simple_type = new CPPSimpleType(CPPSimpleType::T_int, - CPPSimpleType::F_short); -; - break;} -case 259: -#line 1891 "cppBison.yxx" -{ - yyval.u.simple_type = new CPPSimpleType(CPPSimpleType::T_int, - CPPSimpleType::F_long); -; - break;} +} + break; case 260: #line 1896 "cppBison.yxx" { yyval.u.simple_type = new CPPSimpleType(CPPSimpleType::T_int, - CPPSimpleType::F_longlong); -; - break;} + CPPSimpleType::F_short); +} + break; case 261: #line 1901 "cppBison.yxx" { yyval.u.simple_type = new CPPSimpleType(CPPSimpleType::T_int, - CPPSimpleType::F_unsigned); -; - break;} + CPPSimpleType::F_long); +} + break; case 262: #line 1906 "cppBison.yxx" { yyval.u.simple_type = new CPPSimpleType(CPPSimpleType::T_int, - CPPSimpleType::F_signed); -; - break;} + CPPSimpleType::F_longlong); +} + break; case 263: #line 1911 "cppBison.yxx" { - yyval.u.simple_type = new CPPSimpleType(CPPSimpleType::T_int); -; - break;} + yyval.u.simple_type = new CPPSimpleType(CPPSimpleType::T_int, + CPPSimpleType::F_unsigned); +} + break; case 264: -#line 1915 "cppBison.yxx" +#line 1916 "cppBison.yxx" +{ + yyval.u.simple_type = new CPPSimpleType(CPPSimpleType::T_int, + CPPSimpleType::F_signed); +} + break; +case 265: +#line 1921 "cppBison.yxx" +{ + yyval.u.simple_type = new CPPSimpleType(CPPSimpleType::T_int); +} + break; +case 266: +#line 1925 "cppBison.yxx" { yyval.u.simple_type = yyvsp[0].u.simple_type; yyval.u.simple_type->_flags |= CPPSimpleType::F_short; -; - break;} -case 265: -#line 1920 "cppBison.yxx" +} + break; +case 267: +#line 1930 "cppBison.yxx" { yyval.u.simple_type = yyvsp[0].u.simple_type; if (yyval.u.simple_type->_flags & CPPSimpleType::F_long) { @@ -3880,198 +4096,198 @@ case 265: } else { yyval.u.simple_type->_flags |= CPPSimpleType::F_long; } -; - break;} -case 266: -#line 1929 "cppBison.yxx" +} + break; +case 268: +#line 1939 "cppBison.yxx" { yyval.u.simple_type = yyvsp[0].u.simple_type; yyval.u.simple_type->_flags |= CPPSimpleType::F_unsigned; -; - break;} -case 267: -#line 1934 "cppBison.yxx" +} + break; +case 269: +#line 1944 "cppBison.yxx" { yyval.u.simple_type = yyvsp[0].u.simple_type; yyval.u.simple_type->_flags |= CPPSimpleType::F_signed; -; - break;} -case 268: -#line 1942 "cppBison.yxx" +} + break; +case 270: +#line 1952 "cppBison.yxx" { yyval.u.simple_type = new CPPSimpleType(CPPSimpleType::T_float); -; - break;} -case 269: -#line 1946 "cppBison.yxx" +} + break; +case 271: +#line 1956 "cppBison.yxx" { yyval.u.simple_type = new CPPSimpleType(CPPSimpleType::T_float, CPPSimpleType::F_long); -; - break;} -case 270: -#line 1951 "cppBison.yxx" +} + break; +case 272: +#line 1961 "cppBison.yxx" { yyval.u.simple_type = new CPPSimpleType(CPPSimpleType::T_double); -; - break;} -case 271: -#line 1955 "cppBison.yxx" +} + break; +case 273: +#line 1965 "cppBison.yxx" { yyval.u.simple_type = new CPPSimpleType(CPPSimpleType::T_float, CPPSimpleType::F_longlong); -; - break;} -case 272: -#line 1960 "cppBison.yxx" +} + break; +case 274: +#line 1970 "cppBison.yxx" { yyval.u.simple_type = new CPPSimpleType(CPPSimpleType::T_double, CPPSimpleType::F_long); -; - break;} -case 273: -#line 1968 "cppBison.yxx" +} + break; +case 275: +#line 1978 "cppBison.yxx" { yyval.u.simple_type = new CPPSimpleType(CPPSimpleType::T_void); -; - break;} -case 274: -#line 1977 "cppBison.yxx" +} + break; +case 276: +#line 1987 "cppBison.yxx" { current_lexer->_resolve_identifiers = false; -; - break;} -case 275: -#line 1981 "cppBison.yxx" +} + break; +case 277: +#line 1991 "cppBison.yxx" { current_lexer->_resolve_identifiers = true; -; - break;} -case 278: -#line 1993 "cppBison.yxx" -{ -; - break;} -case 279: -#line 1996 "cppBison.yxx" -{ -; - break;} +} + break; case 280: -#line 1999 "cppBison.yxx" +#line 2003 "cppBison.yxx" { -; - break;} +} + break; case 281: -#line 2002 "cppBison.yxx" +#line 2006 "cppBison.yxx" { -; - break;} +} + break; case 282: -#line 2005 "cppBison.yxx" +#line 2009 "cppBison.yxx" { -; - break;} +} + break; case 283: -#line 2008 "cppBison.yxx" +#line 2012 "cppBison.yxx" { -; - break;} +} + break; case 284: -#line 2011 "cppBison.yxx" +#line 2015 "cppBison.yxx" { -; - break;} +} + break; case 285: -#line 2014 "cppBison.yxx" +#line 2018 "cppBison.yxx" { -; - break;} -case 358: -#line 2034 "cppBison.yxx" +} + break; +case 286: +#line 2021 "cppBison.yxx" { -; - break;} -case 382: -#line 2043 "cppBison.yxx" +} + break; +case 287: +#line 2024 "cppBison.yxx" { - yyval.u.expr = (CPPExpression *)NULL; -; - break;} -case 383: -#line 2047 "cppBison.yxx" +} + break; +case 360: +#line 2044 "cppBison.yxx" { - yyval.u.expr = yyvsp[0].u.expr; -; - break;} +} + break; case 384: -#line 2054 "cppBison.yxx" +#line 2053 "cppBison.yxx" { yyval.u.expr = (CPPExpression *)NULL; -; - break;} +} + break; case 385: -#line 2058 "cppBison.yxx" +#line 2057 "cppBison.yxx" { yyval.u.expr = yyvsp[0].u.expr; -; - break;} +} + break; case 386: -#line 2065 "cppBison.yxx" +#line 2064 "cppBison.yxx" +{ + yyval.u.expr = (CPPExpression *)NULL; +} + break; +case 387: +#line 2068 "cppBison.yxx" { yyval.u.expr = yyvsp[0].u.expr; -; - break;} -case 387: -#line 2069 "cppBison.yxx" +} + break; +case 388: +#line 2075 "cppBison.yxx" +{ + yyval.u.expr = yyvsp[0].u.expr; +} + break; +case 389: +#line 2079 "cppBison.yxx" { yyval.u.expr = new CPPExpression(',', yyvsp[-2].u.expr, yyvsp[0].u.expr); -; - break;} -case 388: -#line 2076 "cppBison.yxx" +} + break; +case 390: +#line 2086 "cppBison.yxx" { yyval.u.expr = yyvsp[0].u.expr; -; - break;} -case 389: -#line 2080 "cppBison.yxx" +} + break; +case 391: +#line 2090 "cppBison.yxx" { yyval.u.expr = new CPPExpression(CPPExpression::typecast_op(yyvsp[-2].u.type, yyvsp[0].u.expr)); -; - break;} -case 390: -#line 2084 "cppBison.yxx" -{ - yyval.u.expr = new CPPExpression(CPPExpression::typecast_op(yyvsp[-4].u.type, yyvsp[-1].u.expr)); -; - break;} -case 391: -#line 2088 "cppBison.yxx" -{ - yyval.u.expr = new CPPExpression(CPPExpression::typecast_op(yyvsp[-4].u.type, yyvsp[-1].u.expr)); -; - break;} +} + break; case 392: -#line 2092 "cppBison.yxx" +#line 2094 "cppBison.yxx" +{ + yyval.u.expr = new CPPExpression(CPPExpression::typecast_op(yyvsp[-4].u.type, yyvsp[-1].u.expr)); +} + break; +case 393: +#line 2098 "cppBison.yxx" +{ + yyval.u.expr = new CPPExpression(CPPExpression::typecast_op(yyvsp[-4].u.type, yyvsp[-1].u.expr)); +} + break; +case 394: +#line 2102 "cppBison.yxx" { yyval.u.expr = new CPPExpression(CPPExpression::sizeof_func(yyvsp[-1].u.type)); -; - break;} -case 393: -#line 2096 "cppBison.yxx" +} + break; +case 395: +#line 2106 "cppBison.yxx" { yyval.u.expr = new CPPExpression(UNARY_NOT, yyvsp[0].u.expr); -; - break;} -case 394: -#line 2100 "cppBison.yxx" +} + break; +case 396: +#line 2110 "cppBison.yxx" { yyval.u.expr = new CPPExpression(UNARY_NEGATE, yyvsp[0].u.expr); -; - break;} -case 395: -#line 2104 "cppBison.yxx" +} + break; +case 397: +#line 2114 "cppBison.yxx" { if (yyvsp[0].u.expr->_type == CPPExpression::T_integer) { yyval.u.expr = yyvsp[0].u.expr; @@ -4082,293 +4298,293 @@ case 395: } else { yyval.u.expr = new CPPExpression(UNARY_MINUS, yyvsp[0].u.expr); } -; - break;} -case 396: -#line 2116 "cppBison.yxx" +} + break; +case 398: +#line 2126 "cppBison.yxx" { yyval.u.expr = new CPPExpression(UNARY_STAR, yyvsp[0].u.expr); -; - break;} -case 397: -#line 2120 "cppBison.yxx" +} + break; +case 399: +#line 2130 "cppBison.yxx" { yyval.u.expr = new CPPExpression(UNARY_REF, yyvsp[0].u.expr); -; - break;} -case 398: -#line 2124 "cppBison.yxx" +} + break; +case 400: +#line 2134 "cppBison.yxx" { yyval.u.expr = new CPPExpression('*', yyvsp[-2].u.expr, yyvsp[0].u.expr); -; - break;} -case 399: -#line 2128 "cppBison.yxx" +} + break; +case 401: +#line 2138 "cppBison.yxx" { yyval.u.expr = new CPPExpression('/', yyvsp[-2].u.expr, yyvsp[0].u.expr); -; - break;} -case 400: -#line 2132 "cppBison.yxx" +} + break; +case 402: +#line 2142 "cppBison.yxx" { yyval.u.expr = new CPPExpression('%', yyvsp[-2].u.expr, yyvsp[0].u.expr); -; - break;} -case 401: -#line 2136 "cppBison.yxx" +} + break; +case 403: +#line 2146 "cppBison.yxx" { yyval.u.expr = new CPPExpression('+', yyvsp[-2].u.expr, yyvsp[0].u.expr); -; - break;} -case 402: -#line 2140 "cppBison.yxx" +} + break; +case 404: +#line 2150 "cppBison.yxx" { yyval.u.expr = new CPPExpression('-', yyvsp[-2].u.expr, yyvsp[0].u.expr); -; - break;} -case 403: -#line 2144 "cppBison.yxx" +} + break; +case 405: +#line 2154 "cppBison.yxx" { yyval.u.expr = new CPPExpression('|', yyvsp[-2].u.expr, yyvsp[0].u.expr); -; - break;} -case 404: -#line 2148 "cppBison.yxx" +} + break; +case 406: +#line 2158 "cppBison.yxx" { yyval.u.expr = new CPPExpression('&', yyvsp[-2].u.expr, yyvsp[0].u.expr); -; - break;} -case 405: -#line 2152 "cppBison.yxx" +} + break; +case 407: +#line 2162 "cppBison.yxx" { yyval.u.expr = new CPPExpression(OROR, yyvsp[-2].u.expr, yyvsp[0].u.expr); -; - break;} -case 406: -#line 2156 "cppBison.yxx" +} + break; +case 408: +#line 2166 "cppBison.yxx" { yyval.u.expr = new CPPExpression(ANDAND, yyvsp[-2].u.expr, yyvsp[0].u.expr); -; - break;} -case 407: -#line 2160 "cppBison.yxx" +} + break; +case 409: +#line 2170 "cppBison.yxx" { yyval.u.expr = new CPPExpression(EQCOMPARE, yyvsp[-2].u.expr, yyvsp[0].u.expr); -; - break;} -case 408: -#line 2164 "cppBison.yxx" +} + break; +case 410: +#line 2174 "cppBison.yxx" { yyval.u.expr = new CPPExpression(NECOMPARE, yyvsp[-2].u.expr, yyvsp[0].u.expr); -; - break;} -case 409: -#line 2168 "cppBison.yxx" +} + break; +case 411: +#line 2178 "cppBison.yxx" { yyval.u.expr = new CPPExpression(LECOMPARE, yyvsp[-2].u.expr, yyvsp[0].u.expr); -; - break;} -case 410: -#line 2172 "cppBison.yxx" +} + break; +case 412: +#line 2182 "cppBison.yxx" { yyval.u.expr = new CPPExpression(GECOMPARE, yyvsp[-2].u.expr, yyvsp[0].u.expr); -; - break;} -case 411: -#line 2176 "cppBison.yxx" +} + break; +case 413: +#line 2186 "cppBison.yxx" { yyval.u.expr = new CPPExpression(LSHIFT, yyvsp[-2].u.expr, yyvsp[0].u.expr); -; - break;} -case 412: -#line 2180 "cppBison.yxx" +} + break; +case 414: +#line 2190 "cppBison.yxx" { yyval.u.expr = new CPPExpression(RSHIFT, yyvsp[-2].u.expr, yyvsp[0].u.expr); -; - break;} -case 413: -#line 2184 "cppBison.yxx" +} + break; +case 415: +#line 2194 "cppBison.yxx" { yyval.u.expr = new CPPExpression('?', yyvsp[-4].u.expr, yyvsp[-2].u.expr, yyvsp[0].u.expr); -; - break;} -case 414: -#line 2188 "cppBison.yxx" +} + break; +case 416: +#line 2198 "cppBison.yxx" { yyval.u.expr = new CPPExpression('[', yyvsp[-3].u.expr, yyvsp[-1].u.expr); -; - break;} -case 415: -#line 2192 "cppBison.yxx" +} + break; +case 417: +#line 2202 "cppBison.yxx" { yyval.u.expr = new CPPExpression('f', yyvsp[-3].u.expr, yyvsp[-1].u.expr); -; - break;} -case 416: -#line 2196 "cppBison.yxx" +} + break; +case 418: +#line 2206 "cppBison.yxx" { yyval.u.expr = new CPPExpression('f', yyvsp[-2].u.expr); -; - break;} -case 417: -#line 2200 "cppBison.yxx" +} + break; +case 419: +#line 2210 "cppBison.yxx" { yyval.u.expr = new CPPExpression('.', yyvsp[-2].u.expr, yyvsp[0].u.expr); -; - break;} -case 418: -#line 2204 "cppBison.yxx" +} + break; +case 420: +#line 2214 "cppBison.yxx" { yyval.u.expr = new CPPExpression(POINTSAT, yyvsp[-2].u.expr, yyvsp[0].u.expr); -; - break;} -case 419: -#line 2208 "cppBison.yxx" +} + break; +case 421: +#line 2218 "cppBison.yxx" { yyval.u.expr = yyvsp[-1].u.expr; -; - break;} -case 420: -#line 2216 "cppBison.yxx" +} + break; +case 422: +#line 2226 "cppBison.yxx" { yyval.u.expr = yyvsp[0].u.expr; -; - break;} -case 421: -#line 2220 "cppBison.yxx" +} + break; +case 423: +#line 2230 "cppBison.yxx" { yyval.u.expr = new CPPExpression(CPPExpression::typecast_op(yyvsp[-2].u.type, yyvsp[0].u.expr)); -; - break;} -case 422: -#line 2224 "cppBison.yxx" -{ - yyval.u.expr = new CPPExpression(CPPExpression::typecast_op(yyvsp[-4].u.type, yyvsp[-1].u.expr)); -; - break;} -case 423: -#line 2228 "cppBison.yxx" -{ - yyval.u.expr = new CPPExpression(CPPExpression::typecast_op(yyvsp[-4].u.type, yyvsp[-1].u.expr)); -; - break;} +} + break; case 424: -#line 2232 "cppBison.yxx" +#line 2234 "cppBison.yxx" +{ + yyval.u.expr = new CPPExpression(CPPExpression::typecast_op(yyvsp[-4].u.type, yyvsp[-1].u.expr)); +} + break; +case 425: +#line 2238 "cppBison.yxx" +{ + yyval.u.expr = new CPPExpression(CPPExpression::typecast_op(yyvsp[-4].u.type, yyvsp[-1].u.expr)); +} + break; +case 426: +#line 2242 "cppBison.yxx" { // A constructor call. CPPType *type = yyvsp[-3].u.identifier->find_type(current_scope, global_scope, false, current_lexer); assert(type != NULL); yyval.u.expr = new CPPExpression(CPPExpression::construct_op(type, yyvsp[-1].u.expr)); -; - break;} -case 425: -#line 2239 "cppBison.yxx" +} + break; +case 427: +#line 2249 "cppBison.yxx" { CPPType *type = CPPType::new_type(new CPPSimpleType(CPPSimpleType::T_int)); yyval.u.expr = new CPPExpression(CPPExpression::construct_op(type, yyvsp[-1].u.expr)); -; - break;} -case 426: -#line 2245 "cppBison.yxx" +} + break; +case 428: +#line 2255 "cppBison.yxx" { CPPType *type = CPPType::new_type(new CPPSimpleType(CPPSimpleType::T_char)); yyval.u.expr = new CPPExpression(CPPExpression::construct_op(type, yyvsp[-1].u.expr)); -; - break;} -case 427: -#line 2251 "cppBison.yxx" +} + break; +case 429: +#line 2261 "cppBison.yxx" { CPPType *type = CPPType::new_type(new CPPSimpleType(CPPSimpleType::T_bool)); yyval.u.expr = new CPPExpression(CPPExpression::construct_op(type, yyvsp[-1].u.expr)); -; - break;} -case 428: -#line 2257 "cppBison.yxx" +} + break; +case 430: +#line 2267 "cppBison.yxx" { CPPType *type = CPPType::new_type(new CPPSimpleType(CPPSimpleType::T_int, CPPSimpleType::F_short)); yyval.u.expr = new CPPExpression(CPPExpression::construct_op(type, yyvsp[-1].u.expr)); -; - break;} -case 429: -#line 2264 "cppBison.yxx" +} + break; +case 431: +#line 2274 "cppBison.yxx" { CPPType *type = CPPType::new_type(new CPPSimpleType(CPPSimpleType::T_int, CPPSimpleType::F_long)); yyval.u.expr = new CPPExpression(CPPExpression::construct_op(type, yyvsp[-1].u.expr)); -; - break;} -case 430: -#line 2271 "cppBison.yxx" +} + break; +case 432: +#line 2281 "cppBison.yxx" { CPPType *type = CPPType::new_type(new CPPSimpleType(CPPSimpleType::T_int, CPPSimpleType::F_unsigned)); yyval.u.expr = new CPPExpression(CPPExpression::construct_op(type, yyvsp[-1].u.expr)); -; - break;} -case 431: -#line 2278 "cppBison.yxx" +} + break; +case 433: +#line 2288 "cppBison.yxx" { CPPType *type = CPPType::new_type(new CPPSimpleType(CPPSimpleType::T_int, CPPSimpleType::F_signed)); yyval.u.expr = new CPPExpression(CPPExpression::construct_op(type, yyvsp[-1].u.expr)); -; - break;} -case 432: -#line 2285 "cppBison.yxx" +} + break; +case 434: +#line 2295 "cppBison.yxx" { CPPType *type = CPPType::new_type(new CPPSimpleType(CPPSimpleType::T_float)); yyval.u.expr = new CPPExpression(CPPExpression::construct_op(type, yyvsp[-1].u.expr)); -; - break;} -case 433: -#line 2291 "cppBison.yxx" +} + break; +case 435: +#line 2301 "cppBison.yxx" { CPPType *type = CPPType::new_type(new CPPSimpleType(CPPSimpleType::T_double)); yyval.u.expr = new CPPExpression(CPPExpression::construct_op(type, yyvsp[-1].u.expr)); -; - break;} -case 434: -#line 2297 "cppBison.yxx" +} + break; +case 436: +#line 2307 "cppBison.yxx" { yyval.u.expr = new CPPExpression(CPPExpression::sizeof_func(yyvsp[-1].u.type)); -; - break;} -case 435: -#line 2301 "cppBison.yxx" +} + break; +case 437: +#line 2311 "cppBison.yxx" { yyval.u.expr = new CPPExpression(CPPExpression::new_op(yyvsp[0].u.type)); -; - break;} -case 436: -#line 2305 "cppBison.yxx" +} + break; +case 438: +#line 2315 "cppBison.yxx" { yyval.u.expr = new CPPExpression(CPPExpression::new_op(yyvsp[-3].u.type, yyvsp[-1].u.expr)); -; - break;} -case 437: -#line 2309 "cppBison.yxx" +} + break; +case 439: +#line 2319 "cppBison.yxx" { yyval.u.expr = new CPPExpression(UNARY_NOT, yyvsp[0].u.expr); -; - break;} -case 438: -#line 2313 "cppBison.yxx" +} + break; +case 440: +#line 2323 "cppBison.yxx" { yyval.u.expr = new CPPExpression(UNARY_NEGATE, yyvsp[0].u.expr); -; - break;} -case 439: -#line 2317 "cppBison.yxx" +} + break; +case 441: +#line 2327 "cppBison.yxx" { if (yyvsp[0].u.expr->_type == CPPExpression::T_integer) { yyval.u.expr = yyvsp[0].u.expr; @@ -4379,300 +4595,286 @@ case 439: } else { yyval.u.expr = new CPPExpression(UNARY_MINUS, yyvsp[0].u.expr); } -; - break;} -case 440: -#line 2329 "cppBison.yxx" +} + break; +case 442: +#line 2339 "cppBison.yxx" { yyval.u.expr = new CPPExpression(UNARY_STAR, yyvsp[0].u.expr); -; - break;} -case 441: -#line 2333 "cppBison.yxx" +} + break; +case 443: +#line 2343 "cppBison.yxx" { yyval.u.expr = new CPPExpression(UNARY_REF, yyvsp[0].u.expr); -; - break;} -case 442: -#line 2337 "cppBison.yxx" +} + break; +case 444: +#line 2347 "cppBison.yxx" { yyval.u.expr = new CPPExpression('*', yyvsp[-2].u.expr, yyvsp[0].u.expr); -; - break;} -case 443: -#line 2341 "cppBison.yxx" +} + break; +case 445: +#line 2351 "cppBison.yxx" { yyval.u.expr = new CPPExpression('/', yyvsp[-2].u.expr, yyvsp[0].u.expr); -; - break;} -case 444: -#line 2345 "cppBison.yxx" +} + break; +case 446: +#line 2355 "cppBison.yxx" { yyval.u.expr = new CPPExpression('%', yyvsp[-2].u.expr, yyvsp[0].u.expr); -; - break;} -case 445: -#line 2349 "cppBison.yxx" +} + break; +case 447: +#line 2359 "cppBison.yxx" { yyval.u.expr = new CPPExpression('+', yyvsp[-2].u.expr, yyvsp[0].u.expr); -; - break;} -case 446: -#line 2353 "cppBison.yxx" +} + break; +case 448: +#line 2363 "cppBison.yxx" { yyval.u.expr = new CPPExpression('-', yyvsp[-2].u.expr, yyvsp[0].u.expr); -; - break;} -case 447: -#line 2357 "cppBison.yxx" +} + break; +case 449: +#line 2367 "cppBison.yxx" { yyval.u.expr = new CPPExpression('|', yyvsp[-2].u.expr, yyvsp[0].u.expr); -; - break;} -case 448: -#line 2361 "cppBison.yxx" +} + break; +case 450: +#line 2371 "cppBison.yxx" { yyval.u.expr = new CPPExpression('&', yyvsp[-2].u.expr, yyvsp[0].u.expr); -; - break;} -case 449: -#line 2365 "cppBison.yxx" +} + break; +case 451: +#line 2375 "cppBison.yxx" { yyval.u.expr = new CPPExpression(OROR, yyvsp[-2].u.expr, yyvsp[0].u.expr); -; - break;} -case 450: -#line 2369 "cppBison.yxx" +} + break; +case 452: +#line 2379 "cppBison.yxx" { yyval.u.expr = new CPPExpression(ANDAND, yyvsp[-2].u.expr, yyvsp[0].u.expr); -; - break;} -case 451: -#line 2373 "cppBison.yxx" +} + break; +case 453: +#line 2383 "cppBison.yxx" { yyval.u.expr = new CPPExpression(EQCOMPARE, yyvsp[-2].u.expr, yyvsp[0].u.expr); -; - break;} -case 452: -#line 2377 "cppBison.yxx" +} + break; +case 454: +#line 2387 "cppBison.yxx" { yyval.u.expr = new CPPExpression(NECOMPARE, yyvsp[-2].u.expr, yyvsp[0].u.expr); -; - break;} -case 453: -#line 2381 "cppBison.yxx" +} + break; +case 455: +#line 2391 "cppBison.yxx" { yyval.u.expr = new CPPExpression(LECOMPARE, yyvsp[-2].u.expr, yyvsp[0].u.expr); -; - break;} -case 454: -#line 2385 "cppBison.yxx" +} + break; +case 456: +#line 2395 "cppBison.yxx" { yyval.u.expr = new CPPExpression(GECOMPARE, yyvsp[-2].u.expr, yyvsp[0].u.expr); -; - break;} -case 455: -#line 2389 "cppBison.yxx" +} + break; +case 457: +#line 2399 "cppBison.yxx" { yyval.u.expr = new CPPExpression('<', yyvsp[-2].u.expr, yyvsp[0].u.expr); -; - break;} -case 456: -#line 2393 "cppBison.yxx" +} + break; +case 458: +#line 2403 "cppBison.yxx" { yyval.u.expr = new CPPExpression('>', yyvsp[-2].u.expr, yyvsp[0].u.expr); -; - break;} -case 457: -#line 2397 "cppBison.yxx" +} + break; +case 459: +#line 2407 "cppBison.yxx" { yyval.u.expr = new CPPExpression(LSHIFT, yyvsp[-2].u.expr, yyvsp[0].u.expr); -; - break;} -case 458: -#line 2401 "cppBison.yxx" +} + break; +case 460: +#line 2411 "cppBison.yxx" { yyval.u.expr = new CPPExpression(RSHIFT, yyvsp[-2].u.expr, yyvsp[0].u.expr); -; - break;} -case 459: -#line 2405 "cppBison.yxx" +} + break; +case 461: +#line 2415 "cppBison.yxx" { yyval.u.expr = new CPPExpression('?', yyvsp[-4].u.expr, yyvsp[-2].u.expr, yyvsp[0].u.expr); -; - break;} -case 460: -#line 2409 "cppBison.yxx" +} + break; +case 462: +#line 2419 "cppBison.yxx" { yyval.u.expr = new CPPExpression('[', yyvsp[-3].u.expr, yyvsp[-1].u.expr); -; - break;} -case 461: -#line 2413 "cppBison.yxx" +} + break; +case 463: +#line 2423 "cppBison.yxx" { yyval.u.expr = new CPPExpression('f', yyvsp[-3].u.expr, yyvsp[-1].u.expr); -; - break;} -case 462: -#line 2417 "cppBison.yxx" +} + break; +case 464: +#line 2427 "cppBison.yxx" { yyval.u.expr = new CPPExpression('f', yyvsp[-2].u.expr); -; - break;} -case 463: -#line 2421 "cppBison.yxx" +} + break; +case 465: +#line 2431 "cppBison.yxx" { yyval.u.expr = new CPPExpression('.', yyvsp[-2].u.expr, yyvsp[0].u.expr); -; - break;} -case 464: -#line 2425 "cppBison.yxx" +} + break; +case 466: +#line 2435 "cppBison.yxx" { yyval.u.expr = new CPPExpression(POINTSAT, yyvsp[-2].u.expr, yyvsp[0].u.expr); -; - break;} -case 465: -#line 2429 "cppBison.yxx" +} + break; +case 467: +#line 2439 "cppBison.yxx" { yyval.u.expr = yyvsp[-1].u.expr; -; - break;} -case 466: -#line 2436 "cppBison.yxx" +} + break; +case 468: +#line 2446 "cppBison.yxx" { yyval.u.expr = new CPPExpression(yyvsp[0].u.integer); -; - break;} -case 467: -#line 2440 "cppBison.yxx" +} + break; +case 469: +#line 2450 "cppBison.yxx" { yyval.u.expr = new CPPExpression(true); -; - break;} -case 468: -#line 2444 "cppBison.yxx" +} + break; +case 470: +#line 2454 "cppBison.yxx" { yyval.u.expr = new CPPExpression(false); -; - break;} -case 469: -#line 2448 "cppBison.yxx" +} + break; +case 471: +#line 2458 "cppBison.yxx" { yyval.u.expr = new CPPExpression(yyvsp[0].u.integer); -; - break;} -case 470: -#line 2452 "cppBison.yxx" +} + break; +case 472: +#line 2462 "cppBison.yxx" { yyval.u.expr = new CPPExpression(yyvsp[0].u.real); -; - break;} -case 471: -#line 2456 "cppBison.yxx" +} + break; +case 473: +#line 2466 "cppBison.yxx" { yyval.u.expr = new CPPExpression(yyvsp[0].str); -; - break;} -case 472: -#line 2460 "cppBison.yxx" +} + break; +case 474: +#line 2470 "cppBison.yxx" { yyval.u.expr = new CPPExpression(yyvsp[0].u.identifier, current_scope, global_scope, current_lexer); -; - break;} -case 473: -#line 2467 "cppBison.yxx" +} + break; +case 475: +#line 2477 "cppBison.yxx" { CPPType *type = yyvsp[0].u.identifier->find_type(current_scope, global_scope, true); if (type == NULL) { type = CPPType::new_type(new CPPTBDType(yyvsp[0].u.identifier)); } yyval.u.type = type; -; - break;} -case 474: -#line 2475 "cppBison.yxx" +} + break; +case 476: +#line 2485 "cppBison.yxx" { CPPType *type = yyvsp[0].u.identifier->find_type(current_scope, global_scope, true, current_lexer); if (type == NULL) { type = CPPType::new_type(new CPPTBDType(yyvsp[0].u.identifier)); } yyval.u.type = type; -; - break;} -case 475: -#line 2483 "cppBison.yxx" +} + break; +case 477: +#line 2493 "cppBison.yxx" { yyval.u.type = CPPType::new_type(new CPPTBDType(yyvsp[0].u.identifier)); -; - break;} -case 476: -#line 2506 "cppBison.yxx" -{ - yyval.u.identifier = yyvsp[0].u.identifier; -; - break;} -case 477: -#line 2510 "cppBison.yxx" -{ - yyval.u.identifier = yyvsp[0].u.identifier; -; - break;} +} + break; case 478: -#line 2517 "cppBison.yxx" +#line 2516 "cppBison.yxx" +{ + yyval.u.identifier = yyvsp[0].u.identifier; +} + break; +case 479: +#line 2520 "cppBison.yxx" +{ + yyval.u.identifier = yyvsp[0].u.identifier; +} + break; +case 480: +#line 2527 "cppBison.yxx" { yyval.str = yyvsp[0].str; -; - break;} -case 479: -#line 2521 "cppBison.yxx" +} + break; +case 481: +#line 2531 "cppBison.yxx" { yyval.str = yyvsp[-1].str + yyvsp[0].str; -; - break;} } - /* the action file gets copied in in place of this dollarsign */ -#line 543 "/usr/lib/bison.simple" + break; +} + +#line 705 "/usr/share/bison/bison.simple" + yyvsp -= yylen; yyssp -= yylen; -#ifdef YYLSP_NEEDED +#if YYLSP_NEEDED yylsp -= yylen; #endif -#if YYDEBUG != 0 +#if YYDEBUG if (yydebug) { - short *ssp1 = yyss - 1; - fprintf (stderr, "state stack now"); - while (ssp1 != yyssp) - fprintf (stderr, " %d", *++ssp1); - fprintf (stderr, "\n"); + short *yyssp1 = yyss - 1; + YYFPRINTF (stderr, "state stack now"); + while (yyssp1 != yyssp) + YYFPRINTF (stderr, " %d", *++yyssp1); + YYFPRINTF (stderr, "\n"); } #endif *++yyvsp = yyval; - -#ifdef YYLSP_NEEDED - yylsp++; - if (yylen == 0) - { - yylsp->first_line = yylloc.first_line; - yylsp->first_column = yylloc.first_column; - yylsp->last_line = (yylsp-1)->last_line; - yylsp->last_column = (yylsp-1)->last_column; - yylsp->text = 0; - } - else - { - yylsp->last_line = (yylsp+yylen-1)->last_line; - yylsp->last_column = (yylsp+yylen-1)->last_column; - } +#if YYLSP_NEEDED + *++yylsp = yyloc; #endif - /* 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. */ + /* 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]; @@ -4684,10 +4886,13 @@ case 479: goto yynewstate; -yyerrlab: /* here on detecting error */ - if (! yyerrstatus) - /* If not already recovering from an error, report this error. */ +/*------------------------------------. +| yyerrlab -- here on detecting error | +`------------------------------------*/ +yyerrlab: + /* If not already recovering from an error, report this error. */ + if (!yyerrstatus) { ++yynerrs; @@ -4696,102 +4901,121 @@ yyerrlab: /* here on detecting error */ if (yyn > YYFLAG && yyn < YYLAST) { - int size = 0; - char *msg; - int x, count; + YYSIZE_T yysize = 0; + char *yymsg; + int yyx, yycount; - count = 0; - /* Start X at -yyn if nec to avoid negative indexes in yycheck. */ - for (x = (yyn < 0 ? -yyn : 0); - x < (sizeof(yytname) / sizeof(char *)); x++) - if (yycheck[x + yyn] == x) - size += strlen(yytname[x]) + 15, count++; - msg = (char *) malloc(size + 15); - if (msg != 0) + yycount = 0; + /* Start YYX at -YYN if negative to avoid negative indexes in + YYCHECK. */ + for (yyx = yyn < 0 ? -yyn : 0; + yyx < (int) (sizeof (yytname) / sizeof (char *)); yyx++) + if (yycheck[yyx + yyn] == yyx) + yysize += yystrlen (yytname[yyx]) + 15, yycount++; + yysize += yystrlen ("parse error, unexpected ") + 1; + yysize += yystrlen (yytname[YYTRANSLATE (yychar)]); + yymsg = (char *) YYSTACK_ALLOC (yysize); + if (yymsg != 0) { - strcpy(msg, "parse error"); + char *yyp = yystpcpy (yymsg, "parse error, unexpected "); + yyp = yystpcpy (yyp, yytname[YYTRANSLATE (yychar)]); - if (count < 5) + if (yycount < 5) { - count = 0; - for (x = (yyn < 0 ? -yyn : 0); - x < (sizeof(yytname) / sizeof(char *)); x++) - if (yycheck[x + yyn] == x) + yycount = 0; + for (yyx = yyn < 0 ? -yyn : 0; + yyx < (int) (sizeof (yytname) / sizeof (char *)); + yyx++) + if (yycheck[yyx + yyn] == yyx) { - strcat(msg, count == 0 ? ", expecting `" : " or `"); - strcat(msg, yytname[x]); - strcat(msg, "'"); - count++; + const char *yyq = ! yycount ? ", expecting " : " or "; + yyp = yystpcpy (yyp, yyq); + yyp = yystpcpy (yyp, yytname[yyx]); + yycount++; } } - yyerror(msg); - free(msg); + yyerror (yymsg); + YYSTACK_FREE (yymsg); } else - yyerror ("parse error; also virtual memory exceeded"); + yyerror ("parse error; also virtual memory exhausted"); } else -#endif /* YYERROR_VERBOSE */ - yyerror("parse error"); +#endif /* defined (YYERROR_VERBOSE) */ + yyerror ("parse error"); } - goto yyerrlab1; -yyerrlab1: /* here on error raised explicitly by an action */ + +/*--------------------------------------------------. +| yyerrlab1 -- error raised explicitly by an action | +`--------------------------------------------------*/ +yyerrlab1: if (yyerrstatus == 3) { - /* if just tried and failed to reuse lookahead token after an error, discard it. */ + /* If just tried and failed to reuse lookahead token after an + error, discard it. */ /* return failure if at end of input */ if (yychar == YYEOF) YYABORT; - -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Discarding token %d (%s).\n", yychar, yytname[yychar1]); -#endif - + YYDPRINTF ((stderr, "Discarding token %d (%s).\n", + yychar, yytname[yychar1])); yychar = YYEMPTY; } - /* Else will try to reuse lookahead token - after shifting the error token. */ + /* Else will try to reuse lookahead token after shifting the error + token. */ yyerrstatus = 3; /* Each real token shifted decrements this */ goto yyerrhandle; -yyerrdefault: /* current state does not do anything special for the error token. */ +/*-------------------------------------------------------------------. +| yyerrdefault -- current state does not do anything special for the | +| error token. | +`-------------------------------------------------------------------*/ +yyerrdefault: #if 0 /* This is wrong; only states that explicitly want error tokens should shift them. */ - yyn = yydefact[yystate]; /* If its default is to accept any token, ok. Otherwise pop it.*/ - if (yyn) goto yydefault; + + /* If its default is to accept any token, ok. Otherwise pop it. */ + yyn = yydefact[yystate]; + if (yyn) + goto yydefault; #endif -yyerrpop: /* pop the current state because it cannot handle the error token */ - if (yyssp == yyss) YYABORT; +/*---------------------------------------------------------------. +| yyerrpop -- pop the current state because it cannot handle the | +| error token | +`---------------------------------------------------------------*/ +yyerrpop: + if (yyssp == yyss) + YYABORT; yyvsp--; yystate = *--yyssp; -#ifdef YYLSP_NEEDED +#if YYLSP_NEEDED yylsp--; #endif -#if YYDEBUG != 0 +#if YYDEBUG if (yydebug) { - short *ssp1 = yyss - 1; - fprintf (stderr, "Error: state stack now"); - while (ssp1 != yyssp) - fprintf (stderr, " %d", *++ssp1); - fprintf (stderr, "\n"); + short *yyssp1 = yyss - 1; + YYFPRINTF (stderr, "Error: state stack now"); + while (yyssp1 != yyssp) + YYFPRINTF (stderr, " %d", *++yyssp1); + YYFPRINTF (stderr, "\n"); } #endif +/*--------------. +| yyerrhandle. | +`--------------*/ yyerrhandle: - yyn = yypact[yystate]; if (yyn == YYFLAG) goto yyerrdefault; @@ -4814,41 +5038,44 @@ yyerrhandle: if (yyn == YYFINAL) YYACCEPT; -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Shifting error token, "); -#endif + YYDPRINTF ((stderr, "Shifting error token, ")); *++yyvsp = yylval; -#ifdef YYLSP_NEEDED +#if YYLSP_NEEDED *++yylsp = yylloc; #endif yystate = yyn; goto yynewstate; - yyacceptlab: - /* YYACCEPT comes here. */ - if (yyfree_stacks) - { - free (yyss); - free (yyvs); -#ifdef YYLSP_NEEDED - free (yyls); -#endif - } - return 0; - yyabortlab: - /* YYABORT comes here. */ - if (yyfree_stacks) - { - free (yyss); - free (yyvs); -#ifdef YYLSP_NEEDED - free (yyls); +/*-------------------------------------. +| yyacceptlab -- YYACCEPT comes here. | +`-------------------------------------*/ +yyacceptlab: + yyresult = 0; + goto yyreturn; + +/*-----------------------------------. +| yyabortlab -- YYABORT comes here. | +`-----------------------------------*/ +yyabortlab: + yyresult = 1; + goto yyreturn; + +/*---------------------------------------------. +| yyoverflowab -- parser overflow comes here. | +`---------------------------------------------*/ +yyoverflowlab: + yyerror ("parser stack overflow"); + yyresult = 2; + /* Fall through. */ + +yyreturn: +#ifndef yyoverflow + if (yyss != yyssa) + YYSTACK_FREE (yyss); #endif - } - return 1; + return yyresult; } -#line 2528 "cppBison.yxx" +#line 2538 "cppBison.yxx" diff --git a/dtool/src/cppparser/cppBison.h.prebuilt b/dtool/src/cppparser/cppBison.h.prebuilt index f8d48f7e66..d569ed7e33 100644 --- a/dtool/src/cppparser/cppBison.h.prebuilt +++ b/dtool/src/cppparser/cppBison.h.prebuilt @@ -1,115 +1,118 @@ +#ifndef BISON_Y_TAB_H +# define BISON_Y_TAB_H + #ifndef YYLTYPE -typedef - struct yyltype - { - int timestamp; - int first_line; - int first_column; - int last_line; - int last_column; - char *text; - } - yyltype; +typedef struct yyltype +{ + int first_line; + int first_column; -#define YYLTYPE yyltype + int last_line; + int last_column; +} yyltype; + +# define YYLTYPE yyltype +# define YYLTYPE_IS_TRIVIAL 1 #endif -#define REAL 257 -#define INTEGER 258 -#define CHAR 259 -#define STRING 260 -#define SIMPLE_IDENTIFIER 261 -#define IDENTIFIER 262 -#define TYPENAME_IDENTIFIER 263 -#define SCOPING 264 -#define TYPEDEFNAME 265 -#define ELLIPSIS 266 -#define OROR 267 -#define ANDAND 268 -#define EQCOMPARE 269 -#define NECOMPARE 270 -#define LECOMPARE 271 -#define GECOMPARE 272 -#define LSHIFT 273 -#define RSHIFT 274 -#define POINTSAT_STAR 275 -#define DOT_STAR 276 -#define UNARY 277 -#define UNARY_NOT 278 -#define UNARY_NEGATE 279 -#define UNARY_MINUS 280 -#define UNARY_STAR 281 -#define UNARY_REF 282 -#define POINTSAT 283 -#define SCOPE 284 -#define PLUSPLUS 285 -#define MINUSMINUS 286 -#define TIMESEQUAL 287 -#define DIVIDEEQUAL 288 -#define MODEQUAL 289 -#define PLUSEQUAL 290 -#define MINUSEQUAL 291 -#define OREQUAL 292 -#define ANDEQUAL 293 -#define XOREQUAL 294 -#define LSHIFTEQUAL 295 -#define RSHIFTEQUAL 296 -#define TOKENPASTE 297 -#define KW_BEGIN_PUBLISH 298 -#define KW_BOOL 299 -#define KW_CATCH 300 -#define KW_CHAR 301 -#define KW_CLASS 302 -#define KW_CONST 303 -#define KW_DELETE 304 -#define KW_DOUBLE 305 -#define KW_DYNAMIC_CAST 306 -#define KW_ELSE 307 -#define KW_END_PUBLISH 308 -#define KW_ENUM 309 -#define KW_EXTERN 310 -#define KW_EXPLICIT 311 -#define KW_PUBLISHED 312 -#define KW_FALSE 313 -#define KW_FLOAT 314 -#define KW_FRIEND 315 -#define KW_FOR 316 -#define KW_GOTO 317 -#define KW_IF 318 -#define KW_INLINE 319 -#define KW_INT 320 -#define KW_LONG 321 -#define KW_LONGLONG 322 -#define KW_MUTABLE 323 -#define KW_NAMESPACE 324 -#define KW_NEW 325 -#define KW_OPERATOR 326 -#define KW_PRIVATE 327 -#define KW_PROTECTED 328 -#define KW_PUBLIC 329 -#define KW_REGISTER 330 -#define KW_RETURN 331 -#define KW_SHORT 332 -#define KW_SIGNED 333 -#define KW_SIZEOF 334 -#define KW_STATIC 335 -#define KW_STATIC_CAST 336 -#define KW_STRUCT 337 -#define KW_TEMPLATE 338 -#define KW_THROW 339 -#define KW_TRUE 340 -#define KW_TRY 341 -#define KW_TYPEDEF 342 -#define KW_TYPENAME 343 -#define KW_UNION 344 -#define KW_UNSIGNED 345 -#define KW_USING 346 -#define KW_VIRTUAL 347 -#define KW_VOID 348 -#define KW_VOLATILE 349 -#define KW_WHILE 350 -#define START_CPP 351 -#define START_CONST_EXPR 352 -#define START_TYPE 353 +# define REAL 257 +# define INTEGER 258 +# define CHAR 259 +# define STRING 260 +# define SIMPLE_IDENTIFIER 261 +# define IDENTIFIER 262 +# define TYPENAME_IDENTIFIER 263 +# define SCOPING 264 +# define TYPEDEFNAME 265 +# define ELLIPSIS 266 +# define OROR 267 +# define ANDAND 268 +# define EQCOMPARE 269 +# define NECOMPARE 270 +# define LECOMPARE 271 +# define GECOMPARE 272 +# define LSHIFT 273 +# define RSHIFT 274 +# define POINTSAT_STAR 275 +# define DOT_STAR 276 +# define UNARY 277 +# define UNARY_NOT 278 +# define UNARY_NEGATE 279 +# define UNARY_MINUS 280 +# define UNARY_STAR 281 +# define UNARY_REF 282 +# define POINTSAT 283 +# define SCOPE 284 +# define PLUSPLUS 285 +# define MINUSMINUS 286 +# define TIMESEQUAL 287 +# define DIVIDEEQUAL 288 +# define MODEQUAL 289 +# define PLUSEQUAL 290 +# define MINUSEQUAL 291 +# define OREQUAL 292 +# define ANDEQUAL 293 +# define XOREQUAL 294 +# define LSHIFTEQUAL 295 +# define RSHIFTEQUAL 296 +# define TOKENPASTE 297 +# define KW_BEGIN_PUBLISH 298 +# define KW_BOOL 299 +# define KW_CATCH 300 +# define KW_CHAR 301 +# define KW_CLASS 302 +# define KW_CONST 303 +# define KW_DELETE 304 +# define KW_DOUBLE 305 +# define KW_DYNAMIC_CAST 306 +# define KW_ELSE 307 +# define KW_END_PUBLISH 308 +# define KW_ENUM 309 +# define KW_EXTERN 310 +# define KW_EXPLICIT 311 +# define KW_PUBLISHED 312 +# define KW_FALSE 313 +# define KW_FLOAT 314 +# define KW_FRIEND 315 +# define KW_FOR 316 +# define KW_GOTO 317 +# define KW_IF 318 +# define KW_INLINE 319 +# define KW_INT 320 +# define KW_LONG 321 +# define KW_LONGLONG 322 +# define KW_MUTABLE 323 +# define KW_NAMESPACE 324 +# define KW_NEW 325 +# define KW_OPERATOR 326 +# define KW_PRIVATE 327 +# define KW_PROTECTED 328 +# define KW_PUBLIC 329 +# define KW_REGISTER 330 +# define KW_RETURN 331 +# define KW_SHORT 332 +# define KW_SIGNED 333 +# define KW_SIZEOF 334 +# define KW_STATIC 335 +# define KW_STATIC_CAST 336 +# define KW_STRUCT 337 +# define KW_TEMPLATE 338 +# define KW_THROW 339 +# define KW_TRUE 340 +# define KW_TRY 341 +# define KW_TYPEDEF 342 +# define KW_TYPENAME 343 +# define KW_UNION 344 +# define KW_UNSIGNED 345 +# define KW_USING 346 +# define KW_VIRTUAL 347 +# define KW_VOID 348 +# define KW_VOLATILE 349 +# define KW_WHILE 350 +# define START_CPP 351 +# define START_CONST_EXPR 352 +# define START_TYPE 353 + +#endif /* not BISON_Y_TAB_H */ diff --git a/panda/src/egg/lexer.cxx.prebuilt b/panda/src/egg/lexer.cxx.prebuilt index fd33121ef3..479df099f3 100644 --- a/panda/src/egg/lexer.cxx.prebuilt +++ b/panda/src/egg/lexer.cxx.prebuilt @@ -1124,7 +1124,7 @@ YY_MALLOC_DECL YY_DECL { register yy_state_type yy_current_state; - register char *yy_cp, *yy_bp; + register char *yy_cp = NULL, *yy_bp = NULL; register int yy_act; #line 291 "lexer.lxx" @@ -2544,11 +2544,6 @@ YY_BUFFER_STATE b; } -#ifndef YY_ALWAYS_INTERACTIVE -#ifndef YY_NEVER_INTERACTIVE -extern int isatty YY_PROTO(( int )); -#endif -#endif #ifdef YY_USE_PROTOS void yy_init_buffer( YY_BUFFER_STATE b, FILE *file ) diff --git a/panda/src/egg/parser.cxx.prebuilt b/panda/src/egg/parser.cxx.prebuilt index 3de2f62570..7e5e83182a 100644 --- a/panda/src/egg/parser.cxx.prebuilt +++ b/panda/src/egg/parser.cxx.prebuilt @@ -1,6 +1,5 @@ - -/* A Bison parser, made from parser.yxx - by GNU Bison version 1.28 */ +/* A Bison parser, made from parser.yxx + by GNU bison 1.35. */ #define YYBISON 1 /* Identify Bison output. */ @@ -11,86 +10,86 @@ #define yychar eggyychar #define yydebug eggyydebug #define yynerrs eggyynerrs -#define NUMBER 257 -#define STRING 258 -#define BEZIERCURVE 259 -#define BFACE 260 -#define BILLBOARD 261 -#define BILLBOARDCENTER 262 -#define BUNDLE 263 -#define CLOSED 264 -#define COLLIDE 265 -#define COMMENT 266 -#define COORDSYSTEM 267 -#define CV 268 -#define DART 269 -#define DNORMAL 270 -#define DRGBA 271 -#define DUV 272 -#define DXYZ 273 -#define DCS 274 -#define DISTANCE 275 -#define DTREF 276 -#define DYNAMICVERTEXPOOL 277 -#define EXTERNAL_FILE 278 -#define FLIGHT 279 -#define GROUP 280 -#define HIP 281 -#define INTANGENT 282 -#define JOINT 283 -#define KNOTS 284 -#define INCLUDE 285 -#define INSTANCE 286 -#define LOOP 287 -#define MATERIAL 288 -#define MATRIX3 289 -#define MATRIX4 290 -#define MODEL 291 -#define MREF 292 -#define NORMAL 293 -#define NURBSCURVE 294 -#define NURBSSURFACE 295 -#define OBJECTTYPE 296 -#define ORDER 297 -#define OUTTANGENT 298 -#define POINTLIGHT 299 -#define POLYGON 300 -#define REF 301 -#define RGBA 302 -#define ROTATE 303 -#define ROTX 304 -#define ROTY 305 -#define ROTZ 306 -#define SANIM 307 -#define SCALAR 308 -#define SCALE 309 -#define SEQUENCE 310 -#define SHADING 311 -#define SWITCH 312 -#define SWITCHCONDITION 313 -#define TABLE 314 -#define TABLE_V 315 -#define TEXLIST 316 -#define TEXTURE 317 -#define TLENGTHS 318 -#define TRANSFORM 319 -#define TRANSLATE 320 -#define TREF 321 -#define TRIM 322 -#define TXT 323 -#define UKNOTS 324 -#define UV 325 -#define VKNOTS 326 -#define VERTEX 327 -#define VERTEXANIM 328 -#define VERTEXPOOL 329 -#define VERTEXREF 330 -#define XFMANIM 331 -#define XFMSANIM 332 -#define START_EGG 333 -#define START_GROUP_BODY 334 -#define START_TEXTURE_BODY 335 -#define START_PRIMITIVE_BODY 336 +# define NUMBER 257 +# define STRING 258 +# define BEZIERCURVE 259 +# define BFACE 260 +# define BILLBOARD 261 +# define BILLBOARDCENTER 262 +# define BUNDLE 263 +# define CLOSED 264 +# define COLLIDE 265 +# define COMMENT 266 +# define COORDSYSTEM 267 +# define CV 268 +# define DART 269 +# define DNORMAL 270 +# define DRGBA 271 +# define DUV 272 +# define DXYZ 273 +# define DCS 274 +# define DISTANCE 275 +# define DTREF 276 +# define DYNAMICVERTEXPOOL 277 +# define EXTERNAL_FILE 278 +# define FLIGHT 279 +# define GROUP 280 +# define HIP 281 +# define INTANGENT 282 +# define JOINT 283 +# define KNOTS 284 +# define INCLUDE 285 +# define INSTANCE 286 +# define LOOP 287 +# define MATERIAL 288 +# define MATRIX3 289 +# define MATRIX4 290 +# define MODEL 291 +# define MREF 292 +# define NORMAL 293 +# define NURBSCURVE 294 +# define NURBSSURFACE 295 +# define OBJECTTYPE 296 +# define ORDER 297 +# define OUTTANGENT 298 +# define POINTLIGHT 299 +# define POLYGON 300 +# define REF 301 +# define RGBA 302 +# define ROTATE 303 +# define ROTX 304 +# define ROTY 305 +# define ROTZ 306 +# define SANIM 307 +# define SCALAR 308 +# define SCALE 309 +# define SEQUENCE 310 +# define SHADING 311 +# define SWITCH 312 +# define SWITCHCONDITION 313 +# define TABLE 314 +# define TABLE_V 315 +# define TEXLIST 316 +# define TEXTURE 317 +# define TLENGTHS 318 +# define TRANSFORM 319 +# define TRANSLATE 320 +# define TREF 321 +# define TRIM 322 +# define TXT 323 +# define UKNOTS 324 +# define UV 325 +# define VKNOTS 326 +# define VERTEX 327 +# define VERTEXANIM 328 +# define VERTEXPOOL 329 +# define VERTEXREF 330 +# define XFMANIM 331 +# define XFMSANIM 332 +# define START_EGG 333 +# define START_GROUP_BODY 334 +# define START_TEXTURE_BODY 335 +# define START_PRIMITIVE_BODY 336 #line 6 "parser.yxx" @@ -167,7 +166,6 @@ static int vertex_index; // We need to hold a matrix for a little bit while parsing the // entries. -static LMatrix4d matrix_3d; static LMatrix3d matrix_2d; @@ -199,754 +197,774 @@ egg_cleanup_parser() { materials.clear(); } -#include - -#ifndef __cplusplus -#ifndef __STDC__ -#define const -#endif +#ifndef YYDEBUG +# define YYDEBUG 0 #endif -#define YYFINAL 686 +#define YYFINAL 672 #define YYFLAG -32768 #define YYNTBASE 85 -#define YYTRANSLATE(x) ((unsigned)(x) <= 336 ? yytranslate[x] : 196) +/* YYTRANSLATE(YYLEX) -- Bison token number corresponding to YYLEX. */ +#define YYTRANSLATE(x) ((unsigned)(x) <= 336 ? yytranslate[x] : 194) -static const char 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, 83, 2, 84, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 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, 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 +/* YYTRANSLATE[YYLEX] -- Bison token number corresponding to YYLEX. */ +static const char 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, 83, 2, 84, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 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, 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 }; -#if YYDEBUG != 0 -static const short yyprhs[] = { 0, - 0, 3, 6, 9, 12, 14, 17, 19, 21, 23, - 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, - 45, 50, 56, 57, 65, 67, 74, 77, 78, 85, - 87, 94, 100, 107, 108, 115, 117, 120, 121, 127, - 128, 135, 137, 140, 144, 149, 155, 161, 167, 176, - 185, 188, 196, 204, 208, 217, 226, 231, 241, 251, - 252, 259, 260, 267, 268, 275, 277, 284, 290, 298, - 306, 312, 318, 324, 330, 336, 342, 348, 351, 354, - 357, 360, 362, 364, 367, 368, 374, 376, 379, 382, - 385, 388, 391, 394, 397, 400, 407, 412, 417, 422, - 430, 437, 442, 444, 461, 466, 468, 478, 479, 485, - 487, 490, 493, 496, 499, 505, 510, 516, 521, 523, - 533, 543, 545, 552, 557, 569, 582, 583, 590, 591, - 598, 599, 606, 607, 614, 616, 622, 628, 634, 637, - 643, 649, 655, 662, 664, 670, 676, 682, 685, 691, - 697, 703, 709, 715, 721, 724, 730, 737, 739, 745, - 751, 757, 760, 766, 772, 778, 784, 790, 797, 799, - 801, 803, 807, 816, 825, 830, 840, 850, 852, 861, - 864, 866, 868, 870, 876, 878, 881, 883, 885, 886, - 893, 894, 901, 903, 906, 909, 912, 915, 918, 919, - 926, 928, 935, 941, 942, 949, 951, 958, 964, 965, - 972, 974, 981, 984, 986, 989, 991, 994, 996, 998, - 1000, 1002, 1004, 1006, 1008, 1010, 1012, 1014, 1016, 1018, - 1020, 1022, 1024, 1027, 1029, 1031, 1033, 1035 +#if YYDEBUG +static const short yyprhs[] = +{ + 0, 0, 3, 6, 9, 12, 14, 17, 19, 21, + 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, + 43, 45, 50, 56, 57, 65, 67, 74, 77, 78, + 85, 87, 94, 100, 107, 108, 115, 117, 120, 121, + 127, 128, 135, 137, 140, 144, 149, 155, 161, 167, + 176, 185, 188, 196, 204, 208, 217, 226, 231, 241, + 251, 252, 259, 260, 267, 268, 275, 277, 284, 290, + 298, 306, 312, 318, 324, 330, 336, 342, 348, 351, + 354, 357, 360, 362, 364, 367, 368, 374, 376, 379, + 382, 385, 388, 391, 394, 397, 404, 409, 414, 419, + 427, 434, 439, 444, 446, 463, 464, 470, 472, 475, + 478, 481, 484, 490, 495, 501, 506, 508, 518, 528, + 530, 537, 542, 554, 567, 568, 575, 576, 583, 584, + 591, 592, 599, 601, 607, 613, 619, 622, 628, 634, + 640, 647, 649, 655, 661, 667, 670, 676, 682, 688, + 694, 700, 706, 709, 715, 722, 724, 730, 736, 742, + 745, 751, 757, 763, 769, 775, 782, 784, 786, 788, + 792, 801, 810, 815, 825, 835, 837, 846, 849, 851, + 853, 855, 861, 863, 866, 868, 870, 871, 878, 879, + 886, 888, 891, 894, 897, 900, 903, 904, 911, 913, + 920, 926, 927, 934, 936, 943, 949, 950, 957, 959, + 966, 969, 971, 974, 976, 979, 981, 983, 985, 987, + 989, 991, 993, 995, 997, 999, 1001, 1003, 1005, 1007, + 1009, 1012, 1014, 1016, 1018, 1020 }; - -static const short yyrhs[] = { 79, - 86, 0, 80, 113, 0, 81, 92, 0, 82, 149, - 0, 195, 0, 86, 87, 0, 88, 0, 89, 0, - 90, 0, 93, 0, 96, 0, 97, 0, 107, 0, - 109, 0, 111, 0, 141, 0, 143, 0, 145, 0, - 147, 0, 166, 0, 13, 83, 187, 84, 0, 12, - 186, 83, 190, 84, 0, 0, 63, 185, 83, 187, - 91, 92, 84, 0, 195, 0, 92, 54, 185, 83, - 193, 84, 0, 92, 129, 0, 0, 34, 185, 83, - 94, 95, 84, 0, 195, 0, 95, 54, 185, 83, - 193, 84, 0, 24, 186, 83, 187, 84, 0, 189, - 24, 186, 83, 187, 84, 0, 0, 75, 185, 98, - 83, 99, 84, 0, 195, 0, 99, 100, 0, 0, - 73, 101, 83, 103, 84, 0, 0, 73, 194, 102, - 83, 103, 84, 0, 192, 0, 192, 192, 0, 192, - 192, 192, 0, 192, 192, 192, 192, 0, 103, 71, - 83, 104, 84, 0, 103, 39, 83, 105, 84, 0, - 103, 48, 83, 106, 84, 0, 103, 19, 189, 83, - 192, 192, 192, 84, 0, 103, 19, 83, 189, 192, - 192, 192, 84, 0, 192, 192, 0, 104, 18, 189, - 83, 192, 192, 84, 0, 104, 18, 83, 189, 192, - 192, 84, 0, 192, 192, 192, 0, 105, 16, 189, - 83, 192, 192, 192, 84, 0, 105, 16, 83, 189, - 192, 192, 192, 84, 0, 192, 192, 192, 192, 0, - 106, 17, 189, 83, 192, 192, 192, 192, 84, 0, - 106, 17, 83, 189, 192, 192, 192, 192, 84, 0, - 0, 26, 186, 108, 83, 113, 84, 0, 0, 29, - 186, 110, 83, 113, 84, 0, 0, 32, 186, 112, - 83, 113, 84, 0, 195, 0, 113, 54, 185, 83, - 193, 84, 0, 113, 7, 83, 189, 84, 0, 113, - 8, 83, 192, 192, 192, 84, 0, 113, 11, 186, - 83, 114, 115, 84, 0, 113, 20, 83, 194, 84, - 0, 113, 15, 83, 194, 84, 0, 113, 15, 83, - 4, 84, 0, 113, 58, 83, 194, 84, 0, 113, - 42, 83, 187, 84, 0, 113, 37, 83, 194, 84, - 0, 113, 62, 83, 194, 84, 0, 113, 116, 0, - 113, 137, 0, 113, 139, 0, 113, 87, 0, 189, - 0, 195, 0, 115, 189, 0, 0, 65, 117, 83, - 118, 84, 0, 195, 0, 118, 127, 0, 118, 125, - 0, 118, 119, 0, 118, 120, 0, 118, 121, 0, - 118, 122, 0, 118, 123, 0, 118, 124, 0, 66, - 83, 192, 192, 192, 84, 0, 50, 83, 192, 84, - 0, 51, 83, 192, 84, 0, 52, 83, 192, 84, - 0, 49, 83, 192, 192, 192, 192, 84, 0, 55, - 83, 192, 192, 192, 84, 0, 36, 83, 126, 84, - 0, 195, 0, 192, 192, 192, 192, 192, 192, 192, - 192, 192, 192, 192, 192, 192, 192, 192, 192, 0, - 35, 83, 128, 84, 0, 195, 0, 192, 192, 192, - 192, 192, 192, 192, 192, 192, 0, 0, 65, 130, - 83, 131, 84, 0, 195, 0, 131, 135, 0, 131, - 132, 0, 131, 133, 0, 131, 134, 0, 66, 83, - 192, 192, 84, 0, 49, 83, 192, 84, 0, 55, - 83, 192, 192, 84, 0, 35, 83, 136, 84, 0, - 195, 0, 192, 192, 192, 192, 192, 192, 192, 192, - 192, 0, 76, 83, 180, 138, 47, 83, 184, 84, - 84, 0, 195, 0, 138, 54, 185, 83, 193, 84, - 0, 59, 83, 140, 84, 0, 21, 83, 192, 192, - 73, 83, 192, 192, 192, 84, 84, 0, 21, 83, - 192, 192, 192, 73, 83, 192, 192, 192, 84, 84, - 0, 0, 46, 186, 142, 83, 149, 84, 0, 0, - 45, 186, 144, 83, 149, 84, 0, 0, 41, 186, - 146, 83, 150, 84, 0, 0, 40, 186, 148, 83, - 151, 84, 0, 195, 0, 149, 67, 83, 152, 84, - 0, 149, 63, 83, 153, 84, 0, 149, 38, 83, - 154, 84, 0, 149, 158, 0, 149, 39, 83, 155, - 84, 0, 149, 48, 83, 156, 84, 0, 149, 6, - 83, 157, 84, 0, 149, 54, 185, 83, 193, 84, - 0, 195, 0, 150, 67, 83, 152, 84, 0, 150, - 63, 83, 153, 84, 0, 150, 38, 83, 154, 84, - 0, 150, 158, 0, 150, 39, 83, 155, 84, 0, - 150, 48, 83, 156, 84, 0, 150, 6, 83, 157, - 84, 0, 150, 43, 83, 159, 84, 0, 150, 70, - 83, 160, 84, 0, 150, 72, 83, 161, 84, 0, - 150, 147, 0, 150, 68, 83, 162, 84, 0, 150, - 54, 185, 83, 193, 84, 0, 195, 0, 151, 67, - 83, 152, 84, 0, 151, 63, 83, 153, 84, 0, - 151, 38, 83, 154, 84, 0, 151, 158, 0, 151, - 39, 83, 155, 84, 0, 151, 48, 83, 156, 84, - 0, 151, 6, 83, 157, 84, 0, 151, 43, 83, - 164, 84, 0, 151, 30, 83, 165, 84, 0, 151, - 54, 185, 83, 193, 84, 0, 182, 0, 185, 0, - 183, 0, 192, 192, 192, 0, 155, 16, 189, 83, - 192, 192, 192, 84, 0, 155, 16, 83, 189, 192, - 192, 192, 84, 0, 192, 192, 192, 192, 0, 156, - 17, 189, 83, 192, 192, 192, 192, 84, 0, 156, - 17, 83, 189, 192, 192, 192, 192, 84, 0, 194, - 0, 76, 83, 180, 47, 83, 184, 84, 84, 0, - 194, 194, 0, 181, 0, 181, 0, 195, 0, 162, - 33, 83, 163, 84, 0, 195, 0, 163, 147, 0, - 194, 0, 181, 0, 0, 60, 186, 167, 83, 170, - 84, 0, 0, 9, 186, 169, 83, 170, 84, 0, - 195, 0, 170, 166, 0, 170, 168, 0, 170, 171, - 0, 170, 174, 0, 170, 177, 0, 0, 53, 186, - 172, 83, 173, 84, 0, 195, 0, 173, 54, 185, - 83, 193, 84, 0, 173, 61, 83, 181, 84, 0, - 0, 77, 186, 175, 83, 176, 84, 0, 195, 0, - 176, 54, 185, 83, 193, 84, 0, 176, 61, 83, - 181, 84, 0, 0, 78, 186, 178, 83, 179, 84, - 0, 195, 0, 179, 54, 185, 83, 193, 84, 0, - 179, 171, 0, 195, 0, 180, 194, 0, 195, 0, - 181, 192, 0, 185, 0, 185, 0, 185, 0, 195, - 0, 189, 0, 188, 0, 195, 0, 189, 0, 195, - 0, 189, 0, 3, 0, 4, 0, 195, 0, 191, - 0, 189, 0, 191, 189, 0, 3, 0, 3, 0, - 4, 0, 3, 0, 0 +static const short yyrhs[] = +{ + 79, 86, 0, 80, 113, 0, 81, 92, 0, 82, + 147, 0, 193, 0, 86, 87, 0, 88, 0, 89, + 0, 90, 0, 93, 0, 96, 0, 97, 0, 107, + 0, 109, 0, 111, 0, 139, 0, 141, 0, 143, + 0, 145, 0, 164, 0, 13, 83, 185, 84, 0, + 12, 184, 83, 188, 84, 0, 0, 63, 183, 83, + 185, 91, 92, 84, 0, 193, 0, 92, 54, 183, + 83, 191, 84, 0, 92, 127, 0, 0, 34, 183, + 83, 94, 95, 84, 0, 193, 0, 95, 54, 183, + 83, 191, 84, 0, 24, 184, 83, 185, 84, 0, + 187, 24, 184, 83, 185, 84, 0, 0, 75, 183, + 98, 83, 99, 84, 0, 193, 0, 99, 100, 0, + 0, 73, 101, 83, 103, 84, 0, 0, 73, 192, + 102, 83, 103, 84, 0, 190, 0, 190, 190, 0, + 190, 190, 190, 0, 190, 190, 190, 190, 0, 103, + 71, 83, 104, 84, 0, 103, 39, 83, 105, 84, + 0, 103, 48, 83, 106, 84, 0, 103, 19, 187, + 83, 190, 190, 190, 84, 0, 103, 19, 83, 187, + 190, 190, 190, 84, 0, 190, 190, 0, 104, 18, + 187, 83, 190, 190, 84, 0, 104, 18, 83, 187, + 190, 190, 84, 0, 190, 190, 190, 0, 105, 16, + 187, 83, 190, 190, 190, 84, 0, 105, 16, 83, + 187, 190, 190, 190, 84, 0, 190, 190, 190, 190, + 0, 106, 17, 187, 83, 190, 190, 190, 190, 84, + 0, 106, 17, 83, 187, 190, 190, 190, 190, 84, + 0, 0, 26, 184, 108, 83, 113, 84, 0, 0, + 29, 184, 110, 83, 113, 84, 0, 0, 32, 184, + 112, 83, 113, 84, 0, 193, 0, 113, 54, 183, + 83, 191, 84, 0, 113, 7, 83, 187, 84, 0, + 113, 8, 83, 190, 190, 190, 84, 0, 113, 11, + 184, 83, 114, 115, 84, 0, 113, 20, 83, 192, + 84, 0, 113, 15, 83, 192, 84, 0, 113, 15, + 83, 4, 84, 0, 113, 58, 83, 192, 84, 0, + 113, 42, 83, 185, 84, 0, 113, 37, 83, 192, + 84, 0, 113, 62, 83, 192, 84, 0, 113, 116, + 0, 113, 135, 0, 113, 137, 0, 113, 87, 0, + 187, 0, 193, 0, 115, 187, 0, 0, 65, 117, + 83, 118, 84, 0, 193, 0, 118, 119, 0, 118, + 120, 0, 118, 121, 0, 118, 122, 0, 118, 123, + 0, 118, 124, 0, 118, 125, 0, 66, 83, 190, + 190, 190, 84, 0, 50, 83, 190, 84, 0, 51, + 83, 190, 84, 0, 52, 83, 190, 84, 0, 49, + 83, 190, 190, 190, 190, 84, 0, 55, 83, 190, + 190, 190, 84, 0, 55, 83, 190, 84, 0, 36, + 83, 126, 84, 0, 193, 0, 190, 190, 190, 190, + 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, + 190, 190, 0, 0, 65, 128, 83, 129, 84, 0, + 193, 0, 129, 133, 0, 129, 130, 0, 129, 131, + 0, 129, 132, 0, 66, 83, 190, 190, 84, 0, + 49, 83, 190, 84, 0, 55, 83, 190, 190, 84, + 0, 35, 83, 134, 84, 0, 193, 0, 190, 190, + 190, 190, 190, 190, 190, 190, 190, 0, 76, 83, + 178, 136, 47, 83, 182, 84, 84, 0, 193, 0, + 136, 54, 183, 83, 191, 84, 0, 59, 83, 138, + 84, 0, 21, 83, 190, 190, 73, 83, 190, 190, + 190, 84, 84, 0, 21, 83, 190, 190, 190, 73, + 83, 190, 190, 190, 84, 84, 0, 0, 46, 184, + 140, 83, 147, 84, 0, 0, 45, 184, 142, 83, + 147, 84, 0, 0, 41, 184, 144, 83, 148, 84, + 0, 0, 40, 184, 146, 83, 149, 84, 0, 193, + 0, 147, 67, 83, 150, 84, 0, 147, 63, 83, + 151, 84, 0, 147, 38, 83, 152, 84, 0, 147, + 156, 0, 147, 39, 83, 153, 84, 0, 147, 48, + 83, 154, 84, 0, 147, 6, 83, 155, 84, 0, + 147, 54, 183, 83, 191, 84, 0, 193, 0, 148, + 67, 83, 150, 84, 0, 148, 63, 83, 151, 84, + 0, 148, 38, 83, 152, 84, 0, 148, 156, 0, + 148, 39, 83, 153, 84, 0, 148, 48, 83, 154, + 84, 0, 148, 6, 83, 155, 84, 0, 148, 43, + 83, 157, 84, 0, 148, 70, 83, 158, 84, 0, + 148, 72, 83, 159, 84, 0, 148, 145, 0, 148, + 68, 83, 160, 84, 0, 148, 54, 183, 83, 191, + 84, 0, 193, 0, 149, 67, 83, 150, 84, 0, + 149, 63, 83, 151, 84, 0, 149, 38, 83, 152, + 84, 0, 149, 156, 0, 149, 39, 83, 153, 84, + 0, 149, 48, 83, 154, 84, 0, 149, 6, 83, + 155, 84, 0, 149, 43, 83, 162, 84, 0, 149, + 30, 83, 163, 84, 0, 149, 54, 183, 83, 191, + 84, 0, 180, 0, 183, 0, 181, 0, 190, 190, + 190, 0, 153, 16, 187, 83, 190, 190, 190, 84, + 0, 153, 16, 83, 187, 190, 190, 190, 84, 0, + 190, 190, 190, 190, 0, 154, 17, 187, 83, 190, + 190, 190, 190, 84, 0, 154, 17, 83, 187, 190, + 190, 190, 190, 84, 0, 192, 0, 76, 83, 178, + 47, 83, 182, 84, 84, 0, 192, 192, 0, 179, + 0, 179, 0, 193, 0, 160, 33, 83, 161, 84, + 0, 193, 0, 161, 145, 0, 192, 0, 179, 0, + 0, 60, 184, 165, 83, 168, 84, 0, 0, 9, + 184, 167, 83, 168, 84, 0, 193, 0, 168, 164, + 0, 168, 166, 0, 168, 169, 0, 168, 172, 0, + 168, 175, 0, 0, 53, 184, 170, 83, 171, 84, + 0, 193, 0, 171, 54, 183, 83, 191, 84, 0, + 171, 61, 83, 179, 84, 0, 0, 77, 184, 173, + 83, 174, 84, 0, 193, 0, 174, 54, 183, 83, + 191, 84, 0, 174, 61, 83, 179, 84, 0, 0, + 78, 184, 176, 83, 177, 84, 0, 193, 0, 177, + 54, 183, 83, 191, 84, 0, 177, 169, 0, 193, + 0, 178, 192, 0, 193, 0, 179, 190, 0, 183, + 0, 183, 0, 183, 0, 193, 0, 187, 0, 186, + 0, 193, 0, 187, 0, 193, 0, 187, 0, 3, + 0, 4, 0, 193, 0, 189, 0, 187, 0, 189, + 187, 0, 3, 0, 3, 0, 4, 0, 3, 0, + 0 }; #endif -#if YYDEBUG != 0 -static const short yyrline[] = { 0, - 179, 181, 182, 183, 193, 195, 209, 211, 212, 213, - 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, - 233, 256, 270, 284, 298, 300, 404, 414, 427, 441, - 443, 537, 545, 564, 577, 592, 594, 604, 609, 616, - 641, 661, 666, 670, 674, 678, 679, 680, 681, 689, - 707, 712, 720, 737, 742, 750, 767, 772, 780, 797, - 803, 817, 824, 838, 845, 859, 861, 914, 926, 931, - 938, 944, 951, 964, 970, 976, 982, 988, 989, 990, - 991, 1004, 1026, 1028, 1049, 1054, 1068, 1070, 1071, 1072, - 1073, 1074, 1075, 1076, 1077, 1080, 1086, 1092, 1098, 1104, - 1110, 1116, 1120, 1122, 1134, 1137, 1139, 1157, 1162, 1176, - 1178, 1179, 1180, 1181, 1184, 1190, 1196, 1202, 1205, 1207, - 1225, 1258, 1263, 1287, 1299, 1305, 1321, 1326, 1340, 1345, - 1359, 1364, 1378, 1383, 1398, 1400, 1401, 1402, 1403, 1404, - 1405, 1406, 1407, 1455, 1457, 1458, 1459, 1460, 1461, 1462, - 1463, 1464, 1465, 1466, 1467, 1473, 1474, 1527, 1529, 1530, - 1531, 1532, 1533, 1534, 1535, 1536, 1537, 1538, 1596, 1613, - 1653, 1670, 1675, 1683, 1700, 1705, 1713, 1730, 1746, 1777, - 1795, 1815, 1835, 1841, 1851, 1858, 1876, 1892, 1913, 1920, - 1935, 1942, 1957, 1959, 1963, 1967, 1971, 1975, 1989, 1995, - 2010, 2012, 2024, 2037, 2043, 2058, 2060, 2077, 2090, 2096, - 2111, 2113, 2128, 2142, 2147, 2160, 2165, 2178, 2199, 2220, - 2242, 2248, 2259, 2271, 2277, 2287, 2292, 2305, 2310, 2322, - 2327, 2342, 2347, 2360, 2371, 2377, 2392, 2403 +#if YYDEBUG +/* YYRLINE[YYN] -- source line where rule number YYN was defined. */ +static const short yyrline[] = +{ + 0, 178, 180, 181, 182, 192, 194, 208, 210, 211, + 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, + 222, 232, 255, 269, 269, 297, 299, 403, 413, 413, + 440, 442, 536, 544, 563, 563, 591, 593, 603, 603, + 615, 615, 660, 665, 669, 673, 677, 678, 679, 680, + 688, 706, 711, 719, 736, 741, 749, 766, 771, 779, + 796, 796, 816, 816, 837, 837, 858, 860, 913, 925, + 930, 937, 943, 950, 963, 969, 975, 981, 987, 988, + 989, 990, 1003, 1025, 1027, 1048, 1048, 1064, 1066, 1067, + 1068, 1069, 1070, 1071, 1072, 1075, 1081, 1087, 1093, 1099, + 1105, 1109, 1115, 1119, 1121, 1142, 1142, 1161, 1163, 1164, + 1165, 1166, 1169, 1175, 1181, 1187, 1190, 1192, 1210, 1243, + 1248, 1272, 1284, 1290, 1306, 1306, 1325, 1325, 1344, 1344, + 1363, 1363, 1383, 1385, 1386, 1387, 1388, 1389, 1390, 1391, + 1392, 1440, 1442, 1443, 1444, 1445, 1446, 1447, 1448, 1449, + 1450, 1451, 1452, 1458, 1459, 1512, 1514, 1515, 1516, 1517, + 1518, 1519, 1520, 1521, 1522, 1523, 1581, 1598, 1638, 1655, + 1660, 1668, 1685, 1690, 1698, 1715, 1731, 1762, 1780, 1800, + 1820, 1826, 1836, 1843, 1861, 1877, 1898, 1898, 1920, 1920, + 1942, 1944, 1948, 1952, 1956, 1960, 1974, 1974, 1995, 1997, + 2009, 2022, 2022, 2043, 2045, 2062, 2075, 2075, 2096, 2098, + 2113, 2127, 2132, 2145, 2150, 2163, 2184, 2205, 2227, 2233, + 2244, 2256, 2262, 2272, 2277, 2290, 2295, 2307, 2312, 2327, + 2332, 2345, 2356, 2362, 2377, 2388 }; #endif -#if YYDEBUG != 0 || defined (YYERROR_VERBOSE) +#if (YYDEBUG) || defined YYERROR_VERBOSE -static const char * const yytname[] = { "$","error","$undefined.","NUMBER", -"STRING","BEZIERCURVE","BFACE","BILLBOARD","BILLBOARDCENTER","BUNDLE","CLOSED", -"COLLIDE","COMMENT","COORDSYSTEM","CV","DART","DNORMAL","DRGBA","DUV","DXYZ", -"DCS","DISTANCE","DTREF","DYNAMICVERTEXPOOL","EXTERNAL_FILE","FLIGHT","GROUP", -"HIP","INTANGENT","JOINT","KNOTS","INCLUDE","INSTANCE","LOOP","MATERIAL","MATRIX3", -"MATRIX4","MODEL","MREF","NORMAL","NURBSCURVE","NURBSSURFACE","OBJECTTYPE","ORDER", -"OUTTANGENT","POINTLIGHT","POLYGON","REF","RGBA","ROTATE","ROTX","ROTY","ROTZ", -"SANIM","SCALAR","SCALE","SEQUENCE","SHADING","SWITCH","SWITCHCONDITION","TABLE", -"TABLE_V","TEXLIST","TEXTURE","TLENGTHS","TRANSFORM","TRANSLATE","TREF","TRIM", -"TXT","UKNOTS","UV","VKNOTS","VERTEX","VERTEXANIM","VERTEXPOOL","VERTEXREF", -"XFMANIM","XFMSANIM","START_EGG","START_GROUP_BODY","START_TEXTURE_BODY","START_PRIMITIVE_BODY", -"'{'","'}'","grammar","egg","node","coordsystem","comment","texture","@1","texture_body", -"material","@2","material_body","external_reference","vertex_pool","@3","vertex_pool_body", -"vertex","@4","@5","vertex_body","vertex_uv_body","vertex_normal_body","vertex_color_body", -"group","@6","joint","@7","instance","@8","group_body","cs_type","collide_flags", -"transform_3d","@9","transform_3d_body","translate_3d","rotx_3d","roty_3d","rotz_3d", -"rotate_3d","scale_3d","matrix4_3d","matrix4_3d_body","matrix3_3d","matrix3_3d_body", -"transform_2d","@10","transform_2d_body","translate_2d","rotate_2d","scale_2d", -"matrix3_2d","matrix3_2d_body","group_vertex_ref","group_vertex_membership", -"switchcondition","switchcondition_body","polygon","@11","point_light","@12", -"nurbs_surface","@13","nurbs_curve","@14","primitive_body","nurbs_surface_body", -"nurbs_curve_body","primitive_tref_body","primitive_texture_body","primitive_material_body", -"primitive_normal_body","primitive_color_body","primitive_bface_body","primitive_vertex_ref", -"nurbs_surface_order_body","nurbs_surface_uknots_body","nurbs_surface_vknots_body", -"nurbs_surface_trim_body","nurbs_surface_trim_loop_body","nurbs_curve_order_body", -"nurbs_curve_knots_body","table","@15","bundle","@16","table_body","sanim","@17", -"sanim_body","xfmanim","@18","xfmanim_body","xfm_s_anim","@19","xfm_s_anim_body", -"integer_list","real_list","texture_name","material_name","vertex_pool_name", -"required_name","optional_name","required_string","optional_string","string", -"repeated_string","repeated_string_body","real","real_or_string","integer","empty", NULL +/* YYTNAME[TOKEN_NUM] -- String name of the token TOKEN_NUM. */ +static const char *const yytname[] = +{ + "$", "error", "$undefined.", "NUMBER", "STRING", "BEZIERCURVE", "BFACE", + "BILLBOARD", "BILLBOARDCENTER", "BUNDLE", "CLOSED", "COLLIDE", + "COMMENT", "COORDSYSTEM", "CV", "DART", "DNORMAL", "DRGBA", "DUV", + "DXYZ", "DCS", "DISTANCE", "DTREF", "DYNAMICVERTEXPOOL", + "EXTERNAL_FILE", "FLIGHT", "GROUP", "HIP", "INTANGENT", "JOINT", + "KNOTS", "INCLUDE", "INSTANCE", "LOOP", "MATERIAL", "MATRIX3", + "MATRIX4", "MODEL", "MREF", "NORMAL", "NURBSCURVE", "NURBSSURFACE", + "OBJECTTYPE", "ORDER", "OUTTANGENT", "POINTLIGHT", "POLYGON", "REF", + "RGBA", "ROTATE", "ROTX", "ROTY", "ROTZ", "SANIM", "SCALAR", "SCALE", + "SEQUENCE", "SHADING", "SWITCH", "SWITCHCONDITION", "TABLE", "TABLE_V", + "TEXLIST", "TEXTURE", "TLENGTHS", "TRANSFORM", "TRANSLATE", "TREF", + "TRIM", "TXT", "UKNOTS", "UV", "VKNOTS", "VERTEX", "VERTEXANIM", + "VERTEXPOOL", "VERTEXREF", "XFMANIM", "XFMSANIM", "START_EGG", + "START_GROUP_BODY", "START_TEXTURE_BODY", "START_PRIMITIVE_BODY", "'{'", + "'}'", "grammar", "egg", "node", "coordsystem", "comment", "texture", + "@1", "texture_body", "material", "@2", "material_body", + "external_reference", "vertex_pool", "@3", "vertex_pool_body", "vertex", + "@4", "@5", "vertex_body", "vertex_uv_body", "vertex_normal_body", + "vertex_color_body", "group", "@6", "joint", "@7", "instance", "@8", + "group_body", "cs_type", "collide_flags", "transform_3d", "@9", + "transform_3d_body", "translate_3d", "rotx_3d", "roty_3d", "rotz_3d", + "rotate_3d", "scale_3d", "matrix4_3d", "matrix4_3d_body", + "transform_2d", "@10", "transform_2d_body", "translate_2d", "rotate_2d", + "scale_2d", "matrix3_2d", "matrix3_2d_body", "group_vertex_ref", + "group_vertex_membership", "switchcondition", "switchcondition_body", + "polygon", "@11", "point_light", "@12", "nurbs_surface", "@13", + "nurbs_curve", "@14", "primitive_body", "nurbs_surface_body", + "nurbs_curve_body", "primitive_tref_body", "primitive_texture_body", + "primitive_material_body", "primitive_normal_body", + "primitive_color_body", "primitive_bface_body", "primitive_vertex_ref", + "nurbs_surface_order_body", "nurbs_surface_uknots_body", + "nurbs_surface_vknots_body", "nurbs_surface_trim_body", + "nurbs_surface_trim_loop_body", "nurbs_curve_order_body", + "nurbs_curve_knots_body", "table", "@15", "bundle", "@16", "table_body", + "sanim", "@17", "sanim_body", "xfmanim", "@18", "xfmanim_body", + "xfm_s_anim", "@19", "xfm_s_anim_body", "integer_list", "real_list", + "texture_name", "material_name", "vertex_pool_name", "required_name", + "optional_name", "required_string", "optional_string", "string", + "repeated_string", "repeated_string_body", "real", "real_or_string", + "integer", "empty", 0 }; #endif -static const short yyr1[] = { 0, - 85, 85, 85, 85, 86, 86, 87, 87, 87, 87, - 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, - 88, 89, 91, 90, 92, 92, 92, 94, 93, 95, - 95, 96, 96, 98, 97, 99, 99, 101, 100, 102, - 100, 103, 103, 103, 103, 103, 103, 103, 103, 103, - 104, 104, 104, 105, 105, 105, 106, 106, 106, 108, - 107, 110, 109, 112, 111, 113, 113, 113, 113, 113, - 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, - 113, 114, 115, 115, 117, 116, 118, 118, 118, 118, - 118, 118, 118, 118, 118, 119, 120, 121, 122, 123, - 124, 125, 126, 126, 127, 128, 128, 130, 129, 131, - 131, 131, 131, 131, 132, 133, 134, 135, 136, 136, - 137, 138, 138, 139, 140, 140, 142, 141, 144, 143, - 146, 145, 148, 147, 149, 149, 149, 149, 149, 149, - 149, 149, 149, 150, 150, 150, 150, 150, 150, 150, - 150, 150, 150, 150, 150, 150, 150, 151, 151, 151, - 151, 151, 151, 151, 151, 151, 151, 151, 152, 153, - 154, 155, 155, 155, 156, 156, 156, 157, 158, 159, - 160, 161, 162, 162, 163, 163, 164, 165, 167, 166, - 169, 168, 170, 170, 170, 170, 170, 170, 172, 171, - 173, 173, 173, 175, 174, 176, 176, 176, 178, 177, - 179, 179, 179, 180, 180, 181, 181, 182, 183, 184, - 185, 185, 186, 187, 187, 188, 188, 189, 189, 190, - 190, 191, 191, 192, 193, 193, 194, 195 +/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ +static const short yyr1[] = +{ + 0, 85, 85, 85, 85, 86, 86, 87, 87, 87, + 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, + 87, 88, 89, 91, 90, 92, 92, 92, 94, 93, + 95, 95, 96, 96, 98, 97, 99, 99, 101, 100, + 102, 100, 103, 103, 103, 103, 103, 103, 103, 103, + 103, 104, 104, 104, 105, 105, 105, 106, 106, 106, + 108, 107, 110, 109, 112, 111, 113, 113, 113, 113, + 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, + 113, 113, 114, 115, 115, 117, 116, 118, 118, 118, + 118, 118, 118, 118, 118, 119, 120, 121, 122, 123, + 124, 124, 125, 126, 126, 128, 127, 129, 129, 129, + 129, 129, 130, 131, 132, 133, 134, 134, 135, 136, + 136, 137, 138, 138, 140, 139, 142, 141, 144, 143, + 146, 145, 147, 147, 147, 147, 147, 147, 147, 147, + 147, 148, 148, 148, 148, 148, 148, 148, 148, 148, + 148, 148, 148, 148, 148, 149, 149, 149, 149, 149, + 149, 149, 149, 149, 149, 149, 150, 151, 152, 153, + 153, 153, 154, 154, 154, 155, 156, 157, 158, 159, + 160, 160, 161, 161, 162, 163, 165, 164, 167, 166, + 168, 168, 168, 168, 168, 168, 170, 169, 171, 171, + 171, 173, 172, 174, 174, 174, 176, 175, 177, 177, + 177, 178, 178, 179, 179, 180, 181, 182, 183, 183, + 184, 185, 185, 186, 186, 187, 187, 188, 188, 189, + 189, 190, 191, 191, 192, 193 }; -static const short yyr2[] = { 0, - 2, 2, 2, 2, 1, 2, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 4, 5, 0, 7, 1, 6, 2, 0, 6, 1, - 6, 5, 6, 0, 6, 1, 2, 0, 5, 0, - 6, 1, 2, 3, 4, 5, 5, 5, 8, 8, - 2, 7, 7, 3, 8, 8, 4, 9, 9, 0, - 6, 0, 6, 0, 6, 1, 6, 5, 7, 7, - 5, 5, 5, 5, 5, 5, 5, 2, 2, 2, - 2, 1, 1, 2, 0, 5, 1, 2, 2, 2, - 2, 2, 2, 2, 2, 6, 4, 4, 4, 7, - 6, 4, 1, 16, 4, 1, 9, 0, 5, 1, - 2, 2, 2, 2, 5, 4, 5, 4, 1, 9, - 9, 1, 6, 4, 11, 12, 0, 6, 0, 6, - 0, 6, 0, 6, 1, 5, 5, 5, 2, 5, - 5, 5, 6, 1, 5, 5, 5, 2, 5, 5, - 5, 5, 5, 5, 2, 5, 6, 1, 5, 5, - 5, 2, 5, 5, 5, 5, 5, 6, 1, 1, - 1, 3, 8, 8, 4, 9, 9, 1, 8, 2, - 1, 1, 1, 5, 1, 2, 1, 1, 0, 6, - 0, 6, 1, 2, 2, 2, 2, 2, 0, 6, - 1, 6, 5, 0, 6, 1, 6, 5, 0, 6, - 1, 6, 2, 1, 2, 1, 2, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 2, 1, 1, 1, 1, 0 +/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ +static const short yyr2[] = +{ + 0, 2, 2, 2, 2, 1, 2, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 4, 5, 0, 7, 1, 6, 2, 0, 6, + 1, 6, 5, 6, 0, 6, 1, 2, 0, 5, + 0, 6, 1, 2, 3, 4, 5, 5, 5, 8, + 8, 2, 7, 7, 3, 8, 8, 4, 9, 9, + 0, 6, 0, 6, 0, 6, 1, 6, 5, 7, + 7, 5, 5, 5, 5, 5, 5, 5, 2, 2, + 2, 2, 1, 1, 2, 0, 5, 1, 2, 2, + 2, 2, 2, 2, 2, 6, 4, 4, 4, 7, + 6, 4, 4, 1, 16, 0, 5, 1, 2, 2, + 2, 2, 5, 4, 5, 4, 1, 9, 9, 1, + 6, 4, 11, 12, 0, 6, 0, 6, 0, 6, + 0, 6, 1, 5, 5, 5, 2, 5, 5, 5, + 6, 1, 5, 5, 5, 2, 5, 5, 5, 5, + 5, 5, 2, 5, 6, 1, 5, 5, 5, 2, + 5, 5, 5, 5, 5, 6, 1, 1, 1, 3, + 8, 8, 4, 9, 9, 1, 8, 2, 1, 1, + 1, 5, 1, 2, 1, 1, 0, 6, 0, 6, + 1, 2, 2, 2, 2, 2, 0, 6, 1, 6, + 5, 0, 6, 1, 6, 5, 0, 6, 1, 6, + 2, 1, 2, 1, 2, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 2, 1, 1, 1, 1, 0 }; -static const short yydefact[] = { 0, - 238, 238, 238, 238, 1, 5, 2, 66, 3, 25, - 4, 135, 228, 229, 238, 0, 238, 238, 238, 238, - 238, 238, 238, 238, 238, 238, 238, 238, 6, 7, - 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, - 18, 19, 20, 0, 0, 0, 238, 0, 0, 0, - 0, 238, 0, 0, 0, 85, 0, 81, 78, 79, - 80, 238, 108, 27, 0, 0, 0, 0, 238, 0, - 0, 0, 139, 0, 223, 227, 226, 238, 0, 60, - 62, 64, 0, 222, 221, 133, 131, 129, 127, 189, - 0, 34, 238, 0, 0, 0, 0, 0, 0, 238, - 0, 0, 0, 0, 0, 238, 0, 0, 0, 238, - 0, 0, 0, 238, 238, 238, 238, 0, 225, 224, - 238, 0, 0, 0, 28, 0, 0, 0, 0, 0, - 238, 0, 0, 0, 234, 0, 0, 237, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 238, 238, - 214, 0, 238, 0, 178, 0, 171, 219, 0, 0, - 0, 0, 0, 0, 170, 0, 169, 218, 0, 232, - 0, 231, 230, 21, 0, 238, 238, 238, 238, 238, - 238, 238, 238, 238, 23, 238, 238, 68, 0, 238, - 82, 73, 72, 71, 76, 75, 235, 236, 0, 74, - 0, 124, 77, 0, 87, 0, 215, 122, 0, 0, - 110, 142, 138, 0, 140, 0, 0, 141, 0, 0, - 137, 136, 0, 22, 233, 32, 0, 0, 0, 0, - 30, 0, 158, 0, 144, 0, 0, 0, 193, 238, - 0, 36, 0, 0, 0, 83, 67, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 86, 90, 91, 92, - 93, 94, 95, 89, 88, 0, 238, 26, 0, 0, - 0, 0, 109, 112, 113, 114, 111, 0, 0, 172, - 0, 0, 0, 143, 238, 61, 63, 65, 238, 29, - 0, 0, 0, 0, 0, 0, 238, 0, 0, 134, - 162, 0, 0, 0, 0, 0, 238, 0, 0, 0, - 0, 0, 132, 155, 148, 130, 128, 238, 238, 238, - 238, 190, 194, 195, 196, 197, 198, 0, 38, 35, - 37, 33, 69, 70, 84, 0, 238, 238, 0, 0, - 0, 0, 0, 0, 238, 0, 238, 0, 0, 0, - 0, 0, 0, 0, 175, 0, 220, 0, 0, 238, - 238, 0, 0, 0, 0, 238, 238, 0, 238, 0, - 0, 0, 0, 238, 238, 238, 238, 238, 191, 199, - 204, 209, 24, 0, 40, 0, 0, 0, 0, 106, - 0, 0, 103, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 119, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 188, 216, 0, 0, 0, - 187, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 183, 0, 181, 0, 182, - 0, 0, 0, 0, 0, 0, 0, 0, 105, 0, - 102, 0, 0, 97, 98, 99, 0, 0, 0, 0, - 118, 0, 116, 0, 0, 0, 0, 0, 0, 179, - 0, 165, 167, 217, 161, 163, 166, 164, 0, 160, - 159, 151, 147, 149, 152, 180, 150, 0, 146, 145, - 0, 156, 153, 154, 238, 238, 238, 238, 0, 42, - 0, 0, 0, 0, 0, 0, 0, 0, 121, 123, - 0, 117, 115, 0, 0, 0, 0, 31, 168, 157, - 238, 0, 0, 201, 0, 206, 0, 211, 0, 0, - 0, 0, 39, 43, 0, 0, 0, 0, 0, 0, - 101, 96, 0, 174, 173, 0, 0, 0, 185, 192, - 238, 0, 200, 238, 0, 205, 238, 210, 213, 0, - 0, 0, 0, 0, 44, 41, 0, 0, 0, 0, - 100, 0, 177, 176, 184, 186, 0, 238, 0, 238, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 45, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 47, 0, 0, 48, 0, 0, 46, - 51, 125, 0, 0, 0, 0, 0, 203, 0, 208, - 0, 0, 0, 0, 0, 54, 0, 0, 0, 0, - 0, 126, 0, 0, 0, 202, 207, 212, 0, 0, - 0, 0, 0, 0, 57, 0, 0, 107, 0, 120, - 50, 49, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 53, 52, 0, 56, 55, 0, 0, 0, 59, 58, - 0, 0, 104, 0, 0, 0 +/* YYDEFACT[S] -- default rule to reduce with in state S when YYTABLE + doesn't specify something else to do. Zero means the default is an + error. */ +static const short yydefact[] = +{ + 0, 235, 235, 235, 235, 1, 5, 2, 66, 3, + 25, 4, 132, 225, 226, 235, 0, 235, 235, 235, + 235, 235, 235, 235, 235, 235, 235, 235, 235, 6, + 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, + 17, 18, 19, 20, 0, 0, 0, 235, 0, 0, + 0, 0, 235, 0, 0, 0, 85, 0, 81, 78, + 79, 80, 235, 105, 27, 0, 0, 0, 0, 235, + 0, 0, 0, 136, 0, 220, 224, 223, 235, 0, + 60, 62, 64, 0, 219, 218, 130, 128, 126, 124, + 186, 0, 34, 235, 0, 0, 0, 0, 0, 0, + 235, 0, 0, 0, 0, 0, 235, 0, 0, 0, + 235, 0, 0, 0, 235, 235, 235, 235, 0, 222, + 221, 235, 0, 0, 0, 28, 0, 0, 0, 0, + 0, 235, 0, 0, 0, 231, 0, 0, 234, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 235, + 235, 211, 0, 235, 0, 175, 0, 168, 216, 0, + 0, 0, 0, 0, 0, 167, 0, 166, 215, 0, + 229, 0, 228, 227, 21, 0, 235, 235, 235, 235, + 235, 235, 235, 235, 235, 23, 235, 235, 68, 0, + 235, 82, 73, 72, 71, 76, 75, 232, 233, 0, + 74, 0, 121, 77, 0, 87, 0, 212, 119, 0, + 0, 107, 139, 135, 0, 137, 0, 0, 138, 0, + 0, 134, 133, 0, 22, 230, 32, 0, 0, 0, + 0, 30, 0, 155, 0, 141, 0, 0, 0, 190, + 235, 0, 36, 0, 0, 0, 83, 67, 0, 0, + 0, 0, 0, 0, 0, 0, 86, 88, 89, 90, + 91, 92, 93, 94, 0, 235, 26, 0, 0, 0, + 0, 106, 109, 110, 111, 108, 0, 0, 169, 0, + 0, 0, 140, 235, 61, 63, 65, 235, 29, 0, + 0, 0, 0, 0, 0, 235, 0, 0, 131, 159, + 0, 0, 0, 0, 0, 235, 0, 0, 0, 0, + 0, 129, 152, 145, 127, 125, 235, 235, 235, 235, + 187, 191, 192, 193, 194, 195, 0, 38, 35, 37, + 33, 69, 70, 84, 0, 235, 0, 0, 0, 0, + 0, 0, 235, 0, 235, 0, 0, 0, 0, 0, + 0, 0, 172, 0, 217, 0, 0, 235, 235, 0, + 0, 0, 0, 235, 235, 0, 235, 0, 0, 0, + 0, 235, 235, 235, 235, 235, 188, 196, 201, 206, + 24, 0, 40, 0, 0, 0, 0, 103, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 116, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 185, 213, 0, 0, 0, 184, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 180, 0, 178, 0, 179, 0, 0, 0, 0, 0, + 0, 0, 0, 102, 0, 0, 96, 97, 98, 101, + 0, 0, 0, 0, 115, 0, 113, 0, 0, 0, + 0, 0, 0, 176, 0, 162, 164, 214, 158, 160, + 163, 161, 0, 157, 156, 148, 144, 146, 149, 177, + 147, 0, 143, 142, 0, 153, 150, 151, 235, 235, + 235, 235, 0, 42, 0, 0, 0, 0, 0, 0, + 0, 118, 120, 0, 114, 112, 0, 0, 0, 0, + 31, 165, 154, 235, 0, 0, 198, 0, 203, 0, + 208, 0, 0, 0, 0, 39, 43, 0, 0, 0, + 0, 0, 100, 95, 0, 171, 170, 0, 0, 0, + 182, 189, 235, 0, 197, 235, 0, 202, 235, 207, + 210, 0, 0, 0, 0, 0, 44, 41, 0, 0, + 0, 99, 0, 174, 173, 181, 183, 0, 235, 0, + 235, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 47, 0, 0, 48, 0, 0, 46, + 51, 122, 0, 0, 0, 0, 200, 0, 205, 0, + 0, 0, 0, 0, 54, 0, 0, 0, 0, 0, + 123, 0, 0, 199, 204, 209, 0, 0, 0, 0, + 0, 0, 57, 0, 0, 0, 117, 50, 49, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 53, 52, 0, + 56, 55, 0, 0, 0, 59, 58, 0, 0, 104, + 0, 0, 0 }; -static const short yydefgoto[] = { 684, - 5, 58, 30, 31, 32, 240, 9, 33, 179, 230, - 34, 35, 132, 241, 331, 384, 446, 499, 588, 584, - 586, 36, 122, 37, 123, 38, 124, 7, 190, 245, - 59, 105, 204, 258, 259, 260, 261, 262, 263, 264, - 391, 265, 388, 64, 108, 210, 274, 275, 276, 277, - 402, 60, 206, 61, 147, 39, 129, 40, 128, 41, - 127, 42, 126, 11, 234, 232, 166, 164, 156, 159, - 161, 154, 73, 429, 437, 439, 435, 548, 420, 415, - 43, 130, 324, 441, 238, 325, 442, 523, 326, 443, - 525, 327, 444, 527, 150, 416, 167, 157, 356, 158, - 74, 118, 75, 84, 171, 172, 474, 199, 155, 85 +static const short yydefgoto[] = +{ + 670, 5, 58, 30, 31, 32, 240, 9, 33, 179, + 230, 34, 35, 132, 241, 329, 381, 440, 492, 578, + 574, 576, 36, 122, 37, 123, 38, 124, 7, 190, + 245, 59, 105, 204, 257, 258, 259, 260, 261, 262, + 263, 385, 64, 108, 210, 272, 273, 274, 275, 396, + 60, 206, 61, 147, 39, 129, 40, 128, 41, 127, + 42, 126, 11, 234, 232, 166, 164, 156, 159, 161, + 154, 73, 423, 431, 433, 429, 539, 414, 409, 43, + 130, 322, 435, 238, 323, 436, 515, 324, 437, 517, + 325, 438, 519, 150, 410, 167, 157, 353, 158, 74, + 118, 75, 84, 171, 172, 467, 199, 155, 85 }; -static const short yypact[] = { 186, --32768,-32768,-32768,-32768, 354,-32768, 1026,-32768, 12,-32768, - 255,-32768,-32768,-32768, 188, -7, 188, 188, 188, 188, - 188, 188, 188, 188, 188, 188, 188, 188,-32768,-32768, --32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, --32768,-32768,-32768, 66, 32, 41, 188, 53, 74, 76, - 78, 188, 80, 91, 95,-32768, 105,-32768,-32768,-32768, --32768, 188,-32768,-32768, 110, 114, 125, 133, 188, 143, - 146, 158,-32768, 169,-32768,-32768,-32768, 188, 172,-32768, --32768,-32768, 174,-32768,-32768,-32768,-32768,-32768,-32768,-32768, - 179,-32768, 188, 188, 100, 189, 228, 192, 192, 188, - 194, 192, 227, 192, 196,-32768, 197, 200, 192, 188, - 100, 100, 201, 188, 188,-32768, 188, 166,-32768,-32768, - 188, 206, 207, 212,-32768, 214, 218, 219, 221, 223, - 188, 224, 225, 175,-32768, 100, 188,-32768, 191, 226, - 236, 237, 239, 235, 240, 229, 241, 242,-32768, 192, --32768, 235,-32768, 243,-32768, 244,-32768,-32768, 16, 100, - 7, 100, 235, 245,-32768, 246,-32768,-32768, 64,-32768, - 248, 188,-32768,-32768, 249,-32768,-32768,-32768,-32768,-32768, --32768,-32768,-32768,-32768,-32768,-32768, 188,-32768, 100,-32768, --32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, 259,-32768, - 100,-32768,-32768, 375,-32768, 98,-32768,-32768, 260, 15, --32768,-32768,-32768, 19,-32768, 100, 31,-32768, 100, 277, --32768,-32768, 280,-32768,-32768,-32768, 697, 856, 922, 17, --32768, 99,-32768, 101,-32768, 180, 215, 112,-32768,-32768, - -1,-32768, 281, 285, 3,-32768,-32768, 100, 288, 289, - 290, 291, 292, 293, 294, 296,-32768,-32768,-32768,-32768, --32768,-32768,-32768,-32768,-32768, 298, 188,-32768, 299, 301, - 302, 306,-32768,-32768,-32768,-32768,-32768, 188, 308,-32768, - 188, 310, 100,-32768, 188,-32768,-32768,-32768, 188,-32768, - 315, 319, 320, 329, 330, 332, 188, 333, 335,-32768, --32768, 336, 337, 338, 339, 340, 188, 345, 348, 349, - 350, 351,-32768,-32768,-32768,-32768,-32768, 188, 188, 188, - 188,-32768,-32768,-32768,-32768,-32768,-32768, 20, 192,-32768, --32768,-32768,-32768,-32768,-32768, 5, 100, 100, 100, 100, - 100, 100, 100, 100, 188, 352, 100, 100, 100, 100, - 100, 100, 100, 100,-32768, 353,-32768, 355, 192,-32768, - 188, 100, 192, 100, 356, 188, 188, 192, 188, 100, - 192, 100, 359, 188, 188,-32768,-32768,-32768,-32768,-32768, --32768,-32768,-32768, 361,-32768, 363, 238, 365, 100,-32768, - 368, 100,-32768, 100, 369, 370, 373, 100, 100, 377, - 235, 379, 100,-32768, 384, 100, 100, 100, 100, 100, - 100, 388, 235, 390, 391, 100,-32768, 392, 46, 393, --32768, 22, 235, 394, 395, 397, 398, 47, 399, 192, - 24, 235, 400, 401, -4,-32768, 402, 100, 403, 100, - 364, 405, 406, 407, 100, 408, 100, 409,-32768, 100, --32768, 100, 100,-32768,-32768,-32768, 100, 100, 410, 411, --32768, 100,-32768, 412, 413, 100, 100, 100, 100,-32768, - 421,-32768,-32768,-32768,-32768,-32768,-32768,-32768, 422,-32768, --32768,-32768,-32768,-32768,-32768,-32768,-32768, 423,-32768,-32768, - 425,-32768,-32768,-32768,-32768,-32768,-32768,-32768, 131, 100, - 100, 100, 100, 100, 100, 100, 426, 427,-32768,-32768, - 100,-32768,-32768, 428, 429, 100, 100,-32768,-32768,-32768, --32768, 167, 149,-32768, 176,-32768, 127,-32768, 34, 433, - 434, 436,-32768, 100, 165, 100, 100, 100, 100, 437, --32768,-32768, 100,-32768,-32768, 438, 439, 29,-32768,-32768, - 188, 442,-32768, 188, 443,-32768, 188,-32768,-32768, 188, - 444, 100, 100, 100, 100,-32768, 445, 100, 100, 100, --32768, 100,-32768,-32768,-32768,-32768, 447,-32768, 448,-32768, - 450, 100, 100, 49, 100, 51, 100, 38, 100,-32768, - 454, 458, 100, 100, 100, 235, 8, 235, 13, 235, - 100, 100, 40,-32768, 100, 42,-32768, 100, 44,-32768, --32768,-32768, 459, 100, 100, 100, 460,-32768, 461,-32768, - 462, 100, 100, 188, 466,-32768, 188, 467, 100, 188, - 468,-32768, 100, 100, 100,-32768,-32768,-32768, 469, 470, - 100, 100, 100, 100,-32768, 100, 100,-32768, 100,-32768, --32768,-32768, 100, 100, 100, 100, 100, 100, 100, 100, - 100, 100, 100, 472, 473, 100, 474, 475, 100, 100, --32768,-32768, 100,-32768,-32768, 480, 481, 100,-32768,-32768, - 100, 100,-32768, 493, 520,-32768 +static const short yypact[] = +{ + 170,-32768,-32768,-32768,-32768, 684,-32768, 1075,-32768, 14, + -32768, 368,-32768,-32768,-32768, 197, -18, 197, 197, 197, + 197, 197, 197, 197, 197, 197, 197, 197, 197,-32768, + -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, + -32768,-32768,-32768,-32768, 63, -12, 18, 197, 32, 38, + 73, 78, 197, 82, 98, 110,-32768, 114,-32768,-32768, + -32768,-32768, 197,-32768,-32768, 125, 130, 138, 144, 197, + 150, 154, 155,-32768, 159,-32768,-32768,-32768, 197, 160, + -32768,-32768,-32768, 161,-32768,-32768,-32768,-32768,-32768,-32768, + -32768, 164,-32768, 197, 197, 94, 177, 200, 148, 148, + 197, 178, 148, 83, 148, 181,-32768, 182, 183, 148, + 197, 94, 94, 185, 197, 197,-32768, 197, 100,-32768, + -32768, 197, 186, 187, 193,-32768, 201, 205, 209, 210, + 211, 197, 213, 214, 107,-32768, 94, 197,-32768, 169, + 171, 196, 202, 215, 203, 217, 219, 221, 223,-32768, + 148,-32768, 203,-32768, 225,-32768, 226,-32768,-32768, 24, + 94, 22, 94, 203, 231,-32768, 232,-32768,-32768, 52, + -32768, 233, 197,-32768,-32768, 235,-32768,-32768,-32768,-32768, + -32768,-32768,-32768,-32768,-32768,-32768,-32768, 197,-32768, 94, + -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, 236, + -32768, 94,-32768,-32768, 419,-32768, 132,-32768,-32768, 237, + 108,-32768,-32768,-32768, 40,-32768, 94, 42,-32768, 94, + 238,-32768,-32768, 220,-32768,-32768,-32768, 842, 924, 1009, + 12,-32768, 172,-32768, 101,-32768, 224, 312, 58,-32768, + -32768, 8,-32768, 239, 240, 21,-32768,-32768, 94, 246, + 247, 257, 258, 269, 270, 271,-32768,-32768,-32768,-32768, + -32768,-32768,-32768,-32768, 272, 197,-32768, 273, 275, 278, + 279,-32768,-32768,-32768,-32768,-32768, 197, 280,-32768, 197, + 281, 94,-32768, 197,-32768,-32768,-32768, 197,-32768, 285, + 286, 287, 288, 289, 290, 197, 293, 294,-32768,-32768, + 295, 297, 298, 299, 300, 197, 302, 304, 306, 309, + 310,-32768,-32768,-32768,-32768,-32768, 197, 197, 197, 197, + -32768,-32768,-32768,-32768,-32768,-32768, 7, 148,-32768,-32768, + -32768,-32768,-32768,-32768, 72, 94, 94, 94, 94, 94, + 94, 94, 197, 311, 94, 94, 94, 94, 94, 94, + 94, 94,-32768, 313,-32768, 321, 148,-32768, 197, 94, + 148, 94, 322, 197, 197, 148, 197, 94, 148, 94, + 325, 197, 197,-32768,-32768,-32768,-32768,-32768,-32768,-32768, + -32768, 326,-32768, 327, 216, 328, 94,-32768, 94, 329, + 330, 331, 0, 94, 333, 203, 334, 94,-32768, 335, + 94, 94, 94, 94, 94, 94, 336, 203, 337, 339, + 94,-32768, 340, 36, 341,-32768, 43, 203, 342, 343, + 344, 345, 53, 346, 148, 66, 203, 349, 350, 29, + -32768, 352, 94, 354, 94, 357, 358, 362, 363, 94, + 364, 94, 369,-32768, 94, 94,-32768,-32768,-32768,-32768, + 94, 94, 367, 372,-32768, 94,-32768, 377, 380, 94, + 94, 94, 94,-32768, 382,-32768,-32768,-32768,-32768,-32768, + -32768,-32768, 389,-32768,-32768,-32768,-32768,-32768,-32768,-32768, + -32768, 391,-32768,-32768, 393,-32768,-32768,-32768,-32768,-32768, + -32768,-32768, 157, 94, 94, 94, 94, 94, 94, 394, + 395,-32768,-32768, 94,-32768,-32768, 396, 397, 94, 94, + -32768,-32768,-32768,-32768, 69, 70,-32768, 105,-32768, 10, + -32768, 45, 399, 400, 401,-32768, 94, 206, 94, 94, + 94, 402,-32768,-32768, 94,-32768,-32768, 403, 404, 30, + -32768,-32768, 197, 406,-32768, 197, 407,-32768, 197,-32768, + -32768, 197, 414, 94, 94, 94, 94,-32768, 415, 94, + 94,-32768, 94,-32768,-32768,-32768,-32768, 417,-32768, 421, + -32768, 422, 94, 94, 64, 94, 68, 94, -10, 94, + -32768, 418, 424, 94, 94, 203, 33, 203, 35, 203, + 94, 94, 47,-32768, 94, 50,-32768, 94, 55,-32768, + -32768,-32768, 426, 94, 94, 427,-32768, 428,-32768, 429, + 94, 94, 197, 431,-32768, 197, 432, 94, 197, 434, + -32768, 94, 94,-32768,-32768,-32768, 435, 436, 94, 94, + 94, 94,-32768, 94, 94, 94,-32768,-32768,-32768, 94, + 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, + 437, 438, 94, 439, 441, 94, 94,-32768,-32768, 94, + -32768,-32768, 445, 449, 94,-32768,-32768, 94, 94,-32768, + 411, 477,-32768 }; -static const short yypgoto[] = {-32768, --32768, 314,-32768,-32768,-32768,-32768, 58,-32768,-32768,-32768, --32768,-32768,-32768,-32768,-32768,-32768,-32768, -137,-32768,-32768, --32768,-32768,-32768,-32768,-32768,-32768,-32768, -58,-32768,-32768, --32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, --32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, --32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, --32768, -231,-32768, 88,-32768,-32768, -281, -223, -215, -214, - -166, -284, -183,-32768,-32768,-32768,-32768,-32768,-32768,-32768, - -237,-32768,-32768,-32768, -59, 1,-32768,-32768,-32768,-32768, --32768,-32768,-32768,-32768, 453, -373,-32768,-32768, 230, 173, - 35, -91,-32768, -5,-32768,-32768, -2, -127, -71, 671 +static const short yypgoto[] = +{ + -32768,-32768, 493,-32768,-32768,-32768,-32768, 296,-32768,-32768, + -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, -196,-32768, + -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, 81,-32768, + -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, + -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, + -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, + -233,-32768, 49,-32768,-32768, -282, -201, -186, -184, -171, + -279, -134,-32768,-32768,-32768,-32768,-32768,-32768,-32768, -231, + -32768,-32768,-32768, 46, -1,-32768,-32768,-32768,-32768,-32768, + -32768,-32768,-32768, 425, -352,-32768,-32768, 195, 167, 9, + -84,-32768, -5,-32768,-32768, -2, -122, -93, 657 }; -#define YYLAST 1251 +#define YYLAST 1227 -static const short yytable[] = { 44, - 323, 44, 314, 438, 440, 13, 14, 135, 143, 76, - 135, 76, 76, 76, 76, 135, 76, 76, 76, 76, - 76, 13, 14, 217, 209, 140, 141, 142, 491, 175, - 145, 214, 148, 13, 14, 220, 13, 14, 217, 185, - 217, 76, 13, 14, 13, 14, 13, 14, 301, 269, - 315, 79, 80, 81, 82, 609, 86, 87, 88, 89, - 90, 214, 214, 270, 603, 62, 138, 606, 22, 271, - 289, 329, 119, 62, 414, 78, 63, 386, 207, 492, - 272, 96, 330, 426, 63, 425, 334, 76, 134, 93, - 218, 618, 136, 434, 119, 243, 620, 207, 273, 215, - 290, 278, 135, 383, 291, 478, 302, 487, 160, 162, - 223, 170, 575, 281, 94, 119, 560, 227, 228, 229, - 318, 610, 624, 95, 627, 119, 630, 133, 292, 476, - 484, 191, 604, 189, 607, 97, 293, 294, 303, 304, - 22, 295, 424, 305, 266, 418, 296, 419, 306, 529, - 433, 267, 297, 427, 307, 428, 98, 216, 99, 219, - 100, 298, 102, 308, 319, 299, 225, 309, 310, 530, - 311, 26, 312, 103, 72, 318, 72, 104, 531, 319, - 557, 119, 300, 529, 313, 65, 244, 106, 320, 321, - 13, 14, 109, 83, 138, 322, 110, 422, 248, 91, - 92, 532, 551, 530, 597, 431, 599, 111, 279, 552, - 558, 282, 531, 280, 533, 112, 283, 66, 67, 319, - 65, 44, 44, 44, 101, 114, 26, 68, 115, 554, - 138, 139, 553, 69, 107, 532, 555, 197, 198, 335, - 116, 113, 70, 320, 321, 336, 71, 146, 566, 174, - 550, 117, 66, 67, 121, 72, 125, 385, 188, 556, - 65, 131, 68, 316, 1, 2, 3, 4, 69, 236, - 237, 137, 351, 460, 192, 353, 144, 70, 149, 152, - 355, 71, 153, 163, 323, 471, 165, 168, 176, 177, - 72, 421, 66, 67, 178, 479, 180, 328, 317, 430, - 181, 182, 68, 183, 488, 184, 186, 187, 69, 193, - 448, 201, 76, 76, 76, 76, 576, 70, 29, 194, - 195, 71, 196, 200, 202, 203, 212, 213, 221, 222, - 72, 224, 226, 387, 389, 392, 394, 395, 396, 397, - 398, 399, 247, 268, 403, 405, 406, 407, 408, 409, - 410, 411, 379, 380, 381, 382, 13, 14, 486, 160, - 284, 162, 285, 535, 332, 15, 16, 160, 333, 162, - 337, 338, 339, 340, 341, 342, 343, 17, 344, 18, - 345, 347, 19, 348, 349, 20, 450, 21, 350, 452, - 352, 453, 354, 22, 23, 457, 458, 359, 24, 25, - 462, 360, 361, 464, 465, 466, 467, 468, 469, 249, - 250, 362, 363, 26, 364, 366, 27, 367, 368, 369, - 370, 371, 372, 251, 252, 253, 254, 374, 28, 255, - 375, 376, 377, 378, 401, 522, 412, 413, 423, 346, - 256, 432, 500, 445, 502, 447, 495, 504, 449, 505, - 506, 451, 454, 455, 507, 508, 456, 357, 257, 511, - 459, 358, 461, 514, 515, 516, 517, 463, 617, 365, - 619, 470, 621, 472, 473, 475, 477, 480, 481, 373, - 482, 483, 485, 489, 490, 493, 494, 496, 497, 498, - 501, 503, 685, 509, 510, 512, 513, 534, 500, 536, - 537, 538, 539, 540, 518, 519, 520, 521, 543, 541, - 542, 544, 545, 546, 547, 562, 563, 357, 564, 686, - 571, 573, 574, 561, 578, 580, 583, 559, 591, 596, - 598, 565, 600, 567, 568, 569, 570, 612, 165, 168, - 572, 613, 632, 636, 637, 638, 165, 168, 642, 644, - 647, 0, 651, 652, 582, 671, 672, 674, 675, 585, - 587, 589, 590, 679, 680, 592, 593, 594, 169, 595, - 0, 0, 0, 0, 400, 0, 0, 0, 0, 601, - 602, 0, 605, 0, 608, 0, 611, 0, 0, 0, - 614, 615, 616, 0, 0, 0, 0, 625, 622, 623, - 628, 0, 626, 631, 0, 629, 0, 0, 0, 0, - 0, 633, 634, 635, 0, 0, 0, 0, 641, 639, - 640, 643, 0, 0, 646, 0, 645, 0, 0, 0, - 648, 649, 650, 0, 0, 0, 0, 0, 653, 654, - 655, 656, 0, 657, 658, 0, 659, 0, 0, 0, - 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, - 670, 0, 0, 673, 0, 0, 676, 677, 0, 0, - 678, 6, 8, 10, 12, 681, 0, 0, 682, 683, - 0, 0, 0, 0, 0, 77, 0, 77, 77, 77, - 77, 0, 77, 77, 77, 77, 77, 0, 0, 13, - 14, 0, 0, 45, 46, 0, 0, 47, 15, 16, - 0, 48, 0, 0, 0, 0, 49, 77, 0, 0, - 17, 0, 18, 577, 0, 19, 579, 0, 20, 581, - 21, 0, 0, 50, 0, 0, 22, 23, 51, 0, - 0, 24, 25, 0, 0, 0, 0, 0, 120, 0, - 52, 0, 0, 0, 53, 54, 26, 0, 55, 27, - 0, 56, 0, 77, 0, 0, 0, 0, 0, 0, - 120, 28, 57, 0, 0, 0, 151, 0, 0, 0, - 286, 0, 0, 0, 0, 0, 151, 173, 0, 0, - 0, 120, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 120, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 205, - 208, 0, 0, 211, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 8, 8, 8, 231, - 233, 235, 12, 12, 239, 0, 242, 120, 13, 14, - 246, 0, 45, 46, 0, 0, 47, 15, 16, 0, - 48, 0, 0, 0, 0, 49, 0, 0, 0, 17, - 0, 18, 0, 0, 19, 0, 0, 20, 0, 21, - 0, 0, 50, 0, 0, 22, 23, 51, 0, 0, - 24, 25, 0, 0, 0, 0, 0, 0, 0, 52, - 10, 0, 0, 53, 54, 26, 0, 55, 27, 0, - 56, 0, 0, 0, 13, 14, 0, 0, 45, 46, - 28, 57, 47, 15, 16, 0, 48, 0, 0, 287, - 0, 49, 0, 0, 0, 17, 0, 18, 0, 0, - 19, 0, 0, 20, 0, 21, 0, 0, 50, 0, - 0, 22, 23, 51, 0, 0, 24, 25, 0, 0, - 0, 0, 0, 0, 0, 52, 0, 0, 0, 53, - 54, 26, 0, 55, 27, 0, 56, 0, 77, 77, - 77, 77, 0, 0, 0, 0, 28, 57, 0, 0, - 0, 0, 0, 0, 0, 288, 0, 390, 393, 0, - 0, 0, 0, 0, 0, 0, 0, 404, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 13, 14, - 417, 0, 45, 46, 0, 0, 47, 15, 16, 0, - 48, 0, 0, 0, 0, 49, 436, 417, 417, 17, - 0, 18, 0, 0, 19, 0, 0, 20, 0, 21, - 0, 0, 50, 0, 0, 22, 23, 51, 0, 0, - 24, 25, 0, 0, 0, 0, 0, 0, 0, 52, - 0, 0, 0, 53, 54, 26, 0, 55, 27, 0, - 56, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 28, 57, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 239, 524, 526, 528, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 549, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 417, 0, - 417 +static const short yytable[] = +{ + 44, 312, 44, 135, 140, 141, 142, 321, 598, 145, + 76, 148, 76, 76, 76, 76, 143, 76, 76, 76, + 76, 76, 432, 434, 13, 14, 79, 80, 81, 82, + 209, 86, 87, 88, 89, 90, 135, 175, 135, 217, + 214, 220, 76, 13, 14, 13, 14, 185, 13, 14, + 13, 14, 214, 13, 14, 138, 96, 207, 13, 14, + 217, 62, 484, 317, 548, 78, 287, 316, 62, 214, + 22, 94, 63, 119, 599, 135, 207, 408, 316, 63, + 592, 327, 419, 217, 449, 595, 420, 93, 76, 134, + 428, 380, 328, 136, 549, 119, 288, 135, 299, 223, + 313, 95, 133, 243, 146, 332, 218, 300, 215, 160, + 162, 317, 170, 485, 565, 97, 119, 606, 26, 608, + 469, 98, 317, 276, 542, 279, 119, 471, 551, 26, + 612, 543, 191, 615, 189, 318, 319, 477, 618, 301, + 302, 22, 320, 267, 303, 383, 318, 319, 593, 304, + 480, 138, 596, 541, 544, 305, 99, 268, 216, 545, + 219, 100, 418, 269, 306, 102, 546, 225, 307, 308, + 427, 309, 412, 310, 270, 413, 521, 72, 289, 264, + 421, 103, 119, 422, 174, 311, 265, 244, 83, 547, + 416, 188, 271, 104, 91, 92, 522, 106, 425, 248, + 13, 14, 290, 138, 139, 523, 197, 198, 109, 277, + 291, 292, 280, 110, 278, 293, 586, 281, 588, 101, + 294, 111, 44, 44, 44, 521, 295, 112, 524, 107, + 65, 236, 237, 114, 382, 296, 113, 115, 116, 297, + 333, 525, 117, 121, 125, 522, 334, 131, 72, 1, + 2, 3, 4, 192, 523, 193, 298, 227, 228, 229, + 137, 144, 66, 67, 149, 152, 153, 415, 163, 176, + 177, 348, 68, 453, 350, 424, 178, 524, 69, 352, + 194, 165, 168, 321, 180, 464, 195, 70, 181, 442, + 557, 71, 182, 183, 184, 472, 186, 187, 527, 196, + 72, 200, 201, 283, 481, 202, 566, 203, 314, 212, + 213, 76, 76, 76, 76, 221, 222, 224, 65, 226, + 247, 266, 282, 330, 331, 376, 377, 378, 379, 335, + 336, 479, 384, 386, 388, 389, 390, 391, 392, 393, + 337, 338, 397, 399, 400, 401, 402, 403, 404, 405, + 66, 67, 339, 340, 341, 342, 344, 160, 345, 162, + 68, 346, 347, 349, 351, 160, 69, 162, 356, 357, + 358, 359, 360, 361, 65, 70, 363, 364, 365, 71, + 366, 367, 368, 369, 444, 371, 445, 372, 72, 373, + 450, 451, 374, 375, 395, 455, 315, 406, 457, 458, + 459, 460, 461, 462, 407, 417, 66, 67, 426, 439, + 441, 671, 443, 446, 447, 448, 68, 452, 454, 456, + 463, 465, 69, 466, 468, 470, 473, 474, 475, 476, + 478, 70, 343, 482, 483, 71, 486, 493, 487, 495, + 488, 489, 497, 498, 72, 490, 491, 494, 499, 500, + 354, 501, 496, 503, 355, 249, 502, 506, 507, 508, + 509, 504, 362, 605, 505, 607, 510, 609, 250, 251, + 252, 253, 370, 511, 254, 512, 513, 672, 532, 533, + 535, 536, 553, 554, 555, 255, 561, 563, 564, 568, + 570, 526, 493, 528, 529, 530, 531, 573, 29, 581, + 585, 534, 601, 256, 587, 589, 537, 538, 602, 354, + 620, 623, 624, 625, 629, 631, 552, 634, 550, 637, + 638, 657, 658, 660, 556, 661, 558, 559, 560, 665, + 165, 168, 562, 666, 514, 0, 326, 394, 165, 168, + 0, 169, 0, 0, 0, 0, 572, 0, 0, 0, + 0, 575, 577, 579, 580, 0, 0, 582, 583, 0, + 584, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 590, 591, 0, 594, 0, 597, 0, 600, 0, 0, + 0, 603, 604, 0, 0, 0, 0, 613, 610, 611, + 616, 0, 614, 619, 0, 617, 0, 0, 0, 0, + 0, 621, 622, 0, 0, 0, 0, 628, 626, 627, + 630, 0, 0, 633, 0, 632, 0, 0, 0, 635, + 636, 0, 0, 0, 0, 0, 639, 640, 641, 642, + 0, 643, 644, 645, 0, 0, 0, 646, 647, 648, + 649, 650, 651, 652, 653, 654, 655, 656, 0, 0, + 659, 0, 0, 662, 663, 0, 0, 664, 6, 8, + 10, 12, 667, 0, 0, 668, 669, 0, 0, 0, + 0, 0, 77, 0, 77, 77, 77, 77, 0, 77, + 77, 77, 77, 77, 0, 0, 0, 13, 14, 0, + 0, 0, 0, 0, 0, 0, 15, 16, 0, 0, + 0, 0, 0, 0, 77, 0, 0, 0, 17, 567, + 18, 0, 569, 19, 0, 571, 20, 0, 21, 0, + 0, 0, 0, 0, 22, 23, 0, 0, 0, 24, + 25, 0, 0, 0, 0, 120, 0, 0, 0, 0, + 0, 0, 0, 0, 26, 0, 0, 27, 0, 0, + 77, 0, 0, 0, 0, 0, 0, 120, 0, 28, + 0, 0, 0, 151, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 151, 173, 0, 0, 0, 120, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 120, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 205, 208, 0, 0, + 211, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 8, 8, 8, 231, 233, 235, 12, + 12, 239, 0, 242, 120, 13, 14, 246, 0, 45, + 46, 0, 0, 47, 15, 16, 0, 48, 0, 0, + 0, 0, 49, 0, 0, 0, 17, 0, 18, 0, + 0, 19, 0, 0, 20, 0, 21, 0, 0, 50, + 0, 0, 22, 23, 51, 0, 0, 24, 25, 0, + 0, 0, 0, 0, 0, 0, 52, 10, 0, 0, + 53, 54, 26, 0, 55, 27, 0, 56, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 28, 57, 0, + 0, 0, 0, 0, 0, 0, 284, 13, 14, 0, + 0, 45, 46, 0, 0, 47, 15, 16, 0, 48, + 0, 0, 0, 0, 49, 0, 0, 0, 17, 0, + 18, 0, 0, 19, 0, 0, 20, 0, 21, 0, + 0, 50, 0, 0, 22, 23, 51, 0, 0, 24, + 25, 0, 0, 77, 77, 77, 77, 0, 52, 0, + 0, 0, 53, 54, 26, 0, 55, 27, 0, 56, + 0, 0, 387, 0, 0, 0, 0, 0, 0, 28, + 57, 398, 0, 0, 0, 0, 0, 0, 285, 0, + 0, 0, 13, 14, 411, 0, 45, 46, 0, 0, + 47, 15, 16, 0, 48, 0, 0, 0, 0, 49, + 430, 411, 411, 17, 0, 18, 0, 0, 19, 0, + 0, 20, 0, 21, 0, 0, 50, 0, 0, 22, + 23, 51, 0, 0, 24, 25, 0, 0, 0, 0, + 0, 0, 0, 52, 0, 0, 0, 53, 54, 26, + 0, 55, 27, 0, 56, 0, 0, 0, 13, 14, + 0, 0, 45, 46, 28, 57, 47, 15, 16, 0, + 48, 0, 0, 286, 0, 49, 0, 0, 0, 17, + 0, 18, 0, 0, 19, 0, 0, 20, 0, 21, + 0, 0, 50, 0, 0, 22, 23, 51, 0, 0, + 24, 25, 0, 0, 0, 0, 0, 0, 0, 52, + 0, 0, 0, 53, 54, 26, 0, 55, 27, 0, + 56, 0, 0, 0, 0, 239, 516, 518, 520, 0, + 28, 57, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 540, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 411, 0, 411 }; -static const short yycheck[] = { 5, - 238, 7, 234, 377, 378, 3, 4, 3, 100, 15, - 3, 17, 18, 19, 20, 3, 22, 23, 24, 25, - 26, 3, 4, 17, 152, 97, 98, 99, 33, 121, - 102, 16, 104, 3, 4, 163, 3, 4, 17, 131, - 17, 47, 3, 4, 3, 4, 3, 4, 232, 35, - 234, 17, 18, 19, 20, 18, 22, 23, 24, 25, - 26, 16, 16, 49, 16, 54, 3, 17, 40, 55, - 54, 73, 78, 54, 359, 83, 65, 73, 150, 84, - 66, 47, 84, 368, 65, 367, 84, 93, 94, 24, - 84, 84, 95, 375, 100, 187, 84, 169, 84, 84, - 84, 83, 3, 84, 6, 84, 6, 84, 111, 112, - 47, 117, 84, 83, 83, 121, 83, 176, 177, 178, - 9, 84, 83, 83, 83, 131, 83, 93, 30, 84, - 84, 137, 84, 136, 84, 83, 38, 39, 38, 39, - 40, 43, 366, 43, 47, 361, 48, 362, 48, 19, - 374, 54, 54, 369, 54, 370, 83, 160, 83, 162, - 83, 63, 83, 63, 53, 67, 172, 67, 68, 39, - 70, 60, 72, 83, 76, 9, 76, 83, 48, 53, - 54, 187, 84, 19, 84, 6, 189, 83, 77, 78, - 3, 4, 83, 21, 3, 84, 83, 364, 201, 27, - 28, 71, 54, 39, 578, 372, 580, 83, 214, 61, - 84, 217, 48, 216, 84, 83, 219, 38, 39, 53, - 6, 227, 228, 229, 52, 83, 60, 48, 83, 54, - 3, 4, 84, 54, 62, 71, 61, 3, 4, 245, - 83, 69, 63, 77, 78, 248, 67, 21, 84, 84, - 84, 83, 38, 39, 83, 76, 83, 329, 84, 84, - 6, 83, 48, 84, 79, 80, 81, 82, 54, 182, - 183, 83, 278, 401, 84, 281, 83, 63, 83, 83, - 283, 67, 83, 83, 522, 413, 114, 115, 83, 83, - 76, 363, 38, 39, 83, 423, 83, 240, 84, 371, - 83, 83, 48, 83, 432, 83, 83, 83, 54, 84, - 73, 83, 318, 319, 320, 321, 548, 63, 5, 84, - 84, 67, 84, 84, 84, 84, 84, 84, 84, 84, - 76, 84, 84, 336, 337, 338, 339, 340, 341, 342, - 343, 344, 84, 84, 347, 348, 349, 350, 351, 352, - 353, 354, 318, 319, 320, 321, 3, 4, 430, 362, - 84, 364, 83, 501, 84, 12, 13, 370, 84, 372, - 83, 83, 83, 83, 83, 83, 83, 24, 83, 26, - 83, 83, 29, 83, 83, 32, 389, 34, 83, 392, - 83, 394, 83, 40, 41, 398, 399, 83, 45, 46, - 403, 83, 83, 406, 407, 408, 409, 410, 411, 35, - 36, 83, 83, 60, 83, 83, 63, 83, 83, 83, - 83, 83, 83, 49, 50, 51, 52, 83, 75, 55, - 83, 83, 83, 83, 83, 495, 84, 83, 83, 267, - 66, 83, 445, 83, 447, 83, 83, 450, 84, 452, - 453, 84, 84, 84, 457, 458, 84, 285, 84, 462, - 84, 289, 84, 466, 467, 468, 469, 84, 596, 297, - 598, 84, 600, 84, 84, 84, 84, 84, 84, 307, - 84, 84, 84, 84, 84, 84, 84, 83, 83, 83, - 83, 83, 0, 84, 84, 84, 84, 500, 501, 502, - 503, 504, 505, 506, 84, 84, 84, 83, 511, 84, - 84, 84, 84, 516, 517, 83, 83, 345, 83, 0, - 84, 84, 84, 529, 83, 83, 83, 527, 84, 83, - 83, 534, 83, 536, 537, 538, 539, 84, 366, 367, - 543, 84, 84, 84, 84, 84, 374, 375, 83, 83, - 83, -1, 84, 84, 560, 84, 84, 84, 84, 562, - 563, 564, 565, 84, 84, 568, 569, 570, 116, 572, - -1, -1, -1, -1, 345, -1, -1, -1, -1, 582, - 583, -1, 585, -1, 587, -1, 589, -1, -1, -1, - 593, 594, 595, -1, -1, -1, -1, 603, 601, 602, - 606, -1, 605, 609, -1, 608, -1, -1, -1, -1, - -1, 614, 615, 616, -1, -1, -1, -1, 624, 622, - 623, 627, -1, -1, 630, -1, 629, -1, -1, -1, - 633, 634, 635, -1, -1, -1, -1, -1, 641, 642, - 643, 644, -1, 646, 647, -1, 649, -1, -1, -1, - 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, - 663, -1, -1, 666, -1, -1, 669, 670, -1, -1, - 673, 1, 2, 3, 4, 678, -1, -1, 681, 682, - -1, -1, -1, -1, -1, 15, -1, 17, 18, 19, - 20, -1, 22, 23, 24, 25, 26, -1, -1, 3, - 4, -1, -1, 7, 8, -1, -1, 11, 12, 13, - -1, 15, -1, -1, -1, -1, 20, 47, -1, -1, - 24, -1, 26, 551, -1, 29, 554, -1, 32, 557, - 34, -1, -1, 37, -1, -1, 40, 41, 42, -1, - -1, 45, 46, -1, -1, -1, -1, -1, 78, -1, - 54, -1, -1, -1, 58, 59, 60, -1, 62, 63, - -1, 65, -1, 93, -1, -1, -1, -1, -1, -1, - 100, 75, 76, -1, -1, -1, 106, -1, -1, -1, - 84, -1, -1, -1, -1, -1, 116, 117, -1, -1, - -1, 121, -1, -1, -1, -1, -1, -1, -1, -1, - -1, 131, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, 149, - 150, -1, -1, 153, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, 176, 177, 178, 179, - 180, 181, 182, 183, 184, -1, 186, 187, 3, 4, - 190, -1, 7, 8, -1, -1, 11, 12, 13, -1, - 15, -1, -1, -1, -1, 20, -1, -1, -1, 24, - -1, 26, -1, -1, 29, -1, -1, 32, -1, 34, - -1, -1, 37, -1, -1, 40, 41, 42, -1, -1, - 45, 46, -1, -1, -1, -1, -1, -1, -1, 54, - 240, -1, -1, 58, 59, 60, -1, 62, 63, -1, - 65, -1, -1, -1, 3, 4, -1, -1, 7, 8, - 75, 76, 11, 12, 13, -1, 15, -1, -1, 84, - -1, 20, -1, -1, -1, 24, -1, 26, -1, -1, - 29, -1, -1, 32, -1, 34, -1, -1, 37, -1, - -1, 40, 41, 42, -1, -1, 45, 46, -1, -1, - -1, -1, -1, -1, -1, 54, -1, -1, -1, 58, - 59, 60, -1, 62, 63, -1, 65, -1, 318, 319, - 320, 321, -1, -1, -1, -1, 75, 76, -1, -1, - -1, -1, -1, -1, -1, 84, -1, 337, 338, -1, - -1, -1, -1, -1, -1, -1, -1, 347, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, 3, 4, - 360, -1, 7, 8, -1, -1, 11, 12, 13, -1, - 15, -1, -1, -1, -1, 20, 376, 377, 378, 24, - -1, 26, -1, -1, 29, -1, -1, 32, -1, 34, - -1, -1, 37, -1, -1, 40, 41, 42, -1, -1, - 45, 46, -1, -1, -1, -1, -1, -1, -1, 54, - -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, - 65, -1, -1, -1, -1, -1, -1, -1, -1, -1, - 75, 76, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, 495, 496, 497, 498, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, 521, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, 578, -1, - 580 +static const short yycheck[] = +{ + 5, 234, 7, 3, 97, 98, 99, 238, 18, 102, + 15, 104, 17, 18, 19, 20, 100, 22, 23, 24, + 25, 26, 374, 375, 3, 4, 17, 18, 19, 20, + 152, 22, 23, 24, 25, 26, 3, 121, 3, 17, + 16, 163, 47, 3, 4, 3, 4, 131, 3, 4, + 3, 4, 16, 3, 4, 3, 47, 150, 3, 4, + 17, 54, 33, 53, 54, 83, 54, 9, 54, 16, + 40, 83, 65, 78, 84, 3, 169, 356, 9, 65, + 16, 73, 364, 17, 84, 17, 365, 24, 93, 94, + 372, 84, 84, 95, 84, 100, 84, 3, 232, 47, + 234, 83, 93, 187, 21, 84, 84, 6, 84, 111, + 112, 53, 117, 84, 84, 83, 121, 84, 60, 84, + 84, 83, 53, 83, 54, 83, 131, 84, 83, 60, + 83, 61, 137, 83, 136, 77, 78, 84, 83, 38, + 39, 40, 84, 35, 43, 73, 77, 78, 84, 48, + 84, 3, 84, 84, 84, 54, 83, 49, 160, 54, + 162, 83, 363, 55, 63, 83, 61, 172, 67, 68, + 371, 70, 358, 72, 66, 359, 19, 76, 6, 47, + 366, 83, 187, 367, 84, 84, 54, 189, 21, 84, + 361, 84, 84, 83, 27, 28, 39, 83, 369, 201, + 3, 4, 30, 3, 4, 48, 3, 4, 83, 214, + 38, 39, 217, 83, 216, 43, 568, 219, 570, 52, + 48, 83, 227, 228, 229, 19, 54, 83, 71, 62, + 6, 182, 183, 83, 327, 63, 69, 83, 83, 67, + 245, 84, 83, 83, 83, 39, 248, 83, 76, 79, + 80, 81, 82, 84, 48, 84, 84, 176, 177, 178, + 83, 83, 38, 39, 83, 83, 83, 360, 83, 83, + 83, 276, 48, 395, 279, 368, 83, 71, 54, 281, + 84, 114, 115, 514, 83, 407, 84, 63, 83, 73, + 84, 67, 83, 83, 83, 417, 83, 83, 494, 84, + 76, 84, 83, 83, 426, 84, 539, 84, 84, 84, + 84, 316, 317, 318, 319, 84, 84, 84, 6, 84, + 84, 84, 84, 84, 84, 316, 317, 318, 319, 83, + 83, 424, 334, 335, 336, 337, 338, 339, 340, 341, + 83, 83, 344, 345, 346, 347, 348, 349, 350, 351, + 38, 39, 83, 83, 83, 83, 83, 359, 83, 361, + 48, 83, 83, 83, 83, 367, 54, 369, 83, 83, + 83, 83, 83, 83, 6, 63, 83, 83, 83, 67, + 83, 83, 83, 83, 386, 83, 388, 83, 76, 83, + 392, 393, 83, 83, 83, 397, 84, 84, 400, 401, + 402, 403, 404, 405, 83, 83, 38, 39, 83, 83, + 83, 0, 84, 84, 84, 84, 48, 84, 84, 84, + 84, 84, 54, 84, 84, 84, 84, 84, 84, 84, + 84, 63, 265, 84, 84, 67, 84, 439, 84, 441, + 83, 83, 444, 445, 76, 83, 83, 83, 450, 451, + 283, 84, 83, 455, 287, 36, 84, 459, 460, 461, + 462, 84, 295, 585, 84, 587, 84, 589, 49, 50, + 51, 52, 305, 84, 55, 84, 83, 0, 84, 84, + 84, 84, 83, 83, 83, 66, 84, 84, 84, 83, + 83, 493, 494, 495, 496, 497, 498, 83, 5, 84, + 83, 503, 84, 84, 83, 83, 508, 509, 84, 342, + 84, 84, 84, 84, 83, 83, 521, 83, 519, 84, + 84, 84, 84, 84, 526, 84, 528, 529, 530, 84, + 363, 364, 534, 84, 488, -1, 240, 342, 371, 372, + -1, 116, -1, -1, -1, -1, 551, -1, -1, -1, + -1, 553, 554, 555, 556, -1, -1, 559, 560, -1, + 562, -1, -1, -1, -1, -1, -1, -1, -1, -1, + 572, 573, -1, 575, -1, 577, -1, 579, -1, -1, + -1, 583, 584, -1, -1, -1, -1, 592, 590, 591, + 595, -1, 594, 598, -1, 597, -1, -1, -1, -1, + -1, 603, 604, -1, -1, -1, -1, 612, 610, 611, + 615, -1, -1, 618, -1, 617, -1, -1, -1, 621, + 622, -1, -1, -1, -1, -1, 628, 629, 630, 631, + -1, 633, 634, 635, -1, -1, -1, 639, 640, 641, + 642, 643, 644, 645, 646, 647, 648, 649, -1, -1, + 652, -1, -1, 655, 656, -1, -1, 659, 1, 2, + 3, 4, 664, -1, -1, 667, 668, -1, -1, -1, + -1, -1, 15, -1, 17, 18, 19, 20, -1, 22, + 23, 24, 25, 26, -1, -1, -1, 3, 4, -1, + -1, -1, -1, -1, -1, -1, 12, 13, -1, -1, + -1, -1, -1, -1, 47, -1, -1, -1, 24, 542, + 26, -1, 545, 29, -1, 548, 32, -1, 34, -1, + -1, -1, -1, -1, 40, 41, -1, -1, -1, 45, + 46, -1, -1, -1, -1, 78, -1, -1, -1, -1, + -1, -1, -1, -1, 60, -1, -1, 63, -1, -1, + 93, -1, -1, -1, -1, -1, -1, 100, -1, 75, + -1, -1, -1, 106, -1, -1, -1, -1, -1, -1, + -1, -1, -1, 116, 117, -1, -1, -1, 121, -1, + -1, -1, -1, -1, -1, -1, -1, -1, 131, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, 149, 150, -1, -1, + 153, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, 176, 177, 178, 179, 180, 181, 182, + 183, 184, -1, 186, 187, 3, 4, 190, -1, 7, + 8, -1, -1, 11, 12, 13, -1, 15, -1, -1, + -1, -1, 20, -1, -1, -1, 24, -1, 26, -1, + -1, 29, -1, -1, 32, -1, 34, -1, -1, 37, + -1, -1, 40, 41, 42, -1, -1, 45, 46, -1, + -1, -1, -1, -1, -1, -1, 54, 240, -1, -1, + 58, 59, 60, -1, 62, 63, -1, 65, -1, -1, + -1, -1, -1, -1, -1, -1, -1, 75, 76, -1, + -1, -1, -1, -1, -1, -1, 84, 3, 4, -1, + -1, 7, 8, -1, -1, 11, 12, 13, -1, 15, + -1, -1, -1, -1, 20, -1, -1, -1, 24, -1, + 26, -1, -1, 29, -1, -1, 32, -1, 34, -1, + -1, 37, -1, -1, 40, 41, 42, -1, -1, 45, + 46, -1, -1, 316, 317, 318, 319, -1, 54, -1, + -1, -1, 58, 59, 60, -1, 62, 63, -1, 65, + -1, -1, 335, -1, -1, -1, -1, -1, -1, 75, + 76, 344, -1, -1, -1, -1, -1, -1, 84, -1, + -1, -1, 3, 4, 357, -1, 7, 8, -1, -1, + 11, 12, 13, -1, 15, -1, -1, -1, -1, 20, + 373, 374, 375, 24, -1, 26, -1, -1, 29, -1, + -1, 32, -1, 34, -1, -1, 37, -1, -1, 40, + 41, 42, -1, -1, 45, 46, -1, -1, -1, -1, + -1, -1, -1, 54, -1, -1, -1, 58, 59, 60, + -1, 62, 63, -1, 65, -1, -1, -1, 3, 4, + -1, -1, 7, 8, 75, 76, 11, 12, 13, -1, + 15, -1, -1, 84, -1, 20, -1, -1, -1, 24, + -1, 26, -1, -1, 29, -1, -1, 32, -1, 34, + -1, -1, 37, -1, -1, 40, 41, 42, -1, -1, + 45, 46, -1, -1, -1, -1, -1, -1, -1, 54, + -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, + 65, -1, -1, -1, -1, 488, 489, 490, 491, -1, + 75, 76, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + 513, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, 568, -1, 570 }; /* -*-C-*- Note some compilers choke on comments on `#line' lines. */ -#line 3 "/usr/share/bison.simple" -/* This file comes from bison-1.28. */ +#line 3 "/usr/share/bison/bison.simple" /* Skeleton output parser for bison, - Copyright (C) 1984, 1989, 1990 Free Software Foundation, Inc. + + Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 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 @@ -968,62 +986,131 @@ static const short yycheck[] = { 5, This special exception was added by the Free Software Foundation in version 1.24 of Bison. */ -/* This is the parser code that is written into each bison parser - when the %semantic_parser declaration is not specified in the grammar. - It was written by Richard Stallman by simplifying the hairy parser - used when %semantic_parser is specified. */ +/* This is the parser code that is written into each bison parser when + the %semantic_parser declaration is not specified in the grammar. + It was written by Richard Stallman by simplifying the hairy parser + used when %semantic_parser is specified. */ -#ifndef YYSTACK_USE_ALLOCA -#ifdef alloca -#define YYSTACK_USE_ALLOCA -#else /* alloca not defined */ -#ifdef __GNUC__ -#define YYSTACK_USE_ALLOCA -#define alloca __builtin_alloca -#else /* not GNU C. */ -#if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi) || (defined (__sun) && defined (__i386)) -#define YYSTACK_USE_ALLOCA -#include -#else /* not sparc */ -/* We think this test detects Watcom and Microsoft C. */ -/* This used to test MSDOS, but that is a bad idea - since that symbol is in the user namespace. */ -#if (defined (_MSDOS) || defined (_MSDOS_)) && !defined (__TURBOC__) -#if 0 /* No need for malloc.h, which pollutes the namespace; - instead, just don't use alloca. */ -#include -#endif -#else /* not MSDOS, or __TURBOC__ */ -#if defined(_AIX) -/* I don't know what this was needed for, but it pollutes the namespace. - So I turned it off. rms, 2 May 1997. */ -/* #include */ - #pragma alloca -#define YYSTACK_USE_ALLOCA -#else /* not MSDOS, or __TURBOC__, or _AIX */ -#if 0 -#ifdef __hpux /* haible@ilog.fr says this works for HPUX 9.05 and up, - and on HPUX 10. Eventually we can turn this on. */ -#define YYSTACK_USE_ALLOCA -#define alloca __builtin_alloca -#endif /* __hpux */ -#endif -#endif /* not _AIX */ -#endif /* not MSDOS, or __TURBOC__ */ -#endif /* not sparc */ -#endif /* not GNU C */ -#endif /* alloca not defined */ -#endif /* YYSTACK_USE_ALLOCA not defined */ +/* 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. */ + +#if ! defined (yyoverflow) || defined (YYERROR_VERBOSE) + +/* The parser invokes alloca or malloc; define the necessary symbols. */ + +# if YYSTACK_USE_ALLOCA +# define YYSTACK_ALLOC alloca +# else +# ifndef YYSTACK_USE_ALLOCA +# if defined (alloca) || defined (_ALLOCA_H) +# define YYSTACK_ALLOC alloca +# else +# ifdef __GNUC__ +# define YYSTACK_ALLOC __builtin_alloca +# endif +# endif +# endif +# endif + +# ifdef YYSTACK_ALLOC + /* Pacify GCC's `empty if-body' warning. */ +# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0) +# else +# if defined (__STDC__) || defined (__cplusplus) +# include /* INFRINGES ON USER NAME SPACE */ +# define YYSIZE_T size_t +# endif +# define YYSTACK_ALLOC malloc +# define YYSTACK_FREE free +# endif +#endif /* ! defined (yyoverflow) || defined (YYERROR_VERBOSE) */ + + +#if (! defined (yyoverflow) \ + && (! defined (__cplusplus) \ + || (YYLTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) + +/* A type that is properly aligned for any stack member. */ +union yyalloc +{ + short yyss; + YYSTYPE yyvs; +# if YYLSP_NEEDED + YYLTYPE yyls; +# endif +}; + +/* The size of the maximum gap between one aligned stack and the next. */ +# define YYSTACK_GAP_MAX (sizeof (union yyalloc) - 1) + +/* The size of an array large to enough to hold all stacks, each with + N elements. */ +# if YYLSP_NEEDED +# define YYSTACK_BYTES(N) \ + ((N) * (sizeof (short) + sizeof (YYSTYPE) + sizeof (YYLTYPE)) \ + + 2 * YYSTACK_GAP_MAX) +# else +# define YYSTACK_BYTES(N) \ + ((N) * (sizeof (short) + sizeof (YYSTYPE)) \ + + YYSTACK_GAP_MAX) +# endif + +/* Copy COUNT objects from FROM to TO. The source and destination do + not overlap. */ +# ifndef YYCOPY +# if 1 < __GNUC__ +# define YYCOPY(To, From, Count) \ + __builtin_memcpy (To, From, (Count) * sizeof (*(From))) +# else +# define YYCOPY(To, From, Count) \ + do \ + { \ + register YYSIZE_T yyi; \ + for (yyi = 0; yyi < (Count); yyi++) \ + (To)[yyi] = (From)[yyi]; \ + } \ + while (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_MAX; \ + yyptr += yynewbytes / sizeof (*yyptr); \ + } \ + while (0) -#ifdef YYSTACK_USE_ALLOCA -#define YYSTACK_ALLOC alloca -#else -#define YYSTACK_ALLOC malloc #endif -/* Note: there must be only one dollar sign in this file. - It is replaced by the list of actions, each action - as one case of the switch. */ + +#if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__) +# define YYSIZE_T __SIZE_TYPE__ +#endif +#if ! defined (YYSIZE_T) && defined (size_t) +# define YYSIZE_T size_t +#endif +#if ! defined (YYSIZE_T) +# if defined (__STDC__) || defined (__cplusplus) +# include /* INFRINGES ON USER NAME SPACE */ +# define YYSIZE_T size_t +# endif +#endif +#if ! defined (YYSIZE_T) +# define YYSIZE_T unsigned int +#endif #define yyerrok (yyerrstatus = 0) #define yyclearin (yychar = YYEMPTY) @@ -1032,131 +1119,161 @@ static const short yycheck[] = { 5, #define YYACCEPT goto yyacceptlab #define YYABORT goto yyabortlab #define YYERROR goto yyerrlab1 -/* Like YYERROR except do call yyerror. - This remains here temporarily to ease the - transition to the new meaning of YYERROR, for GCC. +/* 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) \ +#define YYBACKUP(Token, Value) \ do \ if (yychar == YYEMPTY && yylen == 1) \ - { yychar = (token), yylval = (value); \ + { \ + yychar = (Token); \ + yylval = (Value); \ yychar1 = YYTRANSLATE (yychar); \ YYPOPSTACK; \ goto yybackup; \ } \ else \ - { yyerror ("syntax error: cannot back up"); YYERROR; } \ + { \ + yyerror ("syntax error: cannot back up"); \ + YYERROR; \ + } \ while (0) #define YYTERROR 1 #define YYERRCODE 256 -#ifndef YYPURE -#define YYLEX yylex() + +/* YYLLOC_DEFAULT -- Compute the default location (before the actions + are run). + + When YYLLOC_DEFAULT is run, CURRENT is set the location of the + first token. By default, to implement support for ranges, extend + its range to the last symbol. */ + +#ifndef YYLLOC_DEFAULT +# define YYLLOC_DEFAULT(Current, Rhs, N) \ + Current.last_line = Rhs[N].last_line; \ + Current.last_column = Rhs[N].last_column; #endif -#ifdef YYPURE -#ifdef YYLSP_NEEDED -#ifdef YYLEX_PARAM -#define YYLEX yylex(&yylval, &yylloc, YYLEX_PARAM) -#else -#define YYLEX yylex(&yylval, &yylloc) -#endif -#else /* not YYLSP_NEEDED */ -#ifdef YYLEX_PARAM -#define YYLEX yylex(&yylval, YYLEX_PARAM) -#else -#define YYLEX yylex(&yylval) -#endif -#endif /* not YYLSP_NEEDED */ -#endif -/* If nonreentrant, generate the variables here */ +/* YYLEX -- calling `yylex' with the right arguments. */ -#ifndef YYPURE +#if YYPURE +# if YYLSP_NEEDED +# ifdef YYLEX_PARAM +# define YYLEX yylex (&yylval, &yylloc, YYLEX_PARAM) +# else +# define YYLEX yylex (&yylval, &yylloc) +# endif +# else /* !YYLSP_NEEDED */ +# ifdef YYLEX_PARAM +# define YYLEX yylex (&yylval, YYLEX_PARAM) +# else +# define YYLEX yylex (&yylval) +# endif +# endif /* !YYLSP_NEEDED */ +#else /* !YYPURE */ +# define YYLEX yylex () +#endif /* !YYPURE */ -int yychar; /* the lookahead symbol */ -YYSTYPE yylval; /* the semantic value of the */ - /* lookahead symbol */ -#ifdef YYLSP_NEEDED -YYLTYPE yylloc; /* location data for the lookahead */ - /* symbol */ -#endif +/* Enable debugging if requested. */ +#if YYDEBUG -int yynerrs; /* number of parse errors so far */ -#endif /* not YYPURE */ +# ifndef YYFPRINTF +# include /* INFRINGES ON USER NAME SPACE */ +# define YYFPRINTF fprintf +# endif -#if YYDEBUG != 0 -int yydebug; /* nonzero means print parse trace */ -/* Since this is uninitialized, it does not stop multiple parsers - from coexisting. */ -#endif - -/* YYINITDEPTH indicates the initial size of the parser's stacks */ +# define YYDPRINTF(Args) \ +do { \ + if (yydebug) \ + YYFPRINTF Args; \ +} while (0) +/* Nonzero means print parse trace. It is left uninitialized so that + multiple parsers can coexist. */ +int yydebug; +#else /* !YYDEBUG */ +# define YYDPRINTF(Args) +#endif /* !YYDEBUG */ +/* YYINITDEPTH -- initial size of the parser's stacks. */ #ifndef YYINITDEPTH -#define YYINITDEPTH 200 +# define YYINITDEPTH 200 #endif -/* YYMAXDEPTH is the maximum size the stacks can grow to - (effective only if the built-in stack extension method is used). */ +/* 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 + SIZE_MAX < YYSTACK_BYTES (YYMAXDEPTH) + evaluated with infinite-precision integer arithmetic. */ #if YYMAXDEPTH == 0 -#undef YYMAXDEPTH +# undef YYMAXDEPTH #endif #ifndef YYMAXDEPTH -#define YYMAXDEPTH 10000 +# define YYMAXDEPTH 10000 #endif -/* Define __yy_memcpy. Note that the size argument - should be passed with type unsigned int, because that is what the non-GCC - definitions require. With GCC, __builtin_memcpy takes an arg - of type size_t, but it can handle unsigned int. */ +#ifdef YYERROR_VERBOSE -#if __GNUC__ > 1 /* GNU C and GNU C++ define this. */ -#define __yy_memcpy(TO,FROM,COUNT) __builtin_memcpy(TO,FROM,COUNT) -#else /* not GNU C or C++ */ -#ifndef __cplusplus - -/* This is the most reliable way to avoid incompatibilities - in available built-in functions on various systems. */ -static void -__yy_memcpy (to, from, count) - char *to; - char *from; - unsigned int count; +# ifndef yystrlen +# if defined (__GLIBC__) && defined (_STRING_H) +# define yystrlen strlen +# else +/* Return the length of YYSTR. */ +static YYSIZE_T +# if defined (__STDC__) || defined (__cplusplus) +yystrlen (const char *yystr) +# else +yystrlen (yystr) + const char *yystr; +# endif { - register char *f = from; - register char *t = to; - register int i = count; + register const char *yys = yystr; - while (i-- > 0) - *t++ = *f++; + while (*yys++ != '\0') + continue; + + return yys - yystr - 1; } +# endif +# endif -#else /* __cplusplus */ - -/* This is the most reliable way to avoid incompatibilities - in available built-in functions on various systems. */ -static void -__yy_memcpy (char *to, char *from, unsigned int count) +# 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. */ +static char * +# if defined (__STDC__) || defined (__cplusplus) +yystpcpy (char *yydest, const char *yysrc) +# else +yystpcpy (yydest, yysrc) + char *yydest; + const char *yysrc; +# endif { - register char *t = to; - register char *f = from; - register int i = count; + register char *yyd = yydest; + register const char *yys = yysrc; - while (i-- > 0) - *t++ = *f++; + while ((*yyd++ = *yys++) != '\0') + continue; + + return yyd - 1; } - -#endif +# endif +# endif #endif -#line 217 "/usr/share/bison.simple" +#line 315 "/usr/share/bison/bison.simple" + /* The user can define YYPARSE_PARAM as the name of an argument to be passed into yyparse. The argument should have type void *. @@ -1165,76 +1282,121 @@ __yy_memcpy (char *to, char *from, unsigned int count) to the proper pointer type. */ #ifdef YYPARSE_PARAM -#ifdef __cplusplus -#define YYPARSE_PARAM_ARG void *YYPARSE_PARAM -#define YYPARSE_PARAM_DECL -#else /* not __cplusplus */ -#define YYPARSE_PARAM_ARG YYPARSE_PARAM -#define YYPARSE_PARAM_DECL void *YYPARSE_PARAM; -#endif /* not __cplusplus */ -#else /* not YYPARSE_PARAM */ -#define YYPARSE_PARAM_ARG -#define YYPARSE_PARAM_DECL -#endif /* not YYPARSE_PARAM */ +# if defined (__STDC__) || defined (__cplusplus) +# define YYPARSE_PARAM_ARG void *YYPARSE_PARAM +# define YYPARSE_PARAM_DECL +# else +# define YYPARSE_PARAM_ARG YYPARSE_PARAM +# define YYPARSE_PARAM_DECL void *YYPARSE_PARAM; +# endif +#else /* !YYPARSE_PARAM */ +# define YYPARSE_PARAM_ARG +# define YYPARSE_PARAM_DECL +#endif /* !YYPARSE_PARAM */ /* Prevent warning if -Wstrict-prototypes. */ #ifdef __GNUC__ -#ifdef YYPARSE_PARAM +# ifdef YYPARSE_PARAM int yyparse (void *); -#else +# else int yyparse (void); +# endif #endif + +/* YY_DECL_VARIABLES -- depending whether we use a pure parser, + variables are global, or local to YYPARSE. */ + +#define YY_DECL_NON_LSP_VARIABLES \ +/* The lookahead symbol. */ \ +int yychar; \ + \ +/* The semantic value of the lookahead symbol. */ \ +YYSTYPE yylval; \ + \ +/* Number of parse errors so far. */ \ +int yynerrs; + +#if YYLSP_NEEDED +# define YY_DECL_VARIABLES \ +YY_DECL_NON_LSP_VARIABLES \ + \ +/* Location data for the lookahead symbol. */ \ +YYLTYPE yylloc; +#else +# define YY_DECL_VARIABLES \ +YY_DECL_NON_LSP_VARIABLES #endif + +/* If nonreentrant, generate the variables here. */ + +#if !YYPURE +YY_DECL_VARIABLES +#endif /* !YYPURE */ + int -yyparse(YYPARSE_PARAM_ARG) +yyparse (YYPARSE_PARAM_ARG) YYPARSE_PARAM_DECL { + /* If reentrant, generate the variables here. */ +#if YYPURE + YY_DECL_VARIABLES +#endif /* !YYPURE */ + register int yystate; register int yyn; + int yyresult; + /* Number of tokens to shift before error messages enabled. */ + int yyerrstatus; + /* Lookahead token as an internal (translated) token number. */ + int yychar1 = 0; + + /* 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. */ + short yyssa[YYINITDEPTH]; + short *yyss = yyssa; register short *yyssp; + + /* The semantic value stack. */ + YYSTYPE yyvsa[YYINITDEPTH]; + YYSTYPE *yyvs = yyvsa; register YYSTYPE *yyvsp; - int yyerrstatus; /* number of tokens to shift before error messages enabled */ - int yychar1 = 0; /* lookahead token as an internal (translated) token number */ - short yyssa[YYINITDEPTH]; /* the state stack */ - YYSTYPE yyvsa[YYINITDEPTH]; /* the semantic value stack */ - - short *yyss = yyssa; /* refer to the stacks thru separate pointers */ - YYSTYPE *yyvs = yyvsa; /* to allow yyoverflow to reallocate them elsewhere */ - -#ifdef YYLSP_NEEDED - YYLTYPE yylsa[YYINITDEPTH]; /* the location stack */ +#if YYLSP_NEEDED + /* The location stack. */ + YYLTYPE yylsa[YYINITDEPTH]; YYLTYPE *yyls = yylsa; YYLTYPE *yylsp; +#endif -#define YYPOPSTACK (yyvsp--, yyssp--, yylsp--) +#if YYLSP_NEEDED +# define YYPOPSTACK (yyvsp--, yyssp--, yylsp--) #else -#define YYPOPSTACK (yyvsp--, yyssp--) +# define YYPOPSTACK (yyvsp--, yyssp--) #endif - int yystacksize = YYINITDEPTH; - int yyfree_stacks = 0; + YYSIZE_T yystacksize = YYINITDEPTH; -#ifdef YYPURE - int yychar; - YYSTYPE yylval; - int yynerrs; -#ifdef YYLSP_NEEDED - YYLTYPE yylloc; -#endif + + /* The variables used to return semantic value and location from the + action routines. */ + YYSTYPE yyval; +#if YYLSP_NEEDED + YYLTYPE yyloc; #endif - YYSTYPE yyval; /* the variable used to return */ - /* semantic values from the action */ - /* routines */ - + /* When reducing, the number of symbols on the RHS of the reduced + rule. */ int yylen; -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Starting parse\n"); -#endif + YYDPRINTF ((stderr, "Starting parse\n")); yystate = 0; yyerrstatus = 0; @@ -1246,110 +1408,110 @@ yyparse(YYPARSE_PARAM_ARG) so that they stay on the same level as the state stack. The wasted elements are never initialized. */ - yyssp = yyss - 1; + yyssp = yyss; yyvsp = yyvs; -#ifdef YYLSP_NEEDED +#if YYLSP_NEEDED yylsp = yyls; #endif + goto yysetstate; -/* Push a new state, which is found in yystate . */ -/* In all cases, when you get here, the value and location stacks - have just been pushed. so pushing a state here evens the stacks. */ -yynewstate: +/*------------------------------------------------------------. +| 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++; - *++yyssp = yystate; + yysetstate: + *yyssp = yystate; if (yyssp >= yyss + yystacksize - 1) { - /* 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; - short *yyss1 = yyss; -#ifdef YYLSP_NEEDED - YYLTYPE *yyls1 = yyls; -#endif - /* Get the current used size of the three stacks, in elements. */ - int size = yyssp - yyss + 1; + YYSIZE_T yysize = yyssp - yyss + 1; #ifdef yyoverflow - /* Each stack pointer address is followed by the size of - the data in use in that stack, in bytes. */ -#ifdef YYLSP_NEEDED - /* This used to be a conditional around just the two extra args, - but that might be undefined if yyoverflow is a macro. */ - yyoverflow("parser stack overflow", - &yyss1, size * sizeof (*yyssp), - &yyvs1, size * sizeof (*yyvsp), - &yyls1, size * sizeof (*yylsp), - &yystacksize); -#else - yyoverflow("parser stack overflow", - &yyss1, size * sizeof (*yyssp), - &yyvs1, size * sizeof (*yyvsp), - &yystacksize); -#endif + { + /* 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; + short *yyss1 = yyss; - yyss = yyss1; yyvs = yyvs1; -#ifdef YYLSP_NEEDED - yyls = yyls1; -#endif + /* Each stack pointer address is followed by the size of the + data in use in that stack, in bytes. */ +# if YYLSP_NEEDED + YYLTYPE *yyls1 = yyls; + /* This used to be a conditional around just the two extra args, + but that might be undefined if yyoverflow is a macro. */ + yyoverflow ("parser stack overflow", + &yyss1, yysize * sizeof (*yyssp), + &yyvs1, yysize * sizeof (*yyvsp), + &yyls1, yysize * sizeof (*yylsp), + &yystacksize); + yyls = yyls1; +# else + yyoverflow ("parser stack overflow", + &yyss1, yysize * sizeof (*yyssp), + &yyvs1, yysize * sizeof (*yyvsp), + &yystacksize); +# endif + yyss = yyss1; + yyvs = yyvs1; + } #else /* no yyoverflow */ +# ifndef YYSTACK_RELOCATE + goto yyoverflowlab; +# else /* Extend the stack our own way. */ if (yystacksize >= YYMAXDEPTH) - { - yyerror("parser stack overflow"); - if (yyfree_stacks) - { - free (yyss); - free (yyvs); -#ifdef YYLSP_NEEDED - free (yyls); -#endif - } - return 2; - } + goto yyoverflowlab; yystacksize *= 2; if (yystacksize > YYMAXDEPTH) yystacksize = YYMAXDEPTH; -#ifndef YYSTACK_USE_ALLOCA - yyfree_stacks = 1; -#endif - yyss = (short *) YYSTACK_ALLOC (yystacksize * sizeof (*yyssp)); - __yy_memcpy ((char *)yyss, (char *)yyss1, - size * (unsigned int) sizeof (*yyssp)); - yyvs = (YYSTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yyvsp)); - __yy_memcpy ((char *)yyvs, (char *)yyvs1, - size * (unsigned int) sizeof (*yyvsp)); -#ifdef YYLSP_NEEDED - yyls = (YYLTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yylsp)); - __yy_memcpy ((char *)yyls, (char *)yyls1, - size * (unsigned int) sizeof (*yylsp)); -#endif + + { + short *yyss1 = yyss; + union yyalloc *yyptr = + (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); + if (! yyptr) + goto yyoverflowlab; + YYSTACK_RELOCATE (yyss); + YYSTACK_RELOCATE (yyvs); +# if YYLSP_NEEDED + YYSTACK_RELOCATE (yyls); +# endif +# undef YYSTACK_RELOCATE + if (yyss1 != yyssa) + YYSTACK_FREE (yyss1); + } +# endif #endif /* no yyoverflow */ - yyssp = yyss + size - 1; - yyvsp = yyvs + size - 1; -#ifdef YYLSP_NEEDED - yylsp = yyls + size - 1; + yyssp = yyss + yysize - 1; + yyvsp = yyvs + yysize - 1; +#if YYLSP_NEEDED + yylsp = yyls + yysize - 1; #endif -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Stack size increased to %d\n", yystacksize); -#endif + YYDPRINTF ((stderr, "Stack size increased to %lu\n", + (unsigned long int) yystacksize)); if (yyssp >= yyss + yystacksize - 1) YYABORT; } -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Entering state %d\n", yystate); -#endif + YYDPRINTF ((stderr, "Entering state %d\n", yystate)); goto yybackup; - yybackup: + + +/*-----------. +| yybackup. | +`-----------*/ +yybackup: /* Do appropriate processing given the current state. */ /* Read a lookahead token if we need one and don't already have one. */ @@ -1368,10 +1530,7 @@ yynewstate: if (yychar == YYEMPTY) { -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Reading a token: "); -#endif + YYDPRINTF ((stderr, "Reading a token: ")); yychar = YYLEX; } @@ -1382,25 +1541,25 @@ yynewstate: yychar1 = 0; yychar = YYEOF; /* Don't call YYLEX any more */ -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Now at end of input.\n"); -#endif + YYDPRINTF ((stderr, "Now at end of input.\n")); } else { - yychar1 = YYTRANSLATE(yychar); + yychar1 = YYTRANSLATE (yychar); -#if YYDEBUG != 0 +#if YYDEBUG + /* We have to keep this `#if YYDEBUG', since we use variables + which are defined only if `YYDEBUG' is set. */ if (yydebug) { - fprintf (stderr, "Next token is %d (%s", yychar, yytname[yychar1]); - /* Give the individual parser a way to print the precise meaning - of a token, for further debugging info. */ -#ifdef YYPRINT + YYFPRINTF (stderr, "Next token is %d (%s", + yychar, yytname[yychar1]); + /* Give the individual parser a way to print the precise + meaning of a token, for further debugging info. */ +# ifdef YYPRINT YYPRINT (stderr, yychar, yylval); -#endif - fprintf (stderr, ")\n"); +# endif + YYFPRINTF (stderr, ")\n"); } #endif } @@ -1432,66 +1591,88 @@ yynewstate: YYACCEPT; /* Shift the lookahead token. */ - -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Shifting token %d (%s), ", yychar, yytname[yychar1]); -#endif + YYDPRINTF ((stderr, "Shifting token %d (%s), ", + yychar, yytname[yychar1])); /* Discard the token being shifted unless it is eof. */ if (yychar != YYEOF) yychar = YYEMPTY; *++yyvsp = yylval; -#ifdef YYLSP_NEEDED +#if YYLSP_NEEDED *++yylsp = yylloc; #endif - /* count tokens shifted since error; after three, turn off error status. */ - if (yyerrstatus) yyerrstatus--; + /* Count tokens shifted since error; after three, turn off error + status. */ + if (yyerrstatus) + yyerrstatus--; yystate = yyn; goto yynewstate; -/* Do the default action for the current state. */ -yydefault: +/*-----------------------------------------------------------. +| yydefault -- do the default action for the current state. | +`-----------------------------------------------------------*/ +yydefault: yyn = yydefact[yystate]; if (yyn == 0) goto yyerrlab; + goto yyreduce; -/* Do a reduction. yyn is the number of a rule to reduce with. */ + +/*-----------------------------. +| yyreduce -- Do a reduction. | +`-----------------------------*/ yyreduce: + /* yyn is the number of a rule to reduce with. */ yylen = yyr2[yyn]; - if (yylen > 0) - yyval = yyvsp[1-yylen]; /* implement default value of the action */ -#if YYDEBUG != 0 - if (yydebug) - { - int i; + /* If YYLEN is nonzero, implement the default value of the action: + `$$ = $1'. - fprintf (stderr, "Reducing via rule %d (line %d), ", - yyn, yyrline[yyn]); + Otherwise, the following line sets YYVAL to the semantic value of + the lookahead token. 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]; - /* Print the symbols being reduced, and their result. */ - for (i = yyprhs[yyn]; yyrhs[i] > 0; i++) - fprintf (stderr, "%s ", yytname[yyrhs[i]]); - fprintf (stderr, " -> %s\n", yytname[yyr1[yyn]]); - } +#if YYLSP_NEEDED + /* Similarly for the default location. Let the user run additional + commands if for instance locations are ranges. */ + yyloc = yylsp[1-yylen]; + YYLLOC_DEFAULT (yyloc, (yylsp - yylen), yylen); #endif +#if YYDEBUG + /* We have to keep this `#if YYDEBUG', since we use variables which + are defined only if `YYDEBUG' is set. */ + if (yydebug) + { + int yyi; + + YYFPRINTF (stderr, "Reducing via rule %d (line %d), ", + yyn, yyrline[yyn]); + + /* Print the symbols being reduced, and their result. */ + for (yyi = yyprhs[yyn]; yyrhs[yyi] > 0; yyi++) + YYFPRINTF (stderr, "%s ", yytname[yyrhs[yyi]]); + YYFPRINTF (stderr, " -> %s\n", yytname[yyr1[yyn]]); + } +#endif switch (yyn) { case 6: -#line 196 "parser.yxx" +#line 195 "parser.yxx" { DCAST(EggData, egg_stack.back())->add_child(DCAST(EggNode, yyvsp[0]._egg)); -; - break;} +} + break; case 21: -#line 235 "parser.yxx" +#line 234 "parser.yxx" { string strval = yyvsp[-1]._string; EggCoordinateSystem *cs = new EggCoordinateSystem; @@ -1503,16 +1684,16 @@ case 21: cs->set_value(f); } yyval._egg = cs; -; - break;} +} + break; case 22: -#line 258 "parser.yxx" +#line 257 "parser.yxx" { yyval._egg = new EggComment(yyvsp[-3]._string, yyvsp[-1]._string); -; - break;} +} + break; case 23: -#line 272 "parser.yxx" +#line 271 "parser.yxx" { string tref_name = yyvsp[-2]._string; Filename filename = yyvsp[0]._string; @@ -1524,17 +1705,17 @@ case 23: textures[tref_name] = texture; egg_stack.push_back(texture); -; - break;} +} + break; case 24: -#line 285 "parser.yxx" +#line 284 "parser.yxx" { yyval._egg = egg_stack.back(); egg_stack.pop_back(); -; - break;} +} + break; case 26: -#line 301 "parser.yxx" +#line 300 "parser.yxx" { EggTexture *texture = DCAST(EggTexture, egg_stack.back()); string name = yyvsp[-3]._string; @@ -1589,7 +1770,7 @@ case 26: texture->set_magfilter(f); } } else if (cmp_nocase_uh(name, "anisotropic_degree") == 0) { - texture->set_anisotropic_degree(value); + texture->set_anisotropic_degree((int)value); } else if (cmp_nocase_uh(name, "envtype") == 0) { EggTexture::EnvType e = EggTexture::string_env_type(strval); @@ -1632,15 +1813,15 @@ case 26: texture->set_bin(strval); } else if (cmp_nocase_uh(name, "alpha_file") == 0) { - texture->set_alpha_file(strval); + texture->set_alpha_filename(strval); } else { eggyywarning("Unsupported texture scalar: " + name); } -; - break;} +} + break; case 28: -#line 416 "parser.yxx" +#line 415 "parser.yxx" { string mref_name = yyvsp[-1]._string; EggMaterial *material = new EggMaterial(mref_name); @@ -1651,17 +1832,17 @@ case 28: materials[mref_name] = material; egg_stack.push_back(material); -; - break;} +} + break; case 29: -#line 428 "parser.yxx" +#line 427 "parser.yxx" { yyval._egg = egg_stack.back(); egg_stack.pop_back(); -; - break;} +} + break; case 31: -#line 444 "parser.yxx" +#line 443 "parser.yxx" { EggMaterial *material = DCAST(EggMaterial, egg_stack.back()); string name = yyvsp[-3]._string; @@ -1744,19 +1925,19 @@ case 31: } else { eggyywarning("Unsupported material scalar: " + name); } -; - break;} +} + break; case 32: -#line 539 "parser.yxx" +#line 538 "parser.yxx" { string node_name = yyvsp[-3]._string; Filename filename = yyvsp[-1]._string; EggExternalReference *ref = new EggExternalReference(node_name, filename); yyval._egg = ref; -; - break;} +} + break; case 33: -#line 546 "parser.yxx" +#line 545 "parser.yxx" { if (cmp_nocase_uh(yyvsp[-5]._string, "group") != 0) { eggyyerror("keyword 'group' expected"); @@ -1765,10 +1946,10 @@ case 33: Filename filename = yyvsp[-1]._string; EggExternalReference *ref = new EggExternalReference(node_name, filename); yyval._egg = ref; -; - break;} +} + break; case 34: -#line 566 "parser.yxx" +#line 565 "parser.yxx" { string name = yyvsp[0]._string; EggVertexPool *pool = new EggVertexPool(name); @@ -1779,32 +1960,32 @@ case 34: vertex_pools[name] = pool; egg_stack.push_back(pool); -; - break;} +} + break; case 35: -#line 578 "parser.yxx" +#line 577 "parser.yxx" { yyval._egg = egg_stack.back(); egg_stack.pop_back(); -; - break;} +} + break; case 38: -#line 606 "parser.yxx" +#line 605 "parser.yxx" { egg_stack.push_back(new EggVertex); -; - break;} +} + break; case 39: -#line 610 "parser.yxx" +#line 609 "parser.yxx" { PT(EggVertex) vtx = DCAST(EggVertex, egg_stack.back()); egg_stack.pop_back(); DCAST(EggVertexPool, egg_stack.back())->add_vertex(vtx); -; - break;} +} + break; case 40: -#line 617 "parser.yxx" +#line 616 "parser.yxx" { vertex_index = (int)yyvsp[0]._number; EggVertexPool *pool = DCAST(EggVertexPool, egg_stack.back()); @@ -1828,10 +2009,10 @@ case 40: // go ahead and parse the vertex. We just won't save it. egg_stack.push_back(new EggVertex); -; - break;} +} + break; case 41: -#line 642 "parser.yxx" +#line 641 "parser.yxx" { PT(EggVertex) vtx = DCAST(EggVertex, egg_stack.back()); egg_stack.pop_back(); @@ -1840,176 +2021,176 @@ case 41: if (vertex_index != -1) { pool->add_vertex(vtx, vertex_index); } -; - break;} +} + break; case 42: -#line 663 "parser.yxx" +#line 662 "parser.yxx" { DCAST(EggVertex, egg_stack.back())->set_pos(yyvsp[0]._number); -; - break;} +} + break; case 43: -#line 667 "parser.yxx" +#line 666 "parser.yxx" { DCAST(EggVertex, egg_stack.back())->set_pos(LPoint2d(yyvsp[-1]._number, yyvsp[0]._number)); -; - break;} +} + break; case 44: -#line 671 "parser.yxx" +#line 670 "parser.yxx" { DCAST(EggVertex, egg_stack.back())->set_pos(LPoint3d(yyvsp[-2]._number, yyvsp[-1]._number, yyvsp[0]._number)); -; - break;} +} + break; case 45: -#line 675 "parser.yxx" +#line 674 "parser.yxx" { DCAST(EggVertex, egg_stack.back())->set_pos(LPoint4d(yyvsp[-3]._number, yyvsp[-2]._number, yyvsp[-1]._number, yyvsp[0]._number)); -; - break;} +} + break; case 49: -#line 682 "parser.yxx" +#line 681 "parser.yxx" { bool inserted = DCAST(EggVertex, egg_stack.back())->_dxyzs. insert(EggMorphVertex(yyvsp[-5]._string, LVector3d(yyvsp[-3]._number, yyvsp[-2]._number, yyvsp[-1]._number))).second; if (!inserted) { eggyywarning("Ignoring repeated morph name " + yyvsp[-5]._string); } -; - break;} +} + break; case 50: -#line 690 "parser.yxx" +#line 689 "parser.yxx" { bool inserted = DCAST(EggVertex, egg_stack.back())->_dxyzs. insert(EggMorphVertex(yyvsp[-4]._string, LVector3d(yyvsp[-3]._number, yyvsp[-2]._number, yyvsp[-1]._number))).second; if (!inserted) { eggyywarning("Ignoring repeated morph name " + yyvsp[-4]._string); } -; - break;} +} + break; case 51: -#line 709 "parser.yxx" +#line 708 "parser.yxx" { DCAST(EggVertex, egg_stack.back())->set_uv(TexCoordd(yyvsp[-1]._number, yyvsp[0]._number)); -; - break;} +} + break; case 52: -#line 713 "parser.yxx" +#line 712 "parser.yxx" { bool inserted = DCAST(EggVertex, egg_stack.back())->_duvs. insert(EggMorphTexCoord(yyvsp[-4]._string, LVector2d(yyvsp[-2]._number, yyvsp[-1]._number))).second; if (!inserted) { eggyywarning("Ignoring repeated morph name " + yyvsp[-4]._string); } -; - break;} +} + break; case 53: -#line 721 "parser.yxx" +#line 720 "parser.yxx" { bool inserted = DCAST(EggVertex, egg_stack.back())->_duvs. insert(EggMorphTexCoord(yyvsp[-3]._string, LVector2d(yyvsp[-2]._number, yyvsp[-1]._number))).second; if (!inserted) { eggyywarning("Ignoring repeated morph name " + yyvsp[-3]._string); } -; - break;} +} + break; case 54: -#line 739 "parser.yxx" +#line 738 "parser.yxx" { DCAST(EggVertex, egg_stack.back())->set_normal(Normald(yyvsp[-2]._number, yyvsp[-1]._number, yyvsp[0]._number)); -; - break;} +} + break; case 55: -#line 743 "parser.yxx" +#line 742 "parser.yxx" { bool inserted = DCAST(EggVertex, egg_stack.back())->_dnormals. insert(EggMorphNormal(yyvsp[-5]._string, LVector3d(yyvsp[-3]._number, yyvsp[-2]._number, yyvsp[-1]._number))).second; if (!inserted) { eggyywarning("Ignoring repeated morph name " + yyvsp[-5]._string); } -; - break;} +} + break; case 56: -#line 751 "parser.yxx" +#line 750 "parser.yxx" { bool inserted = DCAST(EggVertex, egg_stack.back())->_dnormals. insert(EggMorphNormal(yyvsp[-4]._string, LVector3d(yyvsp[-3]._number, yyvsp[-2]._number, yyvsp[-1]._number))).second; if (!inserted) { eggyywarning("Ignoring repeated morph name " + yyvsp[-4]._string); } -; - break;} +} + break; case 57: -#line 769 "parser.yxx" +#line 768 "parser.yxx" { DCAST(EggVertex, egg_stack.back())->set_color(Colorf(yyvsp[-3]._number, yyvsp[-2]._number, yyvsp[-1]._number, yyvsp[0]._number)); -; - break;} +} + break; case 58: -#line 773 "parser.yxx" +#line 772 "parser.yxx" { bool inserted = DCAST(EggVertex, egg_stack.back())->_drgbas. insert(EggMorphColor(yyvsp[-6]._string, LVector4f(yyvsp[-4]._number, yyvsp[-3]._number, yyvsp[-2]._number, yyvsp[-1]._number))).second; if (!inserted) { eggyywarning("Ignoring repeated morph name " + yyvsp[-6]._string); } -; - break;} +} + break; case 59: -#line 781 "parser.yxx" +#line 780 "parser.yxx" { bool inserted = DCAST(EggVertex, egg_stack.back())->_drgbas. insert(EggMorphColor(yyvsp[-5]._string, LVector4f(yyvsp[-4]._number, yyvsp[-3]._number, yyvsp[-2]._number, yyvsp[-1]._number))).second; if (!inserted) { eggyywarning("Ignoring repeated morph name " + yyvsp[-5]._string); } -; - break;} +} + break; case 60: -#line 799 "parser.yxx" +#line 798 "parser.yxx" { EggGroup *group = new EggGroup(yyvsp[0]._string); egg_stack.push_back(group); -; - break;} +} + break; case 61: -#line 804 "parser.yxx" +#line 803 "parser.yxx" { yyval._egg = egg_stack.back(); egg_stack.pop_back(); -; - break;} +} + break; case 62: -#line 819 "parser.yxx" +#line 818 "parser.yxx" { EggGroup *group = new EggGroup(yyvsp[0]._string); group->set_group_type(EggGroup::GT_joint); egg_stack.push_back(group); -; - break;} +} + break; case 63: -#line 825 "parser.yxx" +#line 824 "parser.yxx" { yyval._egg = egg_stack.back(); egg_stack.pop_back(); -; - break;} +} + break; case 64: -#line 840 "parser.yxx" +#line 839 "parser.yxx" { EggGroup *group = new EggGroup(yyvsp[0]._string); group->set_group_type(EggGroup::GT_instance); egg_stack.push_back(group); -; - break;} +} + break; case 65: -#line 846 "parser.yxx" +#line 845 "parser.yxx" { yyval._egg = egg_stack.back(); egg_stack.pop_back(); -; - break;} +} + break; case 67: -#line 862 "parser.yxx" +#line 861 "parser.yxx" { EggGroup *group = DCAST(EggGroup, egg_stack.back()); string name = yyvsp[-3]._string; @@ -2053,18 +2234,18 @@ case 67: } else if (cmp_nocase_uh(name, "bin") == 0) { group->set_bin(strval); } else if (cmp_nocase_uh(name, "collide_mask") == 0) { - group->set_collide_mask(value); + group->set_collide_mask((int)value); } else if (cmp_nocase_uh(name, "from_collide_mask") == 0) { - group->set_from_collide_mask(value); + group->set_from_collide_mask((int)value); } else if (cmp_nocase_uh(name, "into_collide_mask") == 0) { - group->set_into_collide_mask(value); + group->set_into_collide_mask((int)value); } else { eggyywarning("Unknown group scalar " + name); } -; - break;} +} + break; case 68: -#line 915 "parser.yxx" +#line 914 "parser.yxx" { EggGroup *group = DCAST(EggGroup, egg_stack.back()); string strval = yyvsp[-1]._string; @@ -2075,43 +2256,43 @@ case 68: } else { group->set_billboard_type(f); } -; - break;} +} + break; case 69: -#line 927 "parser.yxx" +#line 926 "parser.yxx" { EggGroup *group = DCAST(EggGroup, egg_stack.back()); group->set_billboard_center(LPoint3d(yyvsp[-3]._number, yyvsp[-2]._number, yyvsp[-1]._number)); -; - break;} +} + break; case 70: -#line 932 "parser.yxx" +#line 931 "parser.yxx" { EggGroup *group = DCAST(EggGroup, egg_stack.back()); string name = yyvsp[-4]._string; group->set_collision_name(name); -; - break;} +} + break; case 71: -#line 939 "parser.yxx" +#line 938 "parser.yxx" { EggGroup *group = DCAST(EggGroup, egg_stack.back()); int value = (int)yyvsp[-1]._number; group->set_dcs_flag(value!=0); -; - break;} +} + break; case 72: -#line 945 "parser.yxx" +#line 944 "parser.yxx" { // The traditional flavor of DART, with { 0 } or { 1 }. EggGroup *group = DCAST(EggGroup, egg_stack.back()); int value = (int)yyvsp[-1]._number; group->set_dart_type(value!=0 ? EggGroup::DT_default : EggGroup::DT_none); -; - break;} +} + break; case 73: -#line 952 "parser.yxx" +#line 951 "parser.yxx" { // The special flavor of DART, with { sync } or { nosync }. EggGroup *group = DCAST(EggGroup, egg_stack.back()); @@ -2123,48 +2304,48 @@ case 73: } else { group->set_dart_type(f); } -; - break;} +} + break; case 74: -#line 965 "parser.yxx" +#line 964 "parser.yxx" { EggGroup *group = DCAST(EggGroup, egg_stack.back()); int value = (int)yyvsp[-1]._number; group->set_switch_flag(value!=0); -; - break;} +} + break; case 75: -#line 971 "parser.yxx" +#line 970 "parser.yxx" { EggGroup *group = DCAST(EggGroup, egg_stack.back()); string type = yyvsp[-1]._string; - group->set_objecttype(type); -; - break;} + group->add_object_type(type); +} + break; case 76: -#line 977 "parser.yxx" +#line 976 "parser.yxx" { EggGroup *group = DCAST(EggGroup, egg_stack.back()); int value = (int)yyvsp[-1]._number; group->set_model_flag(value!=0); -; - break;} +} + break; case 77: -#line 983 "parser.yxx" +#line 982 "parser.yxx" { EggGroup *group = DCAST(EggGroup, egg_stack.back()); int value = (int)yyvsp[-1]._number; group->set_texlist_flag(value!=0); -; - break;} +} + break; case 81: -#line 992 "parser.yxx" +#line 991 "parser.yxx" { DCAST(EggGroup, egg_stack.back())->add_child(DCAST(EggNode, yyvsp[0]._egg)); -; - break;} +} + break; case 82: -#line 1006 "parser.yxx" +#line 1005 "parser.yxx" { EggGroup *group = DCAST(EggGroup, egg_stack.back()); string strval = yyvsp[0]._string; @@ -2175,10 +2356,10 @@ case 82: } else { group->set_cs_type(f); } -; - break;} +} + break; case 84: -#line 1029 "parser.yxx" +#line 1028 "parser.yxx" { EggGroup *group = DCAST(EggGroup, egg_stack.back()); string strval = yyvsp[0]._string; @@ -2189,113 +2370,106 @@ case 84: } else { group->set_collide_flags(group->get_collide_flags() | f); } -; - break;} +} + break; case 85: -#line 1051 "parser.yxx" +#line 1050 "parser.yxx" { - matrix_3d = LMatrix4d::ident_mat(); -; - break;} -case 86: -#line 1055 "parser.yxx" + DCAST(EggGroup, egg_stack.back())->clear_transform(); +} + break; +case 95: +#line 1076 "parser.yxx" { - DCAST(EggGroup, egg_stack.back())->set_transform(matrix_3d); -; - break;} + DCAST(EggGroup, egg_stack.back())->add_translate(LVector3d(yyvsp[-3]._number, yyvsp[-2]._number, yyvsp[-1]._number)); +} + break; case 96: -#line 1081 "parser.yxx" +#line 1082 "parser.yxx" { - matrix_3d *= LMatrix4d::translate_mat(yyvsp[-3]._number, yyvsp[-2]._number, yyvsp[-1]._number); -; - break;} + DCAST(EggGroup, egg_stack.back())->add_rotx(yyvsp[-1]._number); +} + break; case 97: -#line 1087 "parser.yxx" +#line 1088 "parser.yxx" { - matrix_3d *= LMatrix4d::rotate_mat_normaxis(yyvsp[-1]._number, LVector3d(1.0, 0.0, 0.0)); -; - break;} + DCAST(EggGroup, egg_stack.back())->add_roty(yyvsp[-1]._number); +} + break; case 98: -#line 1093 "parser.yxx" +#line 1094 "parser.yxx" { - matrix_3d *= LMatrix4d::rotate_mat_normaxis(yyvsp[-1]._number, LVector3d(0.0, 1.0, 0.0)); -; - break;} + DCAST(EggGroup, egg_stack.back())->add_rotz(yyvsp[-1]._number); +} + break; case 99: -#line 1099 "parser.yxx" +#line 1100 "parser.yxx" { - matrix_3d *= LMatrix4d::rotate_mat_normaxis(yyvsp[-1]._number, LVector3d(0.0, 0.0, 1.0)); -; - break;} + DCAST(EggGroup, egg_stack.back())->add_rotate(yyvsp[-4]._number, LVector3d(yyvsp[-3]._number, yyvsp[-2]._number, yyvsp[-1]._number)); +} + break; case 100: -#line 1105 "parser.yxx" +#line 1106 "parser.yxx" { - matrix_3d *= LMatrix4d::rotate_mat(yyvsp[-4]._number, LVector3d(yyvsp[-3]._number, yyvsp[-2]._number, yyvsp[-1]._number)); -; - break;} + DCAST(EggGroup, egg_stack.back())->add_scale(LVecBase3d(yyvsp[-3]._number, yyvsp[-2]._number, yyvsp[-1]._number)); +} + break; case 101: -#line 1111 "parser.yxx" +#line 1110 "parser.yxx" { - matrix_3d *= LMatrix4d::scale_mat(yyvsp[-3]._number, yyvsp[-2]._number, yyvsp[-1]._number); -; - break;} + DCAST(EggGroup, egg_stack.back())->add_uniform_scale(yyvsp[-1]._number); +} + break; case 104: -#line 1126 "parser.yxx" +#line 1125 "parser.yxx" { - matrix_3d *= LMatrix4d(yyvsp[-15]._number, yyvsp[-14]._number, yyvsp[-13]._number, yyvsp[-12]._number, - yyvsp[-11]._number, yyvsp[-10]._number, yyvsp[-9]._number, yyvsp[-8]._number, - yyvsp[-7]._number, yyvsp[-6]._number, yyvsp[-5]._number, yyvsp[-4]._number, - yyvsp[-3]._number, yyvsp[-2]._number, yyvsp[-1]._number, yyvsp[0]._number); -; - break;} -case 107: -#line 1142 "parser.yxx" -{ - matrix_3d *= LMatrix4d(LMatrix3d(yyvsp[-8]._number, yyvsp[-7]._number, yyvsp[-6]._number, - yyvsp[-5]._number, yyvsp[-4]._number, yyvsp[-3]._number, - yyvsp[-2]._number, yyvsp[-1]._number, yyvsp[0]._number)); -; - break;} -case 108: -#line 1159 "parser.yxx" + DCAST(EggGroup, egg_stack.back())->add_matrix + (LMatrix4d(yyvsp[-15]._number, yyvsp[-14]._number, yyvsp[-13]._number, yyvsp[-12]._number, + yyvsp[-11]._number, yyvsp[-10]._number, yyvsp[-9]._number, yyvsp[-8]._number, + yyvsp[-7]._number, yyvsp[-6]._number, yyvsp[-5]._number, yyvsp[-4]._number, + yyvsp[-3]._number, yyvsp[-2]._number, yyvsp[-1]._number, yyvsp[0]._number)); +} + break; +case 105: +#line 1144 "parser.yxx" { matrix_2d = LMatrix3d::ident_mat(); -; - break;} -case 109: -#line 1163 "parser.yxx" +} + break; +case 106: +#line 1148 "parser.yxx" { DCAST(EggTexture, egg_stack.back())->set_transform(matrix_2d); -; - break;} -case 115: -#line 1185 "parser.yxx" +} + break; +case 112: +#line 1170 "parser.yxx" { matrix_2d *= LMatrix3d::translate_mat(yyvsp[-2]._number, yyvsp[-1]._number); -; - break;} -case 116: -#line 1191 "parser.yxx" +} + break; +case 113: +#line 1176 "parser.yxx" { matrix_2d *= LMatrix3d::rotate_mat(yyvsp[-1]._number); -; - break;} -case 117: -#line 1197 "parser.yxx" +} + break; +case 114: +#line 1182 "parser.yxx" { matrix_2d *= LMatrix3d::scale_mat(yyvsp[-2]._number, yyvsp[-1]._number); -; - break;} -case 120: -#line 1210 "parser.yxx" +} + break; +case 117: +#line 1195 "parser.yxx" { matrix_2d *= LMatrix3d(yyvsp[-8]._number, yyvsp[-7]._number, yyvsp[-6]._number, yyvsp[-5]._number, yyvsp[-4]._number, yyvsp[-3]._number, yyvsp[-2]._number, yyvsp[-1]._number, yyvsp[0]._number); -; - break;} -case 121: -#line 1227 "parser.yxx" +} + break; +case 118: +#line 1212 "parser.yxx" { if (yyvsp[-2]._egg != (EggVertexPool *)NULL) { EggVertexPool *pool = DCAST(EggVertexPool, yyvsp[-2]._egg); @@ -2316,16 +2490,16 @@ case 121: } } } -; - break;} -case 122: -#line 1260 "parser.yxx" +} + break; +case 119: +#line 1245 "parser.yxx" { yyval._number = 1.0; -; - break;} -case 123: -#line 1264 "parser.yxx" +} + break; +case 120: +#line 1249 "parser.yxx" { string name = yyvsp[-3]._string; double value = yyvsp[-1]._number; @@ -2338,76 +2512,76 @@ case 123: } yyval._number = result; -; - break;} -case 125: -#line 1301 "parser.yxx" +} + break; +case 122: +#line 1286 "parser.yxx" { EggGroup *group = DCAST(EggGroup, egg_stack.back()); group->set_lod(EggSwitchConditionDistance(yyvsp[-8]._number, yyvsp[-7]._number, LPoint3d(yyvsp[-4]._number, yyvsp[-3]._number, yyvsp[-2]._number))); -; - break;} -case 126: -#line 1306 "parser.yxx" +} + break; +case 123: +#line 1291 "parser.yxx" { EggGroup *group = DCAST(EggGroup, egg_stack.back()); group->set_lod(EggSwitchConditionDistance(yyvsp[-9]._number, yyvsp[-8]._number, LPoint3d(yyvsp[-4]._number, yyvsp[-3]._number, yyvsp[-2]._number), yyvsp[-7]._number)); -; - break;} -case 127: -#line 1323 "parser.yxx" +} + break; +case 124: +#line 1308 "parser.yxx" { egg_stack.push_back(new EggPolygon(yyvsp[0]._string)); -; - break;} -case 128: +} + break; +case 125: +#line 1312 "parser.yxx" +{ + yyval._egg = egg_stack.back(); + egg_stack.pop_back(); +} + break; +case 126: #line 1327 "parser.yxx" +{ + egg_stack.push_back(new EggPoint(yyvsp[0]._string)); +} + break; +case 127: +#line 1331 "parser.yxx" { yyval._egg = egg_stack.back(); egg_stack.pop_back(); -; - break;} -case 129: -#line 1342 "parser.yxx" -{ - egg_stack.push_back(new EggPoint(yyvsp[0]._string)); -; - break;} -case 130: +} + break; +case 128: #line 1346 "parser.yxx" +{ + egg_stack.push_back(new EggNurbsSurface(yyvsp[0]._string)); +} + break; +case 129: +#line 1350 "parser.yxx" { yyval._egg = egg_stack.back(); egg_stack.pop_back(); -; - break;} -case 131: -#line 1361 "parser.yxx" -{ - egg_stack.push_back(new EggNurbsSurface(yyvsp[0]._string)); -; - break;} -case 132: +} + break; +case 130: #line 1365 "parser.yxx" -{ - yyval._egg = egg_stack.back(); - egg_stack.pop_back(); -; - break;} -case 133: -#line 1380 "parser.yxx" { egg_stack.push_back(new EggNurbsCurve(yyvsp[0]._string)); -; - break;} -case 134: -#line 1384 "parser.yxx" +} + break; +case 131: +#line 1369 "parser.yxx" { yyval._egg = egg_stack.back(); egg_stack.pop_back(); -; - break;} -case 143: -#line 1408 "parser.yxx" +} + break; +case 140: +#line 1393 "parser.yxx" { EggPrimitive *primitive = DCAST(EggPrimitive, egg_stack.back()); string name = yyvsp[-3]._string; @@ -2445,18 +2619,18 @@ case 143: } else { eggyywarning("Unknown scalar " + name); } -; - break;} -case 155: -#line 1468 "parser.yxx" +} + break; +case 152: +#line 1453 "parser.yxx" { EggNurbsCurve *curve = DCAST(EggNurbsCurve, yyvsp[0]._egg); EggNurbsSurface *nurbs = DCAST(EggNurbsSurface, egg_stack.back()); nurbs->_curves_on_surface.push_back(curve); -; - break;} -case 157: -#line 1475 "parser.yxx" +} + break; +case 154: +#line 1460 "parser.yxx" { EggNurbsSurface *primitive = DCAST(EggNurbsSurface, egg_stack.back()); string name = yyvsp[-3]._string; @@ -2492,16 +2666,16 @@ case 157: } else if (cmp_nocase_uh(name, "bin") == 0) { primitive->set_bin(strval); } else if (cmp_nocase_uh(name, "u_subdiv") == 0) { - primitive->set_u_subdiv(value); + primitive->set_u_subdiv((int)value); } else if (cmp_nocase_uh(name, "v_subdiv") == 0) { - primitive->set_v_subdiv(value); + primitive->set_v_subdiv((int)value); } else { eggyywarning("Unknown scalar " + name); } -; - break;} -case 168: -#line 1539 "parser.yxx" +} + break; +case 165: +#line 1524 "parser.yxx" { EggNurbsCurve *primitive = DCAST(EggNurbsCurve, egg_stack.back()); string name = yyvsp[-3]._string; @@ -2537,7 +2711,7 @@ case 168: } else if (cmp_nocase_uh(name, "bin") == 0) { primitive->set_bin(strval); } else if (cmp_nocase_uh(name, "subdiv") == 0) { - primitive->set_subdiv(value); + primitive->set_subdiv((int)value); } else if (cmp_nocase_uh(name, "type") == 0) { EggCurve::CurveType a = EggCurve::string_curve_type(strval); if (a == EggCurve::CT_none) { @@ -2549,19 +2723,19 @@ case 168: } else { eggyywarning("Unknown scalar " + name); } -; - break;} -case 169: -#line 1598 "parser.yxx" +} + break; +case 166: +#line 1583 "parser.yxx" { if (yyvsp[0]._egg != (EggTexture *)NULL) { EggTexture *texture = DCAST(EggTexture, yyvsp[0]._egg); DCAST(EggPrimitive, egg_stack.back())->set_texture(texture); } -; - break;} -case 170: -#line 1615 "parser.yxx" +} + break; +case 167: +#line 1600 "parser.yxx" { EggTexture *texture = NULL; @@ -2590,79 +2764,79 @@ case 170: nassertr(texture != NULL, 0); DCAST(EggPrimitive, egg_stack.back())->set_texture(texture); -; - break;} -case 171: -#line 1655 "parser.yxx" +} + break; +case 168: +#line 1640 "parser.yxx" { if (yyvsp[0]._egg != (EggMaterial *)NULL) { EggMaterial *material = DCAST(EggMaterial, yyvsp[0]._egg); DCAST(EggPrimitive, egg_stack.back())->set_material(material); } -; - break;} -case 172: -#line 1672 "parser.yxx" +} + break; +case 169: +#line 1657 "parser.yxx" { DCAST(EggPrimitive, egg_stack.back())->set_normal(Normald(yyvsp[-2]._number, yyvsp[-1]._number, yyvsp[0]._number)); -; - break;} -case 173: -#line 1676 "parser.yxx" +} + break; +case 170: +#line 1661 "parser.yxx" { bool inserted = DCAST(EggPrimitive, egg_stack.back())->_dnormals. insert(EggMorphNormal(yyvsp[-5]._string, LVector3d(yyvsp[-3]._number, yyvsp[-2]._number, yyvsp[-1]._number))).second; if (!inserted) { eggyywarning("Ignoring repeated morph name " + yyvsp[-5]._string); } -; - break;} -case 174: -#line 1684 "parser.yxx" +} + break; +case 171: +#line 1669 "parser.yxx" { bool inserted = DCAST(EggPrimitive, egg_stack.back())->_dnormals. insert(EggMorphNormal(yyvsp[-4]._string, LVector3d(yyvsp[-3]._number, yyvsp[-2]._number, yyvsp[-1]._number))).second; if (!inserted) { eggyywarning("Ignoring repeated morph name " + yyvsp[-4]._string); } -; - break;} -case 175: -#line 1702 "parser.yxx" +} + break; +case 172: +#line 1687 "parser.yxx" { DCAST(EggPrimitive, egg_stack.back())->set_color(Colorf(yyvsp[-3]._number, yyvsp[-2]._number, yyvsp[-1]._number, yyvsp[0]._number)); -; - break;} -case 176: -#line 1706 "parser.yxx" +} + break; +case 173: +#line 1691 "parser.yxx" { bool inserted = DCAST(EggPrimitive, egg_stack.back())->_drgbas. insert(EggMorphColor(yyvsp[-6]._string, LVector4f(yyvsp[-4]._number, yyvsp[-3]._number, yyvsp[-2]._number, yyvsp[-1]._number))).second; if (!inserted) { eggyywarning("Ignoring repeated morph name " + yyvsp[-6]._string); } -; - break;} -case 177: -#line 1714 "parser.yxx" +} + break; +case 174: +#line 1699 "parser.yxx" { bool inserted = DCAST(EggPrimitive, egg_stack.back())->_drgbas. insert(EggMorphColor(yyvsp[-5]._string, LVector4f(yyvsp[-4]._number, yyvsp[-3]._number, yyvsp[-2]._number, yyvsp[-1]._number))).second; if (!inserted) { eggyywarning("Ignoring repeated morph name " + yyvsp[-5]._string); } -; - break;} -case 178: -#line 1732 "parser.yxx" +} + break; +case 175: +#line 1717 "parser.yxx" { EggPrimitive *primitive = DCAST(EggPrimitive, egg_stack.back()); int value = (int)yyvsp[0]._number; primitive->set_bface_flag(value!=0); -; - break;} -case 179: -#line 1748 "parser.yxx" +} + break; +case 176: +#line 1733 "parser.yxx" { if (yyvsp[-2]._egg != (EggVertexPool *)NULL) { EggVertexPool *pool = DCAST(EggVertexPool, yyvsp[-2]._egg); @@ -2682,20 +2856,20 @@ case 179: } } } -; - break;} -case 180: -#line 1779 "parser.yxx" +} + break; +case 177: +#line 1764 "parser.yxx" { EggNurbsSurface *nurbs = DCAST(EggNurbsSurface, egg_stack.back()); int u_order = (int)yyvsp[-1]._number; int v_order = (int)yyvsp[0]._number; nurbs->set_u_order(u_order); nurbs->set_v_order(v_order); -; - break;} -case 181: -#line 1797 "parser.yxx" +} + break; +case 178: +#line 1782 "parser.yxx" { EggNurbsSurface *nurbs = DCAST(EggNurbsSurface, egg_stack.back()); PTA_double nums = yyvsp[0]._number_list; @@ -2704,10 +2878,10 @@ case 181: for (int i = 0; i < (int)nums.size(); i++) { nurbs->set_u_knot(i, nums[i]); } -; - break;} -case 182: -#line 1817 "parser.yxx" +} + break; +case 179: +#line 1802 "parser.yxx" { EggNurbsSurface *nurbs = DCAST(EggNurbsSurface, egg_stack.back()); PTA_double nums = yyvsp[0]._number_list; @@ -2716,43 +2890,43 @@ case 182: for (int i = 0; i < (int)nums.size(); i++) { nurbs->set_v_knot(i, nums[i]); } -; - break;} -case 183: -#line 1837 "parser.yxx" +} + break; +case 180: +#line 1822 "parser.yxx" { EggNurbsSurface *nurbs = DCAST(EggNurbsSurface, egg_stack.back()); nurbs->_trims.push_back(EggNurbsSurface::Trim()); -; - break;} -case 185: -#line 1853 "parser.yxx" +} + break; +case 182: +#line 1838 "parser.yxx" { EggNurbsSurface *nurbs = DCAST(EggNurbsSurface, egg_stack.back()); nassertr(!nurbs->_trims.empty(), 0); nurbs->_trims.back().push_back(EggNurbsSurface::Loop()); -; - break;} -case 186: -#line 1859 "parser.yxx" +} + break; +case 183: +#line 1844 "parser.yxx" { EggNurbsSurface *nurbs = DCAST(EggNurbsSurface, egg_stack.back()); nassertr(!nurbs->_trims.empty(), 0); nassertr(!nurbs->_trims.back().empty(), 0); EggNurbsCurve *curve = DCAST(EggNurbsCurve, yyvsp[0]._egg); nurbs->_trims.back().back().push_back(curve); -; - break;} -case 187: -#line 1878 "parser.yxx" +} + break; +case 184: +#line 1863 "parser.yxx" { EggNurbsCurve *nurbs = DCAST(EggNurbsCurve, egg_stack.back()); int order = (int)yyvsp[0]._number; nurbs->set_order(order); -; - break;} -case 188: -#line 1894 "parser.yxx" +} + break; +case 185: +#line 1879 "parser.yxx" { EggNurbsCurve *nurbs = DCAST(EggNurbsCurve, egg_stack.back()); PTA_double nums = yyvsp[0]._number_list; @@ -2761,84 +2935,84 @@ case 188: for (int i = 0; i < (int)nums.size(); i++) { nurbs->set_knot(i, nums[i]); } -; - break;} -case 189: -#line 1915 "parser.yxx" +} + break; +case 186: +#line 1900 "parser.yxx" { EggTable *table = new EggTable(yyvsp[0]._string); table->set_table_type(EggTable::TT_table); egg_stack.push_back(table); -; - break;} -case 190: -#line 1921 "parser.yxx" +} + break; +case 187: +#line 1906 "parser.yxx" { yyval._egg = egg_stack.back(); egg_stack.pop_back(); -; - break;} -case 191: -#line 1937 "parser.yxx" +} + break; +case 188: +#line 1922 "parser.yxx" { EggTable *table = new EggTable(yyvsp[0]._string); table->set_table_type(EggTable::TT_bundle); egg_stack.push_back(table); -; - break;} -case 192: -#line 1943 "parser.yxx" +} + break; +case 189: +#line 1928 "parser.yxx" { yyval._egg = egg_stack.back(); egg_stack.pop_back(); -; - break;} +} + break; +case 191: +#line 1945 "parser.yxx" +{ + DCAST(EggTable, egg_stack.back())->add_child(DCAST(EggNode, yyvsp[0]._egg)); +} + break; +case 192: +#line 1949 "parser.yxx" +{ + DCAST(EggTable, egg_stack.back())->add_child(DCAST(EggNode, yyvsp[0]._egg)); +} + break; +case 193: +#line 1953 "parser.yxx" +{ + DCAST(EggTable, egg_stack.back())->add_child(DCAST(EggNode, yyvsp[0]._egg)); +} + break; case 194: -#line 1960 "parser.yxx" +#line 1957 "parser.yxx" { DCAST(EggTable, egg_stack.back())->add_child(DCAST(EggNode, yyvsp[0]._egg)); -; - break;} +} + break; case 195: -#line 1964 "parser.yxx" +#line 1961 "parser.yxx" { DCAST(EggTable, egg_stack.back())->add_child(DCAST(EggNode, yyvsp[0]._egg)); -; - break;} +} + break; case 196: -#line 1968 "parser.yxx" -{ - DCAST(EggTable, egg_stack.back())->add_child(DCAST(EggNode, yyvsp[0]._egg)); -; - break;} -case 197: -#line 1972 "parser.yxx" -{ - DCAST(EggTable, egg_stack.back())->add_child(DCAST(EggNode, yyvsp[0]._egg)); -; - break;} -case 198: #line 1976 "parser.yxx" -{ - DCAST(EggTable, egg_stack.back())->add_child(DCAST(EggNode, yyvsp[0]._egg)); -; - break;} -case 199: -#line 1991 "parser.yxx" { EggSAnimData *anim_data = new EggSAnimData(yyvsp[0]._string); egg_stack.push_back(anim_data); -; - break;} -case 200: -#line 1996 "parser.yxx" +} + break; +case 197: +#line 1981 "parser.yxx" { yyval._egg = egg_stack.back(); egg_stack.pop_back(); -; - break;} -case 202: -#line 2013 "parser.yxx" +} + break; +case 199: +#line 1998 "parser.yxx" { EggSAnimData *anim_data = DCAST(EggSAnimData, egg_stack.back()); string name = yyvsp[-3]._string; @@ -2849,30 +3023,30 @@ case 202: } else { eggyywarning("Unsupported S$Anim scalar: " + name); } -; - break;} -case 203: -#line 2025 "parser.yxx" +} + break; +case 200: +#line 2010 "parser.yxx" { DCAST(EggSAnimData, egg_stack.back())->set_data(yyvsp[-1]._number_list); -; - break;} -case 204: -#line 2039 "parser.yxx" +} + break; +case 201: +#line 2024 "parser.yxx" { EggXfmAnimData *anim_data = new EggXfmAnimData(yyvsp[0]._string); egg_stack.push_back(anim_data); -; - break;} -case 205: -#line 2044 "parser.yxx" +} + break; +case 202: +#line 2029 "parser.yxx" { yyval._egg = egg_stack.back(); egg_stack.pop_back(); -; - break;} -case 207: -#line 2061 "parser.yxx" +} + break; +case 204: +#line 2046 "parser.yxx" { EggXfmAnimData *anim_data = DCAST(EggXfmAnimData, egg_stack.back()); string name = yyvsp[-3]._string; @@ -2888,30 +3062,30 @@ case 207: } else { eggyywarning("Unsupported Xfm$Anim scalar: " + name); } -; - break;} -case 208: -#line 2078 "parser.yxx" +} + break; +case 205: +#line 2063 "parser.yxx" { DCAST(EggXfmAnimData, egg_stack.back())->set_data(yyvsp[-1]._number_list); -; - break;} -case 209: -#line 2092 "parser.yxx" +} + break; +case 206: +#line 2077 "parser.yxx" { EggXfmSAnim *anim_group = new EggXfmSAnim(yyvsp[0]._string); egg_stack.push_back(anim_group); -; - break;} -case 210: -#line 2097 "parser.yxx" +} + break; +case 207: +#line 2082 "parser.yxx" { yyval._egg = egg_stack.back(); egg_stack.pop_back(); -; - break;} -case 212: -#line 2114 "parser.yxx" +} + break; +case 209: +#line 2099 "parser.yxx" { EggXfmSAnim *anim_group = DCAST(EggXfmSAnim, egg_stack.back()); string name = yyvsp[-3]._string; @@ -2925,40 +3099,40 @@ case 212: } else { eggyywarning("Unsupported Xfm$Anim_S$ scalar: " + name); } -; - break;} -case 213: -#line 2129 "parser.yxx" +} + break; +case 210: +#line 2114 "parser.yxx" { DCAST(EggXfmSAnim, egg_stack.back())->add_child(DCAST(EggNode, yyvsp[0]._egg)); -; - break;} -case 214: -#line 2144 "parser.yxx" +} + break; +case 211: +#line 2129 "parser.yxx" { yyval._number_list = PTA_double::empty_array(0); -; - break;} -case 215: -#line 2148 "parser.yxx" +} + break; +case 212: +#line 2133 "parser.yxx" { yyval._number_list.push_back((double)yyvsp[0]._number); -; - break;} -case 216: -#line 2162 "parser.yxx" +} + break; +case 213: +#line 2147 "parser.yxx" { yyval._number_list = PTA_double::empty_array(0); -; - break;} -case 217: -#line 2166 "parser.yxx" +} + break; +case 214: +#line 2151 "parser.yxx" { yyval._number_list.push_back(yyvsp[0]._number); -; - break;} -case 218: -#line 2180 "parser.yxx" +} + break; +case 215: +#line 2165 "parser.yxx" { string name = yyvsp[0]._string; Textures::iterator vpi = textures.find(name); @@ -2968,10 +3142,10 @@ case 218: } else { yyval._egg = (*vpi).second; } -; - break;} -case 219: -#line 2201 "parser.yxx" +} + break; +case 216: +#line 2186 "parser.yxx" { string name = yyvsp[0]._string; Materials::iterator vpi = materials.find(name); @@ -2981,10 +3155,10 @@ case 219: } else { yyval._egg = (*vpi).second; } -; - break;} -case 220: -#line 2222 "parser.yxx" +} + break; +case 217: +#line 2207 "parser.yxx" { string name = yyvsp[0]._string; VertexPools::iterator vpi = vertex_pools.find(name); @@ -2994,126 +3168,112 @@ case 220: } else { yyval._egg = (*vpi).second; } -; - break;} -case 221: -#line 2244 "parser.yxx" +} + break; +case 218: +#line 2229 "parser.yxx" { eggyyerror("Name required."); yyval._string = ""; -; - break;} -case 224: -#line 2273 "parser.yxx" +} + break; +case 221: +#line 2258 "parser.yxx" { eggyyerror("String required."); yyval._string = ""; -; - break;} -case 226: -#line 2289 "parser.yxx" +} + break; +case 223: +#line 2274 "parser.yxx" { yyval._string = ""; -; - break;} +} + break; +case 225: +#line 2292 "parser.yxx" +{ + yyval._string = yyvsp[0]._string; +} + break; +case 227: +#line 2309 "parser.yxx" +{ + yyval._string = ""; +} + break; case 228: -#line 2307 "parser.yxx" +#line 2313 "parser.yxx" { yyval._string = yyvsp[0]._string; -; - break;} +} + break; +case 229: +#line 2329 "parser.yxx" +{ + yyval._string = yyvsp[0]._string; +} + break; case 230: -#line 2324 "parser.yxx" -{ - yyval._string = ""; -; - break;} -case 231: -#line 2328 "parser.yxx" -{ - yyval._string = yyvsp[0]._string; -; - break;} -case 232: -#line 2344 "parser.yxx" -{ - yyval._string = yyvsp[0]._string; -; - break;} -case 233: -#line 2348 "parser.yxx" +#line 2333 "parser.yxx" { yyval._string = yyvsp[-1]._string + "\n" + yyvsp[0]._string; -; - break;} -case 235: -#line 2373 "parser.yxx" +} + break; +case 232: +#line 2358 "parser.yxx" { yyval._number = yyvsp[0]._number; yyval._string = yyvsp[0]._string; -; - break;} -case 236: -#line 2378 "parser.yxx" +} + break; +case 233: +#line 2363 "parser.yxx" { yyval._number = 0.0; yyval._string = yyvsp[0]._string; -; - break;} -case 237: -#line 2394 "parser.yxx" +} + break; +case 234: +#line 2379 "parser.yxx" { int i = (int)yyvsp[0]._number; if ((double)i != yyvsp[0]._number) { eggyywarning("Integer expected."); yyval._number = (double)i; } -; - break;} } - /* the action file gets copied in in place of this dollarsign */ -#line 543 "/usr/share/bison.simple" + break; +} + +#line 705 "/usr/share/bison/bison.simple" + yyvsp -= yylen; yyssp -= yylen; -#ifdef YYLSP_NEEDED +#if YYLSP_NEEDED yylsp -= yylen; #endif -#if YYDEBUG != 0 +#if YYDEBUG if (yydebug) { - short *ssp1 = yyss - 1; - fprintf (stderr, "state stack now"); - while (ssp1 != yyssp) - fprintf (stderr, " %d", *++ssp1); - fprintf (stderr, "\n"); + short *yyssp1 = yyss - 1; + YYFPRINTF (stderr, "state stack now"); + while (yyssp1 != yyssp) + YYFPRINTF (stderr, " %d", *++yyssp1); + YYFPRINTF (stderr, "\n"); } #endif *++yyvsp = yyval; - -#ifdef YYLSP_NEEDED - yylsp++; - if (yylen == 0) - { - yylsp->first_line = yylloc.first_line; - yylsp->first_column = yylloc.first_column; - yylsp->last_line = (yylsp-1)->last_line; - yylsp->last_column = (yylsp-1)->last_column; - yylsp->text = 0; - } - else - { - yylsp->last_line = (yylsp+yylen-1)->last_line; - yylsp->last_column = (yylsp+yylen-1)->last_column; - } +#if YYLSP_NEEDED + *++yylsp = yyloc; #endif - /* 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. */ + /* 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]; @@ -3125,10 +3285,13 @@ case 237: goto yynewstate; -yyerrlab: /* here on detecting error */ - if (! yyerrstatus) - /* If not already recovering from an error, report this error. */ +/*------------------------------------. +| yyerrlab -- here on detecting error | +`------------------------------------*/ +yyerrlab: + /* If not already recovering from an error, report this error. */ + if (!yyerrstatus) { ++yynerrs; @@ -3137,102 +3300,121 @@ yyerrlab: /* here on detecting error */ if (yyn > YYFLAG && yyn < YYLAST) { - int size = 0; - char *msg; - int x, count; + YYSIZE_T yysize = 0; + char *yymsg; + int yyx, yycount; - count = 0; - /* Start X at -yyn if nec to avoid negative indexes in yycheck. */ - for (x = (yyn < 0 ? -yyn : 0); - x < (sizeof(yytname) / sizeof(char *)); x++) - if (yycheck[x + yyn] == x) - size += strlen(yytname[x]) + 15, count++; - msg = (char *) malloc(size + 15); - if (msg != 0) + yycount = 0; + /* Start YYX at -YYN if negative to avoid negative indexes in + YYCHECK. */ + for (yyx = yyn < 0 ? -yyn : 0; + yyx < (int) (sizeof (yytname) / sizeof (char *)); yyx++) + if (yycheck[yyx + yyn] == yyx) + yysize += yystrlen (yytname[yyx]) + 15, yycount++; + yysize += yystrlen ("parse error, unexpected ") + 1; + yysize += yystrlen (yytname[YYTRANSLATE (yychar)]); + yymsg = (char *) YYSTACK_ALLOC (yysize); + if (yymsg != 0) { - strcpy(msg, "parse error"); + char *yyp = yystpcpy (yymsg, "parse error, unexpected "); + yyp = yystpcpy (yyp, yytname[YYTRANSLATE (yychar)]); - if (count < 5) + if (yycount < 5) { - count = 0; - for (x = (yyn < 0 ? -yyn : 0); - x < (sizeof(yytname) / sizeof(char *)); x++) - if (yycheck[x + yyn] == x) + yycount = 0; + for (yyx = yyn < 0 ? -yyn : 0; + yyx < (int) (sizeof (yytname) / sizeof (char *)); + yyx++) + if (yycheck[yyx + yyn] == yyx) { - strcat(msg, count == 0 ? ", expecting `" : " or `"); - strcat(msg, yytname[x]); - strcat(msg, "'"); - count++; + const char *yyq = ! yycount ? ", expecting " : " or "; + yyp = yystpcpy (yyp, yyq); + yyp = yystpcpy (yyp, yytname[yyx]); + yycount++; } } - yyerror(msg); - free(msg); + yyerror (yymsg); + YYSTACK_FREE (yymsg); } else - yyerror ("parse error; also virtual memory exceeded"); + yyerror ("parse error; also virtual memory exhausted"); } else -#endif /* YYERROR_VERBOSE */ - yyerror("parse error"); +#endif /* defined (YYERROR_VERBOSE) */ + yyerror ("parse error"); } - goto yyerrlab1; -yyerrlab1: /* here on error raised explicitly by an action */ + +/*--------------------------------------------------. +| yyerrlab1 -- error raised explicitly by an action | +`--------------------------------------------------*/ +yyerrlab1: if (yyerrstatus == 3) { - /* if just tried and failed to reuse lookahead token after an error, discard it. */ + /* If just tried and failed to reuse lookahead token after an + error, discard it. */ /* return failure if at end of input */ if (yychar == YYEOF) YYABORT; - -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Discarding token %d (%s).\n", yychar, yytname[yychar1]); -#endif - + YYDPRINTF ((stderr, "Discarding token %d (%s).\n", + yychar, yytname[yychar1])); yychar = YYEMPTY; } - /* Else will try to reuse lookahead token - after shifting the error token. */ + /* Else will try to reuse lookahead token after shifting the error + token. */ yyerrstatus = 3; /* Each real token shifted decrements this */ goto yyerrhandle; -yyerrdefault: /* current state does not do anything special for the error token. */ +/*-------------------------------------------------------------------. +| yyerrdefault -- current state does not do anything special for the | +| error token. | +`-------------------------------------------------------------------*/ +yyerrdefault: #if 0 /* This is wrong; only states that explicitly want error tokens should shift them. */ - yyn = yydefact[yystate]; /* If its default is to accept any token, ok. Otherwise pop it.*/ - if (yyn) goto yydefault; + + /* If its default is to accept any token, ok. Otherwise pop it. */ + yyn = yydefact[yystate]; + if (yyn) + goto yydefault; #endif -yyerrpop: /* pop the current state because it cannot handle the error token */ - if (yyssp == yyss) YYABORT; +/*---------------------------------------------------------------. +| yyerrpop -- pop the current state because it cannot handle the | +| error token | +`---------------------------------------------------------------*/ +yyerrpop: + if (yyssp == yyss) + YYABORT; yyvsp--; yystate = *--yyssp; -#ifdef YYLSP_NEEDED +#if YYLSP_NEEDED yylsp--; #endif -#if YYDEBUG != 0 +#if YYDEBUG if (yydebug) { - short *ssp1 = yyss - 1; - fprintf (stderr, "Error: state stack now"); - while (ssp1 != yyssp) - fprintf (stderr, " %d", *++ssp1); - fprintf (stderr, "\n"); + short *yyssp1 = yyss - 1; + YYFPRINTF (stderr, "Error: state stack now"); + while (yyssp1 != yyssp) + YYFPRINTF (stderr, " %d", *++yyssp1); + YYFPRINTF (stderr, "\n"); } #endif +/*--------------. +| yyerrhandle. | +`--------------*/ yyerrhandle: - yyn = yypact[yystate]; if (yyn == YYFLAG) goto yyerrdefault; @@ -3255,41 +3437,44 @@ yyerrhandle: if (yyn == YYFINAL) YYACCEPT; -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Shifting error token, "); -#endif + YYDPRINTF ((stderr, "Shifting error token, ")); *++yyvsp = yylval; -#ifdef YYLSP_NEEDED +#if YYLSP_NEEDED *++yylsp = yylloc; #endif yystate = yyn; goto yynewstate; - yyacceptlab: - /* YYACCEPT comes here. */ - if (yyfree_stacks) - { - free (yyss); - free (yyvs); -#ifdef YYLSP_NEEDED - free (yyls); -#endif - } - return 0; - yyabortlab: - /* YYABORT comes here. */ - if (yyfree_stacks) - { - free (yyss); - free (yyvs); -#ifdef YYLSP_NEEDED - free (yyls); +/*-------------------------------------. +| yyacceptlab -- YYACCEPT comes here. | +`-------------------------------------*/ +yyacceptlab: + yyresult = 0; + goto yyreturn; + +/*-----------------------------------. +| yyabortlab -- YYABORT comes here. | +`-----------------------------------*/ +yyabortlab: + yyresult = 1; + goto yyreturn; + +/*---------------------------------------------. +| yyoverflowab -- parser overflow comes here. | +`---------------------------------------------*/ +yyoverflowlab: + yyerror ("parser stack overflow"); + yyresult = 2; + /* Fall through. */ + +yyreturn: +#ifndef yyoverflow + if (yyss != yyssa) + YYSTACK_FREE (yyss); #endif - } - return 1; + return yyresult; } -#line 2405 "parser.yxx" +#line 2390 "parser.yxx" diff --git a/panda/src/egg/parser.h.prebuilt b/panda/src/egg/parser.h.prebuilt index 27cc64c317..3170676903 100644 --- a/panda/src/egg/parser.h.prebuilt +++ b/panda/src/egg/parser.h.prebuilt @@ -1,83 +1,88 @@ -#define NUMBER 257 -#define STRING 258 -#define BEZIERCURVE 259 -#define BFACE 260 -#define BILLBOARD 261 -#define BILLBOARDCENTER 262 -#define BUNDLE 263 -#define CLOSED 264 -#define COLLIDE 265 -#define COMMENT 266 -#define COORDSYSTEM 267 -#define CV 268 -#define DART 269 -#define DNORMAL 270 -#define DRGBA 271 -#define DUV 272 -#define DXYZ 273 -#define DCS 274 -#define DISTANCE 275 -#define DTREF 276 -#define DYNAMICVERTEXPOOL 277 -#define EXTERNAL_FILE 278 -#define FLIGHT 279 -#define GROUP 280 -#define HIP 281 -#define INTANGENT 282 -#define JOINT 283 -#define KNOTS 284 -#define INCLUDE 285 -#define INSTANCE 286 -#define LOOP 287 -#define MATERIAL 288 -#define MATRIX3 289 -#define MATRIX4 290 -#define MODEL 291 -#define MREF 292 -#define NORMAL 293 -#define NURBSCURVE 294 -#define NURBSSURFACE 295 -#define OBJECTTYPE 296 -#define ORDER 297 -#define OUTTANGENT 298 -#define POINTLIGHT 299 -#define POLYGON 300 -#define REF 301 -#define RGBA 302 -#define ROTATE 303 -#define ROTX 304 -#define ROTY 305 -#define ROTZ 306 -#define SANIM 307 -#define SCALAR 308 -#define SCALE 309 -#define SEQUENCE 310 -#define SHADING 311 -#define SWITCH 312 -#define SWITCHCONDITION 313 -#define TABLE 314 -#define TABLE_V 315 -#define TEXLIST 316 -#define TEXTURE 317 -#define TLENGTHS 318 -#define TRANSFORM 319 -#define TRANSLATE 320 -#define TREF 321 -#define TRIM 322 -#define TXT 323 -#define UKNOTS 324 -#define UV 325 -#define VKNOTS 326 -#define VERTEX 327 -#define VERTEXANIM 328 -#define VERTEXPOOL 329 -#define VERTEXREF 330 -#define XFMANIM 331 -#define XFMSANIM 332 -#define START_EGG 333 -#define START_GROUP_BODY 334 -#define START_TEXTURE_BODY 335 -#define START_PRIMITIVE_BODY 336 +#ifndef BISON_Y_TAB_H +# define BISON_Y_TAB_H + +# define NUMBER 257 +# define STRING 258 +# define BEZIERCURVE 259 +# define BFACE 260 +# define BILLBOARD 261 +# define BILLBOARDCENTER 262 +# define BUNDLE 263 +# define CLOSED 264 +# define COLLIDE 265 +# define COMMENT 266 +# define COORDSYSTEM 267 +# define CV 268 +# define DART 269 +# define DNORMAL 270 +# define DRGBA 271 +# define DUV 272 +# define DXYZ 273 +# define DCS 274 +# define DISTANCE 275 +# define DTREF 276 +# define DYNAMICVERTEXPOOL 277 +# define EXTERNAL_FILE 278 +# define FLIGHT 279 +# define GROUP 280 +# define HIP 281 +# define INTANGENT 282 +# define JOINT 283 +# define KNOTS 284 +# define INCLUDE 285 +# define INSTANCE 286 +# define LOOP 287 +# define MATERIAL 288 +# define MATRIX3 289 +# define MATRIX4 290 +# define MODEL 291 +# define MREF 292 +# define NORMAL 293 +# define NURBSCURVE 294 +# define NURBSSURFACE 295 +# define OBJECTTYPE 296 +# define ORDER 297 +# define OUTTANGENT 298 +# define POINTLIGHT 299 +# define POLYGON 300 +# define REF 301 +# define RGBA 302 +# define ROTATE 303 +# define ROTX 304 +# define ROTY 305 +# define ROTZ 306 +# define SANIM 307 +# define SCALAR 308 +# define SCALE 309 +# define SEQUENCE 310 +# define SHADING 311 +# define SWITCH 312 +# define SWITCHCONDITION 313 +# define TABLE 314 +# define TABLE_V 315 +# define TEXLIST 316 +# define TEXTURE 317 +# define TLENGTHS 318 +# define TRANSFORM 319 +# define TRANSLATE 320 +# define TREF 321 +# define TRIM 322 +# define TXT 323 +# define UKNOTS 324 +# define UV 325 +# define VKNOTS 326 +# define VERTEX 327 +# define VERTEXANIM 328 +# define VERTEXPOOL 329 +# define VERTEXREF 330 +# define XFMANIM 331 +# define XFMSANIM 332 +# define START_EGG 333 +# define START_GROUP_BODY 334 +# define START_TEXTURE_BODY 335 +# define START_PRIMITIVE_BODY 336 extern YYSTYPE eggyylval; + +#endif /* not BISON_Y_TAB_H */ diff --git a/pandaapp/src/stitchbase/stitchLexer.cxx.prebuilt b/pandaapp/src/stitchbase/stitchLexer.cxx.prebuilt new file mode 100644 index 0000000000..655bd49aef --- /dev/null +++ b/pandaapp/src/stitchbase/stitchLexer.cxx.prebuilt @@ -0,0 +1,1945 @@ +#define yy_create_buffer stitchyy_create_buffer +#define yy_delete_buffer stitchyy_delete_buffer +#define yy_scan_buffer stitchyy_scan_buffer +#define yy_scan_string stitchyy_scan_string +#define yy_scan_bytes stitchyy_scan_bytes +#define yy_flex_debug stitchyy_flex_debug +#define yy_init_buffer stitchyy_init_buffer +#define yy_flush_buffer stitchyy_flush_buffer +#define yy_load_buffer_state stitchyy_load_buffer_state +#define yy_switch_to_buffer stitchyy_switch_to_buffer +#define yyin stitchyyin +#define yyleng stitchyyleng +#define yylex stitchyylex +#define yyout stitchyyout +#define yyrestart stitchyyrestart +#define yytext stitchyytext +#define yywrap stitchyywrap + +#line 20 "lex.yy.c" +/* A lexical scanner generated by flex */ + +/* Scanner skeleton version: + * $Header$ + */ + +#define FLEX_SCANNER +#define YY_FLEX_MAJOR_VERSION 2 +#define YY_FLEX_MINOR_VERSION 5 + +#include + + +/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */ +#ifdef c_plusplus +#ifndef __cplusplus +#define __cplusplus +#endif +#endif + + +#ifdef __cplusplus + +#include + +/* Use prototypes in function declarations. */ +#define YY_USE_PROTOS + +/* The "const" storage-class-modifier is valid. */ +#define YY_USE_CONST + +#else /* ! __cplusplus */ + +#if __STDC__ + +#define YY_USE_PROTOS +#define YY_USE_CONST + +#endif /* __STDC__ */ +#endif /* ! __cplusplus */ + +#ifdef __TURBOC__ + #pragma warn -rch + #pragma warn -use +#include +#include +#define YY_USE_CONST +#define YY_USE_PROTOS +#endif + +#ifdef YY_USE_CONST +#define yyconst const +#else +#define yyconst +#endif + + +#ifdef YY_USE_PROTOS +#define YY_PROTO(proto) proto +#else +#define YY_PROTO(proto) () +#endif + +/* Returned upon end-of-file. */ +#define YY_NULL 0 + +/* Promotes a possibly negative, possibly signed char to an unsigned + * integer for use as an array index. If the signed char is negative, + * we want to instead treat it as an 8-bit unsigned char, hence the + * double cast. + */ +#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) + +/* Enter a start condition. This macro really ought to take a parameter, + * but we do it the disgusting crufty way forced on us by the ()-less + * definition of BEGIN. + */ +#define BEGIN yy_start = 1 + 2 * + +/* Translate the current start state into a value that can be later handed + * to BEGIN to return to the state. The YYSTATE alias is for lex + * compatibility. + */ +#define YY_START ((yy_start - 1) / 2) +#define YYSTATE YY_START + +/* Action number for EOF rule of a given start state. */ +#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) + +/* Special action meaning "start processing a new file". */ +#define YY_NEW_FILE yyrestart( yyin ) + +#define YY_END_OF_BUFFER_CHAR 0 + +/* Size of default input buffer. */ +#define YY_BUF_SIZE 16384 + +typedef struct yy_buffer_state *YY_BUFFER_STATE; + +extern int yyleng; +extern FILE *yyin, *yyout; + +#define EOB_ACT_CONTINUE_SCAN 0 +#define EOB_ACT_END_OF_FILE 1 +#define EOB_ACT_LAST_MATCH 2 + +/* The funky do-while in the following #define is used to turn the definition + * int a single C statement (which needs a semi-colon terminator). This + * avoids problems with code like: + * + * if ( condition_holds ) + * yyless( 5 ); + * else + * do_something_else(); + * + * Prior to using the do-while the compiler would get upset at the + * "else" because it interpreted the "if" statement as being all + * done when it reached the ';' after the yyless() call. + */ + +/* Return all but the first 'n' matched characters back to the input stream. */ + +#define yyless(n) \ + do \ + { \ + /* Undo effects of setting up yytext. */ \ + *yy_cp = yy_hold_char; \ + YY_RESTORE_YY_MORE_OFFSET \ + yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \ + YY_DO_BEFORE_ACTION; /* set up yytext again */ \ + } \ + while ( 0 ) + +#define unput(c) yyunput( c, yytext_ptr ) + +/* The following is because we cannot portably get our hands on size_t + * (without autoconf's help, which isn't available because we want + * flex-generated scanners to compile on their own). + */ +typedef unsigned int yy_size_t; + + +struct yy_buffer_state + { + FILE *yy_input_file; + + char *yy_ch_buf; /* input buffer */ + char *yy_buf_pos; /* current position in input buffer */ + + /* Size of input buffer in bytes, not including room for EOB + * characters. + */ + yy_size_t yy_buf_size; + + /* Number of characters read into yy_ch_buf, not including EOB + * characters. + */ + int yy_n_chars; + + /* Whether we "own" the buffer - i.e., we know we created it, + * and can realloc() it to grow it, and should free() it to + * delete it. + */ + int yy_is_our_buffer; + + /* Whether this is an "interactive" input source; if so, and + * if we're using stdio for input, then we want to use getc() + * instead of fread(), to make sure we stop fetching input after + * each newline. + */ + int yy_is_interactive; + + /* Whether we're considered to be at the beginning of a line. + * If so, '^' rules will be active on the next match, otherwise + * not. + */ + int yy_at_bol; + + /* Whether to try to fill the input buffer when we reach the + * end of it. + */ + int yy_fill_buffer; + + int yy_buffer_status; +#define YY_BUFFER_NEW 0 +#define YY_BUFFER_NORMAL 1 + /* When an EOF's been seen but there's still some text to process + * then we mark the buffer as YY_EOF_PENDING, to indicate that we + * shouldn't try reading from the input source any more. We might + * still have a bunch of tokens to match, though, because of + * possible backing-up. + * + * When we actually see the EOF, we change the status to "new" + * (via yyrestart()), so that the user can continue scanning by + * just pointing yyin at a new input file. + */ +#define YY_BUFFER_EOF_PENDING 2 + }; + +static YY_BUFFER_STATE yy_current_buffer = 0; + +/* We provide macros for accessing buffer states in case in the + * future we want to put the buffer states in a more general + * "scanner state". + */ +#define YY_CURRENT_BUFFER yy_current_buffer + + +/* yy_hold_char holds the character lost when yytext is formed. */ +static char yy_hold_char; + +static int yy_n_chars; /* number of characters read into yy_ch_buf */ + + +int yyleng; + +/* Points to current character in buffer. */ +static char *yy_c_buf_p = (char *) 0; +static int yy_init = 1; /* whether we need to initialize */ +static int yy_start = 0; /* start state number */ + +/* Flag which is used to allow yywrap()'s to do buffer switches + * instead of setting up a fresh yyin. A bit of a hack ... + */ +static int yy_did_buffer_switch_on_eof; + +void yyrestart YY_PROTO(( FILE *input_file )); + +void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer )); +void yy_load_buffer_state YY_PROTO(( void )); +YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size )); +void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b )); +void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file )); +void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b )); +#define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer ) + +YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size )); +YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str )); +YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len )); + +static void *yy_flex_alloc YY_PROTO(( yy_size_t )); +static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t )); +static void yy_flex_free YY_PROTO(( void * )); + +#define yy_new_buffer yy_create_buffer + +#define yy_set_interactive(is_interactive) \ + { \ + if ( ! yy_current_buffer ) \ + yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \ + yy_current_buffer->yy_is_interactive = is_interactive; \ + } + +#define yy_set_bol(at_bol) \ + { \ + if ( ! yy_current_buffer ) \ + yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \ + yy_current_buffer->yy_at_bol = at_bol; \ + } + +#define YY_AT_BOL() (yy_current_buffer->yy_at_bol) + +typedef unsigned char YY_CHAR; +FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0; +typedef int yy_state_type; +extern char *yytext; +#define yytext_ptr yytext + +static yy_state_type yy_get_previous_state YY_PROTO(( void )); +static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state )); +static int yy_get_next_buffer YY_PROTO(( void )); +static void yy_fatal_error YY_PROTO(( yyconst char msg[] )); + +/* Done after the current pattern has been matched and before the + * corresponding action - sets up yytext. + */ +#define YY_DO_BEFORE_ACTION \ + yytext_ptr = yy_bp; \ + yyleng = (int) (yy_cp - yy_bp); \ + yy_hold_char = *yy_cp; \ + *yy_cp = '\0'; \ + yy_c_buf_p = yy_cp; + +#define YY_NUM_RULES 11 +#define YY_END_OF_BUFFER 12 +static yyconst short int yy_accept[28] = + { 0, + 0, 0, 12, 10, 2, 1, 8, 10, 10, 10, + 5, 9, 1, 0, 5, 5, 4, 3, 7, 6, + 5, 0, 9, 3, 0, 5, 0 + } ; + +static yyconst int yy_ec[256] = + { 0, + 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 2, 1, 4, 1, 1, 1, 1, 5, 1, + 1, 6, 7, 1, 8, 9, 10, 11, 11, 11, + 11, 11, 11, 11, 11, 11, 11, 1, 1, 1, + 1, 1, 1, 1, 13, 13, 13, 13, 14, 13, + 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, + 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, + 1, 1, 1, 1, 12, 1, 13, 13, 13, 13, + + 14, 13, 13, 13, 13, 13, 13, 13, 13, 13, + 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, + 13, 13, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1 + } ; + +static yyconst int yy_meta[15] = + { 0, + 1, 1, 2, 1, 1, 1, 3, 4, 1, 1, + 4, 5, 5, 5 + } ; + +static yyconst short int yy_base[32] = + { 0, + 0, 0, 29, 54, 54, 0, 54, 6, 16, 10, + 17, 0, 0, 13, 0, 14, 54, 0, 54, 54, + 0, 8, 0, 0, 7, 28, 54, 39, 41, 46, + 49 + } ; + +static yyconst short int yy_def[32] = + { 0, + 27, 1, 27, 27, 27, 28, 27, 27, 27, 27, + 27, 29, 28, 27, 11, 11, 27, 30, 27, 27, + 16, 31, 29, 30, 27, 27, 0, 27, 27, 27, + 27 + } ; + +static yyconst short int yy_nxt[69] = + { 0, + 4, 5, 6, 7, 4, 4, 8, 8, 9, 10, + 11, 4, 12, 12, 14, 17, 15, 26, 26, 18, + 19, 20, 27, 16, 16, 21, 16, 15, 27, 27, + 22, 19, 20, 27, 27, 27, 27, 27, 26, 13, + 27, 13, 13, 13, 23, 23, 24, 27, 24, 24, + 24, 25, 25, 3, 27, 27, 27, 27, 27, 27, + 27, 27, 27, 27, 27, 27, 27, 27 + } ; + +static yyconst short int yy_chk[69] = + { 0, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 8, 10, 8, 25, 22, 10, + 11, 11, 16, 14, 16, 11, 9, 11, 3, 0, + 11, 26, 26, 0, 0, 0, 0, 0, 26, 28, + 0, 28, 28, 28, 29, 29, 30, 0, 30, 30, + 30, 31, 31, 27, 27, 27, 27, 27, 27, 27, + 27, 27, 27, 27, 27, 27, 27, 27 + } ; + +static yy_state_type yy_last_accepting_state; +static char *yy_last_accepting_cpos; + +/* The intent behind this definition is that it'll catch + * any uses of REJECT which flex missed. + */ +#define REJECT reject_used_but_not_detected +#define yymore() yymore_used_but_not_detected +#define YY_MORE_ADJ 0 +#define YY_RESTORE_YY_MORE_OFFSET +char *yytext; +#line 1 "stitchLexer.lxx" +#define INITIAL 0 +/* +// Filename: lexer.l +// Created by: drose (08Nov99) +// +//////////////////////////////////////////////////////////////////// +*/ +#line 9 "stitchLexer.lxx" +#include "stitchLexerDefs.h" +#include "stitchParserDefs.h" +#include "stitchParser.h" + +#include +#include + +#include +#include + +extern "C" int stitchyywrap(void); // declared below. + +static int yyinput(void); // declared by flex. + + +//////////////////////////////////////////////////////////////////// +// Static variables +//////////////////////////////////////////////////////////////////// + +// We'll increment line_number and col_number as we parse the file, so +// that we can report the position of an error. +static int line_number = 0; +static int col_number = 0; + +// current_line holds as much of the current line as will fit. Its +// only purpose is for printing it out to report an error to the user. +static const int max_error_width = 1024; +static char current_line[max_error_width + 1]; + +static int error_count = 0; +static int warning_count = 0; + +// This is the pointer to the current input stream. +static istream *inp = NULL; + +// This is the name of the stitch file we're parsing. We keep it so we +// can print it out for error messages. +static string stitch_filename; + +//////////////////////////////////////////////////////////////////// +// Defining the interface to the lexer. +//////////////////////////////////////////////////////////////////// + +void +stitch_init_lexer(istream &in, const string &filename) { + inp = ∈ + stitch_filename = filename; + line_number = 0; + col_number = 0; + error_count = 0; + warning_count = 0; +} + +int +stitch_error_count() { + return error_count; +} + +int +stitch_warning_count() { + return warning_count; +} + + +//////////////////////////////////////////////////////////////////// +// Internal support functions. +//////////////////////////////////////////////////////////////////// + +int +stitchyywrap(void) { + return 1; +} + +void +stitchyyerror(const string &msg) { + nout << "\nError"; + if (!stitch_filename.empty()) { + nout << " in " << stitch_filename; + } + nout + << " at line " << line_number << ", column " << col_number << ":\n" + << current_line << "\n"; + indent(nout, col_number-1) + << "^\n" << msg << "\n\n" << flush; + error_count++; +} + +void +stitchyyerror(ostringstream &strm) { + stitchyyerror(strm.str()); +} + +void +stitchyywarning(const string &msg) { + nout + << "\nWarning at line " << line_number << ", column " << col_number << ":\n" + << current_line << "\n"; + indent(nout, col_number-1) + << "^\n" << msg << "\n\n" << flush; + warning_count++; +} + +void +stitchyywarning(ostringstream &strm) { + stitchyywarning(strm); +} + +// Now define a function to take input from an istream instead of a +// stdio FILE pointer. This is flex-specific. +static void +input_chars(char *buffer, int &result, int max_size) { + assert(inp != NULL); + if (*inp) { + inp->read(buffer, max_size); + result = inp->gcount(); + + if (line_number == 0) { + // This is a special case. If we are reading the very first bit + // from the stream, copy it into the current_line array. This + // is because the \n.* rule below, which fills current_line + // normally, doesn't catch the first line. + strncpy(current_line, yytext, max_error_width); + current_line[max_error_width] = '\0'; + line_number++; + col_number = 0; + + // Truncate it at the newline. + char *end = strchr(current_line, '\n'); + if (end != NULL) { + *end = '\0'; + } + } + + } else { + // End of file or I/O error. + result = 0; + } +} +#undef YY_INPUT +#define YY_INPUT(buffer, result, max_size) input_chars(buffer, result, max_size) + +// read_char reads and returns a single character, incrementing the +// supplied line and column numbers as appropriate. A convenience +// function for the scanning functions below. +static int +read_char(int &line, int &col) { + int c = yyinput(); + if (c == '\n') { + line++; + col = 0; + } else { + col++; + } + return c; +} + +// scan_quoted_string reads a string delimited by quotation marks and +// returns it. +static string +scan_quoted_string() { + string result; + + // We don't touch the current line number and column number during + // scanning, so that if we detect an error while scanning the string + // (e.g. an unterminated string), we'll report the error as + // occurring at the start of the string, not at the end--somewhat + // more convenient for the user. + + // Instead of adjusting the global line_number and col_number + // variables, we'll operate on our own local variables for the + // interim. + int line = line_number; + int col = col_number; + + int c; + c = read_char(line, col); + while (c != '"' && c != EOF) { + result += c; + c = read_char(line, col); + } + + if (c == EOF) { + stitchyyerror("This quotation mark is unterminated."); + } + + line_number = line; + col_number = col; + + return result; +} + +// eat_c_comment scans past all characters up until the first */ +// encountered. +static void +eat_c_comment() { + // As above, we'll operate on our own local copies of line_number + // and col_number within this function. + + int line = line_number; + int col = col_number; + + int c, last_c; + + last_c = '\0'; + c = read_char(line, col); + while (c != EOF && !(last_c == '*' && c == '/')) { + if (last_c == '/' && c == '*') { + ostringstream errmsg; + errmsg << "This comment contains a nested /* symbol at line " + << line << ", column " << col-1 << "--possibly unclosed?"; + stitchyywarning(errmsg); + } + last_c = c; + c = read_char(line, col); + } + + if (c == EOF) { + stitchyyerror("This comment marker is unclosed."); + } + + line_number = line; + col_number = col; +} + + + +// accept() is called below as each piece is pulled off and +// accepted by the lexer; it increments the current column number. +INLINE void accept() { + col_number += yyleng; +} + +#line 642 "lex.yy.c" + +/* Macros after this point can all be overridden by user definitions in + * section 1. + */ + +#ifndef YY_SKIP_YYWRAP +#ifdef __cplusplus +extern "C" int yywrap YY_PROTO(( void )); +#else +extern int yywrap YY_PROTO(( void )); +#endif +#endif + +#ifndef YY_NO_UNPUT +static void yyunput YY_PROTO(( int c, char *buf_ptr )); +#endif + +#ifndef yytext_ptr +static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int )); +#endif + +#ifdef YY_NEED_STRLEN +static int yy_flex_strlen YY_PROTO(( yyconst char * )); +#endif + +#ifndef YY_NO_INPUT +#ifdef __cplusplus +static int yyinput YY_PROTO(( void )); +#else +static int input YY_PROTO(( void )); +#endif +#endif + +#if YY_STACK_USED +static int yy_start_stack_ptr = 0; +static int yy_start_stack_depth = 0; +static int *yy_start_stack = 0; +#ifndef YY_NO_PUSH_STATE +static void yy_push_state YY_PROTO(( int new_state )); +#endif +#ifndef YY_NO_POP_STATE +static void yy_pop_state YY_PROTO(( void )); +#endif +#ifndef YY_NO_TOP_STATE +static int yy_top_state YY_PROTO(( void )); +#endif + +#else +#define YY_NO_PUSH_STATE 1 +#define YY_NO_POP_STATE 1 +#define YY_NO_TOP_STATE 1 +#endif + +#ifdef YY_MALLOC_DECL +YY_MALLOC_DECL +#else +#if __STDC__ +#ifndef __cplusplus +#include +#endif +#else +/* Just try to get by without declaring the routines. This will fail + * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int) + * or sizeof(void*) != sizeof(int). + */ +#endif +#endif + +/* Amount of stuff to slurp up with each read. */ +#ifndef YY_READ_BUF_SIZE +#define YY_READ_BUF_SIZE 8192 +#endif + +/* Copy whatever the last rule matched to the standard output. */ + +#ifndef ECHO +/* This used to be an fputs(), but since the string might contain NUL's, + * we now use fwrite(). + */ +#define ECHO (void) fwrite( yytext, yyleng, 1, yyout ) +#endif + +/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, + * is returned in "result". + */ +#ifndef YY_INPUT +#define YY_INPUT(buf,result,max_size) \ + if ( yy_current_buffer->yy_is_interactive ) \ + { \ + int c = '*', n; \ + for ( n = 0; n < max_size && \ + (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ + buf[n] = (char) c; \ + if ( c == '\n' ) \ + buf[n++] = (char) c; \ + if ( c == EOF && ferror( yyin ) ) \ + YY_FATAL_ERROR( "input in flex scanner failed" ); \ + result = n; \ + } \ + else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \ + && ferror( yyin ) ) \ + YY_FATAL_ERROR( "input in flex scanner failed" ); +#endif + +/* No semi-colon after return; correct usage is to write "yyterminate();" - + * we don't want an extra ';' after the "return" because that will cause + * some compilers to complain about unreachable statements. + */ +#ifndef yyterminate +#define yyterminate() return YY_NULL +#endif + +/* Number of entries by which start-condition stack grows. */ +#ifndef YY_START_STACK_INCR +#define YY_START_STACK_INCR 25 +#endif + +/* Report a fatal error. */ +#ifndef YY_FATAL_ERROR +#define YY_FATAL_ERROR(msg) yy_fatal_error( msg ) +#endif + +/* Default declaration of generated scanner - a define so the user can + * easily add parameters. + */ +#ifndef YY_DECL +#define YY_DECL int yylex YY_PROTO(( void )) +#endif + +/* Code executed at the beginning of each rule, after yytext and yyleng + * have been set up. + */ +#ifndef YY_USER_ACTION +#define YY_USER_ACTION +#endif + +/* Code executed at the end of each rule. */ +#ifndef YY_BREAK +#define YY_BREAK break; +#endif + +#define YY_RULE_SETUP \ + YY_USER_ACTION + +YY_DECL + { + register yy_state_type yy_current_state; + register char *yy_cp = NULL, *yy_bp = NULL; + register int yy_act; + +#line 245 "stitchLexer.lxx" + + +#line 796 "lex.yy.c" + + if ( yy_init ) + { + yy_init = 0; + +#ifdef YY_USER_INIT + YY_USER_INIT; +#endif + + if ( ! yy_start ) + yy_start = 1; /* first start state */ + + if ( ! yyin ) + yyin = stdin; + + if ( ! yyout ) + yyout = stdout; + + if ( ! yy_current_buffer ) + yy_current_buffer = + yy_create_buffer( yyin, YY_BUF_SIZE ); + + yy_load_buffer_state(); + } + + while ( 1 ) /* loops until end-of-file is reached */ + { + yy_cp = yy_c_buf_p; + + /* Support of yytext. */ + *yy_cp = yy_hold_char; + + /* yy_bp points to the position in yy_ch_buf of the start of + * the current run. + */ + yy_bp = yy_cp; + + yy_current_state = yy_start; +yy_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 >= 28 ) + 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] != 54 ); + +yy_find_action: + yy_act = yy_accept[yy_current_state]; + if ( yy_act == 0 ) + { /* have to back up */ + yy_cp = yy_last_accepting_cpos; + yy_current_state = yy_last_accepting_state; + yy_act = yy_accept[yy_current_state]; + } + + YY_DO_BEFORE_ACTION; + + +do_action: /* This label is used only to access EOF actions. */ + + + switch ( yy_act ) + { /* beginning of action switch */ + case 0: /* must back up */ + /* undo the effects of YY_DO_BEFORE_ACTION */ + *yy_cp = yy_hold_char; + yy_cp = yy_last_accepting_cpos; + yy_current_state = yy_last_accepting_state; + goto yy_find_action; + +case 1: +YY_RULE_SETUP +#line 247 "stitchLexer.lxx" +{ + // New line. Save a copy of the line so we can print it out for the + // benefit of the user in case we get an error. + + strncpy(current_line, yytext+1, max_error_width); + current_line[max_error_width] = '\0'; + line_number++; + col_number=0; + + // Return the whole line to the lexer, except the newline character, + // which we eat. + yyless(1); +} + YY_BREAK +case 2: +YY_RULE_SETUP +#line 261 "stitchLexer.lxx" +{ + // Eat whitespace. + accept(); +} + YY_BREAK +case 3: +YY_RULE_SETUP +#line 266 "stitchLexer.lxx" +{ + // Eat C++-style comments. + accept(); +} + YY_BREAK +case 4: +YY_RULE_SETUP +#line 271 "stitchLexer.lxx" +{ + // Eat C-style comments. + accept(); + eat_c_comment(); +} + YY_BREAK +case 5: +YY_RULE_SETUP +#line 279 "stitchLexer.lxx" +{ + // An integer or floating-point number. + accept(); + stitchyylval.number = atof(stitchyytext); + stitchyylval.str = yytext; + return NUMBER; +} + YY_BREAK +case 6: +YY_RULE_SETUP +#line 287 "stitchLexer.lxx" +{ + // An integer or floating-point number followed by feet symbol. + accept(); + stitchyylval.number = atof(stitchyytext); + stitchyylval.str = yytext; + return NUMBER_FEET; +} + YY_BREAK +case 7: +YY_RULE_SETUP +#line 295 "stitchLexer.lxx" +{ + // An integer or floating-point number followed by inches symbol. + accept(); + stitchyylval.number = atof(stitchyytext); + stitchyylval.str = yytext; + return NUMBER_INCHES; +} + YY_BREAK +case 8: +YY_RULE_SETUP +#line 303 "stitchLexer.lxx" +{ + // Quoted string. + accept(); + stitchyylval.str = scan_quoted_string(); + return STRING; +} + YY_BREAK +case 9: +YY_RULE_SETUP +#line 310 "stitchLexer.lxx" +{ + // Identifier or keyword. + accept(); + string str = yytext; + stitchyylval.str = str; + + if (cmp_nocase_uh(str, "define") == 0) { + return KW_DEFINE; + } else if (cmp_nocase_uh(str, "lens") == 0) { + return KW_LENS; + } else if (cmp_nocase_uh(str, "input_image") == 0) { + return KW_INPUT_IMAGE; + } else if (cmp_nocase_uh(str, "output_image") == 0) { + return KW_OUTPUT_IMAGE; + } else if (cmp_nocase_uh(str, "eyepoint") == 0) { + return KW_EYEPOINT; + } else if (cmp_nocase_uh(str, "perspective") == 0) { + return KW_PERSPECTIVE; + } else if (cmp_nocase_uh(str, "fisheye") == 0) { + return KW_FISHEYE; + } else if (cmp_nocase_uh(str, "cylindrical") == 0) { + return KW_CYLINDRICAL; + } else if (cmp_nocase_uh(str, "psphere") == 0) { + return KW_PSPHERE; + } else if (cmp_nocase_uh(str, "focal_length") == 0) { + return KW_FOCAL_LENGTH; + } else if (cmp_nocase_uh(str, "fov") == 0) { + return KW_FOV; + } else if (cmp_nocase_uh(str, "singularity_tolerance") == 0) { + return KW_SINGULARITY_TOLERANCE; + } else if (cmp_nocase_uh(str, "resolution") == 0) { + return KW_RESOLUTION; + } else if (cmp_nocase_uh(str, "filename") == 0) { + return KW_FILENAME; + } else if (cmp_nocase_uh(str, "fade") == 0) { + return KW_FADE; + } else if (cmp_nocase_uh(str, "point") == 0) { + return KW_POINT; + } else if (cmp_nocase_uh(str, "show_points") == 0) { + return KW_SHOW_POINTS; + } else if (cmp_nocase_uh(str, "image_size") == 0) { + return KW_IMAGE_SIZE; + } else if (cmp_nocase_uh(str, "film_size") == 0) { + return KW_FILM_SIZE; + } else if (cmp_nocase_uh(str, "film_offset") == 0) { + return KW_FILM_OFFSET; + } else if (cmp_nocase_uh(str, "grid") == 0) { + return KW_GRID; + } else if (cmp_nocase_uh(str, "untextured_color") == 0) { + return KW_UNTEXTURED_COLOR; + } else if (cmp_nocase_uh(str, "hpr") == 0) { + return KW_HPR; + } else if (cmp_nocase_uh(str, "pos") == 0) { + return KW_POS; + } else if (cmp_nocase_uh(str, "radius") == 0) { + return KW_RADIUS; + } else if (cmp_nocase_uh(str, "angle") == 0) { + return KW_ANGLE; + } else if (cmp_nocase_uh(str, "height") == 0) { + return KW_HEIGHT; + } else if (cmp_nocase_uh(str, "layers") == 0) { + return KW_LAYERS; + } else if (cmp_nocase_uh(str, "stitch") == 0) { + return KW_STITCH; + } else if (cmp_nocase_uh(str, "screen") == 0) { + return KW_SCREEN; + } else if (cmp_nocase_uh(str, "points") == 0) { + return KW_POINTS; + } else if (cmp_nocase_uh(str, "using") == 0) { + return KW_USING; + } else if (cmp_nocase_uh(str, "in") == 0) { + return KW_IN; + } else if (cmp_nocase_uh(str, "mm") == 0) { + return KW_MM; + } else if (cmp_nocase_uh(str, "cm") == 0) { + return KW_CM; + } else if (cmp_nocase_uh(str, "ft") == 0) { + return KW_FT; + } else if (cmp_nocase_uh(str, "p") == 0) { + return KW_P; + } + + return IDENTIFIER; +} + YY_BREAK +case 10: +YY_RULE_SETUP +#line 395 "stitchLexer.lxx" +{ + // Send any other character as itself. + accept(); + return stitchyytext[0]; +} + YY_BREAK +case 11: +YY_RULE_SETUP +#line 400 "stitchLexer.lxx" +ECHO; + YY_BREAK +#line 1066 "lex.yy.c" +case YY_STATE_EOF(INITIAL): + yyterminate(); + + case YY_END_OF_BUFFER: + { + /* Amount of text matched not including the EOB char. */ + int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1; + + /* Undo the effects of YY_DO_BEFORE_ACTION. */ + *yy_cp = yy_hold_char; + YY_RESTORE_YY_MORE_OFFSET + + if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW ) + { + /* We're scanning a new file or input source. It's + * possible that this happened because the user + * just pointed yyin at a new source and called + * yylex(). If so, then we have to assure + * consistency between yy_current_buffer and our + * globals. Here is the right place to do so, because + * this is the first action (other than possibly a + * back-up) that will match for the new input source. + */ + yy_n_chars = yy_current_buffer->yy_n_chars; + yy_current_buffer->yy_input_file = yyin; + yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL; + } + + /* Note that here we test for yy_c_buf_p "<=" to the position + * of the first EOB in the buffer, since yy_c_buf_p will + * already have been incremented past the NUL character + * (since all states make transitions on EOB to the + * end-of-buffer state). Contrast this with the test + * in input(). + */ + if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] ) + { /* This was really a NUL. */ + yy_state_type yy_next_state; + + yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text; + + yy_current_state = yy_get_previous_state(); + + /* Okay, we're now positioned to make the NUL + * transition. We couldn't have + * yy_get_previous_state() go ahead and do it + * for us because it doesn't know how to deal + * with the possibility of jamming (and we don't + * want to build jamming into it because then it + * will run more slowly). + */ + + yy_next_state = yy_try_NUL_trans( yy_current_state ); + + yy_bp = yytext_ptr + YY_MORE_ADJ; + + if ( yy_next_state ) + { + /* Consume the NUL. */ + yy_cp = ++yy_c_buf_p; + yy_current_state = yy_next_state; + goto yy_match; + } + + else + { + yy_cp = yy_c_buf_p; + goto yy_find_action; + } + } + + else switch ( yy_get_next_buffer() ) + { + case EOB_ACT_END_OF_FILE: + { + yy_did_buffer_switch_on_eof = 0; + + if ( yywrap() ) + { + /* Note: because we've taken care in + * yy_get_next_buffer() to have set up + * yytext, we can now set up + * yy_c_buf_p so that if some total + * hoser (like flex itself) wants to + * call the scanner after we return the + * YY_NULL, it'll still work - another + * YY_NULL will get returned. + */ + yy_c_buf_p = yytext_ptr + YY_MORE_ADJ; + + yy_act = YY_STATE_EOF(YY_START); + goto do_action; + } + + else + { + if ( ! yy_did_buffer_switch_on_eof ) + YY_NEW_FILE; + } + break; + } + + case EOB_ACT_CONTINUE_SCAN: + yy_c_buf_p = + yytext_ptr + yy_amount_of_matched_text; + + yy_current_state = yy_get_previous_state(); + + yy_cp = yy_c_buf_p; + yy_bp = yytext_ptr + YY_MORE_ADJ; + goto yy_match; + + case EOB_ACT_LAST_MATCH: + yy_c_buf_p = + &yy_current_buffer->yy_ch_buf[yy_n_chars]; + + yy_current_state = yy_get_previous_state(); + + yy_cp = yy_c_buf_p; + yy_bp = yytext_ptr + YY_MORE_ADJ; + goto yy_find_action; + } + break; + } + + default: + YY_FATAL_ERROR( + "fatal flex scanner internal error--no action found" ); + } /* end of action switch */ + } /* end of scanning one token */ + } /* end of yylex */ + + +/* yy_get_next_buffer - try to read in a new buffer + * + * Returns a code representing an action: + * EOB_ACT_LAST_MATCH - + * EOB_ACT_CONTINUE_SCAN - continue scanning from current position + * EOB_ACT_END_OF_FILE - end of file + */ + +static int yy_get_next_buffer() + { + register char *dest = yy_current_buffer->yy_ch_buf; + register char *source = yytext_ptr; + register int number_to_move, i; + int ret_val; + + if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] ) + YY_FATAL_ERROR( + "fatal flex scanner internal error--end of buffer missed" ); + + if ( yy_current_buffer->yy_fill_buffer == 0 ) + { /* Don't try to fill the buffer, so this is an EOF. */ + if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 ) + { + /* We matched a single character, the EOB, so + * treat this as a final EOF. + */ + return EOB_ACT_END_OF_FILE; + } + + else + { + /* We matched some text prior to the EOB, first + * process it. + */ + return EOB_ACT_LAST_MATCH; + } + } + + /* Try to read more data. */ + + /* First move last chars to start of buffer. */ + number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1; + + for ( i = 0; i < number_to_move; ++i ) + *(dest++) = *(source++); + + if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING ) + /* don't do the read, it's not guaranteed to return an EOF, + * just force an EOF + */ + yy_current_buffer->yy_n_chars = yy_n_chars = 0; + + else + { + int num_to_read = + yy_current_buffer->yy_buf_size - number_to_move - 1; + + while ( num_to_read <= 0 ) + { /* Not enough room in the buffer - grow it. */ +#ifdef YY_USES_REJECT + YY_FATAL_ERROR( +"input buffer overflow, can't enlarge buffer because scanner uses REJECT" ); +#else + + /* just a shorter name for the current buffer */ + YY_BUFFER_STATE b = yy_current_buffer; + + int yy_c_buf_p_offset = + (int) (yy_c_buf_p - b->yy_ch_buf); + + if ( b->yy_is_our_buffer ) + { + int new_size = b->yy_buf_size * 2; + + if ( new_size <= 0 ) + b->yy_buf_size += b->yy_buf_size / 8; + else + b->yy_buf_size *= 2; + + b->yy_ch_buf = (char *) + /* Include room in for 2 EOB chars. */ + yy_flex_realloc( (void *) b->yy_ch_buf, + b->yy_buf_size + 2 ); + } + else + /* Can't grow it, we don't own it. */ + b->yy_ch_buf = 0; + + if ( ! b->yy_ch_buf ) + YY_FATAL_ERROR( + "fatal error - scanner input buffer overflow" ); + + yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset]; + + num_to_read = yy_current_buffer->yy_buf_size - + number_to_move - 1; +#endif + } + + if ( num_to_read > YY_READ_BUF_SIZE ) + num_to_read = YY_READ_BUF_SIZE; + + /* Read in more data. */ + YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]), + yy_n_chars, num_to_read ); + + yy_current_buffer->yy_n_chars = yy_n_chars; + } + + if ( yy_n_chars == 0 ) + { + if ( number_to_move == YY_MORE_ADJ ) + { + ret_val = EOB_ACT_END_OF_FILE; + yyrestart( yyin ); + } + + else + { + ret_val = EOB_ACT_LAST_MATCH; + yy_current_buffer->yy_buffer_status = + YY_BUFFER_EOF_PENDING; + } + } + + else + ret_val = EOB_ACT_CONTINUE_SCAN; + + yy_n_chars += number_to_move; + yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR; + yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR; + + yytext_ptr = &yy_current_buffer->yy_ch_buf[0]; + + return ret_val; + } + + +/* yy_get_previous_state - get the state just before the EOB char was reached */ + +static yy_state_type yy_get_previous_state() + { + register yy_state_type yy_current_state; + register char *yy_cp; + + yy_current_state = yy_start; + + for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp ) + { + register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); + if ( yy_accept[yy_current_state] ) + { + yy_last_accepting_state = yy_current_state; + yy_last_accepting_cpos = yy_cp; + } + while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) + { + yy_current_state = (int) yy_def[yy_current_state]; + if ( yy_current_state >= 28 ) + yy_c = yy_meta[(unsigned int) yy_c]; + } + yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; + } + + return yy_current_state; + } + + +/* yy_try_NUL_trans - try to make a transition on the NUL character + * + * synopsis + * next_state = yy_try_NUL_trans( current_state ); + */ + +#ifdef YY_USE_PROTOS +static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state ) +#else +static yy_state_type yy_try_NUL_trans( yy_current_state ) +yy_state_type yy_current_state; +#endif + { + register int yy_is_jam; + register char *yy_cp = yy_c_buf_p; + + register YY_CHAR yy_c = 1; + if ( yy_accept[yy_current_state] ) + { + yy_last_accepting_state = yy_current_state; + yy_last_accepting_cpos = yy_cp; + } + while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) + { + yy_current_state = (int) yy_def[yy_current_state]; + if ( yy_current_state >= 28 ) + 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 == 27); + + return yy_is_jam ? 0 : yy_current_state; + } + + +#ifndef YY_NO_UNPUT +#ifdef YY_USE_PROTOS +static void yyunput( int c, register char *yy_bp ) +#else +static void yyunput( c, yy_bp ) +int c; +register char *yy_bp; +#endif + { + register char *yy_cp = yy_c_buf_p; + + /* undo effects of setting up yytext */ + *yy_cp = yy_hold_char; + + if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 ) + { /* need to shift things up to make room */ + /* +2 for EOB chars. */ + register int number_to_move = yy_n_chars + 2; + register char *dest = &yy_current_buffer->yy_ch_buf[ + yy_current_buffer->yy_buf_size + 2]; + register char *source = + &yy_current_buffer->yy_ch_buf[number_to_move]; + + while ( source > yy_current_buffer->yy_ch_buf ) + *--dest = *--source; + + yy_cp += (int) (dest - source); + yy_bp += (int) (dest - source); + yy_current_buffer->yy_n_chars = + yy_n_chars = yy_current_buffer->yy_buf_size; + + if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 ) + YY_FATAL_ERROR( "flex scanner push-back overflow" ); + } + + *--yy_cp = (char) c; + + + yytext_ptr = yy_bp; + yy_hold_char = *yy_cp; + yy_c_buf_p = yy_cp; + } +#endif /* ifndef YY_NO_UNPUT */ + + +#ifdef __cplusplus +static int yyinput() +#else +static int input() +#endif + { + int c; + + *yy_c_buf_p = yy_hold_char; + + if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR ) + { + /* yy_c_buf_p now points to the character we want to return. + * If this occurs *before* the EOB characters, then it's a + * valid NUL; if not, then we've hit the end of the buffer. + */ + if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] ) + /* This was really a NUL. */ + *yy_c_buf_p = '\0'; + + else + { /* need more input */ + int offset = yy_c_buf_p - yytext_ptr; + ++yy_c_buf_p; + + switch ( yy_get_next_buffer() ) + { + case EOB_ACT_LAST_MATCH: + /* This happens because yy_g_n_b() + * sees that we've accumulated a + * token and flags that we need to + * try matching the token before + * proceeding. But for input(), + * there's no matching to consider. + * So convert the EOB_ACT_LAST_MATCH + * to EOB_ACT_END_OF_FILE. + */ + + /* Reset buffer status. */ + yyrestart( yyin ); + + /* fall through */ + + case EOB_ACT_END_OF_FILE: + { + if ( yywrap() ) + return EOF; + + if ( ! yy_did_buffer_switch_on_eof ) + YY_NEW_FILE; +#ifdef __cplusplus + return yyinput(); +#else + return input(); +#endif + } + + case EOB_ACT_CONTINUE_SCAN: + yy_c_buf_p = yytext_ptr + offset; + break; + } + } + } + + c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */ + *yy_c_buf_p = '\0'; /* preserve yytext */ + yy_hold_char = *++yy_c_buf_p; + + + return c; + } + + +#ifdef YY_USE_PROTOS +void yyrestart( FILE *input_file ) +#else +void yyrestart( input_file ) +FILE *input_file; +#endif + { + if ( ! yy_current_buffer ) + yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); + + yy_init_buffer( yy_current_buffer, input_file ); + yy_load_buffer_state(); + } + + +#ifdef YY_USE_PROTOS +void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer ) +#else +void yy_switch_to_buffer( new_buffer ) +YY_BUFFER_STATE new_buffer; +#endif + { + if ( yy_current_buffer == new_buffer ) + return; + + if ( yy_current_buffer ) + { + /* Flush out information for old buffer. */ + *yy_c_buf_p = yy_hold_char; + yy_current_buffer->yy_buf_pos = yy_c_buf_p; + yy_current_buffer->yy_n_chars = yy_n_chars; + } + + yy_current_buffer = new_buffer; + yy_load_buffer_state(); + + /* We don't actually know whether we did this switch during + * EOF (yywrap()) processing, but the only time this flag + * is looked at is after yywrap() is called, so it's safe + * to go ahead and always set it. + */ + yy_did_buffer_switch_on_eof = 1; + } + + +#ifdef YY_USE_PROTOS +void yy_load_buffer_state( void ) +#else +void yy_load_buffer_state() +#endif + { + yy_n_chars = yy_current_buffer->yy_n_chars; + yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos; + yyin = yy_current_buffer->yy_input_file; + yy_hold_char = *yy_c_buf_p; + } + + +#ifdef YY_USE_PROTOS +YY_BUFFER_STATE yy_create_buffer( FILE *file, int size ) +#else +YY_BUFFER_STATE yy_create_buffer( file, size ) +FILE *file; +int size; +#endif + { + YY_BUFFER_STATE b; + + b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) ); + if ( ! b ) + YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); + + b->yy_buf_size = size; + + /* yy_ch_buf has to be 2 characters longer than the size given because + * we need to put in 2 end-of-buffer characters. + */ + b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 ); + if ( ! b->yy_ch_buf ) + YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); + + b->yy_is_our_buffer = 1; + + yy_init_buffer( b, file ); + + return b; + } + + +#ifdef YY_USE_PROTOS +void yy_delete_buffer( YY_BUFFER_STATE b ) +#else +void yy_delete_buffer( b ) +YY_BUFFER_STATE b; +#endif + { + if ( ! b ) + return; + + if ( b == yy_current_buffer ) + yy_current_buffer = (YY_BUFFER_STATE) 0; + + if ( b->yy_is_our_buffer ) + yy_flex_free( (void *) b->yy_ch_buf ); + + yy_flex_free( (void *) b ); + } + + + +#ifdef YY_USE_PROTOS +void yy_init_buffer( YY_BUFFER_STATE b, FILE *file ) +#else +void yy_init_buffer( b, file ) +YY_BUFFER_STATE b; +FILE *file; +#endif + + + { + yy_flush_buffer( b ); + + b->yy_input_file = file; + b->yy_fill_buffer = 1; + +#if YY_ALWAYS_INTERACTIVE + b->yy_is_interactive = 1; +#else +#if YY_NEVER_INTERACTIVE + b->yy_is_interactive = 0; +#else + b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; +#endif +#endif + } + + +#ifdef YY_USE_PROTOS +void yy_flush_buffer( YY_BUFFER_STATE b ) +#else +void yy_flush_buffer( b ) +YY_BUFFER_STATE b; +#endif + + { + if ( ! b ) + return; + + b->yy_n_chars = 0; + + /* We always need two end-of-buffer characters. The first causes + * a transition to the end-of-buffer state. The second causes + * a jam in that state. + */ + b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; + b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; + + b->yy_buf_pos = &b->yy_ch_buf[0]; + + b->yy_at_bol = 1; + b->yy_buffer_status = YY_BUFFER_NEW; + + if ( b == yy_current_buffer ) + yy_load_buffer_state(); + } + + +#ifndef YY_NO_SCAN_BUFFER +#ifdef YY_USE_PROTOS +YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size ) +#else +YY_BUFFER_STATE yy_scan_buffer( base, size ) +char *base; +yy_size_t size; +#endif + { + YY_BUFFER_STATE b; + + if ( size < 2 || + base[size-2] != YY_END_OF_BUFFER_CHAR || + base[size-1] != YY_END_OF_BUFFER_CHAR ) + /* They forgot to leave room for the EOB's. */ + return 0; + + b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) ); + if ( ! b ) + YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" ); + + b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */ + b->yy_buf_pos = b->yy_ch_buf = base; + b->yy_is_our_buffer = 0; + b->yy_input_file = 0; + b->yy_n_chars = b->yy_buf_size; + b->yy_is_interactive = 0; + b->yy_at_bol = 1; + b->yy_fill_buffer = 0; + b->yy_buffer_status = YY_BUFFER_NEW; + + yy_switch_to_buffer( b ); + + return b; + } +#endif + + +#ifndef YY_NO_SCAN_STRING +#ifdef YY_USE_PROTOS +YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str ) +#else +YY_BUFFER_STATE yy_scan_string( yy_str ) +yyconst char *yy_str; +#endif + { + int len; + for ( len = 0; yy_str[len]; ++len ) + ; + + return yy_scan_bytes( yy_str, len ); + } +#endif + + +#ifndef YY_NO_SCAN_BYTES +#ifdef YY_USE_PROTOS +YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len ) +#else +YY_BUFFER_STATE yy_scan_bytes( bytes, len ) +yyconst char *bytes; +int len; +#endif + { + YY_BUFFER_STATE b; + char *buf; + yy_size_t n; + int i; + + /* Get memory for full buffer, including space for trailing EOB's. */ + n = len + 2; + buf = (char *) yy_flex_alloc( n ); + if ( ! buf ) + YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" ); + + for ( i = 0; i < len; ++i ) + buf[i] = bytes[i]; + + buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR; + + b = yy_scan_buffer( buf, n ); + if ( ! b ) + YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" ); + + /* It's okay to grow etc. this buffer, and we should throw it + * away when we're done. + */ + b->yy_is_our_buffer = 1; + + return b; + } +#endif + + +#ifndef YY_NO_PUSH_STATE +#ifdef YY_USE_PROTOS +static void yy_push_state( int new_state ) +#else +static void yy_push_state( new_state ) +int new_state; +#endif + { + if ( yy_start_stack_ptr >= yy_start_stack_depth ) + { + yy_size_t new_size; + + yy_start_stack_depth += YY_START_STACK_INCR; + new_size = yy_start_stack_depth * sizeof( int ); + + if ( ! yy_start_stack ) + yy_start_stack = (int *) yy_flex_alloc( new_size ); + + else + yy_start_stack = (int *) yy_flex_realloc( + (void *) yy_start_stack, new_size ); + + if ( ! yy_start_stack ) + YY_FATAL_ERROR( + "out of memory expanding start-condition stack" ); + } + + yy_start_stack[yy_start_stack_ptr++] = YY_START; + + BEGIN(new_state); + } +#endif + + +#ifndef YY_NO_POP_STATE +static void yy_pop_state() + { + if ( --yy_start_stack_ptr < 0 ) + YY_FATAL_ERROR( "start-condition stack underflow" ); + + BEGIN(yy_start_stack[yy_start_stack_ptr]); + } +#endif + + +#ifndef YY_NO_TOP_STATE +static int yy_top_state() + { + return yy_start_stack[yy_start_stack_ptr - 1]; + } +#endif + +#ifndef YY_EXIT_FAILURE +#define YY_EXIT_FAILURE 2 +#endif + +#ifdef YY_USE_PROTOS +static void yy_fatal_error( yyconst char msg[] ) +#else +static void yy_fatal_error( msg ) +char msg[]; +#endif + { + (void) fprintf( stderr, "%s\n", msg ); + exit( YY_EXIT_FAILURE ); + } + + + +/* Redefine yyless() so it works in section 3 code. */ + +#undef yyless +#define yyless(n) \ + do \ + { \ + /* Undo effects of setting up yytext. */ \ + yytext[yyleng] = yy_hold_char; \ + yy_c_buf_p = yytext + n; \ + yy_hold_char = *yy_c_buf_p; \ + *yy_c_buf_p = '\0'; \ + yyleng = n; \ + } \ + while ( 0 ) + + +/* Internal utility routines. */ + +#ifndef yytext_ptr +#ifdef YY_USE_PROTOS +static void yy_flex_strncpy( char *s1, yyconst char *s2, int n ) +#else +static void yy_flex_strncpy( s1, s2, n ) +char *s1; +yyconst char *s2; +int n; +#endif + { + register int i; + for ( i = 0; i < n; ++i ) + s1[i] = s2[i]; + } +#endif + +#ifdef YY_NEED_STRLEN +#ifdef YY_USE_PROTOS +static int yy_flex_strlen( yyconst char *s ) +#else +static int yy_flex_strlen( s ) +yyconst char *s; +#endif + { + register int n; + for ( n = 0; s[n]; ++n ) + ; + + return n; + } +#endif + + +#ifdef YY_USE_PROTOS +static void *yy_flex_alloc( yy_size_t size ) +#else +static void *yy_flex_alloc( size ) +yy_size_t size; +#endif + { + return (void *) malloc( size ); + } + +#ifdef YY_USE_PROTOS +static void *yy_flex_realloc( void *ptr, yy_size_t size ) +#else +static void *yy_flex_realloc( ptr, size ) +void *ptr; +yy_size_t size; +#endif + { + /* The cast to (char *) in the following accommodates both + * implementations that use char* generic pointers, and those + * that use void* generic pointers. It works with the latter + * because both ANSI C and C++ allow castless assignment from + * any pointer type to void*, and deal with argument conversions + * as though doing an assignment. + */ + return (void *) realloc( (char *) ptr, size ); + } + +#ifdef YY_USE_PROTOS +static void yy_flex_free( void *ptr ) +#else +static void yy_flex_free( ptr ) +void *ptr; +#endif + { + free( ptr ); + } + +#if YY_MAIN +int main() + { + yylex(); + return 0; + } +#endif +#line 400 "stitchLexer.lxx" diff --git a/pandaapp/src/stitchbase/stitchParser.cxx.prebuilt b/pandaapp/src/stitchbase/stitchParser.cxx.prebuilt new file mode 100644 index 0000000000..d5886ac17c --- /dev/null +++ b/pandaapp/src/stitchbase/stitchParser.cxx.prebuilt @@ -0,0 +1,1752 @@ +/* A Bison parser, made from stitchParser.yxx + by GNU bison 1.35. */ + +#define YYBISON 1 /* Identify Bison output. */ + +#define yyparse stitchyyparse +#define yylex stitchyylex +#define yyerror stitchyyerror +#define yylval stitchyylval +#define yychar stitchyychar +#define yydebug stitchyydebug +#define yynerrs stitchyynerrs +# define NUMBER 257 +# define NUMBER_FEET 258 +# define NUMBER_INCHES 259 +# define IDENTIFIER 260 +# define STRING 261 +# define KW_DEFINE 262 +# define KW_LENS 263 +# define KW_INPUT_IMAGE 264 +# define KW_OUTPUT_IMAGE 265 +# define KW_EYEPOINT 266 +# define KW_PERSPECTIVE 267 +# define KW_FISHEYE 268 +# define KW_CYLINDRICAL 269 +# define KW_PSPHERE 270 +# define KW_FOCAL_LENGTH 271 +# define KW_FOV 272 +# define KW_SINGULARITY_TOLERANCE 273 +# define KW_RESOLUTION 274 +# define KW_FILENAME 275 +# define KW_FADE 276 +# define KW_POINT 277 +# define KW_SHOW_POINTS 278 +# define KW_IMAGE_SIZE 279 +# define KW_FILM_SIZE 280 +# define KW_FILM_OFFSET 281 +# define KW_GRID 282 +# define KW_UNTEXTURED_COLOR 283 +# define KW_HPR 284 +# define KW_POS 285 +# define KW_RADIUS 286 +# define KW_ANGLE 287 +# define KW_HEIGHT 288 +# define KW_LAYERS 289 +# define KW_STITCH 290 +# define KW_SCREEN 291 +# define KW_POINTS 292 +# define KW_USING 293 +# define KW_IN 294 +# define KW_MM 295 +# define KW_FT 296 +# define KW_CM 297 +# define KW_P 298 + +#line 6 "stitchParser.yxx" + + +#include "stitchParserDefs.h" +#include "stitchLexerDefs.h" +#include "stitchCommand.h" + +//////////////////////////////////////////////////////////////////// +// Defining the interface to the parser. +//////////////////////////////////////////////////////////////////// + +#define YYERROR_VERBOSE + +typedef vector CommandStack; +static CommandStack cstack; +static StitchCommand *parent; + +void +stitch_init_parser(istream &in, const string &filename, + StitchCommand *tos) { + stitch_init_lexer(in, filename); + parent = tos; + cstack.push_back(parent); +} + +#ifndef YYDEBUG +# define YYDEBUG 0 +#endif + + + +#define YYFINAL 160 +#define YYFLAG -32768 +#define YYNTBASE 52 + +/* YYTRANSLATE(YYLEX) -- Bison token number corresponding to YYLEX. */ +#define YYTRANSLATE(x) ((unsigned)(x) <= 298 ? yytranslate[x] : 75) + +/* YYTRANSLATE[YYLEX] -- Bison token number corresponding to YYLEX. */ +static const char 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, + 50, 51, 2, 2, 48, 2, 2, 49, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 47, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 45, 2, 46, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 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, 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 +}; + +#if YYDEBUG +static const short yyprhs[] = +{ + 0, 0, 2, 4, 7, 13, 14, 18, 21, 25, + 27, 30, 33, 36, 39, 42, 45, 48, 49, 53, + 55, 57, 59, 61, 64, 67, 70, 73, 76, 79, + 83, 87, 90, 93, 96, 99, 102, 105, 108, 111, + 114, 117, 119, 121, 123, 127, 129, 134, 137, 139, + 141, 144, 146, 148, 150, 152, 154, 157, 161, 166, + 172, 178, 186, 191, 197, 203, 211, 217, 225, 231, + 239, 246, 256, 258, 260, 262 +}; +static const short yyrhs[] = +{ + 53, 0, 74, 0, 53, 54, 0, 53, 38, 45, + 61, 46, 0, 0, 57, 55, 56, 0, 59, 47, + 0, 45, 53, 46, 0, 47, 0, 8, 72, 0, + 9, 73, 0, 10, 73, 0, 11, 73, 0, 12, + 73, 0, 36, 73, 0, 37, 73, 0, 0, 39, + 58, 60, 0, 13, 0, 14, 0, 15, 0, 16, + 0, 17, 62, 0, 18, 3, 0, 19, 3, 0, + 20, 64, 0, 21, 7, 0, 22, 7, 0, 23, + 72, 66, 0, 24, 3, 71, 0, 25, 67, 0, + 26, 69, 0, 27, 69, 0, 28, 67, 0, 29, + 71, 0, 30, 68, 0, 31, 70, 0, 32, 62, + 0, 33, 67, 0, 34, 69, 0, 35, 0, 6, + 0, 6, 0, 60, 48, 6, 0, 74, 0, 61, + 72, 66, 47, 0, 3, 63, 0, 4, 0, 5, + 0, 4, 5, 0, 3, 0, 40, 0, 43, 0, + 41, 0, 42, 0, 3, 65, 0, 44, 49, 63, + 0, 50, 3, 3, 51, 0, 50, 3, 48, 3, + 51, 0, 50, 3, 3, 3, 51, 0, 50, 3, + 48, 3, 48, 3, 51, 0, 50, 3, 3, 51, + 0, 50, 3, 48, 3, 51, 0, 50, 3, 3, + 3, 51, 0, 50, 3, 48, 3, 48, 3, 51, + 0, 50, 62, 48, 62, 51, 0, 50, 62, 48, + 62, 48, 62, 51, 0, 50, 3, 3, 3, 51, + 0, 50, 3, 48, 3, 48, 3, 51, 0, 50, + 3, 3, 3, 3, 51, 0, 50, 3, 48, 3, + 48, 3, 48, 3, 51, 0, 6, 0, 6, 0, + 74, 0, 0 +}; + +#endif + +#if YYDEBUG +/* YYRLINE[YYN] -- source line where rule number YYN was defined. */ +static const short yyrline[] = +{ + 0, 92, 96, 98, 102, 105, 105, 116, 122, 124, + 127, 133, 138, 143, 148, 153, 158, 163, 163, 174, + 179, 183, 187, 191, 196, 201, 206, 211, 216, 221, + 232, 238, 243, 248, 253, 258, 263, 268, 273, 278, + 283, 288, 292, 301, 308, 316, 318, 334, 339, 343, + 347, 355, 362, 367, 371, 375, 382, 389, 396, 402, + 407, 412, 419, 425, 432, 437, 444, 452, 460, 466, + 471, 476, 483, 487, 489, 495 +}; +#endif + + +#if (YYDEBUG) || defined YYERROR_VERBOSE + +/* YYTNAME[TOKEN_NUM] -- String name of the token TOKEN_NUM. */ +static const char *const yytname[] = +{ + "$", "error", "$undefined.", "NUMBER", "NUMBER_FEET", "NUMBER_INCHES", + "IDENTIFIER", "STRING", "KW_DEFINE", "KW_LENS", "KW_INPUT_IMAGE", + "KW_OUTPUT_IMAGE", "KW_EYEPOINT", "KW_PERSPECTIVE", "KW_FISHEYE", + "KW_CYLINDRICAL", "KW_PSPHERE", "KW_FOCAL_LENGTH", "KW_FOV", + "KW_SINGULARITY_TOLERANCE", "KW_RESOLUTION", "KW_FILENAME", "KW_FADE", + "KW_POINT", "KW_SHOW_POINTS", "KW_IMAGE_SIZE", "KW_FILM_SIZE", + "KW_FILM_OFFSET", "KW_GRID", "KW_UNTEXTURED_COLOR", "KW_HPR", "KW_POS", + "KW_RADIUS", "KW_ANGLE", "KW_HEIGHT", "KW_LAYERS", "KW_STITCH", + "KW_SCREEN", "KW_POINTS", "KW_USING", "KW_IN", "KW_MM", "KW_FT", + "KW_CM", "KW_P", "'{'", "'}'", "';'", "','", "'/'", "'('", "')'", + "stitch_file", "commands", "command", "@1", "nested_commands", + "group_command", "@2", "simple_command", "using_list", "points_list", + "length", "length_units", "resolution", "resolution_units", "point", + "vec2", "vec3", "length_pair", "length_triple", "color", "name", + "optional_name", "empty", 0 +}; +#endif + +/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ +static const short yyr1[] = +{ + 0, 52, 53, 53, 53, 55, 54, 54, 56, 56, + 57, 57, 57, 57, 57, 57, 57, 58, 57, 59, + 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, + 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, + 59, 59, 59, 60, 60, 61, 61, 62, 62, 62, + 62, 62, 63, 63, 63, 63, 64, 65, 66, 66, + 66, 66, 67, 67, 68, 68, 69, 70, 71, 71, + 71, 71, 72, 73, 73, 74 +}; + +/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ +static const short yyr2[] = +{ + 0, 1, 1, 2, 5, 0, 3, 2, 3, 1, + 2, 2, 2, 2, 2, 2, 2, 0, 3, 1, + 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, + 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 1, 1, 1, 3, 1, 4, 2, 1, 1, + 2, 1, 1, 1, 1, 1, 2, 3, 4, 5, + 5, 7, 4, 5, 5, 7, 5, 7, 5, 7, + 6, 9, 1, 1, 1, 0 +}; + +/* YYDEFACT[S] -- default rule to reduce with in state S when YYTABLE + doesn't specify something else to do. Zero means the default is an + error. */ +static const short yydefact[] = +{ + 75, 1, 2, 42, 0, 75, 75, 75, 75, 19, + 20, 21, 22, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 41, 75, 75, 0, 17, 3, 5, 0, 72, + 10, 73, 11, 74, 12, 13, 14, 51, 48, 49, + 23, 24, 25, 0, 26, 27, 28, 0, 0, 0, + 31, 0, 32, 33, 34, 0, 35, 0, 36, 0, + 37, 38, 39, 40, 15, 16, 75, 0, 0, 7, + 52, 54, 55, 53, 47, 50, 0, 56, 0, 29, + 30, 0, 0, 0, 0, 0, 0, 45, 43, 18, + 75, 9, 6, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 4, 0, 0, 0, 57, 0, 0, + 62, 0, 0, 0, 0, 0, 0, 0, 0, 44, + 8, 0, 58, 0, 63, 66, 0, 68, 0, 64, + 0, 0, 46, 60, 0, 59, 70, 0, 0, 0, + 0, 0, 69, 65, 67, 61, 0, 71, 0, 0, + 0 +}; + +static const short yydefgoto[] = +{ + 158, 1, 36, 78, 102, 37, 77, 38, 99, 96, + 50, 84, 54, 87, 89, 60, 68, 62, 70, 66, + 40, 42, 43 +}; + +static const short yypact[] = +{ + -32768, 145,-32768,-32768, 20, 23, 23, 23, 23,-32768, + -32768,-32768,-32768, 13, 27, 28, 32, 29, 33, 20, + 36, -8, -7, -7, -8, -5, -4, -3, 13, -8, + -7,-32768, 23, 23, 11,-32768,-32768,-32768, 10,-32768, + -32768,-32768,-32768,-32768,-32768,-32768,-32768, -20, 43,-32768, + -32768,-32768,-32768, 14,-32768,-32768,-32768, 9, -5, 46, + -32768, 13,-32768,-32768,-32768, 57,-32768, 58,-32768, 13, + -32768,-32768,-32768,-32768,-32768,-32768,-32768, 56, -13,-32768, + -32768,-32768,-32768,-32768,-32768,-32768, 15,-32768, 60,-32768, + -32768, 3, 17, 4, 6, 18, -2,-32768,-32768, 19, + -32768,-32768,-32768, -20, 7, 21, 65, 13, 66, 67, + 68, 70, 13,-32768, 9, 69, 106,-32768, -1, 71, + -32768, 25, 30, 2, 34, 35, 37, 39, 31,-32768, + -32768, 38,-32768, -24,-32768,-32768, 40,-32768, 80,-32768, + 85, 13,-32768,-32768, 87,-32768,-32768, -23, 41, 42, + 44, 91,-32768,-32768,-32768,-32768, 45,-32768, 97, 98, + -32768 +}; + +static const short yypgoto[] = +{ + -32768, 0,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, + -28, 8,-32768,-32768, -12, -10,-32768, -15,-32768, 47, + -16, 5, 1 +}; + + +#define YYLAST 184 + + +static const short yytable[] = +{ + 71, 2, 131, 57, 39, 136, 105, 108, 63, 110, + 118, 44, 45, 46, 64, 73, 47, 48, 49, 72, + 80, 81, 82, 83, 144, 151, 39, 145, 152, 41, + 51, 52, 100, 92, 101, 53, 55, 74, 75, 58, + 56, 95, 59, 61, 113, 65, 67, 69, 85, 91, + 132, 106, 109, 137, 111, 119, 76, 79, 86, 88, + 93, 94, 98, 104, 103, 107, 112, 115, 121, 123, + 124, 125, 120, 126, 133, 129, 134, 97, 142, 122, + 114, 135, 138, 147, 127, 140, 139, 141, 148, 143, + 150, 146, 153, 154, 156, 155, 157, 159, 160, 0, + 116, 2, 128, 0, 0, 90, 0, 0, 0, 0, + 0, 117, 3, 149, 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, 0, 0, 0, 0, + 0, 3, 130, 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 +}; + +static const short yycheck[] = +{ + 28, 0, 3, 19, 6, 3, 3, 3, 23, 3, + 3, 6, 7, 8, 24, 30, 3, 4, 5, 29, + 40, 41, 42, 43, 48, 48, 6, 51, 51, 6, + 3, 3, 45, 61, 47, 3, 7, 32, 33, 3, + 7, 69, 50, 50, 46, 50, 50, 50, 5, 3, + 51, 48, 48, 51, 48, 48, 45, 47, 44, 50, + 3, 3, 6, 3, 49, 48, 48, 48, 3, 3, + 3, 3, 51, 3, 3, 6, 51, 76, 47, 107, + 96, 51, 48, 3, 112, 48, 51, 48, 3, 51, + 3, 51, 51, 51, 3, 51, 51, 0, 0, -1, + 100, 100, 114, -1, -1, 58, -1, -1, -1, -1, + -1, 103, 6, 141, 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, -1, -1, -1, -1, + -1, 6, 46, 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 +}; +/* -*-C-*- Note some compilers choke on comments on `#line' lines. */ +#line 3 "/usr/share/bison/bison.simple" + +/* Skeleton output parser for bison, + + Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 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., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. */ + +/* As a special exception, when this file is copied by Bison into a + Bison output file, you may use that output file without restriction. + This special exception was added by the Free Software Foundation + in version 1.24 of Bison. */ + +/* This is the parser code that is written into each bison parser when + the %semantic_parser declaration is not specified in the grammar. + It was written by Richard Stallman by simplifying the hairy parser + used when %semantic_parser is specified. */ + +/* 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. */ + +#if ! defined (yyoverflow) || defined (YYERROR_VERBOSE) + +/* The parser invokes alloca or malloc; define the necessary symbols. */ + +# if YYSTACK_USE_ALLOCA +# define YYSTACK_ALLOC alloca +# else +# ifndef YYSTACK_USE_ALLOCA +# if defined (alloca) || defined (_ALLOCA_H) +# define YYSTACK_ALLOC alloca +# else +# ifdef __GNUC__ +# define YYSTACK_ALLOC __builtin_alloca +# endif +# endif +# endif +# endif + +# ifdef YYSTACK_ALLOC + /* Pacify GCC's `empty if-body' warning. */ +# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0) +# else +# if defined (__STDC__) || defined (__cplusplus) +# include /* INFRINGES ON USER NAME SPACE */ +# define YYSIZE_T size_t +# endif +# define YYSTACK_ALLOC malloc +# define YYSTACK_FREE free +# endif +#endif /* ! defined (yyoverflow) || defined (YYERROR_VERBOSE) */ + + +#if (! defined (yyoverflow) \ + && (! defined (__cplusplus) \ + || (YYLTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) + +/* A type that is properly aligned for any stack member. */ +union yyalloc +{ + short yyss; + YYSTYPE yyvs; +# if YYLSP_NEEDED + YYLTYPE yyls; +# endif +}; + +/* The size of the maximum gap between one aligned stack and the next. */ +# define YYSTACK_GAP_MAX (sizeof (union yyalloc) - 1) + +/* The size of an array large to enough to hold all stacks, each with + N elements. */ +# if YYLSP_NEEDED +# define YYSTACK_BYTES(N) \ + ((N) * (sizeof (short) + sizeof (YYSTYPE) + sizeof (YYLTYPE)) \ + + 2 * YYSTACK_GAP_MAX) +# else +# define YYSTACK_BYTES(N) \ + ((N) * (sizeof (short) + sizeof (YYSTYPE)) \ + + YYSTACK_GAP_MAX) +# endif + +/* Copy COUNT objects from FROM to TO. The source and destination do + not overlap. */ +# ifndef YYCOPY +# if 1 < __GNUC__ +# define YYCOPY(To, From, Count) \ + __builtin_memcpy (To, From, (Count) * sizeof (*(From))) +# else +# define YYCOPY(To, From, Count) \ + do \ + { \ + register YYSIZE_T yyi; \ + for (yyi = 0; yyi < (Count); yyi++) \ + (To)[yyi] = (From)[yyi]; \ + } \ + while (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_MAX; \ + yyptr += yynewbytes / sizeof (*yyptr); \ + } \ + while (0) + +#endif + + +#if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__) +# define YYSIZE_T __SIZE_TYPE__ +#endif +#if ! defined (YYSIZE_T) && defined (size_t) +# define YYSIZE_T size_t +#endif +#if ! defined (YYSIZE_T) +# if defined (__STDC__) || defined (__cplusplus) +# include /* INFRINGES ON USER NAME SPACE */ +# define YYSIZE_T size_t +# endif +#endif +#if ! defined (YYSIZE_T) +# define YYSIZE_T unsigned int +#endif + +#define yyerrok (yyerrstatus = 0) +#define yyclearin (yychar = YYEMPTY) +#define YYEMPTY -2 +#define YYEOF 0 +#define YYACCEPT goto yyacceptlab +#define YYABORT goto yyabortlab +#define YYERROR goto yyerrlab1 +/* 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); \ + yychar1 = YYTRANSLATE (yychar); \ + YYPOPSTACK; \ + goto yybackup; \ + } \ + else \ + { \ + yyerror ("syntax error: cannot back up"); \ + YYERROR; \ + } \ +while (0) + +#define YYTERROR 1 +#define YYERRCODE 256 + + +/* YYLLOC_DEFAULT -- Compute the default location (before the actions + are run). + + When YYLLOC_DEFAULT is run, CURRENT is set the location of the + first token. By default, to implement support for ranges, extend + its range to the last symbol. */ + +#ifndef YYLLOC_DEFAULT +# define YYLLOC_DEFAULT(Current, Rhs, N) \ + Current.last_line = Rhs[N].last_line; \ + Current.last_column = Rhs[N].last_column; +#endif + + +/* YYLEX -- calling `yylex' with the right arguments. */ + +#if YYPURE +# if YYLSP_NEEDED +# ifdef YYLEX_PARAM +# define YYLEX yylex (&yylval, &yylloc, YYLEX_PARAM) +# else +# define YYLEX yylex (&yylval, &yylloc) +# endif +# else /* !YYLSP_NEEDED */ +# ifdef YYLEX_PARAM +# define YYLEX yylex (&yylval, YYLEX_PARAM) +# else +# define YYLEX yylex (&yylval) +# endif +# endif /* !YYLSP_NEEDED */ +#else /* !YYPURE */ +# define YYLEX yylex () +#endif /* !YYPURE */ + + +/* Enable debugging if requested. */ +#if YYDEBUG + +# ifndef YYFPRINTF +# include /* INFRINGES ON USER NAME SPACE */ +# define YYFPRINTF fprintf +# endif + +# define YYDPRINTF(Args) \ +do { \ + if (yydebug) \ + YYFPRINTF Args; \ +} while (0) +/* Nonzero means print parse trace. It is left uninitialized so that + multiple parsers can coexist. */ +int yydebug; +#else /* !YYDEBUG */ +# define YYDPRINTF(Args) +#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 + SIZE_MAX < YYSTACK_BYTES (YYMAXDEPTH) + evaluated with infinite-precision integer arithmetic. */ + +#if YYMAXDEPTH == 0 +# undef YYMAXDEPTH +#endif + +#ifndef YYMAXDEPTH +# define YYMAXDEPTH 10000 +#endif + +#ifdef YYERROR_VERBOSE + +# ifndef yystrlen +# if defined (__GLIBC__) && defined (_STRING_H) +# define yystrlen strlen +# else +/* Return the length of YYSTR. */ +static YYSIZE_T +# if defined (__STDC__) || defined (__cplusplus) +yystrlen (const char *yystr) +# else +yystrlen (yystr) + const char *yystr; +# endif +{ + register const char *yys = yystr; + + while (*yys++ != '\0') + continue; + + return yys - yystr - 1; +} +# 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. */ +static char * +# if defined (__STDC__) || defined (__cplusplus) +yystpcpy (char *yydest, const char *yysrc) +# else +yystpcpy (yydest, yysrc) + char *yydest; + const char *yysrc; +# endif +{ + register char *yyd = yydest; + register const char *yys = yysrc; + + while ((*yyd++ = *yys++) != '\0') + continue; + + return yyd - 1; +} +# endif +# endif +#endif + +#line 315 "/usr/share/bison/bison.simple" + + +/* The user can define YYPARSE_PARAM as the name of an argument to be passed + into yyparse. The argument should have type void *. + It should actually point to an object. + Grammar actions can access the variable by casting it + to the proper pointer type. */ + +#ifdef YYPARSE_PARAM +# if defined (__STDC__) || defined (__cplusplus) +# define YYPARSE_PARAM_ARG void *YYPARSE_PARAM +# define YYPARSE_PARAM_DECL +# else +# define YYPARSE_PARAM_ARG YYPARSE_PARAM +# define YYPARSE_PARAM_DECL void *YYPARSE_PARAM; +# endif +#else /* !YYPARSE_PARAM */ +# define YYPARSE_PARAM_ARG +# define YYPARSE_PARAM_DECL +#endif /* !YYPARSE_PARAM */ + +/* Prevent warning if -Wstrict-prototypes. */ +#ifdef __GNUC__ +# ifdef YYPARSE_PARAM +int yyparse (void *); +# else +int yyparse (void); +# endif +#endif + +/* YY_DECL_VARIABLES -- depending whether we use a pure parser, + variables are global, or local to YYPARSE. */ + +#define YY_DECL_NON_LSP_VARIABLES \ +/* The lookahead symbol. */ \ +int yychar; \ + \ +/* The semantic value of the lookahead symbol. */ \ +YYSTYPE yylval; \ + \ +/* Number of parse errors so far. */ \ +int yynerrs; + +#if YYLSP_NEEDED +# define YY_DECL_VARIABLES \ +YY_DECL_NON_LSP_VARIABLES \ + \ +/* Location data for the lookahead symbol. */ \ +YYLTYPE yylloc; +#else +# define YY_DECL_VARIABLES \ +YY_DECL_NON_LSP_VARIABLES +#endif + + +/* If nonreentrant, generate the variables here. */ + +#if !YYPURE +YY_DECL_VARIABLES +#endif /* !YYPURE */ + +int +yyparse (YYPARSE_PARAM_ARG) + YYPARSE_PARAM_DECL +{ + /* If reentrant, generate the variables here. */ +#if YYPURE + YY_DECL_VARIABLES +#endif /* !YYPURE */ + + register int yystate; + register int yyn; + int yyresult; + /* Number of tokens to shift before error messages enabled. */ + int yyerrstatus; + /* Lookahead token as an internal (translated) token number. */ + int yychar1 = 0; + + /* 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. */ + short yyssa[YYINITDEPTH]; + short *yyss = yyssa; + register short *yyssp; + + /* The semantic value stack. */ + YYSTYPE yyvsa[YYINITDEPTH]; + YYSTYPE *yyvs = yyvsa; + register YYSTYPE *yyvsp; + +#if YYLSP_NEEDED + /* The location stack. */ + YYLTYPE yylsa[YYINITDEPTH]; + YYLTYPE *yyls = yylsa; + YYLTYPE *yylsp; +#endif + +#if YYLSP_NEEDED +# define YYPOPSTACK (yyvsp--, yyssp--, yylsp--) +#else +# define YYPOPSTACK (yyvsp--, yyssp--) +#endif + + YYSIZE_T yystacksize = YYINITDEPTH; + + + /* The variables used to return semantic value and location from the + action routines. */ + YYSTYPE yyval; +#if YYLSP_NEEDED + YYLTYPE yyloc; +#endif + + /* When reducing, the number of symbols on the RHS of the reduced + rule. */ + int yylen; + + 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; +#if YYLSP_NEEDED + yylsp = yyls; +#endif + 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 (yyssp >= yyss + yystacksize - 1) + { + /* 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; + short *yyss1 = yyss; + + /* Each stack pointer address is followed by the size of the + data in use in that stack, in bytes. */ +# if YYLSP_NEEDED + YYLTYPE *yyls1 = yyls; + /* This used to be a conditional around just the two extra args, + but that might be undefined if yyoverflow is a macro. */ + yyoverflow ("parser stack overflow", + &yyss1, yysize * sizeof (*yyssp), + &yyvs1, yysize * sizeof (*yyvsp), + &yyls1, yysize * sizeof (*yylsp), + &yystacksize); + yyls = yyls1; +# else + yyoverflow ("parser stack overflow", + &yyss1, yysize * sizeof (*yyssp), + &yyvs1, yysize * sizeof (*yyvsp), + &yystacksize); +# endif + yyss = yyss1; + yyvs = yyvs1; + } +#else /* no yyoverflow */ +# ifndef YYSTACK_RELOCATE + goto yyoverflowlab; +# else + /* Extend the stack our own way. */ + if (yystacksize >= YYMAXDEPTH) + goto yyoverflowlab; + yystacksize *= 2; + if (yystacksize > YYMAXDEPTH) + yystacksize = YYMAXDEPTH; + + { + short *yyss1 = yyss; + union yyalloc *yyptr = + (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); + if (! yyptr) + goto yyoverflowlab; + YYSTACK_RELOCATE (yyss); + YYSTACK_RELOCATE (yyvs); +# if YYLSP_NEEDED + YYSTACK_RELOCATE (yyls); +# endif +# undef YYSTACK_RELOCATE + if (yyss1 != yyssa) + YYSTACK_FREE (yyss1); + } +# endif +#endif /* no yyoverflow */ + + yyssp = yyss + yysize - 1; + yyvsp = yyvs + yysize - 1; +#if YYLSP_NEEDED + yylsp = yyls + yysize - 1; +#endif + + YYDPRINTF ((stderr, "Stack size increased to %lu\n", + (unsigned long int) yystacksize)); + + if (yyssp >= yyss + yystacksize - 1) + YYABORT; + } + + YYDPRINTF ((stderr, "Entering state %d\n", yystate)); + + goto yybackup; + + +/*-----------. +| yybackup. | +`-----------*/ +yybackup: + +/* Do appropriate processing given the current state. */ +/* Read a lookahead token if we need one and don't already have one. */ +/* yyresume: */ + + /* First try to decide what to do without reference to lookahead token. */ + + yyn = yypact[yystate]; + if (yyn == YYFLAG) + goto yydefault; + + /* Not known => get a lookahead token if don't already have one. */ + + /* yychar is either YYEMPTY or YYEOF + or a valid token in external form. */ + + if (yychar == YYEMPTY) + { + YYDPRINTF ((stderr, "Reading a token: ")); + yychar = YYLEX; + } + + /* Convert token to internal form (in yychar1) for indexing tables with */ + + if (yychar <= 0) /* This means end of input. */ + { + yychar1 = 0; + yychar = YYEOF; /* Don't call YYLEX any more */ + + YYDPRINTF ((stderr, "Now at end of input.\n")); + } + else + { + yychar1 = YYTRANSLATE (yychar); + +#if YYDEBUG + /* We have to keep this `#if YYDEBUG', since we use variables + which are defined only if `YYDEBUG' is set. */ + if (yydebug) + { + YYFPRINTF (stderr, "Next token is %d (%s", + yychar, yytname[yychar1]); + /* Give the individual parser a way to print the precise + meaning of a token, for further debugging info. */ +# ifdef YYPRINT + YYPRINT (stderr, yychar, yylval); +# endif + YYFPRINTF (stderr, ")\n"); + } +#endif + } + + yyn += yychar1; + if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != yychar1) + goto yydefault; + + yyn = yytable[yyn]; + + /* yyn is what to do for this token type in this state. + Negative => reduce, -yyn is rule number. + Positive => shift, yyn is new state. + New state is final state => don't bother to shift, + just return success. + 0, or most negative number => error. */ + + if (yyn < 0) + { + if (yyn == YYFLAG) + goto yyerrlab; + yyn = -yyn; + goto yyreduce; + } + else if (yyn == 0) + goto yyerrlab; + + if (yyn == YYFINAL) + YYACCEPT; + + /* Shift the lookahead token. */ + YYDPRINTF ((stderr, "Shifting token %d (%s), ", + yychar, yytname[yychar1])); + + /* Discard the token being shifted unless it is eof. */ + if (yychar != YYEOF) + yychar = YYEMPTY; + + *++yyvsp = yylval; +#if YYLSP_NEEDED + *++yylsp = yylloc; +#endif + + /* Count tokens shifted since error; after three, turn off error + status. */ + if (yyerrstatus) + yyerrstatus--; + + yystate = yyn; + 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 the semantic value of + the lookahead token. 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]; + +#if YYLSP_NEEDED + /* Similarly for the default location. Let the user run additional + commands if for instance locations are ranges. */ + yyloc = yylsp[1-yylen]; + YYLLOC_DEFAULT (yyloc, (yylsp - yylen), yylen); +#endif + +#if YYDEBUG + /* We have to keep this `#if YYDEBUG', since we use variables which + are defined only if `YYDEBUG' is set. */ + if (yydebug) + { + int yyi; + + YYFPRINTF (stderr, "Reducing via rule %d (line %d), ", + yyn, yyrline[yyn]); + + /* Print the symbols being reduced, and their result. */ + for (yyi = yyprhs[yyn]; yyrhs[yyi] > 0; yyi++) + YYFPRINTF (stderr, "%s ", yytname[yyrhs[yyi]]); + YYFPRINTF (stderr, " -> %s\n", yytname[yyr1[yyn]]); + } +#endif + + switch (yyn) { + +case 3: +#line 99 "stitchParser.yxx" +{ + // parent->add_nested($2); +} + break; +case 5: +#line 107 "stitchParser.yxx" +{ + parent = yyvsp[0].command; + cstack.push_back(parent); +} + break; +case 6: +#line 112 "stitchParser.yxx" +{ + cstack.pop_back(); + parent = cstack.back(); +} + break; +case 7: +#line 117 "stitchParser.yxx" +{ + yyval.command = yyvsp[-1].command; +} + break; +case 10: +#line 129 "stitchParser.yxx" +{ + yyval.command = new StitchCommand(parent, StitchCommand::C_define); + yyval.command->set_name(yyvsp[0].str); +} + break; +case 11: +#line 134 "stitchParser.yxx" +{ + yyval.command = new StitchCommand(parent, StitchCommand::C_lens); + yyval.command->set_name(yyvsp[0].str); +} + break; +case 12: +#line 139 "stitchParser.yxx" +{ + yyval.command = new StitchCommand(parent, StitchCommand::C_input_image); + yyval.command->set_name(yyvsp[0].str); +} + break; +case 13: +#line 144 "stitchParser.yxx" +{ + yyval.command = new StitchCommand(parent, StitchCommand::C_output_image); + yyval.command->set_name(yyvsp[0].str); +} + break; +case 14: +#line 149 "stitchParser.yxx" +{ + yyval.command = new StitchCommand(parent, StitchCommand::C_eyepoint); + yyval.command->set_name(yyvsp[0].str); +} + break; +case 15: +#line 154 "stitchParser.yxx" +{ + yyval.command = new StitchCommand(parent, StitchCommand::C_stitch); + yyval.command->set_name(yyvsp[0].str); +} + break; +case 16: +#line 159 "stitchParser.yxx" +{ + yyval.command = new StitchCommand(parent, StitchCommand::C_screen); + yyval.command->set_name(yyvsp[0].str); +} + break; +case 17: +#line 164 "stitchParser.yxx" +{ + cstack.push_back(new StitchCommand(parent, StitchCommand::C_using)); +} + break; +case 18: +#line 168 "stitchParser.yxx" +{ + yyval.command = cstack.back(); + cstack.pop_back(); +} + break; +case 19: +#line 176 "stitchParser.yxx" +{ + yyval.command = new StitchCommand(parent, StitchCommand::C_perspective); +} + break; +case 20: +#line 180 "stitchParser.yxx" +{ + yyval.command = new StitchCommand(parent, StitchCommand::C_fisheye); +} + break; +case 21: +#line 184 "stitchParser.yxx" +{ + yyval.command = new StitchCommand(parent, StitchCommand::C_cylindrical); +} + break; +case 22: +#line 188 "stitchParser.yxx" +{ + yyval.command = new StitchCommand(parent, StitchCommand::C_psphere); +} + break; +case 23: +#line 192 "stitchParser.yxx" +{ + yyval.command = new StitchCommand(parent, StitchCommand::C_focal_length); + yyval.command->set_length(yyvsp[0].number); +} + break; +case 24: +#line 197 "stitchParser.yxx" +{ + yyval.command = new StitchCommand(parent, StitchCommand::C_fov); + yyval.command->set_number(yyvsp[0].number); +} + break; +case 25: +#line 202 "stitchParser.yxx" +{ + yyval.command = new StitchCommand(parent, StitchCommand::C_singularity_tolerance); + yyval.command->set_number(yyvsp[0].number); +} + break; +case 26: +#line 207 "stitchParser.yxx" +{ + yyval.command = new StitchCommand(parent, StitchCommand::C_resolution); + yyval.command->set_resolution(yyvsp[0].number); +} + break; +case 27: +#line 212 "stitchParser.yxx" +{ + yyval.command = new StitchCommand(parent, StitchCommand::C_filename); + yyval.command->set_str(yyvsp[0].str); +} + break; +case 28: +#line 217 "stitchParser.yxx" +{ + yyval.command = new StitchCommand(parent, StitchCommand::C_fade); + yyval.command->set_str(yyvsp[0].str); +} + break; +case 29: +#line 222 "stitchParser.yxx" +{ + if (yyvsp[0].num_components == 2) { + yyval.command = new StitchCommand(parent, StitchCommand::C_point2d); + yyval.command->set_point2d((const LPoint2d &)yyvsp[0].vec); + } else { + yyval.command = new StitchCommand(parent, StitchCommand::C_point3d); + yyval.command->set_point3d((const LPoint3d &)yyvsp[0].vec); + } + yyval.command->set_name(yyvsp[-1].str); +} + break; +case 30: +#line 233 "stitchParser.yxx" +{ + yyval.command = new StitchCommand(parent, StitchCommand::C_show_points); + yyval.command->set_number(yyvsp[-1].number); + yyval.command->set_color(yyvsp[0].vec); +} + break; +case 31: +#line 239 "stitchParser.yxx" +{ + yyval.command = new StitchCommand(parent, StitchCommand::C_image_size); + yyval.command->set_point2d((const LPoint2d &)yyvsp[0].vec); +} + break; +case 32: +#line 244 "stitchParser.yxx" +{ + yyval.command = new StitchCommand(parent, StitchCommand::C_film_size); + yyval.command->set_length_pair((const LPoint2d &)yyvsp[0].vec); +} + break; +case 33: +#line 249 "stitchParser.yxx" +{ + yyval.command = new StitchCommand(parent, StitchCommand::C_film_offset); + yyval.command->set_length_pair((const LPoint2d &)yyvsp[0].vec); +} + break; +case 34: +#line 254 "stitchParser.yxx" +{ + yyval.command = new StitchCommand(parent, StitchCommand::C_grid); + yyval.command->set_point2d((const LPoint2d &)yyvsp[0].vec); +} + break; +case 35: +#line 259 "stitchParser.yxx" +{ + yyval.command = new StitchCommand(parent, StitchCommand::C_untextured_color); + yyval.command->set_color((const Colord &)yyvsp[0].vec); +} + break; +case 36: +#line 264 "stitchParser.yxx" +{ + yyval.command = new StitchCommand(parent, StitchCommand::C_hpr); + yyval.command->set_point3d((const LPoint3d &)yyvsp[0].vec); +} + break; +case 37: +#line 269 "stitchParser.yxx" +{ + yyval.command = new StitchCommand(parent, StitchCommand::C_pos); + yyval.command->set_point3d((const LPoint3d &)yyvsp[0].vec); +} + break; +case 38: +#line 274 "stitchParser.yxx" +{ + yyval.command = new StitchCommand(parent, StitchCommand::C_radius); + yyval.command->set_number(yyvsp[0].number); +} + break; +case 39: +#line 279 "stitchParser.yxx" +{ + yyval.command = new StitchCommand(parent, StitchCommand::C_angle); + yyval.command->set_point2d((const LPoint2d &)yyvsp[0].vec); +} + break; +case 40: +#line 284 "stitchParser.yxx" +{ + yyval.command = new StitchCommand(parent, StitchCommand::C_height); + yyval.command->set_point2d((const LPoint2d &)yyvsp[0].vec); +} + break; +case 41: +#line 289 "stitchParser.yxx" +{ + yyval.command = new StitchCommand(parent, StitchCommand::C_layers); +} + break; +case 42: +#line 293 "stitchParser.yxx" +{ + yyval.command = new StitchCommand(parent, StitchCommand::C_user_command); + if (!yyval.command->add_using(yyvsp[0].str)) { + yyerror("Undefined identifier " + yyvsp[0].str); + } +} + break; +case 43: +#line 303 "stitchParser.yxx" +{ + if (!cstack.back()->add_using(yyvsp[0].str)) { + yyerror("Undefined identifier " + yyvsp[0].str); + } +} + break; +case 44: +#line 309 "stitchParser.yxx" +{ + if (!cstack.back()->add_using(yyvsp[0].str)) { + yyerror("Undefined identifier " + yyvsp[0].str); + } +} + break; +case 46: +#line 319 "stitchParser.yxx" +{ + StitchCommand *cmd; + if (yyvsp[-1].num_components == 2) { + cmd = new StitchCommand(parent, StitchCommand::C_point2d); + cmd->set_point2d((const LPoint2d &)yyvsp[-1].vec); + } else { + cmd = new StitchCommand(parent, StitchCommand::C_point3d); + cmd->set_point3d((const LPoint3d &)yyvsp[-1].vec); + } + cmd->set_name(yyvsp[-2].str); + // parent->add_nested(cmd); +} + break; +case 47: +#line 336 "stitchParser.yxx" +{ + yyval.number = yyvsp[-1].number * yyvsp[0].number; +} + break; +case 48: +#line 340 "stitchParser.yxx" +{ + yyval.number = yyvsp[0].number * 304.8; // ft to mm +} + break; +case 49: +#line 344 "stitchParser.yxx" +{ + yyval.number = yyvsp[0].number * 25.4; // in to mm +} + break; +case 50: +#line 348 "stitchParser.yxx" +{ + if (yyvsp[-1].number < 0.0) { + yyval.number = yyvsp[-1].number * 304.8 - yyvsp[0].number * 25.4; + } else { + yyval.number = yyvsp[-1].number * 304.8 + yyvsp[0].number * 25.4; + } +} + break; +case 51: +#line 356 "stitchParser.yxx" +{ + yyval.number = yyvsp[0].number; // implicitly mm +} + break; +case 52: +#line 364 "stitchParser.yxx" +{ + yyval.number = 25.4; // in to mm +} + break; +case 53: +#line 368 "stitchParser.yxx" +{ + yyval.number = 10.0; // cm to mm +} + break; +case 54: +#line 372 "stitchParser.yxx" +{ + yyval.number = 1.0; +} + break; +case 55: +#line 376 "stitchParser.yxx" +{ + yyval.number = 304.8; // ft to mm +} + break; +case 56: +#line 384 "stitchParser.yxx" +{ + yyval.number = yyvsp[-1].number * yyvsp[0].number; // convert to pixels per mm +} + break; +case 57: +#line 391 "stitchParser.yxx" +{ + yyval.number = 1.0 / yyvsp[0].number; +} + break; +case 58: +#line 398 "stitchParser.yxx" +{ + yyval.vec.set(yyvsp[-2].number, yyvsp[-1].number, 0.0, 0.0); + yyval.num_components = 2; +} + break; +case 59: +#line 403 "stitchParser.yxx" +{ + yyval.vec.set(yyvsp[-3].number, yyvsp[-1].number, 0.0, 0.0); + yyval.num_components = 2; +} + break; +case 60: +#line 408 "stitchParser.yxx" +{ + yyval.vec.set(yyvsp[-3].number, yyvsp[-2].number, yyvsp[-1].number, 0.0); + yyval.num_components = 3; +} + break; +case 61: +#line 413 "stitchParser.yxx" +{ + yyval.vec.set(yyvsp[-5].number, yyvsp[-3].number, yyvsp[-1].number, 0.0); + yyval.num_components = 3; +} + break; +case 62: +#line 421 "stitchParser.yxx" +{ + yyval.vec.set(yyvsp[-2].number, yyvsp[-1].number, 0.0, 0.0); + yyval.num_components = 2; +} + break; +case 63: +#line 426 "stitchParser.yxx" +{ + yyval.vec.set(yyvsp[-3].number, yyvsp[-1].number, 0.0, 0.0); + yyval.num_components = 2; +} + break; +case 64: +#line 433 "stitchParser.yxx" +{ + yyval.vec.set(yyvsp[-3].number, yyvsp[-2].number, yyvsp[-1].number, 0.0); + yyval.num_components = 3; +} + break; +case 65: +#line 438 "stitchParser.yxx" +{ + yyval.vec.set(yyvsp[-5].number, yyvsp[-3].number, yyvsp[-1].number, 0.0); + yyval.num_components = 3; +} + break; +case 66: +#line 446 "stitchParser.yxx" +{ + yyval.vec.set(yyvsp[-3].number, yyvsp[-1].number, 0.0, 0.0); + yyval.num_components = 2; +} + break; +case 67: +#line 454 "stitchParser.yxx" +{ + yyval.vec.set(yyvsp[-5].number, yyvsp[-3].number, yyvsp[-1].number, 0.0); + yyval.num_components = 3; +} + break; +case 68: +#line 462 "stitchParser.yxx" +{ + yyval.vec.set(yyvsp[-3].number, yyvsp[-2].number, yyvsp[-1].number, 1.0); + yyval.num_components = 3; +} + break; +case 69: +#line 467 "stitchParser.yxx" +{ + yyval.vec.set(yyvsp[-5].number, yyvsp[-3].number, yyvsp[-1].number, 1.0); + yyval.num_components = 3; +} + break; +case 70: +#line 472 "stitchParser.yxx" +{ + yyval.vec.set(yyvsp[-4].number, yyvsp[-3].number, yyvsp[-2].number, yyvsp[-1].number); + yyval.num_components = 4; +} + break; +case 71: +#line 477 "stitchParser.yxx" +{ + yyval.vec.set(yyvsp[-7].number, yyvsp[-5].number, yyvsp[-3].number, yyvsp[-1].number); + yyval.num_components = 4; +} + break; +case 74: +#line 490 "stitchParser.yxx" +{ + yyval.str = ""; +} + break; +} + +#line 705 "/usr/share/bison/bison.simple" + + + yyvsp -= yylen; + yyssp -= yylen; +#if YYLSP_NEEDED + yylsp -= yylen; +#endif + +#if YYDEBUG + if (yydebug) + { + short *yyssp1 = yyss - 1; + YYFPRINTF (stderr, "state stack now"); + while (yyssp1 != yyssp) + YYFPRINTF (stderr, " %d", *++yyssp1); + YYFPRINTF (stderr, "\n"); + } +#endif + + *++yyvsp = yyval; +#if YYLSP_NEEDED + *++yylsp = yyloc; +#endif + + /* 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 - YYNTBASE] + *yyssp; + if (yystate >= 0 && yystate <= YYLAST && yycheck[yystate] == *yyssp) + yystate = yytable[yystate]; + else + yystate = yydefgoto[yyn - YYNTBASE]; + + goto yynewstate; + + +/*------------------------------------. +| yyerrlab -- here on detecting error | +`------------------------------------*/ +yyerrlab: + /* If not already recovering from an error, report this error. */ + if (!yyerrstatus) + { + ++yynerrs; + +#ifdef YYERROR_VERBOSE + yyn = yypact[yystate]; + + if (yyn > YYFLAG && yyn < YYLAST) + { + YYSIZE_T yysize = 0; + char *yymsg; + int yyx, yycount; + + yycount = 0; + /* Start YYX at -YYN if negative to avoid negative indexes in + YYCHECK. */ + for (yyx = yyn < 0 ? -yyn : 0; + yyx < (int) (sizeof (yytname) / sizeof (char *)); yyx++) + if (yycheck[yyx + yyn] == yyx) + yysize += yystrlen (yytname[yyx]) + 15, yycount++; + yysize += yystrlen ("parse error, unexpected ") + 1; + yysize += yystrlen (yytname[YYTRANSLATE (yychar)]); + yymsg = (char *) YYSTACK_ALLOC (yysize); + if (yymsg != 0) + { + char *yyp = yystpcpy (yymsg, "parse error, unexpected "); + yyp = yystpcpy (yyp, yytname[YYTRANSLATE (yychar)]); + + if (yycount < 5) + { + yycount = 0; + for (yyx = yyn < 0 ? -yyn : 0; + yyx < (int) (sizeof (yytname) / sizeof (char *)); + yyx++) + if (yycheck[yyx + yyn] == yyx) + { + const char *yyq = ! yycount ? ", expecting " : " or "; + yyp = yystpcpy (yyp, yyq); + yyp = yystpcpy (yyp, yytname[yyx]); + yycount++; + } + } + yyerror (yymsg); + YYSTACK_FREE (yymsg); + } + else + yyerror ("parse error; also virtual memory exhausted"); + } + else +#endif /* defined (YYERROR_VERBOSE) */ + yyerror ("parse error"); + } + goto yyerrlab1; + + +/*--------------------------------------------------. +| yyerrlab1 -- error raised explicitly by an action | +`--------------------------------------------------*/ +yyerrlab1: + if (yyerrstatus == 3) + { + /* If just tried and failed to reuse lookahead token after an + error, discard it. */ + + /* return failure if at end of input */ + if (yychar == YYEOF) + YYABORT; + YYDPRINTF ((stderr, "Discarding token %d (%s).\n", + yychar, yytname[yychar1])); + yychar = YYEMPTY; + } + + /* Else will try to reuse lookahead token after shifting the error + token. */ + + yyerrstatus = 3; /* Each real token shifted decrements this */ + + goto yyerrhandle; + + +/*-------------------------------------------------------------------. +| yyerrdefault -- current state does not do anything special for the | +| error token. | +`-------------------------------------------------------------------*/ +yyerrdefault: +#if 0 + /* This is wrong; only states that explicitly want error tokens + should shift them. */ + + /* If its default is to accept any token, ok. Otherwise pop it. */ + yyn = yydefact[yystate]; + if (yyn) + goto yydefault; +#endif + + +/*---------------------------------------------------------------. +| yyerrpop -- pop the current state because it cannot handle the | +| error token | +`---------------------------------------------------------------*/ +yyerrpop: + if (yyssp == yyss) + YYABORT; + yyvsp--; + yystate = *--yyssp; +#if YYLSP_NEEDED + yylsp--; +#endif + +#if YYDEBUG + if (yydebug) + { + short *yyssp1 = yyss - 1; + YYFPRINTF (stderr, "Error: state stack now"); + while (yyssp1 != yyssp) + YYFPRINTF (stderr, " %d", *++yyssp1); + YYFPRINTF (stderr, "\n"); + } +#endif + +/*--------------. +| yyerrhandle. | +`--------------*/ +yyerrhandle: + yyn = yypact[yystate]; + if (yyn == YYFLAG) + goto yyerrdefault; + + yyn += YYTERROR; + if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != YYTERROR) + goto yyerrdefault; + + yyn = yytable[yyn]; + if (yyn < 0) + { + if (yyn == YYFLAG) + goto yyerrpop; + yyn = -yyn; + goto yyreduce; + } + else if (yyn == 0) + goto yyerrpop; + + if (yyn == YYFINAL) + YYACCEPT; + + YYDPRINTF ((stderr, "Shifting error token, ")); + + *++yyvsp = yylval; +#if YYLSP_NEEDED + *++yylsp = yylloc; +#endif + + yystate = yyn; + goto yynewstate; + + +/*-------------------------------------. +| yyacceptlab -- YYACCEPT comes here. | +`-------------------------------------*/ +yyacceptlab: + yyresult = 0; + goto yyreturn; + +/*-----------------------------------. +| yyabortlab -- YYABORT comes here. | +`-----------------------------------*/ +yyabortlab: + yyresult = 1; + goto yyreturn; + +/*---------------------------------------------. +| yyoverflowab -- parser overflow comes here. | +`---------------------------------------------*/ +yyoverflowlab: + yyerror ("parser stack overflow"); + yyresult = 2; + /* Fall through. */ + +yyreturn: +#ifndef yyoverflow + if (yyss != yyssa) + YYSTACK_FREE (yyss); +#endif + return yyresult; +} +#line 497 "stitchParser.yxx" diff --git a/pandaapp/src/stitchbase/stitchParser.h.prebuilt b/pandaapp/src/stitchbase/stitchParser.h.prebuilt new file mode 100644 index 0000000000..5d300f72ad --- /dev/null +++ b/pandaapp/src/stitchbase/stitchParser.h.prebuilt @@ -0,0 +1,50 @@ +#ifndef BISON_Y_TAB_H +# define BISON_Y_TAB_H + +# define NUMBER 257 +# define NUMBER_FEET 258 +# define NUMBER_INCHES 259 +# define IDENTIFIER 260 +# define STRING 261 +# define KW_DEFINE 262 +# define KW_LENS 263 +# define KW_INPUT_IMAGE 264 +# define KW_OUTPUT_IMAGE 265 +# define KW_EYEPOINT 266 +# define KW_PERSPECTIVE 267 +# define KW_FISHEYE 268 +# define KW_CYLINDRICAL 269 +# define KW_PSPHERE 270 +# define KW_FOCAL_LENGTH 271 +# define KW_FOV 272 +# define KW_SINGULARITY_TOLERANCE 273 +# define KW_RESOLUTION 274 +# define KW_FILENAME 275 +# define KW_FADE 276 +# define KW_POINT 277 +# define KW_SHOW_POINTS 278 +# define KW_IMAGE_SIZE 279 +# define KW_FILM_SIZE 280 +# define KW_FILM_OFFSET 281 +# define KW_GRID 282 +# define KW_UNTEXTURED_COLOR 283 +# define KW_HPR 284 +# define KW_POS 285 +# define KW_RADIUS 286 +# define KW_ANGLE 287 +# define KW_HEIGHT 288 +# define KW_LAYERS 289 +# define KW_STITCH 290 +# define KW_SCREEN 291 +# define KW_POINTS 292 +# define KW_USING 293 +# define KW_IN 294 +# define KW_MM 295 +# define KW_FT 296 +# define KW_CM 297 +# define KW_P 298 + + +extern YYSTYPE stitchyylval; + +#endif /* not BISON_Y_TAB_H */