Ruby  2.0.0p451(2014-02-24revision45167)
parse.c
Go to the documentation of this file.
00001 /* A Bison parser, made by GNU Bison 2.5.  */
00002 
00003 /* Bison implementation for Yacc-like parsers in C
00004    
00005       Copyright (C) 1984, 1989-1990, 2000-2011 Free Software Foundation, Inc.
00006    
00007    This program is free software: you can redistribute it and/or modify
00008    it under the terms of the GNU General Public License as published by
00009    the Free Software Foundation, either version 3 of the License, or
00010    (at your option) any later version.
00011    
00012    This program is distributed in the hope that it will be useful,
00013    but WITHOUT ANY WARRANTY; without even the implied warranty of
00014    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015    GNU General Public License for more details.
00016    
00017    You should have received a copy of the GNU General Public License
00018    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
00019 
00020 /* As a special exception, you may create a larger work that contains
00021    part or all of the Bison parser skeleton and distribute that work
00022    under terms of your choice, so long as that work isn't itself a
00023    parser generator using the skeleton or a modified version thereof
00024    as a parser skeleton.  Alternatively, if you modify or redistribute
00025    the parser skeleton itself, you may (at your option) remove this
00026    special exception, which will cause the skeleton and the resulting
00027    Bison output files to be licensed under the GNU General Public
00028    License without this special exception.
00029    
00030    This special exception was added by the Free Software Foundation in
00031    version 2.2 of Bison.  */
00032 
00033 /* C LALR(1) parser skeleton written by Richard Stallman, by
00034    simplifying the original so-called "semantic" parser.  */
00035 
00036 /* All symbols defined below should begin with yy or YY, to avoid
00037    infringing on user name space.  This should be done even for local
00038    variables, as they might otherwise be expanded by user macros.
00039    There are some unavoidable exceptions within include files to
00040    define necessary library symbols; they are noted "INFRINGES ON
00041    USER NAME SPACE" below.  */
00042 
00043 /* Identify Bison output.  */
00044 #define YYBISON 1
00045 
00046 /* Bison version.  */
00047 #define YYBISON_VERSION "2.5"
00048 
00049 /* Skeleton name.  */
00050 #define YYSKELETON_NAME "yacc.c"
00051 
00052 /* Pure parsers.  */
00053 #define YYPURE 1
00054 
00055 /* Push parsers.  */
00056 #define YYPUSH 0
00057 
00058 /* Pull parsers.  */
00059 #define YYPULL 1
00060 
00061 /* Using locations.  */
00062 #define YYLSP_NEEDED 0
00063 
00064 
00065 
00066 /* Copy the first part of user declarations.  */
00067 
00068 /* Line 268 of yacc.c  */
00069 #line 12 "parse.y"
00070 
00071 
00072 #ifndef PARSER_DEBUG
00073 #define PARSER_DEBUG 0
00074 #endif
00075 #define YYDEBUG 1
00076 #define YYERROR_VERBOSE 1
00077 #define YYSTACK_USE_ALLOCA 0
00078 
00079 #include "ruby/ruby.h"
00080 #include "ruby/st.h"
00081 #include "ruby/encoding.h"
00082 #include "internal.h"
00083 #include "node.h"
00084 #include "parse.h"
00085 #include "id.h"
00086 #include "regenc.h"
00087 #include <stdio.h>
00088 #include <errno.h>
00089 #include <ctype.h>
00090 #include "probes.h"
00091 
00092 #define numberof(array) (int)(sizeof(array) / sizeof((array)[0]))
00093 
00094 #define YYMALLOC(size)          rb_parser_malloc(parser, (size))
00095 #define YYREALLOC(ptr, size)    rb_parser_realloc(parser, (ptr), (size))
00096 #define YYCALLOC(nelem, size)   rb_parser_calloc(parser, (nelem), (size))
00097 #define YYFREE(ptr)             rb_parser_free(parser, (ptr))
00098 #define malloc  YYMALLOC
00099 #define realloc YYREALLOC
00100 #define calloc  YYCALLOC
00101 #define free    YYFREE
00102 
00103 #ifndef RIPPER
00104 static ID register_symid(ID, const char *, long, rb_encoding *);
00105 static ID register_symid_str(ID, VALUE);
00106 #define REGISTER_SYMID(id, name) register_symid((id), (name), strlen(name), enc)
00107 #include "id.c"
00108 #endif
00109 
00110 #define is_notop_id(id) ((id)>tLAST_OP_ID)
00111 #define is_local_id(id) (is_notop_id(id)&&((id)&ID_SCOPE_MASK)==ID_LOCAL)
00112 #define is_global_id(id) (is_notop_id(id)&&((id)&ID_SCOPE_MASK)==ID_GLOBAL)
00113 #define is_instance_id(id) (is_notop_id(id)&&((id)&ID_SCOPE_MASK)==ID_INSTANCE)
00114 #define is_attrset_id(id) (is_notop_id(id)&&((id)&ID_SCOPE_MASK)==ID_ATTRSET)
00115 #define is_const_id(id) (is_notop_id(id)&&((id)&ID_SCOPE_MASK)==ID_CONST)
00116 #define is_class_id(id) (is_notop_id(id)&&((id)&ID_SCOPE_MASK)==ID_CLASS)
00117 #define is_junk_id(id) (is_notop_id(id)&&((id)&ID_SCOPE_MASK)==ID_JUNK)
00118 #define id_type(id) (is_notop_id(id) ? (int)((id)&ID_SCOPE_MASK) : -1)
00119 
00120 #define is_asgn_or_id(id) ((is_notop_id(id)) && \
00121         (((id)&ID_SCOPE_MASK) == ID_GLOBAL || \
00122          ((id)&ID_SCOPE_MASK) == ID_INSTANCE || \
00123          ((id)&ID_SCOPE_MASK) == ID_CLASS))
00124 
00125 enum lex_state_bits {
00126     EXPR_BEG_bit,               /* ignore newline, +/- is a sign. */
00127     EXPR_END_bit,               /* newline significant, +/- is an operator. */
00128     EXPR_ENDARG_bit,            /* ditto, and unbound braces. */
00129     EXPR_ENDFN_bit,             /* ditto, and unbound braces. */
00130     EXPR_ARG_bit,               /* newline significant, +/- is an operator. */
00131     EXPR_CMDARG_bit,            /* newline significant, +/- is an operator. */
00132     EXPR_MID_bit,               /* newline significant, +/- is an operator. */
00133     EXPR_FNAME_bit,             /* ignore newline, no reserved words. */
00134     EXPR_DOT_bit,               /* right after `.' or `::', no reserved words. */
00135     EXPR_CLASS_bit,             /* immediate after `class', no here document. */
00136     EXPR_VALUE_bit,             /* alike EXPR_BEG but label is disallowed. */
00137     EXPR_MAX_STATE
00138 };
00139 /* examine combinations */
00140 enum lex_state_e {
00141 #define DEF_EXPR(n) EXPR_##n = (1 << EXPR_##n##_bit)
00142     DEF_EXPR(BEG),
00143     DEF_EXPR(END),
00144     DEF_EXPR(ENDARG),
00145     DEF_EXPR(ENDFN),
00146     DEF_EXPR(ARG),
00147     DEF_EXPR(CMDARG),
00148     DEF_EXPR(MID),
00149     DEF_EXPR(FNAME),
00150     DEF_EXPR(DOT),
00151     DEF_EXPR(CLASS),
00152     DEF_EXPR(VALUE),
00153     EXPR_BEG_ANY  =  (EXPR_BEG | EXPR_VALUE | EXPR_MID | EXPR_CLASS),
00154     EXPR_ARG_ANY  =  (EXPR_ARG | EXPR_CMDARG),
00155     EXPR_END_ANY  =  (EXPR_END | EXPR_ENDARG | EXPR_ENDFN)
00156 };
00157 #define IS_lex_state_for(x, ls) ((x) & (ls))
00158 #define IS_lex_state(ls)        IS_lex_state_for(lex_state, (ls))
00159 
00160 #if PARSER_DEBUG
00161 static const char *lex_state_name(enum lex_state_e state);
00162 #endif
00163 
00164 typedef VALUE stack_type;
00165 
00166 # define BITSTACK_PUSH(stack, n)        ((stack) = ((stack)<<1)|((n)&1))
00167 # define BITSTACK_POP(stack)    ((stack) = (stack) >> 1)
00168 # define BITSTACK_LEXPOP(stack) ((stack) = ((stack) >> 1) | ((stack) & 1))
00169 # define BITSTACK_SET_P(stack)  ((stack)&1)
00170 
00171 #define COND_PUSH(n)    BITSTACK_PUSH(cond_stack, (n))
00172 #define COND_POP()      BITSTACK_POP(cond_stack)
00173 #define COND_LEXPOP()   BITSTACK_LEXPOP(cond_stack)
00174 #define COND_P()        BITSTACK_SET_P(cond_stack)
00175 
00176 #define CMDARG_PUSH(n)  BITSTACK_PUSH(cmdarg_stack, (n))
00177 #define CMDARG_POP()    BITSTACK_POP(cmdarg_stack)
00178 #define CMDARG_LEXPOP() BITSTACK_LEXPOP(cmdarg_stack)
00179 #define CMDARG_P()      BITSTACK_SET_P(cmdarg_stack)
00180 
00181 struct vtable {
00182     ID *tbl;
00183     int pos;
00184     int capa;
00185     struct vtable *prev;
00186 };
00187 
00188 struct local_vars {
00189     struct vtable *args;
00190     struct vtable *vars;
00191     struct vtable *used;
00192     struct local_vars *prev;
00193     stack_type cmdargs;
00194 };
00195 
00196 #define DVARS_INHERIT ((void*)1)
00197 #define DVARS_TOPSCOPE NULL
00198 #define DVARS_SPECIAL_P(tbl) (!POINTER_P(tbl))
00199 #define POINTER_P(val) ((VALUE)(val) & ~(VALUE)3)
00200 
00201 static int
00202 vtable_size(const struct vtable *tbl)
00203 {
00204     if (POINTER_P(tbl)) {
00205         return tbl->pos;
00206     }
00207     else {
00208         return 0;
00209     }
00210 }
00211 
00212 #define VTBL_DEBUG 0
00213 
00214 static struct vtable *
00215 vtable_alloc(struct vtable *prev)
00216 {
00217     struct vtable *tbl = ALLOC(struct vtable);
00218     tbl->pos = 0;
00219     tbl->capa = 8;
00220     tbl->tbl = ALLOC_N(ID, tbl->capa);
00221     tbl->prev = prev;
00222     if (VTBL_DEBUG) printf("vtable_alloc: %p\n", (void *)tbl);
00223     return tbl;
00224 }
00225 
00226 static void
00227 vtable_free(struct vtable *tbl)
00228 {
00229     if (VTBL_DEBUG)printf("vtable_free: %p\n", (void *)tbl);
00230     if (POINTER_P(tbl)) {
00231         if (tbl->tbl) {
00232             xfree(tbl->tbl);
00233         }
00234         xfree(tbl);
00235     }
00236 }
00237 
00238 static void
00239 vtable_add(struct vtable *tbl, ID id)
00240 {
00241     if (!POINTER_P(tbl)) {
00242         rb_bug("vtable_add: vtable is not allocated (%p)", (void *)tbl);
00243     }
00244     if (VTBL_DEBUG) printf("vtable_add: %p, %s\n", (void *)tbl, rb_id2name(id));
00245 
00246     if (tbl->pos == tbl->capa) {
00247         tbl->capa = tbl->capa * 2;
00248         REALLOC_N(tbl->tbl, ID, tbl->capa);
00249     }
00250     tbl->tbl[tbl->pos++] = id;
00251 }
00252 
00253 static int
00254 vtable_included(const struct vtable * tbl, ID id)
00255 {
00256     int i;
00257 
00258     if (POINTER_P(tbl)) {
00259         for (i = 0; i < tbl->pos; i++) {
00260             if (tbl->tbl[i] == id) {
00261                 return i+1;
00262             }
00263         }
00264     }
00265     return 0;
00266 }
00267 
00268 
00269 #ifndef RIPPER
00270 typedef struct token_info {
00271     const char *token;
00272     int linenum;
00273     int column;
00274     int nonspc;
00275     struct token_info *next;
00276 } token_info;
00277 #endif
00278 
00279 /*
00280     Structure of Lexer Buffer:
00281 
00282  lex_pbeg      tokp         lex_p        lex_pend
00283     |           |              |            |
00284     |-----------+--------------+------------|
00285                 |<------------>|
00286                      token
00287 */
00288 struct parser_params {
00289     int is_ripper;
00290     NODE *heap;
00291 
00292     YYSTYPE *parser_yylval;
00293     VALUE eofp;
00294 
00295     NODE *parser_lex_strterm;
00296     enum lex_state_e parser_lex_state;
00297     stack_type parser_cond_stack;
00298     stack_type parser_cmdarg_stack;
00299     int parser_class_nest;
00300     int parser_paren_nest;
00301     int parser_lpar_beg;
00302     int parser_in_single;
00303     int parser_in_def;
00304     int parser_brace_nest;
00305     int parser_compile_for_eval;
00306     VALUE parser_cur_mid;
00307     int parser_in_defined;
00308     char *parser_tokenbuf;
00309     int parser_tokidx;
00310     int parser_toksiz;
00311     int parser_tokline;
00312     VALUE parser_lex_input;
00313     VALUE parser_lex_lastline;
00314     VALUE parser_lex_nextline;
00315     const char *parser_lex_pbeg;
00316     const char *parser_lex_p;
00317     const char *parser_lex_pend;
00318     int parser_heredoc_end;
00319     int parser_command_start;
00320     NODE *parser_deferred_nodes;
00321     long parser_lex_gets_ptr;
00322     VALUE (*parser_lex_gets)(struct parser_params*,VALUE);
00323     struct local_vars *parser_lvtbl;
00324     int parser_ruby__end__seen;
00325     int line_count;
00326     int has_shebang;
00327     char *parser_ruby_sourcefile; /* current source file */
00328     int parser_ruby_sourceline; /* current line no. */
00329     rb_encoding *enc;
00330 
00331     int parser_yydebug;
00332 
00333 #ifndef RIPPER
00334     /* Ruby core only */
00335     NODE *parser_eval_tree_begin;
00336     NODE *parser_eval_tree;
00337     VALUE debug_lines;
00338     VALUE coverage;
00339     int nerr;
00340 
00341     int parser_token_info_enabled;
00342     token_info *parser_token_info;
00343 #else
00344     /* Ripper only */
00345     VALUE parser_ruby_sourcefile_string;
00346     const char *tokp;
00347     VALUE delayed;
00348     int delayed_line;
00349     int delayed_col;
00350 
00351     VALUE value;
00352     VALUE result;
00353     VALUE parsing_thread;
00354     int toplevel_p;
00355 #endif
00356 };
00357 
00358 #define STR_NEW(p,n) rb_enc_str_new((p),(n),current_enc)
00359 #define STR_NEW0() rb_enc_str_new(0,0,current_enc)
00360 #define STR_NEW2(p) rb_enc_str_new((p),strlen(p),current_enc)
00361 #define STR_NEW3(p,n,e,func) parser_str_new((p),(n),(e),(func),current_enc)
00362 #define ENC_SINGLE(cr) ((cr)==ENC_CODERANGE_7BIT)
00363 #define TOK_INTERN(mb) rb_intern3(tok(), toklen(), current_enc)
00364 
00365 static int parser_yyerror(struct parser_params*, const char*);
00366 #define yyerror(msg) parser_yyerror(parser, (msg))
00367 
00368 #define lex_strterm             (parser->parser_lex_strterm)
00369 #define lex_state               (parser->parser_lex_state)
00370 #define cond_stack              (parser->parser_cond_stack)
00371 #define cmdarg_stack            (parser->parser_cmdarg_stack)
00372 #define class_nest              (parser->parser_class_nest)
00373 #define paren_nest              (parser->parser_paren_nest)
00374 #define lpar_beg                (parser->parser_lpar_beg)
00375 #define brace_nest              (parser->parser_brace_nest)
00376 #define in_single               (parser->parser_in_single)
00377 #define in_def                  (parser->parser_in_def)
00378 #define compile_for_eval        (parser->parser_compile_for_eval)
00379 #define cur_mid                 (parser->parser_cur_mid)
00380 #define in_defined              (parser->parser_in_defined)
00381 #define tokenbuf                (parser->parser_tokenbuf)
00382 #define tokidx                  (parser->parser_tokidx)
00383 #define toksiz                  (parser->parser_toksiz)
00384 #define tokline                 (parser->parser_tokline)
00385 #define lex_input               (parser->parser_lex_input)
00386 #define lex_lastline            (parser->parser_lex_lastline)
00387 #define lex_nextline            (parser->parser_lex_nextline)
00388 #define lex_pbeg                (parser->parser_lex_pbeg)
00389 #define lex_p                   (parser->parser_lex_p)
00390 #define lex_pend                (parser->parser_lex_pend)
00391 #define heredoc_end             (parser->parser_heredoc_end)
00392 #define command_start           (parser->parser_command_start)
00393 #define deferred_nodes          (parser->parser_deferred_nodes)
00394 #define lex_gets_ptr            (parser->parser_lex_gets_ptr)
00395 #define lex_gets                (parser->parser_lex_gets)
00396 #define lvtbl                   (parser->parser_lvtbl)
00397 #define ruby__end__seen         (parser->parser_ruby__end__seen)
00398 #define ruby_sourceline         (parser->parser_ruby_sourceline)
00399 #define ruby_sourcefile         (parser->parser_ruby_sourcefile)
00400 #define current_enc             (parser->enc)
00401 #define yydebug                 (parser->parser_yydebug)
00402 #ifdef RIPPER
00403 #else
00404 #define ruby_eval_tree          (parser->parser_eval_tree)
00405 #define ruby_eval_tree_begin    (parser->parser_eval_tree_begin)
00406 #define ruby_debug_lines        (parser->debug_lines)
00407 #define ruby_coverage           (parser->coverage)
00408 #endif
00409 
00410 #if YYPURE
00411 static int yylex(void*, void*);
00412 #else
00413 static int yylex(void*);
00414 #endif
00415 
00416 #ifndef RIPPER
00417 #define yyparse ruby_yyparse
00418 
00419 static NODE* node_newnode(struct parser_params *, enum node_type, VALUE, VALUE, VALUE);
00420 #define rb_node_newnode(type, a1, a2, a3) node_newnode(parser, (type), (a1), (a2), (a3))
00421 
00422 static NODE *cond_gen(struct parser_params*,NODE*);
00423 #define cond(node) cond_gen(parser, (node))
00424 static NODE *logop_gen(struct parser_params*,enum node_type,NODE*,NODE*);
00425 #define logop(type,node1,node2) logop_gen(parser, (type), (node1), (node2))
00426 
00427 static NODE *newline_node(NODE*);
00428 static void fixpos(NODE*,NODE*);
00429 
00430 static int value_expr_gen(struct parser_params*,NODE*);
00431 static void void_expr_gen(struct parser_params*,NODE*);
00432 static NODE *remove_begin(NODE*);
00433 #define value_expr(node) value_expr_gen(parser, (node) = remove_begin(node))
00434 #define void_expr0(node) void_expr_gen(parser, (node))
00435 #define void_expr(node) void_expr0((node) = remove_begin(node))
00436 static void void_stmts_gen(struct parser_params*,NODE*);
00437 #define void_stmts(node) void_stmts_gen(parser, (node))
00438 static void reduce_nodes_gen(struct parser_params*,NODE**);
00439 #define reduce_nodes(n) reduce_nodes_gen(parser,(n))
00440 static void block_dup_check_gen(struct parser_params*,NODE*,NODE*);
00441 #define block_dup_check(n1,n2) block_dup_check_gen(parser,(n1),(n2))
00442 
00443 static NODE *block_append_gen(struct parser_params*,NODE*,NODE*);
00444 #define block_append(h,t) block_append_gen(parser,(h),(t))
00445 static NODE *list_append_gen(struct parser_params*,NODE*,NODE*);
00446 #define list_append(l,i) list_append_gen(parser,(l),(i))
00447 static NODE *list_concat_gen(struct parser_params*,NODE*,NODE*);
00448 #define list_concat(h,t) list_concat_gen(parser,(h),(t))
00449 static NODE *arg_append_gen(struct parser_params*,NODE*,NODE*);
00450 #define arg_append(h,t) arg_append_gen(parser,(h),(t))
00451 static NODE *arg_concat_gen(struct parser_params*,NODE*,NODE*);
00452 #define arg_concat(h,t) arg_concat_gen(parser,(h),(t))
00453 static NODE *literal_concat_gen(struct parser_params*,NODE*,NODE*);
00454 #define literal_concat(h,t) literal_concat_gen(parser,(h),(t))
00455 static int literal_concat0(struct parser_params *, VALUE, VALUE);
00456 static NODE *new_evstr_gen(struct parser_params*,NODE*);
00457 #define new_evstr(n) new_evstr_gen(parser,(n))
00458 static NODE *evstr2dstr_gen(struct parser_params*,NODE*);
00459 #define evstr2dstr(n) evstr2dstr_gen(parser,(n))
00460 static NODE *splat_array(NODE*);
00461 
00462 static NODE *call_bin_op_gen(struct parser_params*,NODE*,ID,NODE*);
00463 #define call_bin_op(recv,id,arg1) call_bin_op_gen(parser, (recv),(id),(arg1))
00464 static NODE *call_uni_op_gen(struct parser_params*,NODE*,ID);
00465 #define call_uni_op(recv,id) call_uni_op_gen(parser, (recv),(id))
00466 
00467 static NODE *new_args_gen(struct parser_params*,NODE*,NODE*,ID,NODE*,NODE*);
00468 #define new_args(f,o,r,p,t) new_args_gen(parser, (f),(o),(r),(p),(t))
00469 static NODE *new_args_tail_gen(struct parser_params*,NODE*,ID,ID);
00470 #define new_args_tail(k,kr,b) new_args_tail_gen(parser, (k),(kr),(b))
00471 
00472 static NODE *negate_lit(NODE*);
00473 static NODE *ret_args_gen(struct parser_params*,NODE*);
00474 #define ret_args(node) ret_args_gen(parser, (node))
00475 static NODE *arg_blk_pass(NODE*,NODE*);
00476 static NODE *new_yield_gen(struct parser_params*,NODE*);
00477 #define new_yield(node) new_yield_gen(parser, (node))
00478 static NODE *dsym_node_gen(struct parser_params*,NODE*);
00479 #define dsym_node(node) dsym_node_gen(parser, (node))
00480 
00481 static NODE *gettable_gen(struct parser_params*,ID);
00482 #define gettable(id) gettable_gen(parser,(id))
00483 static NODE *assignable_gen(struct parser_params*,ID,NODE*);
00484 #define assignable(id,node) assignable_gen(parser, (id), (node))
00485 
00486 static NODE *aryset_gen(struct parser_params*,NODE*,NODE*);
00487 #define aryset(node1,node2) aryset_gen(parser, (node1), (node2))
00488 static NODE *attrset_gen(struct parser_params*,NODE*,ID);
00489 #define attrset(node,id) attrset_gen(parser, (node), (id))
00490 
00491 static void rb_backref_error_gen(struct parser_params*,NODE*);
00492 #define rb_backref_error(n) rb_backref_error_gen(parser,(n))
00493 static NODE *node_assign_gen(struct parser_params*,NODE*,NODE*);
00494 #define node_assign(node1, node2) node_assign_gen(parser, (node1), (node2))
00495 
00496 static NODE *new_op_assign_gen(struct parser_params *parser, NODE *lhs, ID op, NODE *rhs);
00497 static NODE *new_attr_op_assign_gen(struct parser_params *parser, NODE *lhs, ID attr, ID op, NODE *rhs);
00498 #define new_attr_op_assign(lhs, type, attr, op, rhs) new_attr_op_assign_gen(parser, (lhs), (attr), (op), (rhs))
00499 static NODE *new_const_op_assign_gen(struct parser_params *parser, NODE *lhs, ID op, NODE *rhs);
00500 #define new_const_op_assign(lhs, op, rhs) new_const_op_assign_gen(parser, (lhs), (op), (rhs))
00501 
00502 static NODE *match_op_gen(struct parser_params*,NODE*,NODE*);
00503 #define match_op(node1,node2) match_op_gen(parser, (node1), (node2))
00504 
00505 static ID  *local_tbl_gen(struct parser_params*);
00506 #define local_tbl() local_tbl_gen(parser)
00507 
00508 static void fixup_nodes(NODE **);
00509 
00510 static VALUE reg_compile_gen(struct parser_params*, VALUE, int);
00511 #define reg_compile(str,options) reg_compile_gen(parser, (str), (options))
00512 static void reg_fragment_setenc_gen(struct parser_params*, VALUE, int);
00513 #define reg_fragment_setenc(str,options) reg_fragment_setenc_gen(parser, (str), (options))
00514 static int reg_fragment_check_gen(struct parser_params*, VALUE, int);
00515 #define reg_fragment_check(str,options) reg_fragment_check_gen(parser, (str), (options))
00516 static NODE *reg_named_capture_assign_gen(struct parser_params* parser, VALUE regexp, NODE *match);
00517 #define reg_named_capture_assign(regexp,match) reg_named_capture_assign_gen(parser,(regexp),(match))
00518 
00519 #define get_id(id) (id)
00520 #define get_value(val) (val)
00521 #else
00522 #define value_expr(node) ((void)(node))
00523 #define remove_begin(node) (node)
00524 #define rb_dvar_defined(id) 0
00525 #define rb_local_defined(id) 0
00526 static ID ripper_get_id(VALUE);
00527 #define get_id(id) ripper_get_id(id)
00528 static VALUE ripper_get_value(VALUE);
00529 #define get_value(val) ripper_get_value(val)
00530 static VALUE assignable_gen(struct parser_params*,VALUE);
00531 #define assignable(lhs,node) assignable_gen(parser, (lhs))
00532 static int id_is_var_gen(struct parser_params *parser, ID id);
00533 #define id_is_var(id) id_is_var_gen(parser, (id))
00534 
00535 #define node_assign(node1, node2) dispatch2(assign, (node1), (node2))
00536 
00537 static VALUE new_op_assign_gen(struct parser_params *parser, VALUE lhs, VALUE op, VALUE rhs);
00538 static VALUE new_attr_op_assign_gen(struct parser_params *parser, VALUE lhs, VALUE type, VALUE attr, VALUE op, VALUE rhs);
00539 #define new_attr_op_assign(lhs, type, attr, op, rhs) new_attr_op_assign_gen(parser, (lhs), (type), (attr), (op), (rhs))
00540 
00541 #endif /* !RIPPER */
00542 
00543 #define new_op_assign(lhs, op, rhs) new_op_assign_gen(parser, (lhs), (op), (rhs))
00544 
00545 static ID formal_argument_gen(struct parser_params*, ID);
00546 #define formal_argument(id) formal_argument_gen(parser, (id))
00547 static ID shadowing_lvar_gen(struct parser_params*,ID);
00548 #define shadowing_lvar(name) shadowing_lvar_gen(parser, (name))
00549 static void new_bv_gen(struct parser_params*,ID);
00550 #define new_bv(id) new_bv_gen(parser, (id))
00551 
00552 static void local_push_gen(struct parser_params*,int);
00553 #define local_push(top) local_push_gen(parser,(top))
00554 static void local_pop_gen(struct parser_params*);
00555 #define local_pop() local_pop_gen(parser)
00556 static int local_var_gen(struct parser_params*, ID);
00557 #define local_var(id) local_var_gen(parser, (id))
00558 static int arg_var_gen(struct parser_params*, ID);
00559 #define arg_var(id) arg_var_gen(parser, (id))
00560 static int  local_id_gen(struct parser_params*, ID);
00561 #define local_id(id) local_id_gen(parser, (id))
00562 static ID   internal_id_gen(struct parser_params*);
00563 #define internal_id() internal_id_gen(parser)
00564 
00565 static const struct vtable *dyna_push_gen(struct parser_params *);
00566 #define dyna_push() dyna_push_gen(parser)
00567 static void dyna_pop_gen(struct parser_params*, const struct vtable *);
00568 #define dyna_pop(node) dyna_pop_gen(parser, (node))
00569 static int dyna_in_block_gen(struct parser_params*);
00570 #define dyna_in_block() dyna_in_block_gen(parser)
00571 #define dyna_var(id) local_var(id)
00572 static int dvar_defined_gen(struct parser_params*,ID,int);
00573 #define dvar_defined(id) dvar_defined_gen(parser, (id), 0)
00574 #define dvar_defined_get(id) dvar_defined_gen(parser, (id), 1)
00575 static int dvar_curr_gen(struct parser_params*,ID);
00576 #define dvar_curr(id) dvar_curr_gen(parser, (id))
00577 
00578 static int lvar_defined_gen(struct parser_params*, ID);
00579 #define lvar_defined(id) lvar_defined_gen(parser, (id))
00580 
00581 #define RE_OPTION_ONCE (1<<16)
00582 #define RE_OPTION_ENCODING_SHIFT 8
00583 #define RE_OPTION_ENCODING(e) (((e)&0xff)<<RE_OPTION_ENCODING_SHIFT)
00584 #define RE_OPTION_ENCODING_IDX(o) (((o)>>RE_OPTION_ENCODING_SHIFT)&0xff)
00585 #define RE_OPTION_ENCODING_NONE(o) ((o)&RE_OPTION_ARG_ENCODING_NONE)
00586 #define RE_OPTION_MASK  0xff
00587 #define RE_OPTION_ARG_ENCODING_NONE 32
00588 
00589 #define NODE_STRTERM NODE_ZARRAY        /* nothing to gc */
00590 #define NODE_HEREDOC NODE_ARRAY         /* 1, 3 to gc */
00591 #define SIGN_EXTEND(x,n) (((1<<(n)-1)^((x)&~(~0<<(n))))-(1<<(n)-1))
00592 #define nd_func u1.id
00593 #if SIZEOF_SHORT == 2
00594 #define nd_term(node) ((signed short)(node)->u2.id)
00595 #else
00596 #define nd_term(node) SIGN_EXTEND((node)->u2.id, CHAR_BIT*2)
00597 #endif
00598 #define nd_paren(node) (char)((node)->u2.id >> CHAR_BIT*2)
00599 #define nd_nest u3.cnt
00600 
00601 /****** Ripper *******/
00602 
00603 #ifdef RIPPER
00604 #define RIPPER_VERSION "0.1.0"
00605 
00606 #include "eventids1.c"
00607 #include "eventids2.c"
00608 
00609 static VALUE ripper_dispatch0(struct parser_params*,ID);
00610 static VALUE ripper_dispatch1(struct parser_params*,ID,VALUE);
00611 static VALUE ripper_dispatch2(struct parser_params*,ID,VALUE,VALUE);
00612 static VALUE ripper_dispatch3(struct parser_params*,ID,VALUE,VALUE,VALUE);
00613 static VALUE ripper_dispatch4(struct parser_params*,ID,VALUE,VALUE,VALUE,VALUE);
00614 static VALUE ripper_dispatch5(struct parser_params*,ID,VALUE,VALUE,VALUE,VALUE,VALUE);
00615 static VALUE ripper_dispatch7(struct parser_params*,ID,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE);
00616 
00617 #define dispatch0(n)            ripper_dispatch0(parser, TOKEN_PASTE(ripper_id_, n))
00618 #define dispatch1(n,a)          ripper_dispatch1(parser, TOKEN_PASTE(ripper_id_, n), (a))
00619 #define dispatch2(n,a,b)        ripper_dispatch2(parser, TOKEN_PASTE(ripper_id_, n), (a), (b))
00620 #define dispatch3(n,a,b,c)      ripper_dispatch3(parser, TOKEN_PASTE(ripper_id_, n), (a), (b), (c))
00621 #define dispatch4(n,a,b,c,d)    ripper_dispatch4(parser, TOKEN_PASTE(ripper_id_, n), (a), (b), (c), (d))
00622 #define dispatch5(n,a,b,c,d,e)  ripper_dispatch5(parser, TOKEN_PASTE(ripper_id_, n), (a), (b), (c), (d), (e))
00623 #define dispatch7(n,a,b,c,d,e,f,g) ripper_dispatch7(parser, TOKEN_PASTE(ripper_id_, n), (a), (b), (c), (d), (e), (f), (g))
00624 
00625 #define yyparse ripper_yyparse
00626 
00627 #define ripper_intern(s) ID2SYM(rb_intern(s))
00628 static VALUE ripper_id2sym(ID);
00629 #ifdef __GNUC__
00630 #define ripper_id2sym(id) ((id) < 256 && rb_ispunct(id) ? \
00631                            ID2SYM(id) : ripper_id2sym(id))
00632 #endif
00633 
00634 #define arg_new() dispatch0(args_new)
00635 #define arg_add(l,a) dispatch2(args_add, (l), (a))
00636 #define arg_add_star(l,a) dispatch2(args_add_star, (l), (a))
00637 #define arg_add_block(l,b) dispatch2(args_add_block, (l), (b))
00638 #define arg_add_optblock(l,b) ((b)==Qundef? (l) : dispatch2(args_add_block, (l), (b)))
00639 #define bare_assoc(v) dispatch1(bare_assoc_hash, (v))
00640 #define arg_add_assocs(l,b) arg_add((l), bare_assoc(b))
00641 
00642 #define args2mrhs(a) dispatch1(mrhs_new_from_args, (a))
00643 #define mrhs_new() dispatch0(mrhs_new)
00644 #define mrhs_add(l,a) dispatch2(mrhs_add, (l), (a))
00645 #define mrhs_add_star(l,a) dispatch2(mrhs_add_star, (l), (a))
00646 
00647 #define mlhs_new() dispatch0(mlhs_new)
00648 #define mlhs_add(l,a) dispatch2(mlhs_add, (l), (a))
00649 #define mlhs_add_star(l,a) dispatch2(mlhs_add_star, (l), (a))
00650 
00651 #define params_new(pars, opts, rest, pars2, kws, kwrest, blk) \
00652         dispatch7(params, (pars), (opts), (rest), (pars2), (kws), (kwrest), (blk))
00653 
00654 #define blockvar_new(p,v) dispatch2(block_var, (p), (v))
00655 #define blockvar_add_star(l,a) dispatch2(block_var_add_star, (l), (a))
00656 #define blockvar_add_block(l,a) dispatch2(block_var_add_block, (l), (a))
00657 
00658 #define method_optarg(m,a) ((a)==Qundef ? (m) : dispatch2(method_add_arg,(m),(a)))
00659 #define method_arg(m,a) dispatch2(method_add_arg,(m),(a))
00660 #define method_add_block(m,b) dispatch2(method_add_block, (m), (b))
00661 
00662 #define escape_Qundef(x) ((x)==Qundef ? Qnil : (x))
00663 
00664 static inline VALUE
00665 new_args_gen(struct parser_params *parser, VALUE f, VALUE o, VALUE r, VALUE p, VALUE tail)
00666 {
00667     NODE *t = (NODE *)tail;
00668     VALUE k = t->u1.value, kr = t->u2.value, b = t->u3.value;
00669     return params_new(f, o, r, p, k, kr, escape_Qundef(b));
00670 }
00671 #define new_args(f,o,r,p,t) new_args_gen(parser, (f),(o),(r),(p),(t))
00672 
00673 static inline VALUE
00674 new_args_tail_gen(struct parser_params *parser, VALUE k, VALUE kr, VALUE b)
00675 {
00676     return (VALUE)rb_node_newnode(NODE_MEMO, k, kr, b);
00677 }
00678 #define new_args_tail(k,kr,b) new_args_tail_gen(parser, (k),(kr),(b))
00679 
00680 #define FIXME 0
00681 
00682 #endif /* RIPPER */
00683 
00684 #ifndef RIPPER
00685 # define Qnone 0
00686 # define ifndef_ripper(x) (x)
00687 #else
00688 # define Qnone Qnil
00689 # define ifndef_ripper(x)
00690 #endif
00691 
00692 #ifndef RIPPER
00693 # define rb_warn0(fmt)    rb_compile_warn(ruby_sourcefile, ruby_sourceline, (fmt))
00694 # define rb_warnI(fmt,a)  rb_compile_warn(ruby_sourcefile, ruby_sourceline, (fmt), (a))
00695 # define rb_warnS(fmt,a)  rb_compile_warn(ruby_sourcefile, ruby_sourceline, (fmt), (a))
00696 # define rb_warn4S(file,line,fmt,a)  rb_compile_warn((file), (line), (fmt), (a))
00697 # define rb_warning0(fmt) rb_compile_warning(ruby_sourcefile, ruby_sourceline, (fmt))
00698 # define rb_warningS(fmt,a) rb_compile_warning(ruby_sourcefile, ruby_sourceline, (fmt), (a))
00699 #else
00700 # define rb_warn0(fmt)    ripper_warn0(parser, (fmt))
00701 # define rb_warnI(fmt,a)  ripper_warnI(parser, (fmt), (a))
00702 # define rb_warnS(fmt,a)  ripper_warnS(parser, (fmt), (a))
00703 # define rb_warn4S(file,line,fmt,a)  ripper_warnS(parser, (fmt), (a))
00704 # define rb_warning0(fmt) ripper_warning0(parser, (fmt))
00705 # define rb_warningS(fmt,a) ripper_warningS(parser, (fmt), (a))
00706 static void ripper_warn0(struct parser_params*, const char*);
00707 static void ripper_warnI(struct parser_params*, const char*, int);
00708 static void ripper_warnS(struct parser_params*, const char*, const char*);
00709 static void ripper_warning0(struct parser_params*, const char*);
00710 static void ripper_warningS(struct parser_params*, const char*, const char*);
00711 #endif
00712 
00713 #ifdef RIPPER
00714 static void ripper_compile_error(struct parser_params*, const char *fmt, ...);
00715 # define rb_compile_error ripper_compile_error
00716 # define compile_error ripper_compile_error
00717 # define PARSER_ARG parser,
00718 #else
00719 # define rb_compile_error rb_compile_error_with_enc
00720 # define compile_error parser->nerr++,rb_compile_error_with_enc
00721 # define PARSER_ARG ruby_sourcefile, ruby_sourceline, current_enc,
00722 #endif
00723 
00724 /* Older versions of Yacc set YYMAXDEPTH to a very low value by default (150,
00725    for instance).  This is too low for Ruby to parse some files, such as
00726    date/format.rb, therefore bump the value up to at least Bison's default. */
00727 #ifdef OLD_YACC
00728 #ifndef YYMAXDEPTH
00729 #define YYMAXDEPTH 10000
00730 #endif
00731 #endif
00732 
00733 #ifndef RIPPER
00734 static void token_info_push(struct parser_params*, const char *token);
00735 static void token_info_pop(struct parser_params*, const char *token);
00736 #define token_info_push(token) (RTEST(ruby_verbose) ? token_info_push(parser, (token)) : (void)0)
00737 #define token_info_pop(token) (RTEST(ruby_verbose) ? token_info_pop(parser, (token)) : (void)0)
00738 #else
00739 #define token_info_push(token) /* nothing */
00740 #define token_info_pop(token) /* nothing */
00741 #endif
00742 
00743 
00744 /* Line 268 of yacc.c  */
00745 #line 746 "parse.c"
00746 
00747 /* Enabling traces.  */
00748 #ifndef YYDEBUG
00749 # define YYDEBUG 0
00750 #endif
00751 
00752 /* Enabling verbose error messages.  */
00753 #ifdef YYERROR_VERBOSE
00754 # undef YYERROR_VERBOSE
00755 # define YYERROR_VERBOSE 1
00756 #else
00757 # define YYERROR_VERBOSE 0
00758 #endif
00759 
00760 /* Enabling the token table.  */
00761 #ifndef YYTOKEN_TABLE
00762 # define YYTOKEN_TABLE 0
00763 #endif
00764 
00765 
00766 /* Tokens.  */
00767 #ifndef YYTOKENTYPE
00768 # define YYTOKENTYPE
00769    /* Put the tokens into the symbol table, so that GDB and other debuggers
00770       know about them.  */
00771    enum yytokentype {
00772      END_OF_INPUT = 0,
00773      keyword_class = 258,
00774      keyword_module = 259,
00775      keyword_def = 260,
00776      keyword_undef = 261,
00777      keyword_begin = 262,
00778      keyword_rescue = 263,
00779      keyword_ensure = 264,
00780      keyword_end = 265,
00781      keyword_if = 266,
00782      keyword_unless = 267,
00783      keyword_then = 268,
00784      keyword_elsif = 269,
00785      keyword_else = 270,
00786      keyword_case = 271,
00787      keyword_when = 272,
00788      keyword_while = 273,
00789      keyword_until = 274,
00790      keyword_for = 275,
00791      keyword_break = 276,
00792      keyword_next = 277,
00793      keyword_redo = 278,
00794      keyword_retry = 279,
00795      keyword_in = 280,
00796      keyword_do = 281,
00797      keyword_do_cond = 282,
00798      keyword_do_block = 283,
00799      keyword_do_LAMBDA = 284,
00800      keyword_return = 285,
00801      keyword_yield = 286,
00802      keyword_super = 287,
00803      keyword_self = 288,
00804      keyword_nil = 289,
00805      keyword_true = 290,
00806      keyword_false = 291,
00807      keyword_and = 292,
00808      keyword_or = 293,
00809      keyword_not = 294,
00810      modifier_if = 295,
00811      modifier_unless = 296,
00812      modifier_while = 297,
00813      modifier_until = 298,
00814      modifier_rescue = 299,
00815      keyword_alias = 300,
00816      keyword_defined = 301,
00817      keyword_BEGIN = 302,
00818      keyword_END = 303,
00819      keyword__LINE__ = 304,
00820      keyword__FILE__ = 305,
00821      keyword__ENCODING__ = 306,
00822      tIDENTIFIER = 307,
00823      tFID = 308,
00824      tGVAR = 309,
00825      tIVAR = 310,
00826      tCONSTANT = 311,
00827      tCVAR = 312,
00828      tLABEL = 313,
00829      tINTEGER = 314,
00830      tFLOAT = 315,
00831      tSTRING_CONTENT = 316,
00832      tCHAR = 317,
00833      tNTH_REF = 318,
00834      tBACK_REF = 319,
00835      tREGEXP_END = 320,
00836      tUPLUS = 130,
00837      tUMINUS = 131,
00838      tPOW = 132,
00839      tCMP = 134,
00840      tEQ = 139,
00841      tEQQ = 140,
00842      tNEQ = 141,
00843      tGEQ = 138,
00844      tLEQ = 137,
00845      tANDOP = 321,
00846      tOROP = 322,
00847      tMATCH = 142,
00848      tNMATCH = 143,
00849      tDOT2 = 128,
00850      tDOT3 = 129,
00851      tAREF = 144,
00852      tASET = 145,
00853      tLSHFT = 135,
00854      tRSHFT = 136,
00855      tCOLON2 = 323,
00856      tCOLON3 = 324,
00857      tOP_ASGN = 325,
00858      tASSOC = 326,
00859      tLPAREN = 327,
00860      tLPAREN_ARG = 328,
00861      tRPAREN = 329,
00862      tLBRACK = 330,
00863      tLBRACE = 331,
00864      tLBRACE_ARG = 332,
00865      tSTAR = 333,
00866      tDSTAR = 334,
00867      tAMPER = 335,
00868      tLAMBDA = 336,
00869      tSYMBEG = 337,
00870      tSTRING_BEG = 338,
00871      tXSTRING_BEG = 339,
00872      tREGEXP_BEG = 340,
00873      tWORDS_BEG = 341,
00874      tQWORDS_BEG = 342,
00875      tSYMBOLS_BEG = 343,
00876      tQSYMBOLS_BEG = 344,
00877      tSTRING_DBEG = 345,
00878      tSTRING_DEND = 346,
00879      tSTRING_DVAR = 347,
00880      tSTRING_END = 348,
00881      tLAMBEG = 349,
00882      tLOWEST = 350,
00883      tUMINUS_NUM = 351,
00884      tLAST_TOKEN = 352
00885    };
00886 #endif
00887 
00888 
00889 
00890 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
00891 typedef union YYSTYPE
00892 {
00893 
00894 /* Line 293 of yacc.c  */
00895 #line 690 "parse.y"
00896 
00897     VALUE val;
00898     NODE *node;
00899     ID id;
00900     int num;
00901     const struct vtable *vars;
00902 
00903 
00904 
00905 /* Line 293 of yacc.c  */
00906 #line 907 "parse.c"
00907 } YYSTYPE;
00908 # define YYSTYPE_IS_TRIVIAL 1
00909 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
00910 # define YYSTYPE_IS_DECLARED 1
00911 #endif
00912 
00913 
00914 /* Copy the second part of user declarations.  */
00915 
00916 
00917 /* Line 343 of yacc.c  */
00918 #line 919 "parse.c"
00919 
00920 #ifdef short
00921 # undef short
00922 #endif
00923 
00924 #ifdef YYTYPE_UINT8
00925 typedef YYTYPE_UINT8 yytype_uint8;
00926 #else
00927 typedef unsigned char yytype_uint8;
00928 #endif
00929 
00930 #ifdef YYTYPE_INT8
00931 typedef YYTYPE_INT8 yytype_int8;
00932 #elif (defined __STDC__ || defined __C99__FUNC__ \
00933      || defined __cplusplus || defined _MSC_VER)
00934 typedef signed char yytype_int8;
00935 #else
00936 typedef short int yytype_int8;
00937 #endif
00938 
00939 #ifdef YYTYPE_UINT16
00940 typedef YYTYPE_UINT16 yytype_uint16;
00941 #else
00942 typedef unsigned short int yytype_uint16;
00943 #endif
00944 
00945 #ifdef YYTYPE_INT16
00946 typedef YYTYPE_INT16 yytype_int16;
00947 #else
00948 typedef short int yytype_int16;
00949 #endif
00950 
00951 #ifndef YYSIZE_T
00952 # ifdef __SIZE_TYPE__
00953 #  define YYSIZE_T __SIZE_TYPE__
00954 # elif defined size_t
00955 #  define YYSIZE_T size_t
00956 # elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \
00957      || defined __cplusplus || defined _MSC_VER)
00958 #  include <stddef.h> /* INFRINGES ON USER NAME SPACE */
00959 #  define YYSIZE_T size_t
00960 # else
00961 #  define YYSIZE_T unsigned int
00962 # endif
00963 #endif
00964 
00965 #define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
00966 
00967 #ifndef YY_
00968 # if defined YYENABLE_NLS && YYENABLE_NLS
00969 #  if ENABLE_NLS
00970 #   include <libintl.h> /* INFRINGES ON USER NAME SPACE */
00971 #   define YY_(msgid) dgettext ("bison-runtime", msgid)
00972 #  endif
00973 # endif
00974 # ifndef YY_
00975 #  define YY_(msgid) msgid
00976 # endif
00977 #endif
00978 
00979 /* Suppress unused-variable warnings by "using" E.  */
00980 #if ! defined lint || defined __GNUC__
00981 # define YYUSE(e) ((void) (e))
00982 #else
00983 # define YYUSE(e) /* empty */
00984 #endif
00985 
00986 /* Identity function, used to suppress warnings about constant conditions.  */
00987 #ifndef lint
00988 # define YYID(n) (n)
00989 #else
00990 #if (defined __STDC__ || defined __C99__FUNC__ \
00991      || defined __cplusplus || defined _MSC_VER)
00992 static int
00993 YYID (int yyi)
00994 #else
00995 static int
00996 YYID (yyi)
00997     int yyi;
00998 #endif
00999 {
01000   return yyi;
01001 }
01002 #endif
01003 
01004 #if ! defined yyoverflow || YYERROR_VERBOSE
01005 
01006 /* The parser invokes alloca or malloc; define the necessary symbols.  */
01007 
01008 # ifdef YYSTACK_USE_ALLOCA
01009 #  if YYSTACK_USE_ALLOCA
01010 #   ifdef __GNUC__
01011 #    define YYSTACK_ALLOC __builtin_alloca
01012 #   elif defined __BUILTIN_VA_ARG_INCR
01013 #    include <alloca.h> /* INFRINGES ON USER NAME SPACE */
01014 #   elif defined _AIX
01015 #    define YYSTACK_ALLOC __alloca
01016 #   elif defined _MSC_VER
01017 #    include <malloc.h> /* INFRINGES ON USER NAME SPACE */
01018 #    define alloca _alloca
01019 #   else
01020 #    define YYSTACK_ALLOC alloca
01021 #    if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \
01022      || defined __cplusplus || defined _MSC_VER)
01023 #     include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
01024 #     ifndef EXIT_SUCCESS
01025 #      define EXIT_SUCCESS 0
01026 #     endif
01027 #    endif
01028 #   endif
01029 #  endif
01030 # endif
01031 
01032 # ifdef YYSTACK_ALLOC
01033    /* Pacify GCC's `empty if-body' warning.  */
01034 #  define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0))
01035 #  ifndef YYSTACK_ALLOC_MAXIMUM
01036     /* The OS might guarantee only one guard page at the bottom of the stack,
01037        and a page size can be as small as 4096 bytes.  So we cannot safely
01038        invoke alloca (N) if N exceeds 4096.  Use a slightly smaller number
01039        to allow for a few compiler-allocated temporary stack slots.  */
01040 #   define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
01041 #  endif
01042 # else
01043 #  define YYSTACK_ALLOC YYMALLOC
01044 #  define YYSTACK_FREE YYFREE
01045 #  ifndef YYSTACK_ALLOC_MAXIMUM
01046 #   define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
01047 #  endif
01048 #  if (defined __cplusplus && ! defined EXIT_SUCCESS \
01049        && ! ((defined YYMALLOC || defined malloc) \
01050              && (defined YYFREE || defined free)))
01051 #   include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
01052 #   ifndef EXIT_SUCCESS
01053 #    define EXIT_SUCCESS 0
01054 #   endif
01055 #  endif
01056 #  ifndef YYMALLOC
01057 #   define YYMALLOC malloc
01058 #   if ! defined malloc && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \
01059      || defined __cplusplus || defined _MSC_VER)
01060 void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
01061 #   endif
01062 #  endif
01063 #  ifndef YYFREE
01064 #   define YYFREE free
01065 #   if ! defined free && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \
01066      || defined __cplusplus || defined _MSC_VER)
01067 void free (void *); /* INFRINGES ON USER NAME SPACE */
01068 #   endif
01069 #  endif
01070 # endif
01071 #endif /* ! defined yyoverflow || YYERROR_VERBOSE */
01072 
01073 
01074 #if (! defined yyoverflow \
01075      && (! defined __cplusplus \
01076          || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
01077 
01078 /* A type that is properly aligned for any stack member.  */
01079 union yyalloc
01080 {
01081   yytype_int16 yyss_alloc;
01082   YYSTYPE yyvs_alloc;
01083 };
01084 
01085 /* The size of the maximum gap between one aligned stack and the next.  */
01086 # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
01087 
01088 /* The size of an array large to enough to hold all stacks, each with
01089    N elements.  */
01090 # define YYSTACK_BYTES(N) \
01091      ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
01092       + YYSTACK_GAP_MAXIMUM)
01093 
01094 # define YYCOPY_NEEDED 1
01095 
01096 /* Relocate STACK from its old location to the new one.  The
01097    local variables YYSIZE and YYSTACKSIZE give the old and new number of
01098    elements in the stack, and YYPTR gives the new location of the
01099    stack.  Advance YYPTR to a properly aligned location for the next
01100    stack.  */
01101 # define YYSTACK_RELOCATE(Stack_alloc, Stack)                           \
01102     do                                                                  \
01103       {                                                                 \
01104         YYSIZE_T yynewbytes;                                            \
01105         YYCOPY (&yyptr->Stack_alloc, Stack, yysize);                    \
01106         Stack = &yyptr->Stack_alloc;                                    \
01107         yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
01108         yyptr += yynewbytes / sizeof (*yyptr);                          \
01109       }                                                                 \
01110     while (YYID (0))
01111 
01112 #endif
01113 
01114 #if defined YYCOPY_NEEDED && YYCOPY_NEEDED
01115 /* Copy COUNT objects from FROM to TO.  The source and destination do
01116    not overlap.  */
01117 # ifndef YYCOPY
01118 #  if defined __GNUC__ && 1 < __GNUC__
01119 #   define YYCOPY(To, From, Count) \
01120       __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
01121 #  else
01122 #   define YYCOPY(To, From, Count)              \
01123       do                                        \
01124         {                                       \
01125           YYSIZE_T yyi;                         \
01126           for (yyi = 0; yyi < (Count); yyi++)   \
01127             (To)[yyi] = (From)[yyi];            \
01128         }                                       \
01129       while (YYID (0))
01130 #  endif
01131 # endif
01132 #endif /* !YYCOPY_NEEDED */
01133 
01134 /* YYFINAL -- State number of the termination state.  */
01135 #define YYFINAL  3
01136 /* YYLAST -- Last index in YYTABLE.  */
01137 #define YYLAST   11084
01138 
01139 /* YYNTOKENS -- Number of terminals.  */
01140 #define YYNTOKENS  142
01141 /* YYNNTS -- Number of nonterminals.  */
01142 #define YYNNTS  198
01143 /* YYNRULES -- Number of rules.  */
01144 #define YYNRULES  619
01145 /* YYNRULES -- Number of states.  */
01146 #define YYNSTATES  1056
01147 
01148 /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX.  */
01149 #define YYUNDEFTOK  2
01150 #define YYMAXUTOK   352
01151 
01152 #define YYTRANSLATE(YYX)                                                \
01153   ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
01154 
01155 /* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX.  */
01156 static const yytype_uint8 yytranslate[] =
01157 {
01158        0,     2,     2,     2,     2,     2,     2,     2,     2,     2,
01159      141,     2,     2,     2,     2,     2,     2,     2,     2,     2,
01160        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
01161        2,     2,   140,   127,     2,     2,     2,   125,   120,     2,
01162      136,   137,   123,   121,   134,   122,   133,   124,     2,     2,
01163        2,     2,     2,     2,     2,     2,     2,     2,   115,   139,
01164      117,   113,   116,   114,     2,     2,     2,     2,     2,     2,
01165        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
01166        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
01167        2,   132,     2,   138,   119,     2,   135,     2,     2,     2,
01168        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
01169        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
01170        2,     2,     2,   130,   118,   131,   128,     2,    79,    80,
01171       66,    67,    68,     2,    69,    83,    84,    74,    73,    70,
01172       71,    72,    77,    78,    81,    82,     2,     2,     2,     2,
01173        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
01174        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
01175        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
01176        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
01177        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
01178        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
01179        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
01180        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
01181        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
01182        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
01183        2,     2,     2,     2,     2,     2,     1,     2,     3,     4,
01184        5,     6,     7,     8,     9,    10,    11,    12,    13,    14,
01185       15,    16,    17,    18,    19,    20,    21,    22,    23,    24,
01186       25,    26,    27,    28,    29,    30,    31,    32,    33,    34,
01187       35,    36,    37,    38,    39,    40,    41,    42,    43,    44,
01188       45,    46,    47,    48,    49,    50,    51,    52,    53,    54,
01189       55,    56,    57,    58,    59,    60,    61,    62,    63,    64,
01190       65,    75,    76,    85,    86,    87,    88,    89,    90,    91,
01191       92,    93,    94,    95,    96,    97,    98,    99,   100,   101,
01192      102,   103,   104,   105,   106,   107,   108,   109,   110,   111,
01193      112,   126,   129
01194 };
01195 
01196 #if YYDEBUG
01197 /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
01198    YYRHS.  */
01199 static const yytype_uint16 yyprhs[] =
01200 {
01201        0,     0,     3,     4,     7,    10,    12,    14,    18,    21,
01202       23,    24,    30,    35,    38,    40,    42,    46,    49,    51,
01203       52,    58,    59,    64,    68,    72,    76,    79,    83,    87,
01204       91,    95,    99,   104,   106,   110,   114,   121,   127,   133,
01205      139,   145,   149,   153,   157,   161,   163,   167,   171,   173,
01206      177,   181,   185,   188,   190,   192,   194,   196,   198,   203,
01207      204,   210,   212,   215,   219,   224,   230,   235,   241,   244,
01208      247,   250,   253,   256,   258,   262,   264,   268,   270,   273,
01209      277,   283,   286,   291,   294,   299,   301,   305,   307,   311,
01210      314,   318,   320,   324,   326,   328,   333,   337,   341,   345,
01211      349,   352,   354,   356,   358,   363,   367,   371,   375,   379,
01212      382,   384,   386,   388,   391,   393,   397,   399,   401,   403,
01213      405,   407,   409,   411,   413,   415,   417,   418,   423,   425,
01214      427,   429,   431,   433,   435,   437,   439,   441,   443,   445,
01215      447,   449,   451,   453,   455,   457,   459,   461,   463,   465,
01216      467,   469,   471,   473,   475,   477,   479,   481,   483,   485,
01217      487,   489,   491,   493,   495,   497,   499,   501,   503,   505,
01218      507,   509,   511,   513,   515,   517,   519,   521,   523,   525,
01219      527,   529,   531,   533,   535,   537,   539,   541,   543,   545,
01220      547,   549,   551,   553,   555,   557,   559,   561,   563,   565,
01221      569,   575,   579,   585,   592,   598,   604,   610,   616,   621,
01222      625,   629,   633,   637,   641,   645,   649,   653,   657,   662,
01223      667,   670,   673,   677,   681,   685,   689,   693,   697,   701,
01224      705,   709,   713,   717,   721,   725,   728,   731,   735,   739,
01225      743,   747,   748,   753,   760,   762,   764,   766,   769,   774,
01226      777,   781,   783,   785,   787,   789,   792,   797,   800,   802,
01227      805,   808,   813,   815,   816,   819,   822,   825,   827,   829,
01228      832,   836,   841,   845,   850,   853,   855,   857,   859,   861,
01229      863,   865,   867,   869,   871,   873,   875,   876,   881,   882,
01230      886,   887,   892,   896,   900,   903,   907,   911,   913,   918,
01231      922,   924,   925,   932,   937,   941,   944,   946,   949,   952,
01232      959,   966,   967,   968,   976,   977,   978,   986,   992,   997,
01233      998,   999,  1009,  1010,  1017,  1018,  1019,  1028,  1029,  1035,
01234     1036,  1043,  1044,  1045,  1055,  1057,  1059,  1061,  1063,  1065,
01235     1067,  1069,  1071,  1073,  1075,  1077,  1079,  1081,  1083,  1085,
01236     1087,  1089,  1091,  1094,  1096,  1098,  1100,  1106,  1108,  1111,
01237     1113,  1115,  1117,  1121,  1123,  1127,  1129,  1134,  1141,  1145,
01238     1151,  1154,  1159,  1161,  1165,  1170,  1173,  1176,  1178,  1181,
01239     1182,  1189,  1198,  1203,  1210,  1215,  1218,  1225,  1228,  1233,
01240     1240,  1243,  1248,  1251,  1256,  1258,  1260,  1262,  1266,  1268,
01241     1273,  1275,  1280,  1282,  1286,  1288,  1290,  1291,  1292,  1293,
01242     1299,  1304,  1306,  1310,  1314,  1315,  1321,  1324,  1329,  1335,
01243     1341,  1344,  1345,  1351,  1352,  1358,  1362,  1363,  1368,  1369,
01244     1374,  1377,  1379,  1384,  1385,  1391,  1392,  1398,  1404,  1406,
01245     1408,  1415,  1417,  1419,  1421,  1423,  1426,  1428,  1431,  1433,
01246     1435,  1437,  1439,  1441,  1443,  1445,  1448,  1452,  1456,  1460,
01247     1464,  1468,  1469,  1473,  1475,  1478,  1482,  1486,  1487,  1491,
01248     1495,  1499,  1503,  1507,  1508,  1512,  1513,  1517,  1518,  1521,
01249     1522,  1525,  1526,  1529,  1531,  1532,  1536,  1537,  1538,  1539,
01250     1546,  1548,  1550,  1552,  1554,  1557,  1559,  1561,  1563,  1565,
01251     1569,  1571,  1573,  1576,  1579,  1581,  1583,  1585,  1587,  1589,
01252     1591,  1593,  1595,  1597,  1599,  1601,  1603,  1605,  1607,  1609,
01253     1611,  1613,  1615,  1617,  1618,  1623,  1626,  1630,  1633,  1638,
01254     1641,  1644,  1646,  1649,  1650,  1657,  1666,  1671,  1678,  1683,
01255     1690,  1693,  1698,  1705,  1708,  1713,  1716,  1721,  1723,  1724,
01256     1726,  1728,  1730,  1732,  1734,  1736,  1738,  1742,  1744,  1748,
01257     1751,  1754,  1756,  1760,  1762,  1766,  1768,  1770,  1773,  1775,
01258     1779,  1783,  1785,  1789,  1791,  1795,  1797,  1799,  1802,  1804,
01259     1806,  1808,  1811,  1814,  1816,  1818,  1819,  1824,  1826,  1829,
01260     1831,  1835,  1839,  1842,  1845,  1847,  1849,  1851,  1853,  1855,
01261     1857,  1859,  1861,  1863,  1865,  1867,  1869,  1870,  1872,  1873,
01262     1875,  1878,  1881,  1882,  1884,  1886,  1888,  1890,  1892,  1895
01263 };
01264 
01265 /* YYRHS -- A `-1'-separated list of the rules' RHS.  */
01266 static const yytype_int16 yyrhs[] =
01267 {
01268      143,     0,    -1,    -1,   144,   145,    -1,   146,   332,    -1,
01269      339,    -1,   147,    -1,   146,   338,   147,    -1,     1,   147,
01270       -1,   154,    -1,    -1,    47,   148,   130,   145,   131,    -1,
01271      150,   261,   229,   264,    -1,   151,   332,    -1,   339,    -1,
01272      152,    -1,   151,   338,   152,    -1,     1,   154,    -1,   154,
01273       -1,    -1,    47,   153,   130,   145,   131,    -1,    -1,    45,
01274      177,   155,   177,    -1,    45,    54,    54,    -1,    45,    54,
01275       64,    -1,    45,    54,    63,    -1,     6,   178,    -1,   154,
01276       40,   158,    -1,   154,    41,   158,    -1,   154,    42,   158,
01277       -1,   154,    43,   158,    -1,   154,    44,   154,    -1,    48,
01278      130,   150,   131,    -1,   156,    -1,   165,   113,   159,    -1,
01279      296,    87,   159,    -1,   214,   132,   188,   335,    87,   159,
01280       -1,   214,   133,    52,    87,   159,    -1,   214,   133,    56,
01281       87,   159,    -1,   214,    85,    56,    87,   159,    -1,   214,
01282       85,    52,    87,   159,    -1,   297,    87,   159,    -1,   172,
01283      113,   195,    -1,   165,   113,   184,    -1,   165,   113,   195,
01284       -1,   157,    -1,   172,   113,   159,    -1,   172,   113,   156,
01285       -1,   159,    -1,   157,    37,   157,    -1,   157,    38,   157,
01286       -1,    39,   333,   157,    -1,   127,   159,    -1,   182,    -1,
01287      157,    -1,   164,    -1,   160,    -1,   250,    -1,   250,   331,
01288      329,   190,    -1,    -1,    94,   162,   237,   150,   131,    -1,
01289      328,    -1,   163,   190,    -1,   163,   190,   161,    -1,   214,
01290      133,   329,   190,    -1,   214,   133,   329,   190,   161,    -1,
01291      214,    85,   329,   190,    -1,   214,    85,   329,   190,   161,
01292       -1,    32,   190,    -1,    31,   190,    -1,    30,   189,    -1,
01293       21,   189,    -1,    22,   189,    -1,   167,    -1,    89,   166,
01294      334,    -1,   167,    -1,    89,   166,   334,    -1,   169,    -1,
01295      169,   168,    -1,   169,    95,   171,    -1,   169,    95,   171,
01296      134,   170,    -1,   169,    95,    -1,   169,    95,   134,   170,
01297       -1,    95,   171,    -1,    95,   171,   134,   170,    -1,    95,
01298       -1,    95,   134,   170,    -1,   171,    -1,    89,   166,   334,
01299       -1,   168,   134,    -1,   169,   168,   134,    -1,   168,    -1,
01300      170,   134,   168,    -1,   293,    -1,   294,    -1,   214,   132,
01301      188,   335,    -1,   214,   133,    52,    -1,   214,    85,    52,
01302       -1,   214,   133,    56,    -1,   214,    85,    56,    -1,    86,
01303       56,    -1,   297,    -1,   293,    -1,   294,    -1,   214,   132,
01304      188,   335,    -1,   214,   133,    52,    -1,   214,    85,    52,
01305       -1,   214,   133,    56,    -1,   214,    85,    56,    -1,    86,
01306       56,    -1,   297,    -1,    52,    -1,    56,    -1,    86,   173,
01307       -1,   173,    -1,   214,    85,   173,    -1,    52,    -1,    56,
01308       -1,    53,    -1,   180,    -1,   181,    -1,   175,    -1,   289,
01309       -1,   176,    -1,   291,    -1,   177,    -1,    -1,   178,   134,
01310      179,   177,    -1,   118,    -1,   119,    -1,   120,    -1,    69,
01311       -1,    70,    -1,    71,    -1,    77,    -1,    78,    -1,   116,
01312       -1,    73,    -1,   117,    -1,    74,    -1,    72,    -1,    83,
01313       -1,    84,    -1,   121,    -1,   122,    -1,   123,    -1,    95,
01314       -1,   124,    -1,   125,    -1,    68,    -1,    96,    -1,   127,
01315       -1,   128,    -1,    66,    -1,    67,    -1,    81,    -1,    82,
01316       -1,   135,    -1,    49,    -1,    50,    -1,    51,    -1,    47,
01317       -1,    48,    -1,    45,    -1,    37,    -1,     7,    -1,    21,
01318       -1,    16,    -1,     3,    -1,     5,    -1,    46,    -1,    26,
01319       -1,    15,    -1,    14,    -1,    10,    -1,     9,    -1,    36,
01320       -1,    20,    -1,    25,    -1,     4,    -1,    22,    -1,    34,
01321       -1,    39,    -1,    38,    -1,    23,    -1,     8,    -1,    24,
01322       -1,    30,    -1,    33,    -1,    32,    -1,    13,    -1,    35,
01323       -1,     6,    -1,    17,    -1,    31,    -1,    11,    -1,    12,
01324       -1,    18,    -1,    19,    -1,   172,   113,   182,    -1,   172,
01325      113,   182,    44,   182,    -1,   296,    87,   182,    -1,   296,
01326       87,   182,    44,   182,    -1,   214,   132,   188,   335,    87,
01327      182,    -1,   214,   133,    52,    87,   182,    -1,   214,   133,
01328       56,    87,   182,    -1,   214,    85,    52,    87,   182,    -1,
01329      214,    85,    56,    87,   182,    -1,    86,    56,    87,   182,
01330       -1,   297,    87,   182,    -1,   182,    79,   182,    -1,   182,
01331       80,   182,    -1,   182,   121,   182,    -1,   182,   122,   182,
01332       -1,   182,   123,   182,    -1,   182,   124,   182,    -1,   182,
01333      125,   182,    -1,   182,    68,   182,    -1,   126,    59,    68,
01334      182,    -1,   126,    60,    68,   182,    -1,    66,   182,    -1,
01335       67,   182,    -1,   182,   118,   182,    -1,   182,   119,   182,
01336       -1,   182,   120,   182,    -1,   182,    69,   182,    -1,   182,
01337      116,   182,    -1,   182,    73,   182,    -1,   182,   117,   182,
01338       -1,   182,    74,   182,    -1,   182,    70,   182,    -1,   182,
01339       71,   182,    -1,   182,    72,   182,    -1,   182,    77,   182,
01340       -1,   182,    78,   182,    -1,   127,   182,    -1,   128,   182,
01341       -1,   182,    83,   182,    -1,   182,    84,   182,    -1,   182,
01342       75,   182,    -1,   182,    76,   182,    -1,    -1,    46,   333,
01343      183,   182,    -1,   182,   114,   182,   333,   115,   182,    -1,
01344      196,    -1,   182,    -1,   339,    -1,   194,   336,    -1,   194,
01345      134,   326,   336,    -1,   326,   336,    -1,   136,   188,   334,
01346       -1,   339,    -1,   186,    -1,   339,    -1,   189,    -1,   194,
01347      134,    -1,   194,   134,   326,   134,    -1,   326,   134,    -1,
01348      164,    -1,   194,   193,    -1,   326,   193,    -1,   194,   134,
01349      326,   193,    -1,   192,    -1,    -1,   191,   189,    -1,    97,
01350      184,    -1,   134,   192,    -1,   339,    -1,   184,    -1,    95,
01351      184,    -1,   194,   134,   184,    -1,   194,   134,    95,   184,
01352       -1,   194,   134,   184,    -1,   194,   134,    95,   184,    -1,
01353       95,   184,    -1,   265,    -1,   266,    -1,   269,    -1,   270,
01354       -1,   271,    -1,   276,    -1,   274,    -1,   277,    -1,   295,
01355       -1,   297,    -1,    53,    -1,    -1,   215,   197,   149,   225,
01356       -1,    -1,    90,   198,   334,    -1,    -1,    90,   157,   199,
01357      334,    -1,    89,   150,   137,    -1,   214,    85,    56,    -1,
01358       86,    56,    -1,    92,   185,   138,    -1,    93,   325,   131,
01359       -1,    30,    -1,    31,   136,   189,   334,    -1,    31,   136,
01360      334,    -1,    31,    -1,    -1,    46,   333,   136,   200,   157,
01361      334,    -1,    39,   136,   157,   334,    -1,    39,   136,   334,
01362       -1,   163,   256,    -1,   251,    -1,   251,   256,    -1,    98,
01363      242,    -1,   216,   158,   226,   150,   228,   225,    -1,   217,
01364      158,   226,   150,   229,   225,    -1,    -1,    -1,   218,   201,
01365      158,   227,   202,   150,   225,    -1,    -1,    -1,   219,   203,
01366      158,   227,   204,   150,   225,    -1,   220,   158,   332,   259,
01367      225,    -1,   220,   332,   259,   225,    -1,    -1,    -1,   221,
01368      230,    25,   205,   158,   227,   206,   150,   225,    -1,    -1,
01369      222,   174,   298,   207,   149,   225,    -1,    -1,    -1,   222,
01370       83,   157,   208,   337,   209,   149,   225,    -1,    -1,   223,
01371      174,   210,   149,   225,    -1,    -1,   224,   175,   211,   300,
01372      149,   225,    -1,    -1,    -1,   224,   323,   331,   212,   175,
01373      213,   300,   149,   225,    -1,    21,    -1,    22,    -1,    23,
01374       -1,    24,    -1,   196,    -1,     7,    -1,    11,    -1,    12,
01375       -1,    18,    -1,    19,    -1,    16,    -1,    20,    -1,     3,
01376       -1,     4,    -1,     5,    -1,    10,    -1,   337,    -1,    13,
01377       -1,   337,    13,    -1,   337,    -1,    27,    -1,   229,    -1,
01378       14,   158,   226,   150,   228,    -1,   339,    -1,    15,   150,
01379       -1,   172,    -1,   165,    -1,   305,    -1,    89,   233,   334,
01380       -1,   231,    -1,   232,   134,   231,    -1,   232,    -1,   232,
01381      134,    95,   305,    -1,   232,   134,    95,   305,   134,   232,
01382       -1,   232,   134,    95,    -1,   232,   134,    95,   134,   232,
01383       -1,    95,   305,    -1,    95,   305,   134,   232,    -1,    95,
01384       -1,    95,   134,   232,    -1,   310,   134,   313,   322,    -1,
01385      310,   322,    -1,   313,   322,    -1,   321,    -1,   134,   234,
01386       -1,    -1,   307,   134,   316,   134,   319,   235,    -1,   307,
01387      134,   316,   134,   319,   134,   307,   235,    -1,   307,   134,
01388      316,   235,    -1,   307,   134,   316,   134,   307,   235,    -1,
01389      307,   134,   319,   235,    -1,   307,   134,    -1,   307,   134,
01390      319,   134,   307,   235,    -1,   307,   235,    -1,   316,   134,
01391      319,   235,    -1,   316,   134,   319,   134,   307,   235,    -1,
01392      316,   235,    -1,   316,   134,   307,   235,    -1,   319,   235,
01393       -1,   319,   134,   307,   235,    -1,   234,    -1,   339,    -1,
01394      238,    -1,   118,   239,   118,    -1,    76,    -1,   118,   236,
01395      239,   118,    -1,   333,    -1,   333,   139,   240,   333,    -1,
01396      241,    -1,   240,   134,   241,    -1,    52,    -1,   304,    -1,
01397       -1,    -1,    -1,   243,   244,   246,   245,   247,    -1,   136,
01398      303,   239,   137,    -1,   303,    -1,   111,   150,   131,    -1,
01399       29,   150,    10,    -1,    -1,    28,   249,   237,   150,    10,
01400       -1,   164,   248,    -1,   250,   331,   329,   187,    -1,   250,
01401      331,   329,   187,   256,    -1,   250,   331,   329,   190,   248,
01402       -1,   163,   186,    -1,    -1,   214,   133,   329,   252,   187,
01403       -1,    -1,   214,    85,   329,   253,   186,    -1,   214,    85,
01404      330,    -1,    -1,   214,   133,   254,   186,    -1,    -1,   214,
01405       85,   255,   186,    -1,    32,   186,    -1,    32,    -1,   214,
01406      132,   188,   335,    -1,    -1,   130,   257,   237,   150,   131,
01407       -1,    -1,    26,   258,   237,   150,    10,    -1,    17,   194,
01408      226,   150,   260,    -1,   229,    -1,   259,    -1,     8,   262,
01409      263,   226,   150,   261,    -1,   339,    -1,   184,    -1,   195,
01410       -1,   339,    -1,    88,   172,    -1,   339,    -1,     9,   150,
01411       -1,   339,    -1,   292,    -1,   289,    -1,   291,    -1,   267,
01412       -1,    62,    -1,   268,    -1,   267,   268,    -1,   100,   280,
01413      110,    -1,   101,   281,   110,    -1,   102,   282,    65,    -1,
01414      103,   140,   110,    -1,   103,   272,   110,    -1,    -1,   272,
01415      273,   140,    -1,   283,    -1,   273,   283,    -1,   105,   140,
01416      110,    -1,   105,   275,   110,    -1,    -1,   275,   273,   140,
01417       -1,   104,   140,   110,    -1,   104,   278,   110,    -1,   106,
01418      140,   110,    -1,   106,   279,   110,    -1,    -1,   278,    61,
01419      140,    -1,    -1,   279,    61,   140,    -1,    -1,   280,   283,
01420       -1,    -1,   281,   283,    -1,    -1,   282,   283,    -1,    61,
01421       -1,    -1,   109,   284,   288,    -1,    -1,    -1,    -1,   107,
01422      285,   286,   287,   150,   108,    -1,    54,    -1,    55,    -1,
01423       57,    -1,   297,    -1,    99,   290,    -1,   175,    -1,    55,
01424       -1,    54,    -1,    57,    -1,    99,   281,   110,    -1,    59,
01425       -1,    60,    -1,   126,    59,    -1,   126,    60,    -1,    52,
01426       -1,    55,    -1,    54,    -1,    56,    -1,    57,    -1,    34,
01427       -1,    33,    -1,    35,    -1,    36,    -1,    50,    -1,    49,
01428       -1,    51,    -1,   293,    -1,   294,    -1,   293,    -1,   294,
01429       -1,    63,    -1,    64,    -1,   337,    -1,    -1,   117,   299,
01430      158,   337,    -1,     1,   337,    -1,   136,   303,   334,    -1,
01431      303,   337,    -1,   311,   134,   313,   322,    -1,   311,   322,
01432       -1,   313,   322,    -1,   321,    -1,   134,   301,    -1,    -1,
01433      307,   134,   317,   134,   319,   302,    -1,   307,   134,   317,
01434      134,   319,   134,   307,   302,    -1,   307,   134,   317,   302,
01435       -1,   307,   134,   317,   134,   307,   302,    -1,   307,   134,
01436      319,   302,    -1,   307,   134,   319,   134,   307,   302,    -1,
01437      307,   302,    -1,   317,   134,   319,   302,    -1,   317,   134,
01438      319,   134,   307,   302,    -1,   317,   302,    -1,   317,   134,
01439      307,   302,    -1,   319,   302,    -1,   319,   134,   307,   302,
01440       -1,   301,    -1,    -1,    56,    -1,    55,    -1,    54,    -1,
01441       57,    -1,   304,    -1,    52,    -1,   305,    -1,    89,   233,
01442      334,    -1,   306,    -1,   307,   134,   306,    -1,    58,   184,
01443       -1,    58,   214,    -1,   309,    -1,   310,   134,   309,    -1,
01444      308,    -1,   311,   134,   308,    -1,    68,    -1,    96,    -1,
01445      312,    52,    -1,   312,    -1,    52,   113,   184,    -1,    52,
01446      113,   214,    -1,   315,    -1,   316,   134,   315,    -1,   314,
01447       -1,   317,   134,   314,    -1,   123,    -1,    95,    -1,   318,
01448       52,    -1,   318,    -1,   120,    -1,    97,    -1,   320,    52,
01449       -1,   134,   321,    -1,   339,    -1,   295,    -1,    -1,   136,
01450      324,   157,   334,    -1,   339,    -1,   326,   336,    -1,   327,
01451       -1,   326,   134,   327,    -1,   184,    88,   184,    -1,    58,
01452      184,    -1,    96,   184,    -1,    52,    -1,    56,    -1,    53,
01453       -1,    52,    -1,    56,    -1,    53,    -1,   180,    -1,    52,
01454       -1,    53,    -1,   180,    -1,   133,    -1,    85,    -1,    -1,
01455      338,    -1,    -1,   141,    -1,   333,   137,    -1,   333,   138,
01456       -1,    -1,   141,    -1,   134,    -1,   139,    -1,   141,    -1,
01457      337,    -1,   338,   139,    -1,    -1
01458 };
01459 
01460 /* YYRLINE[YYN] -- source line where rule number YYN was defined.  */
01461 static const yytype_uint16 yyrline[] =
01462 {
01463        0,   854,   854,   854,   885,   896,   905,   913,   921,   927,
01464      929,   928,   949,   982,   993,  1002,  1010,  1018,  1024,  1029,
01465     1028,  1049,  1049,  1057,  1065,  1076,  1086,  1094,  1103,  1112,
01466     1125,  1138,  1147,  1159,  1160,  1170,  1175,  1196,  1201,  1206,
01467     1216,  1221,  1231,  1240,  1249,  1258,  1261,  1270,  1282,  1283,
01468     1291,  1299,  1307,  1315,  1318,  1330,  1331,  1334,  1335,  1347,
01469     1346,  1368,  1378,  1387,  1400,  1409,  1421,  1430,  1442,  1451,
01470     1460,  1468,  1476,  1486,  1487,  1497,  1498,  1508,  1516,  1524,
01471     1532,  1541,  1549,  1558,  1566,  1575,  1583,  1594,  1595,  1605,
01472     1613,  1623,  1631,  1641,  1645,  1649,  1657,  1665,  1673,  1681,
01473     1693,  1703,  1715,  1724,  1733,  1741,  1749,  1757,  1765,  1778,
01474     1791,  1802,  1810,  1813,  1821,  1829,  1839,  1840,  1841,  1842,
01475     1847,  1858,  1859,  1862,  1870,  1873,  1881,  1881,  1891,  1892,
01476     1893,  1894,  1895,  1896,  1897,  1898,  1899,  1900,  1901,  1902,
01477     1903,  1904,  1905,  1906,  1907,  1908,  1909,  1910,  1911,  1912,
01478     1913,  1914,  1915,  1916,  1917,  1918,  1919,  1920,  1923,  1923,
01479     1923,  1924,  1924,  1925,  1925,  1925,  1926,  1926,  1926,  1926,
01480     1927,  1927,  1927,  1927,  1928,  1928,  1928,  1929,  1929,  1929,
01481     1929,  1930,  1930,  1930,  1930,  1931,  1931,  1931,  1931,  1932,
01482     1932,  1932,  1932,  1933,  1933,  1933,  1933,  1934,  1934,  1937,
01483     1946,  1956,  1961,  1971,  1997,  2002,  2007,  2012,  2022,  2032,
01484     2043,  2057,  2071,  2079,  2087,  2095,  2103,  2111,  2119,  2128,
01485     2137,  2145,  2153,  2161,  2169,  2177,  2185,  2193,  2201,  2209,
01486     2217,  2225,  2233,  2241,  2252,  2260,  2268,  2276,  2284,  2292,
01487     2300,  2308,  2308,  2318,  2328,  2334,  2346,  2347,  2351,  2359,
01488     2369,  2379,  2380,  2383,  2384,  2385,  2389,  2397,  2407,  2416,
01489     2424,  2434,  2443,  2452,  2452,  2464,  2474,  2478,  2484,  2492,
01490     2500,  2514,  2530,  2544,  2559,  2569,  2570,  2571,  2572,  2573,
01491     2574,  2575,  2576,  2577,  2578,  2579,  2588,  2587,  2615,  2615,
01492     2623,  2623,  2631,  2639,  2647,  2655,  2668,  2676,  2684,  2692,
01493     2700,  2708,  2708,  2718,  2726,  2734,  2744,  2745,  2755,  2759,
01494     2771,  2783,  2783,  2783,  2794,  2794,  2794,  2805,  2816,  2825,
01495     2827,  2824,  2891,  2890,  2912,  2917,  2911,  2936,  2935,  2957,
01496     2956,  2979,  2980,  2979,  3000,  3008,  3016,  3024,  3034,  3046,
01497     3052,  3058,  3064,  3070,  3076,  3082,  3088,  3094,  3100,  3110,
01498     3116,  3121,  3122,  3129,  3134,  3137,  3138,  3151,  3152,  3162,
01499     3163,  3166,  3174,  3184,  3192,  3202,  3210,  3219,  3228,  3236,
01500     3244,  3253,  3265,  3273,  3284,  3288,  3292,  3296,  3302,  3307,
01501     3312,  3316,  3320,  3324,  3328,  3332,  3340,  3344,  3348,  3352,
01502     3356,  3360,  3364,  3368,  3372,  3378,  3379,  3385,  3394,  3403,
01503     3414,  3418,  3428,  3435,  3444,  3452,  3458,  3461,  3466,  3458,
01504     3482,  3490,  3500,  3504,  3511,  3510,  3531,  3547,  3556,  3568,
01505     3582,  3592,  3591,  3608,  3607,  3623,  3632,  3631,  3649,  3648,
01506     3665,  3673,  3681,  3696,  3695,  3715,  3714,  3735,  3747,  3748,
01507     3751,  3770,  3773,  3781,  3789,  3792,  3796,  3799,  3807,  3810,
01508     3811,  3819,  3822,  3839,  3840,  3841,  3851,  3861,  3888,  3953,
01509     3962,  3973,  3980,  3990,  3998,  4008,  4017,  4028,  4035,  4047,
01510     4056,  4066,  4075,  4086,  4093,  4104,  4111,  4126,  4133,  4144,
01511     4151,  4162,  4169,  4198,  4200,  4199,  4216,  4222,  4227,  4215,
01512     4246,  4254,  4262,  4270,  4273,  4284,  4285,  4286,  4287,  4290,
01513     4301,  4302,  4303,  4311,  4321,  4322,  4323,  4324,  4325,  4328,
01514     4329,  4330,  4331,  4332,  4333,  4334,  4337,  4350,  4360,  4368,
01515     4378,  4379,  4382,  4391,  4390,  4399,  4411,  4421,  4429,  4433,
01516     4437,  4441,  4447,  4452,  4457,  4461,  4465,  4469,  4473,  4477,
01517     4481,  4485,  4489,  4493,  4497,  4501,  4505,  4509,  4514,  4520,
01518     4529,  4538,  4547,  4558,  4559,  4566,  4575,  4594,  4601,  4614,
01519     4626,  4638,  4646,  4663,  4671,  4687,  4688,  4691,  4696,  4702,
01520     4714,  4726,  4734,  4750,  4758,  4774,  4775,  4778,  4791,  4802,
01521     4803,  4806,  4823,  4827,  4837,  4847,  4847,  4876,  4877,  4887,
01522     4894,  4904,  4912,  4920,  4932,  4933,  4934,  4937,  4938,  4939,
01523     4940,  4943,  4944,  4945,  4948,  4953,  4960,  4961,  4964,  4965,
01524     4968,  4971,  4974,  4975,  4976,  4979,  4980,  4983,  4984,  4988
01525 };
01526 #endif
01527 
01528 #if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
01529 /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
01530    First, the terminals, then, starting at YYNTOKENS, nonterminals.  */
01531 static const char *const yytname[] =
01532 {
01533   "\"end-of-input\"", "error", "$undefined", "keyword_class",
01534   "keyword_module", "keyword_def", "keyword_undef", "keyword_begin",
01535   "keyword_rescue", "keyword_ensure", "keyword_end", "keyword_if",
01536   "keyword_unless", "keyword_then", "keyword_elsif", "keyword_else",
01537   "keyword_case", "keyword_when", "keyword_while", "keyword_until",
01538   "keyword_for", "keyword_break", "keyword_next", "keyword_redo",
01539   "keyword_retry", "keyword_in", "keyword_do", "keyword_do_cond",
01540   "keyword_do_block", "keyword_do_LAMBDA", "keyword_return",
01541   "keyword_yield", "keyword_super", "keyword_self", "keyword_nil",
01542   "keyword_true", "keyword_false", "keyword_and", "keyword_or",
01543   "keyword_not", "modifier_if", "modifier_unless", "modifier_while",
01544   "modifier_until", "modifier_rescue", "keyword_alias", "keyword_defined",
01545   "keyword_BEGIN", "keyword_END", "keyword__LINE__", "keyword__FILE__",
01546   "keyword__ENCODING__", "tIDENTIFIER", "tFID", "tGVAR", "tIVAR",
01547   "tCONSTANT", "tCVAR", "tLABEL", "tINTEGER", "tFLOAT", "tSTRING_CONTENT",
01548   "tCHAR", "tNTH_REF", "tBACK_REF", "tREGEXP_END", "\"unary+\"",
01549   "\"unary-\"", "\"**\"", "\"<=>\"", "\"==\"", "\"===\"", "\"!=\"",
01550   "\">=\"", "\"<=\"", "\"&&\"", "\"||\"", "\"=~\"", "\"!~\"", "\"..\"",
01551   "\"...\"", "\"[]\"", "\"[]=\"", "\"<<\"", "\">>\"", "\"::\"",
01552   "\":: at EXPR_BEG\"", "tOP_ASGN", "\"=>\"", "\"(\"", "\"( arg\"",
01553   "\")\"", "\"[\"", "\"{\"", "\"{ arg\"", "\"*\"", "\"**arg\"", "\"&\"",
01554   "\"->\"", "tSYMBEG", "tSTRING_BEG", "tXSTRING_BEG", "tREGEXP_BEG",
01555   "tWORDS_BEG", "tQWORDS_BEG", "tSYMBOLS_BEG", "tQSYMBOLS_BEG",
01556   "tSTRING_DBEG", "tSTRING_DEND", "tSTRING_DVAR", "tSTRING_END", "tLAMBEG",
01557   "tLOWEST", "'='", "'?'", "':'", "'>'", "'<'", "'|'", "'^'", "'&'", "'+'",
01558   "'-'", "'*'", "'/'", "'%'", "tUMINUS_NUM", "'!'", "'~'", "tLAST_TOKEN",
01559   "'{'", "'}'", "'['", "'.'", "','", "'`'", "'('", "')'", "']'", "';'",
01560   "' '", "'\\n'", "$accept", "program", "$@1", "top_compstmt", "top_stmts",
01561   "top_stmt", "$@2", "bodystmt", "compstmt", "stmts", "stmt_or_begin",
01562   "$@3", "stmt", "$@4", "command_asgn", "expr", "expr_value",
01563   "command_call", "block_command", "cmd_brace_block", "@5", "fcall",
01564   "command", "mlhs", "mlhs_inner", "mlhs_basic", "mlhs_item", "mlhs_head",
01565   "mlhs_post", "mlhs_node", "lhs", "cname", "cpath", "fname", "fsym",
01566   "fitem", "undef_list", "$@6", "op", "reswords", "arg", "$@7",
01567   "arg_value", "aref_args", "paren_args", "opt_paren_args",
01568   "opt_call_args", "call_args", "command_args", "@8", "block_arg",
01569   "opt_block_arg", "args", "mrhs", "primary", "@9", "$@10", "$@11", "$@12",
01570   "$@13", "$@14", "$@15", "$@16", "$@17", "$@18", "@19", "@20", "@21",
01571   "@22", "@23", "$@24", "$@25", "primary_value", "k_begin", "k_if",
01572   "k_unless", "k_while", "k_until", "k_case", "k_for", "k_class",
01573   "k_module", "k_def", "k_end", "then", "do", "if_tail", "opt_else",
01574   "for_var", "f_marg", "f_marg_list", "f_margs", "block_args_tail",
01575   "opt_block_args_tail", "block_param", "opt_block_param",
01576   "block_param_def", "opt_bv_decl", "bv_decls", "bvar", "lambda", "@26",
01577   "@27", "@28", "f_larglist", "lambda_body", "do_block", "@29",
01578   "block_call", "method_call", "@30", "@31", "@32", "@33", "brace_block",
01579   "@34", "@35", "case_body", "cases", "opt_rescue", "exc_list", "exc_var",
01580   "opt_ensure", "literal", "strings", "string", "string1", "xstring",
01581   "regexp", "words", "word_list", "word", "symbols", "symbol_list",
01582   "qwords", "qsymbols", "qword_list", "qsym_list", "string_contents",
01583   "xstring_contents", "regexp_contents", "string_content", "@36", "@37",
01584   "@38", "@39", "string_dvar", "symbol", "sym", "dsym", "numeric",
01585   "user_variable", "keyword_variable", "var_ref", "var_lhs", "backref",
01586   "superclass", "$@40", "f_arglist", "args_tail", "opt_args_tail",
01587   "f_args", "f_bad_arg", "f_norm_arg", "f_arg_item", "f_arg", "f_kw",
01588   "f_block_kw", "f_block_kwarg", "f_kwarg", "kwrest_mark", "f_kwrest",
01589   "f_opt", "f_block_opt", "f_block_optarg", "f_optarg", "restarg_mark",
01590   "f_rest_arg", "blkarg_mark", "f_block_arg", "opt_f_block_arg",
01591   "singleton", "$@41", "assoc_list", "assocs", "assoc", "operation",
01592   "operation2", "operation3", "dot_or_colon", "opt_terms", "opt_nl",
01593   "rparen", "rbracket", "trailer", "term", "terms", "none", 0
01594 };
01595 #endif
01596 
01597 # ifdef YYPRINT
01598 /* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
01599    token YYLEX-NUM.  */
01600 static const yytype_uint16 yytoknum[] =
01601 {
01602        0,   256,   257,   258,   259,   260,   261,   262,   263,   264,
01603      265,   266,   267,   268,   269,   270,   271,   272,   273,   274,
01604      275,   276,   277,   278,   279,   280,   281,   282,   283,   284,
01605      285,   286,   287,   288,   289,   290,   291,   292,   293,   294,
01606      295,   296,   297,   298,   299,   300,   301,   302,   303,   304,
01607      305,   306,   307,   308,   309,   310,   311,   312,   313,   314,
01608      315,   316,   317,   318,   319,   320,   130,   131,   132,   134,
01609      139,   140,   141,   138,   137,   321,   322,   142,   143,   128,
01610      129,   144,   145,   135,   136,   323,   324,   325,   326,   327,
01611      328,   329,   330,   331,   332,   333,   334,   335,   336,   337,
01612      338,   339,   340,   341,   342,   343,   344,   345,   346,   347,
01613      348,   349,   350,    61,    63,    58,    62,    60,   124,    94,
01614       38,    43,    45,    42,    47,    37,   351,    33,   126,   352,
01615      123,   125,    91,    46,    44,    96,    40,    41,    93,    59,
01616       32,    10
01617 };
01618 # endif
01619 
01620 /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives.  */
01621 static const yytype_uint16 yyr1[] =
01622 {
01623        0,   142,   144,   143,   145,   146,   146,   146,   146,   147,
01624      148,   147,   149,   150,   151,   151,   151,   151,   152,   153,
01625      152,   155,   154,   154,   154,   154,   154,   154,   154,   154,
01626      154,   154,   154,   154,   154,   154,   154,   154,   154,   154,
01627      154,   154,   154,   154,   154,   154,   156,   156,   157,   157,
01628      157,   157,   157,   157,   158,   159,   159,   160,   160,   162,
01629      161,   163,   164,   164,   164,   164,   164,   164,   164,   164,
01630      164,   164,   164,   165,   165,   166,   166,   167,   167,   167,
01631      167,   167,   167,   167,   167,   167,   167,   168,   168,   169,
01632      169,   170,   170,   171,   171,   171,   171,   171,   171,   171,
01633      171,   171,   172,   172,   172,   172,   172,   172,   172,   172,
01634      172,   173,   173,   174,   174,   174,   175,   175,   175,   175,
01635      175,   176,   176,   177,   177,   178,   179,   178,   180,   180,
01636      180,   180,   180,   180,   180,   180,   180,   180,   180,   180,
01637      180,   180,   180,   180,   180,   180,   180,   180,   180,   180,
01638      180,   180,   180,   180,   180,   180,   180,   180,   181,   181,
01639      181,   181,   181,   181,   181,   181,   181,   181,   181,   181,
01640      181,   181,   181,   181,   181,   181,   181,   181,   181,   181,
01641      181,   181,   181,   181,   181,   181,   181,   181,   181,   181,
01642      181,   181,   181,   181,   181,   181,   181,   181,   181,   182,
01643      182,   182,   182,   182,   182,   182,   182,   182,   182,   182,
01644      182,   182,   182,   182,   182,   182,   182,   182,   182,   182,
01645      182,   182,   182,   182,   182,   182,   182,   182,   182,   182,
01646      182,   182,   182,   182,   182,   182,   182,   182,   182,   182,
01647      182,   183,   182,   182,   182,   184,   185,   185,   185,   185,
01648      186,   187,   187,   188,   188,   188,   188,   188,   189,   189,
01649      189,   189,   189,   191,   190,   192,   193,   193,   194,   194,
01650      194,   194,   195,   195,   195,   196,   196,   196,   196,   196,
01651      196,   196,   196,   196,   196,   196,   197,   196,   198,   196,
01652      199,   196,   196,   196,   196,   196,   196,   196,   196,   196,
01653      196,   200,   196,   196,   196,   196,   196,   196,   196,   196,
01654      196,   201,   202,   196,   203,   204,   196,   196,   196,   205,
01655      206,   196,   207,   196,   208,   209,   196,   210,   196,   211,
01656      196,   212,   213,   196,   196,   196,   196,   196,   214,   215,
01657      216,   217,   218,   219,   220,   221,   222,   223,   224,   225,
01658      226,   226,   226,   227,   227,   228,   228,   229,   229,   230,
01659      230,   231,   231,   232,   232,   233,   233,   233,   233,   233,
01660      233,   233,   233,   233,   234,   234,   234,   234,   235,   235,
01661      236,   236,   236,   236,   236,   236,   236,   236,   236,   236,
01662      236,   236,   236,   236,   236,   237,   237,   238,   238,   238,
01663      239,   239,   240,   240,   241,   241,   243,   244,   245,   242,
01664      246,   246,   247,   247,   249,   248,   250,   250,   250,   250,
01665      251,   252,   251,   253,   251,   251,   254,   251,   255,   251,
01666      251,   251,   251,   257,   256,   258,   256,   259,   260,   260,
01667      261,   261,   262,   262,   262,   263,   263,   264,   264,   265,
01668      265,   265,   266,   267,   267,   267,   268,   269,   270,   271,
01669      271,   272,   272,   273,   273,   274,   274,   275,   275,   276,
01670      276,   277,   277,   278,   278,   279,   279,   280,   280,   281,
01671      281,   282,   282,   283,   284,   283,   285,   286,   287,   283,
01672      288,   288,   288,   288,   289,   290,   290,   290,   290,   291,
01673      292,   292,   292,   292,   293,   293,   293,   293,   293,   294,
01674      294,   294,   294,   294,   294,   294,   295,   295,   296,   296,
01675      297,   297,   298,   299,   298,   298,   300,   300,   301,   301,
01676      301,   301,   302,   302,   303,   303,   303,   303,   303,   303,
01677      303,   303,   303,   303,   303,   303,   303,   303,   303,   304,
01678      304,   304,   304,   305,   305,   306,   306,   307,   307,   308,
01679      309,   310,   310,   311,   311,   312,   312,   313,   313,   314,
01680      315,   316,   316,   317,   317,   318,   318,   319,   319,   320,
01681      320,   321,   322,   322,   323,   324,   323,   325,   325,   326,
01682      326,   327,   327,   327,   328,   328,   328,   329,   329,   329,
01683      329,   330,   330,   330,   331,   331,   332,   332,   333,   333,
01684      334,   335,   336,   336,   336,   337,   337,   338,   338,   339
01685 };
01686 
01687 /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN.  */
01688 static const yytype_uint8 yyr2[] =
01689 {
01690        0,     2,     0,     2,     2,     1,     1,     3,     2,     1,
01691        0,     5,     4,     2,     1,     1,     3,     2,     1,     0,
01692        5,     0,     4,     3,     3,     3,     2,     3,     3,     3,
01693        3,     3,     4,     1,     3,     3,     6,     5,     5,     5,
01694        5,     3,     3,     3,     3,     1,     3,     3,     1,     3,
01695        3,     3,     2,     1,     1,     1,     1,     1,     4,     0,
01696        5,     1,     2,     3,     4,     5,     4,     5,     2,     2,
01697        2,     2,     2,     1,     3,     1,     3,     1,     2,     3,
01698        5,     2,     4,     2,     4,     1,     3,     1,     3,     2,
01699        3,     1,     3,     1,     1,     4,     3,     3,     3,     3,
01700        2,     1,     1,     1,     4,     3,     3,     3,     3,     2,
01701        1,     1,     1,     2,     1,     3,     1,     1,     1,     1,
01702        1,     1,     1,     1,     1,     1,     0,     4,     1,     1,
01703        1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
01704        1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
01705        1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
01706        1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
01707        1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
01708        1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
01709        1,     1,     1,     1,     1,     1,     1,     1,     1,     3,
01710        5,     3,     5,     6,     5,     5,     5,     5,     4,     3,
01711        3,     3,     3,     3,     3,     3,     3,     3,     4,     4,
01712        2,     2,     3,     3,     3,     3,     3,     3,     3,     3,
01713        3,     3,     3,     3,     3,     2,     2,     3,     3,     3,
01714        3,     0,     4,     6,     1,     1,     1,     2,     4,     2,
01715        3,     1,     1,     1,     1,     2,     4,     2,     1,     2,
01716        2,     4,     1,     0,     2,     2,     2,     1,     1,     2,
01717        3,     4,     3,     4,     2,     1,     1,     1,     1,     1,
01718        1,     1,     1,     1,     1,     1,     0,     4,     0,     3,
01719        0,     4,     3,     3,     2,     3,     3,     1,     4,     3,
01720        1,     0,     6,     4,     3,     2,     1,     2,     2,     6,
01721        6,     0,     0,     7,     0,     0,     7,     5,     4,     0,
01722        0,     9,     0,     6,     0,     0,     8,     0,     5,     0,
01723        6,     0,     0,     9,     1,     1,     1,     1,     1,     1,
01724        1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
01725        1,     1,     2,     1,     1,     1,     5,     1,     2,     1,
01726        1,     1,     3,     1,     3,     1,     4,     6,     3,     5,
01727        2,     4,     1,     3,     4,     2,     2,     1,     2,     0,
01728        6,     8,     4,     6,     4,     2,     6,     2,     4,     6,
01729        2,     4,     2,     4,     1,     1,     1,     3,     1,     4,
01730        1,     4,     1,     3,     1,     1,     0,     0,     0,     5,
01731        4,     1,     3,     3,     0,     5,     2,     4,     5,     5,
01732        2,     0,     5,     0,     5,     3,     0,     4,     0,     4,
01733        2,     1,     4,     0,     5,     0,     5,     5,     1,     1,
01734        6,     1,     1,     1,     1,     2,     1,     2,     1,     1,
01735        1,     1,     1,     1,     1,     2,     3,     3,     3,     3,
01736        3,     0,     3,     1,     2,     3,     3,     0,     3,     3,
01737        3,     3,     3,     0,     3,     0,     3,     0,     2,     0,
01738        2,     0,     2,     1,     0,     3,     0,     0,     0,     6,
01739        1,     1,     1,     1,     2,     1,     1,     1,     1,     3,
01740        1,     1,     2,     2,     1,     1,     1,     1,     1,     1,
01741        1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
01742        1,     1,     1,     0,     4,     2,     3,     2,     4,     2,
01743        2,     1,     2,     0,     6,     8,     4,     6,     4,     6,
01744        2,     4,     6,     2,     4,     2,     4,     1,     0,     1,
01745        1,     1,     1,     1,     1,     1,     3,     1,     3,     2,
01746        2,     1,     3,     1,     3,     1,     1,     2,     1,     3,
01747        3,     1,     3,     1,     3,     1,     1,     2,     1,     1,
01748        1,     2,     2,     1,     1,     0,     4,     1,     2,     1,
01749        3,     3,     2,     2,     1,     1,     1,     1,     1,     1,
01750        1,     1,     1,     1,     1,     1,     0,     1,     0,     1,
01751        2,     2,     0,     1,     1,     1,     1,     1,     2,     0
01752 };
01753 
01754 /* YYDEFACT[STATE-NAME] -- Default reduction number in state STATE-NUM.
01755    Performed when YYTABLE doesn't specify something else to do.  Zero
01756    means the default is an error.  */
01757 static const yytype_uint16 yydefact[] =
01758 {
01759        2,     0,     0,     1,     0,   346,   347,   348,     0,   339,
01760      340,   341,   344,   342,   343,   345,   334,   335,   336,   337,
01761      297,   263,   263,   510,   509,   511,   512,   608,     0,   608,
01762       10,     0,   514,   513,   515,   594,   596,   506,   505,   595,
01763      508,   500,   501,   453,   520,   521,     0,     0,     0,     0,
01764      288,   619,   619,    85,   406,   479,   477,   479,   481,   461,
01765      473,   467,   475,     0,     0,     0,     3,   606,     6,     9,
01766       33,    45,    48,    56,   263,    55,     0,    73,     0,    77,
01767       87,     0,    53,   244,     0,   286,     0,     0,   311,   314,
01768      606,     0,     0,     0,     0,    57,   306,   275,   276,   452,
01769      454,   277,   278,   279,   281,   280,   282,   450,   451,   449,
01770      516,   517,   283,     0,   284,    61,     5,     8,   168,   179,
01771      169,   192,   165,   185,   175,   174,   195,   196,   190,   173,
01772      172,   167,   193,   197,   198,   177,   166,   180,   184,   186,
01773      178,   171,   187,   194,   189,   188,   181,   191,   176,   164,
01774      183,   182,   163,   170,   161,   162,   158,   159,   160,   116,
01775      118,   117,   153,   154,   149,   131,   132,   133,   140,   137,
01776      139,   134,   135,   155,   156,   141,   142,   146,   150,   136,
01777      138,   128,   129,   130,   143,   144,   145,   147,   148,   151,
01778      152,   157,   121,   123,   125,    26,   119,   120,   122,   124,
01779        0,     0,     0,     0,     0,     0,     0,     0,   258,     0,
01780      245,   268,    71,   262,   619,     0,   516,   517,     0,   284,
01781      619,   589,    72,    70,   608,    69,     0,   619,   430,    68,
01782      608,   609,     0,     0,    21,   241,     0,     0,   334,   335,
01783      297,   300,   431,     0,   220,     0,   221,   294,     0,    19,
01784        0,     0,   606,    15,    18,   608,    75,    14,   290,   608,
01785        0,   612,   612,   246,     0,     0,   612,   587,   608,     0,
01786        0,     0,    83,   338,     0,    93,    94,   101,   308,   407,
01787      497,   496,   498,   495,     0,   494,     0,     0,     0,     0,
01788        0,     0,     0,     0,     0,     0,     0,   502,   503,    52,
01789      235,   236,   615,   616,     4,   617,   607,     0,     0,     0,
01790        0,     0,     0,     0,   435,   433,   420,    62,   305,   414,
01791      416,     0,    89,     0,    81,    78,     0,     0,     0,     0,
01792        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
01793        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
01794        0,     0,     0,   428,   619,   426,     0,    54,     0,     0,
01795        0,     0,   606,     0,   607,     0,   360,   359,     0,     0,
01796      516,   517,   284,   111,   112,     0,     0,   114,     0,     0,
01797      516,   517,   284,   327,   188,   181,   191,   176,   158,   159,
01798      160,   116,   117,   585,   329,   584,     0,   605,   604,     0,
01799      307,   455,     0,     0,   126,   592,   294,   269,   593,   265,
01800        0,     0,     0,   259,   267,   428,   619,   426,     0,     0,
01801        0,   260,   608,     0,   299,   264,   608,   254,   619,   619,
01802      253,   608,   304,    51,    23,    25,    24,     0,   301,     0,
01803        0,     0,   428,   426,     0,    17,     0,   608,   292,    13,
01804      607,    74,   608,   289,   295,   614,   613,   247,   614,   249,
01805      296,   588,     0,   100,   502,   503,    91,    86,     0,   428,
01806      619,   426,   548,   483,   486,   484,   499,   480,   456,   478,
01807      457,   458,   482,   459,   460,     0,   463,   469,     0,   470,
01808      465,   466,     0,   471,     0,   472,     0,     0,   618,     7,
01809       27,    28,    29,    30,    31,    49,    50,   619,   619,    59,
01810       63,   619,     0,    34,    43,     0,    44,   608,     0,    79,
01811       90,    47,    46,     0,   199,   268,    42,   217,   225,   230,
01812      231,   232,   227,   229,   239,   240,   233,   234,   210,   211,
01813      237,   238,   608,   226,   228,   222,   223,   224,   212,   213,
01814      214,   215,   216,   597,   599,   598,   600,     0,   263,   425,
01815      608,   597,   599,   598,   600,     0,   263,     0,   619,   351,
01816        0,   350,     0,     0,     0,     0,     0,     0,   294,   428,
01817      619,   426,   319,   324,   111,   112,   113,     0,   523,   322,
01818      522,   428,   619,   426,     0,     0,   548,   331,   597,   598,
01819      263,    35,   201,    41,   209,     0,   199,   591,     0,   270,
01820      266,   619,   597,   598,   608,   597,   598,   590,   298,   610,
01821      250,   255,   257,   303,    22,     0,   242,     0,    32,   423,
01822      421,   208,     0,    76,    16,   291,   612,     0,    84,    97,
01823       99,   608,   597,   598,   554,   551,   550,   549,   552,     0,
01824      565,     0,   576,   566,   580,   579,   575,   548,   408,   547,
01825      411,   553,   555,   557,   533,   563,   619,   568,   619,   573,
01826      533,   578,   533,     0,   531,   487,     0,   462,   464,   474,
01827      468,   476,   218,   219,   398,   608,     0,   396,   395,     0,
01828      619,     0,   274,     0,    88,    82,     0,     0,     0,     0,
01829        0,     0,   429,    66,     0,     0,   432,     0,     0,   427,
01830       64,   619,   349,   287,   619,   619,   441,   619,   352,   619,
01831      354,   312,   353,   315,     0,     0,   318,   601,   293,   608,
01832      597,   598,     0,     0,   525,     0,     0,   111,   112,   115,
01833      608,     0,   608,   548,     0,     0,     0,   252,   417,    58,
01834      251,     0,   127,   271,   261,     0,     0,   432,     0,     0,
01835      619,   608,    11,     0,   248,    92,    95,     0,   559,   554,
01836        0,   372,   363,   365,   608,   361,   608,     0,     0,   540,
01837        0,   529,   583,   567,     0,   530,     0,   543,   577,     0,
01838      545,   581,   488,   490,   491,   492,   485,   493,   554,     0,
01839      394,   608,     0,   379,   561,   619,   619,   571,   379,   379,
01840      377,   400,     0,     0,     0,     0,     0,   272,    80,   200,
01841        0,    40,   206,    39,   207,    67,   424,   611,     0,    37,
01842      204,    38,   205,    65,   422,   442,   443,   619,   444,     0,
01843      619,   357,     0,     0,   355,     0,     0,     0,   317,     0,
01844        0,   432,     0,   325,     0,     0,   432,   328,   586,   608,
01845        0,   527,   332,   418,   419,   202,     0,   256,   302,    20,
01846      569,   608,     0,   370,     0,   556,     0,     0,     0,   409,
01847      532,   558,   533,   533,   564,   619,   582,   533,   574,   533,
01848      533,     0,     0,     0,   560,     0,   397,   385,   387,     0,
01849      375,   376,     0,   390,     0,   392,     0,   436,   434,     0,
01850      415,   273,   243,    36,   203,     0,     0,   446,   358,     0,
01851       12,   448,     0,   309,   310,     0,     0,   270,   619,   320,
01852        0,   524,   323,   526,   330,   548,   362,   373,     0,   368,
01853      364,   410,     0,     0,     0,   536,     0,   538,   528,     0,
01854      544,     0,   541,   546,     0,   570,   294,   428,   399,   378,
01855      379,   379,   562,   619,   379,   572,   379,   379,   404,   608,
01856      402,   405,    60,     0,   445,     0,   102,   103,   110,     0,
01857      447,     0,   313,   316,   438,   439,   437,     0,     0,     0,
01858        0,   371,     0,   366,   413,   412,   533,   533,   533,   533,
01859      489,   601,   293,     0,   382,     0,   384,   374,     0,   391,
01860        0,   388,   393,     0,   401,   109,   428,   619,   426,   619,
01861      619,     0,   326,     0,   369,     0,   537,     0,   534,   539,
01862      542,   379,   379,   379,   379,   403,   601,   108,   608,   597,
01863      598,   440,   356,   321,   333,   367,   533,   383,     0,   380,
01864      386,   389,   432,   535,   379,   381
01865 };
01866 
01867 /* YYDEFGOTO[NTERM-NUM].  */
01868 static const yytype_int16 yydefgoto[] =
01869 {
01870       -1,     1,     2,    66,    67,    68,   236,   567,   568,   252,
01871      253,   446,   254,   437,    70,    71,   358,    72,    73,   510,
01872      690,   243,    75,    76,   255,    77,    78,    79,   467,    80,
01873      209,   377,   378,   192,   193,   194,   195,   605,   556,   197,
01874       82,   439,   211,   260,   228,   748,   426,   427,   225,   226,
01875      213,   413,   428,   516,    83,   356,   259,   452,   625,   360,
01876      846,   361,   847,   732,   987,   736,   733,   930,   594,   596,
01877      746,   935,   245,    85,    86,    87,    88,    89,    90,    91,
01878       92,    93,    94,   713,   570,   721,   843,   844,   369,   772,
01879      773,   774,   959,   898,   801,   686,   687,   802,   969,   970,
01880      278,   279,   472,   777,   658,   879,   320,   511,    95,    96,
01881      711,   704,   565,   557,   318,   508,   507,   577,   986,   715,
01882      837,   916,   920,    97,    98,    99,   100,   101,   102,   103,
01883      290,   485,   104,   294,   105,   106,   292,   296,   286,   284,
01884      288,   477,   676,   675,   792,   891,   796,   107,   285,   108,
01885      109,   216,   217,   112,   218,   219,   589,   735,   744,   880,
01886      779,   745,   661,   662,   663,   664,   665,   804,   805,   666,
01887      667,   668,   669,   807,   808,   670,   671,   672,   673,   674,
01888      781,   396,   595,   265,   429,   221,   115,   629,   559,   399,
01889      304,   423,   424,   706,   457,   571,   364,   257
01890 };
01891 
01892 /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
01893    STATE-NUM.  */
01894 #define YYPACT_NINF -810
01895 static const yytype_int16 yypact[] =
01896 {
01897     -810,   102,  2888,  -810,  7502,  -810,  -810,  -810,  7025,  -810,
01898     -810,  -810,  -810,  -810,  -810,  -810,  7615,  7615,  -810,  -810,
01899     7615,  4210,  3805,  -810,  -810,  -810,  -810,   190,  6892,   -21,
01900     -810,    10,  -810,  -810,  -810,  3130,  3940,  -810,  -810,  3265,
01901     -810,  -810,  -810,  -810,  -810,  -810,  8971,  8971,   130,  5262,
01902     9084,  7954,  8293,  7284,  -810,  6759,  -810,  -810,  -810,    54,
01903       70,   225,   228,   515,  9197,  8971,  -810,   245,  -810,  1021,
01904     -810,   269,  -810,  -810,    73,   120,    87,  -810,    98,  9310,
01905     -810,   148,  3109,    44,   359,  -810,  9084,  9084,  -810,  -810,
01906     6149,  9419,  9528,  9637,  6625,    30,    86,  -810,  -810,   230,
01907     -810,  -810,  -810,  -810,  -810,  -810,  -810,  -810,  -810,  -810,
01908        3,   385,  -810,   348,   490,  -810,  -810,  -810,  -810,  -810,
01909     -810,  -810,  -810,  -810,  -810,  -810,  -810,  -810,  -810,  -810,
01910     -810,  -810,  -810,  -810,  -810,  -810,  -810,  -810,  -810,  -810,
01911     -810,  -810,  -810,  -810,  -810,  -810,  -810,  -810,  -810,  -810,
01912     -810,  -810,  -810,  -810,  -810,  -810,  -810,  -810,  -810,  -810,
01913     -810,  -810,  -810,  -810,  -810,  -810,  -810,  -810,  -810,  -810,
01914     -810,  -810,  -810,  -810,  -810,  -810,  -810,  -810,  -810,  -810,
01915     -810,  -810,  -810,  -810,  -810,  -810,  -810,  -810,  -810,  -810,
01916     -810,  -810,  -810,  -810,  -810,   285,  -810,  -810,  -810,  -810,
01917      253,  8971,   374,  5401,  8971,  8971,  8971,  8971,  -810,   328,
01918     3109,   364,  -810,  -810,   313,   369,   208,   224,   395,   247,
01919      354,  -810,  -810,  -810,  6036,  -810,  7615,  7615,  -810,  -810,
01920     6262,  -810,  9084,   844,  -810,   360,   388,  5540,  -810,  -810,
01921     -810,   379,   400,    73,  -810,   464,   463,   501,  7728,  -810,
01922     5262,   402,   245,  -810,  1021,   -21,   437,  -810,   269,   -21,
01923      415,     8,   317,  -810,   364,   440,   317,  -810,   -21,   525,
01924      615,  9746,   470,  -810,   488,   508,   575,   612,  -810,  -810,
01925     -810,  -810,  -810,  -810,   438,  -810,   447,   451,   284,   475,
01926      540,   496,    60,   502,   576,   516,    61,   550,   565,  -810,
01927     -810,  -810,  -810,  -810,  -810,  -810,  6375,  9084,  9084,  9084,
01928     9084,  7728,  9084,  9084,  -810,  -810,  -810,   549,  -810,  -810,
01929     -810,  8406,  -810,  5262,  7393,   527,  8406,  8971,  8971,  8971,
01930     8971,  8971,  8971,  8971,  8971,  8971,  8971,  8971,  8971,  8971,
01931     8971,  8971,  8971,  8971,  8971,  8971,  8971,  8971,  8971,  8971,
01932     8971,  8971,  8971, 10025,  7615, 10102,  4619,   269,   110,   110,
01933     9084,  9084,   245,   654,   538,   631,  -810,  -810,   645,   668,
01934       85,    93,   108,   405,   410,  9084,   377,  -810,   123,   661,
01935     -810,  -810,  -810,  -810,    40,    42,    56,   167,   180,   279,
01936      332,   336,   343,  -810,  -810,  -810,    30,  -810,  -810, 10179,
01937     -810,  -810,  9197,  9197,  -810,  -810,   394,  -810,  -810,  -810,
01938     8971,  8971,  7841,  -810,  -810, 10256,  7615, 10333,  8971,  8971,
01939     8067,  -810,   -21,   558,  -810,  -810,   -21,  -810,   564,   566,
01940     -810,    66,  -810,  -810,  -810,  -810,  -810,  7025,  -810,  8971,
01941     5671,   574, 10256, 10333,  8971,  1021,   581,   -21,  -810,  -810,
01942     6488,   572,   -21,  -810,  -810,  8180,  -810,  -810,  8293,  -810,
01943     -810,  -810,   360,   678,  -810,  -810,  -810,   588,  9746, 10410,
01944     7615, 10487,  1081,  -810,  -810,  -810,  -810,  -810,  -810,  -810,
01945     -810,  -810,  -810,  -810,  -810,   302,  -810,  -810,   594,  -810,
01946     -810,  -810,   306,  -810,   597,  -810,  8971,  8971,  -810,  -810,
01947     -810,  -810,  -810,  -810,  -810,  -810,  -810,    63,    63,  -810,
01948     -810,    63,  8971,  -810,   605,   607,  -810,   -21,  9746,   617,
01949     -810,  -810,  -810,   636,  1231,  -810,  -810,   463,  2567,  2567,
01950     2567,  2567,   976,   976,  2722,  2633,  2567,  2567,  3244,  3244,
01951      339,   339,  1305,   976,   976,   986,   986,  1119,   255,   255,
01952      463,   463,   463,  4345,  3400,  4480,  3535,   400,   620,  -810,
01953      -21,   591,  -810,   742,  -810,   400,  4075,   747,   754,  -810,
01954     4758,   756,  5036,    52,    52,   654,  8519,   747,   121, 10564,
01955     7615, 10641,  -810,   269,  -810,   678,  -810,   245,  -810,  -810,
01956     -810, 10718,  7615, 10179,  4619,  9084,  1274,  -810,  -810,  -810,
01957     1148,  -810,  2322,  -810,  3109,  7025,  2974,  -810,  8971,   364,
01958     -810,   354,  2995,  3670,   -21,   398,   497,  -810,  -810,  -810,
01959     -810,  7841,  8067,  -810,  -810,  9084,  3109,   644,  -810,  -810,
01960     -810,  3109,  5671,   212,  -810,  -810,   317,  9746,   588,   495,
01961      323,   -21,   337,   376,   676,  -810,  -810,  -810,  -810,  8971,
01962     -810,   896,  -810,  -810,  -810,  -810,  -810,  1142,  -810,  -810,
01963     -810,  -810,  -810,  -810,   656,  -810,   657,   743,   663,  -810,
01964      667,   750,   671,   760,  -810,  -810,   763,  -810,  -810,  -810,
01965     -810,  -810,   463,   463,  -810,   793,  5810,  -810,  -810,  5540,
01966       63,  5810,   679,  8632,  -810,   588,  9746,  9197,  8971,   699,
01967     9197,  9197,  -810,   549,   400,   681,   759,  9197,  9197,  -810,
01968      549,   400,  -810,  -810,  8745,   810,  -810,   718,  -810,   810,
01969     -810,  -810,  -810,  -810,   747,    92,  -810,    81,   149,   -21,
01970      144,   155,  9084,   245,  -810,  9084,  4619,   495,   323,  -810,
01971      -21,   747,    66,  1142,  4619,   245,  7158,  -810,    86,   120,
01972     -810,  8971,  -810,  -810,  -810,  8971,  8971,   504,  8971,  8971,
01973      694,    66,  -810,   700,  -810,  -810,   390,  8971,  -810,  -810,
01974      896,   473,  -810,   702,   -21,  -810,   -21,   124,  1142,  -810,
01975      571,  -810,  -810,  -810,    38,  -810,  1142,  -810,  -810,   881,
01976     -810,  -810,  -810,  -810,  -810,  -810,  -810,  -810,   720,  9855,
01977     -810,   -21,   716,   703,  -810,   707,   663,  -810,   723,   724,
01978     -810,   725,   856,   737,  5540,   859,  8971,   740,   588,  3109,
01979     8971,  -810,  3109,  -810,  3109,  -810,  -810,  -810,  9197,  -810,
01980     3109,  -810,  3109,  -810,  -810,   605,  -810,   797,  -810,  5149,
01981      872,  -810,  9084,   747,  -810,   747,  5810,  5810,  -810,  8858,
01982     4897,   159,    52,  -810,   245,   747,  -810,  -810,  -810,   -21,
01983      747,  -810,  -810,  -810,  -810,  3109,  8971,  8067,  -810,  -810,
01984     -810,   -21,   875,   752,   953,  -810,   762,  5810,  5540,  -810,
01985     -810,  -810,   753,   757,  -810,   663,  -810,   767,  -810,   768,
01986      767,  5923,  9855,   848,   689,   787,  -810,  1386,  -810,   622,
01987     -810,  -810,  1386,  -810,  1533,  -810,  1028,  -810,  -810,   778,
01988     -810,   784,  3109,  -810,  3109,  9964,   110,  -810,  -810,  5810,
01989     -810,  -810,   110,  -810,  -810,   747,   747,  -810,   383,  -810,
01990     4619,  -810,  -810,  -810,  -810,  1274,  -810,   785,   875,   672,
01991     -810,  -810,   911,   792,  1142,  -810,   881,  -810,  -810,   881,
01992     -810,   881,  -810,  -810,   820,   689,  -810, 10795,  -810,  -810,
01993      806,   809,  -810,   663,   811,  -810,   812,   811,  -810,   352,
01994     -810,  -810,  -810,   891,  -810,   691,   508,   575,   612,  4619,
01995     -810,  4758,  -810,  -810,  -810,  -810,  -810,  5810,   747,  4619,
01996      875,   785,   875,   823,  -810,  -810,   767,   824,   767,   767,
01997     -810,   818,   826,  1386,  -810,  1533,  -810,  -810,  1533,  -810,
01998     1533,  -810,  -810,  1028,  -810,   678, 10872,  7615, 10949,   754,
01999      718,   747,  -810,   747,   785,   875,  -810,   881,  -810,  -810,
02000     -810,   811,   825,   811,   811,  -810,    49,   323,   -21,   179,
02001      215,  -810,  -810,  -810,  -810,   785,   767,  -810,  1533,  -810,
02002     -810,  -810,   216,  -810,   811,  -810
02003 };
02004 
02005 /* YYPGOTO[NTERM-NUM].  */
02006 static const yytype_int16 yypgoto[] =
02007 {
02008     -810,  -810,  -810,  -382,  -810,    26,  -810,  -549,    -7,  -810,
02009      513,  -810,    33,  -810,  -315,   -33,   -63,   -55,  -810,  -216,
02010     -810,   766,   -13,   874,  -164,    20,   -73,  -810,  -409,    29,
02011     1882,  -309,   882,   -54,  -810,    -5,  -810,  -810,     6,  -810,
02012     1208,  -810,  1366,  -810,   -41,   256,  -344,    78,   -14,  -810,
02013     -384,  -205,    -4,  -304,   -15,  -810,  -810,  -810,  -810,  -810,
02014     -810,  -810,  -810,  -810,  -810,  -810,  -810,  -810,  -810,  -810,
02015     -810,  -810,    64,  -810,  -810,  -810,  -810,  -810,  -810,  -810,
02016     -810,  -810,  -810,    -1,  -333,  -519,   -44,  -623,  -810,  -789,
02017     -771,   211,   297,    71,  -810,  -437,  -810,  -693,  -810,   -29,
02018     -810,  -810,  -810,  -810,  -810,  -810,   237,  -810,  -810,  -810,
02019     -810,  -810,  -810,  -810,   -94,  -810,  -810,  -531,  -810,   -31,
02020     -810,  -810,  -810,  -810,  -810,  -810,   890,  -810,  -810,  -810,
02021     -810,   701,  -810,  -810,  -810,  -810,  -810,  -810,  -810,   940,
02022     -810,  -126,  -810,  -810,  -810,  -810,  -810,    -3,  -810,    11,
02023     -810,  1400,  1673,   905,  1898,  1689,  -810,  -810,    65,  -451,
02024     -102,  -385,  -809,  -588,  -689,  -289,   222,   107,  -810,  -810,
02025     -810,    18,  -721,  -764,   115,   235,  -810,  -634,  -810,   -37,
02026     -627,  -810,  -810,  -810,   114,  -388,  -810,  -324,  -810,   623,
02027      -47,    -9,  -123,  -568,  -214,    21,   -11,    -2
02028 };
02029 
02030 /* YYTABLE[YYPACT[STATE-NUM]].  What to do in state STATE-NUM.  If
02031    positive, shift that token.  If negative, reduce the rule which
02032    number is the opposite.  If YYTABLE_NINF, syntax error.  */
02033 #define YYTABLE_NINF -620
02034 static const yytype_int16 yytable[] =
02035 {
02036      116,   283,   400,   208,   208,   198,   325,   208,   229,   299,
02037      560,   521,   214,   214,   196,   421,   214,   258,   232,   199,
02038      235,   659,   526,   234,   359,   198,   572,   362,   610,   558,
02039      117,   566,   617,   316,   196,    69,   610,    69,   273,   199,
02040      394,   785,   251,   363,   724,   741,   757,   261,   459,   263,
02041      267,   809,   461,   357,   357,   723,   306,   357,   627,   638,
02042      317,   196,  -106,   775,   273,   888,    84,   586,    84,   256,
02043      617,   689,   614,   766,   691,   600,   273,   273,   273,   720,
02044      215,   215,   272,   876,   215,   940,   447,   660,   305,   881,
02045     -518,   558,   840,   566,   212,   222,   845,   971,   223,   314,
02046      196,   937,     3,   312,   313,   569,  -106,   432,   895,   695,
02047     -102,   305,   314,    84,   215,   397,  -102,   274,  -103,   630,
02048      231,   488,   494,   569,   587,  -510,   641,  -509,   215,  -338,
02049      220,   220,   451,  -110,   220,   654,   453,   -93,   965,   684,
02050      237,  -511,   455,   274,   883,   659,  -109,   630,   319,   456,
02051      215,   215,   889,   877,   215,   368,   379,   379,   655,   517,
02052      479,   851,   482,   398,   486,   262,   266,   991,   486,  -105,
02053      489,   495,   856,  -510,  -108,  -509,  -338,  -338,   900,   901,
02054     -107,   685,   775,   873,  -104,  -597,   247,   855,  -106,  -511,
02055     -106,   302,  -105,   303,   289,   860,   251,   431,   466,   433,
02056      321,   940,   316,   315,   971,   449,   659,   231,   881,   227,
02057      291,   208,   414,   208,   208,   -97,   315,  -597,   414,   -93,
02058      214,  1024,   214,   888,   421,   430,   849,   -94,  -107,  -104,
02059      441,   302,   322,   303,   617,   878,   729,   610,   610,   965,
02060      588,   450,  -101,   251,   500,   501,   502,   503,   740,   302,
02061      763,   303,  -512,   814,  1045,  -100,   273,   630,   948,   462,
02062      881,   326,   302,   961,   303,  -514,   513,    84,   966,   630,
02063      256,   522,   776,   305,   357,   357,   357,   357,   -96,   505,
02064      506,   445,   739,   -99,   775,  -598,   775,   818,   215,   -98,
02065      215,   215,   659,   -95,   215,  -518,   215,   573,   574,   618,
02066     -512,    84,   422,   620,   425,   984,   312,   313,   623,   273,
02067      997,  -519,    84,  -514,    84,   575,   251,   515,  -105,   881,
02068     -105,  -102,   515,   327,   633,   -74,   230,   357,   357,   635,
02069       56,   231,   499,   929,   419,   274,  1007,  -103,   220,    69,
02070      220,   208,   583,   256,   504,   473,   -88,   601,   603,   481,
02071      775,   993,   430,   519,  -107,  -104,  -107,  -104,   859,   678,
02072     -110,   564,   -96,   473,  -513,   293,   678,   473,   295,  1032,
02073       84,   215,   215,   215,   215,    84,   215,   215,   350,   351,
02074      352,   988,   521,   305,   302,   215,   303,    84,   274,   230,
02075      215,   474,   850,   475,   694,   466,   803,   985,   839,   590,
02076      576,   -98,   775,   208,   775,   564,   754,   327,  -293,   474,
02077      836,   475,  -513,   474,   430,   475,  -432,  -515,   215,   404,
02078       84,  -504,   764,   564,   215,   215,   414,   414,  -507,   584,
02079      406,  -594,   624,   585,   198,   402,  -595,   775,   116,   215,
02080     1023,   410,   677,   196,   353,   466,   680,   412,   199,   564,
02081      -96,   458,   411,   273,   415,  -293,  -293,   208,   456,  -598,
02082      348,   349,   350,   351,   352,  -515,   215,   215,   430,  -504,
02083     1052,   -96,  -519,    69,   -96,  -432,  -507,   564,   -96,   617,
02084      215,   444,   418,   610,   659,   758,  1013,   825,   420,   -98,
02085     -504,   354,   355,   231,   833,  -507,   438,   887,  -103,   473,
02086      890,   416,   417,   273,    84,   688,   688,  -109,   473,   688,
02087      -98,  -105,   473,   -98,    84,   224,   702,   -98,   440,   -94,
02088     -432,  -601,  -432,  -432,   709,   769,   611,   645,   646,   647,
02089      648,   327,   274,   699,   215,  -594,   227,  -504,  -504,   448,
02090     -595,  -594,  -507,  -507,   703,   474,  -595,   475,   476,   442,
02091      -73,   705,   710,   454,   474,   754,   475,   478,   474,   747,
02092      475,   480,   742,   717,   765,   719,   716,   208,   787,   636,
02093      790,   460,   725,   469,   297,   298,   726,   403,   430,   208,
02094     -601,   463,   274,   979,   759,   483,   749,   564,   444,   981,
02095      430,   866,   761,  -516,   722,   722,   416,   443,   750,   564,
02096      752,   473,   198,  -110,   468,   705,   487,   872,   734,   414,
02097     -107,   196,   490,   964,  -109,   967,   199,  -104,   496,   858,
02098      470,   471,   273,   466,  -101,  -601,   493,  -601,  -601,   649,
02099      116,  -597,   705,   497,    84,  -100,    84,   473,   868,   650,
02100     -516,  -516,   522,   509,   215,   821,   823,   474,   810,   475,
02101      484,   875,   829,   831,   863,   996,   215,   998,    84,   215,
02102     -517,   520,   999,   826,   782,    69,   782,   653,   654,   852,
02103      747,   576,   854,  1038,   464,   465,   811,   498,   707,   812,
02104      799,   273,   813,   474,   815,   475,   491,   578,   688,   215,
02105      650,   655,   862,   582,   630,   619,    84,  -284,   621,   357,
02106      622,   274,   357,   806,  -105,   628,   -88,  -517,  -517,   750,
02107      515,   632,   838,   841,  1031,   841,  1033,   841,   653,   654,
02108      705,  1034,   637,   848,   769,   -96,   645,   646,   647,   648,
02109      579,   705,   842,   839,   679,   760,   933,   681,  1046,  -268,
02110      857,   693,   655,   886,  -284,  -284,   591,   886,   936,   697,
02111       84,   696,   196,    84,   853,    84,  -423,   712,   414,  1054,
02112      274,   215,   714,  -294,   215,   215,   861,   811,    74,   718,
02113       74,   215,   215,   913,   957,   762,  1016,   580,   581,   922,
02114      945,   947,    74,    74,   273,   950,    74,   952,   953,   767,
02115      778,   780,   811,   592,   593,   783,   215,   784,   885,   215,
02116       84,   786,   788,   782,   782,   789,   992,   909,    84,   357,
02117     -294,  -294,   791,  -269,   820,    74,    74,   793,   794,   827,
02118      795,   592,   593,  1017,  1018,   839,    44,    45,   867,   708,
02119       74,   869,   918,   892,   896,   917,   874,   897,   921,   925,
02120      926,   899,   923,   928,   924,   798,   828,   645,   646,   647,
02121      648,   799,    74,    74,   932,  -107,    74,   902,   904,   934,
02122      810,   650,   886,   894,   906,   810,   907,   810,   908,   910,
02123      942,   943,  -104,   722,  -270,   931,   -98,   273,    84,   903,
02124      905,   919,   651,   782,   954,   915,   938,   944,   652,   653,
02125      654,   946,   215,   -95,  1026,  1028,  1029,  1030,   434,   941,
02126      273,   949,   951,    84,   956,   958,   215,   435,   436,   972,
02127       84,    84,   980,   655,    84,   806,   656,   963,  -271,   990,
02128      806,   994,   806,   995,   982,   983,   841,   769,  1000,   645,
02129      646,   647,   648,   769,   231,   645,   646,   647,   648,   649,
02130     1003,    84,    84,  1005,  1053,  1008,  1010,  1015,   769,   650,
02131      645,   646,   647,   648,  -597,    84,   955,  1025,  1027,  1048,
02132     1014,   782,  -598,   634,   770,   366,   810,   834,   810,    74,
02133      651,   810,  1019,   810,  1020,   383,  1042,   653,   654,   975,
02134     1021,   871,   800,    84,  1035,   770,   864,  1022,  1041,   401,
02135       74,   771,    74,    74,    84,   492,    74,   287,    74,   395,
02136      989,   655,   884,    74,   208,   769,   962,   645,   646,   647,
02137      648,   810,   960,   882,    74,   430,    74,   716,   841,   597,
02138     1043,   806,  1044,   806,   564,     0,   806,     0,   806,   705,
02139        0,  1004,  1006,     0,     0,  1009,     0,  1011,  1012,     0,
02140        0,     0,   770,    84,   327,    84,     0,     0,   939,     0,
02141        0,    84,     0,    84,   327,     0,     0,     0,     0,   340,
02142      341,   307,   308,   309,   310,   311,   806,     0,     0,   340,
02143      341,     0,    74,    74,    74,    74,    74,    74,    74,    74,
02144      968,   215,   645,   646,   647,   648,     0,    74,     0,    74,
02145        0,     0,    74,     0,   345,   346,   347,   348,   349,   350,
02146      351,   352,  1047,  1049,  1050,  1051,   347,   348,   349,   350,
02147      351,   352,     0,     0,     0,     0,     0,     0,     0,     0,
02148       74,     0,    74,     0,     0,  1055,    74,    74,     0,     0,
02149        0,     0,     0,   644,     0,   645,   646,   647,   648,   649,
02150        0,    74,     0,     0,     0,     0,     0,     0,  -619,   650,
02151        0,     0,     0,     0,     0,     0,  -619,  -619,  -619,     0,
02152        0,  -619,  -619,  -619,     0,  -619,     0,     0,    74,    74,
02153      651,     0,     0,     0,  -619,  -619,   652,   653,   654,     0,
02154        0,     0,    74,     0,     0,  -619,  -619,   327,  -619,  -619,
02155     -619,  -619,  -619,     0,   644,     0,   645,   646,   647,   648,
02156      649,   655,   340,   341,   656,     0,    74,     0,     0,     0,
02157      650,     0,     0,     0,     0,     0,    74,   657,     0,     0,
02158        0,     0,     0,     0,   210,   210,     0,     0,   210,     0,
02159        0,   651,     0,  -619,     0,     0,    74,   652,   653,   654,
02160      348,   349,   350,   351,   352,     0,     0,     0,     0,     0,
02161        0,     0,     0,     0,   244,   246,  -619,     0,     0,   210,
02162      210,     0,   655,     0,     0,   656,     0,     0,     0,     0,
02163        0,     0,   300,   301,     0,   698,     0,     0,  -619,  -619,
02164        0,  -619,     0,     0,   227,  -619,     0,  -619,     0,  -619,
02165        0,     0,     0,     0,     0,     0,     0,     0,     0,   327,
02166      328,   329,   330,   331,   332,   333,   334,   335,   336,   337,
02167      338,   339,     0,     0,   340,   341,     0,     0,     0,     0,
02168        0,     0,     0,     0,     0,     0,   644,     0,   645,   646,
02169      647,   648,   649,     0,     0,     0,    74,     0,    74,     0,
02170        0,     0,   650,     0,     0,   342,    74,   343,   344,   345,
02171      346,   347,   348,   349,   350,   351,   352,     0,    74,     0,
02172       74,    74,     0,   651,     0,  -245,     0,     0,     0,   652,
02173      653,   654,     0,   327,   328,   329,   330,   331,   332,   333,
02174      334,   335,   336,   337,   338,   339,     0,     0,   340,   341,
02175        0,    74,     0,     0,   655,     0,     0,   656,    74,     0,
02176        0,     0,   110,     0,   110,     0,     0,     0,     0,   210,
02177      743,     0,   210,   210,   210,   300,     0,     0,   264,   342,
02178        0,   343,   344,   345,   346,   347,   348,   349,   350,   351,
02179      352,     0,   210,     0,   210,   210,     0,     0,   798,     0,
02180      645,   646,   647,   648,   799,     0,   231,     0,     0,   110,
02181        0,     0,    74,   275,   650,    74,     0,    74,     0,     0,
02182        0,     0,     0,    74,     0,     0,    74,    74,     0,     0,
02183        0,     0,     0,    74,    74,   651,     0,     0,     0,   275,
02184        0,   652,   653,   654,     0,     0,     0,     0,     0,     0,
02185        0,   370,   380,   380,   380,     0,     0,     0,    74,     0,
02186        0,    74,    74,     0,     0,     0,   655,     0,     0,   656,
02187       74,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02188        0,     0,     0,     0,     0,     0,     0,     0,     0,   210,
02189        0,     0,     0,     0,   524,   527,   528,   529,   530,   531,
02190      532,   533,   534,   535,   536,   537,   538,   539,   540,   541,
02191      542,   543,   544,   545,   546,   547,   548,   549,   550,   551,
02192      552,     0,   210,     0,     0,     0,     0,   405,     0,     0,
02193      407,   408,   409,     0,     0,     0,     0,     0,     0,     0,
02194       74,     0,     0,     0,     0,   769,     0,   645,   646,   647,
02195      648,   799,     0,     0,    74,     0,     0,     0,     0,     0,
02196        0,   650,     0,   110,     0,    74,     0,     0,    74,     0,
02197      602,   604,    74,    74,     0,     0,    74,     0,   606,   210,
02198      210,     0,   651,     0,   210,     0,   602,   604,   210,   653,
02199      654,     0,     0,     0,     0,     0,     0,   110,     0,     0,
02200        0,     0,     0,    74,    74,     0,     0,   626,   110,     0,
02201      110,     0,   631,   655,     0,     0,     0,    74,     0,     0,
02202        0,     0,     0,   210,     0,     0,   210,     0,     0,     0,
02203        0,   275,     0,     0,     0,   111,     0,   111,   210,     0,
02204        0,     0,     0,     0,     0,    74,     0,   514,     0,     0,
02205        0,   114,   525,   114,     0,     0,    74,     0,     0,     0,
02206        0,     0,     0,     0,   682,   683,   110,     0,     0,     0,
02207        0,   110,     0,     0,     0,     0,     0,     0,     0,     0,
02208      210,     0,   111,   110,   275,     0,   276,     0,     0,     0,
02209        0,     0,     0,     0,     0,     0,     0,     0,   114,     0,
02210        0,     0,   277,     0,     0,    74,     0,    74,     0,     0,
02211        0,     0,   276,    74,     0,    74,   110,     0,     0,     0,
02212        0,     0,     0,     0,   371,   381,   381,   381,   277,     0,
02213        0,     0,     0,     0,     0,     0,     0,   607,   609,     0,
02214      372,   382,   382,    74,   210,     0,   264,     0,   210,     0,
02215        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02216      210,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02217        0,     0,     0,     0,     0,     0,   210,     0,     0,     0,
02218        0,   609,     0,     0,   264,     0,     0,     0,     0,   210,
02219      210,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02220      110,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02221      110,     0,     0,     0,     0,     0,     0,   210,     0,     0,
02222        0,     0,     0,     0,     0,     0,     0,     0,   275,     0,
02223        0,     0,     0,     0,     0,     0,   111,     0,   692,     0,
02224        0,     0,     0,     0,    81,     0,    81,     0,     0,     0,
02225        0,     0,   114,     0,     0,     0,     0,     0,     0,     0,
02226      113,   210,   113,     0,     0,   606,   819,     0,   822,   824,
02227      111,     0,     0,     0,     0,   830,   832,     0,   275,     0,
02228        0,   111,   210,   111,     0,     0,   114,     0,     0,     0,
02229        0,    81,     0,     0,     0,     0,     0,   114,     0,   114,
02230        0,     0,   525,     0,   276,     0,     0,   113,     0,     0,
02231        0,     0,     0,     0,     0,     0,     0,     0,     0,   865,
02232      277,     0,     0,   822,   824,     0,   830,   832,     0,     0,
02233      110,     0,   110,   367,   753,   210,     0,     0,     0,   111,
02234        0,     0,     0,     0,   111,     0,     0,   609,   264,     0,
02235        0,     0,     0,     0,   110,   114,   111,   276,     0,     0,
02236      114,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02237        0,     0,   114,   277,     0,   768,     0,     0,     0,     0,
02238        0,     0,     0,     0,   210,     0,     0,     0,   912,   111,
02239        0,     0,   110,     0,     0,     0,   914,   275,     0,     0,
02240        0,     0,     0,     0,     0,   114,     0,     0,     0,     0,
02241        0,     0,     0,     0,     0,     0,     0,   210,     0,   817,
02242        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02243        0,     0,     0,     0,   914,   210,     0,     0,     0,     0,
02244      835,     0,     0,     0,     0,    81,   110,     0,     0,   110,
02245        0,   110,     0,     0,     0,     0,   275,     0,     0,     0,
02246        0,   113,     0,     0,     0,     0,     0,     0,     0,     0,
02247        0,     0,     0,   111,     0,     0,     0,     0,     0,    81,
02248        0,     0,     0,   111,     0,     0,     0,     0,     0,   114,
02249       81,     0,    81,   870,     0,   113,   110,     0,     0,   114,
02250        0,   276,     0,     0,   110,     0,   113,     0,   113,     0,
02251        0,     0,     0,     0,     0,     0,     0,   277,     0,     0,
02252        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02253        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02254        0,     0,   911,     0,     0,     0,     0,     0,    81,     0,
02255        0,   276,     0,    81,     0,     0,     0,     0,     0,   380,
02256        0,     0,     0,     0,   113,    81,     0,   277,   523,   113,
02257        0,     0,     0,     0,   110,   927,     0,     0,     0,     0,
02258        0,   113,     0,     0,     0,   210,     0,     0,     0,     0,
02259        0,     0,     0,   264,     0,     0,     0,     0,    81,   110,
02260        0,     0,     0,   111,     0,   111,   110,   110,     0,     0,
02261      110,     0,     0,     0,   113,     0,     0,     0,     0,   114,
02262        0,   114,     0,     0,     0,     0,     0,   111,     0,     0,
02263        0,     0,     0,     0,     0,     0,     0,   110,   110,     0,
02264        0,     0,     0,   114,     0,     0,     0,     0,     0,     0,
02265        0,   110,   380,     0,     0,     0,     0,     0,     0,     0,
02266        0,     0,     0,     0,     0,   111,     0,     0,     0,     0,
02267      276,     0,     0,     0,     0,   976,     0,     0,     0,   110,
02268        0,   114,    81,     0,     0,     0,   277,     0,     0,     0,
02269      110,     0,    81,     0,     0,     0,     0,     0,   113,     0,
02270        0,     0,     0,     0,     0,     0,     0,     0,   113,     0,
02271        0,     0,     0,     0,     0,     0,     0,     0,     0,   111,
02272        0,     0,   111,     0,   111,   797,   751,     0,     0,   276,
02273        0,     0,     0,     0,     0,   114,     0,     0,   114,   110,
02274      114,   110,     0,     0,     0,   277,     0,   110,     0,   110,
02275      327,   328,   329,   330,   331,   332,   333,   334,   335,   336,
02276      337,   338,   339,     0,     0,   340,   341,     0,     0,   111,
02277        0,     0,     0,     0,     0,     0,     0,   111,     0,     0,
02278        0,     0,     0,     0,     0,   114,     0,     0,     0,     0,
02279        0,     0,     0,   114,     0,     0,   342,     0,   343,   344,
02280      345,   346,   347,   348,   349,   350,   351,   352,     0,     0,
02281        0,     0,    81,     0,    81,     0,     0,     0,     0,     0,
02282        0,     0,     0,     0,     0,     0,     0,     0,   113,     0,
02283      113,     0,   381,     0,     0,     0,    81,     0,     0,     0,
02284        0,     0,     0,     0,     0,     0,     0,   111,   382,     0,
02285        0,     0,   113,     0,     0,     0,     0,     0,     0,     0,
02286        0,     0,     0,   114,     0,     0,     0,     0,     0,     0,
02287        0,     0,   111,     0,    81,     0,     0,     0,     0,   111,
02288      111,     0,     0,   111,     0,     0,     0,     0,   114,     0,
02289      113,     0,     0,     0,     0,   114,   114,     0,     0,   114,
02290        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02291      111,   111,     0,     0,     0,     0,     0,     0,     0,     0,
02292        0,     0,     0,     0,   111,   381,   114,   114,    81,     0,
02293        0,    81,     0,    81,     0,     0,     0,     0,     0,   523,
02294      114,   382,     0,     0,   113,     0,     0,   113,   977,   113,
02295        0,     0,   111,     0,     0,     0,     0,     0,     0,     0,
02296        0,     0,     0,   111,   978,     0,     0,     0,   114,     0,
02297        0,     0,     0,     0,     0,     0,     0,     0,    81,   114,
02298        0,     0,     0,     0,     0,     0,    81,     0,     0,     0,
02299        0,     0,     0,     0,   113,   327,  -620,  -620,  -620,  -620,
02300      332,   333,   113,     0,  -620,  -620,     0,     0,     0,     0,
02301      340,   341,   111,     0,   111,     0,     0,     0,     0,     0,
02302      111,     0,   111,     0,     0,     0,     0,     0,   114,     0,
02303      114,     0,     0,     0,     0,     0,   114,     0,   114,     0,
02304        0,     0,     0,   343,   344,   345,   346,   347,   348,   349,
02305      350,   351,   352,     0,     0,     0,    81,     0,     0,     0,
02306        0,   327,   328,   329,   330,   331,   332,   333,   334,     0,
02307      336,   337,   113,     0,     0,     0,   340,   341,     0,     0,
02308        0,    81,     0,     0,     0,     0,     0,     0,    81,    81,
02309        0,     0,    81,     0,     0,     0,     0,   113,     0,     0,
02310        0,     0,     0,     0,   113,   113,     0,     0,   113,   343,
02311      344,   345,   346,   347,   348,   349,   350,   351,   352,    81,
02312       81,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02313        0,     0,     0,    81,     0,   113,   113,     0,     0,     0,
02314        0,     0,     0,     0,     0,     0,     0,     0,     0,   113,
02315      327,   328,   329,   330,   331,   332,   333,   974,     0,   336,
02316      337,    81,     0,     0,     0,   340,   341,     0,     0,     0,
02317        0,     0,    81,     0,     0,     0,     0,   113,     0,     0,
02318        0,     0,     0,     0,     0,     0,     0,     0,   113,     0,
02319        0,     0,     0,     0,     0,     0,     0,     0,   343,   344,
02320      345,   346,   347,   348,   349,   350,   351,   352,     0,     0,
02321        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02322        0,    81,     0,    81,     0,     0,     0,     0,     0,    81,
02323        0,    81,     0,     0,     0,     0,     0,   113,     0,   113,
02324        0,     0,     0,     0,     0,   113,     0,   113,  -619,     4,
02325        0,     5,     6,     7,     8,     9,     0,     0,     0,    10,
02326       11,     0,     0,     0,    12,     0,    13,    14,    15,    16,
02327       17,    18,    19,     0,     0,     0,     0,     0,    20,    21,
02328       22,    23,    24,    25,    26,     0,     0,    27,     0,     0,
02329        0,     0,     0,    28,    29,    30,    31,    32,    33,    34,
02330       35,    36,    37,    38,    39,    40,     0,    41,    42,     0,
02331       43,    44,    45,     0,    46,    47,     0,     0,     0,     0,
02332        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02333        0,     0,     0,     0,    48,     0,     0,    49,    50,     0,
02334       51,    52,     0,    53,     0,     0,    54,    55,    56,    57,
02335       58,    59,    60,    61,    62,  -601,     0,     0,     0,     0,
02336        0,     0,     0,  -601,  -601,  -601,     0,     0,  -601,  -601,
02337     -601,     0,  -601,     0,    63,    64,    65,     0,   698,     0,
02338        0,  -601,  -601,  -601,  -601,     0,     0,  -619,     0,  -619,
02339        0,     0,  -601,  -601,     0,  -601,  -601,  -601,  -601,  -601,
02340        0,     0,   327,   328,   329,   330,   331,   332,   333,   334,
02341      335,   336,   337,   338,   339,     0,     0,   340,   341,     0,
02342        0,     0,     0,  -601,  -601,  -601,  -601,  -601,  -601,  -601,
02343     -601,  -601,  -601,  -601,  -601,  -601,     0,     0,  -601,  -601,
02344     -601,     0,   755,  -601,     0,     0,     0,     0,   342,  -601,
02345      343,   344,   345,   346,   347,   348,   349,   350,   351,   352,
02346        0,     0,     0,  -601,     0,     0,  -601,     0,  -106,  -601,
02347     -601,  -601,  -601,  -601,  -601,  -601,  -601,  -601,  -601,  -601,
02348     -601,     0,     0,     0,     0,  -601,  -601,  -601,  -601,  -601,
02349     -504,     0,  -601,  -601,  -601,     0,  -601,     0,  -504,  -504,
02350     -504,     0,     0,  -504,  -504,  -504,     0,  -504,     0,     0,
02351        0,     0,     0,     0,     0,  -504,     0,  -504,  -504,  -504,
02352        0,     0,     0,     0,     0,     0,     0,  -504,  -504,     0,
02353     -504,  -504,  -504,  -504,  -504,     0,     0,   327,   328,   329,
02354      330,   331,   332,   333,   334,   335,   336,   337,   338,   339,
02355        0,     0,   340,   341,     0,     0,     0,     0,  -504,  -504,
02356     -504,  -504,  -504,  -504,  -504,  -504,  -504,  -504,  -504,  -504,
02357     -504,     0,     0,  -504,  -504,  -504,     0,  -504,  -504,     0,
02358        0,     0,     0,   342,  -504,   343,   344,   345,   346,   347,
02359      348,   349,   350,   351,   352,     0,     0,     0,  -504,     0,
02360        0,  -504,     0,  -504,  -504,  -504,  -504,  -504,  -504,  -504,
02361     -504,  -504,  -504,  -504,  -504,  -504,     0,     0,     0,     0,
02362        0,  -504,  -504,  -504,  -504,  -507,     0,  -504,  -504,  -504,
02363        0,  -504,     0,  -507,  -507,  -507,     0,     0,  -507,  -507,
02364     -507,     0,  -507,     0,     0,     0,     0,     0,     0,     0,
02365     -507,     0,  -507,  -507,  -507,     0,     0,     0,     0,     0,
02366        0,     0,  -507,  -507,     0,  -507,  -507,  -507,  -507,  -507,
02367        0,     0,   327,   328,   329,   330,   331,   332,   333,   334,
02368      335,   336,   337,  -620,  -620,     0,     0,   340,   341,     0,
02369        0,     0,     0,  -507,  -507,  -507,  -507,  -507,  -507,  -507,
02370     -507,  -507,  -507,  -507,  -507,  -507,     0,     0,  -507,  -507,
02371     -507,     0,  -507,  -507,     0,     0,     0,     0,     0,  -507,
02372      343,   344,   345,   346,   347,   348,   349,   350,   351,   352,
02373        0,     0,     0,  -507,     0,     0,  -507,     0,  -507,  -507,
02374     -507,  -507,  -507,  -507,  -507,  -507,  -507,  -507,  -507,  -507,
02375     -507,     0,     0,     0,     0,     0,  -507,  -507,  -507,  -507,
02376     -602,     0,  -507,  -507,  -507,     0,  -507,     0,  -602,  -602,
02377     -602,     0,     0,  -602,  -602,  -602,     0,  -602,     0,     0,
02378        0,     0,     0,     0,     0,     0,  -602,  -602,  -602,  -602,
02379        0,     0,     0,     0,     0,     0,     0,  -602,  -602,     0,
02380     -602,  -602,  -602,  -602,  -602,     0,     0,     0,     0,     0,
02381        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02382        0,     0,     0,     0,     0,     0,     0,     0,  -602,  -602,
02383     -602,  -602,  -602,  -602,  -602,  -602,  -602,  -602,  -602,  -602,
02384     -602,     0,     0,  -602,  -602,  -602,     0,     0,  -602,     0,
02385        0,     0,     0,     0,  -602,     0,     0,     0,     0,     0,
02386        0,     0,     0,     0,     0,     0,     0,     0,  -602,     0,
02387        0,  -602,     0,     0,  -602,  -602,  -602,  -602,  -602,  -602,
02388     -602,  -602,  -602,  -602,  -602,  -602,     0,     0,     0,     0,
02389     -602,  -602,  -602,  -602,  -602,  -603,     0,  -602,  -602,  -602,
02390        0,  -602,     0,  -603,  -603,  -603,     0,     0,  -603,  -603,
02391     -603,     0,  -603,     0,     0,     0,     0,     0,     0,     0,
02392        0,  -603,  -603,  -603,  -603,     0,     0,     0,     0,     0,
02393        0,     0,  -603,  -603,     0,  -603,  -603,  -603,  -603,  -603,
02394        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02395        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02396        0,     0,     0,  -603,  -603,  -603,  -603,  -603,  -603,  -603,
02397     -603,  -603,  -603,  -603,  -603,  -603,     0,     0,  -603,  -603,
02398     -603,     0,     0,  -603,     0,     0,     0,     0,     0,  -603,
02399        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02400        0,     0,     0,  -603,     0,     0,  -603,     0,     0,  -603,
02401     -603,  -603,  -603,  -603,  -603,  -603,  -603,  -603,  -603,  -603,
02402     -603,     0,     0,     0,     0,  -603,  -603,  -603,  -603,  -603,
02403     -293,     0,  -603,  -603,  -603,     0,  -603,     0,  -293,  -293,
02404     -293,     0,     0,  -293,  -293,  -293,     0,  -293,     0,     0,
02405        0,     0,     0,     0,     0,     0,     0,  -293,  -293,  -293,
02406        0,     0,     0,     0,     0,     0,     0,  -293,  -293,     0,
02407     -293,  -293,  -293,  -293,  -293,     0,     0,     0,     0,     0,
02408        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02409        0,     0,     0,     0,     0,     0,     0,     0,  -293,  -293,
02410     -293,  -293,  -293,  -293,  -293,  -293,  -293,  -293,  -293,  -293,
02411     -293,     0,     0,  -293,  -293,  -293,     0,   756,  -293,     0,
02412        0,     0,     0,     0,  -293,     0,     0,     0,     0,     0,
02413        0,     0,     0,     0,     0,     0,     0,     0,  -293,     0,
02414        0,  -293,     0,  -108,  -293,  -293,  -293,  -293,  -293,  -293,
02415     -293,  -293,  -293,  -293,  -293,  -293,     0,     0,     0,     0,
02416        0,  -293,  -293,  -293,  -293,  -431,     0,  -293,  -293,  -293,
02417        0,  -293,     0,  -431,  -431,  -431,     0,     0,  -431,  -431,
02418     -431,     0,  -431,     0,     0,     0,     0,     0,     0,     0,
02419        0,  -431,  -431,  -431,     0,     0,     0,     0,     0,     0,
02420        0,     0,  -431,  -431,     0,  -431,  -431,  -431,  -431,  -431,
02421        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02422        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02423        0,     0,     0,  -431,  -431,  -431,  -431,  -431,  -431,  -431,
02424     -431,  -431,  -431,  -431,  -431,  -431,     0,     0,  -431,  -431,
02425     -431,     0,     0,  -431,     0,     0,     0,     0,     0,  -431,
02426        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02427        0,     0,     0,  -431,     0,     0,     0,     0,     0,  -431,
02428        0,  -431,  -431,  -431,  -431,  -431,  -431,  -431,  -431,  -431,
02429     -431,     0,     0,     0,     0,  -431,  -431,  -431,  -431,  -431,
02430     -285,   227,  -431,  -431,  -431,     0,  -431,     0,  -285,  -285,
02431     -285,     0,     0,  -285,  -285,  -285,     0,  -285,     0,     0,
02432        0,     0,     0,     0,     0,     0,     0,  -285,  -285,  -285,
02433        0,     0,     0,     0,     0,     0,     0,  -285,  -285,     0,
02434     -285,  -285,  -285,  -285,  -285,     0,     0,     0,     0,     0,
02435        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02436        0,     0,     0,     0,     0,     0,     0,     0,  -285,  -285,
02437     -285,  -285,  -285,  -285,  -285,  -285,  -285,  -285,  -285,  -285,
02438     -285,     0,     0,  -285,  -285,  -285,     0,     0,  -285,     0,
02439        0,     0,     0,     0,  -285,     0,     0,     0,     0,     0,
02440        0,     0,     0,     0,     0,     0,     0,     0,  -285,     0,
02441        0,  -285,     0,     0,  -285,  -285,  -285,  -285,  -285,  -285,
02442     -285,  -285,  -285,  -285,  -285,  -285,     0,     0,     0,     0,
02443        0,  -285,  -285,  -285,  -285,  -421,     0,  -285,  -285,  -285,
02444        0,  -285,     0,  -421,  -421,  -421,     0,     0,  -421,  -421,
02445     -421,     0,  -421,     0,     0,     0,     0,     0,     0,     0,
02446        0,  -421,  -421,  -421,     0,     0,     0,     0,     0,     0,
02447        0,     0,  -421,  -421,     0,  -421,  -421,  -421,  -421,  -421,
02448        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02449        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02450        0,     0,     0,  -421,  -421,  -421,  -421,  -421,  -421,  -421,
02451     -421,  -421,  -421,  -421,  -421,  -421,     0,     0,  -421,  -421,
02452     -421,     0,     0,  -421,     0,     0,     0,     0,     0,  -421,
02453        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02454        0,     0,     0,  -421,     0,     0,     0,     0,     0,  -421,
02455        0,  -421,  -421,  -421,  -421,  -421,  -421,  -421,  -421,  -421,
02456     -421,     0,     0,     0,     0,  -421,  -421,  -421,  -421,  -421,
02457     -300,  -421,  -421,  -421,  -421,     0,  -421,     0,  -300,  -300,
02458     -300,     0,     0,  -300,  -300,  -300,     0,  -300,     0,     0,
02459        0,     0,     0,     0,     0,     0,     0,  -300,  -300,     0,
02460        0,     0,     0,     0,     0,     0,     0,  -300,  -300,     0,
02461     -300,  -300,  -300,  -300,  -300,     0,     0,     0,     0,     0,
02462        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02463        0,     0,     0,     0,     0,     0,     0,     0,  -300,  -300,
02464     -300,  -300,  -300,  -300,  -300,  -300,  -300,  -300,  -300,  -300,
02465     -300,     0,     0,  -300,  -300,  -300,     0,     0,  -300,     0,
02466        0,     0,     0,     0,  -300,     0,     0,     0,     0,     0,
02467        0,     0,     0,     0,     0,     0,     0,     0,  -300,     0,
02468        0,     0,     0,     0,  -300,     0,  -300,  -300,  -300,  -300,
02469     -300,  -300,  -300,  -300,  -300,  -300,     0,     0,     0,     0,
02470        0,  -300,  -300,  -300,  -300,  -601,   224,  -300,  -300,  -300,
02471        0,  -300,     0,  -601,  -601,  -601,     0,     0,     0,  -601,
02472     -601,     0,  -601,     0,     0,     0,     0,     0,     0,     0,
02473        0,  -601,     0,     0,     0,     0,     0,     0,     0,     0,
02474        0,     0,  -601,  -601,     0,  -601,  -601,  -601,  -601,  -601,
02475        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02476        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02477        0,     0,     0,  -601,  -601,  -601,  -601,  -601,  -601,  -601,
02478     -601,  -601,  -601,  -601,  -601,  -601,     0,     0,  -601,  -601,
02479     -601,     0,   700,     0,     0,     0,     0,     0,     0,     0,
02480        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02481        0,     0,     0,  -601,     0,     0,     0,     0,  -106,  -601,
02482        0,  -601,  -601,  -601,  -601,  -601,  -601,  -601,  -601,  -601,
02483     -601,     0,     0,     0,     0,  -601,  -601,  -601,  -601,   -97,
02484     -293,     0,  -601,     0,  -601,     0,  -601,     0,  -293,  -293,
02485     -293,     0,     0,     0,  -293,  -293,     0,  -293,     0,     0,
02486        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02487        0,     0,     0,     0,     0,     0,     0,  -293,  -293,     0,
02488     -293,  -293,  -293,  -293,  -293,     0,     0,     0,     0,     0,
02489        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02490        0,     0,     0,     0,     0,     0,     0,     0,  -293,  -293,
02491     -293,  -293,  -293,  -293,  -293,  -293,  -293,  -293,  -293,  -293,
02492     -293,     0,     0,  -293,  -293,  -293,     0,   701,     0,     0,
02493        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02494        0,     0,     0,     0,     0,     0,     0,     0,  -293,     0,
02495        0,     0,     0,  -108,  -293,     0,  -293,  -293,  -293,  -293,
02496     -293,  -293,  -293,  -293,  -293,  -293,     0,     0,     0,     0,
02497        0,  -293,  -293,  -293,   -99,     0,     0,  -293,     0,  -293,
02498      248,  -293,     5,     6,     7,     8,     9,  -619,  -619,  -619,
02499       10,    11,     0,     0,  -619,    12,     0,    13,    14,    15,
02500       16,    17,    18,    19,     0,     0,     0,     0,     0,    20,
02501       21,    22,    23,    24,    25,    26,     0,     0,    27,     0,
02502        0,     0,     0,     0,    28,    29,   249,    31,    32,    33,
02503       34,    35,    36,    37,    38,    39,    40,     0,    41,    42,
02504        0,    43,    44,    45,     0,    46,    47,     0,     0,     0,
02505        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02506        0,     0,     0,     0,     0,    48,     0,     0,    49,    50,
02507        0,    51,    52,     0,    53,     0,     0,    54,    55,    56,
02508       57,    58,    59,    60,    61,    62,     0,     0,     0,     0,
02509        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02510        0,     0,     0,     0,     0,    63,    64,    65,     0,     0,
02511        0,     0,     0,     0,     0,     0,     0,     0,  -619,   248,
02512     -619,     5,     6,     7,     8,     9,     0,     0,  -619,    10,
02513       11,     0,  -619,  -619,    12,     0,    13,    14,    15,    16,
02514       17,    18,    19,     0,     0,     0,     0,     0,    20,    21,
02515       22,    23,    24,    25,    26,     0,     0,    27,     0,     0,
02516        0,     0,     0,    28,    29,   249,    31,    32,    33,    34,
02517       35,    36,    37,    38,    39,    40,     0,    41,    42,     0,
02518       43,    44,    45,     0,    46,    47,     0,     0,     0,     0,
02519        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02520        0,     0,     0,     0,    48,     0,     0,    49,    50,     0,
02521       51,    52,     0,    53,     0,     0,    54,    55,    56,    57,
02522       58,    59,    60,    61,    62,     0,     0,     0,     0,     0,
02523        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02524        0,     0,     0,     0,    63,    64,    65,     0,     0,     0,
02525        0,     0,     0,     0,     0,     0,     0,  -619,   248,  -619,
02526        5,     6,     7,     8,     9,     0,     0,  -619,    10,    11,
02527        0,     0,  -619,    12,  -619,    13,    14,    15,    16,    17,
02528       18,    19,     0,     0,     0,     0,     0,    20,    21,    22,
02529       23,    24,    25,    26,     0,     0,    27,     0,     0,     0,
02530        0,     0,    28,    29,   249,    31,    32,    33,    34,    35,
02531       36,    37,    38,    39,    40,     0,    41,    42,     0,    43,
02532       44,    45,     0,    46,    47,     0,     0,     0,     0,     0,
02533        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02534        0,     0,     0,    48,     0,     0,    49,    50,     0,    51,
02535       52,     0,    53,     0,     0,    54,    55,    56,    57,    58,
02536       59,    60,    61,    62,     0,     0,     0,     0,     0,     0,
02537        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02538        0,     0,     0,    63,    64,    65,     0,     0,     0,     0,
02539        0,     0,     0,     0,     0,     0,  -619,   248,  -619,     5,
02540        6,     7,     8,     9,     0,     0,  -619,    10,    11,     0,
02541        0,  -619,    12,     0,    13,    14,    15,    16,    17,    18,
02542       19,     0,     0,     0,     0,     0,    20,    21,    22,    23,
02543       24,    25,    26,     0,     0,    27,     0,     0,     0,     0,
02544        0,    28,    29,   249,    31,    32,    33,    34,    35,    36,
02545       37,    38,    39,    40,     0,    41,    42,     0,    43,    44,
02546       45,     0,    46,    47,     0,     0,     0,     0,     0,     0,
02547        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02548        0,     0,    48,     0,     0,    49,    50,     0,    51,    52,
02549        0,    53,     0,     0,    54,    55,    56,    57,    58,    59,
02550       60,    61,    62,     0,     0,     0,     0,     0,     0,     0,
02551      248,     0,     5,     6,     7,     8,     9,     0,  -619,  -619,
02552       10,    11,    63,    64,    65,    12,     0,    13,    14,    15,
02553       16,    17,    18,    19,     0,  -619,     0,  -619,     0,    20,
02554       21,    22,    23,    24,    25,    26,     0,     0,    27,     0,
02555        0,     0,     0,     0,    28,    29,   249,    31,    32,    33,
02556       34,    35,    36,    37,    38,    39,    40,     0,    41,    42,
02557        0,    43,    44,    45,     0,    46,    47,     0,     0,     0,
02558        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02559        0,     0,     0,     0,     0,    48,     0,     0,    49,    50,
02560        0,    51,    52,     0,    53,     0,     0,    54,    55,    56,
02561       57,    58,    59,    60,    61,    62,     0,     0,     0,     0,
02562        0,     0,     0,   248,     0,     5,     6,     7,     8,     9,
02563        0,     0,     0,    10,    11,    63,    64,    65,    12,     0,
02564       13,    14,    15,    16,    17,    18,    19,     0,  -619,     0,
02565     -619,     0,    20,    21,    22,    23,    24,    25,    26,     0,
02566        0,    27,     0,     0,     0,     0,     0,    28,    29,   249,
02567       31,    32,    33,    34,    35,    36,    37,    38,    39,    40,
02568        0,    41,    42,     0,    43,    44,    45,     0,    46,    47,
02569        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02570        0,     0,     0,     0,     0,     0,     0,     0,    48,     0,
02571        0,   250,    50,     0,    51,    52,     0,    53,     0,     0,
02572       54,    55,    56,    57,    58,    59,    60,    61,    62,     0,
02573        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02574        0,     0,     0,     0,     0,     0,     0,     0,    63,    64,
02575       65,     0,     0,     0,     0,     0,     0,     0,     0,  -619,
02576        0,  -619,   248,  -619,     5,     6,     7,     8,     9,     0,
02577        0,     0,    10,    11,     0,     0,     0,    12,     0,    13,
02578       14,    15,    16,    17,    18,    19,     0,     0,     0,     0,
02579        0,    20,    21,    22,    23,    24,    25,    26,     0,     0,
02580       27,     0,     0,     0,     0,     0,    28,    29,   249,    31,
02581       32,    33,    34,    35,    36,    37,    38,    39,    40,     0,
02582       41,    42,     0,    43,    44,    45,     0,    46,    47,     0,
02583        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02584        0,     0,     0,     0,     0,     0,     0,    48,     0,     0,
02585       49,    50,     0,    51,    52,     0,    53,     0,     0,    54,
02586       55,    56,    57,    58,    59,    60,    61,    62,     0,     0,
02587        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02588        0,     0,     0,     0,     0,     0,     0,    63,    64,    65,
02589        0,     0,     0,     0,     0,     0,     0,     0,  -619,     0,
02590     -619,   248,  -619,     5,     6,     7,     8,     9,     0,     0,
02591        0,    10,    11,     0,     0,     0,    12,     0,    13,    14,
02592       15,    16,    17,    18,    19,     0,     0,     0,     0,     0,
02593       20,    21,    22,    23,    24,    25,    26,     0,     0,    27,
02594        0,     0,     0,     0,     0,    28,    29,   249,    31,    32,
02595       33,    34,    35,    36,    37,    38,    39,    40,     0,    41,
02596       42,     0,    43,    44,    45,     0,    46,    47,     0,     0,
02597        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02598        0,     0,     0,     0,     0,     0,    48,     0,     0,    49,
02599       50,     0,    51,    52,     0,    53,     0,     0,    54,    55,
02600       56,    57,    58,    59,    60,    61,    62,     0,     0,     0,
02601        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02602        0,     0,     0,     0,     0,     0,    63,    64,    65,     0,
02603        0,  -619,     4,     0,     5,     6,     7,     8,     9,  -619,
02604        0,  -619,    10,    11,     0,     0,     0,    12,     0,    13,
02605       14,    15,    16,    17,    18,    19,     0,     0,     0,     0,
02606        0,    20,    21,    22,    23,    24,    25,    26,     0,     0,
02607       27,     0,     0,     0,     0,     0,    28,    29,    30,    31,
02608       32,    33,    34,    35,    36,    37,    38,    39,    40,     0,
02609       41,    42,     0,    43,    44,    45,     0,    46,    47,     0,
02610        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02611        0,     0,     0,     0,     0,     0,     0,    48,     0,     0,
02612       49,    50,     0,    51,    52,     0,    53,     0,     0,    54,
02613       55,    56,    57,    58,    59,    60,    61,    62,     0,     0,
02614        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02615        0,     0,     0,     0,     0,     0,     0,    63,    64,    65,
02616        0,     0,  -619,     0,     0,     0,     0,     0,     0,     0,
02617     -619,   248,  -619,     5,     6,     7,     8,     9,     0,     0,
02618     -619,    10,    11,     0,     0,     0,    12,     0,    13,    14,
02619       15,    16,    17,    18,    19,     0,     0,     0,     0,     0,
02620       20,    21,    22,    23,    24,    25,    26,     0,     0,    27,
02621        0,     0,     0,     0,     0,    28,    29,   249,    31,    32,
02622       33,    34,    35,    36,    37,    38,    39,    40,     0,    41,
02623       42,     0,    43,    44,    45,     0,    46,    47,     0,     0,
02624        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02625        0,     0,     0,     0,     0,     0,    48,     0,     0,    49,
02626       50,     0,    51,    52,     0,    53,     0,     0,    54,    55,
02627       56,    57,    58,    59,    60,    61,    62,     0,     0,     0,
02628        0,     0,     0,     0,   248,     0,     5,     6,     7,     8,
02629        9,     0,     0,     0,    10,    11,    63,    64,    65,    12,
02630        0,    13,    14,    15,    16,    17,    18,    19,     0,  -619,
02631        0,  -619,     0,    20,    21,    22,    23,    24,    25,    26,
02632        0,     0,    27,     0,     0,     0,     0,     0,    28,    29,
02633      249,    31,    32,    33,    34,    35,    36,    37,    38,    39,
02634       40,     0,    41,    42,     0,    43,    44,    45,     0,    46,
02635       47,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02636        0,     0,     0,     0,     0,     0,     0,     0,     0,    48,
02637        0,     0,    49,    50,     0,    51,    52,     0,    53,     0,
02638        0,    54,    55,    56,    57,    58,    59,    60,    61,    62,
02639        0,  -619,     0,     0,     0,     0,     0,     0,     0,     5,
02640        6,     7,     0,     9,     0,     0,     0,    10,    11,    63,
02641       64,    65,    12,     0,    13,    14,    15,    16,    17,    18,
02642       19,     0,  -619,     0,  -619,     0,    20,    21,    22,    23,
02643       24,    25,    26,     0,     0,   200,     0,     0,     0,     0,
02644        0,     0,    29,     0,     0,    32,    33,    34,    35,    36,
02645       37,    38,    39,    40,   201,    41,    42,     0,    43,    44,
02646       45,     0,    46,    47,     0,     0,     0,     0,     0,     0,
02647        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02648        0,     0,   202,     0,     0,   203,    50,     0,    51,    52,
02649        0,   204,   205,   206,    54,    55,    56,    57,    58,    59,
02650       60,    61,    62,     0,     0,     0,     0,     0,     0,     0,
02651        0,     0,     5,     6,     7,     0,     9,     0,     0,     0,
02652       10,    11,    63,   207,    65,    12,     0,    13,    14,    15,
02653       16,    17,    18,    19,     0,     0,     0,   231,     0,    20,
02654       21,    22,    23,    24,    25,    26,     0,     0,    27,     0,
02655        0,     0,     0,     0,     0,    29,     0,     0,    32,    33,
02656       34,    35,    36,    37,    38,    39,    40,     0,    41,    42,
02657        0,    43,    44,    45,     0,    46,    47,     0,     0,     0,
02658        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02659        0,     0,     0,     0,     0,   202,     0,     0,   203,    50,
02660        0,    51,    52,     0,     0,     0,     0,    54,    55,    56,
02661       57,    58,    59,    60,    61,    62,     0,     0,     0,     0,
02662        0,     0,     0,     0,     0,     5,     6,     7,     0,     9,
02663        0,     0,     0,    10,    11,    63,    64,    65,    12,     0,
02664       13,    14,    15,    16,    17,    18,    19,     0,   302,     0,
02665      303,     0,    20,    21,    22,    23,    24,    25,    26,     0,
02666        0,    27,     0,     0,     0,     0,     0,     0,    29,     0,
02667        0,    32,    33,    34,    35,    36,    37,    38,    39,    40,
02668        0,    41,    42,     0,    43,    44,    45,     0,    46,    47,
02669        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02670        0,     0,     0,     0,     0,     0,     0,     0,   202,     0,
02671        0,   203,    50,     0,    51,    52,     0,     0,     0,     0,
02672       54,    55,    56,    57,    58,    59,    60,    61,    62,     0,
02673        0,     0,     0,     0,     0,     0,     0,     0,     5,     6,
02674        7,     8,     9,     0,     0,     0,    10,    11,    63,    64,
02675       65,    12,     0,    13,    14,    15,    16,    17,    18,    19,
02676        0,     0,     0,   231,     0,    20,    21,    22,    23,    24,
02677       25,    26,     0,     0,    27,     0,     0,     0,     0,     0,
02678       28,    29,    30,    31,    32,    33,    34,    35,    36,    37,
02679       38,    39,    40,     0,    41,    42,     0,    43,    44,    45,
02680        0,    46,    47,     0,     0,     0,     0,     0,     0,     0,
02681        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02682        0,    48,     0,     0,    49,    50,     0,    51,    52,     0,
02683       53,     0,     0,    54,    55,    56,    57,    58,    59,    60,
02684       61,    62,     0,     0,     0,     0,     0,     0,     0,     0,
02685        0,     5,     6,     7,     8,     9,     0,     0,     0,    10,
02686       11,    63,    64,    65,    12,     0,    13,    14,    15,    16,
02687       17,    18,    19,     0,   498,     0,     0,     0,    20,    21,
02688       22,    23,    24,    25,    26,     0,     0,    27,     0,     0,
02689        0,     0,     0,    28,    29,   249,    31,    32,    33,    34,
02690       35,    36,    37,    38,    39,    40,     0,    41,    42,     0,
02691       43,    44,    45,     0,    46,    47,     0,     0,     0,     0,
02692        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02693        0,     0,     0,     0,    48,     0,     0,    49,    50,     0,
02694       51,    52,     0,    53,     0,     0,    54,    55,    56,    57,
02695       58,    59,    60,    61,    62,     0,     0,     0,     0,     0,
02696        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02697        0,     0,     0,     0,    63,    64,    65,     0,     0,     0,
02698        0,     0,     0,     0,     0,     0,     0,   498,   118,   119,
02699      120,   121,   122,   123,   124,   125,   126,   127,   128,   129,
02700      130,   131,   132,   133,   134,   135,   136,   137,   138,   139,
02701      140,   141,     0,     0,     0,   142,   143,   144,   384,   385,
02702      386,   387,   149,   150,   151,     0,     0,     0,     0,     0,
02703      152,   153,   154,   155,   388,   389,   390,   391,   160,    37,
02704       38,   392,    40,     0,     0,     0,     0,     0,     0,     0,
02705        0,   162,   163,   164,   165,   166,   167,   168,   169,   170,
02706        0,     0,   171,   172,     0,     0,   173,   174,   175,   176,
02707        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02708      177,   178,     0,     0,     0,     0,     0,     0,     0,     0,
02709        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02710        0,   179,   180,   181,   182,   183,   184,   185,   186,   187,
02711      188,     0,   189,   190,     0,     0,     0,     0,     0,     0,
02712      191,   393,   118,   119,   120,   121,   122,   123,   124,   125,
02713      126,   127,   128,   129,   130,   131,   132,   133,   134,   135,
02714      136,   137,   138,   139,   140,   141,     0,     0,     0,   142,
02715      143,   144,   145,   146,   147,   148,   149,   150,   151,     0,
02716        0,     0,     0,     0,   152,   153,   154,   155,   156,   157,
02717      158,   159,   160,   280,   281,   161,   282,     0,     0,     0,
02718        0,     0,     0,     0,     0,   162,   163,   164,   165,   166,
02719      167,   168,   169,   170,     0,     0,   171,   172,     0,     0,
02720      173,   174,   175,   176,     0,     0,     0,     0,     0,     0,
02721        0,     0,     0,     0,   177,   178,     0,     0,     0,     0,
02722        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02723        0,     0,     0,     0,     0,   179,   180,   181,   182,   183,
02724      184,   185,   186,   187,   188,     0,   189,   190,     0,     0,
02725        0,     0,     0,     0,   191,   118,   119,   120,   121,   122,
02726      123,   124,   125,   126,   127,   128,   129,   130,   131,   132,
02727      133,   134,   135,   136,   137,   138,   139,   140,   141,     0,
02728        0,     0,   142,   143,   144,   145,   146,   147,   148,   149,
02729      150,   151,     0,     0,     0,     0,     0,   152,   153,   154,
02730      155,   156,   157,   158,   159,   160,   233,     0,   161,     0,
02731        0,     0,     0,     0,     0,     0,     0,     0,   162,   163,
02732      164,   165,   166,   167,   168,   169,   170,     0,     0,   171,
02733      172,     0,     0,   173,   174,   175,   176,     0,     0,     0,
02734        0,     0,     0,     0,     0,     0,     0,   177,   178,     0,
02735        0,    55,     0,     0,     0,     0,     0,     0,     0,     0,
02736        0,     0,     0,     0,     0,     0,     0,     0,   179,   180,
02737      181,   182,   183,   184,   185,   186,   187,   188,     0,   189,
02738      190,     0,     0,     0,     0,     0,     0,   191,   118,   119,
02739      120,   121,   122,   123,   124,   125,   126,   127,   128,   129,
02740      130,   131,   132,   133,   134,   135,   136,   137,   138,   139,
02741      140,   141,     0,     0,     0,   142,   143,   144,   145,   146,
02742      147,   148,   149,   150,   151,     0,     0,     0,     0,     0,
02743      152,   153,   154,   155,   156,   157,   158,   159,   160,     0,
02744        0,   161,     0,     0,     0,     0,     0,     0,     0,     0,
02745        0,   162,   163,   164,   165,   166,   167,   168,   169,   170,
02746        0,     0,   171,   172,     0,     0,   173,   174,   175,   176,
02747        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02748      177,   178,     0,     0,    55,     0,     0,     0,     0,     0,
02749        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02750        0,   179,   180,   181,   182,   183,   184,   185,   186,   187,
02751      188,     0,   189,   190,     0,     0,     0,     0,     0,     0,
02752      191,   118,   119,   120,   121,   122,   123,   124,   125,   126,
02753      127,   128,   129,   130,   131,   132,   133,   134,   135,   136,
02754      137,   138,   139,   140,   141,     0,     0,     0,   142,   143,
02755      144,   145,   146,   147,   148,   149,   150,   151,     0,     0,
02756        0,     0,     0,   152,   153,   154,   155,   156,   157,   158,
02757      159,   160,     0,     0,   161,     0,     0,     0,     0,     0,
02758        0,     0,     0,     0,   162,   163,   164,   165,   166,   167,
02759      168,   169,   170,     0,     0,   171,   172,     0,     0,   173,
02760      174,   175,   176,     0,     0,     0,     0,     0,     0,     0,
02761        0,     0,     0,   177,   178,     0,     0,     0,     0,     0,
02762        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02763        0,     0,     0,     0,   179,   180,   181,   182,   183,   184,
02764      185,   186,   187,   188,     0,   189,   190,     5,     6,     7,
02765        0,     9,     0,   191,     0,    10,    11,     0,     0,     0,
02766       12,     0,    13,    14,    15,   238,   239,    18,    19,     0,
02767        0,     0,     0,     0,   240,   241,   242,    23,    24,    25,
02768       26,     0,     0,   200,     0,     0,     0,     0,     0,     0,
02769      268,     0,     0,    32,    33,    34,    35,    36,    37,    38,
02770       39,    40,     0,    41,    42,     0,    43,    44,    45,     0,
02771        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02772        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02773      269,     0,     0,   203,    50,     0,    51,    52,     0,     0,
02774        0,     0,    54,    55,    56,    57,    58,    59,    60,    61,
02775       62,     0,     0,     0,     0,     0,     5,     6,     7,     0,
02776        9,     0,     0,     0,    10,    11,     0,     0,     0,    12,
02777      270,    13,    14,    15,   238,   239,    18,    19,   271,     0,
02778        0,     0,     0,   240,   241,   242,    23,    24,    25,    26,
02779        0,     0,   200,     0,     0,     0,     0,     0,     0,   268,
02780        0,     0,    32,    33,    34,    35,    36,    37,    38,    39,
02781       40,     0,    41,    42,     0,    43,    44,    45,     0,     0,
02782        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02783        0,     0,     0,     0,     0,     0,     0,     0,     0,   269,
02784        0,     0,   203,    50,     0,    51,    52,     0,     0,     0,
02785        0,    54,    55,    56,    57,    58,    59,    60,    61,    62,
02786        0,     0,     0,     0,     0,     5,     6,     7,     8,     9,
02787        0,     0,     0,    10,    11,     0,     0,     0,    12,   270,
02788       13,    14,    15,    16,    17,    18,    19,   518,     0,     0,
02789        0,     0,    20,    21,    22,    23,    24,    25,    26,     0,
02790        0,    27,     0,     0,     0,     0,     0,    28,    29,    30,
02791       31,    32,    33,    34,    35,    36,    37,    38,    39,    40,
02792        0,    41,    42,     0,    43,    44,    45,     0,    46,    47,
02793        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02794        0,     0,     0,     0,     0,     0,     0,     0,    48,     0,
02795        0,    49,    50,     0,    51,    52,     0,    53,     0,     0,
02796       54,    55,    56,    57,    58,    59,    60,    61,    62,     0,
02797        0,     0,     0,     0,     0,     0,     0,     0,     5,     6,
02798        7,     0,     9,     0,     0,     0,    10,    11,    63,    64,
02799       65,    12,     0,    13,    14,    15,    16,    17,    18,    19,
02800        0,     0,     0,     0,     0,    20,    21,    22,    23,    24,
02801       25,    26,     0,     0,   200,     0,     0,     0,     0,     0,
02802        0,    29,     0,     0,    32,    33,    34,    35,    36,    37,
02803       38,    39,    40,   201,    41,    42,     0,    43,    44,    45,
02804        0,    46,    47,     0,     0,     0,     0,     0,     0,     0,
02805        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02806        0,   202,     0,     0,   203,    50,     0,    51,    52,     0,
02807      204,   205,   206,    54,    55,    56,    57,    58,    59,    60,
02808       61,    62,     0,     0,     0,     0,     0,     0,     0,     0,
02809        0,     5,     6,     7,     8,     9,     0,     0,     0,    10,
02810       11,    63,   207,    65,    12,     0,    13,    14,    15,    16,
02811       17,    18,    19,     0,     0,     0,     0,     0,    20,    21,
02812       22,    23,    24,    25,    26,     0,     0,    27,     0,     0,
02813        0,     0,     0,    28,    29,     0,    31,    32,    33,    34,
02814       35,    36,    37,    38,    39,    40,     0,    41,    42,     0,
02815       43,    44,    45,     0,    46,    47,     0,     0,     0,     0,
02816        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02817        0,     0,     0,     0,    48,     0,     0,    49,    50,     0,
02818       51,    52,     0,    53,     0,     0,    54,    55,    56,    57,
02819       58,    59,    60,    61,    62,     0,     0,     0,     0,     0,
02820        0,     0,     0,     0,     5,     6,     7,     0,     9,     0,
02821        0,     0,    10,    11,    63,    64,    65,    12,     0,    13,
02822       14,    15,   238,   239,    18,    19,     0,     0,     0,     0,
02823        0,   240,   241,   242,    23,    24,    25,    26,     0,     0,
02824      200,     0,     0,     0,     0,     0,     0,    29,     0,     0,
02825       32,    33,    34,    35,    36,    37,    38,    39,    40,   201,
02826       41,    42,     0,    43,    44,    45,     0,    46,    47,     0,
02827        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02828        0,     0,     0,     0,     0,     0,     0,   202,     0,     0,
02829      203,    50,     0,    51,    52,     0,   608,   205,   206,    54,
02830       55,    56,    57,    58,    59,    60,    61,    62,     0,     0,
02831        0,     0,     0,     0,     0,     0,     0,     5,     6,     7,
02832        0,     9,     0,     0,     0,    10,    11,    63,   207,    65,
02833       12,     0,    13,    14,    15,   238,   239,    18,    19,     0,
02834        0,     0,     0,     0,   240,   241,   242,    23,    24,    25,
02835       26,     0,     0,   200,     0,     0,     0,     0,     0,     0,
02836       29,     0,     0,    32,    33,    34,    35,    36,    37,    38,
02837       39,    40,   201,    41,    42,     0,    43,    44,    45,     0,
02838       46,    47,     0,     0,     0,     0,     0,     0,     0,     0,
02839        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02840      202,     0,     0,   203,    50,     0,    51,    52,     0,   204,
02841      205,     0,    54,    55,    56,    57,    58,    59,    60,    61,
02842       62,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02843        5,     6,     7,     0,     9,     0,     0,     0,    10,    11,
02844       63,   207,    65,    12,     0,    13,    14,    15,   238,   239,
02845       18,    19,     0,     0,     0,     0,     0,   240,   241,   242,
02846       23,    24,    25,    26,     0,     0,   200,     0,     0,     0,
02847        0,     0,     0,    29,     0,     0,    32,    33,    34,    35,
02848       36,    37,    38,    39,    40,   201,    41,    42,     0,    43,
02849       44,    45,     0,    46,    47,     0,     0,     0,     0,     0,
02850        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02851        0,     0,     0,   202,     0,     0,   203,    50,     0,    51,
02852       52,     0,     0,   205,   206,    54,    55,    56,    57,    58,
02853       59,    60,    61,    62,     0,     0,     0,     0,     0,     0,
02854        0,     0,     0,     5,     6,     7,     0,     9,     0,     0,
02855        0,    10,    11,    63,   207,    65,    12,     0,    13,    14,
02856       15,   238,   239,    18,    19,     0,     0,     0,     0,     0,
02857      240,   241,   242,    23,    24,    25,    26,     0,     0,   200,
02858        0,     0,     0,     0,     0,     0,    29,     0,     0,    32,
02859       33,    34,    35,    36,    37,    38,    39,    40,   201,    41,
02860       42,     0,    43,    44,    45,     0,    46,    47,     0,     0,
02861        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02862        0,     0,     0,     0,     0,     0,   202,     0,     0,   203,
02863       50,     0,    51,    52,     0,   608,   205,     0,    54,    55,
02864       56,    57,    58,    59,    60,    61,    62,     0,     0,     0,
02865        0,     0,     0,     0,     0,     0,     5,     6,     7,     0,
02866        9,     0,     0,     0,    10,    11,    63,   207,    65,    12,
02867        0,    13,    14,    15,   238,   239,    18,    19,     0,     0,
02868        0,     0,     0,   240,   241,   242,    23,    24,    25,    26,
02869        0,     0,   200,     0,     0,     0,     0,     0,     0,    29,
02870        0,     0,    32,    33,    34,    35,    36,    37,    38,    39,
02871       40,   201,    41,    42,     0,    43,    44,    45,     0,    46,
02872       47,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02873        0,     0,     0,     0,     0,     0,     0,     0,     0,   202,
02874        0,     0,   203,    50,     0,    51,    52,     0,     0,   205,
02875        0,    54,    55,    56,    57,    58,    59,    60,    61,    62,
02876        0,     0,     0,     0,     0,     0,     0,     0,     0,     5,
02877        6,     7,     0,     9,     0,     0,     0,    10,    11,    63,
02878      207,    65,    12,     0,    13,    14,    15,    16,    17,    18,
02879       19,     0,     0,     0,     0,     0,    20,    21,    22,    23,
02880       24,    25,    26,     0,     0,   200,     0,     0,     0,     0,
02881        0,     0,    29,     0,     0,    32,    33,    34,    35,    36,
02882       37,    38,    39,    40,     0,    41,    42,     0,    43,    44,
02883       45,     0,    46,    47,     0,     0,     0,     0,     0,     0,
02884        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02885        0,     0,   202,     0,     0,   203,    50,     0,    51,    52,
02886        0,   512,     0,     0,    54,    55,    56,    57,    58,    59,
02887       60,    61,    62,     0,     0,     0,     0,     0,     0,     0,
02888        0,     0,     5,     6,     7,     0,     9,     0,     0,     0,
02889       10,    11,    63,   207,    65,    12,     0,    13,    14,    15,
02890      238,   239,    18,    19,     0,     0,     0,     0,     0,   240,
02891      241,   242,    23,    24,    25,    26,     0,     0,   200,     0,
02892        0,     0,     0,     0,     0,    29,     0,     0,    32,    33,
02893       34,    35,    36,    37,    38,    39,    40,     0,    41,    42,
02894        0,    43,    44,    45,     0,    46,    47,     0,     0,     0,
02895        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02896        0,     0,     0,     0,     0,   202,     0,     0,   203,    50,
02897        0,    51,    52,     0,   204,     0,     0,    54,    55,    56,
02898       57,    58,    59,    60,    61,    62,     0,     0,     0,     0,
02899        0,     0,     0,     0,     0,     5,     6,     7,     0,     9,
02900        0,     0,     0,    10,    11,    63,   207,    65,    12,     0,
02901       13,    14,    15,   238,   239,    18,    19,     0,     0,     0,
02902        0,     0,   240,   241,   242,    23,    24,    25,    26,     0,
02903        0,   200,     0,     0,     0,     0,     0,     0,    29,     0,
02904        0,    32,    33,    34,    35,    36,    37,    38,    39,    40,
02905        0,    41,    42,     0,    43,    44,    45,     0,    46,    47,
02906        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02907        0,     0,     0,     0,     0,     0,     0,     0,   202,     0,
02908        0,   203,    50,     0,    51,    52,     0,   816,     0,     0,
02909       54,    55,    56,    57,    58,    59,    60,    61,    62,     0,
02910        0,     0,     0,     0,     0,     0,     0,     0,     5,     6,
02911        7,     0,     9,     0,     0,     0,    10,    11,    63,   207,
02912       65,    12,     0,    13,    14,    15,   238,   239,    18,    19,
02913        0,     0,     0,     0,     0,   240,   241,   242,    23,    24,
02914       25,    26,     0,     0,   200,     0,     0,     0,     0,     0,
02915        0,    29,     0,     0,    32,    33,    34,    35,    36,    37,
02916       38,    39,    40,     0,    41,    42,     0,    43,    44,    45,
02917        0,    46,    47,     0,     0,     0,     0,     0,     0,     0,
02918        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02919        0,   202,     0,     0,   203,    50,     0,    51,    52,     0,
02920      512,     0,     0,    54,    55,    56,    57,    58,    59,    60,
02921       61,    62,     0,     0,     0,     0,     0,     0,     0,     0,
02922        0,     5,     6,     7,     0,     9,     0,     0,     0,    10,
02923       11,    63,   207,    65,    12,     0,    13,    14,    15,   238,
02924      239,    18,    19,     0,     0,     0,     0,     0,   240,   241,
02925      242,    23,    24,    25,    26,     0,     0,   200,     0,     0,
02926        0,     0,     0,     0,    29,     0,     0,    32,    33,    34,
02927       35,    36,    37,    38,    39,    40,     0,    41,    42,     0,
02928       43,    44,    45,     0,    46,    47,     0,     0,     0,     0,
02929        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02930        0,     0,     0,     0,   202,     0,     0,   203,    50,     0,
02931       51,    52,     0,   608,     0,     0,    54,    55,    56,    57,
02932       58,    59,    60,    61,    62,     0,     0,     0,     0,     0,
02933        0,     0,     0,     0,     5,     6,     7,     0,     9,     0,
02934        0,     0,    10,    11,    63,   207,    65,    12,     0,    13,
02935       14,    15,   238,   239,    18,    19,     0,     0,     0,     0,
02936        0,   240,   241,   242,    23,    24,    25,    26,     0,     0,
02937      200,     0,     0,     0,     0,     0,     0,    29,     0,     0,
02938       32,    33,    34,    35,    36,    37,    38,    39,    40,     0,
02939       41,    42,     0,    43,    44,    45,     0,    46,    47,     0,
02940        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02941        0,     0,     0,     0,     0,     0,     0,   202,     0,     0,
02942      203,    50,     0,    51,    52,     0,     0,     0,     0,    54,
02943       55,    56,    57,    58,    59,    60,    61,    62,     0,     0,
02944        0,     0,     0,     0,     0,     0,     0,     5,     6,     7,
02945        0,     9,     0,     0,     0,    10,    11,    63,   207,    65,
02946       12,     0,    13,    14,    15,    16,    17,    18,    19,     0,
02947        0,     0,     0,     0,    20,    21,    22,    23,    24,    25,
02948       26,     0,     0,    27,     0,     0,     0,     0,     0,     0,
02949       29,     0,     0,    32,    33,    34,    35,    36,    37,    38,
02950       39,    40,     0,    41,    42,     0,    43,    44,    45,     0,
02951       46,    47,     0,     0,     0,     0,     0,     0,     0,     0,
02952        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02953      202,     0,     0,   203,    50,     0,    51,    52,     0,     0,
02954        0,     0,    54,    55,    56,    57,    58,    59,    60,    61,
02955       62,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02956        5,     6,     7,     0,     9,     0,     0,     0,    10,    11,
02957       63,    64,    65,    12,     0,    13,    14,    15,    16,    17,
02958       18,    19,     0,     0,     0,     0,     0,    20,    21,    22,
02959       23,    24,    25,    26,     0,     0,   200,     0,     0,     0,
02960        0,     0,     0,    29,     0,     0,    32,    33,    34,    35,
02961       36,    37,    38,    39,    40,     0,    41,    42,     0,    43,
02962       44,    45,     0,    46,    47,     0,     0,     0,     0,     0,
02963        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02964        0,     0,     0,   202,     0,     0,   203,    50,     0,    51,
02965       52,     0,     0,     0,     0,    54,    55,    56,    57,    58,
02966       59,    60,    61,    62,     0,     0,     0,     0,     0,     0,
02967        0,     0,     0,     5,     6,     7,     0,     9,     0,     0,
02968        0,    10,    11,    63,   207,    65,    12,     0,    13,    14,
02969       15,   238,   239,    18,    19,     0,     0,     0,     0,     0,
02970      240,   241,   242,    23,    24,    25,    26,     0,     0,   200,
02971        0,     0,     0,     0,     0,     0,   268,     0,     0,    32,
02972       33,    34,    35,    36,    37,    38,    39,    40,     0,    41,
02973       42,     0,    43,    44,    45,     0,     0,     0,     0,     0,
02974        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02975        0,     0,     0,     0,     0,     0,   269,     0,     0,   323,
02976       50,     0,    51,    52,     0,   324,     0,     0,    54,    55,
02977       56,    57,    58,    59,    60,    61,    62,     0,     0,     0,
02978        0,     0,     5,     6,     7,     0,     9,     0,     0,     0,
02979       10,    11,     0,     0,     0,    12,   270,    13,    14,    15,
02980      238,   239,    18,    19,     0,     0,     0,     0,     0,   240,
02981      241,   242,    23,    24,    25,    26,     0,     0,   200,     0,
02982        0,     0,     0,     0,     0,   268,     0,     0,    32,    33,
02983       34,    35,    36,    37,    38,    39,    40,     0,    41,    42,
02984        0,    43,    44,    45,     0,     0,     0,     0,     0,     0,
02985        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02986        0,     0,     0,     0,     0,   365,     0,     0,    49,    50,
02987        0,    51,    52,     0,    53,     0,     0,    54,    55,    56,
02988       57,    58,    59,    60,    61,    62,     0,     0,     0,     0,
02989        0,     5,     6,     7,     0,     9,     0,     0,     0,    10,
02990       11,     0,     0,     0,    12,   270,    13,    14,    15,   238,
02991      239,    18,    19,     0,     0,     0,     0,     0,   240,   241,
02992      242,    23,    24,    25,    26,     0,     0,   200,     0,     0,
02993        0,     0,     0,     0,   268,     0,     0,    32,    33,    34,
02994      373,    36,    37,    38,   374,    40,     0,    41,    42,     0,
02995       43,    44,    45,     0,     0,     0,     0,     0,     0,     0,
02996        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
02997        0,   375,     0,     0,   376,     0,     0,   203,    50,     0,
02998       51,    52,     0,     0,     0,     0,    54,    55,    56,    57,
02999       58,    59,    60,    61,    62,     0,     0,     0,     0,     0,
03000        5,     6,     7,     0,     9,     0,     0,     0,    10,    11,
03001        0,     0,     0,    12,   270,    13,    14,    15,   238,   239,
03002       18,    19,     0,     0,     0,     0,     0,   240,   241,   242,
03003       23,    24,    25,    26,     0,     0,   200,     0,     0,     0,
03004        0,     0,     0,   268,     0,     0,    32,    33,    34,   373,
03005       36,    37,    38,   374,    40,     0,    41,    42,     0,    43,
03006       44,    45,     0,     0,     0,     0,     0,     0,     0,     0,
03007        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
03008        0,     0,     0,   376,     0,     0,   203,    50,     0,    51,
03009       52,     0,     0,     0,     0,    54,    55,    56,    57,    58,
03010       59,    60,    61,    62,     0,     0,     0,     0,     0,     5,
03011        6,     7,     0,     9,     0,     0,     0,    10,    11,     0,
03012        0,     0,    12,   270,    13,    14,    15,   238,   239,    18,
03013       19,     0,     0,     0,     0,     0,   240,   241,   242,    23,
03014       24,    25,    26,     0,     0,   200,     0,     0,     0,     0,
03015        0,     0,   268,     0,     0,    32,    33,    34,    35,    36,
03016       37,    38,    39,    40,     0,    41,    42,     0,    43,    44,
03017       45,     0,     0,     0,     0,     0,     0,     0,     0,     0,
03018        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
03019        0,     0,   269,     0,     0,   323,    50,     0,    51,    52,
03020        0,     0,     0,     0,    54,    55,    56,    57,    58,    59,
03021       60,    61,    62,     0,     0,     0,     0,     0,     5,     6,
03022        7,     0,     9,     0,     0,     0,    10,    11,     0,     0,
03023        0,    12,   270,    13,    14,    15,   238,   239,    18,    19,
03024        0,     0,     0,     0,     0,   240,   241,   242,    23,    24,
03025       25,    26,     0,     0,   200,     0,     0,     0,     0,     0,
03026        0,   268,     0,     0,    32,    33,    34,    35,    36,    37,
03027       38,    39,    40,     0,    41,    42,     0,    43,    44,    45,
03028        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
03029        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
03030        0,   893,     0,     0,   203,    50,     0,    51,    52,     0,
03031        0,     0,     0,    54,    55,    56,    57,    58,    59,    60,
03032       61,    62,     0,     0,     0,     0,     0,     5,     6,     7,
03033        0,     9,     0,     0,     0,    10,    11,     0,     0,     0,
03034       12,   270,    13,    14,    15,   238,   239,    18,    19,     0,
03035        0,     0,     0,     0,   240,   241,   242,    23,    24,    25,
03036       26,     0,     0,   200,     0,     0,     0,     0,     0,     0,
03037      268,     0,     0,    32,    33,    34,    35,    36,    37,    38,
03038       39,    40,     0,    41,    42,     0,    43,    44,    45,     0,
03039        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
03040        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
03041      973,     0,     0,   203,    50,     0,    51,    52,     0,     0,
03042        0,     0,    54,    55,    56,    57,    58,    59,    60,    61,
03043       62,     0,     0,     0,     0,     0,     0,   553,   554,     0,
03044        0,   555,     0,     0,     0,     0,     0,     0,     0,     0,
03045      270,   162,   163,   164,   165,   166,   167,   168,   169,   170,
03046        0,     0,   171,   172,     0,     0,   173,   174,   175,   176,
03047        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
03048      177,   178,     0,     0,     0,     0,     0,     0,     0,     0,
03049        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
03050        0,   179,   180,   181,   182,   183,   184,   185,   186,   187,
03051      188,     0,   189,   190,   561,   562,     0,     0,   563,     0,
03052      191,     0,     0,     0,     0,     0,     0,     0,   162,   163,
03053      164,   165,   166,   167,   168,   169,   170,     0,     0,   171,
03054      172,     0,     0,   173,   174,   175,   176,     0,     0,     0,
03055        0,     0,     0,     0,     0,     0,     0,   177,   178,     0,
03056        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
03057        0,     0,     0,     0,     0,     0,     0,     0,   179,   180,
03058      181,   182,   183,   184,   185,   186,   187,   188,     0,   189,
03059      190,   598,   562,     0,     0,   599,     0,   191,     0,     0,
03060        0,     0,     0,     0,     0,   162,   163,   164,   165,   166,
03061      167,   168,   169,   170,     0,     0,   171,   172,     0,     0,
03062      173,   174,   175,   176,     0,     0,     0,     0,     0,     0,
03063        0,     0,     0,     0,   177,   178,     0,     0,     0,     0,
03064        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
03065        0,     0,     0,     0,     0,   179,   180,   181,   182,   183,
03066      184,   185,   186,   187,   188,     0,   189,   190,   612,   554,
03067        0,     0,   613,     0,   191,     0,     0,     0,     0,     0,
03068        0,     0,   162,   163,   164,   165,   166,   167,   168,   169,
03069      170,     0,     0,   171,   172,     0,     0,   173,   174,   175,
03070      176,     0,     0,     0,     0,     0,     0,     0,     0,     0,
03071        0,   177,   178,     0,     0,     0,     0,     0,     0,     0,
03072        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
03073        0,     0,   179,   180,   181,   182,   183,   184,   185,   186,
03074      187,   188,     0,   189,   190,   615,   562,     0,     0,   616,
03075        0,   191,     0,     0,     0,     0,     0,     0,     0,   162,
03076      163,   164,   165,   166,   167,   168,   169,   170,     0,     0,
03077      171,   172,     0,     0,   173,   174,   175,   176,     0,     0,
03078        0,     0,     0,     0,     0,     0,     0,     0,   177,   178,
03079        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
03080        0,     0,     0,     0,     0,     0,     0,     0,     0,   179,
03081      180,   181,   182,   183,   184,   185,   186,   187,   188,     0,
03082      189,   190,   639,   554,     0,     0,   640,     0,   191,     0,
03083        0,     0,     0,     0,     0,     0,   162,   163,   164,   165,
03084      166,   167,   168,   169,   170,     0,     0,   171,   172,     0,
03085        0,   173,   174,   175,   176,     0,     0,     0,     0,     0,
03086        0,     0,     0,     0,     0,   177,   178,     0,     0,     0,
03087        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
03088        0,     0,     0,     0,     0,     0,   179,   180,   181,   182,
03089      183,   184,   185,   186,   187,   188,     0,   189,   190,   642,
03090      562,     0,     0,   643,     0,   191,     0,     0,     0,     0,
03091        0,     0,     0,   162,   163,   164,   165,   166,   167,   168,
03092      169,   170,     0,     0,   171,   172,     0,     0,   173,   174,
03093      175,   176,     0,     0,     0,     0,     0,     0,     0,     0,
03094        0,     0,   177,   178,     0,     0,     0,     0,     0,     0,
03095        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
03096        0,     0,     0,   179,   180,   181,   182,   183,   184,   185,
03097      186,   187,   188,     0,   189,   190,   727,   554,     0,     0,
03098      728,     0,   191,     0,     0,     0,     0,     0,     0,     0,
03099      162,   163,   164,   165,   166,   167,   168,   169,   170,     0,
03100        0,   171,   172,     0,     0,   173,   174,   175,   176,     0,
03101        0,     0,     0,     0,     0,     0,     0,     0,     0,   177,
03102      178,     0,     0,     0,     0,     0,     0,     0,     0,     0,
03103        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
03104      179,   180,   181,   182,   183,   184,   185,   186,   187,   188,
03105        0,   189,   190,   730,   562,     0,     0,   731,     0,   191,
03106        0,     0,     0,     0,     0,     0,     0,   162,   163,   164,
03107      165,   166,   167,   168,   169,   170,     0,     0,   171,   172,
03108        0,     0,   173,   174,   175,   176,     0,     0,     0,     0,
03109        0,     0,     0,     0,     0,     0,   177,   178,     0,     0,
03110        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
03111        0,     0,     0,     0,     0,     0,     0,   179,   180,   181,
03112      182,   183,   184,   185,   186,   187,   188,     0,   189,   190,
03113      737,   554,     0,     0,   738,     0,   191,     0,     0,     0,
03114        0,     0,     0,     0,   162,   163,   164,   165,   166,   167,
03115      168,   169,   170,     0,     0,   171,   172,     0,     0,   173,
03116      174,   175,   176,     0,     0,     0,     0,     0,     0,     0,
03117        0,     0,     0,   177,   178,     0,     0,     0,     0,     0,
03118        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
03119        0,     0,     0,     0,   179,   180,   181,   182,   183,   184,
03120      185,   186,   187,   188,     0,   189,   190,  1001,   554,     0,
03121        0,  1002,     0,   191,     0,     0,     0,     0,     0,     0,
03122        0,   162,   163,   164,   165,   166,   167,   168,   169,   170,
03123        0,     0,   171,   172,     0,     0,   173,   174,   175,   176,
03124        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
03125      177,   178,     0,     0,     0,     0,     0,     0,     0,     0,
03126        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
03127        0,   179,   180,   181,   182,   183,   184,   185,   186,   187,
03128      188,     0,   189,   190,  1036,   554,     0,     0,  1037,     0,
03129      191,     0,     0,     0,     0,     0,     0,     0,   162,   163,
03130      164,   165,   166,   167,   168,   169,   170,     0,     0,   171,
03131      172,     0,     0,   173,   174,   175,   176,     0,     0,     0,
03132        0,     0,     0,     0,     0,     0,     0,   177,   178,     0,
03133        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
03134        0,     0,     0,     0,     0,     0,     0,     0,   179,   180,
03135      181,   182,   183,   184,   185,   186,   187,   188,     0,   189,
03136      190,  1039,   562,     0,     0,  1040,     0,   191,     0,     0,
03137        0,     0,     0,     0,     0,   162,   163,   164,   165,   166,
03138      167,   168,   169,   170,     0,     0,   171,   172,     0,     0,
03139      173,   174,   175,   176,     0,     0,     0,     0,     0,     0,
03140        0,     0,     0,     0,   177,   178,     0,     0,     0,     0,
03141        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
03142        0,     0,     0,     0,     0,   179,   180,   181,   182,   183,
03143      184,   185,   186,   187,   188,     0,   189,   190,     0,     0,
03144        0,     0,     0,     0,   191
03145 };
03146 
03147 #define yypact_value_is_default(yystate) \
03148   ((yystate) == (-810))
03149 
03150 #define yytable_value_is_error(yytable_value) \
03151   ((yytable_value) == (-620))
03152 
03153 static const yytype_int16 yycheck[] =
03154 {
03155        2,    55,    96,    16,    17,     8,    79,    20,    22,    64,
03156      354,   326,    16,    17,     8,   220,    20,    50,    27,     8,
03157       29,   472,   326,    28,    87,    28,   359,    90,   412,   353,
03158        4,   355,   420,    74,    28,     2,   420,     4,    53,    28,
03159       94,   668,    49,    90,   575,   594,   614,    51,   262,    51,
03160       52,   685,   266,    86,    87,   574,    67,    90,   440,   468,
03161       74,    55,    13,   651,    79,   786,     2,   376,     4,    49,
03162      458,   508,   416,   641,   511,   399,    91,    92,    93,    27,
03163       16,    17,    53,   776,    20,   874,   250,   472,    67,   778,
03164       87,   415,   715,   417,    16,    17,   719,   906,    20,    26,
03165       94,   872,     0,    37,    38,    13,    25,   230,   801,   518,
03166       25,    90,    26,    49,    50,    85,   113,    53,    25,   443,
03167      141,    61,    61,    13,     1,    85,   470,    85,    64,    85,
03168       16,    17,   255,    25,    20,    97,   259,   134,   902,    76,
03169      130,    85,   134,    79,   778,   596,    25,   471,    28,   141,
03170       86,    87,   786,    29,    90,    91,    92,    93,   120,   323,
03171      286,   729,   288,   133,   290,    51,    52,   938,   294,    25,
03172      110,   110,   740,   133,    25,   133,   132,   133,   805,   806,
03173       25,   118,   770,   771,    25,   136,    56,   736,   139,   133,
03174      141,   139,    13,   141,   140,   744,   203,   230,   271,   232,
03175      113,   990,   243,   130,  1013,   252,   657,   141,   897,   136,
03176      140,   224,   214,   226,   227,   134,   130,   136,   220,   134,
03177      224,   992,   226,   944,   429,   227,   134,   134,    13,    13,
03178      237,   139,   134,   141,   622,   111,   580,   621,   622,  1003,
03179      117,   252,   134,   250,   307,   308,   309,   310,   592,   139,
03180      632,   141,    85,   690,  1025,   134,   271,   581,   885,   268,
03181      949,   113,   139,   897,   141,    85,   321,   203,   902,   593,
03182      250,   326,   657,   252,   307,   308,   309,   310,   134,   312,
03183      313,   248,   591,   134,   872,   136,   874,   696,   224,   134,
03184      226,   227,   743,   134,   230,    87,   232,   360,   361,   422,
03185      133,   237,   224,   426,   226,   928,    37,    38,   431,   324,
03186      944,    87,   248,   133,   250,   362,   323,   321,   139,  1008,
03187      141,   113,   326,    68,   447,   113,   136,   360,   361,   452,
03188      100,   141,   306,   852,    87,   271,   963,   113,   224,   306,
03189      226,   354,   375,   323,   311,    61,   134,   402,   403,    65,
03190      938,   939,   354,   324,   139,   139,   141,   141,   743,   485,
03191      113,   355,    25,    61,    85,   140,   492,    61,   140,  1003,
03192      306,   307,   308,   309,   310,   311,   312,   313,   123,   124,
03193      125,   930,   697,   362,   139,   321,   141,   323,   324,   136,
03194      326,   107,   725,   109,   517,   468,   685,   928,    15,   378,
03195       17,    25,   990,   416,   992,   399,   611,    68,    85,   107,
03196      714,   109,   133,   107,   416,   109,    26,    85,   354,   134,
03197      356,    85,   636,   417,   360,   361,   428,   429,    85,    52,
03198       56,    26,   437,    56,   437,    87,    26,  1025,   440,   375,
03199      989,   113,   140,   437,    85,   518,   140,   134,   437,   443,
03200      113,   134,    88,   468,    85,   132,   133,   470,   141,   136,
03201      121,   122,   123,   124,   125,   133,   402,   403,   470,   133,
03202     1038,   134,    87,   440,   137,    85,   133,   471,   141,   867,
03203      416,    87,    87,   867,   935,    87,   134,   703,   134,   113,
03204       85,   132,   133,   141,   710,    85,   136,   786,   113,    61,
03205      789,   132,   133,   518,   440,   507,   508,   113,    61,   511,
03206      134,   113,    61,   137,   450,   136,   557,   141,   130,   134,
03207      130,    26,   132,   133,   565,    52,   412,    54,    55,    56,
03208       57,    68,   468,   542,   470,   130,   136,   132,   133,   137,
03209      130,   136,   132,   133,   558,   107,   136,   109,   110,    85,
03210      113,   560,   566,   138,   107,   760,   109,   110,   107,   600,
03211      109,   110,   595,   570,   637,   572,   568,   580,   670,   455,
03212      672,   131,   576,    85,    59,    60,   577,    87,   580,   592,
03213       85,    56,   518,   916,    87,   110,   600,   581,    87,   922,
03214      592,    87,   625,    85,   573,   574,   132,   133,   600,   593,
03215      605,    61,   605,   113,   134,   614,   110,   134,   587,   611,
03216      113,   605,   110,   902,   113,   904,   605,   113,    68,   742,
03217      132,   133,   637,   696,   134,   130,   110,   132,   133,    58,
03218      632,   136,   641,    68,   570,   134,   572,    61,   761,    68,
03219      132,   133,   697,    94,   580,   700,   701,   107,   685,   109,
03220      110,   774,   707,   708,   748,   944,   592,   946,   594,   595,
03221       85,   134,   951,   704,   666,   632,   668,    96,    97,   732,
03222      711,    17,   735,  1017,    59,    60,   685,   139,    87,   686,
03223       58,   696,   689,   107,   691,   109,   110,    56,   690,   625,
03224       68,   120,   746,    25,  1018,   137,   632,    85,   134,   732,
03225      134,   637,   735,   685,   113,   131,   134,   132,   133,   711,
03226      714,   130,   714,   715,  1003,   717,  1005,   719,    96,    97,
03227      729,  1010,   134,   724,    52,   134,    54,    55,    56,    57,
03228       85,   740,    14,    15,   140,   621,   859,   140,  1027,   134,
03229      741,   134,   120,   780,   132,   133,    85,   784,   871,   113,
03230      686,   134,   746,   689,   733,   691,   136,    10,   760,  1048,
03231      696,   697,     8,    85,   700,   701,   745,   776,     2,    13,
03232        4,   707,   708,   828,    85,   131,    85,   132,   133,   842,
03233      882,   883,    16,    17,   799,   887,    20,   889,   890,   113,
03234      134,   134,   801,   132,   133,    52,   732,   134,   780,   735,
03235      736,   134,    52,   805,   806,   134,   134,   814,   744,   842,
03236      132,   133,    52,   134,   115,    49,    50,    54,    55,   138,
03237       57,   132,   133,   132,   133,    15,    63,    64,   134,    87,
03238       64,   131,   839,   113,   118,   837,   134,   134,   840,   846,
03239      847,   134,   843,   850,   845,    52,    87,    54,    55,    56,
03240       57,    58,    86,    87,   855,   113,    90,   134,   134,   860,
03241      897,    68,   899,   799,   139,   902,    10,   904,   131,    10,
03242      877,   878,   113,   852,   134,   854,   134,   892,   814,   808,
03243      809,     9,    89,   885,   891,    88,   134,   134,    95,    96,
03244       97,   134,   828,   134,   996,   997,   998,   999,    54,   137,
03245      915,   134,   134,   839,    56,   118,   842,    63,    64,   131,
03246      846,   847,   919,   120,   850,   897,   123,   899,   134,   134,
03247      902,    10,   904,   131,   925,   926,   928,    52,   108,    54,
03248       55,    56,    57,    52,   141,    54,    55,    56,    57,    58,
03249      134,   877,   878,   134,  1046,   134,   134,    56,    52,    68,
03250       54,    55,    56,    57,   136,   891,   892,   134,   134,   134,
03251      969,   963,   136,   450,    89,    91,  1003,   711,  1005,   203,
03252       89,  1008,   979,  1010,   981,    93,  1020,    96,    97,   915,
03253      987,   770,   685,   919,  1013,    89,   749,   988,  1019,    99,
03254      224,    95,   226,   227,   930,   294,   230,    57,   232,    94,
03255      935,   120,   780,   237,  1017,    52,   899,    54,    55,    56,
03256       57,  1048,   897,   778,   248,  1017,   250,  1019,  1020,   396,
03257     1021,  1003,  1023,  1005,  1018,    -1,  1008,    -1,  1010,  1038,
03258       -1,   960,   961,    -1,    -1,   964,    -1,   966,   967,    -1,
03259       -1,    -1,    89,   979,    68,   981,    -1,    -1,    95,    -1,
03260       -1,   987,    -1,   989,    68,    -1,    -1,    -1,    -1,    83,
03261       84,    40,    41,    42,    43,    44,  1048,    -1,    -1,    83,
03262       84,    -1,   306,   307,   308,   309,   310,   311,   312,   313,
03263       52,  1017,    54,    55,    56,    57,    -1,   321,    -1,   323,
03264       -1,    -1,   326,    -1,   118,   119,   120,   121,   122,   123,
03265      124,   125,  1031,  1032,  1033,  1034,   120,   121,   122,   123,
03266      124,   125,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03267      354,    -1,   356,    -1,    -1,  1054,   360,   361,    -1,    -1,
03268       -1,    -1,    -1,    52,    -1,    54,    55,    56,    57,    58,
03269       -1,   375,    -1,    -1,    -1,    -1,    -1,    -1,     0,    68,
03270       -1,    -1,    -1,    -1,    -1,    -1,     8,     9,    10,    -1,
03271       -1,    13,    14,    15,    -1,    17,    -1,    -1,   402,   403,
03272       89,    -1,    -1,    -1,    26,    27,    95,    96,    97,    -1,
03273       -1,    -1,   416,    -1,    -1,    37,    38,    68,    40,    41,
03274       42,    43,    44,    -1,    52,    -1,    54,    55,    56,    57,
03275       58,   120,    83,    84,   123,    -1,   440,    -1,    -1,    -1,
03276       68,    -1,    -1,    -1,    -1,    -1,   450,   136,    -1,    -1,
03277       -1,    -1,    -1,    -1,    16,    17,    -1,    -1,    20,    -1,
03278       -1,    89,    -1,    85,    -1,    -1,   470,    95,    96,    97,
03279      121,   122,   123,   124,   125,    -1,    -1,    -1,    -1,    -1,
03280       -1,    -1,    -1,    -1,    46,    47,   108,    -1,    -1,    51,
03281       52,    -1,   120,    -1,    -1,   123,    -1,    -1,    -1,    -1,
03282       -1,    -1,    64,    65,    -1,    44,    -1,    -1,   130,   131,
03283       -1,   133,    -1,    -1,   136,   137,    -1,   139,    -1,   141,
03284       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    68,
03285       69,    70,    71,    72,    73,    74,    75,    76,    77,    78,
03286       79,    80,    -1,    -1,    83,    84,    -1,    -1,    -1,    -1,
03287       -1,    -1,    -1,    -1,    -1,    -1,    52,    -1,    54,    55,
03288       56,    57,    58,    -1,    -1,    -1,   570,    -1,   572,    -1,
03289       -1,    -1,    68,    -1,    -1,   114,   580,   116,   117,   118,
03290      119,   120,   121,   122,   123,   124,   125,    -1,   592,    -1,
03291      594,   595,    -1,    89,    -1,   134,    -1,    -1,    -1,    95,
03292       96,    97,    -1,    68,    69,    70,    71,    72,    73,    74,
03293       75,    76,    77,    78,    79,    80,    -1,    -1,    83,    84,
03294       -1,   625,    -1,    -1,   120,    -1,    -1,   123,   632,    -1,
03295       -1,    -1,     2,    -1,     4,    -1,    -1,    -1,    -1,   201,
03296      136,    -1,   204,   205,   206,   207,    -1,    -1,    52,   114,
03297       -1,   116,   117,   118,   119,   120,   121,   122,   123,   124,
03298      125,    -1,   224,    -1,   226,   227,    -1,    -1,    52,    -1,
03299       54,    55,    56,    57,    58,    -1,   141,    -1,    -1,    49,
03300       -1,    -1,   686,    53,    68,   689,    -1,   691,    -1,    -1,
03301       -1,    -1,    -1,   697,    -1,    -1,   700,   701,    -1,    -1,
03302       -1,    -1,    -1,   707,   708,    89,    -1,    -1,    -1,    79,
03303       -1,    95,    96,    97,    -1,    -1,    -1,    -1,    -1,    -1,
03304       -1,    91,    92,    93,    94,    -1,    -1,    -1,   732,    -1,
03305       -1,   735,   736,    -1,    -1,    -1,   120,    -1,    -1,   123,
03306      744,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03307       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,   321,
03308       -1,    -1,    -1,    -1,   326,   327,   328,   329,   330,   331,
03309      332,   333,   334,   335,   336,   337,   338,   339,   340,   341,
03310      342,   343,   344,   345,   346,   347,   348,   349,   350,   351,
03311      352,    -1,   354,    -1,    -1,    -1,    -1,   201,    -1,    -1,
03312      204,   205,   206,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03313      814,    -1,    -1,    -1,    -1,    52,    -1,    54,    55,    56,
03314       57,    58,    -1,    -1,   828,    -1,    -1,    -1,    -1,    -1,
03315       -1,    68,    -1,   203,    -1,   839,    -1,    -1,   842,    -1,
03316      402,   403,   846,   847,    -1,    -1,   850,    -1,   410,   411,
03317      412,    -1,    89,    -1,   416,    -1,   418,   419,   420,    96,
03318       97,    -1,    -1,    -1,    -1,    -1,    -1,   237,    -1,    -1,
03319       -1,    -1,    -1,   877,   878,    -1,    -1,   439,   248,    -1,
03320      250,    -1,   444,   120,    -1,    -1,    -1,   891,    -1,    -1,
03321       -1,    -1,    -1,   455,    -1,    -1,   458,    -1,    -1,    -1,
03322       -1,   271,    -1,    -1,    -1,     2,    -1,     4,   470,    -1,
03323       -1,    -1,    -1,    -1,    -1,   919,    -1,   321,    -1,    -1,
03324       -1,     2,   326,     4,    -1,    -1,   930,    -1,    -1,    -1,
03325       -1,    -1,    -1,    -1,   496,   497,   306,    -1,    -1,    -1,
03326       -1,   311,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03327      512,    -1,    49,   323,   324,    -1,    53,    -1,    -1,    -1,
03328       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    49,    -1,
03329       -1,    -1,    53,    -1,    -1,   979,    -1,   981,    -1,    -1,
03330       -1,    -1,    79,   987,    -1,   989,   356,    -1,    -1,    -1,
03331       -1,    -1,    -1,    -1,    91,    92,    93,    94,    79,    -1,
03332       -1,    -1,    -1,    -1,    -1,    -1,    -1,   411,   412,    -1,
03333       91,    92,    93,  1017,   576,    -1,   420,    -1,   580,    -1,
03334       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03335      592,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03336       -1,    -1,    -1,    -1,    -1,    -1,   608,    -1,    -1,    -1,
03337       -1,   455,    -1,    -1,   458,    -1,    -1,    -1,    -1,   621,
03338      622,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03339      440,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03340      450,    -1,    -1,    -1,    -1,    -1,    -1,   649,    -1,    -1,
03341       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,   468,    -1,
03342       -1,    -1,    -1,    -1,    -1,    -1,   203,    -1,   512,    -1,
03343       -1,    -1,    -1,    -1,     2,    -1,     4,    -1,    -1,    -1,
03344       -1,    -1,   203,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03345        2,   693,     4,    -1,    -1,   697,   698,    -1,   700,   701,
03346      237,    -1,    -1,    -1,    -1,   707,   708,    -1,   518,    -1,
03347       -1,   248,   714,   250,    -1,    -1,   237,    -1,    -1,    -1,
03348       -1,    49,    -1,    -1,    -1,    -1,    -1,   248,    -1,   250,
03349       -1,    -1,   576,    -1,   271,    -1,    -1,    49,    -1,    -1,
03350       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,   751,
03351      271,    -1,    -1,   755,   756,    -1,   758,   759,    -1,    -1,
03352      570,    -1,   572,    91,   608,   767,    -1,    -1,    -1,   306,
03353       -1,    -1,    -1,    -1,   311,    -1,    -1,   621,   622,    -1,
03354       -1,    -1,    -1,    -1,   594,   306,   323,   324,    -1,    -1,
03355      311,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03356       -1,    -1,   323,   324,    -1,   649,    -1,    -1,    -1,    -1,
03357       -1,    -1,    -1,    -1,   816,    -1,    -1,    -1,   820,   356,
03358       -1,    -1,   632,    -1,    -1,    -1,   828,   637,    -1,    -1,
03359       -1,    -1,    -1,    -1,    -1,   356,    -1,    -1,    -1,    -1,
03360       -1,    -1,    -1,    -1,    -1,    -1,    -1,   849,    -1,   693,
03361       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03362       -1,    -1,    -1,    -1,   866,   867,    -1,    -1,    -1,    -1,
03363      714,    -1,    -1,    -1,    -1,   203,   686,    -1,    -1,   689,
03364       -1,   691,    -1,    -1,    -1,    -1,   696,    -1,    -1,    -1,
03365       -1,   203,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03366       -1,    -1,    -1,   440,    -1,    -1,    -1,    -1,    -1,   237,
03367       -1,    -1,    -1,   450,    -1,    -1,    -1,    -1,    -1,   440,
03368      248,    -1,   250,   767,    -1,   237,   736,    -1,    -1,   450,
03369       -1,   468,    -1,    -1,   744,    -1,   248,    -1,   250,    -1,
03370       -1,    -1,    -1,    -1,    -1,    -1,    -1,   468,    -1,    -1,
03371       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03372       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03373       -1,    -1,   816,    -1,    -1,    -1,    -1,    -1,   306,    -1,
03374       -1,   518,    -1,   311,    -1,    -1,    -1,    -1,    -1,   799,
03375       -1,    -1,    -1,    -1,   306,   323,    -1,   518,   326,   311,
03376       -1,    -1,    -1,    -1,   814,   849,    -1,    -1,    -1,    -1,
03377       -1,   323,    -1,    -1,    -1,  1017,    -1,    -1,    -1,    -1,
03378       -1,    -1,    -1,   867,    -1,    -1,    -1,    -1,   356,   839,
03379       -1,    -1,    -1,   570,    -1,   572,   846,   847,    -1,    -1,
03380      850,    -1,    -1,    -1,   356,    -1,    -1,    -1,    -1,   570,
03381       -1,   572,    -1,    -1,    -1,    -1,    -1,   594,    -1,    -1,
03382       -1,    -1,    -1,    -1,    -1,    -1,    -1,   877,   878,    -1,
03383       -1,    -1,    -1,   594,    -1,    -1,    -1,    -1,    -1,    -1,
03384       -1,   891,   892,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03385       -1,    -1,    -1,    -1,    -1,   632,    -1,    -1,    -1,    -1,
03386      637,    -1,    -1,    -1,    -1,   915,    -1,    -1,    -1,   919,
03387       -1,   632,   440,    -1,    -1,    -1,   637,    -1,    -1,    -1,
03388      930,    -1,   450,    -1,    -1,    -1,    -1,    -1,   440,    -1,
03389       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,   450,    -1,
03390       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,   686,
03391       -1,    -1,   689,    -1,   691,   676,    44,    -1,    -1,   696,
03392       -1,    -1,    -1,    -1,    -1,   686,    -1,    -1,   689,   979,
03393      691,   981,    -1,    -1,    -1,   696,    -1,   987,    -1,   989,
03394       68,    69,    70,    71,    72,    73,    74,    75,    76,    77,
03395       78,    79,    80,    -1,    -1,    83,    84,    -1,    -1,   736,
03396       -1,    -1,    -1,    -1,    -1,    -1,    -1,   744,    -1,    -1,
03397       -1,    -1,    -1,    -1,    -1,   736,    -1,    -1,    -1,    -1,
03398       -1,    -1,    -1,   744,    -1,    -1,   114,    -1,   116,   117,
03399      118,   119,   120,   121,   122,   123,   124,   125,    -1,    -1,
03400       -1,    -1,   570,    -1,   572,    -1,    -1,    -1,    -1,    -1,
03401       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,   570,    -1,
03402      572,    -1,   799,    -1,    -1,    -1,   594,    -1,    -1,    -1,
03403       -1,    -1,    -1,    -1,    -1,    -1,    -1,   814,   799,    -1,
03404       -1,    -1,   594,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03405       -1,    -1,    -1,   814,    -1,    -1,    -1,    -1,    -1,    -1,
03406       -1,    -1,   839,    -1,   632,    -1,    -1,    -1,    -1,   846,
03407      847,    -1,    -1,   850,    -1,    -1,    -1,    -1,   839,    -1,
03408      632,    -1,    -1,    -1,    -1,   846,   847,    -1,    -1,   850,
03409       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03410      877,   878,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03411       -1,    -1,    -1,    -1,   891,   892,   877,   878,   686,    -1,
03412       -1,   689,    -1,   691,    -1,    -1,    -1,    -1,    -1,   697,
03413      891,   892,    -1,    -1,   686,    -1,    -1,   689,   915,   691,
03414       -1,    -1,   919,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03415       -1,    -1,    -1,   930,   915,    -1,    -1,    -1,   919,    -1,
03416       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,   736,   930,
03417       -1,    -1,    -1,    -1,    -1,    -1,   744,    -1,    -1,    -1,
03418       -1,    -1,    -1,    -1,   736,    68,    69,    70,    71,    72,
03419       73,    74,   744,    -1,    77,    78,    -1,    -1,    -1,    -1,
03420       83,    84,   979,    -1,   981,    -1,    -1,    -1,    -1,    -1,
03421      987,    -1,   989,    -1,    -1,    -1,    -1,    -1,   979,    -1,
03422      981,    -1,    -1,    -1,    -1,    -1,   987,    -1,   989,    -1,
03423       -1,    -1,    -1,   116,   117,   118,   119,   120,   121,   122,
03424      123,   124,   125,    -1,    -1,    -1,   814,    -1,    -1,    -1,
03425       -1,    68,    69,    70,    71,    72,    73,    74,    75,    -1,
03426       77,    78,   814,    -1,    -1,    -1,    83,    84,    -1,    -1,
03427       -1,   839,    -1,    -1,    -1,    -1,    -1,    -1,   846,   847,
03428       -1,    -1,   850,    -1,    -1,    -1,    -1,   839,    -1,    -1,
03429       -1,    -1,    -1,    -1,   846,   847,    -1,    -1,   850,   116,
03430      117,   118,   119,   120,   121,   122,   123,   124,   125,   877,
03431      878,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03432       -1,    -1,    -1,   891,    -1,   877,   878,    -1,    -1,    -1,
03433       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,   891,
03434       68,    69,    70,    71,    72,    73,    74,   915,    -1,    77,
03435       78,   919,    -1,    -1,    -1,    83,    84,    -1,    -1,    -1,
03436       -1,    -1,   930,    -1,    -1,    -1,    -1,   919,    -1,    -1,
03437       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,   930,    -1,
03438       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,   116,   117,
03439      118,   119,   120,   121,   122,   123,   124,   125,    -1,    -1,
03440       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03441       -1,   979,    -1,   981,    -1,    -1,    -1,    -1,    -1,   987,
03442       -1,   989,    -1,    -1,    -1,    -1,    -1,   979,    -1,   981,
03443       -1,    -1,    -1,    -1,    -1,   987,    -1,   989,     0,     1,
03444       -1,     3,     4,     5,     6,     7,    -1,    -1,    -1,    11,
03445       12,    -1,    -1,    -1,    16,    -1,    18,    19,    20,    21,
03446       22,    23,    24,    -1,    -1,    -1,    -1,    -1,    30,    31,
03447       32,    33,    34,    35,    36,    -1,    -1,    39,    -1,    -1,
03448       -1,    -1,    -1,    45,    46,    47,    48,    49,    50,    51,
03449       52,    53,    54,    55,    56,    57,    -1,    59,    60,    -1,
03450       62,    63,    64,    -1,    66,    67,    -1,    -1,    -1,    -1,
03451       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03452       -1,    -1,    -1,    -1,    86,    -1,    -1,    89,    90,    -1,
03453       92,    93,    -1,    95,    -1,    -1,    98,    99,   100,   101,
03454      102,   103,   104,   105,   106,     0,    -1,    -1,    -1,    -1,
03455       -1,    -1,    -1,     8,     9,    10,    -1,    -1,    13,    14,
03456       15,    -1,    17,    -1,   126,   127,   128,    -1,    44,    -1,
03457       -1,    26,    27,    28,    29,    -1,    -1,   139,    -1,   141,
03458       -1,    -1,    37,    38,    -1,    40,    41,    42,    43,    44,
03459       -1,    -1,    68,    69,    70,    71,    72,    73,    74,    75,
03460       76,    77,    78,    79,    80,    -1,    -1,    83,    84,    -1,
03461       -1,    -1,    -1,    68,    69,    70,    71,    72,    73,    74,
03462       75,    76,    77,    78,    79,    80,    -1,    -1,    83,    84,
03463       85,    -1,    87,    88,    -1,    -1,    -1,    -1,   114,    94,
03464      116,   117,   118,   119,   120,   121,   122,   123,   124,   125,
03465       -1,    -1,    -1,   108,    -1,    -1,   111,    -1,   113,   114,
03466      115,   116,   117,   118,   119,   120,   121,   122,   123,   124,
03467      125,    -1,    -1,    -1,    -1,   130,   131,   132,   133,   134,
03468        0,    -1,   137,   138,   139,    -1,   141,    -1,     8,     9,
03469       10,    -1,    -1,    13,    14,    15,    -1,    17,    -1,    -1,
03470       -1,    -1,    -1,    -1,    -1,    25,    -1,    27,    28,    29,
03471       -1,    -1,    -1,    -1,    -1,    -1,    -1,    37,    38,    -1,
03472       40,    41,    42,    43,    44,    -1,    -1,    68,    69,    70,
03473       71,    72,    73,    74,    75,    76,    77,    78,    79,    80,
03474       -1,    -1,    83,    84,    -1,    -1,    -1,    -1,    68,    69,
03475       70,    71,    72,    73,    74,    75,    76,    77,    78,    79,
03476       80,    -1,    -1,    83,    84,    85,    -1,    87,    88,    -1,
03477       -1,    -1,    -1,   114,    94,   116,   117,   118,   119,   120,
03478      121,   122,   123,   124,   125,    -1,    -1,    -1,   108,    -1,
03479       -1,   111,    -1,   113,   114,   115,   116,   117,   118,   119,
03480      120,   121,   122,   123,   124,   125,    -1,    -1,    -1,    -1,
03481       -1,   131,   132,   133,   134,     0,    -1,   137,   138,   139,
03482       -1,   141,    -1,     8,     9,    10,    -1,    -1,    13,    14,
03483       15,    -1,    17,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03484       25,    -1,    27,    28,    29,    -1,    -1,    -1,    -1,    -1,
03485       -1,    -1,    37,    38,    -1,    40,    41,    42,    43,    44,
03486       -1,    -1,    68,    69,    70,    71,    72,    73,    74,    75,
03487       76,    77,    78,    79,    80,    -1,    -1,    83,    84,    -1,
03488       -1,    -1,    -1,    68,    69,    70,    71,    72,    73,    74,
03489       75,    76,    77,    78,    79,    80,    -1,    -1,    83,    84,
03490       85,    -1,    87,    88,    -1,    -1,    -1,    -1,    -1,    94,
03491      116,   117,   118,   119,   120,   121,   122,   123,   124,   125,
03492       -1,    -1,    -1,   108,    -1,    -1,   111,    -1,   113,   114,
03493      115,   116,   117,   118,   119,   120,   121,   122,   123,   124,
03494      125,    -1,    -1,    -1,    -1,    -1,   131,   132,   133,   134,
03495        0,    -1,   137,   138,   139,    -1,   141,    -1,     8,     9,
03496       10,    -1,    -1,    13,    14,    15,    -1,    17,    -1,    -1,
03497       -1,    -1,    -1,    -1,    -1,    -1,    26,    27,    28,    29,
03498       -1,    -1,    -1,    -1,    -1,    -1,    -1,    37,    38,    -1,
03499       40,    41,    42,    43,    44,    -1,    -1,    -1,    -1,    -1,
03500       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03501       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    68,    69,
03502       70,    71,    72,    73,    74,    75,    76,    77,    78,    79,
03503       80,    -1,    -1,    83,    84,    85,    -1,    -1,    88,    -1,
03504       -1,    -1,    -1,    -1,    94,    -1,    -1,    -1,    -1,    -1,
03505       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,   108,    -1,
03506       -1,   111,    -1,    -1,   114,   115,   116,   117,   118,   119,
03507      120,   121,   122,   123,   124,   125,    -1,    -1,    -1,    -1,
03508      130,   131,   132,   133,   134,     0,    -1,   137,   138,   139,
03509       -1,   141,    -1,     8,     9,    10,    -1,    -1,    13,    14,
03510       15,    -1,    17,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03511       -1,    26,    27,    28,    29,    -1,    -1,    -1,    -1,    -1,
03512       -1,    -1,    37,    38,    -1,    40,    41,    42,    43,    44,
03513       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03514       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03515       -1,    -1,    -1,    68,    69,    70,    71,    72,    73,    74,
03516       75,    76,    77,    78,    79,    80,    -1,    -1,    83,    84,
03517       85,    -1,    -1,    88,    -1,    -1,    -1,    -1,    -1,    94,
03518       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03519       -1,    -1,    -1,   108,    -1,    -1,   111,    -1,    -1,   114,
03520      115,   116,   117,   118,   119,   120,   121,   122,   123,   124,
03521      125,    -1,    -1,    -1,    -1,   130,   131,   132,   133,   134,
03522        0,    -1,   137,   138,   139,    -1,   141,    -1,     8,     9,
03523       10,    -1,    -1,    13,    14,    15,    -1,    17,    -1,    -1,
03524       -1,    -1,    -1,    -1,    -1,    -1,    -1,    27,    28,    29,
03525       -1,    -1,    -1,    -1,    -1,    -1,    -1,    37,    38,    -1,
03526       40,    41,    42,    43,    44,    -1,    -1,    -1,    -1,    -1,
03527       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03528       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    68,    69,
03529       70,    71,    72,    73,    74,    75,    76,    77,    78,    79,
03530       80,    -1,    -1,    83,    84,    85,    -1,    87,    88,    -1,
03531       -1,    -1,    -1,    -1,    94,    -1,    -1,    -1,    -1,    -1,
03532       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,   108,    -1,
03533       -1,   111,    -1,   113,   114,   115,   116,   117,   118,   119,
03534      120,   121,   122,   123,   124,   125,    -1,    -1,    -1,    -1,
03535       -1,   131,   132,   133,   134,     0,    -1,   137,   138,   139,
03536       -1,   141,    -1,     8,     9,    10,    -1,    -1,    13,    14,
03537       15,    -1,    17,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03538       -1,    26,    27,    28,    -1,    -1,    -1,    -1,    -1,    -1,
03539       -1,    -1,    37,    38,    -1,    40,    41,    42,    43,    44,
03540       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03541       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03542       -1,    -1,    -1,    68,    69,    70,    71,    72,    73,    74,
03543       75,    76,    77,    78,    79,    80,    -1,    -1,    83,    84,
03544       85,    -1,    -1,    88,    -1,    -1,    -1,    -1,    -1,    94,
03545       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03546       -1,    -1,    -1,   108,    -1,    -1,    -1,    -1,    -1,   114,
03547       -1,   116,   117,   118,   119,   120,   121,   122,   123,   124,
03548      125,    -1,    -1,    -1,    -1,   130,   131,   132,   133,   134,
03549        0,   136,   137,   138,   139,    -1,   141,    -1,     8,     9,
03550       10,    -1,    -1,    13,    14,    15,    -1,    17,    -1,    -1,
03551       -1,    -1,    -1,    -1,    -1,    -1,    -1,    27,    28,    29,
03552       -1,    -1,    -1,    -1,    -1,    -1,    -1,    37,    38,    -1,
03553       40,    41,    42,    43,    44,    -1,    -1,    -1,    -1,    -1,
03554       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03555       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    68,    69,
03556       70,    71,    72,    73,    74,    75,    76,    77,    78,    79,
03557       80,    -1,    -1,    83,    84,    85,    -1,    -1,    88,    -1,
03558       -1,    -1,    -1,    -1,    94,    -1,    -1,    -1,    -1,    -1,
03559       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,   108,    -1,
03560       -1,   111,    -1,    -1,   114,   115,   116,   117,   118,   119,
03561      120,   121,   122,   123,   124,   125,    -1,    -1,    -1,    -1,
03562       -1,   131,   132,   133,   134,     0,    -1,   137,   138,   139,
03563       -1,   141,    -1,     8,     9,    10,    -1,    -1,    13,    14,
03564       15,    -1,    17,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03565       -1,    26,    27,    28,    -1,    -1,    -1,    -1,    -1,    -1,
03566       -1,    -1,    37,    38,    -1,    40,    41,    42,    43,    44,
03567       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03568       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03569       -1,    -1,    -1,    68,    69,    70,    71,    72,    73,    74,
03570       75,    76,    77,    78,    79,    80,    -1,    -1,    83,    84,
03571       85,    -1,    -1,    88,    -1,    -1,    -1,    -1,    -1,    94,
03572       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03573       -1,    -1,    -1,   108,    -1,    -1,    -1,    -1,    -1,   114,
03574       -1,   116,   117,   118,   119,   120,   121,   122,   123,   124,
03575      125,    -1,    -1,    -1,    -1,   130,   131,   132,   133,   134,
03576        0,   136,   137,   138,   139,    -1,   141,    -1,     8,     9,
03577       10,    -1,    -1,    13,    14,    15,    -1,    17,    -1,    -1,
03578       -1,    -1,    -1,    -1,    -1,    -1,    -1,    27,    28,    -1,
03579       -1,    -1,    -1,    -1,    -1,    -1,    -1,    37,    38,    -1,
03580       40,    41,    42,    43,    44,    -1,    -1,    -1,    -1,    -1,
03581       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03582       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    68,    69,
03583       70,    71,    72,    73,    74,    75,    76,    77,    78,    79,
03584       80,    -1,    -1,    83,    84,    85,    -1,    -1,    88,    -1,
03585       -1,    -1,    -1,    -1,    94,    -1,    -1,    -1,    -1,    -1,
03586       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,   108,    -1,
03587       -1,    -1,    -1,    -1,   114,    -1,   116,   117,   118,   119,
03588      120,   121,   122,   123,   124,   125,    -1,    -1,    -1,    -1,
03589       -1,   131,   132,   133,   134,     0,   136,   137,   138,   139,
03590       -1,   141,    -1,     8,     9,    10,    -1,    -1,    -1,    14,
03591       15,    -1,    17,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03592       -1,    26,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03593       -1,    -1,    37,    38,    -1,    40,    41,    42,    43,    44,
03594       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03595       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03596       -1,    -1,    -1,    68,    69,    70,    71,    72,    73,    74,
03597       75,    76,    77,    78,    79,    80,    -1,    -1,    83,    84,
03598       85,    -1,    87,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03599       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03600       -1,    -1,    -1,   108,    -1,    -1,    -1,    -1,   113,   114,
03601       -1,   116,   117,   118,   119,   120,   121,   122,   123,   124,
03602      125,    -1,    -1,    -1,    -1,   130,   131,   132,   133,   134,
03603        0,    -1,   137,    -1,   139,    -1,   141,    -1,     8,     9,
03604       10,    -1,    -1,    -1,    14,    15,    -1,    17,    -1,    -1,
03605       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03606       -1,    -1,    -1,    -1,    -1,    -1,    -1,    37,    38,    -1,
03607       40,    41,    42,    43,    44,    -1,    -1,    -1,    -1,    -1,
03608       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03609       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    68,    69,
03610       70,    71,    72,    73,    74,    75,    76,    77,    78,    79,
03611       80,    -1,    -1,    83,    84,    85,    -1,    87,    -1,    -1,
03612       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03613       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,   108,    -1,
03614       -1,    -1,    -1,   113,   114,    -1,   116,   117,   118,   119,
03615      120,   121,   122,   123,   124,   125,    -1,    -1,    -1,    -1,
03616       -1,   131,   132,   133,   134,    -1,    -1,   137,    -1,   139,
03617        1,   141,     3,     4,     5,     6,     7,     8,     9,    10,
03618       11,    12,    -1,    -1,    15,    16,    -1,    18,    19,    20,
03619       21,    22,    23,    24,    -1,    -1,    -1,    -1,    -1,    30,
03620       31,    32,    33,    34,    35,    36,    -1,    -1,    39,    -1,
03621       -1,    -1,    -1,    -1,    45,    46,    47,    48,    49,    50,
03622       51,    52,    53,    54,    55,    56,    57,    -1,    59,    60,
03623       -1,    62,    63,    64,    -1,    66,    67,    -1,    -1,    -1,
03624       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03625       -1,    -1,    -1,    -1,    -1,    86,    -1,    -1,    89,    90,
03626       -1,    92,    93,    -1,    95,    -1,    -1,    98,    99,   100,
03627      101,   102,   103,   104,   105,   106,    -1,    -1,    -1,    -1,
03628       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03629       -1,    -1,    -1,    -1,    -1,   126,   127,   128,    -1,    -1,
03630       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,   139,     1,
03631      141,     3,     4,     5,     6,     7,    -1,    -1,    10,    11,
03632       12,    -1,    14,    15,    16,    -1,    18,    19,    20,    21,
03633       22,    23,    24,    -1,    -1,    -1,    -1,    -1,    30,    31,
03634       32,    33,    34,    35,    36,    -1,    -1,    39,    -1,    -1,
03635       -1,    -1,    -1,    45,    46,    47,    48,    49,    50,    51,
03636       52,    53,    54,    55,    56,    57,    -1,    59,    60,    -1,
03637       62,    63,    64,    -1,    66,    67,    -1,    -1,    -1,    -1,
03638       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03639       -1,    -1,    -1,    -1,    86,    -1,    -1,    89,    90,    -1,
03640       92,    93,    -1,    95,    -1,    -1,    98,    99,   100,   101,
03641      102,   103,   104,   105,   106,    -1,    -1,    -1,    -1,    -1,
03642       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03643       -1,    -1,    -1,    -1,   126,   127,   128,    -1,    -1,    -1,
03644       -1,    -1,    -1,    -1,    -1,    -1,    -1,   139,     1,   141,
03645        3,     4,     5,     6,     7,    -1,    -1,    10,    11,    12,
03646       -1,    -1,    15,    16,    17,    18,    19,    20,    21,    22,
03647       23,    24,    -1,    -1,    -1,    -1,    -1,    30,    31,    32,
03648       33,    34,    35,    36,    -1,    -1,    39,    -1,    -1,    -1,
03649       -1,    -1,    45,    46,    47,    48,    49,    50,    51,    52,
03650       53,    54,    55,    56,    57,    -1,    59,    60,    -1,    62,
03651       63,    64,    -1,    66,    67,    -1,    -1,    -1,    -1,    -1,
03652       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03653       -1,    -1,    -1,    86,    -1,    -1,    89,    90,    -1,    92,
03654       93,    -1,    95,    -1,    -1,    98,    99,   100,   101,   102,
03655      103,   104,   105,   106,    -1,    -1,    -1,    -1,    -1,    -1,
03656       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03657       -1,    -1,    -1,   126,   127,   128,    -1,    -1,    -1,    -1,
03658       -1,    -1,    -1,    -1,    -1,    -1,   139,     1,   141,     3,
03659        4,     5,     6,     7,    -1,    -1,    10,    11,    12,    -1,
03660       -1,    15,    16,    -1,    18,    19,    20,    21,    22,    23,
03661       24,    -1,    -1,    -1,    -1,    -1,    30,    31,    32,    33,
03662       34,    35,    36,    -1,    -1,    39,    -1,    -1,    -1,    -1,
03663       -1,    45,    46,    47,    48,    49,    50,    51,    52,    53,
03664       54,    55,    56,    57,    -1,    59,    60,    -1,    62,    63,
03665       64,    -1,    66,    67,    -1,    -1,    -1,    -1,    -1,    -1,
03666       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03667       -1,    -1,    86,    -1,    -1,    89,    90,    -1,    92,    93,
03668       -1,    95,    -1,    -1,    98,    99,   100,   101,   102,   103,
03669      104,   105,   106,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03670        1,    -1,     3,     4,     5,     6,     7,    -1,     9,    10,
03671       11,    12,   126,   127,   128,    16,    -1,    18,    19,    20,
03672       21,    22,    23,    24,    -1,   139,    -1,   141,    -1,    30,
03673       31,    32,    33,    34,    35,    36,    -1,    -1,    39,    -1,
03674       -1,    -1,    -1,    -1,    45,    46,    47,    48,    49,    50,
03675       51,    52,    53,    54,    55,    56,    57,    -1,    59,    60,
03676       -1,    62,    63,    64,    -1,    66,    67,    -1,    -1,    -1,
03677       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03678       -1,    -1,    -1,    -1,    -1,    86,    -1,    -1,    89,    90,
03679       -1,    92,    93,    -1,    95,    -1,    -1,    98,    99,   100,
03680      101,   102,   103,   104,   105,   106,    -1,    -1,    -1,    -1,
03681       -1,    -1,    -1,     1,    -1,     3,     4,     5,     6,     7,
03682       -1,    -1,    -1,    11,    12,   126,   127,   128,    16,    -1,
03683       18,    19,    20,    21,    22,    23,    24,    -1,   139,    -1,
03684      141,    -1,    30,    31,    32,    33,    34,    35,    36,    -1,
03685       -1,    39,    -1,    -1,    -1,    -1,    -1,    45,    46,    47,
03686       48,    49,    50,    51,    52,    53,    54,    55,    56,    57,
03687       -1,    59,    60,    -1,    62,    63,    64,    -1,    66,    67,
03688       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03689       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    86,    -1,
03690       -1,    89,    90,    -1,    92,    93,    -1,    95,    -1,    -1,
03691       98,    99,   100,   101,   102,   103,   104,   105,   106,    -1,
03692       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03693       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,   126,   127,
03694      128,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,   137,
03695       -1,   139,     1,   141,     3,     4,     5,     6,     7,    -1,
03696       -1,    -1,    11,    12,    -1,    -1,    -1,    16,    -1,    18,
03697       19,    20,    21,    22,    23,    24,    -1,    -1,    -1,    -1,
03698       -1,    30,    31,    32,    33,    34,    35,    36,    -1,    -1,
03699       39,    -1,    -1,    -1,    -1,    -1,    45,    46,    47,    48,
03700       49,    50,    51,    52,    53,    54,    55,    56,    57,    -1,
03701       59,    60,    -1,    62,    63,    64,    -1,    66,    67,    -1,
03702       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03703       -1,    -1,    -1,    -1,    -1,    -1,    -1,    86,    -1,    -1,
03704       89,    90,    -1,    92,    93,    -1,    95,    -1,    -1,    98,
03705       99,   100,   101,   102,   103,   104,   105,   106,    -1,    -1,
03706       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03707       -1,    -1,    -1,    -1,    -1,    -1,    -1,   126,   127,   128,
03708       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,   137,    -1,
03709      139,     1,   141,     3,     4,     5,     6,     7,    -1,    -1,
03710       -1,    11,    12,    -1,    -1,    -1,    16,    -1,    18,    19,
03711       20,    21,    22,    23,    24,    -1,    -1,    -1,    -1,    -1,
03712       30,    31,    32,    33,    34,    35,    36,    -1,    -1,    39,
03713       -1,    -1,    -1,    -1,    -1,    45,    46,    47,    48,    49,
03714       50,    51,    52,    53,    54,    55,    56,    57,    -1,    59,
03715       60,    -1,    62,    63,    64,    -1,    66,    67,    -1,    -1,
03716       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03717       -1,    -1,    -1,    -1,    -1,    -1,    86,    -1,    -1,    89,
03718       90,    -1,    92,    93,    -1,    95,    -1,    -1,    98,    99,
03719      100,   101,   102,   103,   104,   105,   106,    -1,    -1,    -1,
03720       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03721       -1,    -1,    -1,    -1,    -1,    -1,   126,   127,   128,    -1,
03722       -1,   131,     1,    -1,     3,     4,     5,     6,     7,   139,
03723       -1,   141,    11,    12,    -1,    -1,    -1,    16,    -1,    18,
03724       19,    20,    21,    22,    23,    24,    -1,    -1,    -1,    -1,
03725       -1,    30,    31,    32,    33,    34,    35,    36,    -1,    -1,
03726       39,    -1,    -1,    -1,    -1,    -1,    45,    46,    47,    48,
03727       49,    50,    51,    52,    53,    54,    55,    56,    57,    -1,
03728       59,    60,    -1,    62,    63,    64,    -1,    66,    67,    -1,
03729       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03730       -1,    -1,    -1,    -1,    -1,    -1,    -1,    86,    -1,    -1,
03731       89,    90,    -1,    92,    93,    -1,    95,    -1,    -1,    98,
03732       99,   100,   101,   102,   103,   104,   105,   106,    -1,    -1,
03733       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03734       -1,    -1,    -1,    -1,    -1,    -1,    -1,   126,   127,   128,
03735       -1,    -1,   131,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03736      139,     1,   141,     3,     4,     5,     6,     7,    -1,    -1,
03737       10,    11,    12,    -1,    -1,    -1,    16,    -1,    18,    19,
03738       20,    21,    22,    23,    24,    -1,    -1,    -1,    -1,    -1,
03739       30,    31,    32,    33,    34,    35,    36,    -1,    -1,    39,
03740       -1,    -1,    -1,    -1,    -1,    45,    46,    47,    48,    49,
03741       50,    51,    52,    53,    54,    55,    56,    57,    -1,    59,
03742       60,    -1,    62,    63,    64,    -1,    66,    67,    -1,    -1,
03743       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03744       -1,    -1,    -1,    -1,    -1,    -1,    86,    -1,    -1,    89,
03745       90,    -1,    92,    93,    -1,    95,    -1,    -1,    98,    99,
03746      100,   101,   102,   103,   104,   105,   106,    -1,    -1,    -1,
03747       -1,    -1,    -1,    -1,     1,    -1,     3,     4,     5,     6,
03748        7,    -1,    -1,    -1,    11,    12,   126,   127,   128,    16,
03749       -1,    18,    19,    20,    21,    22,    23,    24,    -1,   139,
03750       -1,   141,    -1,    30,    31,    32,    33,    34,    35,    36,
03751       -1,    -1,    39,    -1,    -1,    -1,    -1,    -1,    45,    46,
03752       47,    48,    49,    50,    51,    52,    53,    54,    55,    56,
03753       57,    -1,    59,    60,    -1,    62,    63,    64,    -1,    66,
03754       67,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03755       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    86,
03756       -1,    -1,    89,    90,    -1,    92,    93,    -1,    95,    -1,
03757       -1,    98,    99,   100,   101,   102,   103,   104,   105,   106,
03758       -1,   108,    -1,    -1,    -1,    -1,    -1,    -1,    -1,     3,
03759        4,     5,    -1,     7,    -1,    -1,    -1,    11,    12,   126,
03760      127,   128,    16,    -1,    18,    19,    20,    21,    22,    23,
03761       24,    -1,   139,    -1,   141,    -1,    30,    31,    32,    33,
03762       34,    35,    36,    -1,    -1,    39,    -1,    -1,    -1,    -1,
03763       -1,    -1,    46,    -1,    -1,    49,    50,    51,    52,    53,
03764       54,    55,    56,    57,    58,    59,    60,    -1,    62,    63,
03765       64,    -1,    66,    67,    -1,    -1,    -1,    -1,    -1,    -1,
03766       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03767       -1,    -1,    86,    -1,    -1,    89,    90,    -1,    92,    93,
03768       -1,    95,    96,    97,    98,    99,   100,   101,   102,   103,
03769      104,   105,   106,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03770       -1,    -1,     3,     4,     5,    -1,     7,    -1,    -1,    -1,
03771       11,    12,   126,   127,   128,    16,    -1,    18,    19,    20,
03772       21,    22,    23,    24,    -1,    -1,    -1,   141,    -1,    30,
03773       31,    32,    33,    34,    35,    36,    -1,    -1,    39,    -1,
03774       -1,    -1,    -1,    -1,    -1,    46,    -1,    -1,    49,    50,
03775       51,    52,    53,    54,    55,    56,    57,    -1,    59,    60,
03776       -1,    62,    63,    64,    -1,    66,    67,    -1,    -1,    -1,
03777       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03778       -1,    -1,    -1,    -1,    -1,    86,    -1,    -1,    89,    90,
03779       -1,    92,    93,    -1,    -1,    -1,    -1,    98,    99,   100,
03780      101,   102,   103,   104,   105,   106,    -1,    -1,    -1,    -1,
03781       -1,    -1,    -1,    -1,    -1,     3,     4,     5,    -1,     7,
03782       -1,    -1,    -1,    11,    12,   126,   127,   128,    16,    -1,
03783       18,    19,    20,    21,    22,    23,    24,    -1,   139,    -1,
03784      141,    -1,    30,    31,    32,    33,    34,    35,    36,    -1,
03785       -1,    39,    -1,    -1,    -1,    -1,    -1,    -1,    46,    -1,
03786       -1,    49,    50,    51,    52,    53,    54,    55,    56,    57,
03787       -1,    59,    60,    -1,    62,    63,    64,    -1,    66,    67,
03788       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03789       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    86,    -1,
03790       -1,    89,    90,    -1,    92,    93,    -1,    -1,    -1,    -1,
03791       98,    99,   100,   101,   102,   103,   104,   105,   106,    -1,
03792       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,     3,     4,
03793        5,     6,     7,    -1,    -1,    -1,    11,    12,   126,   127,
03794      128,    16,    -1,    18,    19,    20,    21,    22,    23,    24,
03795       -1,    -1,    -1,   141,    -1,    30,    31,    32,    33,    34,
03796       35,    36,    -1,    -1,    39,    -1,    -1,    -1,    -1,    -1,
03797       45,    46,    47,    48,    49,    50,    51,    52,    53,    54,
03798       55,    56,    57,    -1,    59,    60,    -1,    62,    63,    64,
03799       -1,    66,    67,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03800       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03801       -1,    86,    -1,    -1,    89,    90,    -1,    92,    93,    -1,
03802       95,    -1,    -1,    98,    99,   100,   101,   102,   103,   104,
03803      105,   106,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03804       -1,     3,     4,     5,     6,     7,    -1,    -1,    -1,    11,
03805       12,   126,   127,   128,    16,    -1,    18,    19,    20,    21,
03806       22,    23,    24,    -1,   139,    -1,    -1,    -1,    30,    31,
03807       32,    33,    34,    35,    36,    -1,    -1,    39,    -1,    -1,
03808       -1,    -1,    -1,    45,    46,    47,    48,    49,    50,    51,
03809       52,    53,    54,    55,    56,    57,    -1,    59,    60,    -1,
03810       62,    63,    64,    -1,    66,    67,    -1,    -1,    -1,    -1,
03811       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03812       -1,    -1,    -1,    -1,    86,    -1,    -1,    89,    90,    -1,
03813       92,    93,    -1,    95,    -1,    -1,    98,    99,   100,   101,
03814      102,   103,   104,   105,   106,    -1,    -1,    -1,    -1,    -1,
03815       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03816       -1,    -1,    -1,    -1,   126,   127,   128,    -1,    -1,    -1,
03817       -1,    -1,    -1,    -1,    -1,    -1,    -1,   139,     3,     4,
03818        5,     6,     7,     8,     9,    10,    11,    12,    13,    14,
03819       15,    16,    17,    18,    19,    20,    21,    22,    23,    24,
03820       25,    26,    -1,    -1,    -1,    30,    31,    32,    33,    34,
03821       35,    36,    37,    38,    39,    -1,    -1,    -1,    -1,    -1,
03822       45,    46,    47,    48,    49,    50,    51,    52,    53,    54,
03823       55,    56,    57,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03824       -1,    66,    67,    68,    69,    70,    71,    72,    73,    74,
03825       -1,    -1,    77,    78,    -1,    -1,    81,    82,    83,    84,
03826       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03827       95,    96,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03828       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03829       -1,   116,   117,   118,   119,   120,   121,   122,   123,   124,
03830      125,    -1,   127,   128,    -1,    -1,    -1,    -1,    -1,    -1,
03831      135,   136,     3,     4,     5,     6,     7,     8,     9,    10,
03832       11,    12,    13,    14,    15,    16,    17,    18,    19,    20,
03833       21,    22,    23,    24,    25,    26,    -1,    -1,    -1,    30,
03834       31,    32,    33,    34,    35,    36,    37,    38,    39,    -1,
03835       -1,    -1,    -1,    -1,    45,    46,    47,    48,    49,    50,
03836       51,    52,    53,    54,    55,    56,    57,    -1,    -1,    -1,
03837       -1,    -1,    -1,    -1,    -1,    66,    67,    68,    69,    70,
03838       71,    72,    73,    74,    -1,    -1,    77,    78,    -1,    -1,
03839       81,    82,    83,    84,    -1,    -1,    -1,    -1,    -1,    -1,
03840       -1,    -1,    -1,    -1,    95,    96,    -1,    -1,    -1,    -1,
03841       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03842       -1,    -1,    -1,    -1,    -1,   116,   117,   118,   119,   120,
03843      121,   122,   123,   124,   125,    -1,   127,   128,    -1,    -1,
03844       -1,    -1,    -1,    -1,   135,     3,     4,     5,     6,     7,
03845        8,     9,    10,    11,    12,    13,    14,    15,    16,    17,
03846       18,    19,    20,    21,    22,    23,    24,    25,    26,    -1,
03847       -1,    -1,    30,    31,    32,    33,    34,    35,    36,    37,
03848       38,    39,    -1,    -1,    -1,    -1,    -1,    45,    46,    47,
03849       48,    49,    50,    51,    52,    53,    54,    -1,    56,    -1,
03850       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    66,    67,
03851       68,    69,    70,    71,    72,    73,    74,    -1,    -1,    77,
03852       78,    -1,    -1,    81,    82,    83,    84,    -1,    -1,    -1,
03853       -1,    -1,    -1,    -1,    -1,    -1,    -1,    95,    96,    -1,
03854       -1,    99,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03855       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,   116,   117,
03856      118,   119,   120,   121,   122,   123,   124,   125,    -1,   127,
03857      128,    -1,    -1,    -1,    -1,    -1,    -1,   135,     3,     4,
03858        5,     6,     7,     8,     9,    10,    11,    12,    13,    14,
03859       15,    16,    17,    18,    19,    20,    21,    22,    23,    24,
03860       25,    26,    -1,    -1,    -1,    30,    31,    32,    33,    34,
03861       35,    36,    37,    38,    39,    -1,    -1,    -1,    -1,    -1,
03862       45,    46,    47,    48,    49,    50,    51,    52,    53,    -1,
03863       -1,    56,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03864       -1,    66,    67,    68,    69,    70,    71,    72,    73,    74,
03865       -1,    -1,    77,    78,    -1,    -1,    81,    82,    83,    84,
03866       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03867       95,    96,    -1,    -1,    99,    -1,    -1,    -1,    -1,    -1,
03868       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03869       -1,   116,   117,   118,   119,   120,   121,   122,   123,   124,
03870      125,    -1,   127,   128,    -1,    -1,    -1,    -1,    -1,    -1,
03871      135,     3,     4,     5,     6,     7,     8,     9,    10,    11,
03872       12,    13,    14,    15,    16,    17,    18,    19,    20,    21,
03873       22,    23,    24,    25,    26,    -1,    -1,    -1,    30,    31,
03874       32,    33,    34,    35,    36,    37,    38,    39,    -1,    -1,
03875       -1,    -1,    -1,    45,    46,    47,    48,    49,    50,    51,
03876       52,    53,    -1,    -1,    56,    -1,    -1,    -1,    -1,    -1,
03877       -1,    -1,    -1,    -1,    66,    67,    68,    69,    70,    71,
03878       72,    73,    74,    -1,    -1,    77,    78,    -1,    -1,    81,
03879       82,    83,    84,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03880       -1,    -1,    -1,    95,    96,    -1,    -1,    -1,    -1,    -1,
03881       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03882       -1,    -1,    -1,    -1,   116,   117,   118,   119,   120,   121,
03883      122,   123,   124,   125,    -1,   127,   128,     3,     4,     5,
03884       -1,     7,    -1,   135,    -1,    11,    12,    -1,    -1,    -1,
03885       16,    -1,    18,    19,    20,    21,    22,    23,    24,    -1,
03886       -1,    -1,    -1,    -1,    30,    31,    32,    33,    34,    35,
03887       36,    -1,    -1,    39,    -1,    -1,    -1,    -1,    -1,    -1,
03888       46,    -1,    -1,    49,    50,    51,    52,    53,    54,    55,
03889       56,    57,    -1,    59,    60,    -1,    62,    63,    64,    -1,
03890       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03891       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03892       86,    -1,    -1,    89,    90,    -1,    92,    93,    -1,    -1,
03893       -1,    -1,    98,    99,   100,   101,   102,   103,   104,   105,
03894      106,    -1,    -1,    -1,    -1,    -1,     3,     4,     5,    -1,
03895        7,    -1,    -1,    -1,    11,    12,    -1,    -1,    -1,    16,
03896      126,    18,    19,    20,    21,    22,    23,    24,   134,    -1,
03897       -1,    -1,    -1,    30,    31,    32,    33,    34,    35,    36,
03898       -1,    -1,    39,    -1,    -1,    -1,    -1,    -1,    -1,    46,
03899       -1,    -1,    49,    50,    51,    52,    53,    54,    55,    56,
03900       57,    -1,    59,    60,    -1,    62,    63,    64,    -1,    -1,
03901       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03902       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    86,
03903       -1,    -1,    89,    90,    -1,    92,    93,    -1,    -1,    -1,
03904       -1,    98,    99,   100,   101,   102,   103,   104,   105,   106,
03905       -1,    -1,    -1,    -1,    -1,     3,     4,     5,     6,     7,
03906       -1,    -1,    -1,    11,    12,    -1,    -1,    -1,    16,   126,
03907       18,    19,    20,    21,    22,    23,    24,   134,    -1,    -1,
03908       -1,    -1,    30,    31,    32,    33,    34,    35,    36,    -1,
03909       -1,    39,    -1,    -1,    -1,    -1,    -1,    45,    46,    47,
03910       48,    49,    50,    51,    52,    53,    54,    55,    56,    57,
03911       -1,    59,    60,    -1,    62,    63,    64,    -1,    66,    67,
03912       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03913       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    86,    -1,
03914       -1,    89,    90,    -1,    92,    93,    -1,    95,    -1,    -1,
03915       98,    99,   100,   101,   102,   103,   104,   105,   106,    -1,
03916       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,     3,     4,
03917        5,    -1,     7,    -1,    -1,    -1,    11,    12,   126,   127,
03918      128,    16,    -1,    18,    19,    20,    21,    22,    23,    24,
03919       -1,    -1,    -1,    -1,    -1,    30,    31,    32,    33,    34,
03920       35,    36,    -1,    -1,    39,    -1,    -1,    -1,    -1,    -1,
03921       -1,    46,    -1,    -1,    49,    50,    51,    52,    53,    54,
03922       55,    56,    57,    58,    59,    60,    -1,    62,    63,    64,
03923       -1,    66,    67,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03924       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03925       -1,    86,    -1,    -1,    89,    90,    -1,    92,    93,    -1,
03926       95,    96,    97,    98,    99,   100,   101,   102,   103,   104,
03927      105,   106,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03928       -1,     3,     4,     5,     6,     7,    -1,    -1,    -1,    11,
03929       12,   126,   127,   128,    16,    -1,    18,    19,    20,    21,
03930       22,    23,    24,    -1,    -1,    -1,    -1,    -1,    30,    31,
03931       32,    33,    34,    35,    36,    -1,    -1,    39,    -1,    -1,
03932       -1,    -1,    -1,    45,    46,    -1,    48,    49,    50,    51,
03933       52,    53,    54,    55,    56,    57,    -1,    59,    60,    -1,
03934       62,    63,    64,    -1,    66,    67,    -1,    -1,    -1,    -1,
03935       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03936       -1,    -1,    -1,    -1,    86,    -1,    -1,    89,    90,    -1,
03937       92,    93,    -1,    95,    -1,    -1,    98,    99,   100,   101,
03938      102,   103,   104,   105,   106,    -1,    -1,    -1,    -1,    -1,
03939       -1,    -1,    -1,    -1,     3,     4,     5,    -1,     7,    -1,
03940       -1,    -1,    11,    12,   126,   127,   128,    16,    -1,    18,
03941       19,    20,    21,    22,    23,    24,    -1,    -1,    -1,    -1,
03942       -1,    30,    31,    32,    33,    34,    35,    36,    -1,    -1,
03943       39,    -1,    -1,    -1,    -1,    -1,    -1,    46,    -1,    -1,
03944       49,    50,    51,    52,    53,    54,    55,    56,    57,    58,
03945       59,    60,    -1,    62,    63,    64,    -1,    66,    67,    -1,
03946       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03947       -1,    -1,    -1,    -1,    -1,    -1,    -1,    86,    -1,    -1,
03948       89,    90,    -1,    92,    93,    -1,    95,    96,    97,    98,
03949       99,   100,   101,   102,   103,   104,   105,   106,    -1,    -1,
03950       -1,    -1,    -1,    -1,    -1,    -1,    -1,     3,     4,     5,
03951       -1,     7,    -1,    -1,    -1,    11,    12,   126,   127,   128,
03952       16,    -1,    18,    19,    20,    21,    22,    23,    24,    -1,
03953       -1,    -1,    -1,    -1,    30,    31,    32,    33,    34,    35,
03954       36,    -1,    -1,    39,    -1,    -1,    -1,    -1,    -1,    -1,
03955       46,    -1,    -1,    49,    50,    51,    52,    53,    54,    55,
03956       56,    57,    58,    59,    60,    -1,    62,    63,    64,    -1,
03957       66,    67,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03958       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03959       86,    -1,    -1,    89,    90,    -1,    92,    93,    -1,    95,
03960       96,    -1,    98,    99,   100,   101,   102,   103,   104,   105,
03961      106,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03962        3,     4,     5,    -1,     7,    -1,    -1,    -1,    11,    12,
03963      126,   127,   128,    16,    -1,    18,    19,    20,    21,    22,
03964       23,    24,    -1,    -1,    -1,    -1,    -1,    30,    31,    32,
03965       33,    34,    35,    36,    -1,    -1,    39,    -1,    -1,    -1,
03966       -1,    -1,    -1,    46,    -1,    -1,    49,    50,    51,    52,
03967       53,    54,    55,    56,    57,    58,    59,    60,    -1,    62,
03968       63,    64,    -1,    66,    67,    -1,    -1,    -1,    -1,    -1,
03969       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03970       -1,    -1,    -1,    86,    -1,    -1,    89,    90,    -1,    92,
03971       93,    -1,    -1,    96,    97,    98,    99,   100,   101,   102,
03972      103,   104,   105,   106,    -1,    -1,    -1,    -1,    -1,    -1,
03973       -1,    -1,    -1,     3,     4,     5,    -1,     7,    -1,    -1,
03974       -1,    11,    12,   126,   127,   128,    16,    -1,    18,    19,
03975       20,    21,    22,    23,    24,    -1,    -1,    -1,    -1,    -1,
03976       30,    31,    32,    33,    34,    35,    36,    -1,    -1,    39,
03977       -1,    -1,    -1,    -1,    -1,    -1,    46,    -1,    -1,    49,
03978       50,    51,    52,    53,    54,    55,    56,    57,    58,    59,
03979       60,    -1,    62,    63,    64,    -1,    66,    67,    -1,    -1,
03980       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03981       -1,    -1,    -1,    -1,    -1,    -1,    86,    -1,    -1,    89,
03982       90,    -1,    92,    93,    -1,    95,    96,    -1,    98,    99,
03983      100,   101,   102,   103,   104,   105,   106,    -1,    -1,    -1,
03984       -1,    -1,    -1,    -1,    -1,    -1,     3,     4,     5,    -1,
03985        7,    -1,    -1,    -1,    11,    12,   126,   127,   128,    16,
03986       -1,    18,    19,    20,    21,    22,    23,    24,    -1,    -1,
03987       -1,    -1,    -1,    30,    31,    32,    33,    34,    35,    36,
03988       -1,    -1,    39,    -1,    -1,    -1,    -1,    -1,    -1,    46,
03989       -1,    -1,    49,    50,    51,    52,    53,    54,    55,    56,
03990       57,    58,    59,    60,    -1,    62,    63,    64,    -1,    66,
03991       67,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
03992       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    86,
03993       -1,    -1,    89,    90,    -1,    92,    93,    -1,    -1,    96,
03994       -1,    98,    99,   100,   101,   102,   103,   104,   105,   106,
03995       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,     3,
03996        4,     5,    -1,     7,    -1,    -1,    -1,    11,    12,   126,
03997      127,   128,    16,    -1,    18,    19,    20,    21,    22,    23,
03998       24,    -1,    -1,    -1,    -1,    -1,    30,    31,    32,    33,
03999       34,    35,    36,    -1,    -1,    39,    -1,    -1,    -1,    -1,
04000       -1,    -1,    46,    -1,    -1,    49,    50,    51,    52,    53,
04001       54,    55,    56,    57,    -1,    59,    60,    -1,    62,    63,
04002       64,    -1,    66,    67,    -1,    -1,    -1,    -1,    -1,    -1,
04003       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
04004       -1,    -1,    86,    -1,    -1,    89,    90,    -1,    92,    93,
04005       -1,    95,    -1,    -1,    98,    99,   100,   101,   102,   103,
04006      104,   105,   106,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
04007       -1,    -1,     3,     4,     5,    -1,     7,    -1,    -1,    -1,
04008       11,    12,   126,   127,   128,    16,    -1,    18,    19,    20,
04009       21,    22,    23,    24,    -1,    -1,    -1,    -1,    -1,    30,
04010       31,    32,    33,    34,    35,    36,    -1,    -1,    39,    -1,
04011       -1,    -1,    -1,    -1,    -1,    46,    -1,    -1,    49,    50,
04012       51,    52,    53,    54,    55,    56,    57,    -1,    59,    60,
04013       -1,    62,    63,    64,    -1,    66,    67,    -1,    -1,    -1,
04014       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
04015       -1,    -1,    -1,    -1,    -1,    86,    -1,    -1,    89,    90,
04016       -1,    92,    93,    -1,    95,    -1,    -1,    98,    99,   100,
04017      101,   102,   103,   104,   105,   106,    -1,    -1,    -1,    -1,
04018       -1,    -1,    -1,    -1,    -1,     3,     4,     5,    -1,     7,
04019       -1,    -1,    -1,    11,    12,   126,   127,   128,    16,    -1,
04020       18,    19,    20,    21,    22,    23,    24,    -1,    -1,    -1,
04021       -1,    -1,    30,    31,    32,    33,    34,    35,    36,    -1,
04022       -1,    39,    -1,    -1,    -1,    -1,    -1,    -1,    46,    -1,
04023       -1,    49,    50,    51,    52,    53,    54,    55,    56,    57,
04024       -1,    59,    60,    -1,    62,    63,    64,    -1,    66,    67,
04025       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
04026       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    86,    -1,
04027       -1,    89,    90,    -1,    92,    93,    -1,    95,    -1,    -1,
04028       98,    99,   100,   101,   102,   103,   104,   105,   106,    -1,
04029       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,     3,     4,
04030        5,    -1,     7,    -1,    -1,    -1,    11,    12,   126,   127,
04031      128,    16,    -1,    18,    19,    20,    21,    22,    23,    24,
04032       -1,    -1,    -1,    -1,    -1,    30,    31,    32,    33,    34,
04033       35,    36,    -1,    -1,    39,    -1,    -1,    -1,    -1,    -1,
04034       -1,    46,    -1,    -1,    49,    50,    51,    52,    53,    54,
04035       55,    56,    57,    -1,    59,    60,    -1,    62,    63,    64,
04036       -1,    66,    67,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
04037       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
04038       -1,    86,    -1,    -1,    89,    90,    -1,    92,    93,    -1,
04039       95,    -1,    -1,    98,    99,   100,   101,   102,   103,   104,
04040      105,   106,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
04041       -1,     3,     4,     5,    -1,     7,    -1,    -1,    -1,    11,
04042       12,   126,   127,   128,    16,    -1,    18,    19,    20,    21,
04043       22,    23,    24,    -1,    -1,    -1,    -1,    -1,    30,    31,
04044       32,    33,    34,    35,    36,    -1,    -1,    39,    -1,    -1,
04045       -1,    -1,    -1,    -1,    46,    -1,    -1,    49,    50,    51,
04046       52,    53,    54,    55,    56,    57,    -1,    59,    60,    -1,
04047       62,    63,    64,    -1,    66,    67,    -1,    -1,    -1,    -1,
04048       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
04049       -1,    -1,    -1,    -1,    86,    -1,    -1,    89,    90,    -1,
04050       92,    93,    -1,    95,    -1,    -1,    98,    99,   100,   101,
04051      102,   103,   104,   105,   106,    -1,    -1,    -1,    -1,    -1,
04052       -1,    -1,    -1,    -1,     3,     4,     5,    -1,     7,    -1,
04053       -1,    -1,    11,    12,   126,   127,   128,    16,    -1,    18,
04054       19,    20,    21,    22,    23,    24,    -1,    -1,    -1,    -1,
04055       -1,    30,    31,    32,    33,    34,    35,    36,    -1,    -1,
04056       39,    -1,    -1,    -1,    -1,    -1,    -1,    46,    -1,    -1,
04057       49,    50,    51,    52,    53,    54,    55,    56,    57,    -1,
04058       59,    60,    -1,    62,    63,    64,    -1,    66,    67,    -1,
04059       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
04060       -1,    -1,    -1,    -1,    -1,    -1,    -1,    86,    -1,    -1,
04061       89,    90,    -1,    92,    93,    -1,    -1,    -1,    -1,    98,
04062       99,   100,   101,   102,   103,   104,   105,   106,    -1,    -1,
04063       -1,    -1,    -1,    -1,    -1,    -1,    -1,     3,     4,     5,
04064       -1,     7,    -1,    -1,    -1,    11,    12,   126,   127,   128,
04065       16,    -1,    18,    19,    20,    21,    22,    23,    24,    -1,
04066       -1,    -1,    -1,    -1,    30,    31,    32,    33,    34,    35,
04067       36,    -1,    -1,    39,    -1,    -1,    -1,    -1,    -1,    -1,
04068       46,    -1,    -1,    49,    50,    51,    52,    53,    54,    55,
04069       56,    57,    -1,    59,    60,    -1,    62,    63,    64,    -1,
04070       66,    67,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
04071       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
04072       86,    -1,    -1,    89,    90,    -1,    92,    93,    -1,    -1,
04073       -1,    -1,    98,    99,   100,   101,   102,   103,   104,   105,
04074      106,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
04075        3,     4,     5,    -1,     7,    -1,    -1,    -1,    11,    12,
04076      126,   127,   128,    16,    -1,    18,    19,    20,    21,    22,
04077       23,    24,    -1,    -1,    -1,    -1,    -1,    30,    31,    32,
04078       33,    34,    35,    36,    -1,    -1,    39,    -1,    -1,    -1,
04079       -1,    -1,    -1,    46,    -1,    -1,    49,    50,    51,    52,
04080       53,    54,    55,    56,    57,    -1,    59,    60,    -1,    62,
04081       63,    64,    -1,    66,    67,    -1,    -1,    -1,    -1,    -1,
04082       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
04083       -1,    -1,    -1,    86,    -1,    -1,    89,    90,    -1,    92,
04084       93,    -1,    -1,    -1,    -1,    98,    99,   100,   101,   102,
04085      103,   104,   105,   106,    -1,    -1,    -1,    -1,    -1,    -1,
04086       -1,    -1,    -1,     3,     4,     5,    -1,     7,    -1,    -1,
04087       -1,    11,    12,   126,   127,   128,    16,    -1,    18,    19,
04088       20,    21,    22,    23,    24,    -1,    -1,    -1,    -1,    -1,
04089       30,    31,    32,    33,    34,    35,    36,    -1,    -1,    39,
04090       -1,    -1,    -1,    -1,    -1,    -1,    46,    -1,    -1,    49,
04091       50,    51,    52,    53,    54,    55,    56,    57,    -1,    59,
04092       60,    -1,    62,    63,    64,    -1,    -1,    -1,    -1,    -1,
04093       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
04094       -1,    -1,    -1,    -1,    -1,    -1,    86,    -1,    -1,    89,
04095       90,    -1,    92,    93,    -1,    95,    -1,    -1,    98,    99,
04096      100,   101,   102,   103,   104,   105,   106,    -1,    -1,    -1,
04097       -1,    -1,     3,     4,     5,    -1,     7,    -1,    -1,    -1,
04098       11,    12,    -1,    -1,    -1,    16,   126,    18,    19,    20,
04099       21,    22,    23,    24,    -1,    -1,    -1,    -1,    -1,    30,
04100       31,    32,    33,    34,    35,    36,    -1,    -1,    39,    -1,
04101       -1,    -1,    -1,    -1,    -1,    46,    -1,    -1,    49,    50,
04102       51,    52,    53,    54,    55,    56,    57,    -1,    59,    60,
04103       -1,    62,    63,    64,    -1,    -1,    -1,    -1,    -1,    -1,
04104       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
04105       -1,    -1,    -1,    -1,    -1,    86,    -1,    -1,    89,    90,
04106       -1,    92,    93,    -1,    95,    -1,    -1,    98,    99,   100,
04107      101,   102,   103,   104,   105,   106,    -1,    -1,    -1,    -1,
04108       -1,     3,     4,     5,    -1,     7,    -1,    -1,    -1,    11,
04109       12,    -1,    -1,    -1,    16,   126,    18,    19,    20,    21,
04110       22,    23,    24,    -1,    -1,    -1,    -1,    -1,    30,    31,
04111       32,    33,    34,    35,    36,    -1,    -1,    39,    -1,    -1,
04112       -1,    -1,    -1,    -1,    46,    -1,    -1,    49,    50,    51,
04113       52,    53,    54,    55,    56,    57,    -1,    59,    60,    -1,
04114       62,    63,    64,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
04115       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
04116       -1,    83,    -1,    -1,    86,    -1,    -1,    89,    90,    -1,
04117       92,    93,    -1,    -1,    -1,    -1,    98,    99,   100,   101,
04118      102,   103,   104,   105,   106,    -1,    -1,    -1,    -1,    -1,
04119        3,     4,     5,    -1,     7,    -1,    -1,    -1,    11,    12,
04120       -1,    -1,    -1,    16,   126,    18,    19,    20,    21,    22,
04121       23,    24,    -1,    -1,    -1,    -1,    -1,    30,    31,    32,
04122       33,    34,    35,    36,    -1,    -1,    39,    -1,    -1,    -1,
04123       -1,    -1,    -1,    46,    -1,    -1,    49,    50,    51,    52,
04124       53,    54,    55,    56,    57,    -1,    59,    60,    -1,    62,
04125       63,    64,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
04126       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
04127       -1,    -1,    -1,    86,    -1,    -1,    89,    90,    -1,    92,
04128       93,    -1,    -1,    -1,    -1,    98,    99,   100,   101,   102,
04129      103,   104,   105,   106,    -1,    -1,    -1,    -1,    -1,     3,
04130        4,     5,    -1,     7,    -1,    -1,    -1,    11,    12,    -1,
04131       -1,    -1,    16,   126,    18,    19,    20,    21,    22,    23,
04132       24,    -1,    -1,    -1,    -1,    -1,    30,    31,    32,    33,
04133       34,    35,    36,    -1,    -1,    39,    -1,    -1,    -1,    -1,
04134       -1,    -1,    46,    -1,    -1,    49,    50,    51,    52,    53,
04135       54,    55,    56,    57,    -1,    59,    60,    -1,    62,    63,
04136       64,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
04137       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
04138       -1,    -1,    86,    -1,    -1,    89,    90,    -1,    92,    93,
04139       -1,    -1,    -1,    -1,    98,    99,   100,   101,   102,   103,
04140      104,   105,   106,    -1,    -1,    -1,    -1,    -1,     3,     4,
04141        5,    -1,     7,    -1,    -1,    -1,    11,    12,    -1,    -1,
04142       -1,    16,   126,    18,    19,    20,    21,    22,    23,    24,
04143       -1,    -1,    -1,    -1,    -1,    30,    31,    32,    33,    34,
04144       35,    36,    -1,    -1,    39,    -1,    -1,    -1,    -1,    -1,
04145       -1,    46,    -1,    -1,    49,    50,    51,    52,    53,    54,
04146       55,    56,    57,    -1,    59,    60,    -1,    62,    63,    64,
04147       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
04148       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
04149       -1,    86,    -1,    -1,    89,    90,    -1,    92,    93,    -1,
04150       -1,    -1,    -1,    98,    99,   100,   101,   102,   103,   104,
04151      105,   106,    -1,    -1,    -1,    -1,    -1,     3,     4,     5,
04152       -1,     7,    -1,    -1,    -1,    11,    12,    -1,    -1,    -1,
04153       16,   126,    18,    19,    20,    21,    22,    23,    24,    -1,
04154       -1,    -1,    -1,    -1,    30,    31,    32,    33,    34,    35,
04155       36,    -1,    -1,    39,    -1,    -1,    -1,    -1,    -1,    -1,
04156       46,    -1,    -1,    49,    50,    51,    52,    53,    54,    55,
04157       56,    57,    -1,    59,    60,    -1,    62,    63,    64,    -1,
04158       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
04159       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
04160       86,    -1,    -1,    89,    90,    -1,    92,    93,    -1,    -1,
04161       -1,    -1,    98,    99,   100,   101,   102,   103,   104,   105,
04162      106,    -1,    -1,    -1,    -1,    -1,    -1,    52,    53,    -1,
04163       -1,    56,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
04164      126,    66,    67,    68,    69,    70,    71,    72,    73,    74,
04165       -1,    -1,    77,    78,    -1,    -1,    81,    82,    83,    84,
04166       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
04167       95,    96,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
04168       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
04169       -1,   116,   117,   118,   119,   120,   121,   122,   123,   124,
04170      125,    -1,   127,   128,    52,    53,    -1,    -1,    56,    -1,
04171      135,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    66,    67,
04172       68,    69,    70,    71,    72,    73,    74,    -1,    -1,    77,
04173       78,    -1,    -1,    81,    82,    83,    84,    -1,    -1,    -1,
04174       -1,    -1,    -1,    -1,    -1,    -1,    -1,    95,    96,    -1,
04175       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
04176       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,   116,   117,
04177      118,   119,   120,   121,   122,   123,   124,   125,    -1,   127,
04178      128,    52,    53,    -1,    -1,    56,    -1,   135,    -1,    -1,
04179       -1,    -1,    -1,    -1,    -1,    66,    67,    68,    69,    70,
04180       71,    72,    73,    74,    -1,    -1,    77,    78,    -1,    -1,
04181       81,    82,    83,    84,    -1,    -1,    -1,    -1,    -1,    -1,
04182       -1,    -1,    -1,    -1,    95,    96,    -1,    -1,    -1,    -1,
04183       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
04184       -1,    -1,    -1,    -1,    -1,   116,   117,   118,   119,   120,
04185      121,   122,   123,   124,   125,    -1,   127,   128,    52,    53,
04186       -1,    -1,    56,    -1,   135,    -1,    -1,    -1,    -1,    -1,
04187       -1,    -1,    66,    67,    68,    69,    70,    71,    72,    73,
04188       74,    -1,    -1,    77,    78,    -1,    -1,    81,    82,    83,
04189       84,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
04190       -1,    95,    96,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
04191       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
04192       -1,    -1,   116,   117,   118,   119,   120,   121,   122,   123,
04193      124,   125,    -1,   127,   128,    52,    53,    -1,    -1,    56,
04194       -1,   135,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    66,
04195       67,    68,    69,    70,    71,    72,    73,    74,    -1,    -1,
04196       77,    78,    -1,    -1,    81,    82,    83,    84,    -1,    -1,
04197       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    95,    96,
04198       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
04199       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,   116,
04200      117,   118,   119,   120,   121,   122,   123,   124,   125,    -1,
04201      127,   128,    52,    53,    -1,    -1,    56,    -1,   135,    -1,
04202       -1,    -1,    -1,    -1,    -1,    -1,    66,    67,    68,    69,
04203       70,    71,    72,    73,    74,    -1,    -1,    77,    78,    -1,
04204       -1,    81,    82,    83,    84,    -1,    -1,    -1,    -1,    -1,
04205       -1,    -1,    -1,    -1,    -1,    95,    96,    -1,    -1,    -1,
04206       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
04207       -1,    -1,    -1,    -1,    -1,    -1,   116,   117,   118,   119,
04208      120,   121,   122,   123,   124,   125,    -1,   127,   128,    52,
04209       53,    -1,    -1,    56,    -1,   135,    -1,    -1,    -1,    -1,
04210       -1,    -1,    -1,    66,    67,    68,    69,    70,    71,    72,
04211       73,    74,    -1,    -1,    77,    78,    -1,    -1,    81,    82,
04212       83,    84,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
04213       -1,    -1,    95,    96,    -1,    -1,    -1,    -1,    -1,    -1,
04214       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
04215       -1,    -1,    -1,   116,   117,   118,   119,   120,   121,   122,
04216      123,   124,   125,    -1,   127,   128,    52,    53,    -1,    -1,
04217       56,    -1,   135,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
04218       66,    67,    68,    69,    70,    71,    72,    73,    74,    -1,
04219       -1,    77,    78,    -1,    -1,    81,    82,    83,    84,    -1,
04220       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    95,
04221       96,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
04222       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
04223      116,   117,   118,   119,   120,   121,   122,   123,   124,   125,
04224       -1,   127,   128,    52,    53,    -1,    -1,    56,    -1,   135,
04225       -1,    -1,    -1,    -1,    -1,    -1,    -1,    66,    67,    68,
04226       69,    70,    71,    72,    73,    74,    -1,    -1,    77,    78,
04227       -1,    -1,    81,    82,    83,    84,    -1,    -1,    -1,    -1,
04228       -1,    -1,    -1,    -1,    -1,    -1,    95,    96,    -1,    -1,
04229       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
04230       -1,    -1,    -1,    -1,    -1,    -1,    -1,   116,   117,   118,
04231      119,   120,   121,   122,   123,   124,   125,    -1,   127,   128,
04232       52,    53,    -1,    -1,    56,    -1,   135,    -1,    -1,    -1,
04233       -1,    -1,    -1,    -1,    66,    67,    68,    69,    70,    71,
04234       72,    73,    74,    -1,    -1,    77,    78,    -1,    -1,    81,
04235       82,    83,    84,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
04236       -1,    -1,    -1,    95,    96,    -1,    -1,    -1,    -1,    -1,
04237       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
04238       -1,    -1,    -1,    -1,   116,   117,   118,   119,   120,   121,
04239      122,   123,   124,   125,    -1,   127,   128,    52,    53,    -1,
04240       -1,    56,    -1,   135,    -1,    -1,    -1,    -1,    -1,    -1,
04241       -1,    66,    67,    68,    69,    70,    71,    72,    73,    74,
04242       -1,    -1,    77,    78,    -1,    -1,    81,    82,    83,    84,
04243       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
04244       95,    96,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
04245       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
04246       -1,   116,   117,   118,   119,   120,   121,   122,   123,   124,
04247      125,    -1,   127,   128,    52,    53,    -1,    -1,    56,    -1,
04248      135,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    66,    67,
04249       68,    69,    70,    71,    72,    73,    74,    -1,    -1,    77,
04250       78,    -1,    -1,    81,    82,    83,    84,    -1,    -1,    -1,
04251       -1,    -1,    -1,    -1,    -1,    -1,    -1,    95,    96,    -1,
04252       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
04253       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,   116,   117,
04254      118,   119,   120,   121,   122,   123,   124,   125,    -1,   127,
04255      128,    52,    53,    -1,    -1,    56,    -1,   135,    -1,    -1,
04256       -1,    -1,    -1,    -1,    -1,    66,    67,    68,    69,    70,
04257       71,    72,    73,    74,    -1,    -1,    77,    78,    -1,    -1,
04258       81,    82,    83,    84,    -1,    -1,    -1,    -1,    -1,    -1,
04259       -1,    -1,    -1,    -1,    95,    96,    -1,    -1,    -1,    -1,
04260       -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
04261       -1,    -1,    -1,    -1,    -1,   116,   117,   118,   119,   120,
04262      121,   122,   123,   124,   125,    -1,   127,   128,    -1,    -1,
04263       -1,    -1,    -1,    -1,   135
04264 };
04265 
04266 /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
04267    symbol of state STATE-NUM.  */
04268 static const yytype_uint16 yystos[] =
04269 {
04270        0,   143,   144,     0,     1,     3,     4,     5,     6,     7,
04271       11,    12,    16,    18,    19,    20,    21,    22,    23,    24,
04272       30,    31,    32,    33,    34,    35,    36,    39,    45,    46,
04273       47,    48,    49,    50,    51,    52,    53,    54,    55,    56,
04274       57,    59,    60,    62,    63,    64,    66,    67,    86,    89,
04275       90,    92,    93,    95,    98,    99,   100,   101,   102,   103,
04276      104,   105,   106,   126,   127,   128,   145,   146,   147,   154,
04277      156,   157,   159,   160,   163,   164,   165,   167,   168,   169,
04278      171,   172,   182,   196,   214,   215,   216,   217,   218,   219,
04279      220,   221,   222,   223,   224,   250,   251,   265,   266,   267,
04280      268,   269,   270,   271,   274,   276,   277,   289,   291,   292,
04281      293,   294,   295,   296,   297,   328,   339,   147,     3,     4,
04282        5,     6,     7,     8,     9,    10,    11,    12,    13,    14,
04283       15,    16,    17,    18,    19,    20,    21,    22,    23,    24,
04284       25,    26,    30,    31,    32,    33,    34,    35,    36,    37,
04285       38,    39,    45,    46,    47,    48,    49,    50,    51,    52,
04286       53,    56,    66,    67,    68,    69,    70,    71,    72,    73,
04287       74,    77,    78,    81,    82,    83,    84,    95,    96,   116,
04288      117,   118,   119,   120,   121,   122,   123,   124,   125,   127,
04289      128,   135,   175,   176,   177,   178,   180,   181,   289,   291,
04290       39,    58,    86,    89,    95,    96,    97,   127,   164,   172,
04291      182,   184,   189,   192,   194,   214,   293,   294,   296,   297,
04292      326,   327,   189,   189,   136,   190,   191,   136,   186,   190,
04293      136,   141,   333,    54,   177,   333,   148,   130,    21,    22,
04294       30,    31,    32,   163,   182,   214,   182,    56,     1,    47,
04295       89,   150,   151,   152,   154,   166,   167,   339,   157,   198,
04296      185,   194,   326,   339,   184,   325,   326,   339,    46,    86,
04297      126,   134,   171,   196,   214,   293,   294,   297,   242,   243,
04298       54,    55,    57,   175,   281,   290,   280,   281,   282,   140,
04299      272,   140,   278,   140,   275,   140,   279,    59,    60,   159,
04300      182,   182,   139,   141,   332,   337,   338,    40,    41,    42,
04301       43,    44,    37,    38,    26,   130,   186,   190,   256,    28,
04302      248,   113,   134,    89,    95,   168,   113,    68,    69,    70,
04303       71,    72,    73,    74,    75,    76,    77,    78,    79,    80,
04304       83,    84,   114,   116,   117,   118,   119,   120,   121,   122,
04305      123,   124,   125,    85,   132,   133,   197,   157,   158,   158,
04306      201,   203,   158,   332,   338,    86,   165,   172,   214,   230,
04307      293,   294,   297,    52,    56,    83,    86,   173,   174,   214,
04308      293,   294,   297,   174,    33,    34,    35,    36,    49,    50,
04309       51,    52,    56,   136,   175,   295,   323,    85,   133,   331,
04310      256,   268,    87,    87,   134,   184,    56,   184,   184,   184,
04311      113,    88,   134,   193,   339,    85,   132,   133,    87,    87,
04312      134,   193,   189,   333,   334,   189,   188,   189,   194,   326,
04313      339,   157,   334,   157,    54,    63,    64,   155,   136,   183,
04314      130,   150,    85,   133,    87,   154,   153,   166,   137,   332,
04315      338,   334,   199,   334,   138,   134,   141,   336,   134,   336,
04316      131,   336,   333,    56,    59,    60,   168,   170,   134,    85,
04317      132,   133,   244,    61,   107,   109,   110,   283,   110,   283,
04318      110,    65,   283,   110,   110,   273,   283,   110,    61,   110,
04319      110,   110,   273,   110,    61,   110,    68,    68,   139,   147,
04320      158,   158,   158,   158,   154,   157,   157,   258,   257,    94,
04321      161,   249,    95,   159,   184,   194,   195,   166,   134,   171,
04322      134,   156,   159,   172,   182,   184,   195,   182,   182,   182,
04323      182,   182,   182,   182,   182,   182,   182,   182,   182,   182,
04324      182,   182,   182,   182,   182,   182,   182,   182,   182,   182,
04325      182,   182,   182,    52,    53,    56,   180,   255,   329,   330,
04326      188,    52,    53,    56,   180,   254,   329,   149,   150,    13,
04327      226,   337,   226,   158,   158,   332,    17,   259,    56,    85,
04328      132,   133,    25,   157,    52,    56,   173,     1,   117,   298,
04329      337,    85,   132,   133,   210,   324,   211,   331,    52,    56,
04330      329,   159,   182,   159,   182,   179,   182,   184,    95,   184,
04331      192,   326,    52,    56,   188,    52,    56,   327,   334,   137,
04332      334,   134,   134,   334,   177,   200,   182,   145,   131,   329,
04333      329,   182,   130,   334,   152,   334,   326,   134,   170,    52,
04334       56,   188,    52,    56,    52,    54,    55,    56,    57,    58,
04335       68,    89,    95,    96,    97,   120,   123,   136,   246,   301,
04336      303,   304,   305,   306,   307,   308,   311,   312,   313,   314,
04337      317,   318,   319,   320,   321,   285,   284,   140,   283,   140,
04338      140,   140,   182,   182,    76,   118,   237,   238,   339,   237,
04339      162,   237,   184,   134,   334,   170,   134,   113,    44,   333,
04340       87,    87,   186,   190,   253,   333,   335,    87,    87,   186,
04341      190,   252,    10,   225,     8,   261,   339,   150,    13,   150,
04342       27,   227,   337,   227,   259,   194,   225,    52,    56,   188,
04343       52,    56,   205,   208,   337,   299,   207,    52,    56,   173,
04344      188,   149,   157,   136,   300,   303,   212,   186,   187,   190,
04345      339,    44,   177,   184,   193,    87,    87,   335,    87,    87,
04346      326,   157,   131,   145,   336,   168,   335,   113,   184,    52,
04347       89,    95,   231,   232,   233,   305,   303,   245,   134,   302,
04348      134,   322,   339,    52,   134,   322,   134,   302,    52,   134,
04349      302,    52,   286,    54,    55,    57,   288,   297,    52,    58,
04350      234,   236,   239,   307,   309,   310,   313,   315,   316,   319,
04351      321,   333,   150,   150,   237,   150,    95,   184,   170,   182,
04352      115,   159,   182,   159,   182,   161,   186,   138,    87,   159,
04353      182,   159,   182,   161,   187,   184,   195,   262,   339,    15,
04354      229,   339,    14,   228,   229,   229,   202,   204,   225,   134,
04355      226,   335,   158,   337,   158,   149,   335,   225,   334,   303,
04356      149,   337,   175,   256,   248,   182,    87,   134,   334,   131,
04357      184,   233,   134,   305,   134,   334,   239,    29,   111,   247,
04358      301,   306,   317,   319,   308,   313,   321,   307,   314,   319,
04359      307,   287,   113,    86,   214,   239,   118,   134,   235,   134,
04360      322,   322,   134,   235,   134,   235,   139,    10,   131,   150,
04361       10,   184,   182,   159,   182,    88,   263,   339,   150,     9,
04362      264,   339,   158,   225,   225,   150,   150,   184,   150,   227,
04363      209,   337,   225,   334,   225,   213,   334,   232,   134,    95,
04364      231,   137,   150,   150,   134,   302,   134,   302,   322,   134,
04365      302,   134,   302,   302,   150,   214,    56,    85,   118,   234,
04366      316,   319,   309,   313,   307,   315,   319,   307,    52,   240,
04367      241,   304,   131,    86,   172,   214,   293,   294,   297,   226,
04368      150,   226,   225,   225,   229,   259,   260,   206,   149,   300,
04369      134,   232,   134,   305,    10,   131,   307,   319,   307,   307,
04370      108,    52,    56,   134,   235,   134,   235,   322,   134,   235,
04371      134,   235,   235,   134,   333,    56,    85,   132,   133,   150,
04372      150,   150,   225,   149,   232,   134,   302,   134,   302,   302,
04373      302,   307,   319,   307,   307,   241,    52,    56,   188,    52,
04374       56,   261,   228,   225,   225,   232,   307,   235,   134,   235,
04375      235,   235,   335,   302,   307,   235
04376 };
04377 
04378 #define yyerrok         (yyerrstatus = 0)
04379 #define yyclearin       (yychar = YYEMPTY)
04380 #define YYEMPTY         (-2)
04381 #define YYEOF           0
04382 
04383 #define YYACCEPT        goto yyacceptlab
04384 #define YYABORT         goto yyabortlab
04385 #define YYERROR         goto yyerrorlab
04386 
04387 
04388 /* Like YYERROR except do call yyerror.  This remains here temporarily
04389    to ease the transition to the new meaning of YYERROR, for GCC.
04390    Once GCC version 2 has supplanted version 1, this can go.  However,
04391    YYFAIL appears to be in use.  Nevertheless, it is formally deprecated
04392    in Bison 2.4.2's NEWS entry, where a plan to phase it out is
04393    discussed.  */
04394 
04395 #define YYFAIL          goto yyerrlab
04396 #if defined YYFAIL
04397   /* This is here to suppress warnings from the GCC cpp's
04398      -Wunused-macros.  Normally we don't worry about that warning, but
04399      some users do, and we want to make it easy for users to remove
04400      YYFAIL uses, which will produce warnings from Bison 2.5.  */
04401 #endif
04402 
04403 #define YYRECOVERING()  (!!yyerrstatus)
04404 
04405 #define YYBACKUP(Token, Value)                                  \
04406 do                                                              \
04407   if (yychar == YYEMPTY && yylen == 1)                          \
04408     {                                                           \
04409       yychar = (Token);                                         \
04410       yylval = (Value);                                         \
04411       YYPOPSTACK (1);                                           \
04412       goto yybackup;                                            \
04413     }                                                           \
04414   else                                                          \
04415     {                                                           \
04416       parser_yyerror (parser, YY_("syntax error: cannot back up")); \
04417       YYERROR;                                                  \
04418     }                                                           \
04419 while (YYID (0))
04420 
04421 
04422 #define YYTERROR        1
04423 #define YYERRCODE       256
04424 
04425 
04426 /* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].
04427    If N is 0, then set CURRENT to the empty location which ends
04428    the previous symbol: RHS[0] (always defined).  */
04429 
04430 #define YYRHSLOC(Rhs, K) ((Rhs)[K])
04431 #ifndef YYLLOC_DEFAULT
04432 # define YYLLOC_DEFAULT(Current, Rhs, N)                                \
04433     do                                                                  \
04434       if (YYID (N))                                                    \
04435         {                                                               \
04436           (Current).first_line   = YYRHSLOC (Rhs, 1).first_line;        \
04437           (Current).first_column = YYRHSLOC (Rhs, 1).first_column;      \
04438           (Current).last_line    = YYRHSLOC (Rhs, N).last_line;         \
04439           (Current).last_column  = YYRHSLOC (Rhs, N).last_column;       \
04440         }                                                               \
04441       else                                                              \
04442         {                                                               \
04443           (Current).first_line   = (Current).last_line   =              \
04444             YYRHSLOC (Rhs, 0).last_line;                                \
04445           (Current).first_column = (Current).last_column =              \
04446             YYRHSLOC (Rhs, 0).last_column;                              \
04447         }                                                               \
04448     while (YYID (0))
04449 #endif
04450 
04451 
04452 /* This macro is provided for backward compatibility. */
04453 
04454 #ifndef YY_LOCATION_PRINT
04455 # define YY_LOCATION_PRINT(File, Loc) ((void) 0)
04456 #endif
04457 
04458 
04459 /* YYLEX -- calling `yylex' with the right arguments.  */
04460 
04461 #ifdef YYLEX_PARAM
04462 # define YYLEX yylex (&yylval, YYLEX_PARAM)
04463 #else
04464 # define YYLEX yylex (&yylval, parser)
04465 #endif
04466 
04467 /* Enable debugging if requested.  */
04468 #if YYDEBUG
04469 
04470 # ifndef YYFPRINTF
04471 #  include <stdio.h> /* INFRINGES ON USER NAME SPACE */
04472 #  define YYFPRINTF fprintf
04473 # endif
04474 
04475 # define YYDPRINTF(Args)                        \
04476 do {                                            \
04477   if (yydebug)                                  \
04478     YYFPRINTF Args;                             \
04479 } while (YYID (0))
04480 
04481 # define YY_SYMBOL_PRINT(Title, Type, Value, Location)                    \
04482 do {                                                                      \
04483   if (yydebug)                                                            \
04484     {                                                                     \
04485       YYFPRINTF (stderr, "%s ", Title);                                   \
04486       yy_symbol_print (stderr,                                            \
04487                   Type, Value, parser); \
04488       YYFPRINTF (stderr, "\n");                                           \
04489     }                                                                     \
04490 } while (YYID (0))
04491 
04492 
04493 /*--------------------------------.
04494 | Print this symbol on YYOUTPUT.  |
04495 `--------------------------------*/
04496 
04497 /*ARGSUSED*/
04498 #if (defined __STDC__ || defined __C99__FUNC__ \
04499      || defined __cplusplus || defined _MSC_VER)
04500 static void
04501 yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep, struct parser_params *parser)
04502 #else
04503 static void
04504 yy_symbol_value_print (yyoutput, yytype, yyvaluep, parser)
04505     FILE *yyoutput;
04506     int yytype;
04507     YYSTYPE const * const yyvaluep;
04508     struct parser_params *parser;
04509 #endif
04510 {
04511   if (!yyvaluep)
04512     return;
04513   YYUSE (parser);
04514 # ifdef YYPRINT
04515   if (yytype < YYNTOKENS)
04516     YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
04517 # else
04518   YYUSE (yyoutput);
04519 # endif
04520   switch (yytype)
04521     {
04522       default:
04523         break;
04524     }
04525 }
04526 
04527 
04528 /*--------------------------------.
04529 | Print this symbol on YYOUTPUT.  |
04530 `--------------------------------*/
04531 
04532 #if (defined __STDC__ || defined __C99__FUNC__ \
04533      || defined __cplusplus || defined _MSC_VER)
04534 static void
04535 yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep, struct parser_params *parser)
04536 #else
04537 static void
04538 yy_symbol_print (yyoutput, yytype, yyvaluep, parser)
04539     FILE *yyoutput;
04540     int yytype;
04541     YYSTYPE const * const yyvaluep;
04542     struct parser_params *parser;
04543 #endif
04544 {
04545   if (yytype < YYNTOKENS)
04546     YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
04547   else
04548     YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
04549 
04550   yy_symbol_value_print (yyoutput, yytype, yyvaluep, parser);
04551   YYFPRINTF (yyoutput, ")");
04552 }
04553 
04554 /*------------------------------------------------------------------.
04555 | yy_stack_print -- Print the state stack from its BOTTOM up to its |
04556 | TOP (included).                                                   |
04557 `------------------------------------------------------------------*/
04558 
04559 #if (defined __STDC__ || defined __C99__FUNC__ \
04560      || defined __cplusplus || defined _MSC_VER)
04561 static void
04562 yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop)
04563 #else
04564 static void
04565 yy_stack_print (yybottom, yytop)
04566     yytype_int16 *yybottom;
04567     yytype_int16 *yytop;
04568 #endif
04569 {
04570   YYFPRINTF (stderr, "Stack now");
04571   for (; yybottom <= yytop; yybottom++)
04572     {
04573       int yybot = *yybottom;
04574       YYFPRINTF (stderr, " %d", yybot);
04575     }
04576   YYFPRINTF (stderr, "\n");
04577 }
04578 
04579 # define YY_STACK_PRINT(Bottom, Top)                            \
04580 do {                                                            \
04581   if (yydebug)                                                  \
04582     yy_stack_print ((Bottom), (Top));                           \
04583 } while (YYID (0))
04584 
04585 
04586 /*------------------------------------------------.
04587 | Report that the YYRULE is going to be reduced.  |
04588 `------------------------------------------------*/
04589 
04590 #if (defined __STDC__ || defined __C99__FUNC__ \
04591      || defined __cplusplus || defined _MSC_VER)
04592 static void
04593 yy_reduce_print (YYSTYPE *yyvsp, int yyrule, struct parser_params *parser)
04594 #else
04595 static void
04596 yy_reduce_print (yyvsp, yyrule, parser)
04597     YYSTYPE *yyvsp;
04598     int yyrule;
04599     struct parser_params *parser;
04600 #endif
04601 {
04602   int yynrhs = yyr2[yyrule];
04603   int yyi;
04604   unsigned long int yylno = yyrline[yyrule];
04605   YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n",
04606              yyrule - 1, yylno);
04607   /* The symbols being reduced.  */
04608   for (yyi = 0; yyi < yynrhs; yyi++)
04609     {
04610       YYFPRINTF (stderr, "   $%d = ", yyi + 1);
04611       yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi],
04612                        &(yyvsp[(yyi + 1) - (yynrhs)])
04613                                        , parser);
04614       YYFPRINTF (stderr, "\n");
04615     }
04616 }
04617 
04618 # define YY_REDUCE_PRINT(Rule)          \
04619 do {                                    \
04620   if (yydebug)                          \
04621     yy_reduce_print (yyvsp, Rule, parser); \
04622 } while (YYID (0))
04623 
04624 /* Nonzero means print parse trace.  It is left uninitialized so that
04625    multiple parsers can coexist.  */
04626 #ifndef yydebug
04627 int yydebug;
04628 #endif
04629 #else /* !YYDEBUG */
04630 # define YYDPRINTF(Args)
04631 # define YY_SYMBOL_PRINT(Title, Type, Value, Location)
04632 # define YY_STACK_PRINT(Bottom, Top)
04633 # define YY_REDUCE_PRINT(Rule)
04634 #endif /* !YYDEBUG */
04635 
04636 
04637 /* YYINITDEPTH -- initial size of the parser's stacks.  */
04638 #ifndef YYINITDEPTH
04639 # define YYINITDEPTH 200
04640 #endif
04641 
04642 /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
04643    if the built-in stack extension method is used).
04644 
04645    Do not make this value too large; the results are undefined if
04646    YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)
04647    evaluated with infinite-precision integer arithmetic.  */
04648 
04649 #ifndef YYMAXDEPTH
04650 # define YYMAXDEPTH 10000
04651 #endif
04652 
04653 
04654 #if YYERROR_VERBOSE
04655 
04656 # ifndef yystrlen
04657 #  if defined __GLIBC__ && defined _STRING_H
04658 #   define yystrlen strlen
04659 #  else
04660 /* Return the length of YYSTR.  */
04661 #if (defined __STDC__ || defined __C99__FUNC__ \
04662      || defined __cplusplus || defined _MSC_VER)
04663 static YYSIZE_T
04664 yystrlen (const char *yystr)
04665 #else
04666 static YYSIZE_T
04667 yystrlen (yystr)
04668     const char *yystr;
04669 #endif
04670 {
04671   YYSIZE_T yylen;
04672   for (yylen = 0; yystr[yylen]; yylen++)
04673     continue;
04674   return yylen;
04675 }
04676 #  endif
04677 # endif
04678 
04679 # ifndef yystpcpy
04680 #  if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
04681 #   define yystpcpy stpcpy
04682 #  else
04683 /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
04684    YYDEST.  */
04685 #if (defined __STDC__ || defined __C99__FUNC__ \
04686      || defined __cplusplus || defined _MSC_VER)
04687 static char *
04688 yystpcpy (char *yydest, const char *yysrc)
04689 #else
04690 static char *
04691 yystpcpy (yydest, yysrc)
04692     char *yydest;
04693     const char *yysrc;
04694 #endif
04695 {
04696   char *yyd = yydest;
04697   const char *yys = yysrc;
04698 
04699   while ((*yyd++ = *yys++) != '\0')
04700     continue;
04701 
04702   return yyd - 1;
04703 }
04704 #  endif
04705 # endif
04706 
04707 # ifndef yytnamerr
04708 /* Copy to YYRES the contents of YYSTR after stripping away unnecessary
04709    quotes and backslashes, so that it's suitable for yyerror.  The
04710    heuristic is that double-quoting is unnecessary unless the string
04711    contains an apostrophe, a comma, or backslash (other than
04712    backslash-backslash).  YYSTR is taken from yytname.  If YYRES is
04713    null, do not copy; instead, return the length of what the result
04714    would have been.  */
04715 static YYSIZE_T
04716 yytnamerr (char *yyres, const char *yystr)
04717 {
04718   if (*yystr == '"')
04719     {
04720       YYSIZE_T yyn = 0;
04721       char const *yyp = yystr;
04722 
04723       for (;;)
04724         switch (*++yyp)
04725           {
04726           case '\'':
04727           case ',':
04728             goto do_not_strip_quotes;
04729 
04730           case '\\':
04731             if (*++yyp != '\\')
04732               goto do_not_strip_quotes;
04733             /* Fall through.  */
04734           default:
04735             if (yyres)
04736               yyres[yyn] = *yyp;
04737             yyn++;
04738             break;
04739 
04740           case '"':
04741             if (yyres)
04742               yyres[yyn] = '\0';
04743             return yyn;
04744           }
04745     do_not_strip_quotes: ;
04746     }
04747 
04748   if (! yyres)
04749     return yystrlen (yystr);
04750 
04751   return yystpcpy (yyres, yystr) - yyres;
04752 }
04753 # endif
04754 
04755 /* Copy into *YYMSG, which is of size *YYMSG_ALLOC, an error message
04756    about the unexpected token YYTOKEN for the state stack whose top is
04757    YYSSP.
04758 
04759    Return 0 if *YYMSG was successfully written.  Return 1 if *YYMSG is
04760    not large enough to hold the message.  In that case, also set
04761    *YYMSG_ALLOC to the required number of bytes.  Return 2 if the
04762    required number of bytes is too large to store.  */
04763 static int
04764 yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg,
04765                 yytype_int16 *yyssp, int yytoken)
04766 {
04767   YYSIZE_T yysize0 = yytnamerr (0, yytname[yytoken]);
04768   YYSIZE_T yysize = yysize0;
04769   YYSIZE_T yysize1;
04770   enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
04771   /* Internationalized format string. */
04772   const char *yyformat = 0;
04773   /* Arguments of yyformat. */
04774   char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
04775   /* Number of reported tokens (one for the "unexpected", one per
04776      "expected"). */
04777   int yycount = 0;
04778 
04779   /* There are many possibilities here to consider:
04780      - Assume YYFAIL is not used.  It's too flawed to consider.  See
04781        <http://lists.gnu.org/archive/html/bison-patches/2009-12/msg00024.html>
04782        for details.  YYERROR is fine as it does not invoke this
04783        function.
04784      - If this state is a consistent state with a default action, then
04785        the only way this function was invoked is if the default action
04786        is an error action.  In that case, don't check for expected
04787        tokens because there are none.
04788      - The only way there can be no lookahead present (in yychar) is if
04789        this state is a consistent state with a default action.  Thus,
04790        detecting the absence of a lookahead is sufficient to determine
04791        that there is no unexpected or expected token to report.  In that
04792        case, just report a simple "syntax error".
04793      - Don't assume there isn't a lookahead just because this state is a
04794        consistent state with a default action.  There might have been a
04795        previous inconsistent state, consistent state with a non-default
04796        action, or user semantic action that manipulated yychar.
04797      - Of course, the expected token list depends on states to have
04798        correct lookahead information, and it depends on the parser not
04799        to perform extra reductions after fetching a lookahead from the
04800        scanner and before detecting a syntax error.  Thus, state merging
04801        (from LALR or IELR) and default reductions corrupt the expected
04802        token list.  However, the list is correct for canonical LR with
04803        one exception: it will still contain any token that will not be
04804        accepted due to an error action in a later state.
04805   */
04806   if (yytoken != YYEMPTY)
04807     {
04808       int yyn = yypact[*yyssp];
04809       yyarg[yycount++] = yytname[yytoken];
04810       if (!yypact_value_is_default (yyn))
04811         {
04812           /* Start YYX at -YYN if negative to avoid negative indexes in
04813              YYCHECK.  In other words, skip the first -YYN actions for
04814              this state because they are default actions.  */
04815           int yyxbegin = yyn < 0 ? -yyn : 0;
04816           /* Stay within bounds of both yycheck and yytname.  */
04817           int yychecklim = YYLAST - yyn + 1;
04818           int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
04819           int yyx;
04820 
04821           for (yyx = yyxbegin; yyx < yyxend; ++yyx)
04822             if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR
04823                 && !yytable_value_is_error (yytable[yyx + yyn]))
04824               {
04825                 if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
04826                   {
04827                     yycount = 1;
04828                     yysize = yysize0;
04829                     break;
04830                   }
04831                 yyarg[yycount++] = yytname[yyx];
04832                 yysize1 = yysize + yytnamerr (0, yytname[yyx]);
04833                 if (! (yysize <= yysize1
04834                        && yysize1 <= YYSTACK_ALLOC_MAXIMUM))
04835                   return 2;
04836                 yysize = yysize1;
04837               }
04838         }
04839     }
04840 
04841   switch (yycount)
04842     {
04843 # define YYCASE_(N, S)                      \
04844       case N:                               \
04845         yyformat = S;                       \
04846       break
04847       YYCASE_(0, YY_("syntax error"));
04848       YYCASE_(1, YY_("syntax error, unexpected %s"));
04849       YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s"));
04850       YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s"));
04851       YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s"));
04852       YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s"));
04853 # undef YYCASE_
04854     }
04855 
04856   yysize1 = yysize + yystrlen (yyformat);
04857   if (! (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM))
04858     return 2;
04859   yysize = yysize1;
04860 
04861   if (*yymsg_alloc < yysize)
04862     {
04863       *yymsg_alloc = 2 * yysize;
04864       if (! (yysize <= *yymsg_alloc
04865              && *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM))
04866         *yymsg_alloc = YYSTACK_ALLOC_MAXIMUM;
04867       return 1;
04868     }
04869 
04870   /* Avoid sprintf, as that infringes on the user's name space.
04871      Don't have undefined behavior even if the translation
04872      produced a string with the wrong number of "%s"s.  */
04873   {
04874     char *yyp = *yymsg;
04875     int yyi = 0;
04876     while ((*yyp = *yyformat) != '\0')
04877       if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount)
04878         {
04879           yyp += yytnamerr (yyp, yyarg[yyi++]);
04880           yyformat += 2;
04881         }
04882       else
04883         {
04884           yyp++;
04885           yyformat++;
04886         }
04887   }
04888   return 0;
04889 }
04890 #endif /* YYERROR_VERBOSE */
04891 
04892 /*-----------------------------------------------.
04893 | Release the memory associated to this symbol.  |
04894 `-----------------------------------------------*/
04895 
04896 /*ARGSUSED*/
04897 #if (defined __STDC__ || defined __C99__FUNC__ \
04898      || defined __cplusplus || defined _MSC_VER)
04899 static void
04900 yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep, struct parser_params *parser)
04901 #else
04902 static void
04903 yydestruct (yymsg, yytype, yyvaluep, parser)
04904     const char *yymsg;
04905     int yytype;
04906     YYSTYPE *yyvaluep;
04907     struct parser_params *parser;
04908 #endif
04909 {
04910   YYUSE (yyvaluep);
04911   YYUSE (parser);
04912 
04913   if (!yymsg)
04914     yymsg = "Deleting";
04915   YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
04916 
04917   switch (yytype)
04918     {
04919 
04920       default:
04921         break;
04922     }
04923 }
04924 
04925 
04926 /* Prevent warnings from -Wmissing-prototypes.  */
04927 #ifdef YYPARSE_PARAM
04928 #if defined __STDC__ || defined __cplusplus
04929 int yyparse (void *YYPARSE_PARAM);
04930 #else
04931 int yyparse ();
04932 #endif
04933 #else /* ! YYPARSE_PARAM */
04934 #if defined __STDC__ || defined __cplusplus
04935 int yyparse (struct parser_params *parser);
04936 #else
04937 int yyparse ();
04938 #endif
04939 #endif /* ! YYPARSE_PARAM */
04940 
04941 
04942 /*----------.
04943 | yyparse.  |
04944 `----------*/
04945 
04946 #ifdef YYPARSE_PARAM
04947 #if (defined __STDC__ || defined __C99__FUNC__ \
04948      || defined __cplusplus || defined _MSC_VER)
04949 int
04950 yyparse (void *YYPARSE_PARAM)
04951 #else
04952 int
04953 yyparse (YYPARSE_PARAM)
04954     void *YYPARSE_PARAM;
04955 #endif
04956 #else /* ! YYPARSE_PARAM */
04957 #if (defined __STDC__ || defined __C99__FUNC__ \
04958      || defined __cplusplus || defined _MSC_VER)
04959 int
04960 yyparse (struct parser_params *parser)
04961 #else
04962 int
04963 yyparse (parser)
04964     struct parser_params *parser;
04965 #endif
04966 #endif
04967 {
04968 /* The lookahead symbol.  */
04969 int yychar;
04970 
04971 /* The semantic value of the lookahead symbol.  */
04972 YYSTYPE yylval;
04973 
04974     /* Number of syntax errors so far.  */
04975     int yynerrs;
04976 
04977     int yystate;
04978     /* Number of tokens to shift before error messages enabled.  */
04979     int yyerrstatus;
04980 
04981     /* The stacks and their tools:
04982        `yyss': related to states.
04983        `yyvs': related to semantic values.
04984 
04985        Refer to the stacks thru separate pointers, to allow yyoverflow
04986        to reallocate them elsewhere.  */
04987 
04988     /* The state stack.  */
04989     yytype_int16 yyssa[YYINITDEPTH];
04990     yytype_int16 *yyss;
04991     yytype_int16 *yyssp;
04992 
04993     /* The semantic value stack.  */
04994     YYSTYPE yyvsa[YYINITDEPTH];
04995     YYSTYPE *yyvs;
04996     YYSTYPE *yyvsp;
04997 
04998     YYSIZE_T yystacksize;
04999 
05000   int yyn;
05001   int yyresult;
05002   /* Lookahead token as an internal (translated) token number.  */
05003   int yytoken;
05004   /* The variables used to return semantic value and location from the
05005      action routines.  */
05006   YYSTYPE yyval;
05007 
05008 #if YYERROR_VERBOSE
05009   /* Buffer for error messages, and its allocated size.  */
05010   char yymsgbuf[128];
05011   char *yymsg = yymsgbuf;
05012   YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
05013 #endif
05014 
05015 #define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N))
05016 
05017   /* The number of symbols on the RHS of the reduced rule.
05018      Keep to zero when no symbol should be popped.  */
05019   int yylen = 0;
05020 
05021   yytoken = 0;
05022   yyss = yyssa;
05023   yyvs = yyvsa;
05024   yystacksize = YYINITDEPTH;
05025 
05026   YYDPRINTF ((stderr, "Starting parse\n"));
05027 
05028   yystate = 0;
05029   yyerrstatus = 0;
05030   yynerrs = 0;
05031   yychar = YYEMPTY; /* Cause a token to be read.  */
05032 
05033   /* Initialize stack pointers.
05034      Waste one element of value and location stack
05035      so that they stay on the same level as the state stack.
05036      The wasted elements are never initialized.  */
05037   yyssp = yyss;
05038   yyvsp = yyvs;
05039 
05040   goto yysetstate;
05041 
05042 /*------------------------------------------------------------.
05043 | yynewstate -- Push a new state, which is found in yystate.  |
05044 `------------------------------------------------------------*/
05045  yynewstate:
05046   /* In all cases, when you get here, the value and location stacks
05047      have just been pushed.  So pushing a state here evens the stacks.  */
05048   yyssp++;
05049 
05050  yysetstate:
05051   *yyssp = yystate;
05052 
05053   if (yyss + yystacksize - 1 <= yyssp)
05054     {
05055       /* Get the current used size of the three stacks, in elements.  */
05056       YYSIZE_T yysize = yyssp - yyss + 1;
05057 
05058 #ifdef yyoverflow
05059       {
05060         /* Give user a chance to reallocate the stack.  Use copies of
05061            these so that the &'s don't force the real ones into
05062            memory.  */
05063         YYSTYPE *yyvs1 = yyvs;
05064         yytype_int16 *yyss1 = yyss;
05065 
05066         /* Each stack pointer address is followed by the size of the
05067            data in use in that stack, in bytes.  This used to be a
05068            conditional around just the two extra args, but that might
05069            be undefined if yyoverflow is a macro.  */
05070         yyoverflow (YY_("memory exhausted"),
05071                     &yyss1, yysize * sizeof (*yyssp),
05072                     &yyvs1, yysize * sizeof (*yyvsp),
05073                     &yystacksize);
05074 
05075         yyss = yyss1;
05076         yyvs = yyvs1;
05077       }
05078 #else /* no yyoverflow */
05079 # ifndef YYSTACK_RELOCATE
05080       goto yyexhaustedlab;
05081 # else
05082       /* Extend the stack our own way.  */
05083       if (YYMAXDEPTH <= yystacksize)
05084         goto yyexhaustedlab;
05085       yystacksize *= 2;
05086       if (YYMAXDEPTH < yystacksize)
05087         yystacksize = YYMAXDEPTH;
05088 
05089       {
05090         yytype_int16 *yyss1 = yyss;
05091         union yyalloc *yyptr =
05092           (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
05093         if (! yyptr)
05094           goto yyexhaustedlab;
05095         YYSTACK_RELOCATE (yyss_alloc, yyss);
05096         YYSTACK_RELOCATE (yyvs_alloc, yyvs);
05097 #  undef YYSTACK_RELOCATE
05098         if (yyss1 != yyssa)
05099           YYSTACK_FREE (yyss1);
05100       }
05101 # endif
05102 #endif /* no yyoverflow */
05103 
05104       yyssp = yyss + yysize - 1;
05105       yyvsp = yyvs + yysize - 1;
05106 
05107       YYDPRINTF ((stderr, "Stack size increased to %lu\n",
05108                   (unsigned long int) yystacksize));
05109 
05110       if (yyss + yystacksize - 1 <= yyssp)
05111         YYABORT;
05112     }
05113 
05114   YYDPRINTF ((stderr, "Entering state %d\n", yystate));
05115 
05116   if (yystate == YYFINAL)
05117     YYACCEPT;
05118 
05119   goto yybackup;
05120 
05121 /*-----------.
05122 | yybackup.  |
05123 `-----------*/
05124 yybackup:
05125 
05126   /* Do appropriate processing given the current state.  Read a
05127      lookahead token if we need one and don't already have one.  */
05128 
05129   /* First try to decide what to do without reference to lookahead token.  */
05130   yyn = yypact[yystate];
05131   if (yypact_value_is_default (yyn))
05132     goto yydefault;
05133 
05134   /* Not known => get a lookahead token if don't already have one.  */
05135 
05136   /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol.  */
05137   if (yychar == YYEMPTY)
05138     {
05139       YYDPRINTF ((stderr, "Reading a token: "));
05140       yychar = YYLEX;
05141     }
05142 
05143   if (yychar <= YYEOF)
05144     {
05145       yychar = yytoken = YYEOF;
05146       YYDPRINTF ((stderr, "Now at end of input.\n"));
05147     }
05148   else
05149     {
05150       yytoken = YYTRANSLATE (yychar);
05151       YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
05152     }
05153 
05154   /* If the proper action on seeing token YYTOKEN is to reduce or to
05155      detect an error, take that action.  */
05156   yyn += yytoken;
05157   if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
05158     goto yydefault;
05159   yyn = yytable[yyn];
05160   if (yyn <= 0)
05161     {
05162       if (yytable_value_is_error (yyn))
05163         goto yyerrlab;
05164       yyn = -yyn;
05165       goto yyreduce;
05166     }
05167 
05168   /* Count tokens shifted since error; after three, turn off error
05169      status.  */
05170   if (yyerrstatus)
05171     yyerrstatus--;
05172 
05173   /* Shift the lookahead token.  */
05174   YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
05175 
05176   /* Discard the shifted token.  */
05177   yychar = YYEMPTY;
05178 
05179   yystate = yyn;
05180   *++yyvsp = yylval;
05181 
05182   goto yynewstate;
05183 
05184 
05185 /*-----------------------------------------------------------.
05186 | yydefault -- do the default action for the current state.  |
05187 `-----------------------------------------------------------*/
05188 yydefault:
05189   yyn = yydefact[yystate];
05190   if (yyn == 0)
05191     goto yyerrlab;
05192   goto yyreduce;
05193 
05194 
05195 /*-----------------------------.
05196 | yyreduce -- Do a reduction.  |
05197 `-----------------------------*/
05198 yyreduce:
05199   /* yyn is the number of a rule to reduce with.  */
05200   yylen = yyr2[yyn];
05201 
05202   /* If YYLEN is nonzero, implement the default value of the action:
05203      `$$ = $1'.
05204 
05205      Otherwise, the following line sets YYVAL to garbage.
05206      This behavior is undocumented and Bison
05207      users should not rely upon it.  Assigning to YYVAL
05208      unconditionally makes the parser a bit smaller, and it avoids a
05209      GCC warning that YYVAL may be used uninitialized.  */
05210   yyval = yyvsp[1-yylen];
05211 
05212 
05213   YY_REDUCE_PRINT (yyn);
05214   switch (yyn)
05215     {
05216         case 2:
05217 
05218 /* Line 1806 of yacc.c  */
05219 #line 854 "parse.y"
05220     {
05221                         lex_state = EXPR_BEG;
05222                     /*%%%*/
05223                         local_push(compile_for_eval || rb_parse_in_main());
05224                     /*%
05225                         local_push(0);
05226                     %*/
05227                     }
05228     break;
05229 
05230   case 3:
05231 
05232 /* Line 1806 of yacc.c  */
05233 #line 863 "parse.y"
05234     {
05235                     /*%%%*/
05236                         if ((yyvsp[(2) - (2)].node) && !compile_for_eval) {
05237                             /* last expression should not be void */
05238                             if (nd_type((yyvsp[(2) - (2)].node)) != NODE_BLOCK) void_expr((yyvsp[(2) - (2)].node));
05239                             else {
05240                                 NODE *node = (yyvsp[(2) - (2)].node);
05241                                 while (node->nd_next) {
05242                                     node = node->nd_next;
05243                                 }
05244                                 void_expr(node->nd_head);
05245                             }
05246                         }
05247                         ruby_eval_tree = NEW_SCOPE(0, block_append(ruby_eval_tree, (yyvsp[(2) - (2)].node)));
05248                     /*%
05249                         $$ = $2;
05250                         parser->result = dispatch1(program, $$);
05251                     %*/
05252                         local_pop();
05253                     }
05254     break;
05255 
05256   case 4:
05257 
05258 /* Line 1806 of yacc.c  */
05259 #line 886 "parse.y"
05260     {
05261                     /*%%%*/
05262                         void_stmts((yyvsp[(1) - (2)].node));
05263                         fixup_nodes(&deferred_nodes);
05264                     /*%
05265                     %*/
05266                         (yyval.node) = (yyvsp[(1) - (2)].node);
05267                     }
05268     break;
05269 
05270   case 5:
05271 
05272 /* Line 1806 of yacc.c  */
05273 #line 897 "parse.y"
05274     {
05275                     /*%%%*/
05276                         (yyval.node) = NEW_BEGIN(0);
05277                     /*%
05278                         $$ = dispatch2(stmts_add, dispatch0(stmts_new),
05279                                                   dispatch0(void_stmt));
05280                     %*/
05281                     }
05282     break;
05283 
05284   case 6:
05285 
05286 /* Line 1806 of yacc.c  */
05287 #line 906 "parse.y"
05288     {
05289                     /*%%%*/
05290                         (yyval.node) = newline_node((yyvsp[(1) - (1)].node));
05291                     /*%
05292                         $$ = dispatch2(stmts_add, dispatch0(stmts_new), $1);
05293                     %*/
05294                     }
05295     break;
05296 
05297   case 7:
05298 
05299 /* Line 1806 of yacc.c  */
05300 #line 914 "parse.y"
05301     {
05302                     /*%%%*/
05303                         (yyval.node) = block_append((yyvsp[(1) - (3)].node), newline_node((yyvsp[(3) - (3)].node)));
05304                     /*%
05305                         $$ = dispatch2(stmts_add, $1, $3);
05306                     %*/
05307                     }
05308     break;
05309 
05310   case 8:
05311 
05312 /* Line 1806 of yacc.c  */
05313 #line 922 "parse.y"
05314     {
05315                         (yyval.node) = remove_begin((yyvsp[(2) - (2)].node));
05316                     }
05317     break;
05318 
05319   case 10:
05320 
05321 /* Line 1806 of yacc.c  */
05322 #line 929 "parse.y"
05323     {
05324                     /*%%%*/
05325                         /* local_push(0); */
05326                     /*%
05327                     %*/
05328                     }
05329     break;
05330 
05331   case 11:
05332 
05333 /* Line 1806 of yacc.c  */
05334 #line 936 "parse.y"
05335     {
05336                     /*%%%*/
05337                         ruby_eval_tree_begin = block_append(ruby_eval_tree_begin,
05338                                                             (yyvsp[(4) - (5)].node));
05339                         /* NEW_PREEXE($4)); */
05340                         /* local_pop(); */
05341                         (yyval.node) = NEW_BEGIN(0);
05342                     /*%
05343                         $$ = dispatch1(BEGIN, $4);
05344                     %*/
05345                     }
05346     break;
05347 
05348   case 12:
05349 
05350 /* Line 1806 of yacc.c  */
05351 #line 953 "parse.y"
05352     {
05353                     /*%%%*/
05354                         (yyval.node) = (yyvsp[(1) - (4)].node);
05355                         if ((yyvsp[(2) - (4)].node)) {
05356                             (yyval.node) = NEW_RESCUE((yyvsp[(1) - (4)].node), (yyvsp[(2) - (4)].node), (yyvsp[(3) - (4)].node));
05357                         }
05358                         else if ((yyvsp[(3) - (4)].node)) {
05359                             rb_warn0("else without rescue is useless");
05360                             (yyval.node) = block_append((yyval.node), (yyvsp[(3) - (4)].node));
05361                         }
05362                         if ((yyvsp[(4) - (4)].node)) {
05363                             if ((yyval.node)) {
05364                                 (yyval.node) = NEW_ENSURE((yyval.node), (yyvsp[(4) - (4)].node));
05365                             }
05366                             else {
05367                                 (yyval.node) = block_append((yyvsp[(4) - (4)].node), NEW_NIL());
05368                             }
05369                         }
05370                         fixpos((yyval.node), (yyvsp[(1) - (4)].node));
05371                     /*%
05372                         $$ = dispatch4(bodystmt,
05373                                        escape_Qundef($1),
05374                                        escape_Qundef($2),
05375                                        escape_Qundef($3),
05376                                        escape_Qundef($4));
05377                     %*/
05378                     }
05379     break;
05380 
05381   case 13:
05382 
05383 /* Line 1806 of yacc.c  */
05384 #line 983 "parse.y"
05385     {
05386                     /*%%%*/
05387                         void_stmts((yyvsp[(1) - (2)].node));
05388                         fixup_nodes(&deferred_nodes);
05389                     /*%
05390                     %*/
05391                         (yyval.node) = (yyvsp[(1) - (2)].node);
05392                     }
05393     break;
05394 
05395   case 14:
05396 
05397 /* Line 1806 of yacc.c  */
05398 #line 994 "parse.y"
05399     {
05400                     /*%%%*/
05401                         (yyval.node) = NEW_BEGIN(0);
05402                     /*%
05403                         $$ = dispatch2(stmts_add, dispatch0(stmts_new),
05404                                                   dispatch0(void_stmt));
05405                     %*/
05406                     }
05407     break;
05408 
05409   case 15:
05410 
05411 /* Line 1806 of yacc.c  */
05412 #line 1003 "parse.y"
05413     {
05414                     /*%%%*/
05415                         (yyval.node) = newline_node((yyvsp[(1) - (1)].node));
05416                     /*%
05417                         $$ = dispatch2(stmts_add, dispatch0(stmts_new), $1);
05418                     %*/
05419                     }
05420     break;
05421 
05422   case 16:
05423 
05424 /* Line 1806 of yacc.c  */
05425 #line 1011 "parse.y"
05426     {
05427                     /*%%%*/
05428                         (yyval.node) = block_append((yyvsp[(1) - (3)].node), newline_node((yyvsp[(3) - (3)].node)));
05429                     /*%
05430                         $$ = dispatch2(stmts_add, $1, $3);
05431                     %*/
05432                     }
05433     break;
05434 
05435   case 17:
05436 
05437 /* Line 1806 of yacc.c  */
05438 #line 1019 "parse.y"
05439     {
05440                         (yyval.node) = remove_begin((yyvsp[(2) - (2)].node));
05441                     }
05442     break;
05443 
05444   case 18:
05445 
05446 /* Line 1806 of yacc.c  */
05447 #line 1025 "parse.y"
05448     {
05449                         (yyval.node) = (yyvsp[(1) - (1)].node);
05450                     }
05451     break;
05452 
05453   case 19:
05454 
05455 /* Line 1806 of yacc.c  */
05456 #line 1029 "parse.y"
05457     {
05458                         yyerror("BEGIN is permitted only at toplevel");
05459                     /*%%%*/
05460                         /* local_push(0); */
05461                     /*%
05462                     %*/
05463                     }
05464     break;
05465 
05466   case 20:
05467 
05468 /* Line 1806 of yacc.c  */
05469 #line 1037 "parse.y"
05470     {
05471                     /*%%%*/
05472                         ruby_eval_tree_begin = block_append(ruby_eval_tree_begin,
05473                                                             (yyvsp[(4) - (5)].node));
05474                         /* NEW_PREEXE($4)); */
05475                         /* local_pop(); */
05476                         (yyval.node) = NEW_BEGIN(0);
05477                     /*%
05478                         $$ = dispatch1(BEGIN, $4);
05479                     %*/
05480                     }
05481     break;
05482 
05483   case 21:
05484 
05485 /* Line 1806 of yacc.c  */
05486 #line 1049 "parse.y"
05487     {lex_state = EXPR_FNAME;}
05488     break;
05489 
05490   case 22:
05491 
05492 /* Line 1806 of yacc.c  */
05493 #line 1050 "parse.y"
05494     {
05495                     /*%%%*/
05496                         (yyval.node) = NEW_ALIAS((yyvsp[(2) - (4)].node), (yyvsp[(4) - (4)].node));
05497                     /*%
05498                         $$ = dispatch2(alias, $2, $4);
05499                     %*/
05500                     }
05501     break;
05502 
05503   case 23:
05504 
05505 /* Line 1806 of yacc.c  */
05506 #line 1058 "parse.y"
05507     {
05508                     /*%%%*/
05509                         (yyval.node) = NEW_VALIAS((yyvsp[(2) - (3)].id), (yyvsp[(3) - (3)].id));
05510                     /*%
05511                         $$ = dispatch2(var_alias, $2, $3);
05512                     %*/
05513                     }
05514     break;
05515 
05516   case 24:
05517 
05518 /* Line 1806 of yacc.c  */
05519 #line 1066 "parse.y"
05520     {
05521                     /*%%%*/
05522                         char buf[2];
05523                         buf[0] = '$';
05524                         buf[1] = (char)(yyvsp[(3) - (3)].node)->nd_nth;
05525                         (yyval.node) = NEW_VALIAS((yyvsp[(2) - (3)].id), rb_intern2(buf, 2));
05526                     /*%
05527                         $$ = dispatch2(var_alias, $2, $3);
05528                     %*/
05529                     }
05530     break;
05531 
05532   case 25:
05533 
05534 /* Line 1806 of yacc.c  */
05535 #line 1077 "parse.y"
05536     {
05537                     /*%%%*/
05538                         yyerror("can't make alias for the number variables");
05539                         (yyval.node) = NEW_BEGIN(0);
05540                     /*%
05541                         $$ = dispatch2(var_alias, $2, $3);
05542                         $$ = dispatch1(alias_error, $$);
05543                     %*/
05544                     }
05545     break;
05546 
05547   case 26:
05548 
05549 /* Line 1806 of yacc.c  */
05550 #line 1087 "parse.y"
05551     {
05552                     /*%%%*/
05553                         (yyval.node) = (yyvsp[(2) - (2)].node);
05554                     /*%
05555                         $$ = dispatch1(undef, $2);
05556                     %*/
05557                     }
05558     break;
05559 
05560   case 27:
05561 
05562 /* Line 1806 of yacc.c  */
05563 #line 1095 "parse.y"
05564     {
05565                     /*%%%*/
05566                         (yyval.node) = NEW_IF(cond((yyvsp[(3) - (3)].node)), remove_begin((yyvsp[(1) - (3)].node)), 0);
05567                         fixpos((yyval.node), (yyvsp[(3) - (3)].node));
05568                     /*%
05569                         $$ = dispatch2(if_mod, $3, $1);
05570                     %*/
05571                     }
05572     break;
05573 
05574   case 28:
05575 
05576 /* Line 1806 of yacc.c  */
05577 #line 1104 "parse.y"
05578     {
05579                     /*%%%*/
05580                         (yyval.node) = NEW_UNLESS(cond((yyvsp[(3) - (3)].node)), remove_begin((yyvsp[(1) - (3)].node)), 0);
05581                         fixpos((yyval.node), (yyvsp[(3) - (3)].node));
05582                     /*%
05583                         $$ = dispatch2(unless_mod, $3, $1);
05584                     %*/
05585                     }
05586     break;
05587 
05588   case 29:
05589 
05590 /* Line 1806 of yacc.c  */
05591 #line 1113 "parse.y"
05592     {
05593                     /*%%%*/
05594                         if ((yyvsp[(1) - (3)].node) && nd_type((yyvsp[(1) - (3)].node)) == NODE_BEGIN) {
05595                             (yyval.node) = NEW_WHILE(cond((yyvsp[(3) - (3)].node)), (yyvsp[(1) - (3)].node)->nd_body, 0);
05596                         }
05597                         else {
05598                             (yyval.node) = NEW_WHILE(cond((yyvsp[(3) - (3)].node)), (yyvsp[(1) - (3)].node), 1);
05599                         }
05600                     /*%
05601                         $$ = dispatch2(while_mod, $3, $1);
05602                     %*/
05603                     }
05604     break;
05605 
05606   case 30:
05607 
05608 /* Line 1806 of yacc.c  */
05609 #line 1126 "parse.y"
05610     {
05611                     /*%%%*/
05612                         if ((yyvsp[(1) - (3)].node) && nd_type((yyvsp[(1) - (3)].node)) == NODE_BEGIN) {
05613                             (yyval.node) = NEW_UNTIL(cond((yyvsp[(3) - (3)].node)), (yyvsp[(1) - (3)].node)->nd_body, 0);
05614                         }
05615                         else {
05616                             (yyval.node) = NEW_UNTIL(cond((yyvsp[(3) - (3)].node)), (yyvsp[(1) - (3)].node), 1);
05617                         }
05618                     /*%
05619                         $$ = dispatch2(until_mod, $3, $1);
05620                     %*/
05621                     }
05622     break;
05623 
05624   case 31:
05625 
05626 /* Line 1806 of yacc.c  */
05627 #line 1139 "parse.y"
05628     {
05629                     /*%%%*/
05630                         NODE *resq = NEW_RESBODY(0, remove_begin((yyvsp[(3) - (3)].node)), 0);
05631                         (yyval.node) = NEW_RESCUE(remove_begin((yyvsp[(1) - (3)].node)), resq, 0);
05632                     /*%
05633                         $$ = dispatch2(rescue_mod, $1, $3);
05634                     %*/
05635                     }
05636     break;
05637 
05638   case 32:
05639 
05640 /* Line 1806 of yacc.c  */
05641 #line 1148 "parse.y"
05642     {
05643                         if (in_def || in_single) {
05644                             rb_warn0("END in method; use at_exit");
05645                         }
05646                     /*%%%*/
05647                         (yyval.node) = NEW_POSTEXE(NEW_NODE(
05648                             NODE_SCOPE, 0 /* tbl */, (yyvsp[(3) - (4)].node) /* body */, 0 /* args */));
05649                     /*%
05650                         $$ = dispatch1(END, $3);
05651                     %*/
05652                     }
05653     break;
05654 
05655   case 34:
05656 
05657 /* Line 1806 of yacc.c  */
05658 #line 1161 "parse.y"
05659     {
05660                     /*%%%*/
05661                         value_expr((yyvsp[(3) - (3)].node));
05662                         (yyvsp[(1) - (3)].node)->nd_value = (yyvsp[(3) - (3)].node);
05663                         (yyval.node) = (yyvsp[(1) - (3)].node);
05664                     /*%
05665                         $$ = dispatch2(massign, $1, $3);
05666                     %*/
05667                     }
05668     break;
05669 
05670   case 35:
05671 
05672 /* Line 1806 of yacc.c  */
05673 #line 1171 "parse.y"
05674     {
05675                         value_expr((yyvsp[(3) - (3)].node));
05676                         (yyval.node) = new_op_assign((yyvsp[(1) - (3)].node), (yyvsp[(2) - (3)].id), (yyvsp[(3) - (3)].node));
05677                     }
05678     break;
05679 
05680   case 36:
05681 
05682 /* Line 1806 of yacc.c  */
05683 #line 1176 "parse.y"
05684     {
05685                     /*%%%*/
05686                         NODE *args;
05687 
05688                         value_expr((yyvsp[(6) - (6)].node));
05689                         if (!(yyvsp[(3) - (6)].node)) (yyvsp[(3) - (6)].node) = NEW_ZARRAY();
05690                         args = arg_concat((yyvsp[(3) - (6)].node), (yyvsp[(6) - (6)].node));
05691                         if ((yyvsp[(5) - (6)].id) == tOROP) {
05692                             (yyvsp[(5) - (6)].id) = 0;
05693                         }
05694                         else if ((yyvsp[(5) - (6)].id) == tANDOP) {
05695                             (yyvsp[(5) - (6)].id) = 1;
05696                         }
05697                         (yyval.node) = NEW_OP_ASGN1((yyvsp[(1) - (6)].node), (yyvsp[(5) - (6)].id), args);
05698                         fixpos((yyval.node), (yyvsp[(1) - (6)].node));
05699                     /*%
05700                         $$ = dispatch2(aref_field, $1, escape_Qundef($3));
05701                         $$ = dispatch3(opassign, $$, $5, $6);
05702                     %*/
05703                     }
05704     break;
05705 
05706   case 37:
05707 
05708 /* Line 1806 of yacc.c  */
05709 #line 1197 "parse.y"
05710     {
05711                         value_expr((yyvsp[(5) - (5)].node));
05712                         (yyval.node) = new_attr_op_assign((yyvsp[(1) - (5)].node), ripper_id2sym('.'), (yyvsp[(3) - (5)].id), (yyvsp[(4) - (5)].id), (yyvsp[(5) - (5)].node));
05713                     }
05714     break;
05715 
05716   case 38:
05717 
05718 /* Line 1806 of yacc.c  */
05719 #line 1202 "parse.y"
05720     {
05721                         value_expr((yyvsp[(5) - (5)].node));
05722                         (yyval.node) = new_attr_op_assign((yyvsp[(1) - (5)].node), ripper_id2sym('.'), (yyvsp[(3) - (5)].id), (yyvsp[(4) - (5)].id), (yyvsp[(5) - (5)].node));
05723                     }
05724     break;
05725 
05726   case 39:
05727 
05728 /* Line 1806 of yacc.c  */
05729 #line 1207 "parse.y"
05730     {
05731                     /*%%%*/
05732                         (yyval.node) = NEW_COLON2((yyvsp[(1) - (5)].node), (yyvsp[(3) - (5)].id));
05733                         (yyval.node) = new_const_op_assign((yyval.node), (yyvsp[(4) - (5)].id), (yyvsp[(5) - (5)].node));
05734                     /*%
05735                         $$ = dispatch2(const_path_field, $1, $3);
05736                         $$ = dispatch3(opassign, $$, $4, $5);
05737                     %*/
05738                     }
05739     break;
05740 
05741   case 40:
05742 
05743 /* Line 1806 of yacc.c  */
05744 #line 1217 "parse.y"
05745     {
05746                         value_expr((yyvsp[(5) - (5)].node));
05747                         (yyval.node) = new_attr_op_assign((yyvsp[(1) - (5)].node), ripper_intern("::"), (yyvsp[(3) - (5)].id), (yyvsp[(4) - (5)].id), (yyvsp[(5) - (5)].node));
05748                     }
05749     break;
05750 
05751   case 41:
05752 
05753 /* Line 1806 of yacc.c  */
05754 #line 1222 "parse.y"
05755     {
05756                     /*%%%*/
05757                         rb_backref_error((yyvsp[(1) - (3)].node));
05758                         (yyval.node) = NEW_BEGIN(0);
05759                     /*%
05760                         $$ = dispatch2(assign, dispatch1(var_field, $1), $3);
05761                         $$ = dispatch1(assign_error, $$);
05762                     %*/
05763                     }
05764     break;
05765 
05766   case 42:
05767 
05768 /* Line 1806 of yacc.c  */
05769 #line 1232 "parse.y"
05770     {
05771                     /*%%%*/
05772                         value_expr((yyvsp[(3) - (3)].node));
05773                         (yyval.node) = node_assign((yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));
05774                     /*%
05775                         $$ = dispatch2(assign, $1, $3);
05776                     %*/
05777                     }
05778     break;
05779 
05780   case 43:
05781 
05782 /* Line 1806 of yacc.c  */
05783 #line 1241 "parse.y"
05784     {
05785                     /*%%%*/
05786                         (yyvsp[(1) - (3)].node)->nd_value = (yyvsp[(3) - (3)].node);
05787                         (yyval.node) = (yyvsp[(1) - (3)].node);
05788                     /*%
05789                         $$ = dispatch2(massign, $1, $3);
05790                     %*/
05791                     }
05792     break;
05793 
05794   case 44:
05795 
05796 /* Line 1806 of yacc.c  */
05797 #line 1250 "parse.y"
05798     {
05799                     /*%%%*/
05800                         (yyvsp[(1) - (3)].node)->nd_value = (yyvsp[(3) - (3)].node);
05801                         (yyval.node) = (yyvsp[(1) - (3)].node);
05802                     /*%
05803                         $$ = dispatch2(massign, $1, $3);
05804                     %*/
05805                     }
05806     break;
05807 
05808   case 46:
05809 
05810 /* Line 1806 of yacc.c  */
05811 #line 1262 "parse.y"
05812     {
05813                     /*%%%*/
05814                         value_expr((yyvsp[(3) - (3)].node));
05815                         (yyval.node) = node_assign((yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));
05816                     /*%
05817                         $$ = dispatch2(assign, $1, $3);
05818                     %*/
05819                     }
05820     break;
05821 
05822   case 47:
05823 
05824 /* Line 1806 of yacc.c  */
05825 #line 1271 "parse.y"
05826     {
05827                     /*%%%*/
05828                         value_expr((yyvsp[(3) - (3)].node));
05829                         (yyval.node) = node_assign((yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));
05830                     /*%
05831                         $$ = dispatch2(assign, $1, $3);
05832                     %*/
05833                     }
05834     break;
05835 
05836   case 49:
05837 
05838 /* Line 1806 of yacc.c  */
05839 #line 1284 "parse.y"
05840     {
05841                     /*%%%*/
05842                         (yyval.node) = logop(NODE_AND, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));
05843                     /*%
05844                         $$ = dispatch3(binary, $1, ripper_intern("and"), $3);
05845                     %*/
05846                     }
05847     break;
05848 
05849   case 50:
05850 
05851 /* Line 1806 of yacc.c  */
05852 #line 1292 "parse.y"
05853     {
05854                     /*%%%*/
05855                         (yyval.node) = logop(NODE_OR, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));
05856                     /*%
05857                         $$ = dispatch3(binary, $1, ripper_intern("or"), $3);
05858                     %*/
05859                     }
05860     break;
05861 
05862   case 51:
05863 
05864 /* Line 1806 of yacc.c  */
05865 #line 1300 "parse.y"
05866     {
05867                     /*%%%*/
05868                         (yyval.node) = call_uni_op(cond((yyvsp[(3) - (3)].node)), '!');
05869                     /*%
05870                         $$ = dispatch2(unary, ripper_intern("not"), $3);
05871                     %*/
05872                     }
05873     break;
05874 
05875   case 52:
05876 
05877 /* Line 1806 of yacc.c  */
05878 #line 1308 "parse.y"
05879     {
05880                     /*%%%*/
05881                         (yyval.node) = call_uni_op(cond((yyvsp[(2) - (2)].node)), '!');
05882                     /*%
05883                         $$ = dispatch2(unary, ripper_id2sym('!'), $2);
05884                     %*/
05885                     }
05886     break;
05887 
05888   case 54:
05889 
05890 /* Line 1806 of yacc.c  */
05891 #line 1319 "parse.y"
05892     {
05893                     /*%%%*/
05894                         value_expr((yyvsp[(1) - (1)].node));
05895                         (yyval.node) = (yyvsp[(1) - (1)].node);
05896                         if (!(yyval.node)) (yyval.node) = NEW_NIL();
05897                     /*%
05898                         $$ = $1;
05899                     %*/
05900                     }
05901     break;
05902 
05903   case 58:
05904 
05905 /* Line 1806 of yacc.c  */
05906 #line 1336 "parse.y"
05907     {
05908                     /*%%%*/
05909                         (yyval.node) = NEW_CALL((yyvsp[(1) - (4)].node), (yyvsp[(3) - (4)].id), (yyvsp[(4) - (4)].node));
05910                     /*%
05911                         $$ = dispatch3(call, $1, $2, $3);
05912                         $$ = method_arg($$, $4);
05913                     %*/
05914                     }
05915     break;
05916 
05917   case 59:
05918 
05919 /* Line 1806 of yacc.c  */
05920 #line 1347 "parse.y"
05921     {
05922                         (yyvsp[(1) - (1)].vars) = dyna_push();
05923                     /*%%%*/
05924                         (yyval.num) = ruby_sourceline;
05925                     /*%
05926                     %*/
05927                     }
05928     break;
05929 
05930   case 60:
05931 
05932 /* Line 1806 of yacc.c  */
05933 #line 1357 "parse.y"
05934     {
05935                     /*%%%*/
05936                         (yyval.node) = NEW_ITER((yyvsp[(3) - (5)].node),(yyvsp[(4) - (5)].node));
05937                         nd_set_line((yyval.node), (yyvsp[(2) - (5)].num));
05938                     /*%
05939                         $$ = dispatch2(brace_block, escape_Qundef($3), $4);
05940                     %*/
05941                         dyna_pop((yyvsp[(1) - (5)].vars));
05942                     }
05943     break;
05944 
05945   case 61:
05946 
05947 /* Line 1806 of yacc.c  */
05948 #line 1369 "parse.y"
05949     {
05950                     /*%%%*/
05951                         (yyval.node) = NEW_FCALL((yyvsp[(1) - (1)].id), 0);
05952                         nd_set_line((yyval.node), tokline);
05953                     /*%
05954                     %*/
05955                     }
05956     break;
05957 
05958   case 62:
05959 
05960 /* Line 1806 of yacc.c  */
05961 #line 1379 "parse.y"
05962     {
05963                     /*%%%*/
05964                         (yyval.node) = (yyvsp[(1) - (2)].node);
05965                         (yyval.node)->nd_args = (yyvsp[(2) - (2)].node);
05966                     /*%
05967                         $$ = dispatch2(command, $1, $2);
05968                     %*/
05969                     }
05970     break;
05971 
05972   case 63:
05973 
05974 /* Line 1806 of yacc.c  */
05975 #line 1388 "parse.y"
05976     {
05977                     /*%%%*/
05978                         block_dup_check((yyvsp[(2) - (3)].node),(yyvsp[(3) - (3)].node));
05979                         (yyvsp[(1) - (3)].node)->nd_args = (yyvsp[(2) - (3)].node);
05980                         (yyvsp[(3) - (3)].node)->nd_iter = (yyvsp[(1) - (3)].node);
05981                         (yyval.node) = (yyvsp[(3) - (3)].node);
05982                         fixpos((yyval.node), (yyvsp[(1) - (3)].node));
05983                     /*%
05984                         $$ = dispatch2(command, $1, $2);
05985                         $$ = method_add_block($$, $3);
05986                     %*/
05987                     }
05988     break;
05989 
05990   case 64:
05991 
05992 /* Line 1806 of yacc.c  */
05993 #line 1401 "parse.y"
05994     {
05995                     /*%%%*/
05996                         (yyval.node) = NEW_CALL((yyvsp[(1) - (4)].node), (yyvsp[(3) - (4)].id), (yyvsp[(4) - (4)].node));
05997                         fixpos((yyval.node), (yyvsp[(1) - (4)].node));
05998                     /*%
05999                         $$ = dispatch4(command_call, $1, ripper_id2sym('.'), $3, $4);
06000                     %*/
06001                     }
06002     break;
06003 
06004   case 65:
06005 
06006 /* Line 1806 of yacc.c  */
06007 #line 1410 "parse.y"
06008     {
06009                     /*%%%*/
06010                         block_dup_check((yyvsp[(4) - (5)].node),(yyvsp[(5) - (5)].node));
06011                         (yyvsp[(5) - (5)].node)->nd_iter = NEW_CALL((yyvsp[(1) - (5)].node), (yyvsp[(3) - (5)].id), (yyvsp[(4) - (5)].node));
06012                         (yyval.node) = (yyvsp[(5) - (5)].node);
06013                         fixpos((yyval.node), (yyvsp[(1) - (5)].node));
06014                     /*%
06015                         $$ = dispatch4(command_call, $1, ripper_id2sym('.'), $3, $4);
06016                         $$ = method_add_block($$, $5);
06017                     %*/
06018                    }
06019     break;
06020 
06021   case 66:
06022 
06023 /* Line 1806 of yacc.c  */
06024 #line 1422 "parse.y"
06025     {
06026                     /*%%%*/
06027                         (yyval.node) = NEW_CALL((yyvsp[(1) - (4)].node), (yyvsp[(3) - (4)].id), (yyvsp[(4) - (4)].node));
06028                         fixpos((yyval.node), (yyvsp[(1) - (4)].node));
06029                     /*%
06030                         $$ = dispatch4(command_call, $1, ripper_intern("::"), $3, $4);
06031                     %*/
06032                     }
06033     break;
06034 
06035   case 67:
06036 
06037 /* Line 1806 of yacc.c  */
06038 #line 1431 "parse.y"
06039     {
06040                     /*%%%*/
06041                         block_dup_check((yyvsp[(4) - (5)].node),(yyvsp[(5) - (5)].node));
06042                         (yyvsp[(5) - (5)].node)->nd_iter = NEW_CALL((yyvsp[(1) - (5)].node), (yyvsp[(3) - (5)].id), (yyvsp[(4) - (5)].node));
06043                         (yyval.node) = (yyvsp[(5) - (5)].node);
06044                         fixpos((yyval.node), (yyvsp[(1) - (5)].node));
06045                     /*%
06046                         $$ = dispatch4(command_call, $1, ripper_intern("::"), $3, $4);
06047                         $$ = method_add_block($$, $5);
06048                     %*/
06049                    }
06050     break;
06051 
06052   case 68:
06053 
06054 /* Line 1806 of yacc.c  */
06055 #line 1443 "parse.y"
06056     {
06057                     /*%%%*/
06058                         (yyval.node) = NEW_SUPER((yyvsp[(2) - (2)].node));
06059                         fixpos((yyval.node), (yyvsp[(2) - (2)].node));
06060                     /*%
06061                         $$ = dispatch1(super, $2);
06062                     %*/
06063                     }
06064     break;
06065 
06066   case 69:
06067 
06068 /* Line 1806 of yacc.c  */
06069 #line 1452 "parse.y"
06070     {
06071                     /*%%%*/
06072                         (yyval.node) = new_yield((yyvsp[(2) - (2)].node));
06073                         fixpos((yyval.node), (yyvsp[(2) - (2)].node));
06074                     /*%
06075                         $$ = dispatch1(yield, $2);
06076                     %*/
06077                     }
06078     break;
06079 
06080   case 70:
06081 
06082 /* Line 1806 of yacc.c  */
06083 #line 1461 "parse.y"
06084     {
06085                     /*%%%*/
06086                         (yyval.node) = NEW_RETURN(ret_args((yyvsp[(2) - (2)].node)));
06087                     /*%
06088                         $$ = dispatch1(return, $2);
06089                     %*/
06090                     }
06091     break;
06092 
06093   case 71:
06094 
06095 /* Line 1806 of yacc.c  */
06096 #line 1469 "parse.y"
06097     {
06098                     /*%%%*/
06099                         (yyval.node) = NEW_BREAK(ret_args((yyvsp[(2) - (2)].node)));
06100                     /*%
06101                         $$ = dispatch1(break, $2);
06102                     %*/
06103                     }
06104     break;
06105 
06106   case 72:
06107 
06108 /* Line 1806 of yacc.c  */
06109 #line 1477 "parse.y"
06110     {
06111                     /*%%%*/
06112                         (yyval.node) = NEW_NEXT(ret_args((yyvsp[(2) - (2)].node)));
06113                     /*%
06114                         $$ = dispatch1(next, $2);
06115                     %*/
06116                     }
06117     break;
06118 
06119   case 74:
06120 
06121 /* Line 1806 of yacc.c  */
06122 #line 1488 "parse.y"
06123     {
06124                     /*%%%*/
06125                         (yyval.node) = (yyvsp[(2) - (3)].node);
06126                     /*%
06127                         $$ = dispatch1(mlhs_paren, $2);
06128                     %*/
06129                     }
06130     break;
06131 
06132   case 76:
06133 
06134 /* Line 1806 of yacc.c  */
06135 #line 1499 "parse.y"
06136     {
06137                     /*%%%*/
06138                         (yyval.node) = NEW_MASGN(NEW_LIST((yyvsp[(2) - (3)].node)), 0);
06139                     /*%
06140                         $$ = dispatch1(mlhs_paren, $2);
06141                     %*/
06142                     }
06143     break;
06144 
06145   case 77:
06146 
06147 /* Line 1806 of yacc.c  */
06148 #line 1509 "parse.y"
06149     {
06150                     /*%%%*/
06151                         (yyval.node) = NEW_MASGN((yyvsp[(1) - (1)].node), 0);
06152                     /*%
06153                         $$ = $1;
06154                     %*/
06155                     }
06156     break;
06157 
06158   case 78:
06159 
06160 /* Line 1806 of yacc.c  */
06161 #line 1517 "parse.y"
06162     {
06163                     /*%%%*/
06164                         (yyval.node) = NEW_MASGN(list_append((yyvsp[(1) - (2)].node),(yyvsp[(2) - (2)].node)), 0);
06165                     /*%
06166                         $$ = mlhs_add($1, $2);
06167                     %*/
06168                     }
06169     break;
06170 
06171   case 79:
06172 
06173 /* Line 1806 of yacc.c  */
06174 #line 1525 "parse.y"
06175     {
06176                     /*%%%*/
06177                         (yyval.node) = NEW_MASGN((yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));
06178                     /*%
06179                         $$ = mlhs_add_star($1, $3);
06180                     %*/
06181                     }
06182     break;
06183 
06184   case 80:
06185 
06186 /* Line 1806 of yacc.c  */
06187 #line 1533 "parse.y"
06188     {
06189                     /*%%%*/
06190                         (yyval.node) = NEW_MASGN((yyvsp[(1) - (5)].node), NEW_POSTARG((yyvsp[(3) - (5)].node),(yyvsp[(5) - (5)].node)));
06191                     /*%
06192                         $1 = mlhs_add_star($1, $3);
06193                         $$ = mlhs_add($1, $5);
06194                     %*/
06195                     }
06196     break;
06197 
06198   case 81:
06199 
06200 /* Line 1806 of yacc.c  */
06201 #line 1542 "parse.y"
06202     {
06203                     /*%%%*/
06204                         (yyval.node) = NEW_MASGN((yyvsp[(1) - (2)].node), -1);
06205                     /*%
06206                         $$ = mlhs_add_star($1, Qnil);
06207                     %*/
06208                     }
06209     break;
06210 
06211   case 82:
06212 
06213 /* Line 1806 of yacc.c  */
06214 #line 1550 "parse.y"
06215     {
06216                     /*%%%*/
06217                         (yyval.node) = NEW_MASGN((yyvsp[(1) - (4)].node), NEW_POSTARG(-1, (yyvsp[(4) - (4)].node)));
06218                     /*%
06219                         $1 = mlhs_add_star($1, Qnil);
06220                         $$ = mlhs_add($1, $4);
06221                     %*/
06222                     }
06223     break;
06224 
06225   case 83:
06226 
06227 /* Line 1806 of yacc.c  */
06228 #line 1559 "parse.y"
06229     {
06230                     /*%%%*/
06231                         (yyval.node) = NEW_MASGN(0, (yyvsp[(2) - (2)].node));
06232                     /*%
06233                         $$ = mlhs_add_star(mlhs_new(), $2);
06234                     %*/
06235                     }
06236     break;
06237 
06238   case 84:
06239 
06240 /* Line 1806 of yacc.c  */
06241 #line 1567 "parse.y"
06242     {
06243                     /*%%%*/
06244                         (yyval.node) = NEW_MASGN(0, NEW_POSTARG((yyvsp[(2) - (4)].node),(yyvsp[(4) - (4)].node)));
06245                     /*%
06246                         $2 = mlhs_add_star(mlhs_new(), $2);
06247                         $$ = mlhs_add($2, $4);
06248                     %*/
06249                     }
06250     break;
06251 
06252   case 85:
06253 
06254 /* Line 1806 of yacc.c  */
06255 #line 1576 "parse.y"
06256     {
06257                     /*%%%*/
06258                         (yyval.node) = NEW_MASGN(0, -1);
06259                     /*%
06260                         $$ = mlhs_add_star(mlhs_new(), Qnil);
06261                     %*/
06262                     }
06263     break;
06264 
06265   case 86:
06266 
06267 /* Line 1806 of yacc.c  */
06268 #line 1584 "parse.y"
06269     {
06270                     /*%%%*/
06271                         (yyval.node) = NEW_MASGN(0, NEW_POSTARG(-1, (yyvsp[(3) - (3)].node)));
06272                     /*%
06273                         $$ = mlhs_add_star(mlhs_new(), Qnil);
06274                         $$ = mlhs_add($$, $3);
06275                     %*/
06276                     }
06277     break;
06278 
06279   case 88:
06280 
06281 /* Line 1806 of yacc.c  */
06282 #line 1596 "parse.y"
06283     {
06284                     /*%%%*/
06285                         (yyval.node) = (yyvsp[(2) - (3)].node);
06286                     /*%
06287                         $$ = dispatch1(mlhs_paren, $2);
06288                     %*/
06289                     }
06290     break;
06291 
06292   case 89:
06293 
06294 /* Line 1806 of yacc.c  */
06295 #line 1606 "parse.y"
06296     {
06297                     /*%%%*/
06298                         (yyval.node) = NEW_LIST((yyvsp[(1) - (2)].node));
06299                     /*%
06300                         $$ = mlhs_add(mlhs_new(), $1);
06301                     %*/
06302                     }
06303     break;
06304 
06305   case 90:
06306 
06307 /* Line 1806 of yacc.c  */
06308 #line 1614 "parse.y"
06309     {
06310                     /*%%%*/
06311                         (yyval.node) = list_append((yyvsp[(1) - (3)].node), (yyvsp[(2) - (3)].node));
06312                     /*%
06313                         $$ = mlhs_add($1, $2);
06314                     %*/
06315                     }
06316     break;
06317 
06318   case 91:
06319 
06320 /* Line 1806 of yacc.c  */
06321 #line 1624 "parse.y"
06322     {
06323                     /*%%%*/
06324                         (yyval.node) = NEW_LIST((yyvsp[(1) - (1)].node));
06325                     /*%
06326                         $$ = mlhs_add(mlhs_new(), $1);
06327                     %*/
06328                     }
06329     break;
06330 
06331   case 92:
06332 
06333 /* Line 1806 of yacc.c  */
06334 #line 1632 "parse.y"
06335     {
06336                     /*%%%*/
06337                         (yyval.node) = list_append((yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));
06338                     /*%
06339                         $$ = mlhs_add($1, $3);
06340                     %*/
06341                     }
06342     break;
06343 
06344   case 93:
06345 
06346 /* Line 1806 of yacc.c  */
06347 #line 1642 "parse.y"
06348     {
06349                         (yyval.node) = assignable((yyvsp[(1) - (1)].id), 0);
06350                     }
06351     break;
06352 
06353   case 94:
06354 
06355 /* Line 1806 of yacc.c  */
06356 #line 1646 "parse.y"
06357     {
06358                         (yyval.node) = assignable((yyvsp[(1) - (1)].id), 0);
06359                     }
06360     break;
06361 
06362   case 95:
06363 
06364 /* Line 1806 of yacc.c  */
06365 #line 1650 "parse.y"
06366     {
06367                     /*%%%*/
06368                         (yyval.node) = aryset((yyvsp[(1) - (4)].node), (yyvsp[(3) - (4)].node));
06369                     /*%
06370                         $$ = dispatch2(aref_field, $1, escape_Qundef($3));
06371                     %*/
06372                     }
06373     break;
06374 
06375   case 96:
06376 
06377 /* Line 1806 of yacc.c  */
06378 #line 1658 "parse.y"
06379     {
06380                     /*%%%*/
06381                         (yyval.node) = attrset((yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].id));
06382                     /*%
06383                         $$ = dispatch3(field, $1, ripper_id2sym('.'), $3);
06384                     %*/
06385                     }
06386     break;
06387 
06388   case 97:
06389 
06390 /* Line 1806 of yacc.c  */
06391 #line 1666 "parse.y"
06392     {
06393                     /*%%%*/
06394                         (yyval.node) = attrset((yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].id));
06395                     /*%
06396                         $$ = dispatch2(const_path_field, $1, $3);
06397                     %*/
06398                     }
06399     break;
06400 
06401   case 98:
06402 
06403 /* Line 1806 of yacc.c  */
06404 #line 1674 "parse.y"
06405     {
06406                     /*%%%*/
06407                         (yyval.node) = attrset((yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].id));
06408                     /*%
06409                         $$ = dispatch3(field, $1, ripper_id2sym('.'), $3);
06410                     %*/
06411                     }
06412     break;
06413 
06414   case 99:
06415 
06416 /* Line 1806 of yacc.c  */
06417 #line 1682 "parse.y"
06418     {
06419                     /*%%%*/
06420                         if (in_def || in_single)
06421                             yyerror("dynamic constant assignment");
06422                         (yyval.node) = NEW_CDECL(0, 0, NEW_COLON2((yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].id)));
06423                     /*%
06424                         if (in_def || in_single)
06425                             yyerror("dynamic constant assignment");
06426                         $$ = dispatch2(const_path_field, $1, $3);
06427                     %*/
06428                     }
06429     break;
06430 
06431   case 100:
06432 
06433 /* Line 1806 of yacc.c  */
06434 #line 1694 "parse.y"
06435     {
06436                     /*%%%*/
06437                         if (in_def || in_single)
06438                             yyerror("dynamic constant assignment");
06439                         (yyval.node) = NEW_CDECL(0, 0, NEW_COLON3((yyvsp[(2) - (2)].id)));
06440                     /*%
06441                         $$ = dispatch1(top_const_field, $2);
06442                     %*/
06443                     }
06444     break;
06445 
06446   case 101:
06447 
06448 /* Line 1806 of yacc.c  */
06449 #line 1704 "parse.y"
06450     {
06451                     /*%%%*/
06452                         rb_backref_error((yyvsp[(1) - (1)].node));
06453                         (yyval.node) = NEW_BEGIN(0);
06454                     /*%
06455                         $$ = dispatch1(var_field, $1);
06456                         $$ = dispatch1(assign_error, $$);
06457                     %*/
06458                     }
06459     break;
06460 
06461   case 102:
06462 
06463 /* Line 1806 of yacc.c  */
06464 #line 1716 "parse.y"
06465     {
06466                         (yyval.node) = assignable((yyvsp[(1) - (1)].id), 0);
06467                     /*%%%*/
06468                         if (!(yyval.node)) (yyval.node) = NEW_BEGIN(0);
06469                     /*%
06470                         $$ = dispatch1(var_field, $$);
06471                     %*/
06472                     }
06473     break;
06474 
06475   case 103:
06476 
06477 /* Line 1806 of yacc.c  */
06478 #line 1725 "parse.y"
06479     {
06480                         (yyval.node) = assignable((yyvsp[(1) - (1)].id), 0);
06481                     /*%%%*/
06482                         if (!(yyval.node)) (yyval.node) = NEW_BEGIN(0);
06483                     /*%
06484                         $$ = dispatch1(var_field, $$);
06485                     %*/
06486                     }
06487     break;
06488 
06489   case 104:
06490 
06491 /* Line 1806 of yacc.c  */
06492 #line 1734 "parse.y"
06493     {
06494                     /*%%%*/
06495                         (yyval.node) = aryset((yyvsp[(1) - (4)].node), (yyvsp[(3) - (4)].node));
06496                     /*%
06497                         $$ = dispatch2(aref_field, $1, escape_Qundef($3));
06498                     %*/
06499                     }
06500     break;
06501 
06502   case 105:
06503 
06504 /* Line 1806 of yacc.c  */
06505 #line 1742 "parse.y"
06506     {
06507                     /*%%%*/
06508                         (yyval.node) = attrset((yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].id));
06509                     /*%
06510                         $$ = dispatch3(field, $1, ripper_id2sym('.'), $3);
06511                     %*/
06512                     }
06513     break;
06514 
06515   case 106:
06516 
06517 /* Line 1806 of yacc.c  */
06518 #line 1750 "parse.y"
06519     {
06520                     /*%%%*/
06521                         (yyval.node) = attrset((yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].id));
06522                     /*%
06523                         $$ = dispatch3(field, $1, ripper_intern("::"), $3);
06524                     %*/
06525                     }
06526     break;
06527 
06528   case 107:
06529 
06530 /* Line 1806 of yacc.c  */
06531 #line 1758 "parse.y"
06532     {
06533                     /*%%%*/
06534                         (yyval.node) = attrset((yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].id));
06535                     /*%
06536                         $$ = dispatch3(field, $1, ripper_id2sym('.'), $3);
06537                     %*/
06538                     }
06539     break;
06540 
06541   case 108:
06542 
06543 /* Line 1806 of yacc.c  */
06544 #line 1766 "parse.y"
06545     {
06546                     /*%%%*/
06547                         if (in_def || in_single)
06548                             yyerror("dynamic constant assignment");
06549                         (yyval.node) = NEW_CDECL(0, 0, NEW_COLON2((yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].id)));
06550                     /*%
06551                         $$ = dispatch2(const_path_field, $1, $3);
06552                         if (in_def || in_single) {
06553                             $$ = dispatch1(assign_error, $$);
06554                         }
06555                     %*/
06556                     }
06557     break;
06558 
06559   case 109:
06560 
06561 /* Line 1806 of yacc.c  */
06562 #line 1779 "parse.y"
06563     {
06564                     /*%%%*/
06565                         if (in_def || in_single)
06566                             yyerror("dynamic constant assignment");
06567                         (yyval.node) = NEW_CDECL(0, 0, NEW_COLON3((yyvsp[(2) - (2)].id)));
06568                     /*%
06569                         $$ = dispatch1(top_const_field, $2);
06570                         if (in_def || in_single) {
06571                             $$ = dispatch1(assign_error, $$);
06572                         }
06573                     %*/
06574                     }
06575     break;
06576 
06577   case 110:
06578 
06579 /* Line 1806 of yacc.c  */
06580 #line 1792 "parse.y"
06581     {
06582                     /*%%%*/
06583                         rb_backref_error((yyvsp[(1) - (1)].node));
06584                         (yyval.node) = NEW_BEGIN(0);
06585                     /*%
06586                         $$ = dispatch1(assign_error, $1);
06587                     %*/
06588                     }
06589     break;
06590 
06591   case 111:
06592 
06593 /* Line 1806 of yacc.c  */
06594 #line 1803 "parse.y"
06595     {
06596                     /*%%%*/
06597                         yyerror("class/module name must be CONSTANT");
06598                     /*%
06599                         $$ = dispatch1(class_name_error, $1);
06600                     %*/
06601                     }
06602     break;
06603 
06604   case 113:
06605 
06606 /* Line 1806 of yacc.c  */
06607 #line 1814 "parse.y"
06608     {
06609                     /*%%%*/
06610                         (yyval.node) = NEW_COLON3((yyvsp[(2) - (2)].id));
06611                     /*%
06612                         $$ = dispatch1(top_const_ref, $2);
06613                     %*/
06614                     }
06615     break;
06616 
06617   case 114:
06618 
06619 /* Line 1806 of yacc.c  */
06620 #line 1822 "parse.y"
06621     {
06622                     /*%%%*/
06623                         (yyval.node) = NEW_COLON2(0, (yyval.node));
06624                     /*%
06625                         $$ = dispatch1(const_ref, $1);
06626                     %*/
06627                     }
06628     break;
06629 
06630   case 115:
06631 
06632 /* Line 1806 of yacc.c  */
06633 #line 1830 "parse.y"
06634     {
06635                     /*%%%*/
06636                         (yyval.node) = NEW_COLON2((yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].id));
06637                     /*%
06638                         $$ = dispatch2(const_path_ref, $1, $3);
06639                     %*/
06640                     }
06641     break;
06642 
06643   case 119:
06644 
06645 /* Line 1806 of yacc.c  */
06646 #line 1843 "parse.y"
06647     {
06648                         lex_state = EXPR_ENDFN;
06649                         (yyval.id) = (yyvsp[(1) - (1)].id);
06650                     }
06651     break;
06652 
06653   case 120:
06654 
06655 /* Line 1806 of yacc.c  */
06656 #line 1848 "parse.y"
06657     {
06658                         lex_state = EXPR_ENDFN;
06659                     /*%%%*/
06660                         (yyval.id) = (yyvsp[(1) - (1)].id);
06661                     /*%
06662                         $$ = $1;
06663                     %*/
06664                     }
06665     break;
06666 
06667   case 123:
06668 
06669 /* Line 1806 of yacc.c  */
06670 #line 1863 "parse.y"
06671     {
06672                     /*%%%*/
06673                         (yyval.node) = NEW_LIT(ID2SYM((yyvsp[(1) - (1)].id)));
06674                     /*%
06675                         $$ = dispatch1(symbol_literal, $1);
06676                     %*/
06677                     }
06678     break;
06679 
06680   case 125:
06681 
06682 /* Line 1806 of yacc.c  */
06683 #line 1874 "parse.y"
06684     {
06685                     /*%%%*/
06686                         (yyval.node) = NEW_UNDEF((yyvsp[(1) - (1)].node));
06687                     /*%
06688                         $$ = rb_ary_new3(1, $1);
06689                     %*/
06690                     }
06691     break;
06692 
06693   case 126:
06694 
06695 /* Line 1806 of yacc.c  */
06696 #line 1881 "parse.y"
06697     {lex_state = EXPR_FNAME;}
06698     break;
06699 
06700   case 127:
06701 
06702 /* Line 1806 of yacc.c  */
06703 #line 1882 "parse.y"
06704     {
06705                     /*%%%*/
06706                         (yyval.node) = block_append((yyvsp[(1) - (4)].node), NEW_UNDEF((yyvsp[(4) - (4)].node)));
06707                     /*%
06708                         rb_ary_push($1, $4);
06709                     %*/
06710                     }
06711     break;
06712 
06713   case 128:
06714 
06715 /* Line 1806 of yacc.c  */
06716 #line 1891 "parse.y"
06717     { ifndef_ripper((yyval.id) = '|'); }
06718     break;
06719 
06720   case 129:
06721 
06722 /* Line 1806 of yacc.c  */
06723 #line 1892 "parse.y"
06724     { ifndef_ripper((yyval.id) = '^'); }
06725     break;
06726 
06727   case 130:
06728 
06729 /* Line 1806 of yacc.c  */
06730 #line 1893 "parse.y"
06731     { ifndef_ripper((yyval.id) = '&'); }
06732     break;
06733 
06734   case 131:
06735 
06736 /* Line 1806 of yacc.c  */
06737 #line 1894 "parse.y"
06738     { ifndef_ripper((yyval.id) = tCMP); }
06739     break;
06740 
06741   case 132:
06742 
06743 /* Line 1806 of yacc.c  */
06744 #line 1895 "parse.y"
06745     { ifndef_ripper((yyval.id) = tEQ); }
06746     break;
06747 
06748   case 133:
06749 
06750 /* Line 1806 of yacc.c  */
06751 #line 1896 "parse.y"
06752     { ifndef_ripper((yyval.id) = tEQQ); }
06753     break;
06754 
06755   case 134:
06756 
06757 /* Line 1806 of yacc.c  */
06758 #line 1897 "parse.y"
06759     { ifndef_ripper((yyval.id) = tMATCH); }
06760     break;
06761 
06762   case 135:
06763 
06764 /* Line 1806 of yacc.c  */
06765 #line 1898 "parse.y"
06766     { ifndef_ripper((yyval.id) = tNMATCH); }
06767     break;
06768 
06769   case 136:
06770 
06771 /* Line 1806 of yacc.c  */
06772 #line 1899 "parse.y"
06773     { ifndef_ripper((yyval.id) = '>'); }
06774     break;
06775 
06776   case 137:
06777 
06778 /* Line 1806 of yacc.c  */
06779 #line 1900 "parse.y"
06780     { ifndef_ripper((yyval.id) = tGEQ); }
06781     break;
06782 
06783   case 138:
06784 
06785 /* Line 1806 of yacc.c  */
06786 #line 1901 "parse.y"
06787     { ifndef_ripper((yyval.id) = '<'); }
06788     break;
06789 
06790   case 139:
06791 
06792 /* Line 1806 of yacc.c  */
06793 #line 1902 "parse.y"
06794     { ifndef_ripper((yyval.id) = tLEQ); }
06795     break;
06796 
06797   case 140:
06798 
06799 /* Line 1806 of yacc.c  */
06800 #line 1903 "parse.y"
06801     { ifndef_ripper((yyval.id) = tNEQ); }
06802     break;
06803 
06804   case 141:
06805 
06806 /* Line 1806 of yacc.c  */
06807 #line 1904 "parse.y"
06808     { ifndef_ripper((yyval.id) = tLSHFT); }
06809     break;
06810 
06811   case 142:
06812 
06813 /* Line 1806 of yacc.c  */
06814 #line 1905 "parse.y"
06815     { ifndef_ripper((yyval.id) = tRSHFT); }
06816     break;
06817 
06818   case 143:
06819 
06820 /* Line 1806 of yacc.c  */
06821 #line 1906 "parse.y"
06822     { ifndef_ripper((yyval.id) = '+'); }
06823     break;
06824 
06825   case 144:
06826 
06827 /* Line 1806 of yacc.c  */
06828 #line 1907 "parse.y"
06829     { ifndef_ripper((yyval.id) = '-'); }
06830     break;
06831 
06832   case 145:
06833 
06834 /* Line 1806 of yacc.c  */
06835 #line 1908 "parse.y"
06836     { ifndef_ripper((yyval.id) = '*'); }
06837     break;
06838 
06839   case 146:
06840 
06841 /* Line 1806 of yacc.c  */
06842 #line 1909 "parse.y"
06843     { ifndef_ripper((yyval.id) = '*'); }
06844     break;
06845 
06846   case 147:
06847 
06848 /* Line 1806 of yacc.c  */
06849 #line 1910 "parse.y"
06850     { ifndef_ripper((yyval.id) = '/'); }
06851     break;
06852 
06853   case 148:
06854 
06855 /* Line 1806 of yacc.c  */
06856 #line 1911 "parse.y"
06857     { ifndef_ripper((yyval.id) = '%'); }
06858     break;
06859 
06860   case 149:
06861 
06862 /* Line 1806 of yacc.c  */
06863 #line 1912 "parse.y"
06864     { ifndef_ripper((yyval.id) = tPOW); }
06865     break;
06866 
06867   case 150:
06868 
06869 /* Line 1806 of yacc.c  */
06870 #line 1913 "parse.y"
06871     { ifndef_ripper((yyval.id) = tDSTAR); }
06872     break;
06873 
06874   case 151:
06875 
06876 /* Line 1806 of yacc.c  */
06877 #line 1914 "parse.y"
06878     { ifndef_ripper((yyval.id) = '!'); }
06879     break;
06880 
06881   case 152:
06882 
06883 /* Line 1806 of yacc.c  */
06884 #line 1915 "parse.y"
06885     { ifndef_ripper((yyval.id) = '~'); }
06886     break;
06887 
06888   case 153:
06889 
06890 /* Line 1806 of yacc.c  */
06891 #line 1916 "parse.y"
06892     { ifndef_ripper((yyval.id) = tUPLUS); }
06893     break;
06894 
06895   case 154:
06896 
06897 /* Line 1806 of yacc.c  */
06898 #line 1917 "parse.y"
06899     { ifndef_ripper((yyval.id) = tUMINUS); }
06900     break;
06901 
06902   case 155:
06903 
06904 /* Line 1806 of yacc.c  */
06905 #line 1918 "parse.y"
06906     { ifndef_ripper((yyval.id) = tAREF); }
06907     break;
06908 
06909   case 156:
06910 
06911 /* Line 1806 of yacc.c  */
06912 #line 1919 "parse.y"
06913     { ifndef_ripper((yyval.id) = tASET); }
06914     break;
06915 
06916   case 157:
06917 
06918 /* Line 1806 of yacc.c  */
06919 #line 1920 "parse.y"
06920     { ifndef_ripper((yyval.id) = '`'); }
06921     break;
06922 
06923   case 199:
06924 
06925 /* Line 1806 of yacc.c  */
06926 #line 1938 "parse.y"
06927     {
06928                     /*%%%*/
06929                         value_expr((yyvsp[(3) - (3)].node));
06930                         (yyval.node) = node_assign((yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));
06931                     /*%
06932                         $$ = dispatch2(assign, $1, $3);
06933                     %*/
06934                     }
06935     break;
06936 
06937   case 200:
06938 
06939 /* Line 1806 of yacc.c  */
06940 #line 1947 "parse.y"
06941     {
06942                     /*%%%*/
06943                         value_expr((yyvsp[(3) - (5)].node));
06944                         (yyvsp[(3) - (5)].node) = NEW_RESCUE((yyvsp[(3) - (5)].node), NEW_RESBODY(0,(yyvsp[(5) - (5)].node),0), 0);
06945                         (yyval.node) = node_assign((yyvsp[(1) - (5)].node), (yyvsp[(3) - (5)].node));
06946                     /*%
06947                         $$ = dispatch2(assign, $1, dispatch2(rescue_mod, $3, $5));
06948                     %*/
06949                     }
06950     break;
06951 
06952   case 201:
06953 
06954 /* Line 1806 of yacc.c  */
06955 #line 1957 "parse.y"
06956     {
06957                         value_expr((yyvsp[(3) - (3)].node));
06958                         (yyval.node) = new_op_assign((yyvsp[(1) - (3)].node), (yyvsp[(2) - (3)].id), (yyvsp[(3) - (3)].node));
06959                     }
06960     break;
06961 
06962   case 202:
06963 
06964 /* Line 1806 of yacc.c  */
06965 #line 1962 "parse.y"
06966     {
06967                     /*%%%*/
06968                         value_expr((yyvsp[(3) - (5)].node));
06969                         (yyvsp[(3) - (5)].node) = NEW_RESCUE((yyvsp[(3) - (5)].node), NEW_RESBODY(0,(yyvsp[(5) - (5)].node),0), 0);
06970                     /*%
06971                         $3 = dispatch2(rescue_mod, $3, $5);
06972                     %*/
06973                         (yyval.node) = new_op_assign((yyvsp[(1) - (5)].node), (yyvsp[(2) - (5)].id), (yyvsp[(3) - (5)].node));
06974                     }
06975     break;
06976 
06977   case 203:
06978 
06979 /* Line 1806 of yacc.c  */
06980 #line 1972 "parse.y"
06981     {
06982                     /*%%%*/
06983                         NODE *args;
06984 
06985                         value_expr((yyvsp[(6) - (6)].node));
06986                         if (!(yyvsp[(3) - (6)].node)) (yyvsp[(3) - (6)].node) = NEW_ZARRAY();
06987                         if (nd_type((yyvsp[(3) - (6)].node)) == NODE_BLOCK_PASS) {
06988                             args = NEW_ARGSCAT((yyvsp[(3) - (6)].node), (yyvsp[(6) - (6)].node));
06989                         }
06990                         else {
06991                             args = arg_concat((yyvsp[(3) - (6)].node), (yyvsp[(6) - (6)].node));
06992                         }
06993                         if ((yyvsp[(5) - (6)].id) == tOROP) {
06994                             (yyvsp[(5) - (6)].id) = 0;
06995                         }
06996                         else if ((yyvsp[(5) - (6)].id) == tANDOP) {
06997                             (yyvsp[(5) - (6)].id) = 1;
06998                         }
06999                         (yyval.node) = NEW_OP_ASGN1((yyvsp[(1) - (6)].node), (yyvsp[(5) - (6)].id), args);
07000                         fixpos((yyval.node), (yyvsp[(1) - (6)].node));
07001                     /*%
07002                         $1 = dispatch2(aref_field, $1, escape_Qundef($3));
07003                         $$ = dispatch3(opassign, $1, $5, $6);
07004                     %*/
07005                     }
07006     break;
07007 
07008   case 204:
07009 
07010 /* Line 1806 of yacc.c  */
07011 #line 1998 "parse.y"
07012     {
07013                         value_expr((yyvsp[(5) - (5)].node));
07014                         (yyval.node) = new_attr_op_assign((yyvsp[(1) - (5)].node), ripper_id2sym('.'), (yyvsp[(3) - (5)].id), (yyvsp[(4) - (5)].id), (yyvsp[(5) - (5)].node));
07015                     }
07016     break;
07017 
07018   case 205:
07019 
07020 /* Line 1806 of yacc.c  */
07021 #line 2003 "parse.y"
07022     {
07023                         value_expr((yyvsp[(5) - (5)].node));
07024                         (yyval.node) = new_attr_op_assign((yyvsp[(1) - (5)].node), ripper_id2sym('.'), (yyvsp[(3) - (5)].id), (yyvsp[(4) - (5)].id), (yyvsp[(5) - (5)].node));
07025                     }
07026     break;
07027 
07028   case 206:
07029 
07030 /* Line 1806 of yacc.c  */
07031 #line 2008 "parse.y"
07032     {
07033                         value_expr((yyvsp[(5) - (5)].node));
07034                         (yyval.node) = new_attr_op_assign((yyvsp[(1) - (5)].node), ripper_intern("::"), (yyvsp[(3) - (5)].id), (yyvsp[(4) - (5)].id), (yyvsp[(5) - (5)].node));
07035                     }
07036     break;
07037 
07038   case 207:
07039 
07040 /* Line 1806 of yacc.c  */
07041 #line 2013 "parse.y"
07042     {
07043                     /*%%%*/
07044                         (yyval.node) = NEW_COLON2((yyvsp[(1) - (5)].node), (yyvsp[(3) - (5)].id));
07045                         (yyval.node) = new_const_op_assign((yyval.node), (yyvsp[(4) - (5)].id), (yyvsp[(5) - (5)].node));
07046                     /*%
07047                         $$ = dispatch2(const_path_field, $1, $3);
07048                         $$ = dispatch3(opassign, $$, $4, $5);
07049                     %*/
07050                     }
07051     break;
07052 
07053   case 208:
07054 
07055 /* Line 1806 of yacc.c  */
07056 #line 2023 "parse.y"
07057     {
07058                     /*%%%*/
07059                         (yyval.node) = NEW_COLON3((yyvsp[(2) - (4)].id));
07060                         (yyval.node) = new_const_op_assign((yyval.node), (yyvsp[(3) - (4)].id), (yyvsp[(4) - (4)].node));
07061                     /*%
07062                         $$ = dispatch1(top_const_field, $2);
07063                         $$ = dispatch3(opassign, $$, $3, $4);
07064                     %*/
07065                     }
07066     break;
07067 
07068   case 209:
07069 
07070 /* Line 1806 of yacc.c  */
07071 #line 2033 "parse.y"
07072     {
07073                     /*%%%*/
07074                         rb_backref_error((yyvsp[(1) - (3)].node));
07075                         (yyval.node) = NEW_BEGIN(0);
07076                     /*%
07077                         $$ = dispatch1(var_field, $1);
07078                         $$ = dispatch3(opassign, $$, $2, $3);
07079                         $$ = dispatch1(assign_error, $$);
07080                     %*/
07081                     }
07082     break;
07083 
07084   case 210:
07085 
07086 /* Line 1806 of yacc.c  */
07087 #line 2044 "parse.y"
07088     {
07089                     /*%%%*/
07090                         value_expr((yyvsp[(1) - (3)].node));
07091                         value_expr((yyvsp[(3) - (3)].node));
07092                         (yyval.node) = NEW_DOT2((yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));
07093                         if (nd_type((yyvsp[(1) - (3)].node)) == NODE_LIT && FIXNUM_P((yyvsp[(1) - (3)].node)->nd_lit) &&
07094                             nd_type((yyvsp[(3) - (3)].node)) == NODE_LIT && FIXNUM_P((yyvsp[(3) - (3)].node)->nd_lit)) {
07095                             deferred_nodes = list_append(deferred_nodes, (yyval.node));
07096                         }
07097                     /*%
07098                         $$ = dispatch2(dot2, $1, $3);
07099                     %*/
07100                     }
07101     break;
07102 
07103   case 211:
07104 
07105 /* Line 1806 of yacc.c  */
07106 #line 2058 "parse.y"
07107     {
07108                     /*%%%*/
07109                         value_expr((yyvsp[(1) - (3)].node));
07110                         value_expr((yyvsp[(3) - (3)].node));
07111                         (yyval.node) = NEW_DOT3((yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));
07112                         if (nd_type((yyvsp[(1) - (3)].node)) == NODE_LIT && FIXNUM_P((yyvsp[(1) - (3)].node)->nd_lit) &&
07113                             nd_type((yyvsp[(3) - (3)].node)) == NODE_LIT && FIXNUM_P((yyvsp[(3) - (3)].node)->nd_lit)) {
07114                             deferred_nodes = list_append(deferred_nodes, (yyval.node));
07115                         }
07116                     /*%
07117                         $$ = dispatch2(dot3, $1, $3);
07118                     %*/
07119                     }
07120     break;
07121 
07122   case 212:
07123 
07124 /* Line 1806 of yacc.c  */
07125 #line 2072 "parse.y"
07126     {
07127                     /*%%%*/
07128                         (yyval.node) = call_bin_op((yyvsp[(1) - (3)].node), '+', (yyvsp[(3) - (3)].node));
07129                     /*%
07130                         $$ = dispatch3(binary, $1, ID2SYM('+'), $3);
07131                     %*/
07132                     }
07133     break;
07134 
07135   case 213:
07136 
07137 /* Line 1806 of yacc.c  */
07138 #line 2080 "parse.y"
07139     {
07140                     /*%%%*/
07141                         (yyval.node) = call_bin_op((yyvsp[(1) - (3)].node), '-', (yyvsp[(3) - (3)].node));
07142                     /*%
07143                         $$ = dispatch3(binary, $1, ID2SYM('-'), $3);
07144                     %*/
07145                     }
07146     break;
07147 
07148   case 214:
07149 
07150 /* Line 1806 of yacc.c  */
07151 #line 2088 "parse.y"
07152     {
07153                     /*%%%*/
07154                         (yyval.node) = call_bin_op((yyvsp[(1) - (3)].node), '*', (yyvsp[(3) - (3)].node));
07155                     /*%
07156                         $$ = dispatch3(binary, $1, ID2SYM('*'), $3);
07157                     %*/
07158                     }
07159     break;
07160 
07161   case 215:
07162 
07163 /* Line 1806 of yacc.c  */
07164 #line 2096 "parse.y"
07165     {
07166                     /*%%%*/
07167                         (yyval.node) = call_bin_op((yyvsp[(1) - (3)].node), '/', (yyvsp[(3) - (3)].node));
07168                     /*%
07169                         $$ = dispatch3(binary, $1, ID2SYM('/'), $3);
07170                     %*/
07171                     }
07172     break;
07173 
07174   case 216:
07175 
07176 /* Line 1806 of yacc.c  */
07177 #line 2104 "parse.y"
07178     {
07179                     /*%%%*/
07180                         (yyval.node) = call_bin_op((yyvsp[(1) - (3)].node), '%', (yyvsp[(3) - (3)].node));
07181                     /*%
07182                         $$ = dispatch3(binary, $1, ID2SYM('%'), $3);
07183                     %*/
07184                     }
07185     break;
07186 
07187   case 217:
07188 
07189 /* Line 1806 of yacc.c  */
07190 #line 2112 "parse.y"
07191     {
07192                     /*%%%*/
07193                         (yyval.node) = call_bin_op((yyvsp[(1) - (3)].node), tPOW, (yyvsp[(3) - (3)].node));
07194                     /*%
07195                         $$ = dispatch3(binary, $1, ripper_intern("**"), $3);
07196                     %*/
07197                     }
07198     break;
07199 
07200   case 218:
07201 
07202 /* Line 1806 of yacc.c  */
07203 #line 2120 "parse.y"
07204     {
07205                     /*%%%*/
07206                         (yyval.node) = NEW_CALL(call_bin_op((yyvsp[(2) - (4)].node), tPOW, (yyvsp[(4) - (4)].node)), tUMINUS, 0);
07207                     /*%
07208                         $$ = dispatch3(binary, $2, ripper_intern("**"), $4);
07209                         $$ = dispatch2(unary, ripper_intern("-@"), $$);
07210                     %*/
07211                     }
07212     break;
07213 
07214   case 219:
07215 
07216 /* Line 1806 of yacc.c  */
07217 #line 2129 "parse.y"
07218     {
07219                     /*%%%*/
07220                         (yyval.node) = NEW_CALL(call_bin_op((yyvsp[(2) - (4)].node), tPOW, (yyvsp[(4) - (4)].node)), tUMINUS, 0);
07221                     /*%
07222                         $$ = dispatch3(binary, $2, ripper_intern("**"), $4);
07223                         $$ = dispatch2(unary, ripper_intern("-@"), $$);
07224                     %*/
07225                     }
07226     break;
07227 
07228   case 220:
07229 
07230 /* Line 1806 of yacc.c  */
07231 #line 2138 "parse.y"
07232     {
07233                     /*%%%*/
07234                         (yyval.node) = call_uni_op((yyvsp[(2) - (2)].node), tUPLUS);
07235                     /*%
07236                         $$ = dispatch2(unary, ripper_intern("+@"), $2);
07237                     %*/
07238                     }
07239     break;
07240 
07241   case 221:
07242 
07243 /* Line 1806 of yacc.c  */
07244 #line 2146 "parse.y"
07245     {
07246                     /*%%%*/
07247                         (yyval.node) = call_uni_op((yyvsp[(2) - (2)].node), tUMINUS);
07248                     /*%
07249                         $$ = dispatch2(unary, ripper_intern("-@"), $2);
07250                     %*/
07251                     }
07252     break;
07253 
07254   case 222:
07255 
07256 /* Line 1806 of yacc.c  */
07257 #line 2154 "parse.y"
07258     {
07259                     /*%%%*/
07260                         (yyval.node) = call_bin_op((yyvsp[(1) - (3)].node), '|', (yyvsp[(3) - (3)].node));
07261                     /*%
07262                         $$ = dispatch3(binary, $1, ID2SYM('|'), $3);
07263                     %*/
07264                     }
07265     break;
07266 
07267   case 223:
07268 
07269 /* Line 1806 of yacc.c  */
07270 #line 2162 "parse.y"
07271     {
07272                     /*%%%*/
07273                         (yyval.node) = call_bin_op((yyvsp[(1) - (3)].node), '^', (yyvsp[(3) - (3)].node));
07274                     /*%
07275                         $$ = dispatch3(binary, $1, ID2SYM('^'), $3);
07276                     %*/
07277                     }
07278     break;
07279 
07280   case 224:
07281 
07282 /* Line 1806 of yacc.c  */
07283 #line 2170 "parse.y"
07284     {
07285                     /*%%%*/
07286                         (yyval.node) = call_bin_op((yyvsp[(1) - (3)].node), '&', (yyvsp[(3) - (3)].node));
07287                     /*%
07288                         $$ = dispatch3(binary, $1, ID2SYM('&'), $3);
07289                     %*/
07290                     }
07291     break;
07292 
07293   case 225:
07294 
07295 /* Line 1806 of yacc.c  */
07296 #line 2178 "parse.y"
07297     {
07298                     /*%%%*/
07299                         (yyval.node) = call_bin_op((yyvsp[(1) - (3)].node), tCMP, (yyvsp[(3) - (3)].node));
07300                     /*%
07301                         $$ = dispatch3(binary, $1, ripper_intern("<=>"), $3);
07302                     %*/
07303                     }
07304     break;
07305 
07306   case 226:
07307 
07308 /* Line 1806 of yacc.c  */
07309 #line 2186 "parse.y"
07310     {
07311                     /*%%%*/
07312                         (yyval.node) = call_bin_op((yyvsp[(1) - (3)].node), '>', (yyvsp[(3) - (3)].node));
07313                     /*%
07314                         $$ = dispatch3(binary, $1, ID2SYM('>'), $3);
07315                     %*/
07316                     }
07317     break;
07318 
07319   case 227:
07320 
07321 /* Line 1806 of yacc.c  */
07322 #line 2194 "parse.y"
07323     {
07324                     /*%%%*/
07325                         (yyval.node) = call_bin_op((yyvsp[(1) - (3)].node), tGEQ, (yyvsp[(3) - (3)].node));
07326                     /*%
07327                         $$ = dispatch3(binary, $1, ripper_intern(">="), $3);
07328                     %*/
07329                     }
07330     break;
07331 
07332   case 228:
07333 
07334 /* Line 1806 of yacc.c  */
07335 #line 2202 "parse.y"
07336     {
07337                     /*%%%*/
07338                         (yyval.node) = call_bin_op((yyvsp[(1) - (3)].node), '<', (yyvsp[(3) - (3)].node));
07339                     /*%
07340                         $$ = dispatch3(binary, $1, ID2SYM('<'), $3);
07341                     %*/
07342                     }
07343     break;
07344 
07345   case 229:
07346 
07347 /* Line 1806 of yacc.c  */
07348 #line 2210 "parse.y"
07349     {
07350                     /*%%%*/
07351                         (yyval.node) = call_bin_op((yyvsp[(1) - (3)].node), tLEQ, (yyvsp[(3) - (3)].node));
07352                     /*%
07353                         $$ = dispatch3(binary, $1, ripper_intern("<="), $3);
07354                     %*/
07355                     }
07356     break;
07357 
07358   case 230:
07359 
07360 /* Line 1806 of yacc.c  */
07361 #line 2218 "parse.y"
07362     {
07363                     /*%%%*/
07364                         (yyval.node) = call_bin_op((yyvsp[(1) - (3)].node), tEQ, (yyvsp[(3) - (3)].node));
07365                     /*%
07366                         $$ = dispatch3(binary, $1, ripper_intern("=="), $3);
07367                     %*/
07368                     }
07369     break;
07370 
07371   case 231:
07372 
07373 /* Line 1806 of yacc.c  */
07374 #line 2226 "parse.y"
07375     {
07376                     /*%%%*/
07377                         (yyval.node) = call_bin_op((yyvsp[(1) - (3)].node), tEQQ, (yyvsp[(3) - (3)].node));
07378                     /*%
07379                         $$ = dispatch3(binary, $1, ripper_intern("==="), $3);
07380                     %*/
07381                     }
07382     break;
07383 
07384   case 232:
07385 
07386 /* Line 1806 of yacc.c  */
07387 #line 2234 "parse.y"
07388     {
07389                     /*%%%*/
07390                         (yyval.node) = call_bin_op((yyvsp[(1) - (3)].node), tNEQ, (yyvsp[(3) - (3)].node));
07391                     /*%
07392                         $$ = dispatch3(binary, $1, ripper_intern("!="), $3);
07393                     %*/
07394                     }
07395     break;
07396 
07397   case 233:
07398 
07399 /* Line 1806 of yacc.c  */
07400 #line 2242 "parse.y"
07401     {
07402                     /*%%%*/
07403                         (yyval.node) = match_op((yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));
07404                         if (nd_type((yyvsp[(1) - (3)].node)) == NODE_LIT && RB_TYPE_P((yyvsp[(1) - (3)].node)->nd_lit, T_REGEXP)) {
07405                             (yyval.node) = reg_named_capture_assign((yyvsp[(1) - (3)].node)->nd_lit, (yyval.node));
07406                         }
07407                     /*%
07408                         $$ = dispatch3(binary, $1, ripper_intern("=~"), $3);
07409                     %*/
07410                     }
07411     break;
07412 
07413   case 234:
07414 
07415 /* Line 1806 of yacc.c  */
07416 #line 2253 "parse.y"
07417     {
07418                     /*%%%*/
07419                         (yyval.node) = call_bin_op((yyvsp[(1) - (3)].node), tNMATCH, (yyvsp[(3) - (3)].node));
07420                     /*%
07421                         $$ = dispatch3(binary, $1, ripper_intern("!~"), $3);
07422                     %*/
07423                     }
07424     break;
07425 
07426   case 235:
07427 
07428 /* Line 1806 of yacc.c  */
07429 #line 2261 "parse.y"
07430     {
07431                     /*%%%*/
07432                         (yyval.node) = call_uni_op(cond((yyvsp[(2) - (2)].node)), '!');
07433                     /*%
07434                         $$ = dispatch2(unary, ID2SYM('!'), $2);
07435                     %*/
07436                     }
07437     break;
07438 
07439   case 236:
07440 
07441 /* Line 1806 of yacc.c  */
07442 #line 2269 "parse.y"
07443     {
07444                     /*%%%*/
07445                         (yyval.node) = call_uni_op((yyvsp[(2) - (2)].node), '~');
07446                     /*%
07447                         $$ = dispatch2(unary, ID2SYM('~'), $2);
07448                     %*/
07449                     }
07450     break;
07451 
07452   case 237:
07453 
07454 /* Line 1806 of yacc.c  */
07455 #line 2277 "parse.y"
07456     {
07457                     /*%%%*/
07458                         (yyval.node) = call_bin_op((yyvsp[(1) - (3)].node), tLSHFT, (yyvsp[(3) - (3)].node));
07459                     /*%
07460                         $$ = dispatch3(binary, $1, ripper_intern("<<"), $3);
07461                     %*/
07462                     }
07463     break;
07464 
07465   case 238:
07466 
07467 /* Line 1806 of yacc.c  */
07468 #line 2285 "parse.y"
07469     {
07470                     /*%%%*/
07471                         (yyval.node) = call_bin_op((yyvsp[(1) - (3)].node), tRSHFT, (yyvsp[(3) - (3)].node));
07472                     /*%
07473                         $$ = dispatch3(binary, $1, ripper_intern(">>"), $3);
07474                     %*/
07475                     }
07476     break;
07477 
07478   case 239:
07479 
07480 /* Line 1806 of yacc.c  */
07481 #line 2293 "parse.y"
07482     {
07483                     /*%%%*/
07484                         (yyval.node) = logop(NODE_AND, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));
07485                     /*%
07486                         $$ = dispatch3(binary, $1, ripper_intern("&&"), $3);
07487                     %*/
07488                     }
07489     break;
07490 
07491   case 240:
07492 
07493 /* Line 1806 of yacc.c  */
07494 #line 2301 "parse.y"
07495     {
07496                     /*%%%*/
07497                         (yyval.node) = logop(NODE_OR, (yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));
07498                     /*%
07499                         $$ = dispatch3(binary, $1, ripper_intern("||"), $3);
07500                     %*/
07501                     }
07502     break;
07503 
07504   case 241:
07505 
07506 /* Line 1806 of yacc.c  */
07507 #line 2308 "parse.y"
07508     {in_defined = 1;}
07509     break;
07510 
07511   case 242:
07512 
07513 /* Line 1806 of yacc.c  */
07514 #line 2309 "parse.y"
07515     {
07516                     /*%%%*/
07517                         in_defined = 0;
07518                         (yyval.node) = NEW_DEFINED((yyvsp[(4) - (4)].node));
07519                     /*%
07520                         in_defined = 0;
07521                         $$ = dispatch1(defined, $4);
07522                     %*/
07523                     }
07524     break;
07525 
07526   case 243:
07527 
07528 /* Line 1806 of yacc.c  */
07529 #line 2319 "parse.y"
07530     {
07531                     /*%%%*/
07532                         value_expr((yyvsp[(1) - (6)].node));
07533                         (yyval.node) = NEW_IF(cond((yyvsp[(1) - (6)].node)), (yyvsp[(3) - (6)].node), (yyvsp[(6) - (6)].node));
07534                         fixpos((yyval.node), (yyvsp[(1) - (6)].node));
07535                     /*%
07536                         $$ = dispatch3(ifop, $1, $3, $6);
07537                     %*/
07538                     }
07539     break;
07540 
07541   case 244:
07542 
07543 /* Line 1806 of yacc.c  */
07544 #line 2329 "parse.y"
07545     {
07546                         (yyval.node) = (yyvsp[(1) - (1)].node);
07547                     }
07548     break;
07549 
07550   case 245:
07551 
07552 /* Line 1806 of yacc.c  */
07553 #line 2335 "parse.y"
07554     {
07555                     /*%%%*/
07556                         value_expr((yyvsp[(1) - (1)].node));
07557                         (yyval.node) = (yyvsp[(1) - (1)].node);
07558                         if (!(yyval.node)) (yyval.node) = NEW_NIL();
07559                     /*%
07560                         $$ = $1;
07561                     %*/
07562                     }
07563     break;
07564 
07565   case 247:
07566 
07567 /* Line 1806 of yacc.c  */
07568 #line 2348 "parse.y"
07569     {
07570                         (yyval.node) = (yyvsp[(1) - (2)].node);
07571                     }
07572     break;
07573 
07574   case 248:
07575 
07576 /* Line 1806 of yacc.c  */
07577 #line 2352 "parse.y"
07578     {
07579                     /*%%%*/
07580                         (yyval.node) = arg_append((yyvsp[(1) - (4)].node), NEW_HASH((yyvsp[(3) - (4)].node)));
07581                     /*%
07582                         $$ = arg_add_assocs($1, $3);
07583                     %*/
07584                     }
07585     break;
07586 
07587   case 249:
07588 
07589 /* Line 1806 of yacc.c  */
07590 #line 2360 "parse.y"
07591     {
07592                     /*%%%*/
07593                         (yyval.node) = NEW_LIST(NEW_HASH((yyvsp[(1) - (2)].node)));
07594                     /*%
07595                         $$ = arg_add_assocs(arg_new(), $1);
07596                     %*/
07597                     }
07598     break;
07599 
07600   case 250:
07601 
07602 /* Line 1806 of yacc.c  */
07603 #line 2370 "parse.y"
07604     {
07605                     /*%%%*/
07606                         (yyval.node) = (yyvsp[(2) - (3)].node);
07607                     /*%
07608                         $$ = dispatch1(arg_paren, escape_Qundef($2));
07609                     %*/
07610                     }
07611     break;
07612 
07613   case 255:
07614 
07615 /* Line 1806 of yacc.c  */
07616 #line 2386 "parse.y"
07617     {
07618                       (yyval.node) = (yyvsp[(1) - (2)].node);
07619                     }
07620     break;
07621 
07622   case 256:
07623 
07624 /* Line 1806 of yacc.c  */
07625 #line 2390 "parse.y"
07626     {
07627                     /*%%%*/
07628                         (yyval.node) = arg_append((yyvsp[(1) - (4)].node), NEW_HASH((yyvsp[(3) - (4)].node)));
07629                     /*%
07630                         $$ = arg_add_assocs($1, $3);
07631                     %*/
07632                     }
07633     break;
07634 
07635   case 257:
07636 
07637 /* Line 1806 of yacc.c  */
07638 #line 2398 "parse.y"
07639     {
07640                     /*%%%*/
07641                         (yyval.node) = NEW_LIST(NEW_HASH((yyvsp[(1) - (2)].node)));
07642                     /*%
07643                         $$ = arg_add_assocs(arg_new(), $1);
07644                     %*/
07645                     }
07646     break;
07647 
07648   case 258:
07649 
07650 /* Line 1806 of yacc.c  */
07651 #line 2408 "parse.y"
07652     {
07653                     /*%%%*/
07654                         value_expr((yyvsp[(1) - (1)].node));
07655                         (yyval.node) = NEW_LIST((yyvsp[(1) - (1)].node));
07656                     /*%
07657                         $$ = arg_add(arg_new(), $1);
07658                     %*/
07659                     }
07660     break;
07661 
07662   case 259:
07663 
07664 /* Line 1806 of yacc.c  */
07665 #line 2417 "parse.y"
07666     {
07667                     /*%%%*/
07668                         (yyval.node) = arg_blk_pass((yyvsp[(1) - (2)].node), (yyvsp[(2) - (2)].node));
07669                     /*%
07670                         $$ = arg_add_optblock($1, $2);
07671                     %*/
07672                     }
07673     break;
07674 
07675   case 260:
07676 
07677 /* Line 1806 of yacc.c  */
07678 #line 2425 "parse.y"
07679     {
07680                     /*%%%*/
07681                         (yyval.node) = NEW_LIST(NEW_HASH((yyvsp[(1) - (2)].node)));
07682                         (yyval.node) = arg_blk_pass((yyval.node), (yyvsp[(2) - (2)].node));
07683                     /*%
07684                         $$ = arg_add_assocs(arg_new(), $1);
07685                         $$ = arg_add_optblock($$, $2);
07686                     %*/
07687                     }
07688     break;
07689 
07690   case 261:
07691 
07692 /* Line 1806 of yacc.c  */
07693 #line 2435 "parse.y"
07694     {
07695                     /*%%%*/
07696                         (yyval.node) = arg_append((yyvsp[(1) - (4)].node), NEW_HASH((yyvsp[(3) - (4)].node)));
07697                         (yyval.node) = arg_blk_pass((yyval.node), (yyvsp[(4) - (4)].node));
07698                     /*%
07699                         $$ = arg_add_optblock(arg_add_assocs($1, $3), $4);
07700                     %*/
07701                     }
07702     break;
07703 
07704   case 263:
07705 
07706 /* Line 1806 of yacc.c  */
07707 #line 2452 "parse.y"
07708     {
07709                         (yyval.val) = cmdarg_stack;
07710                         CMDARG_PUSH(1);
07711                     }
07712     break;
07713 
07714   case 264:
07715 
07716 /* Line 1806 of yacc.c  */
07717 #line 2457 "parse.y"
07718     {
07719                         /* CMDARG_POP() */
07720                         cmdarg_stack = (yyvsp[(1) - (2)].val);
07721                         (yyval.node) = (yyvsp[(2) - (2)].node);
07722                     }
07723     break;
07724 
07725   case 265:
07726 
07727 /* Line 1806 of yacc.c  */
07728 #line 2465 "parse.y"
07729     {
07730                     /*%%%*/
07731                         (yyval.node) = NEW_BLOCK_PASS((yyvsp[(2) - (2)].node));
07732                     /*%
07733                         $$ = $2;
07734                     %*/
07735                     }
07736     break;
07737 
07738   case 266:
07739 
07740 /* Line 1806 of yacc.c  */
07741 #line 2475 "parse.y"
07742     {
07743                         (yyval.node) = (yyvsp[(2) - (2)].node);
07744                     }
07745     break;
07746 
07747   case 267:
07748 
07749 /* Line 1806 of yacc.c  */
07750 #line 2479 "parse.y"
07751     {
07752                         (yyval.node) = 0;
07753                     }
07754     break;
07755 
07756   case 268:
07757 
07758 /* Line 1806 of yacc.c  */
07759 #line 2485 "parse.y"
07760     {
07761                     /*%%%*/
07762                         (yyval.node) = NEW_LIST((yyvsp[(1) - (1)].node));
07763                     /*%
07764                         $$ = arg_add(arg_new(), $1);
07765                     %*/
07766                     }
07767     break;
07768 
07769   case 269:
07770 
07771 /* Line 1806 of yacc.c  */
07772 #line 2493 "parse.y"
07773     {
07774                     /*%%%*/
07775                         (yyval.node) = NEW_SPLAT((yyvsp[(2) - (2)].node));
07776                     /*%
07777                         $$ = arg_add_star(arg_new(), $2);
07778                     %*/
07779                     }
07780     break;
07781 
07782   case 270:
07783 
07784 /* Line 1806 of yacc.c  */
07785 #line 2501 "parse.y"
07786     {
07787                     /*%%%*/
07788                         NODE *n1;
07789                         if ((n1 = splat_array((yyvsp[(1) - (3)].node))) != 0) {
07790                             (yyval.node) = list_append(n1, (yyvsp[(3) - (3)].node));
07791                         }
07792                         else {
07793                             (yyval.node) = arg_append((yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));
07794                         }
07795                     /*%
07796                         $$ = arg_add($1, $3);
07797                     %*/
07798                     }
07799     break;
07800 
07801   case 271:
07802 
07803 /* Line 1806 of yacc.c  */
07804 #line 2515 "parse.y"
07805     {
07806                     /*%%%*/
07807                         NODE *n1;
07808                         if ((nd_type((yyvsp[(4) - (4)].node)) == NODE_ARRAY) && (n1 = splat_array((yyvsp[(1) - (4)].node))) != 0) {
07809                             (yyval.node) = list_concat(n1, (yyvsp[(4) - (4)].node));
07810                         }
07811                         else {
07812                             (yyval.node) = arg_concat((yyvsp[(1) - (4)].node), (yyvsp[(4) - (4)].node));
07813                         }
07814                     /*%
07815                         $$ = arg_add_star($1, $4);
07816                     %*/
07817                     }
07818     break;
07819 
07820   case 272:
07821 
07822 /* Line 1806 of yacc.c  */
07823 #line 2531 "parse.y"
07824     {
07825                     /*%%%*/
07826                         NODE *n1;
07827                         if ((n1 = splat_array((yyvsp[(1) - (3)].node))) != 0) {
07828                             (yyval.node) = list_append(n1, (yyvsp[(3) - (3)].node));
07829                         }
07830                         else {
07831                             (yyval.node) = arg_append((yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));
07832                         }
07833                     /*%
07834                         $$ = mrhs_add(args2mrhs($1), $3);
07835                     %*/
07836                     }
07837     break;
07838 
07839   case 273:
07840 
07841 /* Line 1806 of yacc.c  */
07842 #line 2545 "parse.y"
07843     {
07844                     /*%%%*/
07845                         NODE *n1;
07846                         if (nd_type((yyvsp[(4) - (4)].node)) == NODE_ARRAY &&
07847                             (n1 = splat_array((yyvsp[(1) - (4)].node))) != 0) {
07848                             (yyval.node) = list_concat(n1, (yyvsp[(4) - (4)].node));
07849                         }
07850                         else {
07851                             (yyval.node) = arg_concat((yyvsp[(1) - (4)].node), (yyvsp[(4) - (4)].node));
07852                         }
07853                     /*%
07854                         $$ = mrhs_add_star(args2mrhs($1), $4);
07855                     %*/
07856                     }
07857     break;
07858 
07859   case 274:
07860 
07861 /* Line 1806 of yacc.c  */
07862 #line 2560 "parse.y"
07863     {
07864                     /*%%%*/
07865                         (yyval.node) = NEW_SPLAT((yyvsp[(2) - (2)].node));
07866                     /*%
07867                         $$ = mrhs_add_star(mrhs_new(), $2);
07868                     %*/
07869                     }
07870     break;
07871 
07872   case 285:
07873 
07874 /* Line 1806 of yacc.c  */
07875 #line 2580 "parse.y"
07876     {
07877                     /*%%%*/
07878                         (yyval.node) = NEW_FCALL((yyvsp[(1) - (1)].id), 0);
07879                     /*%
07880                         $$ = method_arg(dispatch1(fcall, $1), arg_new());
07881                     %*/
07882                     }
07883     break;
07884 
07885   case 286:
07886 
07887 /* Line 1806 of yacc.c  */
07888 #line 2588 "parse.y"
07889     {
07890                         (yyvsp[(1) - (1)].val) = cmdarg_stack;
07891                         cmdarg_stack = 0;
07892                     /*%%%*/
07893                         (yyval.num) = ruby_sourceline;
07894                     /*%
07895                     %*/
07896                     }
07897     break;
07898 
07899   case 287:
07900 
07901 /* Line 1806 of yacc.c  */
07902 #line 2598 "parse.y"
07903     {
07904                         cmdarg_stack = (yyvsp[(1) - (4)].val);
07905                     /*%%%*/
07906                         if ((yyvsp[(3) - (4)].node) == NULL) {
07907                             (yyval.node) = NEW_NIL();
07908                         }
07909                         else {
07910                             if (nd_type((yyvsp[(3) - (4)].node)) == NODE_RESCUE ||
07911                                 nd_type((yyvsp[(3) - (4)].node)) == NODE_ENSURE)
07912                                 nd_set_line((yyvsp[(3) - (4)].node), (yyvsp[(2) - (4)].num));
07913                             (yyval.node) = NEW_BEGIN((yyvsp[(3) - (4)].node));
07914                         }
07915                         nd_set_line((yyval.node), (yyvsp[(2) - (4)].num));
07916                     /*%
07917                         $$ = dispatch1(begin, $3);
07918                     %*/
07919                     }
07920     break;
07921 
07922   case 288:
07923 
07924 /* Line 1806 of yacc.c  */
07925 #line 2615 "parse.y"
07926     {lex_state = EXPR_ENDARG;}
07927     break;
07928 
07929   case 289:
07930 
07931 /* Line 1806 of yacc.c  */
07932 #line 2616 "parse.y"
07933     {
07934                     /*%%%*/
07935                         (yyval.node) = 0;
07936                     /*%
07937                         $$ = dispatch1(paren, 0);
07938                     %*/
07939                     }
07940     break;
07941 
07942   case 290:
07943 
07944 /* Line 1806 of yacc.c  */
07945 #line 2623 "parse.y"
07946     {lex_state = EXPR_ENDARG;}
07947     break;
07948 
07949   case 291:
07950 
07951 /* Line 1806 of yacc.c  */
07952 #line 2624 "parse.y"
07953     {
07954                     /*%%%*/
07955                         (yyval.node) = (yyvsp[(2) - (4)].node);
07956                     /*%
07957                         $$ = dispatch1(paren, $2);
07958                     %*/
07959                     }
07960     break;
07961 
07962   case 292:
07963 
07964 /* Line 1806 of yacc.c  */
07965 #line 2632 "parse.y"
07966     {
07967                     /*%%%*/
07968                         (yyval.node) = (yyvsp[(2) - (3)].node);
07969                     /*%
07970                         $$ = dispatch1(paren, $2);
07971                     %*/
07972                     }
07973     break;
07974 
07975   case 293:
07976 
07977 /* Line 1806 of yacc.c  */
07978 #line 2640 "parse.y"
07979     {
07980                     /*%%%*/
07981                         (yyval.node) = NEW_COLON2((yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].id));
07982                     /*%
07983                         $$ = dispatch2(const_path_ref, $1, $3);
07984                     %*/
07985                     }
07986     break;
07987 
07988   case 294:
07989 
07990 /* Line 1806 of yacc.c  */
07991 #line 2648 "parse.y"
07992     {
07993                     /*%%%*/
07994                         (yyval.node) = NEW_COLON3((yyvsp[(2) - (2)].id));
07995                     /*%
07996                         $$ = dispatch1(top_const_ref, $2);
07997                     %*/
07998                     }
07999     break;
08000 
08001   case 295:
08002 
08003 /* Line 1806 of yacc.c  */
08004 #line 2656 "parse.y"
08005     {
08006                     /*%%%*/
08007                         if ((yyvsp[(2) - (3)].node) == 0) {
08008                             (yyval.node) = NEW_ZARRAY(); /* zero length array*/
08009                         }
08010                         else {
08011                             (yyval.node) = (yyvsp[(2) - (3)].node);
08012                         }
08013                     /*%
08014                         $$ = dispatch1(array, escape_Qundef($2));
08015                     %*/
08016                     }
08017     break;
08018 
08019   case 296:
08020 
08021 /* Line 1806 of yacc.c  */
08022 #line 2669 "parse.y"
08023     {
08024                     /*%%%*/
08025                         (yyval.node) = NEW_HASH((yyvsp[(2) - (3)].node));
08026                     /*%
08027                         $$ = dispatch1(hash, escape_Qundef($2));
08028                     %*/
08029                     }
08030     break;
08031 
08032   case 297:
08033 
08034 /* Line 1806 of yacc.c  */
08035 #line 2677 "parse.y"
08036     {
08037                     /*%%%*/
08038                         (yyval.node) = NEW_RETURN(0);
08039                     /*%
08040                         $$ = dispatch0(return0);
08041                     %*/
08042                     }
08043     break;
08044 
08045   case 298:
08046 
08047 /* Line 1806 of yacc.c  */
08048 #line 2685 "parse.y"
08049     {
08050                     /*%%%*/
08051                         (yyval.node) = new_yield((yyvsp[(3) - (4)].node));
08052                     /*%
08053                         $$ = dispatch1(yield, dispatch1(paren, $3));
08054                     %*/
08055                     }
08056     break;
08057 
08058   case 299:
08059 
08060 /* Line 1806 of yacc.c  */
08061 #line 2693 "parse.y"
08062     {
08063                     /*%%%*/
08064                         (yyval.node) = NEW_YIELD(0);
08065                     /*%
08066                         $$ = dispatch1(yield, dispatch1(paren, arg_new()));
08067                     %*/
08068                     }
08069     break;
08070 
08071   case 300:
08072 
08073 /* Line 1806 of yacc.c  */
08074 #line 2701 "parse.y"
08075     {
08076                     /*%%%*/
08077                         (yyval.node) = NEW_YIELD(0);
08078                     /*%
08079                         $$ = dispatch0(yield0);
08080                     %*/
08081                     }
08082     break;
08083 
08084   case 301:
08085 
08086 /* Line 1806 of yacc.c  */
08087 #line 2708 "parse.y"
08088     {in_defined = 1;}
08089     break;
08090 
08091   case 302:
08092 
08093 /* Line 1806 of yacc.c  */
08094 #line 2709 "parse.y"
08095     {
08096                     /*%%%*/
08097                         in_defined = 0;
08098                         (yyval.node) = NEW_DEFINED((yyvsp[(5) - (6)].node));
08099                     /*%
08100                         in_defined = 0;
08101                         $$ = dispatch1(defined, $5);
08102                     %*/
08103                     }
08104     break;
08105 
08106   case 303:
08107 
08108 /* Line 1806 of yacc.c  */
08109 #line 2719 "parse.y"
08110     {
08111                     /*%%%*/
08112                         (yyval.node) = call_uni_op(cond((yyvsp[(3) - (4)].node)), '!');
08113                     /*%
08114                         $$ = dispatch2(unary, ripper_intern("not"), $3);
08115                     %*/
08116                     }
08117     break;
08118 
08119   case 304:
08120 
08121 /* Line 1806 of yacc.c  */
08122 #line 2727 "parse.y"
08123     {
08124                     /*%%%*/
08125                         (yyval.node) = call_uni_op(cond(NEW_NIL()), '!');
08126                     /*%
08127                         $$ = dispatch2(unary, ripper_intern("not"), Qnil);
08128                     %*/
08129                     }
08130     break;
08131 
08132   case 305:
08133 
08134 /* Line 1806 of yacc.c  */
08135 #line 2735 "parse.y"
08136     {
08137                     /*%%%*/
08138                         (yyvsp[(2) - (2)].node)->nd_iter = (yyvsp[(1) - (2)].node);
08139                         (yyval.node) = (yyvsp[(2) - (2)].node);
08140                     /*%
08141                         $$ = method_arg(dispatch1(fcall, $1), arg_new());
08142                         $$ = method_add_block($$, $2);
08143                     %*/
08144                     }
08145     break;
08146 
08147   case 307:
08148 
08149 /* Line 1806 of yacc.c  */
08150 #line 2746 "parse.y"
08151     {
08152                     /*%%%*/
08153                         block_dup_check((yyvsp[(1) - (2)].node)->nd_args, (yyvsp[(2) - (2)].node));
08154                         (yyvsp[(2) - (2)].node)->nd_iter = (yyvsp[(1) - (2)].node);
08155                         (yyval.node) = (yyvsp[(2) - (2)].node);
08156                     /*%
08157                         $$ = method_add_block($1, $2);
08158                     %*/
08159                     }
08160     break;
08161 
08162   case 308:
08163 
08164 /* Line 1806 of yacc.c  */
08165 #line 2756 "parse.y"
08166     {
08167                         (yyval.node) = (yyvsp[(2) - (2)].node);
08168                     }
08169     break;
08170 
08171   case 309:
08172 
08173 /* Line 1806 of yacc.c  */
08174 #line 2763 "parse.y"
08175     {
08176                     /*%%%*/
08177                         (yyval.node) = NEW_IF(cond((yyvsp[(2) - (6)].node)), (yyvsp[(4) - (6)].node), (yyvsp[(5) - (6)].node));
08178                         fixpos((yyval.node), (yyvsp[(2) - (6)].node));
08179                     /*%
08180                         $$ = dispatch3(if, $2, $4, escape_Qundef($5));
08181                     %*/
08182                     }
08183     break;
08184 
08185   case 310:
08186 
08187 /* Line 1806 of yacc.c  */
08188 #line 2775 "parse.y"
08189     {
08190                     /*%%%*/
08191                         (yyval.node) = NEW_UNLESS(cond((yyvsp[(2) - (6)].node)), (yyvsp[(4) - (6)].node), (yyvsp[(5) - (6)].node));
08192                         fixpos((yyval.node), (yyvsp[(2) - (6)].node));
08193                     /*%
08194                         $$ = dispatch3(unless, $2, $4, escape_Qundef($5));
08195                     %*/
08196                     }
08197     break;
08198 
08199   case 311:
08200 
08201 /* Line 1806 of yacc.c  */
08202 #line 2783 "parse.y"
08203     {COND_PUSH(1);}
08204     break;
08205 
08206   case 312:
08207 
08208 /* Line 1806 of yacc.c  */
08209 #line 2783 "parse.y"
08210     {COND_POP();}
08211     break;
08212 
08213   case 313:
08214 
08215 /* Line 1806 of yacc.c  */
08216 #line 2786 "parse.y"
08217     {
08218                     /*%%%*/
08219                         (yyval.node) = NEW_WHILE(cond((yyvsp[(3) - (7)].node)), (yyvsp[(6) - (7)].node), 1);
08220                         fixpos((yyval.node), (yyvsp[(3) - (7)].node));
08221                     /*%
08222                         $$ = dispatch2(while, $3, $6);
08223                     %*/
08224                     }
08225     break;
08226 
08227   case 314:
08228 
08229 /* Line 1806 of yacc.c  */
08230 #line 2794 "parse.y"
08231     {COND_PUSH(1);}
08232     break;
08233 
08234   case 315:
08235 
08236 /* Line 1806 of yacc.c  */
08237 #line 2794 "parse.y"
08238     {COND_POP();}
08239     break;
08240 
08241   case 316:
08242 
08243 /* Line 1806 of yacc.c  */
08244 #line 2797 "parse.y"
08245     {
08246                     /*%%%*/
08247                         (yyval.node) = NEW_UNTIL(cond((yyvsp[(3) - (7)].node)), (yyvsp[(6) - (7)].node), 1);
08248                         fixpos((yyval.node), (yyvsp[(3) - (7)].node));
08249                     /*%
08250                         $$ = dispatch2(until, $3, $6);
08251                     %*/
08252                     }
08253     break;
08254 
08255   case 317:
08256 
08257 /* Line 1806 of yacc.c  */
08258 #line 2808 "parse.y"
08259     {
08260                     /*%%%*/
08261                         (yyval.node) = NEW_CASE((yyvsp[(2) - (5)].node), (yyvsp[(4) - (5)].node));
08262                         fixpos((yyval.node), (yyvsp[(2) - (5)].node));
08263                     /*%
08264                         $$ = dispatch2(case, $2, $4);
08265                     %*/
08266                     }
08267     break;
08268 
08269   case 318:
08270 
08271 /* Line 1806 of yacc.c  */
08272 #line 2817 "parse.y"
08273     {
08274                     /*%%%*/
08275                         (yyval.node) = NEW_CASE(0, (yyvsp[(3) - (4)].node));
08276                     /*%
08277                         $$ = dispatch2(case, Qnil, $3);
08278                     %*/
08279                     }
08280     break;
08281 
08282   case 319:
08283 
08284 /* Line 1806 of yacc.c  */
08285 #line 2825 "parse.y"
08286     {COND_PUSH(1);}
08287     break;
08288 
08289   case 320:
08290 
08291 /* Line 1806 of yacc.c  */
08292 #line 2827 "parse.y"
08293     {COND_POP();}
08294     break;
08295 
08296   case 321:
08297 
08298 /* Line 1806 of yacc.c  */
08299 #line 2830 "parse.y"
08300     {
08301                     /*%%%*/
08302                         /*
08303                          *  for a, b, c in e
08304                          *  #=>
08305                          *  e.each{|*x| a, b, c = x
08306                          *
08307                          *  for a in e
08308                          *  #=>
08309                          *  e.each{|x| a, = x}
08310                          */
08311                         ID id = internal_id();
08312                         ID *tbl = ALLOC_N(ID, 2);
08313                         NODE *m = NEW_ARGS_AUX(0, 0);
08314                         NODE *args, *scope;
08315 
08316                         if (nd_type((yyvsp[(2) - (9)].node)) == NODE_MASGN) {
08317                             /* if args.length == 1 && args[0].kind_of?(Array)
08318                              *   args = args[0]
08319                              * end
08320                              */
08321                             NODE *one = NEW_LIST(NEW_LIT(INT2FIX(1)));
08322                             NODE *zero = NEW_LIST(NEW_LIT(INT2FIX(0)));
08323                             m->nd_next = block_append(
08324                                 NEW_IF(
08325                                     NEW_NODE(NODE_AND,
08326                                              NEW_CALL(NEW_CALL(NEW_DVAR(id), idLength, 0),
08327                                                       idEq, one),
08328                                              NEW_CALL(NEW_CALL(NEW_DVAR(id), idAREF, zero),
08329                                                       rb_intern("kind_of?"), NEW_LIST(NEW_LIT(rb_cArray))),
08330                                              0),
08331                                     NEW_DASGN_CURR(id,
08332                                                    NEW_CALL(NEW_DVAR(id), idAREF, zero)),
08333                                     0),
08334                                 node_assign((yyvsp[(2) - (9)].node), NEW_DVAR(id)));
08335 
08336                             args = new_args(m, 0, id, 0, new_args_tail(0, 0, 0));
08337                         }
08338                         else {
08339                             if (nd_type((yyvsp[(2) - (9)].node)) == NODE_LASGN ||
08340                                 nd_type((yyvsp[(2) - (9)].node)) == NODE_DASGN ||
08341                                 nd_type((yyvsp[(2) - (9)].node)) == NODE_DASGN_CURR) {
08342                                 (yyvsp[(2) - (9)].node)->nd_value = NEW_DVAR(id);
08343                                 m->nd_plen = 1;
08344                                 m->nd_next = (yyvsp[(2) - (9)].node);
08345                                 args = new_args(m, 0, 0, 0, new_args_tail(0, 0, 0));
08346                             }
08347                             else {
08348                                 m->nd_next = node_assign(NEW_MASGN(NEW_LIST((yyvsp[(2) - (9)].node)), 0), NEW_DVAR(id));
08349                                 args = new_args(m, 0, id, 0, new_args_tail(0, 0, 0));
08350                             }
08351                         }
08352                         scope = NEW_NODE(NODE_SCOPE, tbl, (yyvsp[(8) - (9)].node), args);
08353                         tbl[0] = 1; tbl[1] = id;
08354                         (yyval.node) = NEW_FOR(0, (yyvsp[(5) - (9)].node), scope);
08355                         fixpos((yyval.node), (yyvsp[(2) - (9)].node));
08356                     /*%
08357                         $$ = dispatch3(for, $2, $5, $8);
08358                     %*/
08359                     }
08360     break;
08361 
08362   case 322:
08363 
08364 /* Line 1806 of yacc.c  */
08365 #line 2891 "parse.y"
08366     {
08367                         if (in_def || in_single)
08368                             yyerror("class definition in method body");
08369                         local_push(0);
08370                     /*%%%*/
08371                         (yyval.num) = ruby_sourceline;
08372                     /*%
08373                     %*/
08374                     }
08375     break;
08376 
08377   case 323:
08378 
08379 /* Line 1806 of yacc.c  */
08380 #line 2902 "parse.y"
08381     {
08382                     /*%%%*/
08383                         (yyval.node) = NEW_CLASS((yyvsp[(2) - (6)].node), (yyvsp[(5) - (6)].node), (yyvsp[(3) - (6)].node));
08384                         nd_set_line((yyval.node), (yyvsp[(4) - (6)].num));
08385                     /*%
08386                         $$ = dispatch3(class, $2, $3, $5);
08387                     %*/
08388                         local_pop();
08389                     }
08390     break;
08391 
08392   case 324:
08393 
08394 /* Line 1806 of yacc.c  */
08395 #line 2912 "parse.y"
08396     {
08397                         (yyval.num) = in_def;
08398                         in_def = 0;
08399                     }
08400     break;
08401 
08402   case 325:
08403 
08404 /* Line 1806 of yacc.c  */
08405 #line 2917 "parse.y"
08406     {
08407                         (yyval.num) = in_single;
08408                         in_single = 0;
08409                         local_push(0);
08410                     }
08411     break;
08412 
08413   case 326:
08414 
08415 /* Line 1806 of yacc.c  */
08416 #line 2924 "parse.y"
08417     {
08418                     /*%%%*/
08419                         (yyval.node) = NEW_SCLASS((yyvsp[(3) - (8)].node), (yyvsp[(7) - (8)].node));
08420                         fixpos((yyval.node), (yyvsp[(3) - (8)].node));
08421                     /*%
08422                         $$ = dispatch2(sclass, $3, $7);
08423                     %*/
08424                         local_pop();
08425                         in_def = (yyvsp[(4) - (8)].num);
08426                         in_single = (yyvsp[(6) - (8)].num);
08427                     }
08428     break;
08429 
08430   case 327:
08431 
08432 /* Line 1806 of yacc.c  */
08433 #line 2936 "parse.y"
08434     {
08435                         if (in_def || in_single)
08436                             yyerror("module definition in method body");
08437                         local_push(0);
08438                     /*%%%*/
08439                         (yyval.num) = ruby_sourceline;
08440                     /*%
08441                     %*/
08442                     }
08443     break;
08444 
08445   case 328:
08446 
08447 /* Line 1806 of yacc.c  */
08448 #line 2947 "parse.y"
08449     {
08450                     /*%%%*/
08451                         (yyval.node) = NEW_MODULE((yyvsp[(2) - (5)].node), (yyvsp[(4) - (5)].node));
08452                         nd_set_line((yyval.node), (yyvsp[(3) - (5)].num));
08453                     /*%
08454                         $$ = dispatch2(module, $2, $4);
08455                     %*/
08456                         local_pop();
08457                     }
08458     break;
08459 
08460   case 329:
08461 
08462 /* Line 1806 of yacc.c  */
08463 #line 2957 "parse.y"
08464     {
08465                         (yyval.id) = cur_mid;
08466                         cur_mid = (yyvsp[(2) - (2)].id);
08467                         in_def++;
08468                         local_push(0);
08469                     }
08470     break;
08471 
08472   case 330:
08473 
08474 /* Line 1806 of yacc.c  */
08475 #line 2966 "parse.y"
08476     {
08477                     /*%%%*/
08478                         NODE *body = remove_begin((yyvsp[(5) - (6)].node));
08479                         reduce_nodes(&body);
08480                         (yyval.node) = NEW_DEFN((yyvsp[(2) - (6)].id), (yyvsp[(4) - (6)].node), body, NOEX_PRIVATE);
08481                         nd_set_line((yyval.node), (yyvsp[(1) - (6)].num));
08482                     /*%
08483                         $$ = dispatch3(def, $2, $4, $5);
08484                     %*/
08485                         local_pop();
08486                         in_def--;
08487                         cur_mid = (yyvsp[(3) - (6)].id);
08488                     }
08489     break;
08490 
08491   case 331:
08492 
08493 /* Line 1806 of yacc.c  */
08494 #line 2979 "parse.y"
08495     {lex_state = EXPR_FNAME;}
08496     break;
08497 
08498   case 332:
08499 
08500 /* Line 1806 of yacc.c  */
08501 #line 2980 "parse.y"
08502     {
08503                         in_single++;
08504                         lex_state = EXPR_ENDFN; /* force for args */
08505                         local_push(0);
08506                     }
08507     break;
08508 
08509   case 333:
08510 
08511 /* Line 1806 of yacc.c  */
08512 #line 2988 "parse.y"
08513     {
08514                     /*%%%*/
08515                         NODE *body = remove_begin((yyvsp[(8) - (9)].node));
08516                         reduce_nodes(&body);
08517                         (yyval.node) = NEW_DEFS((yyvsp[(2) - (9)].node), (yyvsp[(5) - (9)].id), (yyvsp[(7) - (9)].node), body);
08518                         nd_set_line((yyval.node), (yyvsp[(1) - (9)].num));
08519                     /*%
08520                         $$ = dispatch5(defs, $2, $3, $5, $7, $8);
08521                     %*/
08522                         local_pop();
08523                         in_single--;
08524                     }
08525     break;
08526 
08527   case 334:
08528 
08529 /* Line 1806 of yacc.c  */
08530 #line 3001 "parse.y"
08531     {
08532                     /*%%%*/
08533                         (yyval.node) = NEW_BREAK(0);
08534                     /*%
08535                         $$ = dispatch1(break, arg_new());
08536                     %*/
08537                     }
08538     break;
08539 
08540   case 335:
08541 
08542 /* Line 1806 of yacc.c  */
08543 #line 3009 "parse.y"
08544     {
08545                     /*%%%*/
08546                         (yyval.node) = NEW_NEXT(0);
08547                     /*%
08548                         $$ = dispatch1(next, arg_new());
08549                     %*/
08550                     }
08551     break;
08552 
08553   case 336:
08554 
08555 /* Line 1806 of yacc.c  */
08556 #line 3017 "parse.y"
08557     {
08558                     /*%%%*/
08559                         (yyval.node) = NEW_REDO();
08560                     /*%
08561                         $$ = dispatch0(redo);
08562                     %*/
08563                     }
08564     break;
08565 
08566   case 337:
08567 
08568 /* Line 1806 of yacc.c  */
08569 #line 3025 "parse.y"
08570     {
08571                     /*%%%*/
08572                         (yyval.node) = NEW_RETRY();
08573                     /*%
08574                         $$ = dispatch0(retry);
08575                     %*/
08576                     }
08577     break;
08578 
08579   case 338:
08580 
08581 /* Line 1806 of yacc.c  */
08582 #line 3035 "parse.y"
08583     {
08584                     /*%%%*/
08585                         value_expr((yyvsp[(1) - (1)].node));
08586                         (yyval.node) = (yyvsp[(1) - (1)].node);
08587                         if (!(yyval.node)) (yyval.node) = NEW_NIL();
08588                     /*%
08589                         $$ = $1;
08590                     %*/
08591                     }
08592     break;
08593 
08594   case 339:
08595 
08596 /* Line 1806 of yacc.c  */
08597 #line 3047 "parse.y"
08598     {
08599                         token_info_push("begin");
08600                     }
08601     break;
08602 
08603   case 340:
08604 
08605 /* Line 1806 of yacc.c  */
08606 #line 3053 "parse.y"
08607     {
08608                         token_info_push("if");
08609                     }
08610     break;
08611 
08612   case 341:
08613 
08614 /* Line 1806 of yacc.c  */
08615 #line 3059 "parse.y"
08616     {
08617                         token_info_push("unless");
08618                     }
08619     break;
08620 
08621   case 342:
08622 
08623 /* Line 1806 of yacc.c  */
08624 #line 3065 "parse.y"
08625     {
08626                         token_info_push("while");
08627                     }
08628     break;
08629 
08630   case 343:
08631 
08632 /* Line 1806 of yacc.c  */
08633 #line 3071 "parse.y"
08634     {
08635                         token_info_push("until");
08636                     }
08637     break;
08638 
08639   case 344:
08640 
08641 /* Line 1806 of yacc.c  */
08642 #line 3077 "parse.y"
08643     {
08644                         token_info_push("case");
08645                     }
08646     break;
08647 
08648   case 345:
08649 
08650 /* Line 1806 of yacc.c  */
08651 #line 3083 "parse.y"
08652     {
08653                         token_info_push("for");
08654                     }
08655     break;
08656 
08657   case 346:
08658 
08659 /* Line 1806 of yacc.c  */
08660 #line 3089 "parse.y"
08661     {
08662                         token_info_push("class");
08663                     }
08664     break;
08665 
08666   case 347:
08667 
08668 /* Line 1806 of yacc.c  */
08669 #line 3095 "parse.y"
08670     {
08671                         token_info_push("module");
08672                     }
08673     break;
08674 
08675   case 348:
08676 
08677 /* Line 1806 of yacc.c  */
08678 #line 3101 "parse.y"
08679     {
08680                         token_info_push("def");
08681                     /*%%%*/
08682                         (yyval.num) = ruby_sourceline;
08683                     /*%
08684                     %*/
08685                     }
08686     break;
08687 
08688   case 349:
08689 
08690 /* Line 1806 of yacc.c  */
08691 #line 3111 "parse.y"
08692     {
08693                         token_info_pop("end");
08694                     }
08695     break;
08696 
08697   case 356:
08698 
08699 /* Line 1806 of yacc.c  */
08700 #line 3141 "parse.y"
08701     {
08702                     /*%%%*/
08703                         (yyval.node) = NEW_IF(cond((yyvsp[(2) - (5)].node)), (yyvsp[(4) - (5)].node), (yyvsp[(5) - (5)].node));
08704                         fixpos((yyval.node), (yyvsp[(2) - (5)].node));
08705                     /*%
08706                         $$ = dispatch3(elsif, $2, $4, escape_Qundef($5));
08707                     %*/
08708                     }
08709     break;
08710 
08711   case 358:
08712 
08713 /* Line 1806 of yacc.c  */
08714 #line 3153 "parse.y"
08715     {
08716                     /*%%%*/
08717                         (yyval.node) = (yyvsp[(2) - (2)].node);
08718                     /*%
08719                         $$ = dispatch1(else, $2);
08720                     %*/
08721                     }
08722     break;
08723 
08724   case 361:
08725 
08726 /* Line 1806 of yacc.c  */
08727 #line 3167 "parse.y"
08728     {
08729                         (yyval.node) = assignable((yyvsp[(1) - (1)].id), 0);
08730                     /*%%%*/
08731                     /*%
08732                         $$ = dispatch1(mlhs_paren, $$);
08733                     %*/
08734                     }
08735     break;
08736 
08737   case 362:
08738 
08739 /* Line 1806 of yacc.c  */
08740 #line 3175 "parse.y"
08741     {
08742                     /*%%%*/
08743                         (yyval.node) = (yyvsp[(2) - (3)].node);
08744                     /*%
08745                         $$ = dispatch1(mlhs_paren, $2);
08746                     %*/
08747                     }
08748     break;
08749 
08750   case 363:
08751 
08752 /* Line 1806 of yacc.c  */
08753 #line 3185 "parse.y"
08754     {
08755                     /*%%%*/
08756                         (yyval.node) = NEW_LIST((yyvsp[(1) - (1)].node));
08757                     /*%
08758                         $$ = mlhs_add(mlhs_new(), $1);
08759                     %*/
08760                     }
08761     break;
08762 
08763   case 364:
08764 
08765 /* Line 1806 of yacc.c  */
08766 #line 3193 "parse.y"
08767     {
08768                     /*%%%*/
08769                         (yyval.node) = list_append((yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));
08770                     /*%
08771                         $$ = mlhs_add($1, $3);
08772                     %*/
08773                     }
08774     break;
08775 
08776   case 365:
08777 
08778 /* Line 1806 of yacc.c  */
08779 #line 3203 "parse.y"
08780     {
08781                     /*%%%*/
08782                         (yyval.node) = NEW_MASGN((yyvsp[(1) - (1)].node), 0);
08783                     /*%
08784                         $$ = $1;
08785                     %*/
08786                     }
08787     break;
08788 
08789   case 366:
08790 
08791 /* Line 1806 of yacc.c  */
08792 #line 3211 "parse.y"
08793     {
08794                         (yyval.node) = assignable((yyvsp[(4) - (4)].id), 0);
08795                     /*%%%*/
08796                         (yyval.node) = NEW_MASGN((yyvsp[(1) - (4)].node), (yyval.node));
08797                     /*%
08798                         $$ = mlhs_add_star($1, $$);
08799                     %*/
08800                     }
08801     break;
08802 
08803   case 367:
08804 
08805 /* Line 1806 of yacc.c  */
08806 #line 3220 "parse.y"
08807     {
08808                         (yyval.node) = assignable((yyvsp[(4) - (6)].id), 0);
08809                     /*%%%*/
08810                         (yyval.node) = NEW_MASGN((yyvsp[(1) - (6)].node), NEW_POSTARG((yyval.node), (yyvsp[(6) - (6)].node)));
08811                     /*%
08812                         $$ = mlhs_add_star($1, $$);
08813                     %*/
08814                     }
08815     break;
08816 
08817   case 368:
08818 
08819 /* Line 1806 of yacc.c  */
08820 #line 3229 "parse.y"
08821     {
08822                     /*%%%*/
08823                         (yyval.node) = NEW_MASGN((yyvsp[(1) - (3)].node), -1);
08824                     /*%
08825                         $$ = mlhs_add_star($1, Qnil);
08826                     %*/
08827                     }
08828     break;
08829 
08830   case 369:
08831 
08832 /* Line 1806 of yacc.c  */
08833 #line 3237 "parse.y"
08834     {
08835                     /*%%%*/
08836                         (yyval.node) = NEW_MASGN((yyvsp[(1) - (5)].node), NEW_POSTARG(-1, (yyvsp[(5) - (5)].node)));
08837                     /*%
08838                         $$ = mlhs_add_star($1, $5);
08839                     %*/
08840                     }
08841     break;
08842 
08843   case 370:
08844 
08845 /* Line 1806 of yacc.c  */
08846 #line 3245 "parse.y"
08847     {
08848                         (yyval.node) = assignable((yyvsp[(2) - (2)].id), 0);
08849                     /*%%%*/
08850                         (yyval.node) = NEW_MASGN(0, (yyval.node));
08851                     /*%
08852                         $$ = mlhs_add_star(mlhs_new(), $$);
08853                     %*/
08854                     }
08855     break;
08856 
08857   case 371:
08858 
08859 /* Line 1806 of yacc.c  */
08860 #line 3254 "parse.y"
08861     {
08862                         (yyval.node) = assignable((yyvsp[(2) - (4)].id), 0);
08863                     /*%%%*/
08864                         (yyval.node) = NEW_MASGN(0, NEW_POSTARG((yyval.node), (yyvsp[(4) - (4)].node)));
08865                     /*%
08866                       #if 0
08867                       TODO: Check me
08868                       #endif
08869                         $$ = mlhs_add_star($$, $4);
08870                     %*/
08871                     }
08872     break;
08873 
08874   case 372:
08875 
08876 /* Line 1806 of yacc.c  */
08877 #line 3266 "parse.y"
08878     {
08879                     /*%%%*/
08880                         (yyval.node) = NEW_MASGN(0, -1);
08881                     /*%
08882                         $$ = mlhs_add_star(mlhs_new(), Qnil);
08883                     %*/
08884                     }
08885     break;
08886 
08887   case 373:
08888 
08889 /* Line 1806 of yacc.c  */
08890 #line 3274 "parse.y"
08891     {
08892                     /*%%%*/
08893                         (yyval.node) = NEW_MASGN(0, NEW_POSTARG(-1, (yyvsp[(3) - (3)].node)));
08894                     /*%
08895                         $$ = mlhs_add_star(mlhs_new(), Qnil);
08896                     %*/
08897                     }
08898     break;
08899 
08900   case 374:
08901 
08902 /* Line 1806 of yacc.c  */
08903 #line 3285 "parse.y"
08904     {
08905                         (yyval.node) = new_args_tail((yyvsp[(1) - (4)].node), (yyvsp[(3) - (4)].id), (yyvsp[(4) - (4)].id));
08906                     }
08907     break;
08908 
08909   case 375:
08910 
08911 /* Line 1806 of yacc.c  */
08912 #line 3289 "parse.y"
08913     {
08914                         (yyval.node) = new_args_tail((yyvsp[(1) - (2)].node), Qnone, (yyvsp[(2) - (2)].id));
08915                     }
08916     break;
08917 
08918   case 376:
08919 
08920 /* Line 1806 of yacc.c  */
08921 #line 3293 "parse.y"
08922     {
08923                         (yyval.node) = new_args_tail(Qnone, (yyvsp[(1) - (2)].id), (yyvsp[(2) - (2)].id));
08924                     }
08925     break;
08926 
08927   case 377:
08928 
08929 /* Line 1806 of yacc.c  */
08930 #line 3297 "parse.y"
08931     {
08932                         (yyval.node) = new_args_tail(Qnone, Qnone, (yyvsp[(1) - (1)].id));
08933                     }
08934     break;
08935 
08936   case 378:
08937 
08938 /* Line 1806 of yacc.c  */
08939 #line 3303 "parse.y"
08940     {
08941                         (yyval.node) = (yyvsp[(2) - (2)].node);
08942                     }
08943     break;
08944 
08945   case 379:
08946 
08947 /* Line 1806 of yacc.c  */
08948 #line 3307 "parse.y"
08949     {
08950                         (yyval.node) = new_args_tail(Qnone, Qnone, Qnone);
08951                     }
08952     break;
08953 
08954   case 380:
08955 
08956 /* Line 1806 of yacc.c  */
08957 #line 3313 "parse.y"
08958     {
08959                         (yyval.node) = new_args((yyvsp[(1) - (6)].node), (yyvsp[(3) - (6)].node), (yyvsp[(5) - (6)].id), Qnone, (yyvsp[(6) - (6)].node));
08960                     }
08961     break;
08962 
08963   case 381:
08964 
08965 /* Line 1806 of yacc.c  */
08966 #line 3317 "parse.y"
08967     {
08968                         (yyval.node) = new_args((yyvsp[(1) - (8)].node), (yyvsp[(3) - (8)].node), (yyvsp[(5) - (8)].id), (yyvsp[(7) - (8)].node), (yyvsp[(8) - (8)].node));
08969                     }
08970     break;
08971 
08972   case 382:
08973 
08974 /* Line 1806 of yacc.c  */
08975 #line 3321 "parse.y"
08976     {
08977                         (yyval.node) = new_args((yyvsp[(1) - (4)].node), (yyvsp[(3) - (4)].node), Qnone, Qnone, (yyvsp[(4) - (4)].node));
08978                     }
08979     break;
08980 
08981   case 383:
08982 
08983 /* Line 1806 of yacc.c  */
08984 #line 3325 "parse.y"
08985     {
08986                         (yyval.node) = new_args((yyvsp[(1) - (6)].node), (yyvsp[(3) - (6)].node), Qnone, (yyvsp[(5) - (6)].node), (yyvsp[(6) - (6)].node));
08987                     }
08988     break;
08989 
08990   case 384:
08991 
08992 /* Line 1806 of yacc.c  */
08993 #line 3329 "parse.y"
08994     {
08995                         (yyval.node) = new_args((yyvsp[(1) - (4)].node), Qnone, (yyvsp[(3) - (4)].id), Qnone, (yyvsp[(4) - (4)].node));
08996                     }
08997     break;
08998 
08999   case 385:
09000 
09001 /* Line 1806 of yacc.c  */
09002 #line 3333 "parse.y"
09003     {
09004                         (yyval.node) = new_args((yyvsp[(1) - (2)].node), Qnone, 1, Qnone, new_args_tail(Qnone, Qnone, Qnone));
09005                     /*%%%*/
09006                     /*%
09007                         dispatch1(excessed_comma, $$);
09008                     %*/
09009                     }
09010     break;
09011 
09012   case 386:
09013 
09014 /* Line 1806 of yacc.c  */
09015 #line 3341 "parse.y"
09016     {
09017                         (yyval.node) = new_args((yyvsp[(1) - (6)].node), Qnone, (yyvsp[(3) - (6)].id), (yyvsp[(5) - (6)].node), (yyvsp[(6) - (6)].node));
09018                     }
09019     break;
09020 
09021   case 387:
09022 
09023 /* Line 1806 of yacc.c  */
09024 #line 3345 "parse.y"
09025     {
09026                         (yyval.node) = new_args((yyvsp[(1) - (2)].node), Qnone, Qnone, Qnone, (yyvsp[(2) - (2)].node));
09027                     }
09028     break;
09029 
09030   case 388:
09031 
09032 /* Line 1806 of yacc.c  */
09033 #line 3349 "parse.y"
09034     {
09035                         (yyval.node) = new_args(Qnone, (yyvsp[(1) - (4)].node), (yyvsp[(3) - (4)].id), Qnone, (yyvsp[(4) - (4)].node));
09036                     }
09037     break;
09038 
09039   case 389:
09040 
09041 /* Line 1806 of yacc.c  */
09042 #line 3353 "parse.y"
09043     {
09044                         (yyval.node) = new_args(Qnone, (yyvsp[(1) - (6)].node), (yyvsp[(3) - (6)].id), (yyvsp[(5) - (6)].node), (yyvsp[(6) - (6)].node));
09045                     }
09046     break;
09047 
09048   case 390:
09049 
09050 /* Line 1806 of yacc.c  */
09051 #line 3357 "parse.y"
09052     {
09053                         (yyval.node) = new_args(Qnone, (yyvsp[(1) - (2)].node), Qnone, Qnone, (yyvsp[(2) - (2)].node));
09054                     }
09055     break;
09056 
09057   case 391:
09058 
09059 /* Line 1806 of yacc.c  */
09060 #line 3361 "parse.y"
09061     {
09062                         (yyval.node) = new_args(Qnone, (yyvsp[(1) - (4)].node), Qnone, (yyvsp[(3) - (4)].node), (yyvsp[(4) - (4)].node));
09063                     }
09064     break;
09065 
09066   case 392:
09067 
09068 /* Line 1806 of yacc.c  */
09069 #line 3365 "parse.y"
09070     {
09071                         (yyval.node) = new_args(Qnone, Qnone, (yyvsp[(1) - (2)].id), Qnone, (yyvsp[(2) - (2)].node));
09072                     }
09073     break;
09074 
09075   case 393:
09076 
09077 /* Line 1806 of yacc.c  */
09078 #line 3369 "parse.y"
09079     {
09080                         (yyval.node) = new_args(Qnone, Qnone, (yyvsp[(1) - (4)].id), (yyvsp[(3) - (4)].node), (yyvsp[(4) - (4)].node));
09081                     }
09082     break;
09083 
09084   case 394:
09085 
09086 /* Line 1806 of yacc.c  */
09087 #line 3373 "parse.y"
09088     {
09089                         (yyval.node) = new_args(Qnone, Qnone, Qnone, Qnone, (yyvsp[(1) - (1)].node));
09090                     }
09091     break;
09092 
09093   case 396:
09094 
09095 /* Line 1806 of yacc.c  */
09096 #line 3380 "parse.y"
09097     {
09098                         command_start = TRUE;
09099                     }
09100     break;
09101 
09102   case 397:
09103 
09104 /* Line 1806 of yacc.c  */
09105 #line 3386 "parse.y"
09106     {
09107                     /*%%%*/
09108                         (yyval.node) = 0;
09109                     /*%
09110                         $$ = blockvar_new(params_new(Qnil,Qnil,Qnil,Qnil,Qnil,Qnil,Qnil),
09111                                           escape_Qundef($2));
09112                     %*/
09113                     }
09114     break;
09115 
09116   case 398:
09117 
09118 /* Line 1806 of yacc.c  */
09119 #line 3395 "parse.y"
09120     {
09121                     /*%%%*/
09122                         (yyval.node) = 0;
09123                     /*%
09124                         $$ = blockvar_new(params_new(Qnil,Qnil,Qnil,Qnil,Qnil,Qnil,Qnil),
09125                                           Qnil);
09126                     %*/
09127                     }
09128     break;
09129 
09130   case 399:
09131 
09132 /* Line 1806 of yacc.c  */
09133 #line 3404 "parse.y"
09134     {
09135                     /*%%%*/
09136                         (yyval.node) = (yyvsp[(2) - (4)].node);
09137                     /*%
09138                         $$ = blockvar_new(escape_Qundef($2), escape_Qundef($3));
09139                     %*/
09140                     }
09141     break;
09142 
09143   case 400:
09144 
09145 /* Line 1806 of yacc.c  */
09146 #line 3415 "parse.y"
09147     {
09148                       (yyval.node) = 0;
09149                     }
09150     break;
09151 
09152   case 401:
09153 
09154 /* Line 1806 of yacc.c  */
09155 #line 3419 "parse.y"
09156     {
09157                     /*%%%*/
09158                         (yyval.node) = 0;
09159                     /*%
09160                         $$ = $3;
09161                     %*/
09162                     }
09163     break;
09164 
09165   case 404:
09166 
09167 /* Line 1806 of yacc.c  */
09168 #line 3445 "parse.y"
09169     {
09170                         new_bv(get_id((yyvsp[(1) - (1)].id)));
09171                     /*%%%*/
09172                     /*%
09173                         $$ = get_value($1);
09174                     %*/
09175                     }
09176     break;
09177 
09178   case 405:
09179 
09180 /* Line 1806 of yacc.c  */
09181 #line 3453 "parse.y"
09182     {
09183                         (yyval.node) = 0;
09184                     }
09185     break;
09186 
09187   case 406:
09188 
09189 /* Line 1806 of yacc.c  */
09190 #line 3458 "parse.y"
09191     {
09192                         (yyval.vars) = dyna_push();
09193                     }
09194     break;
09195 
09196   case 407:
09197 
09198 /* Line 1806 of yacc.c  */
09199 #line 3461 "parse.y"
09200     {
09201                         (yyval.num) = lpar_beg;
09202                         lpar_beg = ++paren_nest;
09203                     }
09204     break;
09205 
09206   case 408:
09207 
09208 /* Line 1806 of yacc.c  */
09209 #line 3466 "parse.y"
09210     {
09211                         (yyval.num) = ruby_sourceline;
09212                     }
09213     break;
09214 
09215   case 409:
09216 
09217 /* Line 1806 of yacc.c  */
09218 #line 3470 "parse.y"
09219     {
09220                         lpar_beg = (yyvsp[(2) - (5)].num);
09221                     /*%%%*/
09222                         (yyval.node) = NEW_LAMBDA((yyvsp[(3) - (5)].node), (yyvsp[(5) - (5)].node));
09223                         nd_set_line((yyval.node), (yyvsp[(4) - (5)].num));
09224                     /*%
09225                         $$ = dispatch2(lambda, $3, $5);
09226                     %*/
09227                         dyna_pop((yyvsp[(1) - (5)].vars));
09228                     }
09229     break;
09230 
09231   case 410:
09232 
09233 /* Line 1806 of yacc.c  */
09234 #line 3483 "parse.y"
09235     {
09236                     /*%%%*/
09237                         (yyval.node) = (yyvsp[(2) - (4)].node);
09238                     /*%
09239                         $$ = dispatch1(paren, $2);
09240                     %*/
09241                     }
09242     break;
09243 
09244   case 411:
09245 
09246 /* Line 1806 of yacc.c  */
09247 #line 3491 "parse.y"
09248     {
09249                     /*%%%*/
09250                         (yyval.node) = (yyvsp[(1) - (1)].node);
09251                     /*%
09252                         $$ = $1;
09253                     %*/
09254                     }
09255     break;
09256 
09257   case 412:
09258 
09259 /* Line 1806 of yacc.c  */
09260 #line 3501 "parse.y"
09261     {
09262                         (yyval.node) = (yyvsp[(2) - (3)].node);
09263                     }
09264     break;
09265 
09266   case 413:
09267 
09268 /* Line 1806 of yacc.c  */
09269 #line 3505 "parse.y"
09270     {
09271                         (yyval.node) = (yyvsp[(2) - (3)].node);
09272                     }
09273     break;
09274 
09275   case 414:
09276 
09277 /* Line 1806 of yacc.c  */
09278 #line 3511 "parse.y"
09279     {
09280                         (yyvsp[(1) - (1)].vars) = dyna_push();
09281                     /*%%%*/
09282                         (yyval.num) = ruby_sourceline;
09283                     /*% %*/
09284                     }
09285     break;
09286 
09287   case 415:
09288 
09289 /* Line 1806 of yacc.c  */
09290 #line 3520 "parse.y"
09291     {
09292                     /*%%%*/
09293                         (yyval.node) = NEW_ITER((yyvsp[(3) - (5)].node),(yyvsp[(4) - (5)].node));
09294                         nd_set_line((yyval.node), (yyvsp[(2) - (5)].num));
09295                     /*%
09296                         $$ = dispatch2(do_block, escape_Qundef($3), $4);
09297                     %*/
09298                         dyna_pop((yyvsp[(1) - (5)].vars));
09299                     }
09300     break;
09301 
09302   case 416:
09303 
09304 /* Line 1806 of yacc.c  */
09305 #line 3532 "parse.y"
09306     {
09307                     /*%%%*/
09308                         if (nd_type((yyvsp[(1) - (2)].node)) == NODE_YIELD) {
09309                             compile_error(PARSER_ARG "block given to yield");
09310                         }
09311                         else {
09312                             block_dup_check((yyvsp[(1) - (2)].node)->nd_args, (yyvsp[(2) - (2)].node));
09313                         }
09314                         (yyvsp[(2) - (2)].node)->nd_iter = (yyvsp[(1) - (2)].node);
09315                         (yyval.node) = (yyvsp[(2) - (2)].node);
09316                         fixpos((yyval.node), (yyvsp[(1) - (2)].node));
09317                     /*%
09318                         $$ = method_add_block($1, $2);
09319                     %*/
09320                     }
09321     break;
09322 
09323   case 417:
09324 
09325 /* Line 1806 of yacc.c  */
09326 #line 3548 "parse.y"
09327     {
09328                     /*%%%*/
09329                         (yyval.node) = NEW_CALL((yyvsp[(1) - (4)].node), (yyvsp[(3) - (4)].id), (yyvsp[(4) - (4)].node));
09330                     /*%
09331                         $$ = dispatch3(call, $1, $2, $3);
09332                         $$ = method_optarg($$, $4);
09333                     %*/
09334                     }
09335     break;
09336 
09337   case 418:
09338 
09339 /* Line 1806 of yacc.c  */
09340 #line 3557 "parse.y"
09341     {
09342                     /*%%%*/
09343                         block_dup_check((yyvsp[(4) - (5)].node), (yyvsp[(5) - (5)].node));
09344                         (yyvsp[(5) - (5)].node)->nd_iter = NEW_CALL((yyvsp[(1) - (5)].node), (yyvsp[(3) - (5)].id), (yyvsp[(4) - (5)].node));
09345                         (yyval.node) = (yyvsp[(5) - (5)].node);
09346                         fixpos((yyval.node), (yyvsp[(1) - (5)].node));
09347                     /*%
09348                         $$ = dispatch4(command_call, $1, $2, $3, $4);
09349                         $$ = method_add_block($$, $5);
09350                     %*/
09351                     }
09352     break;
09353 
09354   case 419:
09355 
09356 /* Line 1806 of yacc.c  */
09357 #line 3569 "parse.y"
09358     {
09359                     /*%%%*/
09360                         block_dup_check((yyvsp[(4) - (5)].node), (yyvsp[(5) - (5)].node));
09361                         (yyvsp[(5) - (5)].node)->nd_iter = NEW_CALL((yyvsp[(1) - (5)].node), (yyvsp[(3) - (5)].id), (yyvsp[(4) - (5)].node));
09362                         (yyval.node) = (yyvsp[(5) - (5)].node);
09363                         fixpos((yyval.node), (yyvsp[(1) - (5)].node));
09364                     /*%
09365                         $$ = dispatch4(command_call, $1, $2, $3, $4);
09366                         $$ = method_add_block($$, $5);
09367                     %*/
09368                     }
09369     break;
09370 
09371   case 420:
09372 
09373 /* Line 1806 of yacc.c  */
09374 #line 3583 "parse.y"
09375     {
09376                     /*%%%*/
09377                         (yyval.node) = (yyvsp[(1) - (2)].node);
09378                         (yyval.node)->nd_args = (yyvsp[(2) - (2)].node);
09379                     /*%
09380                         $$ = method_arg(dispatch1(fcall, $1), $2);
09381                     %*/
09382                     }
09383     break;
09384 
09385   case 421:
09386 
09387 /* Line 1806 of yacc.c  */
09388 #line 3592 "parse.y"
09389     {
09390                     /*%%%*/
09391                         (yyval.num) = ruby_sourceline;
09392                     /*% %*/
09393                     }
09394     break;
09395 
09396   case 422:
09397 
09398 /* Line 1806 of yacc.c  */
09399 #line 3598 "parse.y"
09400     {
09401                     /*%%%*/
09402                         (yyval.node) = NEW_CALL((yyvsp[(1) - (5)].node), (yyvsp[(3) - (5)].id), (yyvsp[(5) - (5)].node));
09403                         nd_set_line((yyval.node), (yyvsp[(4) - (5)].num));
09404                     /*%
09405                         $$ = dispatch3(call, $1, ripper_id2sym('.'), $3);
09406                         $$ = method_optarg($$, $5);
09407                     %*/
09408                     }
09409     break;
09410 
09411   case 423:
09412 
09413 /* Line 1806 of yacc.c  */
09414 #line 3608 "parse.y"
09415     {
09416                     /*%%%*/
09417                         (yyval.num) = ruby_sourceline;
09418                     /*% %*/
09419                     }
09420     break;
09421 
09422   case 424:
09423 
09424 /* Line 1806 of yacc.c  */
09425 #line 3614 "parse.y"
09426     {
09427                     /*%%%*/
09428                         (yyval.node) = NEW_CALL((yyvsp[(1) - (5)].node), (yyvsp[(3) - (5)].id), (yyvsp[(5) - (5)].node));
09429                         nd_set_line((yyval.node), (yyvsp[(4) - (5)].num));
09430                     /*%
09431                         $$ = dispatch3(call, $1, ripper_id2sym('.'), $3);
09432                         $$ = method_optarg($$, $5);
09433                     %*/
09434                     }
09435     break;
09436 
09437   case 425:
09438 
09439 /* Line 1806 of yacc.c  */
09440 #line 3624 "parse.y"
09441     {
09442                     /*%%%*/
09443                         (yyval.node) = NEW_CALL((yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].id), 0);
09444                     /*%
09445                         $$ = dispatch3(call, $1, ripper_intern("::"), $3);
09446                     %*/
09447                     }
09448     break;
09449 
09450   case 426:
09451 
09452 /* Line 1806 of yacc.c  */
09453 #line 3632 "parse.y"
09454     {
09455                     /*%%%*/
09456                         (yyval.num) = ruby_sourceline;
09457                     /*% %*/
09458                     }
09459     break;
09460 
09461   case 427:
09462 
09463 /* Line 1806 of yacc.c  */
09464 #line 3638 "parse.y"
09465     {
09466                     /*%%%*/
09467                         (yyval.node) = NEW_CALL((yyvsp[(1) - (4)].node), rb_intern("call"), (yyvsp[(4) - (4)].node));
09468                         nd_set_line((yyval.node), (yyvsp[(3) - (4)].num));
09469                     /*%
09470                         $$ = dispatch3(call, $1, ripper_id2sym('.'),
09471                                        ripper_intern("call"));
09472                         $$ = method_optarg($$, $4);
09473                     %*/
09474                     }
09475     break;
09476 
09477   case 428:
09478 
09479 /* Line 1806 of yacc.c  */
09480 #line 3649 "parse.y"
09481     {
09482                     /*%%%*/
09483                         (yyval.num) = ruby_sourceline;
09484                     /*% %*/
09485                     }
09486     break;
09487 
09488   case 429:
09489 
09490 /* Line 1806 of yacc.c  */
09491 #line 3655 "parse.y"
09492     {
09493                     /*%%%*/
09494                         (yyval.node) = NEW_CALL((yyvsp[(1) - (4)].node), rb_intern("call"), (yyvsp[(4) - (4)].node));
09495                         nd_set_line((yyval.node), (yyvsp[(3) - (4)].num));
09496                     /*%
09497                         $$ = dispatch3(call, $1, ripper_intern("::"),
09498                                        ripper_intern("call"));
09499                         $$ = method_optarg($$, $4);
09500                     %*/
09501                     }
09502     break;
09503 
09504   case 430:
09505 
09506 /* Line 1806 of yacc.c  */
09507 #line 3666 "parse.y"
09508     {
09509                     /*%%%*/
09510                         (yyval.node) = NEW_SUPER((yyvsp[(2) - (2)].node));
09511                     /*%
09512                         $$ = dispatch1(super, $2);
09513                     %*/
09514                     }
09515     break;
09516 
09517   case 431:
09518 
09519 /* Line 1806 of yacc.c  */
09520 #line 3674 "parse.y"
09521     {
09522                     /*%%%*/
09523                         (yyval.node) = NEW_ZSUPER();
09524                     /*%
09525                         $$ = dispatch0(zsuper);
09526                     %*/
09527                     }
09528     break;
09529 
09530   case 432:
09531 
09532 /* Line 1806 of yacc.c  */
09533 #line 3682 "parse.y"
09534     {
09535                     /*%%%*/
09536                         if ((yyvsp[(1) - (4)].node) && nd_type((yyvsp[(1) - (4)].node)) == NODE_SELF)
09537                             (yyval.node) = NEW_FCALL(tAREF, (yyvsp[(3) - (4)].node));
09538                         else
09539                             (yyval.node) = NEW_CALL((yyvsp[(1) - (4)].node), tAREF, (yyvsp[(3) - (4)].node));
09540                         fixpos((yyval.node), (yyvsp[(1) - (4)].node));
09541                     /*%
09542                         $$ = dispatch2(aref, $1, escape_Qundef($3));
09543                     %*/
09544                     }
09545     break;
09546 
09547   case 433:
09548 
09549 /* Line 1806 of yacc.c  */
09550 #line 3696 "parse.y"
09551     {
09552                         (yyvsp[(1) - (1)].vars) = dyna_push();
09553                     /*%%%*/
09554                         (yyval.num) = ruby_sourceline;
09555                     /*%
09556                     %*/
09557                     }
09558     break;
09559 
09560   case 434:
09561 
09562 /* Line 1806 of yacc.c  */
09563 #line 3705 "parse.y"
09564     {
09565                     /*%%%*/
09566                         (yyval.node) = NEW_ITER((yyvsp[(3) - (5)].node),(yyvsp[(4) - (5)].node));
09567                         nd_set_line((yyval.node), (yyvsp[(2) - (5)].num));
09568                     /*%
09569                         $$ = dispatch2(brace_block, escape_Qundef($3), $4);
09570                     %*/
09571                         dyna_pop((yyvsp[(1) - (5)].vars));
09572                     }
09573     break;
09574 
09575   case 435:
09576 
09577 /* Line 1806 of yacc.c  */
09578 #line 3715 "parse.y"
09579     {
09580                         (yyvsp[(1) - (1)].vars) = dyna_push();
09581                     /*%%%*/
09582                         (yyval.num) = ruby_sourceline;
09583                     /*%
09584                     %*/
09585                     }
09586     break;
09587 
09588   case 436:
09589 
09590 /* Line 1806 of yacc.c  */
09591 #line 3724 "parse.y"
09592     {
09593                     /*%%%*/
09594                         (yyval.node) = NEW_ITER((yyvsp[(3) - (5)].node),(yyvsp[(4) - (5)].node));
09595                         nd_set_line((yyval.node), (yyvsp[(2) - (5)].num));
09596                     /*%
09597                         $$ = dispatch2(do_block, escape_Qundef($3), $4);
09598                     %*/
09599                         dyna_pop((yyvsp[(1) - (5)].vars));
09600                     }
09601     break;
09602 
09603   case 437:
09604 
09605 /* Line 1806 of yacc.c  */
09606 #line 3738 "parse.y"
09607     {
09608                     /*%%%*/
09609                         (yyval.node) = NEW_WHEN((yyvsp[(2) - (5)].node), (yyvsp[(4) - (5)].node), (yyvsp[(5) - (5)].node));
09610                     /*%
09611                         $$ = dispatch3(when, $2, $4, escape_Qundef($5));
09612                     %*/
09613                     }
09614     break;
09615 
09616   case 440:
09617 
09618 /* Line 1806 of yacc.c  */
09619 #line 3754 "parse.y"
09620     {
09621                     /*%%%*/
09622                         if ((yyvsp[(3) - (6)].node)) {
09623                             (yyvsp[(3) - (6)].node) = node_assign((yyvsp[(3) - (6)].node), NEW_ERRINFO());
09624                             (yyvsp[(5) - (6)].node) = block_append((yyvsp[(3) - (6)].node), (yyvsp[(5) - (6)].node));
09625                         }
09626                         (yyval.node) = NEW_RESBODY((yyvsp[(2) - (6)].node), (yyvsp[(5) - (6)].node), (yyvsp[(6) - (6)].node));
09627                         fixpos((yyval.node), (yyvsp[(2) - (6)].node)?(yyvsp[(2) - (6)].node):(yyvsp[(5) - (6)].node));
09628                     /*%
09629                         $$ = dispatch4(rescue,
09630                                        escape_Qundef($2),
09631                                        escape_Qundef($3),
09632                                        escape_Qundef($5),
09633                                        escape_Qundef($6));
09634                     %*/
09635                     }
09636     break;
09637 
09638   case 442:
09639 
09640 /* Line 1806 of yacc.c  */
09641 #line 3774 "parse.y"
09642     {
09643                     /*%%%*/
09644                         (yyval.node) = NEW_LIST((yyvsp[(1) - (1)].node));
09645                     /*%
09646                         $$ = rb_ary_new3(1, $1);
09647                     %*/
09648                     }
09649     break;
09650 
09651   case 443:
09652 
09653 /* Line 1806 of yacc.c  */
09654 #line 3782 "parse.y"
09655     {
09656                     /*%%%*/
09657                         if (!((yyval.node) = splat_array((yyvsp[(1) - (1)].node)))) (yyval.node) = (yyvsp[(1) - (1)].node);
09658                     /*%
09659                         $$ = $1;
09660                     %*/
09661                     }
09662     break;
09663 
09664   case 445:
09665 
09666 /* Line 1806 of yacc.c  */
09667 #line 3793 "parse.y"
09668     {
09669                         (yyval.node) = (yyvsp[(2) - (2)].node);
09670                     }
09671     break;
09672 
09673   case 447:
09674 
09675 /* Line 1806 of yacc.c  */
09676 #line 3800 "parse.y"
09677     {
09678                     /*%%%*/
09679                         (yyval.node) = (yyvsp[(2) - (2)].node);
09680                     /*%
09681                         $$ = dispatch1(ensure, $2);
09682                     %*/
09683                     }
09684     break;
09685 
09686   case 450:
09687 
09688 /* Line 1806 of yacc.c  */
09689 #line 3812 "parse.y"
09690     {
09691                     /*%%%*/
09692                         (yyval.node) = NEW_LIT(ID2SYM((yyvsp[(1) - (1)].id)));
09693                     /*%
09694                         $$ = dispatch1(symbol_literal, $1);
09695                     %*/
09696                     }
09697     break;
09698 
09699   case 452:
09700 
09701 /* Line 1806 of yacc.c  */
09702 #line 3823 "parse.y"
09703     {
09704                     /*%%%*/
09705                         NODE *node = (yyvsp[(1) - (1)].node);
09706                         if (!node) {
09707                             node = NEW_STR(STR_NEW0());
09708                         }
09709                         else {
09710                             node = evstr2dstr(node);
09711                         }
09712                         (yyval.node) = node;
09713                     /*%
09714                         $$ = $1;
09715                     %*/
09716                     }
09717     break;
09718 
09719   case 455:
09720 
09721 /* Line 1806 of yacc.c  */
09722 #line 3842 "parse.y"
09723     {
09724                     /*%%%*/
09725                         (yyval.node) = literal_concat((yyvsp[(1) - (2)].node), (yyvsp[(2) - (2)].node));
09726                     /*%
09727                         $$ = dispatch2(string_concat, $1, $2);
09728                     %*/
09729                     }
09730     break;
09731 
09732   case 456:
09733 
09734 /* Line 1806 of yacc.c  */
09735 #line 3852 "parse.y"
09736     {
09737                     /*%%%*/
09738                         (yyval.node) = (yyvsp[(2) - (3)].node);
09739                     /*%
09740                         $$ = dispatch1(string_literal, $2);
09741                     %*/
09742                     }
09743     break;
09744 
09745   case 457:
09746 
09747 /* Line 1806 of yacc.c  */
09748 #line 3862 "parse.y"
09749     {
09750                     /*%%%*/
09751                         NODE *node = (yyvsp[(2) - (3)].node);
09752                         if (!node) {
09753                             node = NEW_XSTR(STR_NEW0());
09754                         }
09755                         else {
09756                             switch (nd_type(node)) {
09757                               case NODE_STR:
09758                                 nd_set_type(node, NODE_XSTR);
09759                                 break;
09760                               case NODE_DSTR:
09761                                 nd_set_type(node, NODE_DXSTR);
09762                                 break;
09763                               default:
09764                                 node = NEW_NODE(NODE_DXSTR, Qnil, 1, NEW_LIST(node));
09765                                 break;
09766                             }
09767                         }
09768                         (yyval.node) = node;
09769                     /*%
09770                         $$ = dispatch1(xstring_literal, $2);
09771                     %*/
09772                     }
09773     break;
09774 
09775   case 458:
09776 
09777 /* Line 1806 of yacc.c  */
09778 #line 3889 "parse.y"
09779     {
09780                     /*%%%*/
09781                         int options = (yyvsp[(3) - (3)].num);
09782                         NODE *node = (yyvsp[(2) - (3)].node);
09783                         NODE *list, *prev;
09784                         if (!node) {
09785                             node = NEW_LIT(reg_compile(STR_NEW0(), options));
09786                         }
09787                         else switch (nd_type(node)) {
09788                           case NODE_STR:
09789                             {
09790                                 VALUE src = node->nd_lit;
09791                                 nd_set_type(node, NODE_LIT);
09792                                 node->nd_lit = reg_compile(src, options);
09793                             }
09794                             break;
09795                           default:
09796                             node = NEW_NODE(NODE_DSTR, STR_NEW0(), 1, NEW_LIST(node));
09797                           case NODE_DSTR:
09798                             if (options & RE_OPTION_ONCE) {
09799                                 nd_set_type(node, NODE_DREGX_ONCE);
09800                             }
09801                             else {
09802                                 nd_set_type(node, NODE_DREGX);
09803                             }
09804                             node->nd_cflag = options & RE_OPTION_MASK;
09805                             if (!NIL_P(node->nd_lit)) reg_fragment_check(node->nd_lit, options);
09806                             for (list = (prev = node)->nd_next; list; list = list->nd_next) {
09807                                 if (nd_type(list->nd_head) == NODE_STR) {
09808                                     VALUE tail = list->nd_head->nd_lit;
09809                                     if (reg_fragment_check(tail, options) && prev && !NIL_P(prev->nd_lit)) {
09810                                         VALUE lit = prev == node ? prev->nd_lit : prev->nd_head->nd_lit;
09811                                         if (!literal_concat0(parser, lit, tail)) {
09812                                             node = 0;
09813                                             break;
09814                                         }
09815                                         rb_str_resize(tail, 0);
09816                                         prev->nd_next = list->nd_next;
09817                                         rb_gc_force_recycle((VALUE)list->nd_head);
09818                                         rb_gc_force_recycle((VALUE)list);
09819                                         list = prev;
09820                                     }
09821                                     else {
09822                                         prev = list;
09823                                     }
09824                                 }
09825                                 else {
09826                                     prev = 0;
09827                                 }
09828                             }
09829                             if (!node->nd_next) {
09830                                 VALUE src = node->nd_lit;
09831                                 nd_set_type(node, NODE_LIT);
09832                                 node->nd_lit = reg_compile(src, options);
09833                             }
09834                             break;
09835                         }
09836                         (yyval.node) = node;
09837                     /*%
09838                         $$ = dispatch2(regexp_literal, $2, $3);
09839                     %*/
09840                     }
09841     break;
09842 
09843   case 459:
09844 
09845 /* Line 1806 of yacc.c  */
09846 #line 3954 "parse.y"
09847     {
09848                     /*%%%*/
09849                         (yyval.node) = NEW_ZARRAY();
09850                     /*%
09851                         $$ = dispatch0(words_new);
09852                         $$ = dispatch1(array, $$);
09853                     %*/
09854                     }
09855     break;
09856 
09857   case 460:
09858 
09859 /* Line 1806 of yacc.c  */
09860 #line 3963 "parse.y"
09861     {
09862                     /*%%%*/
09863                         (yyval.node) = (yyvsp[(2) - (3)].node);
09864                     /*%
09865                         $$ = dispatch1(array, $2);
09866                     %*/
09867                     }
09868     break;
09869 
09870   case 461:
09871 
09872 /* Line 1806 of yacc.c  */
09873 #line 3973 "parse.y"
09874     {
09875                     /*%%%*/
09876                         (yyval.node) = 0;
09877                     /*%
09878                         $$ = dispatch0(words_new);
09879                     %*/
09880                     }
09881     break;
09882 
09883   case 462:
09884 
09885 /* Line 1806 of yacc.c  */
09886 #line 3981 "parse.y"
09887     {
09888                     /*%%%*/
09889                         (yyval.node) = list_append((yyvsp[(1) - (3)].node), evstr2dstr((yyvsp[(2) - (3)].node)));
09890                     /*%
09891                         $$ = dispatch2(words_add, $1, $2);
09892                     %*/
09893                     }
09894     break;
09895 
09896   case 464:
09897 
09898 /* Line 1806 of yacc.c  */
09899 #line 3999 "parse.y"
09900     {
09901                     /*%%%*/
09902                         (yyval.node) = literal_concat((yyvsp[(1) - (2)].node), (yyvsp[(2) - (2)].node));
09903                     /*%
09904                         $$ = dispatch2(word_add, $1, $2);
09905                     %*/
09906                     }
09907     break;
09908 
09909   case 465:
09910 
09911 /* Line 1806 of yacc.c  */
09912 #line 4009 "parse.y"
09913     {
09914                     /*%%%*/
09915                         (yyval.node) = NEW_ZARRAY();
09916                     /*%
09917                         $$ = dispatch0(symbols_new);
09918                         $$ = dispatch1(array, $$);
09919                     %*/
09920                     }
09921     break;
09922 
09923   case 466:
09924 
09925 /* Line 1806 of yacc.c  */
09926 #line 4018 "parse.y"
09927     {
09928                     /*%%%*/
09929                         (yyval.node) = (yyvsp[(2) - (3)].node);
09930                     /*%
09931                         $$ = dispatch1(array, $2);
09932                     %*/
09933                     }
09934     break;
09935 
09936   case 467:
09937 
09938 /* Line 1806 of yacc.c  */
09939 #line 4028 "parse.y"
09940     {
09941                     /*%%%*/
09942                         (yyval.node) = 0;
09943                     /*%
09944                         $$ = dispatch0(symbols_new);
09945                     %*/
09946                     }
09947     break;
09948 
09949   case 468:
09950 
09951 /* Line 1806 of yacc.c  */
09952 #line 4036 "parse.y"
09953     {
09954                     /*%%%*/
09955                         (yyvsp[(2) - (3)].node) = evstr2dstr((yyvsp[(2) - (3)].node));
09956                         nd_set_type((yyvsp[(2) - (3)].node), NODE_DSYM);
09957                         (yyval.node) = list_append((yyvsp[(1) - (3)].node), (yyvsp[(2) - (3)].node));
09958                     /*%
09959                         $$ = dispatch2(symbols_add, $1, $2);
09960                     %*/
09961                     }
09962     break;
09963 
09964   case 469:
09965 
09966 /* Line 1806 of yacc.c  */
09967 #line 4048 "parse.y"
09968     {
09969                     /*%%%*/
09970                         (yyval.node) = NEW_ZARRAY();
09971                     /*%
09972                         $$ = dispatch0(qwords_new);
09973                         $$ = dispatch1(array, $$);
09974                     %*/
09975                     }
09976     break;
09977 
09978   case 470:
09979 
09980 /* Line 1806 of yacc.c  */
09981 #line 4057 "parse.y"
09982     {
09983                     /*%%%*/
09984                         (yyval.node) = (yyvsp[(2) - (3)].node);
09985                     /*%
09986                         $$ = dispatch1(array, $2);
09987                     %*/
09988                     }
09989     break;
09990 
09991   case 471:
09992 
09993 /* Line 1806 of yacc.c  */
09994 #line 4067 "parse.y"
09995     {
09996                     /*%%%*/
09997                         (yyval.node) = NEW_ZARRAY();
09998                     /*%
09999                         $$ = dispatch0(qsymbols_new);
10000                         $$ = dispatch1(array, $$);
10001                     %*/
10002                     }
10003     break;
10004 
10005   case 472:
10006 
10007 /* Line 1806 of yacc.c  */
10008 #line 4076 "parse.y"
10009     {
10010                     /*%%%*/
10011                         (yyval.node) = (yyvsp[(2) - (3)].node);
10012                     /*%
10013                         $$ = dispatch1(array, $2);
10014                     %*/
10015                     }
10016     break;
10017 
10018   case 473:
10019 
10020 /* Line 1806 of yacc.c  */
10021 #line 4086 "parse.y"
10022     {
10023                     /*%%%*/
10024                         (yyval.node) = 0;
10025                     /*%
10026                         $$ = dispatch0(qwords_new);
10027                     %*/
10028                     }
10029     break;
10030 
10031   case 474:
10032 
10033 /* Line 1806 of yacc.c  */
10034 #line 4094 "parse.y"
10035     {
10036                     /*%%%*/
10037                         (yyval.node) = list_append((yyvsp[(1) - (3)].node), (yyvsp[(2) - (3)].node));
10038                     /*%
10039                         $$ = dispatch2(qwords_add, $1, $2);
10040                     %*/
10041                     }
10042     break;
10043 
10044   case 475:
10045 
10046 /* Line 1806 of yacc.c  */
10047 #line 4104 "parse.y"
10048     {
10049                     /*%%%*/
10050                         (yyval.node) = 0;
10051                     /*%
10052                         $$ = dispatch0(qsymbols_new);
10053                     %*/
10054                     }
10055     break;
10056 
10057   case 476:
10058 
10059 /* Line 1806 of yacc.c  */
10060 #line 4112 "parse.y"
10061     {
10062                     /*%%%*/
10063                         VALUE lit;
10064                         lit = (yyvsp[(2) - (3)].node)->nd_lit;
10065                         (yyvsp[(2) - (3)].node)->nd_lit = ID2SYM(rb_intern_str(lit));
10066                         nd_set_type((yyvsp[(2) - (3)].node), NODE_LIT);
10067                         (yyval.node) = list_append((yyvsp[(1) - (3)].node), (yyvsp[(2) - (3)].node));
10068                     /*%
10069                         $$ = dispatch2(qsymbols_add, $1, $2);
10070                     %*/
10071                     }
10072     break;
10073 
10074   case 477:
10075 
10076 /* Line 1806 of yacc.c  */
10077 #line 4126 "parse.y"
10078     {
10079                     /*%%%*/
10080                         (yyval.node) = 0;
10081                     /*%
10082                         $$ = dispatch0(string_content);
10083                     %*/
10084                     }
10085     break;
10086 
10087   case 478:
10088 
10089 /* Line 1806 of yacc.c  */
10090 #line 4134 "parse.y"
10091     {
10092                     /*%%%*/
10093                         (yyval.node) = literal_concat((yyvsp[(1) - (2)].node), (yyvsp[(2) - (2)].node));
10094                     /*%
10095                         $$ = dispatch2(string_add, $1, $2);
10096                     %*/
10097                     }
10098     break;
10099 
10100   case 479:
10101 
10102 /* Line 1806 of yacc.c  */
10103 #line 4144 "parse.y"
10104     {
10105                     /*%%%*/
10106                         (yyval.node) = 0;
10107                     /*%
10108                         $$ = dispatch0(xstring_new);
10109                     %*/
10110                     }
10111     break;
10112 
10113   case 480:
10114 
10115 /* Line 1806 of yacc.c  */
10116 #line 4152 "parse.y"
10117     {
10118                     /*%%%*/
10119                         (yyval.node) = literal_concat((yyvsp[(1) - (2)].node), (yyvsp[(2) - (2)].node));
10120                     /*%
10121                         $$ = dispatch2(xstring_add, $1, $2);
10122                     %*/
10123                     }
10124     break;
10125 
10126   case 481:
10127 
10128 /* Line 1806 of yacc.c  */
10129 #line 4162 "parse.y"
10130     {
10131                     /*%%%*/
10132                         (yyval.node) = 0;
10133                     /*%
10134                         $$ = dispatch0(regexp_new);
10135                     %*/
10136                     }
10137     break;
10138 
10139   case 482:
10140 
10141 /* Line 1806 of yacc.c  */
10142 #line 4170 "parse.y"
10143     {
10144                     /*%%%*/
10145                         NODE *head = (yyvsp[(1) - (2)].node), *tail = (yyvsp[(2) - (2)].node);
10146                         if (!head) {
10147                             (yyval.node) = tail;
10148                         }
10149                         else if (!tail) {
10150                             (yyval.node) = head;
10151                         }
10152                         else {
10153                             switch (nd_type(head)) {
10154                               case NODE_STR:
10155                                 nd_set_type(head, NODE_DSTR);
10156                                 break;
10157                               case NODE_DSTR:
10158                                 break;
10159                               default:
10160                                 head = list_append(NEW_DSTR(Qnil), head);
10161                                 break;
10162                             }
10163                             (yyval.node) = list_append(head, tail);
10164                         }
10165                     /*%
10166                         $$ = dispatch2(regexp_add, $1, $2);
10167                     %*/
10168                     }
10169     break;
10170 
10171   case 484:
10172 
10173 /* Line 1806 of yacc.c  */
10174 #line 4200 "parse.y"
10175     {
10176                         (yyval.node) = lex_strterm;
10177                         lex_strterm = 0;
10178                         lex_state = EXPR_BEG;
10179                     }
10180     break;
10181 
10182   case 485:
10183 
10184 /* Line 1806 of yacc.c  */
10185 #line 4206 "parse.y"
10186     {
10187                     /*%%%*/
10188                         lex_strterm = (yyvsp[(2) - (3)].node);
10189                         (yyval.node) = NEW_EVSTR((yyvsp[(3) - (3)].node));
10190                     /*%
10191                         lex_strterm = $<node>2;
10192                         $$ = dispatch1(string_dvar, $3);
10193                     %*/
10194                     }
10195     break;
10196 
10197   case 486:
10198 
10199 /* Line 1806 of yacc.c  */
10200 #line 4216 "parse.y"
10201     {
10202                         (yyvsp[(1) - (1)].val) = cond_stack;
10203                         (yyval.val) = cmdarg_stack;
10204                         cond_stack = 0;
10205                         cmdarg_stack = 0;
10206                     }
10207     break;
10208 
10209   case 487:
10210 
10211 /* Line 1806 of yacc.c  */
10212 #line 4222 "parse.y"
10213     {
10214                         (yyval.node) = lex_strterm;
10215                         lex_strterm = 0;
10216                         lex_state = EXPR_BEG;
10217                     }
10218     break;
10219 
10220   case 488:
10221 
10222 /* Line 1806 of yacc.c  */
10223 #line 4227 "parse.y"
10224     {
10225                         (yyval.num) = brace_nest;
10226                         brace_nest = 0;
10227                     }
10228     break;
10229 
10230   case 489:
10231 
10232 /* Line 1806 of yacc.c  */
10233 #line 4232 "parse.y"
10234     {
10235                         cond_stack = (yyvsp[(1) - (6)].val);
10236                         cmdarg_stack = (yyvsp[(2) - (6)].val);
10237                         lex_strterm = (yyvsp[(3) - (6)].node);
10238                         brace_nest = (yyvsp[(4) - (6)].num);
10239                     /*%%%*/
10240                         if ((yyvsp[(5) - (6)].node)) (yyvsp[(5) - (6)].node)->flags &= ~NODE_FL_NEWLINE;
10241                         (yyval.node) = new_evstr((yyvsp[(5) - (6)].node));
10242                     /*%
10243                         $$ = dispatch1(string_embexpr, $5);
10244                     %*/
10245                     }
10246     break;
10247 
10248   case 490:
10249 
10250 /* Line 1806 of yacc.c  */
10251 #line 4247 "parse.y"
10252     {
10253                     /*%%%*/
10254                         (yyval.node) = NEW_GVAR((yyvsp[(1) - (1)].id));
10255                     /*%
10256                         $$ = dispatch1(var_ref, $1);
10257                     %*/
10258                     }
10259     break;
10260 
10261   case 491:
10262 
10263 /* Line 1806 of yacc.c  */
10264 #line 4255 "parse.y"
10265     {
10266                     /*%%%*/
10267                         (yyval.node) = NEW_IVAR((yyvsp[(1) - (1)].id));
10268                     /*%
10269                         $$ = dispatch1(var_ref, $1);
10270                     %*/
10271                     }
10272     break;
10273 
10274   case 492:
10275 
10276 /* Line 1806 of yacc.c  */
10277 #line 4263 "parse.y"
10278     {
10279                     /*%%%*/
10280                         (yyval.node) = NEW_CVAR((yyvsp[(1) - (1)].id));
10281                     /*%
10282                         $$ = dispatch1(var_ref, $1);
10283                     %*/
10284                     }
10285     break;
10286 
10287   case 494:
10288 
10289 /* Line 1806 of yacc.c  */
10290 #line 4274 "parse.y"
10291     {
10292                         lex_state = EXPR_END;
10293                     /*%%%*/
10294                         (yyval.id) = (yyvsp[(2) - (2)].id);
10295                     /*%
10296                         $$ = dispatch1(symbol, $2);
10297                     %*/
10298                     }
10299     break;
10300 
10301   case 499:
10302 
10303 /* Line 1806 of yacc.c  */
10304 #line 4291 "parse.y"
10305     {
10306                         lex_state = EXPR_END;
10307                     /*%%%*/
10308                         (yyval.node) = dsym_node((yyvsp[(2) - (3)].node));
10309                     /*%
10310                         $$ = dispatch1(dyna_symbol, $2);
10311                     %*/
10312                     }
10313     break;
10314 
10315   case 502:
10316 
10317 /* Line 1806 of yacc.c  */
10318 #line 4304 "parse.y"
10319     {
10320                     /*%%%*/
10321                         (yyval.node) = negate_lit((yyvsp[(2) - (2)].node));
10322                     /*%
10323                         $$ = dispatch2(unary, ripper_intern("-@"), $2);
10324                     %*/
10325                     }
10326     break;
10327 
10328   case 503:
10329 
10330 /* Line 1806 of yacc.c  */
10331 #line 4312 "parse.y"
10332     {
10333                     /*%%%*/
10334                         (yyval.node) = negate_lit((yyvsp[(2) - (2)].node));
10335                     /*%
10336                         $$ = dispatch2(unary, ripper_intern("-@"), $2);
10337                     %*/
10338                     }
10339     break;
10340 
10341   case 509:
10342 
10343 /* Line 1806 of yacc.c  */
10344 #line 4328 "parse.y"
10345     {ifndef_ripper((yyval.id) = keyword_nil);}
10346     break;
10347 
10348   case 510:
10349 
10350 /* Line 1806 of yacc.c  */
10351 #line 4329 "parse.y"
10352     {ifndef_ripper((yyval.id) = keyword_self);}
10353     break;
10354 
10355   case 511:
10356 
10357 /* Line 1806 of yacc.c  */
10358 #line 4330 "parse.y"
10359     {ifndef_ripper((yyval.id) = keyword_true);}
10360     break;
10361 
10362   case 512:
10363 
10364 /* Line 1806 of yacc.c  */
10365 #line 4331 "parse.y"
10366     {ifndef_ripper((yyval.id) = keyword_false);}
10367     break;
10368 
10369   case 513:
10370 
10371 /* Line 1806 of yacc.c  */
10372 #line 4332 "parse.y"
10373     {ifndef_ripper((yyval.id) = keyword__FILE__);}
10374     break;
10375 
10376   case 514:
10377 
10378 /* Line 1806 of yacc.c  */
10379 #line 4333 "parse.y"
10380     {ifndef_ripper((yyval.id) = keyword__LINE__);}
10381     break;
10382 
10383   case 515:
10384 
10385 /* Line 1806 of yacc.c  */
10386 #line 4334 "parse.y"
10387     {ifndef_ripper((yyval.id) = keyword__ENCODING__);}
10388     break;
10389 
10390   case 516:
10391 
10392 /* Line 1806 of yacc.c  */
10393 #line 4338 "parse.y"
10394     {
10395                     /*%%%*/
10396                         if (!((yyval.node) = gettable((yyvsp[(1) - (1)].id)))) (yyval.node) = NEW_BEGIN(0);
10397                     /*%
10398                         if (id_is_var(get_id($1))) {
10399                             $$ = dispatch1(var_ref, $1);
10400                         }
10401                         else {
10402                             $$ = dispatch1(vcall, $1);
10403                         }
10404                     %*/
10405                     }
10406     break;
10407 
10408   case 517:
10409 
10410 /* Line 1806 of yacc.c  */
10411 #line 4351 "parse.y"
10412     {
10413                     /*%%%*/
10414                         if (!((yyval.node) = gettable((yyvsp[(1) - (1)].id)))) (yyval.node) = NEW_BEGIN(0);
10415                     /*%
10416                         $$ = dispatch1(var_ref, $1);
10417                     %*/
10418                     }
10419     break;
10420 
10421   case 518:
10422 
10423 /* Line 1806 of yacc.c  */
10424 #line 4361 "parse.y"
10425     {
10426                         (yyval.node) = assignable((yyvsp[(1) - (1)].id), 0);
10427                     /*%%%*/
10428                     /*%
10429                         $$ = dispatch1(var_field, $$);
10430                     %*/
10431                     }
10432     break;
10433 
10434   case 519:
10435 
10436 /* Line 1806 of yacc.c  */
10437 #line 4369 "parse.y"
10438     {
10439                         (yyval.node) = assignable((yyvsp[(1) - (1)].id), 0);
10440                     /*%%%*/
10441                     /*%
10442                         $$ = dispatch1(var_field, $$);
10443                     %*/
10444                     }
10445     break;
10446 
10447   case 522:
10448 
10449 /* Line 1806 of yacc.c  */
10450 #line 4383 "parse.y"
10451     {
10452                     /*%%%*/
10453                         (yyval.node) = 0;
10454                     /*%
10455                         $$ = Qnil;
10456                     %*/
10457                     }
10458     break;
10459 
10460   case 523:
10461 
10462 /* Line 1806 of yacc.c  */
10463 #line 4391 "parse.y"
10464     {
10465                         lex_state = EXPR_BEG;
10466                         command_start = TRUE;
10467                     }
10468     break;
10469 
10470   case 524:
10471 
10472 /* Line 1806 of yacc.c  */
10473 #line 4396 "parse.y"
10474     {
10475                         (yyval.node) = (yyvsp[(3) - (4)].node);
10476                     }
10477     break;
10478 
10479   case 525:
10480 
10481 /* Line 1806 of yacc.c  */
10482 #line 4400 "parse.y"
10483     {
10484                     /*%%%*/
10485                         yyerrok;
10486                         (yyval.node) = 0;
10487                     /*%
10488                         yyerrok;
10489                         $$ = Qnil;
10490                     %*/
10491                     }
10492     break;
10493 
10494   case 526:
10495 
10496 /* Line 1806 of yacc.c  */
10497 #line 4412 "parse.y"
10498     {
10499                     /*%%%*/
10500                         (yyval.node) = (yyvsp[(2) - (3)].node);
10501                     /*%
10502                         $$ = dispatch1(paren, $2);
10503                     %*/
10504                         lex_state = EXPR_BEG;
10505                         command_start = TRUE;
10506                     }
10507     break;
10508 
10509   case 527:
10510 
10511 /* Line 1806 of yacc.c  */
10512 #line 4422 "parse.y"
10513     {
10514                         (yyval.node) = (yyvsp[(1) - (2)].node);
10515                         lex_state = EXPR_BEG;
10516                         command_start = TRUE;
10517                     }
10518     break;
10519 
10520   case 528:
10521 
10522 /* Line 1806 of yacc.c  */
10523 #line 4430 "parse.y"
10524     {
10525                         (yyval.node) = new_args_tail((yyvsp[(1) - (4)].node), (yyvsp[(3) - (4)].id), (yyvsp[(4) - (4)].id));
10526                     }
10527     break;
10528 
10529   case 529:
10530 
10531 /* Line 1806 of yacc.c  */
10532 #line 4434 "parse.y"
10533     {
10534                         (yyval.node) = new_args_tail((yyvsp[(1) - (2)].node), Qnone, (yyvsp[(2) - (2)].id));
10535                     }
10536     break;
10537 
10538   case 530:
10539 
10540 /* Line 1806 of yacc.c  */
10541 #line 4438 "parse.y"
10542     {
10543                         (yyval.node) = new_args_tail(Qnone, (yyvsp[(1) - (2)].id), (yyvsp[(2) - (2)].id));
10544                     }
10545     break;
10546 
10547   case 531:
10548 
10549 /* Line 1806 of yacc.c  */
10550 #line 4442 "parse.y"
10551     {
10552                         (yyval.node) = new_args_tail(Qnone, Qnone, (yyvsp[(1) - (1)].id));
10553                     }
10554     break;
10555 
10556   case 532:
10557 
10558 /* Line 1806 of yacc.c  */
10559 #line 4448 "parse.y"
10560     {
10561                         (yyval.node) = (yyvsp[(2) - (2)].node);
10562                     }
10563     break;
10564 
10565   case 533:
10566 
10567 /* Line 1806 of yacc.c  */
10568 #line 4452 "parse.y"
10569     {
10570                         (yyval.node) = new_args_tail(Qnone, Qnone, Qnone);
10571                     }
10572     break;
10573 
10574   case 534:
10575 
10576 /* Line 1806 of yacc.c  */
10577 #line 4458 "parse.y"
10578     {
10579                         (yyval.node) = new_args((yyvsp[(1) - (6)].node), (yyvsp[(3) - (6)].node), (yyvsp[(5) - (6)].id), Qnone, (yyvsp[(6) - (6)].node));
10580                     }
10581     break;
10582 
10583   case 535:
10584 
10585 /* Line 1806 of yacc.c  */
10586 #line 4462 "parse.y"
10587     {
10588                         (yyval.node) = new_args((yyvsp[(1) - (8)].node), (yyvsp[(3) - (8)].node), (yyvsp[(5) - (8)].id), (yyvsp[(7) - (8)].node), (yyvsp[(8) - (8)].node));
10589                     }
10590     break;
10591 
10592   case 536:
10593 
10594 /* Line 1806 of yacc.c  */
10595 #line 4466 "parse.y"
10596     {
10597                         (yyval.node) = new_args((yyvsp[(1) - (4)].node), (yyvsp[(3) - (4)].node), Qnone, Qnone, (yyvsp[(4) - (4)].node));
10598                     }
10599     break;
10600 
10601   case 537:
10602 
10603 /* Line 1806 of yacc.c  */
10604 #line 4470 "parse.y"
10605     {
10606                         (yyval.node) = new_args((yyvsp[(1) - (6)].node), (yyvsp[(3) - (6)].node), Qnone, (yyvsp[(5) - (6)].node), (yyvsp[(6) - (6)].node));
10607                     }
10608     break;
10609 
10610   case 538:
10611 
10612 /* Line 1806 of yacc.c  */
10613 #line 4474 "parse.y"
10614     {
10615                         (yyval.node) = new_args((yyvsp[(1) - (4)].node), Qnone, (yyvsp[(3) - (4)].id), Qnone, (yyvsp[(4) - (4)].node));
10616                     }
10617     break;
10618 
10619   case 539:
10620 
10621 /* Line 1806 of yacc.c  */
10622 #line 4478 "parse.y"
10623     {
10624                         (yyval.node) = new_args((yyvsp[(1) - (6)].node), Qnone, (yyvsp[(3) - (6)].id), (yyvsp[(5) - (6)].node), (yyvsp[(6) - (6)].node));
10625                     }
10626     break;
10627 
10628   case 540:
10629 
10630 /* Line 1806 of yacc.c  */
10631 #line 4482 "parse.y"
10632     {
10633                         (yyval.node) = new_args((yyvsp[(1) - (2)].node), Qnone, Qnone, Qnone, (yyvsp[(2) - (2)].node));
10634                     }
10635     break;
10636 
10637   case 541:
10638 
10639 /* Line 1806 of yacc.c  */
10640 #line 4486 "parse.y"
10641     {
10642                         (yyval.node) = new_args(Qnone, (yyvsp[(1) - (4)].node), (yyvsp[(3) - (4)].id), Qnone, (yyvsp[(4) - (4)].node));
10643                     }
10644     break;
10645 
10646   case 542:
10647 
10648 /* Line 1806 of yacc.c  */
10649 #line 4490 "parse.y"
10650     {
10651                         (yyval.node) = new_args(Qnone, (yyvsp[(1) - (6)].node), (yyvsp[(3) - (6)].id), (yyvsp[(5) - (6)].node), (yyvsp[(6) - (6)].node));
10652                     }
10653     break;
10654 
10655   case 543:
10656 
10657 /* Line 1806 of yacc.c  */
10658 #line 4494 "parse.y"
10659     {
10660                         (yyval.node) = new_args(Qnone, (yyvsp[(1) - (2)].node), Qnone, Qnone, (yyvsp[(2) - (2)].node));
10661                     }
10662     break;
10663 
10664   case 544:
10665 
10666 /* Line 1806 of yacc.c  */
10667 #line 4498 "parse.y"
10668     {
10669                         (yyval.node) = new_args(Qnone, (yyvsp[(1) - (4)].node), Qnone, (yyvsp[(3) - (4)].node), (yyvsp[(4) - (4)].node));
10670                     }
10671     break;
10672 
10673   case 545:
10674 
10675 /* Line 1806 of yacc.c  */
10676 #line 4502 "parse.y"
10677     {
10678                         (yyval.node) = new_args(Qnone, Qnone, (yyvsp[(1) - (2)].id), Qnone, (yyvsp[(2) - (2)].node));
10679                     }
10680     break;
10681 
10682   case 546:
10683 
10684 /* Line 1806 of yacc.c  */
10685 #line 4506 "parse.y"
10686     {
10687                         (yyval.node) = new_args(Qnone, Qnone, (yyvsp[(1) - (4)].id), (yyvsp[(3) - (4)].node), (yyvsp[(4) - (4)].node));
10688                     }
10689     break;
10690 
10691   case 547:
10692 
10693 /* Line 1806 of yacc.c  */
10694 #line 4510 "parse.y"
10695     {
10696                         (yyval.node) = new_args(Qnone, Qnone, Qnone, Qnone, (yyvsp[(1) - (1)].node));
10697                     }
10698     break;
10699 
10700   case 548:
10701 
10702 /* Line 1806 of yacc.c  */
10703 #line 4514 "parse.y"
10704     {
10705                         (yyval.node) = new_args_tail(Qnone, Qnone, Qnone);
10706                         (yyval.node) = new_args(Qnone, Qnone, Qnone, Qnone, (yyval.node));
10707                     }
10708     break;
10709 
10710   case 549:
10711 
10712 /* Line 1806 of yacc.c  */
10713 #line 4521 "parse.y"
10714     {
10715                     /*%%%*/
10716                         yyerror("formal argument cannot be a constant");
10717                         (yyval.id) = 0;
10718                     /*%
10719                         $$ = dispatch1(param_error, $1);
10720                     %*/
10721                     }
10722     break;
10723 
10724   case 550:
10725 
10726 /* Line 1806 of yacc.c  */
10727 #line 4530 "parse.y"
10728     {
10729                     /*%%%*/
10730                         yyerror("formal argument cannot be an instance variable");
10731                         (yyval.id) = 0;
10732                     /*%
10733                         $$ = dispatch1(param_error, $1);
10734                     %*/
10735                     }
10736     break;
10737 
10738   case 551:
10739 
10740 /* Line 1806 of yacc.c  */
10741 #line 4539 "parse.y"
10742     {
10743                     /*%%%*/
10744                         yyerror("formal argument cannot be a global variable");
10745                         (yyval.id) = 0;
10746                     /*%
10747                         $$ = dispatch1(param_error, $1);
10748                     %*/
10749                     }
10750     break;
10751 
10752   case 552:
10753 
10754 /* Line 1806 of yacc.c  */
10755 #line 4548 "parse.y"
10756     {
10757                     /*%%%*/
10758                         yyerror("formal argument cannot be a class variable");
10759                         (yyval.id) = 0;
10760                     /*%
10761                         $$ = dispatch1(param_error, $1);
10762                     %*/
10763                     }
10764     break;
10765 
10766   case 554:
10767 
10768 /* Line 1806 of yacc.c  */
10769 #line 4560 "parse.y"
10770     {
10771                         formal_argument(get_id((yyvsp[(1) - (1)].id)));
10772                         (yyval.id) = (yyvsp[(1) - (1)].id);
10773                     }
10774     break;
10775 
10776   case 555:
10777 
10778 /* Line 1806 of yacc.c  */
10779 #line 4567 "parse.y"
10780     {
10781                         arg_var(get_id((yyvsp[(1) - (1)].id)));
10782                     /*%%%*/
10783                         (yyval.node) = NEW_ARGS_AUX((yyvsp[(1) - (1)].id), 1);
10784                     /*%
10785                         $$ = get_value($1);
10786                     %*/
10787                     }
10788     break;
10789 
10790   case 556:
10791 
10792 /* Line 1806 of yacc.c  */
10793 #line 4576 "parse.y"
10794     {
10795                         ID tid = internal_id();
10796                         arg_var(tid);
10797                     /*%%%*/
10798                         if (dyna_in_block()) {
10799                             (yyvsp[(2) - (3)].node)->nd_value = NEW_DVAR(tid);
10800                         }
10801                         else {
10802                             (yyvsp[(2) - (3)].node)->nd_value = NEW_LVAR(tid);
10803                         }
10804                         (yyval.node) = NEW_ARGS_AUX(tid, 1);
10805                         (yyval.node)->nd_next = (yyvsp[(2) - (3)].node);
10806                     /*%
10807                         $$ = dispatch1(mlhs_paren, $2);
10808                     %*/
10809                     }
10810     break;
10811 
10812   case 558:
10813 
10814 /* Line 1806 of yacc.c  */
10815 #line 4602 "parse.y"
10816     {
10817                     /*%%%*/
10818                         (yyval.node) = (yyvsp[(1) - (3)].node);
10819                         (yyval.node)->nd_plen++;
10820                         (yyval.node)->nd_next = block_append((yyval.node)->nd_next, (yyvsp[(3) - (3)].node)->nd_next);
10821                         rb_gc_force_recycle((VALUE)(yyvsp[(3) - (3)].node));
10822                     /*%
10823                         $$ = rb_ary_push($1, $3);
10824                     %*/
10825                     }
10826     break;
10827 
10828   case 559:
10829 
10830 /* Line 1806 of yacc.c  */
10831 #line 4615 "parse.y"
10832     {
10833                         arg_var(formal_argument(get_id((yyvsp[(1) - (2)].id))));
10834                         (yyval.node) = assignable((yyvsp[(1) - (2)].id), (yyvsp[(2) - (2)].node));
10835                     /*%%%*/
10836                         (yyval.node) = NEW_KW_ARG(0, (yyval.node));
10837                     /*%
10838                         $$ = rb_assoc_new($$, $2);
10839                     %*/
10840                     }
10841     break;
10842 
10843   case 560:
10844 
10845 /* Line 1806 of yacc.c  */
10846 #line 4627 "parse.y"
10847     {
10848                         arg_var(formal_argument(get_id((yyvsp[(1) - (2)].id))));
10849                         (yyval.node) = assignable((yyvsp[(1) - (2)].id), (yyvsp[(2) - (2)].node));
10850                     /*%%%*/
10851                         (yyval.node) = NEW_KW_ARG(0, (yyval.node));
10852                     /*%
10853                         $$ = rb_assoc_new($$, $2);
10854                     %*/
10855                     }
10856     break;
10857 
10858   case 561:
10859 
10860 /* Line 1806 of yacc.c  */
10861 #line 4639 "parse.y"
10862     {
10863                     /*%%%*/
10864                         (yyval.node) = (yyvsp[(1) - (1)].node);
10865                     /*%
10866                         $$ = rb_ary_new3(1, $1);
10867                     %*/
10868                     }
10869     break;
10870 
10871   case 562:
10872 
10873 /* Line 1806 of yacc.c  */
10874 #line 4647 "parse.y"
10875     {
10876                     /*%%%*/
10877                         NODE *kws = (yyvsp[(1) - (3)].node);
10878 
10879                         while (kws->nd_next) {
10880                             kws = kws->nd_next;
10881                         }
10882                         kws->nd_next = (yyvsp[(3) - (3)].node);
10883                         (yyval.node) = (yyvsp[(1) - (3)].node);
10884                     /*%
10885                         $$ = rb_ary_push($1, $3);
10886                     %*/
10887                     }
10888     break;
10889 
10890   case 563:
10891 
10892 /* Line 1806 of yacc.c  */
10893 #line 4664 "parse.y"
10894     {
10895                     /*%%%*/
10896                         (yyval.node) = (yyvsp[(1) - (1)].node);
10897                     /*%
10898                         $$ = rb_ary_new3(1, $1);
10899                     %*/
10900                     }
10901     break;
10902 
10903   case 564:
10904 
10905 /* Line 1806 of yacc.c  */
10906 #line 4672 "parse.y"
10907     {
10908                     /*%%%*/
10909                         NODE *kws = (yyvsp[(1) - (3)].node);
10910 
10911                         while (kws->nd_next) {
10912                             kws = kws->nd_next;
10913                         }
10914                         kws->nd_next = (yyvsp[(3) - (3)].node);
10915                         (yyval.node) = (yyvsp[(1) - (3)].node);
10916                     /*%
10917                         $$ = rb_ary_push($1, $3);
10918                     %*/
10919                     }
10920     break;
10921 
10922   case 567:
10923 
10924 /* Line 1806 of yacc.c  */
10925 #line 4692 "parse.y"
10926     {
10927                         shadowing_lvar(get_id((yyvsp[(2) - (2)].id)));
10928                         (yyval.id) = (yyvsp[(2) - (2)].id);
10929                     }
10930     break;
10931 
10932   case 568:
10933 
10934 /* Line 1806 of yacc.c  */
10935 #line 4697 "parse.y"
10936     {
10937                         (yyval.id) = internal_id();
10938                     }
10939     break;
10940 
10941   case 569:
10942 
10943 /* Line 1806 of yacc.c  */
10944 #line 4703 "parse.y"
10945     {
10946                         arg_var(formal_argument(get_id((yyvsp[(1) - (3)].id))));
10947                         (yyval.node) = assignable((yyvsp[(1) - (3)].id), (yyvsp[(3) - (3)].node));
10948                     /*%%%*/
10949                         (yyval.node) = NEW_OPT_ARG(0, (yyval.node));
10950                     /*%
10951                         $$ = rb_assoc_new($$, $3);
10952                     %*/
10953                     }
10954     break;
10955 
10956   case 570:
10957 
10958 /* Line 1806 of yacc.c  */
10959 #line 4715 "parse.y"
10960     {
10961                         arg_var(formal_argument(get_id((yyvsp[(1) - (3)].id))));
10962                         (yyval.node) = assignable((yyvsp[(1) - (3)].id), (yyvsp[(3) - (3)].node));
10963                     /*%%%*/
10964                         (yyval.node) = NEW_OPT_ARG(0, (yyval.node));
10965                     /*%
10966                         $$ = rb_assoc_new($$, $3);
10967                     %*/
10968                     }
10969     break;
10970 
10971   case 571:
10972 
10973 /* Line 1806 of yacc.c  */
10974 #line 4727 "parse.y"
10975     {
10976                     /*%%%*/
10977                         (yyval.node) = (yyvsp[(1) - (1)].node);
10978                     /*%
10979                         $$ = rb_ary_new3(1, $1);
10980                     %*/
10981                     }
10982     break;
10983 
10984   case 572:
10985 
10986 /* Line 1806 of yacc.c  */
10987 #line 4735 "parse.y"
10988     {
10989                     /*%%%*/
10990                         NODE *opts = (yyvsp[(1) - (3)].node);
10991 
10992                         while (opts->nd_next) {
10993                             opts = opts->nd_next;
10994                         }
10995                         opts->nd_next = (yyvsp[(3) - (3)].node);
10996                         (yyval.node) = (yyvsp[(1) - (3)].node);
10997                     /*%
10998                         $$ = rb_ary_push($1, $3);
10999                     %*/
11000                     }
11001     break;
11002 
11003   case 573:
11004 
11005 /* Line 1806 of yacc.c  */
11006 #line 4751 "parse.y"
11007     {
11008                     /*%%%*/
11009                         (yyval.node) = (yyvsp[(1) - (1)].node);
11010                     /*%
11011                         $$ = rb_ary_new3(1, $1);
11012                     %*/
11013                     }
11014     break;
11015 
11016   case 574:
11017 
11018 /* Line 1806 of yacc.c  */
11019 #line 4759 "parse.y"
11020     {
11021                     /*%%%*/
11022                         NODE *opts = (yyvsp[(1) - (3)].node);
11023 
11024                         while (opts->nd_next) {
11025                             opts = opts->nd_next;
11026                         }
11027                         opts->nd_next = (yyvsp[(3) - (3)].node);
11028                         (yyval.node) = (yyvsp[(1) - (3)].node);
11029                     /*%
11030                         $$ = rb_ary_push($1, $3);
11031                     %*/
11032                     }
11033     break;
11034 
11035   case 577:
11036 
11037 /* Line 1806 of yacc.c  */
11038 #line 4779 "parse.y"
11039     {
11040                     /*%%%*/
11041                         if (!is_local_id((yyvsp[(2) - (2)].id)))
11042                             yyerror("rest argument must be local variable");
11043                     /*% %*/
11044                         arg_var(shadowing_lvar(get_id((yyvsp[(2) - (2)].id))));
11045                     /*%%%*/
11046                         (yyval.id) = (yyvsp[(2) - (2)].id);
11047                     /*%
11048                         $$ = dispatch1(rest_param, $2);
11049                     %*/
11050                     }
11051     break;
11052 
11053   case 578:
11054 
11055 /* Line 1806 of yacc.c  */
11056 #line 4792 "parse.y"
11057     {
11058                     /*%%%*/
11059                         (yyval.id) = internal_id();
11060                         arg_var((yyval.id));
11061                     /*%
11062                         $$ = dispatch1(rest_param, Qnil);
11063                     %*/
11064                     }
11065     break;
11066 
11067   case 581:
11068 
11069 /* Line 1806 of yacc.c  */
11070 #line 4807 "parse.y"
11071     {
11072                     /*%%%*/
11073                         if (!is_local_id((yyvsp[(2) - (2)].id)))
11074                             yyerror("block argument must be local variable");
11075                         else if (!dyna_in_block() && local_id((yyvsp[(2) - (2)].id)))
11076                             yyerror("duplicated block argument name");
11077                     /*% %*/
11078                         arg_var(shadowing_lvar(get_id((yyvsp[(2) - (2)].id))));
11079                     /*%%%*/
11080                         (yyval.id) = (yyvsp[(2) - (2)].id);
11081                     /*%
11082                         $$ = dispatch1(blockarg, $2);
11083                     %*/
11084                     }
11085     break;
11086 
11087   case 582:
11088 
11089 /* Line 1806 of yacc.c  */
11090 #line 4824 "parse.y"
11091     {
11092                         (yyval.id) = (yyvsp[(2) - (2)].id);
11093                     }
11094     break;
11095 
11096   case 583:
11097 
11098 /* Line 1806 of yacc.c  */
11099 #line 4828 "parse.y"
11100     {
11101                     /*%%%*/
11102                         (yyval.id) = 0;
11103                     /*%
11104                         $$ = Qundef;
11105                     %*/
11106                     }
11107     break;
11108 
11109   case 584:
11110 
11111 /* Line 1806 of yacc.c  */
11112 #line 4838 "parse.y"
11113     {
11114                     /*%%%*/
11115                         value_expr((yyvsp[(1) - (1)].node));
11116                         (yyval.node) = (yyvsp[(1) - (1)].node);
11117                         if (!(yyval.node)) (yyval.node) = NEW_NIL();
11118                     /*%
11119                         $$ = $1;
11120                     %*/
11121                     }
11122     break;
11123 
11124   case 585:
11125 
11126 /* Line 1806 of yacc.c  */
11127 #line 4847 "parse.y"
11128     {lex_state = EXPR_BEG;}
11129     break;
11130 
11131   case 586:
11132 
11133 /* Line 1806 of yacc.c  */
11134 #line 4848 "parse.y"
11135     {
11136                     /*%%%*/
11137                         if ((yyvsp[(3) - (4)].node) == 0) {
11138                             yyerror("can't define singleton method for ().");
11139                         }
11140                         else {
11141                             switch (nd_type((yyvsp[(3) - (4)].node))) {
11142                               case NODE_STR:
11143                               case NODE_DSTR:
11144                               case NODE_XSTR:
11145                               case NODE_DXSTR:
11146                               case NODE_DREGX:
11147                               case NODE_LIT:
11148                               case NODE_ARRAY:
11149                               case NODE_ZARRAY:
11150                                 yyerror("can't define singleton method for literals");
11151                               default:
11152                                 value_expr((yyvsp[(3) - (4)].node));
11153                                 break;
11154                             }
11155                         }
11156                         (yyval.node) = (yyvsp[(3) - (4)].node);
11157                     /*%
11158                         $$ = dispatch1(paren, $3);
11159                     %*/
11160                     }
11161     break;
11162 
11163   case 588:
11164 
11165 /* Line 1806 of yacc.c  */
11166 #line 4878 "parse.y"
11167     {
11168                     /*%%%*/
11169                         (yyval.node) = (yyvsp[(1) - (2)].node);
11170                     /*%
11171                         $$ = dispatch1(assoclist_from_args, $1);
11172                     %*/
11173                     }
11174     break;
11175 
11176   case 590:
11177 
11178 /* Line 1806 of yacc.c  */
11179 #line 4895 "parse.y"
11180     {
11181                     /*%%%*/
11182                         (yyval.node) = list_concat((yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));
11183                     /*%
11184                         $$ = rb_ary_push($1, $3);
11185                     %*/
11186                     }
11187     break;
11188 
11189   case 591:
11190 
11191 /* Line 1806 of yacc.c  */
11192 #line 4905 "parse.y"
11193     {
11194                     /*%%%*/
11195                         (yyval.node) = list_append(NEW_LIST((yyvsp[(1) - (3)].node)), (yyvsp[(3) - (3)].node));
11196                     /*%
11197                         $$ = dispatch2(assoc_new, $1, $3);
11198                     %*/
11199                     }
11200     break;
11201 
11202   case 592:
11203 
11204 /* Line 1806 of yacc.c  */
11205 #line 4913 "parse.y"
11206     {
11207                     /*%%%*/
11208                         (yyval.node) = list_append(NEW_LIST(NEW_LIT(ID2SYM((yyvsp[(1) - (2)].id)))), (yyvsp[(2) - (2)].node));
11209                     /*%
11210                         $$ = dispatch2(assoc_new, $1, $2);
11211                     %*/
11212                     }
11213     break;
11214 
11215   case 593:
11216 
11217 /* Line 1806 of yacc.c  */
11218 #line 4921 "parse.y"
11219     {
11220                     /*%%%*/
11221                         (yyval.node) = list_append(NEW_LIST(0), (yyvsp[(2) - (2)].node));
11222                     /*%
11223                         $$ = dispatch1(assoc_splat, $2);
11224                     %*/
11225                     }
11226     break;
11227 
11228   case 615:
11229 
11230 /* Line 1806 of yacc.c  */
11231 #line 4979 "parse.y"
11232     {yyerrok;}
11233     break;
11234 
11235   case 618:
11236 
11237 /* Line 1806 of yacc.c  */
11238 #line 4984 "parse.y"
11239     {yyerrok;}
11240     break;
11241 
11242   case 619:
11243 
11244 /* Line 1806 of yacc.c  */
11245 #line 4988 "parse.y"
11246     {
11247                     /*%%%*/
11248                         (yyval.node) = 0;
11249                     /*%
11250                         $$ = Qundef;
11251                     %*/
11252                     }
11253     break;
11254 
11255 
11256 
11257 /* Line 1806 of yacc.c  */
11258 #line 11257 "parse.c"
11259       default: break;
11260     }
11261   /* User semantic actions sometimes alter yychar, and that requires
11262      that yytoken be updated with the new translation.  We take the
11263      approach of translating immediately before every use of yytoken.
11264      One alternative is translating here after every semantic action,
11265      but that translation would be missed if the semantic action invokes
11266      YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or
11267      if it invokes YYBACKUP.  In the case of YYABORT or YYACCEPT, an
11268      incorrect destructor might then be invoked immediately.  In the
11269      case of YYERROR or YYBACKUP, subsequent parser actions might lead
11270      to an incorrect destructor call or verbose syntax error message
11271      before the lookahead is translated.  */
11272   YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
11273 
11274   YYPOPSTACK (yylen);
11275   yylen = 0;
11276   YY_STACK_PRINT (yyss, yyssp);
11277 
11278   *++yyvsp = yyval;
11279 
11280   /* Now `shift' the result of the reduction.  Determine what state
11281      that goes to, based on the state we popped back to and the rule
11282      number reduced by.  */
11283 
11284   yyn = yyr1[yyn];
11285 
11286   yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
11287   if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
11288     yystate = yytable[yystate];
11289   else
11290     yystate = yydefgoto[yyn - YYNTOKENS];
11291 
11292   goto yynewstate;
11293 
11294 
11295 /*------------------------------------.
11296 | yyerrlab -- here on detecting error |
11297 `------------------------------------*/
11298 yyerrlab:
11299   /* Make sure we have latest lookahead translation.  See comments at
11300      user semantic actions for why this is necessary.  */
11301   yytoken = yychar == YYEMPTY ? YYEMPTY : YYTRANSLATE (yychar);
11302 
11303   /* If not already recovering from an error, report this error.  */
11304   if (!yyerrstatus)
11305     {
11306       ++yynerrs;
11307 #if ! YYERROR_VERBOSE
11308       parser_yyerror (parser, YY_("syntax error"));
11309 #else
11310 # define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, \
11311                                         yyssp, yytoken)
11312       {
11313         char const *yymsgp = YY_("syntax error");
11314         int yysyntax_error_status;
11315         yysyntax_error_status = YYSYNTAX_ERROR;
11316         if (yysyntax_error_status == 0)
11317           yymsgp = yymsg;
11318         else if (yysyntax_error_status == 1)
11319           {
11320             if (yymsg != yymsgbuf)
11321               YYSTACK_FREE (yymsg);
11322             yymsg = (char *) YYSTACK_ALLOC (yymsg_alloc);
11323             if (!yymsg)
11324               {
11325                 yymsg = yymsgbuf;
11326                 yymsg_alloc = sizeof yymsgbuf;
11327                 yysyntax_error_status = 2;
11328               }
11329             else
11330               {
11331                 yysyntax_error_status = YYSYNTAX_ERROR;
11332                 yymsgp = yymsg;
11333               }
11334           }
11335         parser_yyerror (parser, yymsgp);
11336         if (yysyntax_error_status == 2)
11337           goto yyexhaustedlab;
11338       }
11339 # undef YYSYNTAX_ERROR
11340 #endif
11341     }
11342 
11343 
11344 
11345   if (yyerrstatus == 3)
11346     {
11347       /* If just tried and failed to reuse lookahead token after an
11348          error, discard it.  */
11349 
11350       if (yychar <= YYEOF)
11351         {
11352           /* Return failure if at end of input.  */
11353           if (yychar == YYEOF)
11354             YYABORT;
11355         }
11356       else
11357         {
11358           yydestruct ("Error: discarding",
11359                       yytoken, &yylval, parser);
11360           yychar = YYEMPTY;
11361         }
11362     }
11363 
11364   /* Else will try to reuse lookahead token after shifting the error
11365      token.  */
11366   goto yyerrlab1;
11367 
11368 
11369 /*---------------------------------------------------.
11370 | yyerrorlab -- error raised explicitly by YYERROR.  |
11371 `---------------------------------------------------*/
11372 yyerrorlab:
11373 
11374   /* Pacify compilers like GCC when the user code never invokes
11375      YYERROR and the label yyerrorlab therefore never appears in user
11376      code.  */
11377   if (/*CONSTCOND*/ 0)
11378      goto yyerrorlab;
11379 
11380   /* Do not reclaim the symbols of the rule which action triggered
11381      this YYERROR.  */
11382   YYPOPSTACK (yylen);
11383   yylen = 0;
11384   YY_STACK_PRINT (yyss, yyssp);
11385   yystate = *yyssp;
11386   goto yyerrlab1;
11387 
11388 
11389 /*-------------------------------------------------------------.
11390 | yyerrlab1 -- common code for both syntax error and YYERROR.  |
11391 `-------------------------------------------------------------*/
11392 yyerrlab1:
11393   yyerrstatus = 3;      /* Each real token shifted decrements this.  */
11394 
11395   for (;;)
11396     {
11397       yyn = yypact[yystate];
11398       if (!yypact_value_is_default (yyn))
11399         {
11400           yyn += YYTERROR;
11401           if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
11402             {
11403               yyn = yytable[yyn];
11404               if (0 < yyn)
11405                 break;
11406             }
11407         }
11408 
11409       /* Pop the current state because it cannot handle the error token.  */
11410       if (yyssp == yyss)
11411         YYABORT;
11412 
11413 
11414       yydestruct ("Error: popping",
11415                   yystos[yystate], yyvsp, parser);
11416       YYPOPSTACK (1);
11417       yystate = *yyssp;
11418       YY_STACK_PRINT (yyss, yyssp);
11419     }
11420 
11421   *++yyvsp = yylval;
11422 
11423 
11424   /* Shift the error token.  */
11425   YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp);
11426 
11427   yystate = yyn;
11428   goto yynewstate;
11429 
11430 
11431 /*-------------------------------------.
11432 | yyacceptlab -- YYACCEPT comes here.  |
11433 `-------------------------------------*/
11434 yyacceptlab:
11435   yyresult = 0;
11436   goto yyreturn;
11437 
11438 /*-----------------------------------.
11439 | yyabortlab -- YYABORT comes here.  |
11440 `-----------------------------------*/
11441 yyabortlab:
11442   yyresult = 1;
11443   goto yyreturn;
11444 
11445 #if !defined(yyoverflow) || YYERROR_VERBOSE
11446 /*-------------------------------------------------.
11447 | yyexhaustedlab -- memory exhaustion comes here.  |
11448 `-------------------------------------------------*/
11449 yyexhaustedlab:
11450   parser_yyerror (parser, YY_("memory exhausted"));
11451   yyresult = 2;
11452   /* Fall through.  */
11453 #endif
11454 
11455 yyreturn:
11456   if (yychar != YYEMPTY)
11457     {
11458       /* Make sure we have latest lookahead translation.  See comments at
11459          user semantic actions for why this is necessary.  */
11460       yytoken = YYTRANSLATE (yychar);
11461       yydestruct ("Cleanup: discarding lookahead",
11462                   yytoken, &yylval, parser);
11463     }
11464   /* Do not reclaim the symbols of the rule which action triggered
11465      this YYABORT or YYACCEPT.  */
11466   YYPOPSTACK (yylen);
11467   YY_STACK_PRINT (yyss, yyssp);
11468   while (yyssp != yyss)
11469     {
11470       yydestruct ("Cleanup: popping",
11471                   yystos[*yyssp], yyvsp, parser);
11472       YYPOPSTACK (1);
11473     }
11474 #ifndef yyoverflow
11475   if (yyss != yyssa)
11476     YYSTACK_FREE (yyss);
11477 #endif
11478 #if YYERROR_VERBOSE
11479   if (yymsg != yymsgbuf)
11480     YYSTACK_FREE (yymsg);
11481 #endif
11482   /* Make sure YYID is used.  */
11483   return YYID (yyresult);
11484 }
11485 
11486 
11487 
11488 /* Line 2067 of yacc.c  */
11489 #line 4996 "parse.y"
11490 
11491 # undef parser
11492 # undef yylex
11493 # undef yylval
11494 # define yylval  (*((YYSTYPE*)(parser->parser_yylval)))
11495 
11496 static int parser_regx_options(struct parser_params*);
11497 static int parser_tokadd_string(struct parser_params*,int,int,int,long*,rb_encoding**);
11498 static void parser_tokaddmbc(struct parser_params *parser, int c, rb_encoding *enc);
11499 static int parser_parse_string(struct parser_params*,NODE*);
11500 static int parser_here_document(struct parser_params*,NODE*);
11501 
11502 
11503 # define nextc()                   parser_nextc(parser)
11504 # define pushback(c)               parser_pushback(parser, (c))
11505 # define newtok()                  parser_newtok(parser)
11506 # define tokspace(n)               parser_tokspace(parser, (n))
11507 # define tokadd(c)                 parser_tokadd(parser, (c))
11508 # define tok_hex(numlen)           parser_tok_hex(parser, (numlen))
11509 # define read_escape(flags,e)      parser_read_escape(parser, (flags), (e))
11510 # define tokadd_escape(e)          parser_tokadd_escape(parser, (e))
11511 # define regx_options()            parser_regx_options(parser)
11512 # define tokadd_string(f,t,p,n,e)  parser_tokadd_string(parser,(f),(t),(p),(n),(e))
11513 # define parse_string(n)           parser_parse_string(parser,(n))
11514 # define tokaddmbc(c, enc)         parser_tokaddmbc(parser, (c), (enc))
11515 # define here_document(n)          parser_here_document(parser,(n))
11516 # define heredoc_identifier()      parser_heredoc_identifier(parser)
11517 # define heredoc_restore(n)        parser_heredoc_restore(parser,(n))
11518 # define whole_match_p(e,l,i)      parser_whole_match_p(parser,(e),(l),(i))
11519 
11520 #ifndef RIPPER
11521 # define set_yylval_str(x) (yylval.node = NEW_STR(x))
11522 # define set_yylval_num(x) (yylval.num = (x))
11523 # define set_yylval_id(x)  (yylval.id = (x))
11524 # define set_yylval_name(x)  (yylval.id = (x))
11525 # define set_yylval_literal(x) (yylval.node = NEW_LIT(x))
11526 # define set_yylval_node(x) (yylval.node = (x))
11527 # define yylval_id() (yylval.id)
11528 #else
11529 static inline VALUE
11530 ripper_yylval_id(ID x)
11531 {
11532     return (VALUE)NEW_LASGN(x, ID2SYM(x));
11533 }
11534 # define set_yylval_str(x) (void)(x)
11535 # define set_yylval_num(x) (void)(x)
11536 # define set_yylval_id(x)  (void)(x)
11537 # define set_yylval_name(x) (void)(yylval.val = ripper_yylval_id(x))
11538 # define set_yylval_literal(x) (void)(x)
11539 # define set_yylval_node(x) (void)(x)
11540 # define yylval_id() yylval.id
11541 #endif
11542 
11543 #ifndef RIPPER
11544 #define ripper_flush(p) (void)(p)
11545 #else
11546 #define ripper_flush(p) ((p)->tokp = (p)->parser_lex_p)
11547 
11548 #define yylval_rval (*(RB_TYPE_P(yylval.val, T_NODE) ? &yylval.node->nd_rval : &yylval.val))
11549 
11550 static int
11551 ripper_has_scan_event(struct parser_params *parser)
11552 {
11553 
11554     if (lex_p < parser->tokp) rb_raise(rb_eRuntimeError, "lex_p < tokp");
11555     return lex_p > parser->tokp;
11556 }
11557 
11558 static VALUE
11559 ripper_scan_event_val(struct parser_params *parser, int t)
11560 {
11561     VALUE str = STR_NEW(parser->tokp, lex_p - parser->tokp);
11562     VALUE rval = ripper_dispatch1(parser, ripper_token2eventid(t), str);
11563     ripper_flush(parser);
11564     return rval;
11565 }
11566 
11567 static void
11568 ripper_dispatch_scan_event(struct parser_params *parser, int t)
11569 {
11570     if (!ripper_has_scan_event(parser)) return;
11571     yylval_rval = ripper_scan_event_val(parser, t);
11572 }
11573 
11574 static void
11575 ripper_dispatch_ignored_scan_event(struct parser_params *parser, int t)
11576 {
11577     if (!ripper_has_scan_event(parser)) return;
11578     (void)ripper_scan_event_val(parser, t);
11579 }
11580 
11581 static void
11582 ripper_dispatch_delayed_token(struct parser_params *parser, int t)
11583 {
11584     int saved_line = ruby_sourceline;
11585     const char *saved_tokp = parser->tokp;
11586 
11587     ruby_sourceline = parser->delayed_line;
11588     parser->tokp = lex_pbeg + parser->delayed_col;
11589     yylval_rval = ripper_dispatch1(parser, ripper_token2eventid(t), parser->delayed);
11590     parser->delayed = Qnil;
11591     ruby_sourceline = saved_line;
11592     parser->tokp = saved_tokp;
11593 }
11594 #endif /* RIPPER */
11595 
11596 #include "ruby/regex.h"
11597 #include "ruby/util.h"
11598 
11599 /* We remove any previous definition of `SIGN_EXTEND_CHAR',
11600    since ours (we hope) works properly with all combinations of
11601    machines, compilers, `char' and `unsigned char' argument types.
11602    (Per Bothner suggested the basic approach.)  */
11603 #undef SIGN_EXTEND_CHAR
11604 #if __STDC__
11605 # define SIGN_EXTEND_CHAR(c) ((signed char)(c))
11606 #else  /* not __STDC__ */
11607 /* As in Harbison and Steele.  */
11608 # define SIGN_EXTEND_CHAR(c) ((((unsigned char)(c)) ^ 128) - 128)
11609 #endif
11610 
11611 #define parser_encoding_name()  (current_enc->name)
11612 #define parser_mbclen()  mbclen((lex_p-1),lex_pend,current_enc)
11613 #define parser_precise_mbclen()  rb_enc_precise_mbclen((lex_p-1),lex_pend,current_enc)
11614 #define is_identchar(p,e,enc) (rb_enc_isalnum(*(p),(enc)) || (*(p)) == '_' || !ISASCII(*(p)))
11615 #define parser_is_identchar() (!parser->eofp && is_identchar((lex_p-1),lex_pend,current_enc))
11616 
11617 #define parser_isascii() ISASCII(*(lex_p-1))
11618 
11619 #ifndef RIPPER
11620 static int
11621 token_info_get_column(struct parser_params *parser, const char *token)
11622 {
11623     int column = 1;
11624     const char *p, *pend = lex_p - strlen(token);
11625     for (p = lex_pbeg; p < pend; p++) {
11626         if (*p == '\t') {
11627             column = (((column - 1) / 8) + 1) * 8;
11628         }
11629         column++;
11630     }
11631     return column;
11632 }
11633 
11634 static int
11635 token_info_has_nonspaces(struct parser_params *parser, const char *token)
11636 {
11637     const char *p, *pend = lex_p - strlen(token);
11638     for (p = lex_pbeg; p < pend; p++) {
11639         if (*p != ' ' && *p != '\t') {
11640             return 1;
11641         }
11642     }
11643     return 0;
11644 }
11645 
11646 #undef token_info_push
11647 static void
11648 token_info_push(struct parser_params *parser, const char *token)
11649 {
11650     token_info *ptinfo;
11651 
11652     if (!parser->parser_token_info_enabled) return;
11653     ptinfo = ALLOC(token_info);
11654     ptinfo->token = token;
11655     ptinfo->linenum = ruby_sourceline;
11656     ptinfo->column = token_info_get_column(parser, token);
11657     ptinfo->nonspc = token_info_has_nonspaces(parser, token);
11658     ptinfo->next = parser->parser_token_info;
11659 
11660     parser->parser_token_info = ptinfo;
11661 }
11662 
11663 #undef token_info_pop
11664 static void
11665 token_info_pop(struct parser_params *parser, const char *token)
11666 {
11667     int linenum;
11668     token_info *ptinfo = parser->parser_token_info;
11669 
11670     if (!ptinfo) return;
11671     parser->parser_token_info = ptinfo->next;
11672     if (token_info_get_column(parser, token) == ptinfo->column) { /* OK */
11673         goto finish;
11674     }
11675     linenum = ruby_sourceline;
11676     if (linenum == ptinfo->linenum) { /* SKIP */
11677         goto finish;
11678     }
11679     if (token_info_has_nonspaces(parser, token) || ptinfo->nonspc) { /* SKIP */
11680         goto finish;
11681     }
11682     if (parser->parser_token_info_enabled) {
11683         rb_compile_warn(ruby_sourcefile, linenum,
11684                         "mismatched indentations at '%s' with '%s' at %d",
11685                         token, ptinfo->token, ptinfo->linenum);
11686     }
11687 
11688   finish:
11689     xfree(ptinfo);
11690 }
11691 #endif  /* RIPPER */
11692 
11693 static int
11694 parser_yyerror(struct parser_params *parser, const char *msg)
11695 {
11696 #ifndef RIPPER
11697     const int max_line_margin = 30;
11698     const char *p, *pe;
11699     char *buf;
11700     long len;
11701     int i;
11702 
11703     compile_error(PARSER_ARG "%s", msg);
11704     p = lex_p;
11705     while (lex_pbeg <= p) {
11706         if (*p == '\n') break;
11707         p--;
11708     }
11709     p++;
11710 
11711     pe = lex_p;
11712     while (pe < lex_pend) {
11713         if (*pe == '\n') break;
11714         pe++;
11715     }
11716 
11717     len = pe - p;
11718     if (len > 4) {
11719         char *p2;
11720         const char *pre = "", *post = "";
11721 
11722         if (len > max_line_margin * 2 + 10) {
11723             if (lex_p - p > max_line_margin) {
11724                 p = rb_enc_prev_char(p, lex_p - max_line_margin, pe, rb_enc_get(lex_lastline));
11725                 pre = "...";
11726             }
11727             if (pe - lex_p > max_line_margin) {
11728                 pe = rb_enc_prev_char(lex_p, lex_p + max_line_margin, pe, rb_enc_get(lex_lastline));
11729                 post = "...";
11730             }
11731             len = pe - p;
11732         }
11733         buf = ALLOCA_N(char, len+2);
11734         MEMCPY(buf, p, char, len);
11735         buf[len] = '\0';
11736         rb_compile_error_append("%s%s%s", pre, buf, post);
11737 
11738         i = (int)(lex_p - p);
11739         p2 = buf; pe = buf + len;
11740 
11741         while (p2 < pe) {
11742             if (*p2 != '\t') *p2 = ' ';
11743             p2++;
11744         }
11745         buf[i] = '^';
11746         buf[i+1] = '\0';
11747         rb_compile_error_append("%s%s", pre, buf);
11748     }
11749 #else
11750     dispatch1(parse_error, STR_NEW2(msg));
11751 #endif /* !RIPPER */
11752     return 0;
11753 }
11754 
11755 static void parser_prepare(struct parser_params *parser);
11756 
11757 #ifndef RIPPER
11758 static VALUE
11759 debug_lines(const char *f)
11760 {
11761     ID script_lines;
11762     CONST_ID(script_lines, "SCRIPT_LINES__");
11763     if (rb_const_defined_at(rb_cObject, script_lines)) {
11764         VALUE hash = rb_const_get_at(rb_cObject, script_lines);
11765         if (RB_TYPE_P(hash, T_HASH)) {
11766             VALUE fname = rb_external_str_new_with_enc(f, strlen(f), rb_filesystem_encoding());
11767             VALUE lines = rb_ary_new();
11768             rb_hash_aset(hash, fname, lines);
11769             return lines;
11770         }
11771     }
11772     return 0;
11773 }
11774 
11775 static VALUE
11776 coverage(const char *f, int n)
11777 {
11778     VALUE coverages = rb_get_coverages();
11779     if (RTEST(coverages) && RBASIC(coverages)->klass == 0) {
11780         VALUE fname = rb_external_str_new_with_enc(f, strlen(f), rb_filesystem_encoding());
11781         VALUE lines = rb_ary_new2(n);
11782         int i;
11783         RBASIC(lines)->klass = 0;
11784         for (i = 0; i < n; i++) RARRAY_PTR(lines)[i] = Qnil;
11785         RARRAY(lines)->as.heap.len = n;
11786         rb_hash_aset(coverages, fname, lines);
11787         return lines;
11788     }
11789     return 0;
11790 }
11791 
11792 static int
11793 e_option_supplied(struct parser_params *parser)
11794 {
11795     return strcmp(ruby_sourcefile, "-e") == 0;
11796 }
11797 
11798 static VALUE
11799 yycompile0(VALUE arg)
11800 {
11801     int n;
11802     NODE *tree;
11803     struct parser_params *parser = (struct parser_params *)arg;
11804 
11805     if (!compile_for_eval && rb_safe_level() == 0) {
11806         ruby_debug_lines = debug_lines(ruby_sourcefile);
11807         if (ruby_debug_lines && ruby_sourceline > 0) {
11808             VALUE str = STR_NEW0();
11809             n = ruby_sourceline;
11810             do {
11811                 rb_ary_push(ruby_debug_lines, str);
11812             } while (--n);
11813         }
11814 
11815         if (!e_option_supplied(parser)) {
11816             ruby_coverage = coverage(ruby_sourcefile, ruby_sourceline);
11817         }
11818     }
11819 
11820     parser_prepare(parser);
11821     deferred_nodes = 0;
11822 #ifndef RIPPER
11823     parser->parser_token_info_enabled = !compile_for_eval && RTEST(ruby_verbose);
11824 #endif
11825 #ifndef RIPPER
11826     if (RUBY_DTRACE_PARSE_BEGIN_ENABLED()) {
11827         RUBY_DTRACE_PARSE_BEGIN(parser->parser_ruby_sourcefile,
11828                                 parser->parser_ruby_sourceline);
11829     }
11830 #endif
11831     n = yyparse((void*)parser);
11832 #ifndef RIPPER
11833     if (RUBY_DTRACE_PARSE_END_ENABLED()) {
11834         RUBY_DTRACE_PARSE_END(parser->parser_ruby_sourcefile,
11835                               parser->parser_ruby_sourceline);
11836     }
11837 #endif
11838     ruby_debug_lines = 0;
11839     ruby_coverage = 0;
11840     compile_for_eval = 0;
11841 
11842     lex_strterm = 0;
11843     lex_p = lex_pbeg = lex_pend = 0;
11844     lex_lastline = lex_nextline = 0;
11845     if (parser->nerr) {
11846         return 0;
11847     }
11848     tree = ruby_eval_tree;
11849     if (!tree) {
11850         tree = NEW_NIL();
11851     }
11852     else if (ruby_eval_tree_begin) {
11853         tree->nd_body = NEW_PRELUDE(ruby_eval_tree_begin, tree->nd_body);
11854     }
11855     return (VALUE)tree;
11856 }
11857 
11858 static NODE*
11859 yycompile(struct parser_params *parser, const char *f, int line)
11860 {
11861     ruby_sourcefile = ruby_strdup(f);
11862     ruby_sourceline = line - 1;
11863     return (NODE *)rb_suppress_tracing(yycompile0, (VALUE)parser);
11864 }
11865 #endif /* !RIPPER */
11866 
11867 static rb_encoding *
11868 must_be_ascii_compatible(VALUE s)
11869 {
11870     rb_encoding *enc = rb_enc_get(s);
11871     if (!rb_enc_asciicompat(enc)) {
11872         rb_raise(rb_eArgError, "invalid source encoding");
11873     }
11874     return enc;
11875 }
11876 
11877 static VALUE
11878 lex_get_str(struct parser_params *parser, VALUE s)
11879 {
11880     char *beg, *end, *pend;
11881     rb_encoding *enc = must_be_ascii_compatible(s);
11882 
11883     beg = RSTRING_PTR(s);
11884     if (lex_gets_ptr) {
11885         if (RSTRING_LEN(s) == lex_gets_ptr) return Qnil;
11886         beg += lex_gets_ptr;
11887     }
11888     pend = RSTRING_PTR(s) + RSTRING_LEN(s);
11889     end = beg;
11890     while (end < pend) {
11891         if (*end++ == '\n') break;
11892     }
11893     lex_gets_ptr = end - RSTRING_PTR(s);
11894     return rb_enc_str_new(beg, end - beg, enc);
11895 }
11896 
11897 static VALUE
11898 lex_getline(struct parser_params *parser)
11899 {
11900     VALUE line = (*parser->parser_lex_gets)(parser, parser->parser_lex_input);
11901     if (NIL_P(line)) return line;
11902     must_be_ascii_compatible(line);
11903 #ifndef RIPPER
11904     if (ruby_debug_lines) {
11905         rb_enc_associate(line, current_enc);
11906         rb_ary_push(ruby_debug_lines, line);
11907     }
11908     if (ruby_coverage) {
11909         rb_ary_push(ruby_coverage, Qnil);
11910     }
11911 #endif
11912     return line;
11913 }
11914 
11915 #ifdef RIPPER
11916 static rb_data_type_t parser_data_type;
11917 #else
11918 static const rb_data_type_t parser_data_type;
11919 
11920 static NODE*
11921 parser_compile_string(volatile VALUE vparser, const char *f, VALUE s, int line)
11922 {
11923     struct parser_params *parser;
11924     NODE *node;
11925 
11926     TypedData_Get_Struct(vparser, struct parser_params, &parser_data_type, parser);
11927     lex_gets = lex_get_str;
11928     lex_gets_ptr = 0;
11929     lex_input = s;
11930     lex_pbeg = lex_p = lex_pend = 0;
11931     compile_for_eval = rb_parse_in_eval();
11932 
11933     node = yycompile(parser, f, line);
11934     RB_GC_GUARD(vparser); /* prohibit tail call optimization */
11935 
11936     return node;
11937 }
11938 
11939 NODE*
11940 rb_compile_string(const char *f, VALUE s, int line)
11941 {
11942     must_be_ascii_compatible(s);
11943     return parser_compile_string(rb_parser_new(), f, s, line);
11944 }
11945 
11946 NODE*
11947 rb_parser_compile_string(volatile VALUE vparser, const char *f, VALUE s, int line)
11948 {
11949     must_be_ascii_compatible(s);
11950     return parser_compile_string(vparser, f, s, line);
11951 }
11952 
11953 NODE*
11954 rb_compile_cstr(const char *f, const char *s, int len, int line)
11955 {
11956     VALUE str = rb_str_new(s, len);
11957     return parser_compile_string(rb_parser_new(), f, str, line);
11958 }
11959 
11960 NODE*
11961 rb_parser_compile_cstr(volatile VALUE vparser, const char *f, const char *s, int len, int line)
11962 {
11963     VALUE str = rb_str_new(s, len);
11964     return parser_compile_string(vparser, f, str, line);
11965 }
11966 
11967 static VALUE
11968 lex_io_gets(struct parser_params *parser, VALUE io)
11969 {
11970     return rb_io_gets(io);
11971 }
11972 
11973 NODE*
11974 rb_compile_file(const char *f, VALUE file, int start)
11975 {
11976     VALUE volatile vparser = rb_parser_new();
11977 
11978     return rb_parser_compile_file(vparser, f, file, start);
11979 }
11980 
11981 NODE*
11982 rb_parser_compile_file(volatile VALUE vparser, const char *f, VALUE file, int start)
11983 {
11984     struct parser_params *parser;
11985     NODE *node;
11986 
11987     TypedData_Get_Struct(vparser, struct parser_params, &parser_data_type, parser);
11988     lex_gets = lex_io_gets;
11989     lex_input = file;
11990     lex_pbeg = lex_p = lex_pend = 0;
11991     compile_for_eval = rb_parse_in_eval();
11992 
11993     node = yycompile(parser, f, start);
11994     RB_GC_GUARD(vparser); /* prohibit tail call optimization */
11995 
11996     return node;
11997 }
11998 #endif  /* !RIPPER */
11999 
12000 #define STR_FUNC_ESCAPE 0x01
12001 #define STR_FUNC_EXPAND 0x02
12002 #define STR_FUNC_REGEXP 0x04
12003 #define STR_FUNC_QWORDS 0x08
12004 #define STR_FUNC_SYMBOL 0x10
12005 #define STR_FUNC_INDENT 0x20
12006 
12007 enum string_type {
12008     str_squote = (0),
12009     str_dquote = (STR_FUNC_EXPAND),
12010     str_xquote = (STR_FUNC_EXPAND),
12011     str_regexp = (STR_FUNC_REGEXP|STR_FUNC_ESCAPE|STR_FUNC_EXPAND),
12012     str_sword  = (STR_FUNC_QWORDS),
12013     str_dword  = (STR_FUNC_QWORDS|STR_FUNC_EXPAND),
12014     str_ssym   = (STR_FUNC_SYMBOL),
12015     str_dsym   = (STR_FUNC_SYMBOL|STR_FUNC_EXPAND)
12016 };
12017 
12018 static VALUE
12019 parser_str_new(const char *p, long n, rb_encoding *enc, int func, rb_encoding *enc0)
12020 {
12021     VALUE str;
12022 
12023     str = rb_enc_str_new(p, n, enc);
12024     if (!(func & STR_FUNC_REGEXP) && rb_enc_asciicompat(enc)) {
12025         if (rb_enc_str_coderange(str) == ENC_CODERANGE_7BIT) {
12026         }
12027         else if (enc0 == rb_usascii_encoding() && enc != rb_utf8_encoding()) {
12028             rb_enc_associate(str, rb_ascii8bit_encoding());
12029         }
12030     }
12031 
12032     return str;
12033 }
12034 
12035 #define lex_goto_eol(parser) ((parser)->parser_lex_p = (parser)->parser_lex_pend)
12036 #define lex_eol_p() (lex_p >= lex_pend)
12037 #define peek(c) peek_n((c), 0)
12038 #define peek_n(c,n) (lex_p+(n) < lex_pend && (c) == (unsigned char)lex_p[n])
12039 
12040 static inline int
12041 parser_nextc(struct parser_params *parser)
12042 {
12043     int c;
12044 
12045     if (lex_p == lex_pend) {
12046         VALUE v = lex_nextline;
12047         lex_nextline = 0;
12048         if (!v) {
12049             if (parser->eofp)
12050                 return -1;
12051 
12052             if (!lex_input || NIL_P(v = lex_getline(parser))) {
12053                 parser->eofp = Qtrue;
12054                 lex_goto_eol(parser);
12055                 return -1;
12056             }
12057         }
12058         {
12059 #ifdef RIPPER
12060             if (parser->tokp < lex_pend) {
12061                 if (NIL_P(parser->delayed)) {
12062                     parser->delayed = rb_str_buf_new(1024);
12063                     rb_enc_associate(parser->delayed, current_enc);
12064                     rb_str_buf_cat(parser->delayed,
12065                                    parser->tokp, lex_pend - parser->tokp);
12066                     parser->delayed_line = ruby_sourceline;
12067                     parser->delayed_col = (int)(parser->tokp - lex_pbeg);
12068                 }
12069                 else {
12070                     rb_str_buf_cat(parser->delayed,
12071                                    parser->tokp, lex_pend - parser->tokp);
12072                 }
12073             }
12074 #endif
12075             if (heredoc_end > 0) {
12076                 ruby_sourceline = heredoc_end;
12077                 heredoc_end = 0;
12078             }
12079             ruby_sourceline++;
12080             parser->line_count++;
12081             lex_pbeg = lex_p = RSTRING_PTR(v);
12082             lex_pend = lex_p + RSTRING_LEN(v);
12083             ripper_flush(parser);
12084             lex_lastline = v;
12085         }
12086     }
12087     c = (unsigned char)*lex_p++;
12088     if (c == '\r' && peek('\n')) {
12089         lex_p++;
12090         c = '\n';
12091     }
12092 
12093     return c;
12094 }
12095 
12096 static void
12097 parser_pushback(struct parser_params *parser, int c)
12098 {
12099     if (c == -1) return;
12100     lex_p--;
12101     if (lex_p > lex_pbeg && lex_p[0] == '\n' && lex_p[-1] == '\r') {
12102         lex_p--;
12103     }
12104 }
12105 
12106 #define was_bol() (lex_p == lex_pbeg + 1)
12107 
12108 #define tokfix() (tokenbuf[tokidx]='\0')
12109 #define tok() tokenbuf
12110 #define toklen() tokidx
12111 #define toklast() (tokidx>0?tokenbuf[tokidx-1]:0)
12112 
12113 static char*
12114 parser_newtok(struct parser_params *parser)
12115 {
12116     tokidx = 0;
12117     tokline = ruby_sourceline;
12118     if (!tokenbuf) {
12119         toksiz = 60;
12120         tokenbuf = ALLOC_N(char, 60);
12121     }
12122     if (toksiz > 4096) {
12123         toksiz = 60;
12124         REALLOC_N(tokenbuf, char, 60);
12125     }
12126     return tokenbuf;
12127 }
12128 
12129 static char *
12130 parser_tokspace(struct parser_params *parser, int n)
12131 {
12132     tokidx += n;
12133 
12134     if (tokidx >= toksiz) {
12135         do {toksiz *= 2;} while (toksiz < tokidx);
12136         REALLOC_N(tokenbuf, char, toksiz);
12137     }
12138     return &tokenbuf[tokidx-n];
12139 }
12140 
12141 static void
12142 parser_tokadd(struct parser_params *parser, int c)
12143 {
12144     tokenbuf[tokidx++] = (char)c;
12145     if (tokidx >= toksiz) {
12146         toksiz *= 2;
12147         REALLOC_N(tokenbuf, char, toksiz);
12148     }
12149 }
12150 
12151 static int
12152 parser_tok_hex(struct parser_params *parser, size_t *numlen)
12153 {
12154     int c;
12155 
12156     c = scan_hex(lex_p, 2, numlen);
12157     if (!*numlen) {
12158         yyerror("invalid hex escape");
12159         return 0;
12160     }
12161     lex_p += *numlen;
12162     return c;
12163 }
12164 
12165 #define tokcopy(n) memcpy(tokspace(n), lex_p - (n), (n))
12166 
12167 /* return value is for ?\u3042 */
12168 static int
12169 parser_tokadd_utf8(struct parser_params *parser, rb_encoding **encp,
12170                    int string_literal, int symbol_literal, int regexp_literal)
12171 {
12172     /*
12173      * If string_literal is true, then we allow multiple codepoints
12174      * in \u{}, and add the codepoints to the current token.
12175      * Otherwise we're parsing a character literal and return a single
12176      * codepoint without adding it
12177      */
12178 
12179     int codepoint;
12180     size_t numlen;
12181 
12182     if (regexp_literal) { tokadd('\\'); tokadd('u'); }
12183 
12184     if (peek('{')) {  /* handle \u{...} form */
12185         do {
12186             if (regexp_literal) { tokadd(*lex_p); }
12187             nextc();
12188             codepoint = scan_hex(lex_p, 6, &numlen);
12189             if (numlen == 0)  {
12190                 yyerror("invalid Unicode escape");
12191                 return 0;
12192             }
12193             if (codepoint > 0x10ffff) {
12194                 yyerror("invalid Unicode codepoint (too large)");
12195                 return 0;
12196             }
12197             lex_p += numlen;
12198             if (regexp_literal) {
12199                 tokcopy((int)numlen);
12200             }
12201             else if (codepoint >= 0x80) {
12202                 *encp = rb_utf8_encoding();
12203                 if (string_literal) tokaddmbc(codepoint, *encp);
12204             }
12205             else if (string_literal) {
12206                 tokadd(codepoint);
12207             }
12208         } while (string_literal && (peek(' ') || peek('\t')));
12209 
12210         if (!peek('}')) {
12211             yyerror("unterminated Unicode escape");
12212             return 0;
12213         }
12214 
12215         if (regexp_literal) { tokadd('}'); }
12216         nextc();
12217     }
12218     else {                      /* handle \uxxxx form */
12219         codepoint = scan_hex(lex_p, 4, &numlen);
12220         if (numlen < 4) {
12221             yyerror("invalid Unicode escape");
12222             return 0;
12223         }
12224         lex_p += 4;
12225         if (regexp_literal) {
12226             tokcopy(4);
12227         }
12228         else if (codepoint >= 0x80) {
12229             *encp = rb_utf8_encoding();
12230             if (string_literal) tokaddmbc(codepoint, *encp);
12231         }
12232         else if (string_literal) {
12233             tokadd(codepoint);
12234         }
12235     }
12236 
12237     return codepoint;
12238 }
12239 
12240 #define ESCAPE_CONTROL 1
12241 #define ESCAPE_META    2
12242 
12243 static int
12244 parser_read_escape(struct parser_params *parser, int flags,
12245                    rb_encoding **encp)
12246 {
12247     int c;
12248     size_t numlen;
12249 
12250     switch (c = nextc()) {
12251       case '\\':        /* Backslash */
12252         return c;
12253 
12254       case 'n': /* newline */
12255         return '\n';
12256 
12257       case 't': /* horizontal tab */
12258         return '\t';
12259 
12260       case 'r': /* carriage-return */
12261         return '\r';
12262 
12263       case 'f': /* form-feed */
12264         return '\f';
12265 
12266       case 'v': /* vertical tab */
12267         return '\13';
12268 
12269       case 'a': /* alarm(bell) */
12270         return '\007';
12271 
12272       case 'e': /* escape */
12273         return 033;
12274 
12275       case '0': case '1': case '2': case '3': /* octal constant */
12276       case '4': case '5': case '6': case '7':
12277         pushback(c);
12278         c = scan_oct(lex_p, 3, &numlen);
12279         lex_p += numlen;
12280         return c;
12281 
12282       case 'x': /* hex constant */
12283         c = tok_hex(&numlen);
12284         if (numlen == 0) return 0;
12285         return c;
12286 
12287       case 'b': /* backspace */
12288         return '\010';
12289 
12290       case 's': /* space */
12291         return ' ';
12292 
12293       case 'M':
12294         if (flags & ESCAPE_META) goto eof;
12295         if ((c = nextc()) != '-') {
12296             pushback(c);
12297             goto eof;
12298         }
12299         if ((c = nextc()) == '\\') {
12300             if (peek('u')) goto eof;
12301             return read_escape(flags|ESCAPE_META, encp) | 0x80;
12302         }
12303         else if (c == -1 || !ISASCII(c)) goto eof;
12304         else {
12305             return ((c & 0xff) | 0x80);
12306         }
12307 
12308       case 'C':
12309         if ((c = nextc()) != '-') {
12310             pushback(c);
12311             goto eof;
12312         }
12313       case 'c':
12314         if (flags & ESCAPE_CONTROL) goto eof;
12315         if ((c = nextc())== '\\') {
12316             if (peek('u')) goto eof;
12317             c = read_escape(flags|ESCAPE_CONTROL, encp);
12318         }
12319         else if (c == '?')
12320             return 0177;
12321         else if (c == -1 || !ISASCII(c)) goto eof;
12322         return c & 0x9f;
12323 
12324       eof:
12325       case -1:
12326         yyerror("Invalid escape character syntax");
12327         return '\0';
12328 
12329       default:
12330         return c;
12331     }
12332 }
12333 
12334 static void
12335 parser_tokaddmbc(struct parser_params *parser, int c, rb_encoding *enc)
12336 {
12337     int len = rb_enc_codelen(c, enc);
12338     rb_enc_mbcput(c, tokspace(len), enc);
12339 }
12340 
12341 static int
12342 parser_tokadd_escape(struct parser_params *parser, rb_encoding **encp)
12343 {
12344     int c;
12345     int flags = 0;
12346     size_t numlen;
12347 
12348   first:
12349     switch (c = nextc()) {
12350       case '\n':
12351         return 0;               /* just ignore */
12352 
12353       case '0': case '1': case '2': case '3': /* octal constant */
12354       case '4': case '5': case '6': case '7':
12355         {
12356             ruby_scan_oct(--lex_p, 3, &numlen);
12357             if (numlen == 0) goto eof;
12358             lex_p += numlen;
12359             tokcopy((int)numlen + 1);
12360         }
12361         return 0;
12362 
12363       case 'x': /* hex constant */
12364         {
12365             tok_hex(&numlen);
12366             if (numlen == 0) return -1;
12367             tokcopy((int)numlen + 2);
12368         }
12369         return 0;
12370 
12371       case 'M':
12372         if (flags & ESCAPE_META) goto eof;
12373         if ((c = nextc()) != '-') {
12374             pushback(c);
12375             goto eof;
12376         }
12377         tokcopy(3);
12378         flags |= ESCAPE_META;
12379         goto escaped;
12380 
12381       case 'C':
12382         if (flags & ESCAPE_CONTROL) goto eof;
12383         if ((c = nextc()) != '-') {
12384             pushback(c);
12385             goto eof;
12386         }
12387         tokcopy(3);
12388         goto escaped;
12389 
12390       case 'c':
12391         if (flags & ESCAPE_CONTROL) goto eof;
12392         tokcopy(2);
12393         flags |= ESCAPE_CONTROL;
12394       escaped:
12395         if ((c = nextc()) == '\\') {
12396             goto first;
12397         }
12398         else if (c == -1) goto eof;
12399         tokadd(c);
12400         return 0;
12401 
12402       eof:
12403       case -1:
12404         yyerror("Invalid escape character syntax");
12405         return -1;
12406 
12407       default:
12408         tokadd('\\');
12409         tokadd(c);
12410     }
12411     return 0;
12412 }
12413 
12414 static int
12415 parser_regx_options(struct parser_params *parser)
12416 {
12417     int kcode = 0;
12418     int kopt = 0;
12419     int options = 0;
12420     int c, opt, kc;
12421 
12422     newtok();
12423     while (c = nextc(), ISALPHA(c)) {
12424         if (c == 'o') {
12425             options |= RE_OPTION_ONCE;
12426         }
12427         else if (rb_char_to_option_kcode(c, &opt, &kc)) {
12428             if (kc >= 0) {
12429                 if (kc != rb_ascii8bit_encindex()) kcode = c;
12430                 kopt = opt;
12431             }
12432             else {
12433                 options |= opt;
12434             }
12435         }
12436         else {
12437             tokadd(c);
12438         }
12439     }
12440     options |= kopt;
12441     pushback(c);
12442     if (toklen()) {
12443         tokfix();
12444         compile_error(PARSER_ARG "unknown regexp option%s - %s",
12445                       toklen() > 1 ? "s" : "", tok());
12446     }
12447     return options | RE_OPTION_ENCODING(kcode);
12448 }
12449 
12450 static void
12451 dispose_string(VALUE str)
12452 {
12453     rb_str_free(str);
12454     rb_gc_force_recycle(str);
12455 }
12456 
12457 static int
12458 parser_tokadd_mbchar(struct parser_params *parser, int c)
12459 {
12460     int len = parser_precise_mbclen();
12461     if (!MBCLEN_CHARFOUND_P(len)) {
12462         compile_error(PARSER_ARG "invalid multibyte char (%s)", parser_encoding_name());
12463         return -1;
12464     }
12465     tokadd(c);
12466     lex_p += --len;
12467     if (len > 0) tokcopy(len);
12468     return c;
12469 }
12470 
12471 #define tokadd_mbchar(c) parser_tokadd_mbchar(parser, (c))
12472 
12473 static inline int
12474 simple_re_meta(int c)
12475 {
12476     switch (c) {
12477       case '$': case '*': case '+': case '.':
12478       case '?': case '^': case '|':
12479       case ')': case ']': case '}': case '>':
12480         return TRUE;
12481       default:
12482         return FALSE;
12483     }
12484 }
12485 
12486 static int
12487 parser_tokadd_string(struct parser_params *parser,
12488                      int func, int term, int paren, long *nest,
12489                      rb_encoding **encp)
12490 {
12491     int c;
12492     int has_nonascii = 0;
12493     rb_encoding *enc = *encp;
12494     char *errbuf = 0;
12495     static const char mixed_msg[] = "%s mixed within %s source";
12496 
12497 #define mixed_error(enc1, enc2) if (!errbuf) {  \
12498         size_t len = sizeof(mixed_msg) - 4;     \
12499         len += strlen(rb_enc_name(enc1));       \
12500         len += strlen(rb_enc_name(enc2));       \
12501         errbuf = ALLOCA_N(char, len);           \
12502         snprintf(errbuf, len, mixed_msg,        \
12503                  rb_enc_name(enc1),             \
12504                  rb_enc_name(enc2));            \
12505         yyerror(errbuf);                        \
12506     }
12507 #define mixed_escape(beg, enc1, enc2) do {      \
12508         const char *pos = lex_p;                \
12509         lex_p = (beg);                          \
12510         mixed_error((enc1), (enc2));            \
12511         lex_p = pos;                            \
12512     } while (0)
12513 
12514     while ((c = nextc()) != -1) {
12515         if (paren && c == paren) {
12516             ++*nest;
12517         }
12518         else if (c == term) {
12519             if (!nest || !*nest) {
12520                 pushback(c);
12521                 break;
12522             }
12523             --*nest;
12524         }
12525         else if ((func & STR_FUNC_EXPAND) && c == '#' && lex_p < lex_pend) {
12526             int c2 = *lex_p;
12527             if (c2 == '$' || c2 == '@' || c2 == '{') {
12528                 pushback(c);
12529                 break;
12530             }
12531         }
12532         else if (c == '\\') {
12533             const char *beg = lex_p - 1;
12534             c = nextc();
12535             switch (c) {
12536               case '\n':
12537                 if (func & STR_FUNC_QWORDS) break;
12538                 if (func & STR_FUNC_EXPAND) continue;
12539                 tokadd('\\');
12540                 break;
12541 
12542               case '\\':
12543                 if (func & STR_FUNC_ESCAPE) tokadd(c);
12544                 break;
12545 
12546               case 'u':
12547                 if ((func & STR_FUNC_EXPAND) == 0) {
12548                     tokadd('\\');
12549                     break;
12550                 }
12551                 parser_tokadd_utf8(parser, &enc, 1,
12552                                    func & STR_FUNC_SYMBOL,
12553                                    func & STR_FUNC_REGEXP);
12554                 if (has_nonascii && enc != *encp) {
12555                     mixed_escape(beg, enc, *encp);
12556                 }
12557                 continue;
12558 
12559               default:
12560                 if (c == -1) return -1;
12561                 if (!ISASCII(c)) {
12562                     if ((func & STR_FUNC_EXPAND) == 0) tokadd('\\');
12563                     goto non_ascii;
12564                 }
12565                 if (func & STR_FUNC_REGEXP) {
12566                     if (c == term && !simple_re_meta(c)) {
12567                         tokadd(c);
12568                         continue;
12569                     }
12570                     pushback(c);
12571                     if ((c = tokadd_escape(&enc)) < 0)
12572                         return -1;
12573                     if (has_nonascii && enc != *encp) {
12574                         mixed_escape(beg, enc, *encp);
12575                     }
12576                     continue;
12577                 }
12578                 else if (func & STR_FUNC_EXPAND) {
12579                     pushback(c);
12580                     if (func & STR_FUNC_ESCAPE) tokadd('\\');
12581                     c = read_escape(0, &enc);
12582                 }
12583                 else if ((func & STR_FUNC_QWORDS) && ISSPACE(c)) {
12584                     /* ignore backslashed spaces in %w */
12585                 }
12586                 else if (c != term && !(paren && c == paren)) {
12587                     tokadd('\\');
12588                     pushback(c);
12589                     continue;
12590                 }
12591             }
12592         }
12593         else if (!parser_isascii()) {
12594           non_ascii:
12595             has_nonascii = 1;
12596             if (enc != *encp) {
12597                 mixed_error(enc, *encp);
12598                 continue;
12599             }
12600             if (tokadd_mbchar(c) == -1) return -1;
12601             continue;
12602         }
12603         else if ((func & STR_FUNC_QWORDS) && ISSPACE(c)) {
12604             pushback(c);
12605             break;
12606         }
12607         if (c & 0x80) {
12608             has_nonascii = 1;
12609             if (enc != *encp) {
12610                 mixed_error(enc, *encp);
12611                 continue;
12612             }
12613         }
12614         tokadd(c);
12615     }
12616     *encp = enc;
12617     return c;
12618 }
12619 
12620 #define NEW_STRTERM(func, term, paren) \
12621         rb_node_newnode(NODE_STRTERM, (func), (term) | ((paren) << (CHAR_BIT * 2)), 0)
12622 
12623 #ifdef RIPPER
12624 static void
12625 ripper_flush_string_content(struct parser_params *parser, rb_encoding *enc)
12626 {
12627     if (!NIL_P(parser->delayed)) {
12628         ptrdiff_t len = lex_p - parser->tokp;
12629         if (len > 0) {
12630             rb_enc_str_buf_cat(parser->delayed, parser->tokp, len, enc);
12631         }
12632         ripper_dispatch_delayed_token(parser, tSTRING_CONTENT);
12633         parser->tokp = lex_p;
12634     }
12635 }
12636 
12637 #define flush_string_content(enc) ripper_flush_string_content(parser, (enc))
12638 #else
12639 #define flush_string_content(enc) ((void)(enc))
12640 #endif
12641 
12642 RUBY_FUNC_EXPORTED const unsigned int ruby_global_name_punct_bits[(0x7e - 0x20 + 31) / 32];
12643 /* this can be shared with ripper, since it's independent from struct
12644  * parser_params. */
12645 #ifndef RIPPER
12646 #define BIT(c, idx) (((c) / 32 - 1 == idx) ? (1U << ((c) % 32)) : 0)
12647 #define SPECIAL_PUNCT(idx) ( \
12648         BIT('~', idx) | BIT('*', idx) | BIT('$', idx) | BIT('?', idx) | \
12649         BIT('!', idx) | BIT('@', idx) | BIT('/', idx) | BIT('\\', idx) | \
12650         BIT(';', idx) | BIT(',', idx) | BIT('.', idx) | BIT('=', idx) | \
12651         BIT(':', idx) | BIT('<', idx) | BIT('>', idx) | BIT('\"', idx) | \
12652         BIT('&', idx) | BIT('`', idx) | BIT('\'', idx) | BIT('+', idx) | \
12653         BIT('0', idx))
12654 const unsigned int ruby_global_name_punct_bits[] = {
12655     SPECIAL_PUNCT(0),
12656     SPECIAL_PUNCT(1),
12657     SPECIAL_PUNCT(2),
12658 };
12659 #undef BIT
12660 #undef SPECIAL_PUNCT
12661 #endif
12662 
12663 static inline int
12664 is_global_name_punct(const char c)
12665 {
12666     if (c <= 0x20 || 0x7e < c) return 0;
12667     return (ruby_global_name_punct_bits[(c - 0x20) / 32] >> (c % 32)) & 1;
12668 }
12669 
12670 static int
12671 parser_peek_variable_name(struct parser_params *parser)
12672 {
12673     int c;
12674     const char *p = lex_p;
12675 
12676     if (p + 1 >= lex_pend) return 0;
12677     c = *p++;
12678     switch (c) {
12679       case '$':
12680         if ((c = *p) == '-') {
12681             if (++p >= lex_pend) return 0;
12682             c = *p;
12683         }
12684         else if (is_global_name_punct(c) || ISDIGIT(c)) {
12685             return tSTRING_DVAR;
12686         }
12687         break;
12688       case '@':
12689         if ((c = *p) == '@') {
12690             if (++p >= lex_pend) return 0;
12691             c = *p;
12692         }
12693         break;
12694       case '{':
12695         lex_p = p;
12696         command_start = TRUE;
12697         return tSTRING_DBEG;
12698       default:
12699         return 0;
12700     }
12701     if (!ISASCII(c) || c == '_' || ISALPHA(c))
12702         return tSTRING_DVAR;
12703     return 0;
12704 }
12705 
12706 static int
12707 parser_parse_string(struct parser_params *parser, NODE *quote)
12708 {
12709     int func = (int)quote->nd_func;
12710     int term = nd_term(quote);
12711     int paren = nd_paren(quote);
12712     int c, space = 0;
12713     rb_encoding *enc = current_enc;
12714 
12715     if (func == -1) return tSTRING_END;
12716     c = nextc();
12717     if ((func & STR_FUNC_QWORDS) && ISSPACE(c)) {
12718         do {c = nextc();} while (ISSPACE(c));
12719         space = 1;
12720     }
12721     if (c == term && !quote->nd_nest) {
12722         if (func & STR_FUNC_QWORDS) {
12723             quote->nd_func = -1;
12724             return ' ';
12725         }
12726         if (!(func & STR_FUNC_REGEXP)) return tSTRING_END;
12727         set_yylval_num(regx_options());
12728         return tREGEXP_END;
12729     }
12730     if (space) {
12731         pushback(c);
12732         return ' ';
12733     }
12734     newtok();
12735     if ((func & STR_FUNC_EXPAND) && c == '#') {
12736         int t = parser_peek_variable_name(parser);
12737         if (t) return t;
12738         tokadd('#');
12739         c = nextc();
12740     }
12741     pushback(c);
12742     if (tokadd_string(func, term, paren, &quote->nd_nest,
12743                       &enc) == -1) {
12744         ruby_sourceline = nd_line(quote);
12745         if (func & STR_FUNC_REGEXP) {
12746             if (parser->eofp)
12747                 compile_error(PARSER_ARG "unterminated regexp meets end of file");
12748             return tREGEXP_END;
12749         }
12750         else {
12751             if (parser->eofp)
12752                 compile_error(PARSER_ARG "unterminated string meets end of file");
12753             return tSTRING_END;
12754         }
12755     }
12756 
12757     tokfix();
12758     set_yylval_str(STR_NEW3(tok(), toklen(), enc, func));
12759     flush_string_content(enc);
12760 
12761     return tSTRING_CONTENT;
12762 }
12763 
12764 static int
12765 parser_heredoc_identifier(struct parser_params *parser)
12766 {
12767     int c = nextc(), term, func = 0;
12768     long len;
12769 
12770     if (c == '-') {
12771         c = nextc();
12772         func = STR_FUNC_INDENT;
12773     }
12774     switch (c) {
12775       case '\'':
12776         func |= str_squote; goto quoted;
12777       case '"':
12778         func |= str_dquote; goto quoted;
12779       case '`':
12780         func |= str_xquote;
12781       quoted:
12782         newtok();
12783         tokadd(func);
12784         term = c;
12785         while ((c = nextc()) != -1 && c != term) {
12786             if (tokadd_mbchar(c) == -1) return 0;
12787         }
12788         if (c == -1) {
12789             compile_error(PARSER_ARG "unterminated here document identifier");
12790             return 0;
12791         }
12792         break;
12793 
12794       default:
12795         if (!parser_is_identchar()) {
12796             pushback(c);
12797             if (func & STR_FUNC_INDENT) {
12798                 pushback('-');
12799             }
12800             return 0;
12801         }
12802         newtok();
12803         term = '"';
12804         tokadd(func |= str_dquote);
12805         do {
12806             if (tokadd_mbchar(c) == -1) return 0;
12807         } while ((c = nextc()) != -1 && parser_is_identchar());
12808         pushback(c);
12809         break;
12810     }
12811 
12812     tokfix();
12813 #ifdef RIPPER
12814     ripper_dispatch_scan_event(parser, tHEREDOC_BEG);
12815 #endif
12816     len = lex_p - lex_pbeg;
12817     lex_goto_eol(parser);
12818     lex_strterm = rb_node_newnode(NODE_HEREDOC,
12819                                   STR_NEW(tok(), toklen()),     /* nd_lit */
12820                                   len,                          /* nd_nth */
12821                                   lex_lastline);                /* nd_orig */
12822     nd_set_line(lex_strterm, ruby_sourceline);
12823     ripper_flush(parser);
12824     return term == '`' ? tXSTRING_BEG : tSTRING_BEG;
12825 }
12826 
12827 static void
12828 parser_heredoc_restore(struct parser_params *parser, NODE *here)
12829 {
12830     VALUE line;
12831 
12832     line = here->nd_orig;
12833     lex_lastline = line;
12834     lex_pbeg = RSTRING_PTR(line);
12835     lex_pend = lex_pbeg + RSTRING_LEN(line);
12836     lex_p = lex_pbeg + here->nd_nth;
12837     heredoc_end = ruby_sourceline;
12838     ruby_sourceline = nd_line(here);
12839     dispose_string(here->nd_lit);
12840     rb_gc_force_recycle((VALUE)here);
12841     ripper_flush(parser);
12842 }
12843 
12844 static int
12845 parser_whole_match_p(struct parser_params *parser,
12846     const char *eos, long len, int indent)
12847 {
12848     const char *p = lex_pbeg;
12849     long n;
12850 
12851     if (indent) {
12852         while (*p && ISSPACE(*p)) p++;
12853     }
12854     n = lex_pend - (p + len);
12855     if (n < 0 || (n > 0 && p[len] != '\n' && p[len] != '\r')) return FALSE;
12856     return strncmp(eos, p, len) == 0;
12857 }
12858 
12859 #ifdef RIPPER
12860 static void
12861 ripper_dispatch_heredoc_end(struct parser_params *parser)
12862 {
12863     if (!NIL_P(parser->delayed))
12864         ripper_dispatch_delayed_token(parser, tSTRING_CONTENT);
12865     lex_goto_eol(parser);
12866     ripper_dispatch_ignored_scan_event(parser, tHEREDOC_END);
12867 }
12868 
12869 #define dispatch_heredoc_end() ripper_dispatch_heredoc_end(parser)
12870 #else
12871 #define dispatch_heredoc_end() ((void)0)
12872 #endif
12873 
12874 static int
12875 parser_here_document(struct parser_params *parser, NODE *here)
12876 {
12877     int c, func, indent = 0;
12878     const char *eos, *p, *pend;
12879     long len;
12880     VALUE str = 0;
12881     rb_encoding *enc = current_enc;
12882 
12883     eos = RSTRING_PTR(here->nd_lit);
12884     len = RSTRING_LEN(here->nd_lit) - 1;
12885     indent = (func = *eos++) & STR_FUNC_INDENT;
12886 
12887     if ((c = nextc()) == -1) {
12888       error:
12889         compile_error(PARSER_ARG "can't find string \"%s\" anywhere before EOF", eos);
12890 #ifdef RIPPER
12891         if (NIL_P(parser->delayed)) {
12892             ripper_dispatch_scan_event(parser, tSTRING_CONTENT);
12893         }
12894         else {
12895             if (str ||
12896                 ((len = lex_p - parser->tokp) > 0 &&
12897                  (str = STR_NEW3(parser->tokp, len, enc, func), 1))) {
12898                 rb_str_append(parser->delayed, str);
12899             }
12900             ripper_dispatch_delayed_token(parser, tSTRING_CONTENT);
12901         }
12902         lex_goto_eol(parser);
12903 #endif
12904       restore:
12905         heredoc_restore(lex_strterm);
12906         lex_strterm = 0;
12907         return 0;
12908     }
12909     if (was_bol() && whole_match_p(eos, len, indent)) {
12910         dispatch_heredoc_end();
12911         heredoc_restore(lex_strterm);
12912         return tSTRING_END;
12913     }
12914 
12915     if (!(func & STR_FUNC_EXPAND)) {
12916         do {
12917             p = RSTRING_PTR(lex_lastline);
12918             pend = lex_pend;
12919             if (pend > p) {
12920                 switch (pend[-1]) {
12921                   case '\n':
12922                     if (--pend == p || pend[-1] != '\r') {
12923                         pend++;
12924                         break;
12925                     }
12926                   case '\r':
12927                     --pend;
12928                 }
12929             }
12930             if (str)
12931                 rb_str_cat(str, p, pend - p);
12932             else
12933                 str = STR_NEW(p, pend - p);
12934             if (pend < lex_pend) rb_str_cat(str, "\n", 1);
12935             lex_goto_eol(parser);
12936             if (nextc() == -1) {
12937                 if (str) dispose_string(str);
12938                 goto error;
12939             }
12940         } while (!whole_match_p(eos, len, indent));
12941     }
12942     else {
12943         /*      int mb = ENC_CODERANGE_7BIT, *mbp = &mb;*/
12944         newtok();
12945         if (c == '#') {
12946             int t = parser_peek_variable_name(parser);
12947             if (t) return t;
12948             tokadd('#');
12949             c = nextc();
12950         }
12951         do {
12952             pushback(c);
12953             if ((c = tokadd_string(func, '\n', 0, NULL, &enc)) == -1) {
12954                 if (parser->eofp) goto error;
12955                 goto restore;
12956             }
12957             if (c != '\n') {
12958                 set_yylval_str(STR_NEW3(tok(), toklen(), enc, func));
12959                 flush_string_content(enc);
12960                 return tSTRING_CONTENT;
12961             }
12962             tokadd(nextc());
12963             /*      if (mbp && mb == ENC_CODERANGE_UNKNOWN) mbp = 0;*/
12964             if ((c = nextc()) == -1) goto error;
12965         } while (!whole_match_p(eos, len, indent));
12966         str = STR_NEW3(tok(), toklen(), enc, func);
12967     }
12968     dispatch_heredoc_end();
12969     heredoc_restore(lex_strterm);
12970     lex_strterm = NEW_STRTERM(-1, 0, 0);
12971     set_yylval_str(str);
12972     return tSTRING_CONTENT;
12973 }
12974 
12975 #include "lex.c"
12976 
12977 static void
12978 arg_ambiguous_gen(struct parser_params *parser)
12979 {
12980 #ifndef RIPPER
12981     rb_warning0("ambiguous first argument; put parentheses or even spaces");
12982 #else
12983     dispatch0(arg_ambiguous);
12984 #endif
12985 }
12986 #define arg_ambiguous() (arg_ambiguous_gen(parser), 1)
12987 
12988 static ID
12989 formal_argument_gen(struct parser_params *parser, ID lhs)
12990 {
12991 #ifndef RIPPER
12992     if (!is_local_id(lhs))
12993         yyerror("formal argument must be local variable");
12994 #endif
12995     shadowing_lvar(lhs);
12996     return lhs;
12997 }
12998 
12999 static int
13000 lvar_defined_gen(struct parser_params *parser, ID id)
13001 {
13002     return (dyna_in_block() && dvar_defined_get(id)) || local_id(id);
13003 }
13004 
13005 /* emacsen -*- hack */
13006 static long
13007 parser_encode_length(struct parser_params *parser, const char *name, long len)
13008 {
13009     long nlen;
13010 
13011     if (len > 5 && name[nlen = len - 5] == '-') {
13012         if (rb_memcicmp(name + nlen + 1, "unix", 4) == 0)
13013             return nlen;
13014     }
13015     if (len > 4 && name[nlen = len - 4] == '-') {
13016         if (rb_memcicmp(name + nlen + 1, "dos", 3) == 0)
13017             return nlen;
13018         if (rb_memcicmp(name + nlen + 1, "mac", 3) == 0 &&
13019             !(len == 8 && rb_memcicmp(name, "utf8-mac", len) == 0))
13020             /* exclude UTF8-MAC because the encoding named "UTF8" doesn't exist in Ruby */
13021             return nlen;
13022     }
13023     return len;
13024 }
13025 
13026 static void
13027 parser_set_encode(struct parser_params *parser, const char *name)
13028 {
13029     int idx = rb_enc_find_index(name);
13030     rb_encoding *enc;
13031     VALUE excargs[3];
13032 
13033     if (idx < 0) {
13034         excargs[1] = rb_sprintf("unknown encoding name: %s", name);
13035       error:
13036         excargs[0] = rb_eArgError;
13037         excargs[2] = rb_make_backtrace();
13038         rb_ary_unshift(excargs[2], rb_sprintf("%s:%d", ruby_sourcefile, ruby_sourceline));
13039         rb_exc_raise(rb_make_exception(3, excargs));
13040     }
13041     enc = rb_enc_from_index(idx);
13042     if (!rb_enc_asciicompat(enc)) {
13043         excargs[1] = rb_sprintf("%s is not ASCII compatible", rb_enc_name(enc));
13044         goto error;
13045     }
13046     parser->enc = enc;
13047 #ifndef RIPPER
13048     if (ruby_debug_lines) {
13049         long i, n = RARRAY_LEN(ruby_debug_lines);
13050         const VALUE *p = RARRAY_PTR(ruby_debug_lines);
13051         for (i = 0; i < n; ++i) {
13052             rb_enc_associate_index(*p, idx);
13053         }
13054     }
13055 #endif
13056 }
13057 
13058 static int
13059 comment_at_top(struct parser_params *parser)
13060 {
13061     const char *p = lex_pbeg, *pend = lex_p - 1;
13062     if (parser->line_count != (parser->has_shebang ? 2 : 1)) return 0;
13063     while (p < pend) {
13064         if (!ISSPACE(*p)) return 0;
13065         p++;
13066     }
13067     return 1;
13068 }
13069 
13070 #ifndef RIPPER
13071 typedef long (*rb_magic_comment_length_t)(struct parser_params *parser, const char *name, long len);
13072 typedef void (*rb_magic_comment_setter_t)(struct parser_params *parser, const char *name, const char *val);
13073 
13074 static void
13075 magic_comment_encoding(struct parser_params *parser, const char *name, const char *val)
13076 {
13077     if (!comment_at_top(parser)) {
13078         return;
13079     }
13080     parser_set_encode(parser, val);
13081 }
13082 
13083 static void
13084 parser_set_token_info(struct parser_params *parser, const char *name, const char *val)
13085 {
13086     int *p = &parser->parser_token_info_enabled;
13087 
13088     switch (*val) {
13089       case 't': case 'T':
13090         if (strcasecmp(val, "true") == 0) {
13091             *p = TRUE;
13092             return;
13093         }
13094         break;
13095       case 'f': case 'F':
13096         if (strcasecmp(val, "false") == 0) {
13097             *p = FALSE;
13098             return;
13099         }
13100         break;
13101     }
13102     rb_compile_warning(ruby_sourcefile, ruby_sourceline, "invalid value for %s: %s", name, val);
13103 }
13104 
13105 struct magic_comment {
13106     const char *name;
13107     rb_magic_comment_setter_t func;
13108     rb_magic_comment_length_t length;
13109 };
13110 
13111 static const struct magic_comment magic_comments[] = {
13112     {"coding", magic_comment_encoding, parser_encode_length},
13113     {"encoding", magic_comment_encoding, parser_encode_length},
13114     {"warn_indent", parser_set_token_info},
13115 };
13116 #endif
13117 
13118 static const char *
13119 magic_comment_marker(const char *str, long len)
13120 {
13121     long i = 2;
13122 
13123     while (i < len) {
13124         switch (str[i]) {
13125           case '-':
13126             if (str[i-1] == '*' && str[i-2] == '-') {
13127                 return str + i + 1;
13128             }
13129             i += 2;
13130             break;
13131           case '*':
13132             if (i + 1 >= len) return 0;
13133             if (str[i+1] != '-') {
13134                 i += 4;
13135             }
13136             else if (str[i-1] != '-') {
13137                 i += 2;
13138             }
13139             else {
13140                 return str + i + 2;
13141             }
13142             break;
13143           default:
13144             i += 3;
13145             break;
13146         }
13147     }
13148     return 0;
13149 }
13150 
13151 static int
13152 parser_magic_comment(struct parser_params *parser, const char *str, long len)
13153 {
13154     VALUE name = 0, val = 0;
13155     const char *beg, *end, *vbeg, *vend;
13156 #define str_copy(_s, _p, _n) ((_s) \
13157         ? (void)(rb_str_resize((_s), (_n)), \
13158            MEMCPY(RSTRING_PTR(_s), (_p), char, (_n)), (_s)) \
13159         : (void)((_s) = STR_NEW((_p), (_n))))
13160 
13161     if (len <= 7) return FALSE;
13162     if (!(beg = magic_comment_marker(str, len))) return FALSE;
13163     if (!(end = magic_comment_marker(beg, str + len - beg))) return FALSE;
13164     str = beg;
13165     len = end - beg - 3;
13166 
13167     /* %r"([^\\s\'\":;]+)\\s*:\\s*(\"(?:\\\\.|[^\"])*\"|[^\"\\s;]+)[\\s;]*" */
13168     while (len > 0) {
13169 #ifndef RIPPER
13170         const struct magic_comment *p = magic_comments;
13171 #endif
13172         char *s;
13173         int i;
13174         long n = 0;
13175 
13176         for (; len > 0 && *str; str++, --len) {
13177             switch (*str) {
13178               case '\'': case '"': case ':': case ';':
13179                 continue;
13180             }
13181             if (!ISSPACE(*str)) break;
13182         }
13183         for (beg = str; len > 0; str++, --len) {
13184             switch (*str) {
13185               case '\'': case '"': case ':': case ';':
13186                 break;
13187               default:
13188                 if (ISSPACE(*str)) break;
13189                 continue;
13190             }
13191             break;
13192         }
13193         for (end = str; len > 0 && ISSPACE(*str); str++, --len);
13194         if (!len) break;
13195         if (*str != ':') continue;
13196 
13197         do str++; while (--len > 0 && ISSPACE(*str));
13198         if (!len) break;
13199         if (*str == '"') {
13200             for (vbeg = ++str; --len > 0 && *str != '"'; str++) {
13201                 if (*str == '\\') {
13202                     --len;
13203                     ++str;
13204                 }
13205             }
13206             vend = str;
13207             if (len) {
13208                 --len;
13209                 ++str;
13210             }
13211         }
13212         else {
13213             for (vbeg = str; len > 0 && *str != '"' && *str != ';' && !ISSPACE(*str); --len, str++);
13214             vend = str;
13215         }
13216         while (len > 0 && (*str == ';' || ISSPACE(*str))) --len, str++;
13217 
13218         n = end - beg;
13219         str_copy(name, beg, n);
13220         s = RSTRING_PTR(name);
13221         for (i = 0; i < n; ++i) {
13222             if (s[i] == '-') s[i] = '_';
13223         }
13224 #ifndef RIPPER
13225         do {
13226             if (STRNCASECMP(p->name, s, n) == 0) {
13227                 n = vend - vbeg;
13228                 if (p->length) {
13229                     n = (*p->length)(parser, vbeg, n);
13230                 }
13231                 str_copy(val, vbeg, n);
13232                 (*p->func)(parser, s, RSTRING_PTR(val));
13233                 break;
13234             }
13235         } while (++p < magic_comments + numberof(magic_comments));
13236 #else
13237         str_copy(val, vbeg, vend - vbeg);
13238         dispatch2(magic_comment, name, val);
13239 #endif
13240     }
13241 
13242     return TRUE;
13243 }
13244 
13245 static void
13246 set_file_encoding(struct parser_params *parser, const char *str, const char *send)
13247 {
13248     int sep = 0;
13249     const char *beg = str;
13250     VALUE s;
13251 
13252     for (;;) {
13253         if (send - str <= 6) return;
13254         switch (str[6]) {
13255           case 'C': case 'c': str += 6; continue;
13256           case 'O': case 'o': str += 5; continue;
13257           case 'D': case 'd': str += 4; continue;
13258           case 'I': case 'i': str += 3; continue;
13259           case 'N': case 'n': str += 2; continue;
13260           case 'G': case 'g': str += 1; continue;
13261           case '=': case ':':
13262             sep = 1;
13263             str += 6;
13264             break;
13265           default:
13266             str += 6;
13267             if (ISSPACE(*str)) break;
13268             continue;
13269         }
13270         if (STRNCASECMP(str-6, "coding", 6) == 0) break;
13271     }
13272     for (;;) {
13273         do {
13274             if (++str >= send) return;
13275         } while (ISSPACE(*str));
13276         if (sep) break;
13277         if (*str != '=' && *str != ':') return;
13278         sep = 1;
13279         str++;
13280     }
13281     beg = str;
13282     while ((*str == '-' || *str == '_' || ISALNUM(*str)) && ++str < send);
13283     s = rb_str_new(beg, parser_encode_length(parser, beg, str - beg));
13284     parser_set_encode(parser, RSTRING_PTR(s));
13285     rb_str_resize(s, 0);
13286 }
13287 
13288 static void
13289 parser_prepare(struct parser_params *parser)
13290 {
13291     int c = nextc();
13292     switch (c) {
13293       case '#':
13294         if (peek('!')) parser->has_shebang = 1;
13295         break;
13296       case 0xef:                /* UTF-8 BOM marker */
13297         if (lex_pend - lex_p >= 2 &&
13298             (unsigned char)lex_p[0] == 0xbb &&
13299             (unsigned char)lex_p[1] == 0xbf) {
13300             parser->enc = rb_utf8_encoding();
13301             lex_p += 2;
13302             lex_pbeg = lex_p;
13303             return;
13304         }
13305         break;
13306       case EOF:
13307         return;
13308     }
13309     pushback(c);
13310     parser->enc = rb_enc_get(lex_lastline);
13311 }
13312 
13313 #define IS_ARG() IS_lex_state(EXPR_ARG_ANY)
13314 #define IS_END() IS_lex_state(EXPR_END_ANY)
13315 #define IS_BEG() IS_lex_state(EXPR_BEG_ANY)
13316 #define IS_SPCARG(c) (IS_ARG() && space_seen && !ISSPACE(c))
13317 #define IS_LABEL_POSSIBLE() ((IS_lex_state(EXPR_BEG | EXPR_ENDFN) && !cmd_state) || IS_ARG())
13318 #define IS_LABEL_SUFFIX(n) (peek_n(':',(n)) && !peek_n(':', (n)+1))
13319 #define IS_AFTER_OPERATOR() IS_lex_state(EXPR_FNAME | EXPR_DOT)
13320 
13321 #ifndef RIPPER
13322 #define ambiguous_operator(op, syn) ( \
13323     rb_warning0("`"op"' after local variable is interpreted as binary operator"), \
13324     rb_warning0("even though it seems like "syn""))
13325 #else
13326 #define ambiguous_operator(op, syn) dispatch2(operator_ambiguous, ripper_intern(op), rb_str_new_cstr(syn))
13327 #endif
13328 #define warn_balanced(op, syn) ((void) \
13329     (!IS_lex_state_for(last_state, EXPR_CLASS|EXPR_DOT|EXPR_FNAME|EXPR_ENDFN|EXPR_ENDARG) && \
13330      space_seen && !ISSPACE(c) && \
13331      (ambiguous_operator(op, syn), 0)))
13332 
13333 static int
13334 parser_yylex(struct parser_params *parser)
13335 {
13336     register int c;
13337     int space_seen = 0;
13338     int cmd_state;
13339     enum lex_state_e last_state;
13340     rb_encoding *enc;
13341     int mb;
13342 #ifdef RIPPER
13343     int fallthru = FALSE;
13344 #endif
13345 
13346     if (lex_strterm) {
13347         int token;
13348         if (nd_type(lex_strterm) == NODE_HEREDOC) {
13349             token = here_document(lex_strterm);
13350             if (token == tSTRING_END) {
13351                 lex_strterm = 0;
13352                 lex_state = EXPR_END;
13353             }
13354         }
13355         else {
13356             token = parse_string(lex_strterm);
13357             if (token == tSTRING_END || token == tREGEXP_END) {
13358                 rb_gc_force_recycle((VALUE)lex_strterm);
13359                 lex_strterm = 0;
13360                 lex_state = EXPR_END;
13361             }
13362         }
13363         return token;
13364     }
13365     cmd_state = command_start;
13366     command_start = FALSE;
13367   retry:
13368     last_state = lex_state;
13369     switch (c = nextc()) {
13370       case '\0':                /* NUL */
13371       case '\004':              /* ^D */
13372       case '\032':              /* ^Z */
13373       case -1:                  /* end of script. */
13374         return 0;
13375 
13376         /* white spaces */
13377       case ' ': case '\t': case '\f': case '\r':
13378       case '\13': /* '\v' */
13379         space_seen = 1;
13380 #ifdef RIPPER
13381         while ((c = nextc())) {
13382             switch (c) {
13383               case ' ': case '\t': case '\f': case '\r':
13384               case '\13': /* '\v' */
13385                 break;
13386               default:
13387                 goto outofloop;
13388             }
13389         }
13390       outofloop:
13391         pushback(c);
13392         ripper_dispatch_scan_event(parser, tSP);
13393 #endif
13394         goto retry;
13395 
13396       case '#':         /* it's a comment */
13397         /* no magic_comment in shebang line */
13398         if (!parser_magic_comment(parser, lex_p, lex_pend - lex_p)) {
13399             if (comment_at_top(parser)) {
13400                 set_file_encoding(parser, lex_p, lex_pend);
13401             }
13402         }
13403         lex_p = lex_pend;
13404 #ifdef RIPPER
13405         ripper_dispatch_scan_event(parser, tCOMMENT);
13406         fallthru = TRUE;
13407 #endif
13408         /* fall through */
13409       case '\n':
13410         if (IS_lex_state(EXPR_BEG | EXPR_VALUE | EXPR_CLASS | EXPR_FNAME | EXPR_DOT)) {
13411 #ifdef RIPPER
13412             if (!fallthru) {
13413                 ripper_dispatch_scan_event(parser, tIGNORED_NL);
13414             }
13415             fallthru = FALSE;
13416 #endif
13417             goto retry;
13418         }
13419         while ((c = nextc())) {
13420             switch (c) {
13421               case ' ': case '\t': case '\f': case '\r':
13422               case '\13': /* '\v' */
13423                 space_seen = 1;
13424                 break;
13425               case '.': {
13426                   if ((c = nextc()) != '.') {
13427                       pushback(c);
13428                       pushback('.');
13429                       goto retry;
13430                   }
13431               }
13432               default:
13433                 --ruby_sourceline;
13434                 lex_nextline = lex_lastline;
13435               case -1:          /* EOF no decrement*/
13436                 lex_goto_eol(parser);
13437 #ifdef RIPPER
13438                 if (c != -1) {
13439                     parser->tokp = lex_p;
13440                 }
13441 #endif
13442                 goto normal_newline;
13443             }
13444         }
13445       normal_newline:
13446         command_start = TRUE;
13447         lex_state = EXPR_BEG;
13448         return '\n';
13449 
13450       case '*':
13451         if ((c = nextc()) == '*') {
13452             if ((c = nextc()) == '=') {
13453                 set_yylval_id(tPOW);
13454                 lex_state = EXPR_BEG;
13455                 return tOP_ASGN;
13456             }
13457             pushback(c);
13458             if (IS_SPCARG(c)) {
13459                 rb_warning0("`**' interpreted as argument prefix");
13460                 c = tDSTAR;
13461             }
13462             else if (IS_BEG()) {
13463                 c = tDSTAR;
13464             }
13465             else {
13466                 warn_balanced("**", "argument prefix");
13467                 c = tPOW;
13468             }
13469         }
13470         else {
13471             if (c == '=') {
13472                 set_yylval_id('*');
13473                 lex_state = EXPR_BEG;
13474                 return tOP_ASGN;
13475             }
13476             pushback(c);
13477             if (IS_SPCARG(c)) {
13478                 rb_warning0("`*' interpreted as argument prefix");
13479                 c = tSTAR;
13480             }
13481             else if (IS_BEG()) {
13482                 c = tSTAR;
13483             }
13484             else {
13485                 warn_balanced("*", "argument prefix");
13486                 c = '*';
13487             }
13488         }
13489         lex_state = IS_AFTER_OPERATOR() ? EXPR_ARG : EXPR_BEG;
13490         return c;
13491 
13492       case '!':
13493         c = nextc();
13494         if (IS_AFTER_OPERATOR()) {
13495             lex_state = EXPR_ARG;
13496             if (c == '@') {
13497                 return '!';
13498             }
13499         }
13500         else {
13501             lex_state = EXPR_BEG;
13502         }
13503         if (c == '=') {
13504             return tNEQ;
13505         }
13506         if (c == '~') {
13507             return tNMATCH;
13508         }
13509         pushback(c);
13510         return '!';
13511 
13512       case '=':
13513         if (was_bol()) {
13514             /* skip embedded rd document */
13515             if (strncmp(lex_p, "begin", 5) == 0 && ISSPACE(lex_p[5])) {
13516 #ifdef RIPPER
13517                 int first_p = TRUE;
13518 
13519                 lex_goto_eol(parser);
13520                 ripper_dispatch_scan_event(parser, tEMBDOC_BEG);
13521 #endif
13522                 for (;;) {
13523                     lex_goto_eol(parser);
13524 #ifdef RIPPER
13525                     if (!first_p) {
13526                         ripper_dispatch_scan_event(parser, tEMBDOC);
13527                     }
13528                     first_p = FALSE;
13529 #endif
13530                     c = nextc();
13531                     if (c == -1) {
13532                         compile_error(PARSER_ARG "embedded document meets end of file");
13533                         return 0;
13534                     }
13535                     if (c != '=') continue;
13536                     if (strncmp(lex_p, "end", 3) == 0 &&
13537                         (lex_p + 3 == lex_pend || ISSPACE(lex_p[3]))) {
13538                         break;
13539                     }
13540                 }
13541                 lex_goto_eol(parser);
13542 #ifdef RIPPER
13543                 ripper_dispatch_scan_event(parser, tEMBDOC_END);
13544 #endif
13545                 goto retry;
13546             }
13547         }
13548 
13549         lex_state = IS_AFTER_OPERATOR() ? EXPR_ARG : EXPR_BEG;
13550         if ((c = nextc()) == '=') {
13551             if ((c = nextc()) == '=') {
13552                 return tEQQ;
13553             }
13554             pushback(c);
13555             return tEQ;
13556         }
13557         if (c == '~') {
13558             return tMATCH;
13559         }
13560         else if (c == '>') {
13561             return tASSOC;
13562         }
13563         pushback(c);
13564         return '=';
13565 
13566       case '<':
13567         last_state = lex_state;
13568         c = nextc();
13569         if (c == '<' &&
13570             !IS_lex_state(EXPR_DOT | EXPR_CLASS) &&
13571             !IS_END() &&
13572             (!IS_ARG() || space_seen)) {
13573             int token = heredoc_identifier();
13574             if (token) return token;
13575         }
13576         if (IS_AFTER_OPERATOR()) {
13577             lex_state = EXPR_ARG;
13578         }
13579         else {
13580             if (IS_lex_state(EXPR_CLASS))
13581                 command_start = TRUE;
13582             lex_state = EXPR_BEG;
13583         }
13584         if (c == '=') {
13585             if ((c = nextc()) == '>') {
13586                 return tCMP;
13587             }
13588             pushback(c);
13589             return tLEQ;
13590         }
13591         if (c == '<') {
13592             if ((c = nextc()) == '=') {
13593                 set_yylval_id(tLSHFT);
13594                 lex_state = EXPR_BEG;
13595                 return tOP_ASGN;
13596             }
13597             pushback(c);
13598             warn_balanced("<<", "here document");
13599             return tLSHFT;
13600         }
13601         pushback(c);
13602         return '<';
13603 
13604       case '>':
13605         lex_state = IS_AFTER_OPERATOR() ? EXPR_ARG : EXPR_BEG;
13606         if ((c = nextc()) == '=') {
13607             return tGEQ;
13608         }
13609         if (c == '>') {
13610             if ((c = nextc()) == '=') {
13611                 set_yylval_id(tRSHFT);
13612                 lex_state = EXPR_BEG;
13613                 return tOP_ASGN;
13614             }
13615             pushback(c);
13616             return tRSHFT;
13617         }
13618         pushback(c);
13619         return '>';
13620 
13621       case '"':
13622         lex_strterm = NEW_STRTERM(str_dquote, '"', 0);
13623         return tSTRING_BEG;
13624 
13625       case '`':
13626         if (IS_lex_state(EXPR_FNAME)) {
13627             lex_state = EXPR_ENDFN;
13628             return c;
13629         }
13630         if (IS_lex_state(EXPR_DOT)) {
13631             if (cmd_state)
13632                 lex_state = EXPR_CMDARG;
13633             else
13634                 lex_state = EXPR_ARG;
13635             return c;
13636         }
13637         lex_strterm = NEW_STRTERM(str_xquote, '`', 0);
13638         return tXSTRING_BEG;
13639 
13640       case '\'':
13641         lex_strterm = NEW_STRTERM(str_squote, '\'', 0);
13642         return tSTRING_BEG;
13643 
13644       case '?':
13645         if (IS_END()) {
13646             lex_state = EXPR_VALUE;
13647             return '?';
13648         }
13649         c = nextc();
13650         if (c == -1) {
13651             compile_error(PARSER_ARG "incomplete character syntax");
13652             return 0;
13653         }
13654         if (rb_enc_isspace(c, current_enc)) {
13655             if (!IS_ARG()) {
13656                 int c2 = 0;
13657                 switch (c) {
13658                   case ' ':
13659                     c2 = 's';
13660                     break;
13661                   case '\n':
13662                     c2 = 'n';
13663                     break;
13664                   case '\t':
13665                     c2 = 't';
13666                     break;
13667                   case '\v':
13668                     c2 = 'v';
13669                     break;
13670                   case '\r':
13671                     c2 = 'r';
13672                     break;
13673                   case '\f':
13674                     c2 = 'f';
13675                     break;
13676                 }
13677                 if (c2) {
13678                     rb_warnI("invalid character syntax; use ?\\%c", c2);
13679                 }
13680             }
13681           ternary:
13682             pushback(c);
13683             lex_state = EXPR_VALUE;
13684             return '?';
13685         }
13686         newtok();
13687         enc = current_enc;
13688         if (!parser_isascii()) {
13689             if (tokadd_mbchar(c) == -1) return 0;
13690         }
13691         else if ((rb_enc_isalnum(c, current_enc) || c == '_') &&
13692                  lex_p < lex_pend && is_identchar(lex_p, lex_pend, current_enc)) {
13693             goto ternary;
13694         }
13695         else if (c == '\\') {
13696             if (peek('u')) {
13697                 nextc();
13698                 c = parser_tokadd_utf8(parser, &enc, 0, 0, 0);
13699                 if (0x80 <= c) {
13700                     tokaddmbc(c, enc);
13701                 }
13702                 else {
13703                     tokadd(c);
13704                 }
13705             }
13706             else if (!lex_eol_p() && !(c = *lex_p, ISASCII(c))) {
13707                 nextc();
13708                 if (tokadd_mbchar(c) == -1) return 0;
13709             }
13710             else {
13711                 c = read_escape(0, &enc);
13712                 tokadd(c);
13713             }
13714         }
13715         else {
13716             tokadd(c);
13717         }
13718         tokfix();
13719         set_yylval_str(STR_NEW3(tok(), toklen(), enc, 0));
13720         lex_state = EXPR_END;
13721         return tCHAR;
13722 
13723       case '&':
13724         if ((c = nextc()) == '&') {
13725             lex_state = EXPR_BEG;
13726             if ((c = nextc()) == '=') {
13727                 set_yylval_id(tANDOP);
13728                 lex_state = EXPR_BEG;
13729                 return tOP_ASGN;
13730             }
13731             pushback(c);
13732             return tANDOP;
13733         }
13734         else if (c == '=') {
13735             set_yylval_id('&');
13736             lex_state = EXPR_BEG;
13737             return tOP_ASGN;
13738         }
13739         pushback(c);
13740         if (IS_SPCARG(c)) {
13741             rb_warning0("`&' interpreted as argument prefix");
13742             c = tAMPER;
13743         }
13744         else if (IS_BEG()) {
13745             c = tAMPER;
13746         }
13747         else {
13748             warn_balanced("&", "argument prefix");
13749             c = '&';
13750         }
13751         lex_state = IS_AFTER_OPERATOR() ? EXPR_ARG : EXPR_BEG;
13752         return c;
13753 
13754       case '|':
13755         if ((c = nextc()) == '|') {
13756             lex_state = EXPR_BEG;
13757             if ((c = nextc()) == '=') {
13758                 set_yylval_id(tOROP);
13759                 lex_state = EXPR_BEG;
13760                 return tOP_ASGN;
13761             }
13762             pushback(c);
13763             return tOROP;
13764         }
13765         if (c == '=') {
13766             set_yylval_id('|');
13767             lex_state = EXPR_BEG;
13768             return tOP_ASGN;
13769         }
13770         lex_state = IS_AFTER_OPERATOR() ? EXPR_ARG : EXPR_BEG;
13771         pushback(c);
13772         return '|';
13773 
13774       case '+':
13775         c = nextc();
13776         if (IS_AFTER_OPERATOR()) {
13777             lex_state = EXPR_ARG;
13778             if (c == '@') {
13779                 return tUPLUS;
13780             }
13781             pushback(c);
13782             return '+';
13783         }
13784         if (c == '=') {
13785             set_yylval_id('+');
13786             lex_state = EXPR_BEG;
13787             return tOP_ASGN;
13788         }
13789         if (IS_BEG() || (IS_SPCARG(c) && arg_ambiguous())) {
13790             lex_state = EXPR_BEG;
13791             pushback(c);
13792             if (c != -1 && ISDIGIT(c)) {
13793                 c = '+';
13794                 goto start_num;
13795             }
13796             return tUPLUS;
13797         }
13798         lex_state = EXPR_BEG;
13799         pushback(c);
13800         warn_balanced("+", "unary operator");
13801         return '+';
13802 
13803       case '-':
13804         c = nextc();
13805         if (IS_AFTER_OPERATOR()) {
13806             lex_state = EXPR_ARG;
13807             if (c == '@') {
13808                 return tUMINUS;
13809             }
13810             pushback(c);
13811             return '-';
13812         }
13813         if (c == '=') {
13814             set_yylval_id('-');
13815             lex_state = EXPR_BEG;
13816             return tOP_ASGN;
13817         }
13818         if (c == '>') {
13819             lex_state = EXPR_ENDFN;
13820             return tLAMBDA;
13821         }
13822         if (IS_BEG() || (IS_SPCARG(c) && arg_ambiguous())) {
13823             lex_state = EXPR_BEG;
13824             pushback(c);
13825             if (c != -1 && ISDIGIT(c)) {
13826                 return tUMINUS_NUM;
13827             }
13828             return tUMINUS;
13829         }
13830         lex_state = EXPR_BEG;
13831         pushback(c);
13832         warn_balanced("-", "unary operator");
13833         return '-';
13834 
13835       case '.':
13836         lex_state = EXPR_BEG;
13837         if ((c = nextc()) == '.') {
13838             if ((c = nextc()) == '.') {
13839                 return tDOT3;
13840             }
13841             pushback(c);
13842             return tDOT2;
13843         }
13844         pushback(c);
13845         if (c != -1 && ISDIGIT(c)) {
13846             yyerror("no .<digit> floating literal anymore; put 0 before dot");
13847         }
13848         lex_state = EXPR_DOT;
13849         return '.';
13850 
13851       start_num:
13852       case '0': case '1': case '2': case '3': case '4':
13853       case '5': case '6': case '7': case '8': case '9':
13854         {
13855             int is_float, seen_point, seen_e, nondigit;
13856 
13857             is_float = seen_point = seen_e = nondigit = 0;
13858             lex_state = EXPR_END;
13859             newtok();
13860             if (c == '-' || c == '+') {
13861                 tokadd(c);
13862                 c = nextc();
13863             }
13864             if (c == '0') {
13865 #define no_digits() do {yyerror("numeric literal without digits"); return 0;} while (0)
13866                 int start = toklen();
13867                 c = nextc();
13868                 if (c == 'x' || c == 'X') {
13869                     /* hexadecimal */
13870                     c = nextc();
13871                     if (c != -1 && ISXDIGIT(c)) {
13872                         do {
13873                             if (c == '_') {
13874                                 if (nondigit) break;
13875                                 nondigit = c;
13876                                 continue;
13877                             }
13878                             if (!ISXDIGIT(c)) break;
13879                             nondigit = 0;
13880                             tokadd(c);
13881                         } while ((c = nextc()) != -1);
13882                     }
13883                     pushback(c);
13884                     tokfix();
13885                     if (toklen() == start) {
13886                         no_digits();
13887                     }
13888                     else if (nondigit) goto trailing_uc;
13889                     set_yylval_literal(rb_cstr_to_inum(tok(), 16, FALSE));
13890                     return tINTEGER;
13891                 }
13892                 if (c == 'b' || c == 'B') {
13893                     /* binary */
13894                     c = nextc();
13895                     if (c == '0' || c == '1') {
13896                         do {
13897                             if (c == '_') {
13898                                 if (nondigit) break;
13899                                 nondigit = c;
13900                                 continue;
13901                             }
13902                             if (c != '0' && c != '1') break;
13903                             nondigit = 0;
13904                             tokadd(c);
13905                         } while ((c = nextc()) != -1);
13906                     }
13907                     pushback(c);
13908                     tokfix();
13909                     if (toklen() == start) {
13910                         no_digits();
13911                     }
13912                     else if (nondigit) goto trailing_uc;
13913                     set_yylval_literal(rb_cstr_to_inum(tok(), 2, FALSE));
13914                     return tINTEGER;
13915                 }
13916                 if (c == 'd' || c == 'D') {
13917                     /* decimal */
13918                     c = nextc();
13919                     if (c != -1 && ISDIGIT(c)) {
13920                         do {
13921                             if (c == '_') {
13922                                 if (nondigit) break;
13923                                 nondigit = c;
13924                                 continue;
13925                             }
13926                             if (!ISDIGIT(c)) break;
13927                             nondigit = 0;
13928                             tokadd(c);
13929                         } while ((c = nextc()) != -1);
13930                     }
13931                     pushback(c);
13932                     tokfix();
13933                     if (toklen() == start) {
13934                         no_digits();
13935                     }
13936                     else if (nondigit) goto trailing_uc;
13937                     set_yylval_literal(rb_cstr_to_inum(tok(), 10, FALSE));
13938                     return tINTEGER;
13939                 }
13940                 if (c == '_') {
13941                     /* 0_0 */
13942                     goto octal_number;
13943                 }
13944                 if (c == 'o' || c == 'O') {
13945                     /* prefixed octal */
13946                     c = nextc();
13947                     if (c == -1 || c == '_' || !ISDIGIT(c)) {
13948                         no_digits();
13949                     }
13950                 }
13951                 if (c >= '0' && c <= '7') {
13952                     /* octal */
13953                   octal_number:
13954                     do {
13955                         if (c == '_') {
13956                             if (nondigit) break;
13957                             nondigit = c;
13958                             continue;
13959                         }
13960                         if (c < '0' || c > '9') break;
13961                         if (c > '7') goto invalid_octal;
13962                         nondigit = 0;
13963                         tokadd(c);
13964                     } while ((c = nextc()) != -1);
13965                     if (toklen() > start) {
13966                         pushback(c);
13967                         tokfix();
13968                         if (nondigit) goto trailing_uc;
13969                         set_yylval_literal(rb_cstr_to_inum(tok(), 8, FALSE));
13970                         return tINTEGER;
13971                     }
13972                     if (nondigit) {
13973                         pushback(c);
13974                         goto trailing_uc;
13975                     }
13976                 }
13977                 if (c > '7' && c <= '9') {
13978                   invalid_octal:
13979                     yyerror("Invalid octal digit");
13980                 }
13981                 else if (c == '.' || c == 'e' || c == 'E') {
13982                     tokadd('0');
13983                 }
13984                 else {
13985                     pushback(c);
13986                     set_yylval_literal(INT2FIX(0));
13987                     return tINTEGER;
13988                 }
13989             }
13990 
13991             for (;;) {
13992                 switch (c) {
13993                   case '0': case '1': case '2': case '3': case '4':
13994                   case '5': case '6': case '7': case '8': case '9':
13995                     nondigit = 0;
13996                     tokadd(c);
13997                     break;
13998 
13999                   case '.':
14000                     if (nondigit) goto trailing_uc;
14001                     if (seen_point || seen_e) {
14002                         goto decode_num;
14003                     }
14004                     else {
14005                         int c0 = nextc();
14006                         if (c0 == -1 || !ISDIGIT(c0)) {
14007                             pushback(c0);
14008                             goto decode_num;
14009                         }
14010                         c = c0;
14011                     }
14012                     tokadd('.');
14013                     tokadd(c);
14014                     is_float++;
14015                     seen_point++;
14016                     nondigit = 0;
14017                     break;
14018 
14019                   case 'e':
14020                   case 'E':
14021                     if (nondigit) {
14022                         pushback(c);
14023                         c = nondigit;
14024                         goto decode_num;
14025                     }
14026                     if (seen_e) {
14027                         goto decode_num;
14028                     }
14029                     tokadd(c);
14030                     seen_e++;
14031                     is_float++;
14032                     nondigit = c;
14033                     c = nextc();
14034                     if (c != '-' && c != '+') continue;
14035                     tokadd(c);
14036                     nondigit = c;
14037                     break;
14038 
14039                   case '_':     /* `_' in number just ignored */
14040                     if (nondigit) goto decode_num;
14041                     nondigit = c;
14042                     break;
14043 
14044                   default:
14045                     goto decode_num;
14046                 }
14047                 c = nextc();
14048             }
14049 
14050           decode_num:
14051             pushback(c);
14052             if (nondigit) {
14053                 char tmp[30];
14054               trailing_uc:
14055                 snprintf(tmp, sizeof(tmp), "trailing `%c' in number", nondigit);
14056                 yyerror(tmp);
14057             }
14058             tokfix();
14059             if (is_float) {
14060                 double d = strtod(tok(), 0);
14061                 if (errno == ERANGE) {
14062                     rb_warningS("Float %s out of range", tok());
14063                     errno = 0;
14064                 }
14065                 set_yylval_literal(DBL2NUM(d));
14066                 return tFLOAT;
14067             }
14068             set_yylval_literal(rb_cstr_to_inum(tok(), 10, FALSE));
14069             return tINTEGER;
14070         }
14071 
14072       case ')':
14073       case ']':
14074         paren_nest--;
14075       case '}':
14076         COND_LEXPOP();
14077         CMDARG_LEXPOP();
14078         if (c == ')')
14079             lex_state = EXPR_ENDFN;
14080         else
14081             lex_state = EXPR_ENDARG;
14082         if (c == '}') {
14083             if (!brace_nest--) c = tSTRING_DEND;
14084         }
14085         return c;
14086 
14087       case ':':
14088         c = nextc();
14089         if (c == ':') {
14090             if (IS_BEG() || IS_lex_state(EXPR_CLASS) || IS_SPCARG(-1)) {
14091                 lex_state = EXPR_BEG;
14092                 return tCOLON3;
14093             }
14094             lex_state = EXPR_DOT;
14095             return tCOLON2;
14096         }
14097         if (IS_END() || ISSPACE(c)) {
14098             pushback(c);
14099             warn_balanced(":", "symbol literal");
14100             lex_state = EXPR_BEG;
14101             return ':';
14102         }
14103         switch (c) {
14104           case '\'':
14105             lex_strterm = NEW_STRTERM(str_ssym, c, 0);
14106             break;
14107           case '"':
14108             lex_strterm = NEW_STRTERM(str_dsym, c, 0);
14109             break;
14110           default:
14111             pushback(c);
14112             break;
14113         }
14114         lex_state = EXPR_FNAME;
14115         return tSYMBEG;
14116 
14117       case '/':
14118         if (IS_lex_state(EXPR_BEG_ANY)) {
14119             lex_strterm = NEW_STRTERM(str_regexp, '/', 0);
14120             return tREGEXP_BEG;
14121         }
14122         if ((c = nextc()) == '=') {
14123             set_yylval_id('/');
14124             lex_state = EXPR_BEG;
14125             return tOP_ASGN;
14126         }
14127         pushback(c);
14128         if (IS_SPCARG(c)) {
14129             (void)arg_ambiguous();
14130             lex_strterm = NEW_STRTERM(str_regexp, '/', 0);
14131             return tREGEXP_BEG;
14132         }
14133         lex_state = IS_AFTER_OPERATOR() ? EXPR_ARG : EXPR_BEG;
14134         warn_balanced("/", "regexp literal");
14135         return '/';
14136 
14137       case '^':
14138         if ((c = nextc()) == '=') {
14139             set_yylval_id('^');
14140             lex_state = EXPR_BEG;
14141             return tOP_ASGN;
14142         }
14143         lex_state = IS_AFTER_OPERATOR() ? EXPR_ARG : EXPR_BEG;
14144         pushback(c);
14145         return '^';
14146 
14147       case ';':
14148         lex_state = EXPR_BEG;
14149         command_start = TRUE;
14150         return ';';
14151 
14152       case ',':
14153         lex_state = EXPR_BEG;
14154         return ',';
14155 
14156       case '~':
14157         if (IS_AFTER_OPERATOR()) {
14158             if ((c = nextc()) != '@') {
14159                 pushback(c);
14160             }
14161             lex_state = EXPR_ARG;
14162         }
14163         else {
14164             lex_state = EXPR_BEG;
14165         }
14166         return '~';
14167 
14168       case '(':
14169         if (IS_BEG()) {
14170             c = tLPAREN;
14171         }
14172         else if (IS_SPCARG(-1)) {
14173             c = tLPAREN_ARG;
14174         }
14175         paren_nest++;
14176         COND_PUSH(0);
14177         CMDARG_PUSH(0);
14178         lex_state = EXPR_BEG;
14179         return c;
14180 
14181       case '[':
14182         paren_nest++;
14183         if (IS_AFTER_OPERATOR()) {
14184             lex_state = EXPR_ARG;
14185             if ((c = nextc()) == ']') {
14186                 if ((c = nextc()) == '=') {
14187                     return tASET;
14188                 }
14189                 pushback(c);
14190                 return tAREF;
14191             }
14192             pushback(c);
14193             return '[';
14194         }
14195         else if (IS_BEG()) {
14196             c = tLBRACK;
14197         }
14198         else if (IS_ARG() && space_seen) {
14199             c = tLBRACK;
14200         }
14201         lex_state = EXPR_BEG;
14202         COND_PUSH(0);
14203         CMDARG_PUSH(0);
14204         return c;
14205 
14206       case '{':
14207         ++brace_nest;
14208         if (lpar_beg && lpar_beg == paren_nest) {
14209             lex_state = EXPR_BEG;
14210             lpar_beg = 0;
14211             --paren_nest;
14212             COND_PUSH(0);
14213             CMDARG_PUSH(0);
14214             return tLAMBEG;
14215         }
14216         if (IS_ARG() || IS_lex_state(EXPR_END | EXPR_ENDFN))
14217             c = '{';          /* block (primary) */
14218         else if (IS_lex_state(EXPR_ENDARG))
14219             c = tLBRACE_ARG;  /* block (expr) */
14220         else
14221             c = tLBRACE;      /* hash */
14222         COND_PUSH(0);
14223         CMDARG_PUSH(0);
14224         lex_state = EXPR_BEG;
14225         if (c != tLBRACE) command_start = TRUE;
14226         return c;
14227 
14228       case '\\':
14229         c = nextc();
14230         if (c == '\n') {
14231             space_seen = 1;
14232 #ifdef RIPPER
14233             ripper_dispatch_scan_event(parser, tSP);
14234 #endif
14235             goto retry; /* skip \\n */
14236         }
14237         pushback(c);
14238         return '\\';
14239 
14240       case '%':
14241         if (IS_lex_state(EXPR_BEG_ANY)) {
14242             int term;
14243             int paren;
14244 
14245             c = nextc();
14246           quotation:
14247             if (c == -1 || !ISALNUM(c)) {
14248                 term = c;
14249                 c = 'Q';
14250             }
14251             else {
14252                 term = nextc();
14253                 if (rb_enc_isalnum(term, current_enc) || !parser_isascii()) {
14254                     yyerror("unknown type of %string");
14255                     return 0;
14256                 }
14257             }
14258             if (c == -1 || term == -1) {
14259                 compile_error(PARSER_ARG "unterminated quoted string meets end of file");
14260                 return 0;
14261             }
14262             paren = term;
14263             if (term == '(') term = ')';
14264             else if (term == '[') term = ']';
14265             else if (term == '{') term = '}';
14266             else if (term == '<') term = '>';
14267             else paren = 0;
14268 
14269             switch (c) {
14270               case 'Q':
14271                 lex_strterm = NEW_STRTERM(str_dquote, term, paren);
14272                 return tSTRING_BEG;
14273 
14274               case 'q':
14275                 lex_strterm = NEW_STRTERM(str_squote, term, paren);
14276                 return tSTRING_BEG;
14277 
14278               case 'W':
14279                 lex_strterm = NEW_STRTERM(str_dword, term, paren);
14280                 do {c = nextc();} while (ISSPACE(c));
14281                 pushback(c);
14282                 return tWORDS_BEG;
14283 
14284               case 'w':
14285                 lex_strterm = NEW_STRTERM(str_sword, term, paren);
14286                 do {c = nextc();} while (ISSPACE(c));
14287                 pushback(c);
14288                 return tQWORDS_BEG;
14289 
14290               case 'I':
14291                 lex_strterm = NEW_STRTERM(str_dword, term, paren);
14292                 do {c = nextc();} while (ISSPACE(c));
14293                 pushback(c);
14294                 return tSYMBOLS_BEG;
14295 
14296               case 'i':
14297                 lex_strterm = NEW_STRTERM(str_sword, term, paren);
14298                 do {c = nextc();} while (ISSPACE(c));
14299                 pushback(c);
14300                 return tQSYMBOLS_BEG;
14301 
14302               case 'x':
14303                 lex_strterm = NEW_STRTERM(str_xquote, term, paren);
14304                 return tXSTRING_BEG;
14305 
14306               case 'r':
14307                 lex_strterm = NEW_STRTERM(str_regexp, term, paren);
14308                 return tREGEXP_BEG;
14309 
14310               case 's':
14311                 lex_strterm = NEW_STRTERM(str_ssym, term, paren);
14312                 lex_state = EXPR_FNAME;
14313                 return tSYMBEG;
14314 
14315               default:
14316                 yyerror("unknown type of %string");
14317                 return 0;
14318             }
14319         }
14320         if ((c = nextc()) == '=') {
14321             set_yylval_id('%');
14322             lex_state = EXPR_BEG;
14323             return tOP_ASGN;
14324         }
14325         if (IS_SPCARG(c)) {
14326             goto quotation;
14327         }
14328         lex_state = IS_AFTER_OPERATOR() ? EXPR_ARG : EXPR_BEG;
14329         pushback(c);
14330         warn_balanced("%%", "string literal");
14331         return '%';
14332 
14333       case '$':
14334         lex_state = EXPR_END;
14335         newtok();
14336         c = nextc();
14337         switch (c) {
14338           case '_':             /* $_: last read line string */
14339             c = nextc();
14340             if (parser_is_identchar()) {
14341                 tokadd('$');
14342                 tokadd('_');
14343                 break;
14344             }
14345             pushback(c);
14346             c = '_';
14347             /* fall through */
14348           case '~':             /* $~: match-data */
14349           case '*':             /* $*: argv */
14350           case '$':             /* $$: pid */
14351           case '?':             /* $?: last status */
14352           case '!':             /* $!: error string */
14353           case '@':             /* $@: error position */
14354           case '/':             /* $/: input record separator */
14355           case '\\':            /* $\: output record separator */
14356           case ';':             /* $;: field separator */
14357           case ',':             /* $,: output field separator */
14358           case '.':             /* $.: last read line number */
14359           case '=':             /* $=: ignorecase */
14360           case ':':             /* $:: load path */
14361           case '<':             /* $<: reading filename */
14362           case '>':             /* $>: default output handle */
14363           case '\"':            /* $": already loaded files */
14364             tokadd('$');
14365             tokadd(c);
14366             tokfix();
14367             set_yylval_name(rb_intern(tok()));
14368             return tGVAR;
14369 
14370           case '-':
14371             tokadd('$');
14372             tokadd(c);
14373             c = nextc();
14374             if (parser_is_identchar()) {
14375                 if (tokadd_mbchar(c) == -1) return 0;
14376             }
14377             else {
14378                 pushback(c);
14379             }
14380           gvar:
14381             tokfix();
14382             set_yylval_name(rb_intern(tok()));
14383             return tGVAR;
14384 
14385           case '&':             /* $&: last match */
14386           case '`':             /* $`: string before last match */
14387           case '\'':            /* $': string after last match */
14388           case '+':             /* $+: string matches last paren. */
14389             if (IS_lex_state_for(last_state, EXPR_FNAME)) {
14390                 tokadd('$');
14391                 tokadd(c);
14392                 goto gvar;
14393             }
14394             set_yylval_node(NEW_BACK_REF(c));
14395             return tBACK_REF;
14396 
14397           case '1': case '2': case '3':
14398           case '4': case '5': case '6':
14399           case '7': case '8': case '9':
14400             tokadd('$');
14401             do {
14402                 tokadd(c);
14403                 c = nextc();
14404             } while (c != -1 && ISDIGIT(c));
14405             pushback(c);
14406             if (IS_lex_state_for(last_state, EXPR_FNAME)) goto gvar;
14407             tokfix();
14408             set_yylval_node(NEW_NTH_REF(atoi(tok()+1)));
14409             return tNTH_REF;
14410 
14411           default:
14412             if (!parser_is_identchar()) {
14413                 pushback(c);
14414                 compile_error(PARSER_ARG "`$%c' is not allowed as a global variable name", c);
14415                 return 0;
14416             }
14417           case '0':
14418             tokadd('$');
14419         }
14420         break;
14421 
14422       case '@':
14423         c = nextc();
14424         newtok();
14425         tokadd('@');
14426         if (c == '@') {
14427             tokadd('@');
14428             c = nextc();
14429         }
14430         if (c != -1 && (ISDIGIT(c) || !parser_is_identchar())) {
14431             pushback(c);
14432             if (tokidx == 1) {
14433                 compile_error(PARSER_ARG "`@%c' is not allowed as an instance variable name", c);
14434             }
14435             else {
14436                 compile_error(PARSER_ARG "`@@%c' is not allowed as a class variable name", c);
14437             }
14438             return 0;
14439         }
14440         break;
14441 
14442       case '_':
14443         if (was_bol() && whole_match_p("__END__", 7, 0)) {
14444             ruby__end__seen = 1;
14445             parser->eofp = Qtrue;
14446 #ifndef RIPPER
14447             return -1;
14448 #else
14449             lex_goto_eol(parser);
14450             ripper_dispatch_scan_event(parser, k__END__);
14451             return 0;
14452 #endif
14453         }
14454         newtok();
14455         break;
14456 
14457       default:
14458         if (!parser_is_identchar()) {
14459             rb_compile_error(PARSER_ARG  "Invalid char `\\x%02X' in expression", c);
14460             goto retry;
14461         }
14462 
14463         newtok();
14464         break;
14465     }
14466 
14467     mb = ENC_CODERANGE_7BIT;
14468     do {
14469         if (!ISASCII(c)) mb = ENC_CODERANGE_UNKNOWN;
14470         if (tokadd_mbchar(c) == -1) return 0;
14471         c = nextc();
14472     } while (parser_is_identchar());
14473     switch (tok()[0]) {
14474       case '@': case '$':
14475         pushback(c);
14476         break;
14477       default:
14478         if ((c == '!' || c == '?') && !peek('=')) {
14479             tokadd(c);
14480         }
14481         else {
14482             pushback(c);
14483         }
14484     }
14485     tokfix();
14486 
14487     {
14488         int result = 0;
14489 
14490         last_state = lex_state;
14491         switch (tok()[0]) {
14492           case '$':
14493             lex_state = EXPR_END;
14494             result = tGVAR;
14495             break;
14496           case '@':
14497             lex_state = EXPR_END;
14498             if (tok()[1] == '@')
14499                 result = tCVAR;
14500             else
14501                 result = tIVAR;
14502             break;
14503 
14504           default:
14505             if (toklast() == '!' || toklast() == '?') {
14506                 result = tFID;
14507             }
14508             else {
14509                 if (IS_lex_state(EXPR_FNAME)) {
14510                     if ((c = nextc()) == '=' && !peek('~') && !peek('>') &&
14511                         (!peek('=') || (peek_n('>', 1)))) {
14512                         result = tIDENTIFIER;
14513                         tokadd(c);
14514                         tokfix();
14515                     }
14516                     else {
14517                         pushback(c);
14518                     }
14519                 }
14520                 if (result == 0 && ISUPPER(tok()[0])) {
14521                     result = tCONSTANT;
14522                 }
14523                 else {
14524                     result = tIDENTIFIER;
14525                 }
14526             }
14527 
14528             if (IS_LABEL_POSSIBLE()) {
14529                 if (IS_LABEL_SUFFIX(0)) {
14530                     lex_state = EXPR_BEG;
14531                     nextc();
14532                     set_yylval_name(TOK_INTERN(!ENC_SINGLE(mb)));
14533                     return tLABEL;
14534                 }
14535             }
14536             if (mb == ENC_CODERANGE_7BIT && !IS_lex_state(EXPR_DOT)) {
14537                 const struct kwtable *kw;
14538 
14539                 /* See if it is a reserved word.  */
14540                 kw = rb_reserved_word(tok(), toklen());
14541                 if (kw) {
14542                     enum lex_state_e state = lex_state;
14543                     lex_state = kw->state;
14544                     if (state == EXPR_FNAME) {
14545                         set_yylval_name(rb_intern(kw->name));
14546                         return kw->id[0];
14547                     }
14548                     if (lex_state == EXPR_BEG) {
14549                         command_start = TRUE;
14550                     }
14551                     if (kw->id[0] == keyword_do) {
14552                         if (lpar_beg && lpar_beg == paren_nest) {
14553                             lpar_beg = 0;
14554                             --paren_nest;
14555                             return keyword_do_LAMBDA;
14556                         }
14557                         if (COND_P()) return keyword_do_cond;
14558                         if (CMDARG_P() && state != EXPR_CMDARG)
14559                             return keyword_do_block;
14560                         if (state & (EXPR_BEG | EXPR_ENDARG))
14561                             return keyword_do_block;
14562                         return keyword_do;
14563                     }
14564                     if (state & (EXPR_BEG | EXPR_VALUE))
14565                         return kw->id[0];
14566                     else {
14567                         if (kw->id[0] != kw->id[1])
14568                             lex_state = EXPR_BEG;
14569                         return kw->id[1];
14570                     }
14571                 }
14572             }
14573 
14574             if (IS_lex_state(EXPR_BEG_ANY | EXPR_ARG_ANY | EXPR_DOT)) {
14575                 if (cmd_state) {
14576                     lex_state = EXPR_CMDARG;
14577                 }
14578                 else {
14579                     lex_state = EXPR_ARG;
14580                 }
14581             }
14582             else if (lex_state == EXPR_FNAME) {
14583                 lex_state = EXPR_ENDFN;
14584             }
14585             else {
14586                 lex_state = EXPR_END;
14587             }
14588         }
14589         {
14590             ID ident = TOK_INTERN(!ENC_SINGLE(mb));
14591 
14592             set_yylval_name(ident);
14593             if (!IS_lex_state_for(last_state, EXPR_DOT|EXPR_FNAME) &&
14594                 is_local_id(ident) && lvar_defined(ident)) {
14595                 lex_state = EXPR_END;
14596             }
14597         }
14598         return result;
14599     }
14600 }
14601 
14602 #if YYPURE
14603 static int
14604 yylex(void *lval, void *p)
14605 #else
14606 yylex(void *p)
14607 #endif
14608 {
14609     struct parser_params *parser = (struct parser_params*)p;
14610     int t;
14611 
14612 #if YYPURE
14613     parser->parser_yylval = lval;
14614     parser->parser_yylval->val = Qundef;
14615 #endif
14616     t = parser_yylex(parser);
14617 #ifdef RIPPER
14618     if (!NIL_P(parser->delayed)) {
14619         ripper_dispatch_delayed_token(parser, t);
14620         return t;
14621     }
14622     if (t != 0)
14623         ripper_dispatch_scan_event(parser, t);
14624 #endif
14625 
14626     return t;
14627 }
14628 
14629 #ifndef RIPPER
14630 static NODE*
14631 node_newnode(struct parser_params *parser, enum node_type type, VALUE a0, VALUE a1, VALUE a2)
14632 {
14633     NODE *n = (rb_node_newnode)(type, a0, a1, a2);
14634     nd_set_line(n, ruby_sourceline);
14635     return n;
14636 }
14637 
14638 static enum node_type
14639 nodetype(NODE *node)                    /* for debug */
14640 {
14641     return (enum node_type)nd_type(node);
14642 }
14643 
14644 static int
14645 nodeline(NODE *node)
14646 {
14647     return nd_line(node);
14648 }
14649 
14650 static NODE*
14651 newline_node(NODE *node)
14652 {
14653     if (node) {
14654         node = remove_begin(node);
14655         node->flags |= NODE_FL_NEWLINE;
14656     }
14657     return node;
14658 }
14659 
14660 static void
14661 fixpos(NODE *node, NODE *orig)
14662 {
14663     if (!node) return;
14664     if (!orig) return;
14665     if (orig == (NODE*)1) return;
14666     nd_set_line(node, nd_line(orig));
14667 }
14668 
14669 static void
14670 parser_warning(struct parser_params *parser, NODE *node, const char *mesg)
14671 {
14672     rb_compile_warning(ruby_sourcefile, nd_line(node), "%s", mesg);
14673 }
14674 #define parser_warning(node, mesg) parser_warning(parser, (node), (mesg))
14675 
14676 static void
14677 parser_warn(struct parser_params *parser, NODE *node, const char *mesg)
14678 {
14679     rb_compile_warn(ruby_sourcefile, nd_line(node), "%s", mesg);
14680 }
14681 #define parser_warn(node, mesg) parser_warn(parser, (node), (mesg))
14682 
14683 static NODE*
14684 block_append_gen(struct parser_params *parser, NODE *head, NODE *tail)
14685 {
14686     NODE *end, *h = head, *nd;
14687 
14688     if (tail == 0) return head;
14689 
14690     if (h == 0) return tail;
14691     switch (nd_type(h)) {
14692       case NODE_LIT:
14693       case NODE_STR:
14694       case NODE_SELF:
14695       case NODE_TRUE:
14696       case NODE_FALSE:
14697       case NODE_NIL:
14698         parser_warning(h, "unused literal ignored");
14699         return tail;
14700       default:
14701         h = end = NEW_BLOCK(head);
14702         end->nd_end = end;
14703         fixpos(end, head);
14704         head = end;
14705         break;
14706       case NODE_BLOCK:
14707         end = h->nd_end;
14708         break;
14709     }
14710 
14711     nd = end->nd_head;
14712     switch (nd_type(nd)) {
14713       case NODE_RETURN:
14714       case NODE_BREAK:
14715       case NODE_NEXT:
14716       case NODE_REDO:
14717       case NODE_RETRY:
14718         if (RTEST(ruby_verbose)) {
14719             parser_warning(tail, "statement not reached");
14720         }
14721         break;
14722 
14723       default:
14724         break;
14725     }
14726 
14727     if (nd_type(tail) != NODE_BLOCK) {
14728         tail = NEW_BLOCK(tail);
14729         tail->nd_end = tail;
14730     }
14731     end->nd_next = tail;
14732     h->nd_end = tail->nd_end;
14733     return head;
14734 }
14735 
14736 /* append item to the list */
14737 static NODE*
14738 list_append_gen(struct parser_params *parser, NODE *list, NODE *item)
14739 {
14740     NODE *last;
14741 
14742     if (list == 0) return NEW_LIST(item);
14743     if (list->nd_next) {
14744         last = list->nd_next->nd_end;
14745     }
14746     else {
14747         last = list;
14748     }
14749 
14750     list->nd_alen += 1;
14751     last->nd_next = NEW_LIST(item);
14752     list->nd_next->nd_end = last->nd_next;
14753     return list;
14754 }
14755 
14756 /* concat two lists */
14757 static NODE*
14758 list_concat_gen(struct parser_params *parser, NODE *head, NODE *tail)
14759 {
14760     NODE *last;
14761 
14762     if (head->nd_next) {
14763         last = head->nd_next->nd_end;
14764     }
14765     else {
14766         last = head;
14767     }
14768 
14769     head->nd_alen += tail->nd_alen;
14770     last->nd_next = tail;
14771     if (tail->nd_next) {
14772         head->nd_next->nd_end = tail->nd_next->nd_end;
14773     }
14774     else {
14775         head->nd_next->nd_end = tail;
14776     }
14777 
14778     return head;
14779 }
14780 
14781 static int
14782 literal_concat0(struct parser_params *parser, VALUE head, VALUE tail)
14783 {
14784     if (NIL_P(tail)) return 1;
14785     if (!rb_enc_compatible(head, tail)) {
14786         compile_error(PARSER_ARG "string literal encodings differ (%s / %s)",
14787                       rb_enc_name(rb_enc_get(head)),
14788                       rb_enc_name(rb_enc_get(tail)));
14789         rb_str_resize(head, 0);
14790         rb_str_resize(tail, 0);
14791         return 0;
14792     }
14793     rb_str_buf_append(head, tail);
14794     return 1;
14795 }
14796 
14797 /* concat two string literals */
14798 static NODE *
14799 literal_concat_gen(struct parser_params *parser, NODE *head, NODE *tail)
14800 {
14801     enum node_type htype;
14802     NODE *headlast;
14803     VALUE lit;
14804 
14805     if (!head) return tail;
14806     if (!tail) return head;
14807 
14808     htype = nd_type(head);
14809     if (htype == NODE_EVSTR) {
14810         NODE *node = NEW_DSTR(Qnil);
14811         head = list_append(node, head);
14812         htype = NODE_DSTR;
14813     }
14814     switch (nd_type(tail)) {
14815       case NODE_STR:
14816         if (htype == NODE_DSTR && (headlast = head->nd_next->nd_end->nd_head) &&
14817             nd_type(headlast) == NODE_STR) {
14818             htype = NODE_STR;
14819             lit = headlast->nd_lit;
14820         }
14821         else {
14822             lit = head->nd_lit;
14823         }
14824         if (htype == NODE_STR) {
14825             if (!literal_concat0(parser, lit, tail->nd_lit)) {
14826               error:
14827                 rb_gc_force_recycle((VALUE)head);
14828                 rb_gc_force_recycle((VALUE)tail);
14829                 return 0;
14830             }
14831             rb_gc_force_recycle((VALUE)tail);
14832         }
14833         else {
14834             list_append(head, tail);
14835         }
14836         break;
14837 
14838       case NODE_DSTR:
14839         if (htype == NODE_STR) {
14840             if (!literal_concat0(parser, head->nd_lit, tail->nd_lit))
14841                 goto error;
14842             tail->nd_lit = head->nd_lit;
14843             rb_gc_force_recycle((VALUE)head);
14844             head = tail;
14845         }
14846         else if (NIL_P(tail->nd_lit)) {
14847           append:
14848             head->nd_alen += tail->nd_alen - 1;
14849             head->nd_next->nd_end->nd_next = tail->nd_next;
14850             head->nd_next->nd_end = tail->nd_next->nd_end;
14851             rb_gc_force_recycle((VALUE)tail);
14852         }
14853         else if (htype == NODE_DSTR && (headlast = head->nd_next->nd_end->nd_head) &&
14854                  nd_type(headlast) == NODE_STR) {
14855             lit = headlast->nd_lit;
14856             if (!literal_concat0(parser, lit, tail->nd_lit))
14857                 goto error;
14858             tail->nd_lit = Qnil;
14859             goto append;
14860         }
14861         else {
14862             nd_set_type(tail, NODE_ARRAY);
14863             tail->nd_head = NEW_STR(tail->nd_lit);
14864             list_concat(head, tail);
14865         }
14866         break;
14867 
14868       case NODE_EVSTR:
14869         if (htype == NODE_STR) {
14870             nd_set_type(head, NODE_DSTR);
14871             head->nd_alen = 1;
14872         }
14873         list_append(head, tail);
14874         break;
14875     }
14876     return head;
14877 }
14878 
14879 static NODE *
14880 evstr2dstr_gen(struct parser_params *parser, NODE *node)
14881 {
14882     if (nd_type(node) == NODE_EVSTR) {
14883         node = list_append(NEW_DSTR(Qnil), node);
14884     }
14885     return node;
14886 }
14887 
14888 static NODE *
14889 new_evstr_gen(struct parser_params *parser, NODE *node)
14890 {
14891     NODE *head = node;
14892 
14893     if (node) {
14894         switch (nd_type(node)) {
14895           case NODE_STR: case NODE_DSTR: case NODE_EVSTR:
14896             return node;
14897         }
14898     }
14899     return NEW_EVSTR(head);
14900 }
14901 
14902 static NODE *
14903 call_bin_op_gen(struct parser_params *parser, NODE *recv, ID id, NODE *arg1)
14904 {
14905     value_expr(recv);
14906     value_expr(arg1);
14907     return NEW_CALL(recv, id, NEW_LIST(arg1));
14908 }
14909 
14910 static NODE *
14911 call_uni_op_gen(struct parser_params *parser, NODE *recv, ID id)
14912 {
14913     value_expr(recv);
14914     return NEW_CALL(recv, id, 0);
14915 }
14916 
14917 static NODE*
14918 match_op_gen(struct parser_params *parser, NODE *node1, NODE *node2)
14919 {
14920     value_expr(node1);
14921     value_expr(node2);
14922     if (node1) {
14923         switch (nd_type(node1)) {
14924           case NODE_DREGX:
14925           case NODE_DREGX_ONCE:
14926             return NEW_MATCH2(node1, node2);
14927 
14928           case NODE_LIT:
14929             if (RB_TYPE_P(node1->nd_lit, T_REGEXP)) {
14930                 return NEW_MATCH2(node1, node2);
14931             }
14932         }
14933     }
14934 
14935     if (node2) {
14936         switch (nd_type(node2)) {
14937           case NODE_DREGX:
14938           case NODE_DREGX_ONCE:
14939             return NEW_MATCH3(node2, node1);
14940 
14941           case NODE_LIT:
14942             if (RB_TYPE_P(node2->nd_lit, T_REGEXP)) {
14943                 return NEW_MATCH3(node2, node1);
14944             }
14945         }
14946     }
14947 
14948     return NEW_CALL(node1, tMATCH, NEW_LIST(node2));
14949 }
14950 
14951 static NODE*
14952 gettable_gen(struct parser_params *parser, ID id)
14953 {
14954     switch (id) {
14955       case keyword_self:
14956         return NEW_SELF();
14957       case keyword_nil:
14958         return NEW_NIL();
14959       case keyword_true:
14960         return NEW_TRUE();
14961       case keyword_false:
14962         return NEW_FALSE();
14963       case keyword__FILE__:
14964         return NEW_STR(rb_external_str_new_with_enc(ruby_sourcefile, strlen(ruby_sourcefile),
14965                                                     rb_filesystem_encoding()));
14966       case keyword__LINE__:
14967         return NEW_LIT(INT2FIX(tokline));
14968       case keyword__ENCODING__:
14969         return NEW_LIT(rb_enc_from_encoding(current_enc));
14970     }
14971     switch (id_type(id)) {
14972       case ID_LOCAL:
14973         if (dyna_in_block() && dvar_defined(id)) return NEW_DVAR(id);
14974         if (local_id(id)) return NEW_LVAR(id);
14975         /* method call without arguments */
14976         return NEW_VCALL(id);
14977       case ID_GLOBAL:
14978         return NEW_GVAR(id);
14979       case ID_INSTANCE:
14980         return NEW_IVAR(id);
14981       case ID_CONST:
14982         return NEW_CONST(id);
14983       case ID_CLASS:
14984         return NEW_CVAR(id);
14985     }
14986     compile_error(PARSER_ARG "identifier %s is not valid to get", rb_id2name(id));
14987     return 0;
14988 }
14989 #else  /* !RIPPER */
14990 static int
14991 id_is_var_gen(struct parser_params *parser, ID id)
14992 {
14993     if (is_notop_id(id)) {
14994         switch (id & ID_SCOPE_MASK) {
14995           case ID_GLOBAL: case ID_INSTANCE: case ID_CONST: case ID_CLASS:
14996             return 1;
14997           case ID_LOCAL:
14998             if (dyna_in_block() && dvar_defined(id)) return 1;
14999             if (local_id(id)) return 1;
15000             /* method call without arguments */
15001             return 0;
15002         }
15003     }
15004     compile_error(PARSER_ARG "identifier %s is not valid to get", rb_id2name(id));
15005     return 0;
15006 }
15007 #endif /* !RIPPER */
15008 
15009 #if PARSER_DEBUG
15010 static const char *
15011 lex_state_name(enum lex_state_e state)
15012 {
15013     static const char names[][12] = {
15014         "EXPR_BEG",    "EXPR_END",    "EXPR_ENDARG", "EXPR_ENDFN",  "EXPR_ARG",
15015         "EXPR_CMDARG", "EXPR_MID",    "EXPR_FNAME",  "EXPR_DOT",    "EXPR_CLASS",
15016         "EXPR_VALUE",
15017     };
15018 
15019     if ((unsigned)state & ~(~0u << EXPR_MAX_STATE))
15020         return names[ffs(state)];
15021     return NULL;
15022 }
15023 #endif
15024 
15025 #ifdef RIPPER
15026 static VALUE
15027 assignable_gen(struct parser_params *parser, VALUE lhs)
15028 #else
15029 static NODE*
15030 assignable_gen(struct parser_params *parser, ID id, NODE *val)
15031 #endif
15032 {
15033 #ifdef RIPPER
15034     ID id = get_id(lhs);
15035 # define assignable_result(x) get_value(lhs)
15036 # define parser_yyerror(parser, x) dispatch1(assign_error, lhs)
15037 #else
15038 # define assignable_result(x) (x)
15039 #endif
15040     if (!id) return assignable_result(0);
15041     switch (id) {
15042       case keyword_self:
15043         yyerror("Can't change the value of self");
15044         goto error;
15045       case keyword_nil:
15046         yyerror("Can't assign to nil");
15047         goto error;
15048       case keyword_true:
15049         yyerror("Can't assign to true");
15050         goto error;
15051       case keyword_false:
15052         yyerror("Can't assign to false");
15053         goto error;
15054       case keyword__FILE__:
15055         yyerror("Can't assign to __FILE__");
15056         goto error;
15057       case keyword__LINE__:
15058         yyerror("Can't assign to __LINE__");
15059         goto error;
15060       case keyword__ENCODING__:
15061         yyerror("Can't assign to __ENCODING__");
15062         goto error;
15063     }
15064     switch (id_type(id)) {
15065       case ID_LOCAL:
15066         if (dyna_in_block()) {
15067             if (dvar_curr(id)) {
15068                 return assignable_result(NEW_DASGN_CURR(id, val));
15069             }
15070             else if (dvar_defined(id)) {
15071                 return assignable_result(NEW_DASGN(id, val));
15072             }
15073             else if (local_id(id)) {
15074                 return assignable_result(NEW_LASGN(id, val));
15075             }
15076             else {
15077                 dyna_var(id);
15078                 return assignable_result(NEW_DASGN_CURR(id, val));
15079             }
15080         }
15081         else {
15082             if (!local_id(id)) {
15083                 local_var(id);
15084             }
15085             return assignable_result(NEW_LASGN(id, val));
15086         }
15087         break;
15088       case ID_GLOBAL:
15089         return assignable_result(NEW_GASGN(id, val));
15090       case ID_INSTANCE:
15091         return assignable_result(NEW_IASGN(id, val));
15092       case ID_CONST:
15093         if (!in_def && !in_single)
15094             return assignable_result(NEW_CDECL(id, val, 0));
15095         yyerror("dynamic constant assignment");
15096         break;
15097       case ID_CLASS:
15098         return assignable_result(NEW_CVASGN(id, val));
15099       default:
15100         compile_error(PARSER_ARG "identifier %s is not valid to set", rb_id2name(id));
15101     }
15102   error:
15103     return assignable_result(0);
15104 #undef assignable_result
15105 #undef parser_yyerror
15106 }
15107 
15108 static int
15109 is_private_local_id(ID name)
15110 {
15111     VALUE s;
15112     if (name == idUScore) return 1;
15113     if (!is_local_id(name)) return 0;
15114     s = rb_id2str(name);
15115     if (!s) return 0;
15116     return RSTRING_PTR(s)[0] == '_';
15117 }
15118 
15119 #define LVAR_USED ((ID)1 << (sizeof(ID) * CHAR_BIT - 1))
15120 
15121 static ID
15122 shadowing_lvar_gen(struct parser_params *parser, ID name)
15123 {
15124     if (is_private_local_id(name)) return name;
15125     if (dyna_in_block()) {
15126         if (dvar_curr(name)) {
15127             yyerror("duplicated argument name");
15128         }
15129         else if (dvar_defined_get(name) || local_id(name)) {
15130             rb_warningS("shadowing outer local variable - %s", rb_id2name(name));
15131             vtable_add(lvtbl->vars, name);
15132             if (lvtbl->used) {
15133                 vtable_add(lvtbl->used, (ID)ruby_sourceline | LVAR_USED);
15134             }
15135         }
15136     }
15137     else {
15138         if (local_id(name)) {
15139             yyerror("duplicated argument name");
15140         }
15141     }
15142     return name;
15143 }
15144 
15145 static void
15146 new_bv_gen(struct parser_params *parser, ID name)
15147 {
15148     if (!name) return;
15149     if (!is_local_id(name)) {
15150         compile_error(PARSER_ARG "invalid local variable - %s",
15151                       rb_id2name(name));
15152         return;
15153     }
15154     shadowing_lvar(name);
15155     dyna_var(name);
15156 }
15157 
15158 #ifndef RIPPER
15159 static NODE *
15160 aryset_gen(struct parser_params *parser, NODE *recv, NODE *idx)
15161 {
15162     if (recv && nd_type(recv) == NODE_SELF)
15163         recv = (NODE *)1;
15164     return NEW_ATTRASGN(recv, tASET, idx);
15165 }
15166 
15167 static void
15168 block_dup_check_gen(struct parser_params *parser, NODE *node1, NODE *node2)
15169 {
15170     if (node2 && node1 && nd_type(node1) == NODE_BLOCK_PASS) {
15171         compile_error(PARSER_ARG "both block arg and actual block given");
15172     }
15173 }
15174 
15175 static const char id_type_names[][9] = {
15176     "LOCAL",
15177     "INSTANCE",
15178     "",                         /* INSTANCE2 */
15179     "GLOBAL",
15180     "ATTRSET",
15181     "CONST",
15182     "CLASS",
15183     "JUNK",
15184 };
15185 
15186 ID
15187 rb_id_attrset(ID id)
15188 {
15189     if (!is_notop_id(id)) {
15190         switch (id) {
15191           case tAREF: case tASET:
15192             return tASET;       /* only exception */
15193         }
15194         rb_name_error(id, "cannot make operator ID :%s attrset", rb_id2name(id));
15195     }
15196     else {
15197         int scope = (int)(id & ID_SCOPE_MASK);
15198         switch (scope) {
15199           case ID_LOCAL: case ID_INSTANCE: case ID_GLOBAL:
15200           case ID_CONST: case ID_CLASS: case ID_JUNK:
15201             break;
15202           case ID_ATTRSET:
15203             return id;
15204           default:
15205             rb_name_error(id, "cannot make %s ID %+"PRIsVALUE" attrset",
15206                           id_type_names[scope], ID2SYM(id));
15207 
15208         }
15209     }
15210     id &= ~ID_SCOPE_MASK;
15211     id |= ID_ATTRSET;
15212     return id;
15213 }
15214 
15215 static NODE *
15216 attrset_gen(struct parser_params *parser, NODE *recv, ID id)
15217 {
15218     if (recv && nd_type(recv) == NODE_SELF)
15219         recv = (NODE *)1;
15220     return NEW_ATTRASGN(recv, rb_id_attrset(id), 0);
15221 }
15222 
15223 static void
15224 rb_backref_error_gen(struct parser_params *parser, NODE *node)
15225 {
15226     switch (nd_type(node)) {
15227       case NODE_NTH_REF:
15228         compile_error(PARSER_ARG "Can't set variable $%ld", node->nd_nth);
15229         break;
15230       case NODE_BACK_REF:
15231         compile_error(PARSER_ARG "Can't set variable $%c", (int)node->nd_nth);
15232         break;
15233     }
15234 }
15235 
15236 static NODE *
15237 arg_concat_gen(struct parser_params *parser, NODE *node1, NODE *node2)
15238 {
15239     if (!node2) return node1;
15240     switch (nd_type(node1)) {
15241       case NODE_BLOCK_PASS:
15242         if (node1->nd_head)
15243             node1->nd_head = arg_concat(node1->nd_head, node2);
15244         else
15245             node1->nd_head = NEW_LIST(node2);
15246         return node1;
15247       case NODE_ARGSPUSH:
15248         if (nd_type(node2) != NODE_ARRAY) break;
15249         node1->nd_body = list_concat(NEW_LIST(node1->nd_body), node2);
15250         nd_set_type(node1, NODE_ARGSCAT);
15251         return node1;
15252       case NODE_ARGSCAT:
15253         if (nd_type(node2) != NODE_ARRAY ||
15254             nd_type(node1->nd_body) != NODE_ARRAY) break;
15255         node1->nd_body = list_concat(node1->nd_body, node2);
15256         return node1;
15257     }
15258     return NEW_ARGSCAT(node1, node2);
15259 }
15260 
15261 static NODE *
15262 arg_append_gen(struct parser_params *parser, NODE *node1, NODE *node2)
15263 {
15264     if (!node1) return NEW_LIST(node2);
15265     switch (nd_type(node1))  {
15266       case NODE_ARRAY:
15267         return list_append(node1, node2);
15268       case NODE_BLOCK_PASS:
15269         node1->nd_head = arg_append(node1->nd_head, node2);
15270         return node1;
15271       case NODE_ARGSPUSH:
15272         node1->nd_body = list_append(NEW_LIST(node1->nd_body), node2);
15273         nd_set_type(node1, NODE_ARGSCAT);
15274         return node1;
15275     }
15276     return NEW_ARGSPUSH(node1, node2);
15277 }
15278 
15279 static NODE *
15280 splat_array(NODE* node)
15281 {
15282     if (nd_type(node) == NODE_SPLAT) node = node->nd_head;
15283     if (nd_type(node) == NODE_ARRAY) return node;
15284     return 0;
15285 }
15286 
15287 static NODE *
15288 node_assign_gen(struct parser_params *parser, NODE *lhs, NODE *rhs)
15289 {
15290     if (!lhs) return 0;
15291 
15292     switch (nd_type(lhs)) {
15293       case NODE_GASGN:
15294       case NODE_IASGN:
15295       case NODE_IASGN2:
15296       case NODE_LASGN:
15297       case NODE_DASGN:
15298       case NODE_DASGN_CURR:
15299       case NODE_MASGN:
15300       case NODE_CDECL:
15301       case NODE_CVASGN:
15302         lhs->nd_value = rhs;
15303         break;
15304 
15305       case NODE_ATTRASGN:
15306       case NODE_CALL:
15307         lhs->nd_args = arg_append(lhs->nd_args, rhs);
15308         break;
15309 
15310       default:
15311         /* should not happen */
15312         break;
15313     }
15314 
15315     return lhs;
15316 }
15317 
15318 static int
15319 value_expr_gen(struct parser_params *parser, NODE *node)
15320 {
15321     int cond = 0;
15322 
15323     if (!node) {
15324         rb_warning0("empty expression");
15325     }
15326     while (node) {
15327         switch (nd_type(node)) {
15328           case NODE_DEFN:
15329           case NODE_DEFS:
15330             parser_warning(node, "void value expression");
15331             return FALSE;
15332 
15333           case NODE_RETURN:
15334           case NODE_BREAK:
15335           case NODE_NEXT:
15336           case NODE_REDO:
15337           case NODE_RETRY:
15338             if (!cond) yyerror("void value expression");
15339             /* or "control never reach"? */
15340             return FALSE;
15341 
15342           case NODE_BLOCK:
15343             while (node->nd_next) {
15344                 node = node->nd_next;
15345             }
15346             node = node->nd_head;
15347             break;
15348 
15349           case NODE_BEGIN:
15350             node = node->nd_body;
15351             break;
15352 
15353           case NODE_IF:
15354             if (!node->nd_body) {
15355                 node = node->nd_else;
15356                 break;
15357             }
15358             else if (!node->nd_else) {
15359                 node = node->nd_body;
15360                 break;
15361             }
15362             if (!value_expr(node->nd_body)) return FALSE;
15363             node = node->nd_else;
15364             break;
15365 
15366           case NODE_AND:
15367           case NODE_OR:
15368             cond = 1;
15369             node = node->nd_2nd;
15370             break;
15371 
15372           default:
15373             return TRUE;
15374         }
15375     }
15376 
15377     return TRUE;
15378 }
15379 
15380 static void
15381 void_expr_gen(struct parser_params *parser, NODE *node)
15382 {
15383     const char *useless = 0;
15384 
15385     if (!RTEST(ruby_verbose)) return;
15386 
15387     if (!node) return;
15388     switch (nd_type(node)) {
15389       case NODE_CALL:
15390         switch (node->nd_mid) {
15391           case '+':
15392           case '-':
15393           case '*':
15394           case '/':
15395           case '%':
15396           case tPOW:
15397           case tUPLUS:
15398           case tUMINUS:
15399           case '|':
15400           case '^':
15401           case '&':
15402           case tCMP:
15403           case '>':
15404           case tGEQ:
15405           case '<':
15406           case tLEQ:
15407           case tEQ:
15408           case tNEQ:
15409             useless = rb_id2name(node->nd_mid);
15410             break;
15411         }
15412         break;
15413 
15414       case NODE_LVAR:
15415       case NODE_DVAR:
15416       case NODE_GVAR:
15417       case NODE_IVAR:
15418       case NODE_CVAR:
15419       case NODE_NTH_REF:
15420       case NODE_BACK_REF:
15421         useless = "a variable";
15422         break;
15423       case NODE_CONST:
15424         useless = "a constant";
15425         break;
15426       case NODE_LIT:
15427       case NODE_STR:
15428       case NODE_DSTR:
15429       case NODE_DREGX:
15430       case NODE_DREGX_ONCE:
15431         useless = "a literal";
15432         break;
15433       case NODE_COLON2:
15434       case NODE_COLON3:
15435         useless = "::";
15436         break;
15437       case NODE_DOT2:
15438         useless = "..";
15439         break;
15440       case NODE_DOT3:
15441         useless = "...";
15442         break;
15443       case NODE_SELF:
15444         useless = "self";
15445         break;
15446       case NODE_NIL:
15447         useless = "nil";
15448         break;
15449       case NODE_TRUE:
15450         useless = "true";
15451         break;
15452       case NODE_FALSE:
15453         useless = "false";
15454         break;
15455       case NODE_DEFINED:
15456         useless = "defined?";
15457         break;
15458     }
15459 
15460     if (useless) {
15461         int line = ruby_sourceline;
15462 
15463         ruby_sourceline = nd_line(node);
15464         rb_warnS("possibly useless use of %s in void context", useless);
15465         ruby_sourceline = line;
15466     }
15467 }
15468 
15469 static void
15470 void_stmts_gen(struct parser_params *parser, NODE *node)
15471 {
15472     if (!RTEST(ruby_verbose)) return;
15473     if (!node) return;
15474     if (nd_type(node) != NODE_BLOCK) return;
15475 
15476     for (;;) {
15477         if (!node->nd_next) return;
15478         void_expr0(node->nd_head);
15479         node = node->nd_next;
15480     }
15481 }
15482 
15483 static NODE *
15484 remove_begin(NODE *node)
15485 {
15486     NODE **n = &node, *n1 = node;
15487     while (n1 && nd_type(n1) == NODE_BEGIN && n1->nd_body) {
15488         *n = n1 = n1->nd_body;
15489     }
15490     return node;
15491 }
15492 
15493 static void
15494 reduce_nodes_gen(struct parser_params *parser, NODE **body)
15495 {
15496     NODE *node = *body;
15497 
15498     if (!node) {
15499         *body = NEW_NIL();
15500         return;
15501     }
15502 #define subnodes(n1, n2) \
15503     ((!node->n1) ? (node->n2 ? (body = &node->n2, 1) : 0) : \
15504      (!node->n2) ? (body = &node->n1, 1) : \
15505      (reduce_nodes(&node->n1), body = &node->n2, 1))
15506 
15507     while (node) {
15508         int newline = (int)(node->flags & NODE_FL_NEWLINE);
15509         switch (nd_type(node)) {
15510           end:
15511           case NODE_NIL:
15512             *body = 0;
15513             return;
15514           case NODE_RETURN:
15515             *body = node = node->nd_stts;
15516             if (newline && node) node->flags |= NODE_FL_NEWLINE;
15517             continue;
15518           case NODE_BEGIN:
15519             *body = node = node->nd_body;
15520             if (newline && node) node->flags |= NODE_FL_NEWLINE;
15521             continue;
15522           case NODE_BLOCK:
15523             body = &node->nd_end->nd_head;
15524             break;
15525           case NODE_IF:
15526             if (subnodes(nd_body, nd_else)) break;
15527             return;
15528           case NODE_CASE:
15529             body = &node->nd_body;
15530             break;
15531           case NODE_WHEN:
15532             if (!subnodes(nd_body, nd_next)) goto end;
15533             break;
15534           case NODE_ENSURE:
15535             if (!subnodes(nd_head, nd_resq)) goto end;
15536             break;
15537           case NODE_RESCUE:
15538             if (node->nd_else) {
15539                 body = &node->nd_resq;
15540                 break;
15541             }
15542             if (!subnodes(nd_head, nd_resq)) goto end;
15543             break;
15544           default:
15545             return;
15546         }
15547         node = *body;
15548         if (newline && node) node->flags |= NODE_FL_NEWLINE;
15549     }
15550 
15551 #undef subnodes
15552 }
15553 
15554 static int
15555 is_static_content(NODE *node)
15556 {
15557     if (!node) return 1;
15558     switch (nd_type(node)) {
15559       case NODE_HASH:
15560         if (!(node = node->nd_head)) break;
15561       case NODE_ARRAY:
15562         do {
15563             if (!is_static_content(node->nd_head)) return 0;
15564         } while ((node = node->nd_next) != 0);
15565       case NODE_LIT:
15566       case NODE_STR:
15567       case NODE_NIL:
15568       case NODE_TRUE:
15569       case NODE_FALSE:
15570       case NODE_ZARRAY:
15571         break;
15572       default:
15573         return 0;
15574     }
15575     return 1;
15576 }
15577 
15578 static int
15579 assign_in_cond(struct parser_params *parser, NODE *node)
15580 {
15581     switch (nd_type(node)) {
15582       case NODE_MASGN:
15583         yyerror("multiple assignment in conditional");
15584         return 1;
15585 
15586       case NODE_LASGN:
15587       case NODE_DASGN:
15588       case NODE_DASGN_CURR:
15589       case NODE_GASGN:
15590       case NODE_IASGN:
15591         break;
15592 
15593       default:
15594         return 0;
15595     }
15596 
15597     if (!node->nd_value) return 1;
15598     if (is_static_content(node->nd_value)) {
15599         /* reports always */
15600         parser_warn(node->nd_value, "found = in conditional, should be ==");
15601     }
15602     return 1;
15603 }
15604 
15605 static void
15606 warn_unless_e_option(struct parser_params *parser, NODE *node, const char *str)
15607 {
15608     if (!e_option_supplied(parser)) parser_warn(node, str);
15609 }
15610 
15611 static void
15612 warning_unless_e_option(struct parser_params *parser, NODE *node, const char *str)
15613 {
15614     if (!e_option_supplied(parser)) parser_warning(node, str);
15615 }
15616 
15617 static void
15618 fixup_nodes(NODE **rootnode)
15619 {
15620     NODE *node, *next, *head;
15621 
15622     for (node = *rootnode; node; node = next) {
15623         enum node_type type;
15624         VALUE val;
15625 
15626         next = node->nd_next;
15627         head = node->nd_head;
15628         rb_gc_force_recycle((VALUE)node);
15629         *rootnode = next;
15630         switch (type = nd_type(head)) {
15631           case NODE_DOT2:
15632           case NODE_DOT3:
15633             val = rb_range_new(head->nd_beg->nd_lit, head->nd_end->nd_lit,
15634                                type == NODE_DOT3);
15635             rb_gc_force_recycle((VALUE)head->nd_beg);
15636             rb_gc_force_recycle((VALUE)head->nd_end);
15637             nd_set_type(head, NODE_LIT);
15638             head->nd_lit = val;
15639             break;
15640           default:
15641             break;
15642         }
15643     }
15644 }
15645 
15646 static NODE *cond0(struct parser_params*,NODE*);
15647 
15648 static NODE*
15649 range_op(struct parser_params *parser, NODE *node)
15650 {
15651     enum node_type type;
15652 
15653     if (node == 0) return 0;
15654 
15655     type = nd_type(node);
15656     value_expr(node);
15657     if (type == NODE_LIT && FIXNUM_P(node->nd_lit)) {
15658         warn_unless_e_option(parser, node, "integer literal in conditional range");
15659         return NEW_CALL(node, tEQ, NEW_LIST(NEW_GVAR(rb_intern("$."))));
15660     }
15661     return cond0(parser, node);
15662 }
15663 
15664 static int
15665 literal_node(NODE *node)
15666 {
15667     if (!node) return 1;        /* same as NODE_NIL */
15668     switch (nd_type(node)) {
15669       case NODE_LIT:
15670       case NODE_STR:
15671       case NODE_DSTR:
15672       case NODE_EVSTR:
15673       case NODE_DREGX:
15674       case NODE_DREGX_ONCE:
15675       case NODE_DSYM:
15676         return 2;
15677       case NODE_TRUE:
15678       case NODE_FALSE:
15679       case NODE_NIL:
15680         return 1;
15681     }
15682     return 0;
15683 }
15684 
15685 static NODE*
15686 cond0(struct parser_params *parser, NODE *node)
15687 {
15688     if (node == 0) return 0;
15689     assign_in_cond(parser, node);
15690 
15691     switch (nd_type(node)) {
15692       case NODE_DSTR:
15693       case NODE_EVSTR:
15694       case NODE_STR:
15695         rb_warn0("string literal in condition");
15696         break;
15697 
15698       case NODE_DREGX:
15699       case NODE_DREGX_ONCE:
15700         warning_unless_e_option(parser, node, "regex literal in condition");
15701         return NEW_MATCH2(node, NEW_GVAR(rb_intern("$_")));
15702 
15703       case NODE_AND:
15704       case NODE_OR:
15705         node->nd_1st = cond0(parser, node->nd_1st);
15706         node->nd_2nd = cond0(parser, node->nd_2nd);
15707         break;
15708 
15709       case NODE_DOT2:
15710       case NODE_DOT3:
15711         node->nd_beg = range_op(parser, node->nd_beg);
15712         node->nd_end = range_op(parser, node->nd_end);
15713         if (nd_type(node) == NODE_DOT2) nd_set_type(node,NODE_FLIP2);
15714         else if (nd_type(node) == NODE_DOT3) nd_set_type(node, NODE_FLIP3);
15715         if (!e_option_supplied(parser)) {
15716             int b = literal_node(node->nd_beg);
15717             int e = literal_node(node->nd_end);
15718             if ((b == 1 && e == 1) || (b + e >= 2 && RTEST(ruby_verbose))) {
15719                 parser_warn(node, "range literal in condition");
15720             }
15721         }
15722         break;
15723 
15724       case NODE_DSYM:
15725         parser_warning(node, "literal in condition");
15726         break;
15727 
15728       case NODE_LIT:
15729         if (RB_TYPE_P(node->nd_lit, T_REGEXP)) {
15730             warn_unless_e_option(parser, node, "regex literal in condition");
15731             nd_set_type(node, NODE_MATCH);
15732         }
15733         else {
15734             parser_warning(node, "literal in condition");
15735         }
15736       default:
15737         break;
15738     }
15739     return node;
15740 }
15741 
15742 static NODE*
15743 cond_gen(struct parser_params *parser, NODE *node)
15744 {
15745     if (node == 0) return 0;
15746     return cond0(parser, node);
15747 }
15748 
15749 static NODE*
15750 logop_gen(struct parser_params *parser, enum node_type type, NODE *left, NODE *right)
15751 {
15752     value_expr(left);
15753     if (left && (enum node_type)nd_type(left) == type) {
15754         NODE *node = left, *second;
15755         while ((second = node->nd_2nd) != 0 && (enum node_type)nd_type(second) == type) {
15756             node = second;
15757         }
15758         node->nd_2nd = NEW_NODE(type, second, right, 0);
15759         return left;
15760     }
15761     return NEW_NODE(type, left, right, 0);
15762 }
15763 
15764 static void
15765 no_blockarg(struct parser_params *parser, NODE *node)
15766 {
15767     if (node && nd_type(node) == NODE_BLOCK_PASS) {
15768         compile_error(PARSER_ARG "block argument should not be given");
15769     }
15770 }
15771 
15772 static NODE *
15773 ret_args_gen(struct parser_params *parser, NODE *node)
15774 {
15775     if (node) {
15776         no_blockarg(parser, node);
15777         if (nd_type(node) == NODE_ARRAY) {
15778             if (node->nd_next == 0) {
15779                 node = node->nd_head;
15780             }
15781             else {
15782                 nd_set_type(node, NODE_VALUES);
15783             }
15784         }
15785     }
15786     return node;
15787 }
15788 
15789 static NODE *
15790 new_yield_gen(struct parser_params *parser, NODE *node)
15791 {
15792     if (node) no_blockarg(parser, node);
15793 
15794     return NEW_YIELD(node);
15795 }
15796 
15797 static NODE*
15798 negate_lit(NODE *node)
15799 {
15800     switch (TYPE(node->nd_lit)) {
15801       case T_FIXNUM:
15802         node->nd_lit = LONG2FIX(-FIX2LONG(node->nd_lit));
15803         break;
15804       case T_BIGNUM:
15805         node->nd_lit = rb_funcall(node->nd_lit,tUMINUS,0,0);
15806         break;
15807       case T_FLOAT:
15808 #if USE_FLONUM
15809         if (FLONUM_P(node->nd_lit)) {
15810             node->nd_lit = DBL2NUM(-RFLOAT_VALUE(node->nd_lit));
15811         }
15812         else {
15813             RFLOAT(node->nd_lit)->float_value = -RFLOAT_VALUE(node->nd_lit);
15814         }
15815 #else
15816         RFLOAT(node->nd_lit)->float_value = -RFLOAT_VALUE(node->nd_lit);
15817 #endif
15818         break;
15819       default:
15820         break;
15821     }
15822     return node;
15823 }
15824 
15825 static NODE *
15826 arg_blk_pass(NODE *node1, NODE *node2)
15827 {
15828     if (node2) {
15829         node2->nd_head = node1;
15830         return node2;
15831     }
15832     return node1;
15833 }
15834 
15835 
15836 static NODE*
15837 new_args_gen(struct parser_params *parser, NODE *m, NODE *o, ID r, NODE *p, NODE *tail)
15838 {
15839     int saved_line = ruby_sourceline;
15840     struct rb_args_info *args = tail->nd_ainfo;
15841 
15842     args->pre_args_num   = m ? rb_long2int(m->nd_plen) : 0;
15843     args->pre_init       = m ? m->nd_next : 0;
15844 
15845     args->post_args_num  = p ? rb_long2int(p->nd_plen) : 0;
15846     args->post_init      = p ? p->nd_next : 0;
15847     args->first_post_arg = p ? p->nd_pid : 0;
15848 
15849     args->rest_arg       = r;
15850 
15851     args->opt_args       = o;
15852 
15853     ruby_sourceline = saved_line;
15854 
15855     return tail;
15856 }
15857 
15858 static NODE*
15859 new_args_tail_gen(struct parser_params *parser, NODE *k, ID kr, ID b)
15860 {
15861     int saved_line = ruby_sourceline;
15862     struct rb_args_info *args;
15863     NODE *kw_rest_arg = 0;
15864     NODE *node;
15865 
15866     args = ALLOC(struct rb_args_info);
15867     MEMZERO(args, struct rb_args_info, 1);
15868     node = NEW_NODE(NODE_ARGS, 0, 0, args);
15869 
15870     args->block_arg      = b;
15871     args->kw_args        = k;
15872     if (k && !kr) kr = internal_id();
15873     if (kr) {
15874         arg_var(kr);
15875         kw_rest_arg  = NEW_DVAR(kr);
15876     }
15877     args->kw_rest_arg    = kw_rest_arg;
15878 
15879     ruby_sourceline = saved_line;
15880     return node;
15881 }
15882 
15883 static NODE*
15884 dsym_node_gen(struct parser_params *parser, NODE *node)
15885 {
15886     VALUE lit;
15887 
15888     if (!node) {
15889         return NEW_LIT(ID2SYM(idNULL));
15890     }
15891 
15892     switch (nd_type(node)) {
15893       case NODE_DSTR:
15894         nd_set_type(node, NODE_DSYM);
15895         break;
15896       case NODE_STR:
15897         lit = node->nd_lit;
15898         node->nd_lit = ID2SYM(rb_intern_str(lit));
15899         nd_set_type(node, NODE_LIT);
15900         break;
15901       default:
15902         node = NEW_NODE(NODE_DSYM, Qnil, 1, NEW_LIST(node));
15903         break;
15904     }
15905     return node;
15906 }
15907 #endif /* !RIPPER */
15908 
15909 #ifndef RIPPER
15910 static NODE *
15911 new_op_assign_gen(struct parser_params *parser, NODE *lhs, ID op, NODE *rhs)
15912 {
15913     NODE *asgn;
15914 
15915     if (lhs) {
15916         ID vid = lhs->nd_vid;
15917         if (op == tOROP) {
15918             lhs->nd_value = rhs;
15919             asgn = NEW_OP_ASGN_OR(gettable(vid), lhs);
15920             if (is_asgn_or_id(vid)) {
15921                 asgn->nd_aid = vid;
15922             }
15923         }
15924         else if (op == tANDOP) {
15925             lhs->nd_value = rhs;
15926             asgn = NEW_OP_ASGN_AND(gettable(vid), lhs);
15927         }
15928         else {
15929             asgn = lhs;
15930             asgn->nd_value = NEW_CALL(gettable(vid), op, NEW_LIST(rhs));
15931         }
15932     }
15933     else {
15934         asgn = NEW_BEGIN(0);
15935     }
15936     return asgn;
15937 }
15938 
15939 static NODE *
15940 new_attr_op_assign_gen(struct parser_params *parser, NODE *lhs, ID attr, ID op, NODE *rhs)
15941 {
15942     NODE *asgn;
15943 
15944     if (op == tOROP) {
15945         op = 0;
15946     }
15947     else if (op == tANDOP) {
15948         op = 1;
15949     }
15950     asgn = NEW_OP_ASGN2(lhs, attr, op, rhs);
15951     fixpos(asgn, lhs);
15952     return asgn;
15953 }
15954 
15955 static NODE *
15956 new_const_op_assign_gen(struct parser_params *parser, NODE *lhs, ID op, NODE *rhs)
15957 {
15958     NODE *asgn;
15959 
15960     if (op == tOROP) {
15961         op = 0;
15962     }
15963     else if (op == tANDOP) {
15964         op = 1;
15965     }
15966     if (lhs) {
15967         asgn = NEW_OP_CDECL(lhs, op, rhs);
15968     }
15969     else {
15970         asgn = NEW_BEGIN(0);
15971     }
15972     fixpos(asgn, lhs);
15973     return asgn;
15974 }
15975 #else
15976 static VALUE
15977 new_op_assign_gen(struct parser_params *parser, VALUE lhs, VALUE op, VALUE rhs)
15978 {
15979     return dispatch3(opassign, lhs, op, rhs);
15980 }
15981 
15982 static VALUE
15983 new_attr_op_assign_gen(struct parser_params *parser, VALUE lhs, VALUE type, VALUE attr, VALUE op, VALUE rhs)
15984 {
15985     VALUE recv = dispatch3(field, lhs, type, attr);
15986     return dispatch3(opassign, recv, op, rhs);
15987 }
15988 #endif
15989 
15990 static void
15991 warn_unused_var(struct parser_params *parser, struct local_vars *local)
15992 {
15993     int i, cnt;
15994     ID *v, *u;
15995 
15996     if (!local->used) return;
15997     v = local->vars->tbl;
15998     u = local->used->tbl;
15999     cnt = local->used->pos;
16000     if (cnt != local->vars->pos) {
16001         rb_bug("local->used->pos != local->vars->pos");
16002     }
16003     for (i = 0; i < cnt; ++i) {
16004         if (!v[i] || (u[i] & LVAR_USED)) continue;
16005         if (is_private_local_id(v[i])) continue;
16006         rb_warn4S(ruby_sourcefile, (int)u[i], "assigned but unused variable - %s", rb_id2name(v[i]));
16007     }
16008 }
16009 
16010 static void
16011 local_push_gen(struct parser_params *parser, int inherit_dvars)
16012 {
16013     struct local_vars *local;
16014 
16015     local = ALLOC(struct local_vars);
16016     local->prev = lvtbl;
16017     local->args = vtable_alloc(0);
16018     local->vars = vtable_alloc(inherit_dvars ? DVARS_INHERIT : DVARS_TOPSCOPE);
16019     local->used = !(inherit_dvars &&
16020                     (ifndef_ripper(compile_for_eval || e_option_supplied(parser))+0)) &&
16021         RTEST(ruby_verbose) ? vtable_alloc(0) : 0;
16022     local->cmdargs = cmdarg_stack;
16023     cmdarg_stack = 0;
16024     lvtbl = local;
16025 }
16026 
16027 static void
16028 local_pop_gen(struct parser_params *parser)
16029 {
16030     struct local_vars *local = lvtbl->prev;
16031     if (lvtbl->used) {
16032         warn_unused_var(parser, lvtbl);
16033         vtable_free(lvtbl->used);
16034     }
16035     vtable_free(lvtbl->args);
16036     vtable_free(lvtbl->vars);
16037     cmdarg_stack = lvtbl->cmdargs;
16038     xfree(lvtbl);
16039     lvtbl = local;
16040 }
16041 
16042 #ifndef RIPPER
16043 static ID*
16044 vtable_tblcpy(ID *buf, const struct vtable *src)
16045 {
16046     int i, cnt = vtable_size(src);
16047 
16048     if (cnt > 0) {
16049         buf[0] = cnt;
16050         for (i = 0; i < cnt; i++) {
16051             buf[i] = src->tbl[i];
16052         }
16053         return buf;
16054     }
16055     return 0;
16056 }
16057 
16058 static ID*
16059 local_tbl_gen(struct parser_params *parser)
16060 {
16061     int cnt = vtable_size(lvtbl->args) + vtable_size(lvtbl->vars);
16062     ID *buf;
16063 
16064     if (cnt <= 0) return 0;
16065     buf = ALLOC_N(ID, cnt + 1);
16066     vtable_tblcpy(buf+1, lvtbl->args);
16067     vtable_tblcpy(buf+vtable_size(lvtbl->args)+1, lvtbl->vars);
16068     buf[0] = cnt;
16069     return buf;
16070 }
16071 #endif
16072 
16073 static int
16074 arg_var_gen(struct parser_params *parser, ID id)
16075 {
16076     vtable_add(lvtbl->args, id);
16077     return vtable_size(lvtbl->args) - 1;
16078 }
16079 
16080 static int
16081 local_var_gen(struct parser_params *parser, ID id)
16082 {
16083     vtable_add(lvtbl->vars, id);
16084     if (lvtbl->used) {
16085         vtable_add(lvtbl->used, (ID)ruby_sourceline);
16086     }
16087     return vtable_size(lvtbl->vars) - 1;
16088 }
16089 
16090 static int
16091 local_id_gen(struct parser_params *parser, ID id)
16092 {
16093     struct vtable *vars, *args, *used;
16094 
16095     vars = lvtbl->vars;
16096     args = lvtbl->args;
16097     used = lvtbl->used;
16098 
16099     while (vars && POINTER_P(vars->prev)) {
16100         vars = vars->prev;
16101         args = args->prev;
16102         if (used) used = used->prev;
16103     }
16104 
16105     if (vars && vars->prev == DVARS_INHERIT) {
16106         return rb_local_defined(id);
16107     }
16108     else if (vtable_included(args, id)) {
16109         return 1;
16110     }
16111     else {
16112         int i = vtable_included(vars, id);
16113         if (i && used) used->tbl[i-1] |= LVAR_USED;
16114         return i != 0;
16115     }
16116 }
16117 
16118 static const struct vtable *
16119 dyna_push_gen(struct parser_params *parser)
16120 {
16121     lvtbl->args = vtable_alloc(lvtbl->args);
16122     lvtbl->vars = vtable_alloc(lvtbl->vars);
16123     if (lvtbl->used) {
16124         lvtbl->used = vtable_alloc(lvtbl->used);
16125     }
16126     return lvtbl->args;
16127 }
16128 
16129 static void
16130 dyna_pop_1(struct parser_params *parser)
16131 {
16132     struct vtable *tmp;
16133 
16134     if ((tmp = lvtbl->used) != 0) {
16135         warn_unused_var(parser, lvtbl);
16136         lvtbl->used = lvtbl->used->prev;
16137         vtable_free(tmp);
16138     }
16139     tmp = lvtbl->args;
16140     lvtbl->args = lvtbl->args->prev;
16141     vtable_free(tmp);
16142     tmp = lvtbl->vars;
16143     lvtbl->vars = lvtbl->vars->prev;
16144     vtable_free(tmp);
16145 }
16146 
16147 static void
16148 dyna_pop_gen(struct parser_params *parser, const struct vtable *lvargs)
16149 {
16150     while (lvtbl->args != lvargs) {
16151         dyna_pop_1(parser);
16152         if (!lvtbl->args) {
16153             struct local_vars *local = lvtbl->prev;
16154             xfree(lvtbl);
16155             lvtbl = local;
16156         }
16157     }
16158     dyna_pop_1(parser);
16159 }
16160 
16161 static int
16162 dyna_in_block_gen(struct parser_params *parser)
16163 {
16164     return POINTER_P(lvtbl->vars) && lvtbl->vars->prev != DVARS_TOPSCOPE;
16165 }
16166 
16167 static int
16168 dvar_defined_gen(struct parser_params *parser, ID id, int get)
16169 {
16170     struct vtable *vars, *args, *used;
16171     int i;
16172 
16173     args = lvtbl->args;
16174     vars = lvtbl->vars;
16175     used = lvtbl->used;
16176 
16177     while (POINTER_P(vars)) {
16178         if (vtable_included(args, id)) {
16179             return 1;
16180         }
16181         if ((i = vtable_included(vars, id)) != 0) {
16182             if (used) used->tbl[i-1] |= LVAR_USED;
16183             return 1;
16184         }
16185         args = args->prev;
16186         vars = vars->prev;
16187         if (get) used = 0;
16188         if (used) used = used->prev;
16189     }
16190 
16191     if (vars == DVARS_INHERIT) {
16192         return rb_dvar_defined(id);
16193     }
16194 
16195     return 0;
16196 }
16197 
16198 static int
16199 dvar_curr_gen(struct parser_params *parser, ID id)
16200 {
16201     return (vtable_included(lvtbl->args, id) ||
16202             vtable_included(lvtbl->vars, id));
16203 }
16204 
16205 #ifndef RIPPER
16206 static void
16207 reg_fragment_setenc_gen(struct parser_params* parser, VALUE str, int options)
16208 {
16209     int c = RE_OPTION_ENCODING_IDX(options);
16210 
16211     if (c) {
16212         int opt, idx;
16213         rb_char_to_option_kcode(c, &opt, &idx);
16214         if (idx != ENCODING_GET(str) &&
16215             rb_enc_str_coderange(str) != ENC_CODERANGE_7BIT) {
16216             goto error;
16217         }
16218         ENCODING_SET(str, idx);
16219     }
16220     else if (RE_OPTION_ENCODING_NONE(options)) {
16221         if (!ENCODING_IS_ASCII8BIT(str) &&
16222             rb_enc_str_coderange(str) != ENC_CODERANGE_7BIT) {
16223             c = 'n';
16224             goto error;
16225         }
16226         rb_enc_associate(str, rb_ascii8bit_encoding());
16227     }
16228     else if (current_enc == rb_usascii_encoding()) {
16229         if (rb_enc_str_coderange(str) != ENC_CODERANGE_7BIT) {
16230             /* raise in re.c */
16231             rb_enc_associate(str, rb_usascii_encoding());
16232         }
16233         else {
16234             rb_enc_associate(str, rb_ascii8bit_encoding());
16235         }
16236     }
16237     return;
16238 
16239   error:
16240     compile_error(PARSER_ARG
16241         "regexp encoding option '%c' differs from source encoding '%s'",
16242         c, rb_enc_name(rb_enc_get(str)));
16243 }
16244 
16245 static int
16246 reg_fragment_check_gen(struct parser_params* parser, VALUE str, int options)
16247 {
16248     VALUE err;
16249     reg_fragment_setenc(str, options);
16250     err = rb_reg_check_preprocess(str);
16251     if (err != Qnil) {
16252         err = rb_obj_as_string(err);
16253         compile_error(PARSER_ARG "%s", RSTRING_PTR(err));
16254         RB_GC_GUARD(err);
16255         return 0;
16256     }
16257     return 1;
16258 }
16259 
16260 typedef struct {
16261     struct parser_params* parser;
16262     rb_encoding *enc;
16263     NODE *succ_block;
16264     NODE *fail_block;
16265     int num;
16266 } reg_named_capture_assign_t;
16267 
16268 static int
16269 reg_named_capture_assign_iter(const OnigUChar *name, const OnigUChar *name_end,
16270           int back_num, int *back_refs, OnigRegex regex, void *arg0)
16271 {
16272     reg_named_capture_assign_t *arg = (reg_named_capture_assign_t*)arg0;
16273     struct parser_params* parser = arg->parser;
16274     rb_encoding *enc = arg->enc;
16275     long len = name_end - name;
16276     const char *s = (const char *)name;
16277     ID var;
16278 
16279     arg->num++;
16280 
16281     if (arg->succ_block == 0) {
16282         arg->succ_block = NEW_BEGIN(0);
16283         arg->fail_block = NEW_BEGIN(0);
16284     }
16285 
16286     if (!len || (*name != '_' && ISASCII(*name) && !rb_enc_islower(*name, enc)) ||
16287         (len < MAX_WORD_LENGTH && rb_reserved_word(s, (int)len)) ||
16288         !rb_enc_symname2_p(s, len, enc)) {
16289         return ST_CONTINUE;
16290     }
16291     var = rb_intern3(s, len, enc);
16292     if (dvar_defined(var) || local_id(var)) {
16293         rb_warningS("named capture conflicts a local variable - %s",
16294                     rb_id2name(var));
16295     }
16296     arg->succ_block = block_append(arg->succ_block,
16297         newline_node(node_assign(assignable(var,0),
16298             NEW_CALL(
16299               gettable(rb_intern("$~")),
16300               idAREF,
16301               NEW_LIST(NEW_LIT(ID2SYM(var))))
16302             )));
16303     arg->fail_block = block_append(arg->fail_block,
16304         newline_node(node_assign(assignable(var,0), NEW_LIT(Qnil))));
16305     return ST_CONTINUE;
16306 }
16307 
16308 static NODE *
16309 reg_named_capture_assign_gen(struct parser_params* parser, VALUE regexp, NODE *match)
16310 {
16311     reg_named_capture_assign_t arg;
16312 
16313     arg.parser = parser;
16314     arg.enc = rb_enc_get(regexp);
16315     arg.succ_block = 0;
16316     arg.fail_block = 0;
16317     arg.num = 0;
16318     onig_foreach_name(RREGEXP(regexp)->ptr, reg_named_capture_assign_iter, (void*)&arg);
16319 
16320     if (arg.num == 0)
16321         return match;
16322 
16323     return
16324         block_append(
16325             newline_node(match),
16326             NEW_IF(gettable(rb_intern("$~")),
16327                 block_append(
16328                     newline_node(arg.succ_block),
16329                     newline_node(
16330                         NEW_CALL(
16331                           gettable(rb_intern("$~")),
16332                           rb_intern("begin"),
16333                           NEW_LIST(NEW_LIT(INT2FIX(0)))))),
16334                 block_append(
16335                     newline_node(arg.fail_block),
16336                     newline_node(
16337                         NEW_LIT(Qnil)))));
16338 }
16339 
16340 static VALUE
16341 reg_compile_gen(struct parser_params* parser, VALUE str, int options)
16342 {
16343     VALUE re;
16344     VALUE err;
16345 
16346     reg_fragment_setenc(str, options);
16347     err = rb_errinfo();
16348     re = rb_reg_compile(str, options & RE_OPTION_MASK, ruby_sourcefile, ruby_sourceline);
16349     if (NIL_P(re)) {
16350         ID mesg = rb_intern("mesg");
16351         VALUE m = rb_attr_get(rb_errinfo(), mesg);
16352         rb_set_errinfo(err);
16353         if (!NIL_P(err)) {
16354             rb_str_append(rb_str_cat(rb_attr_get(err, mesg), "\n", 1), m);
16355         }
16356         else {
16357             compile_error(PARSER_ARG "%s", RSTRING_PTR(m));
16358         }
16359         return Qnil;
16360     }
16361     return re;
16362 }
16363 
16364 void
16365 rb_gc_mark_parser(void)
16366 {
16367 }
16368 
16369 NODE*
16370 rb_parser_append_print(VALUE vparser, NODE *node)
16371 {
16372     NODE *prelude = 0;
16373     NODE *scope = node;
16374     struct parser_params *parser;
16375 
16376     if (!node) return node;
16377 
16378     TypedData_Get_Struct(vparser, struct parser_params, &parser_data_type, parser);
16379 
16380     node = node->nd_body;
16381 
16382     if (nd_type(node) == NODE_PRELUDE) {
16383         prelude = node;
16384         node = node->nd_body;
16385     }
16386 
16387     node = block_append(node,
16388                         NEW_FCALL(rb_intern("print"),
16389                                   NEW_ARRAY(NEW_GVAR(rb_intern("$_")))));
16390     if (prelude) {
16391         prelude->nd_body = node;
16392         scope->nd_body = prelude;
16393     }
16394     else {
16395         scope->nd_body = node;
16396     }
16397 
16398     return scope;
16399 }
16400 
16401 NODE *
16402 rb_parser_while_loop(VALUE vparser, NODE *node, int chop, int split)
16403 {
16404     NODE *prelude = 0;
16405     NODE *scope = node;
16406     struct parser_params *parser;
16407 
16408     if (!node) return node;
16409 
16410     TypedData_Get_Struct(vparser, struct parser_params, &parser_data_type, parser);
16411 
16412     node = node->nd_body;
16413 
16414     if (nd_type(node) == NODE_PRELUDE) {
16415         prelude = node;
16416         node = node->nd_body;
16417     }
16418     if (split) {
16419         node = block_append(NEW_GASGN(rb_intern("$F"),
16420                                       NEW_CALL(NEW_GVAR(rb_intern("$_")),
16421                                                rb_intern("split"), 0)),
16422                             node);
16423     }
16424     if (chop) {
16425         node = block_append(NEW_CALL(NEW_GVAR(rb_intern("$_")),
16426                                      rb_intern("chop!"), 0), node);
16427     }
16428 
16429     node = NEW_OPT_N(node);
16430 
16431     if (prelude) {
16432         prelude->nd_body = node;
16433         scope->nd_body = prelude;
16434     }
16435     else {
16436         scope->nd_body = node;
16437     }
16438 
16439     return scope;
16440 }
16441 
16442 static const struct {
16443     ID token;
16444     const char *name;
16445 } op_tbl[] = {
16446     {tDOT2,     ".."},
16447     {tDOT3,     "..."},
16448     {tPOW,      "**"},
16449     {tDSTAR,    "**"},
16450     {tUPLUS,    "+@"},
16451     {tUMINUS,   "-@"},
16452     {tCMP,      "<=>"},
16453     {tGEQ,      ">="},
16454     {tLEQ,      "<="},
16455     {tEQ,       "=="},
16456     {tEQQ,      "==="},
16457     {tNEQ,      "!="},
16458     {tMATCH,    "=~"},
16459     {tNMATCH,   "!~"},
16460     {tAREF,     "[]"},
16461     {tASET,     "[]="},
16462     {tLSHFT,    "<<"},
16463     {tRSHFT,    ">>"},
16464     {tCOLON2,   "::"},
16465 };
16466 
16467 #define op_tbl_count numberof(op_tbl)
16468 
16469 #ifndef ENABLE_SELECTOR_NAMESPACE
16470 #define ENABLE_SELECTOR_NAMESPACE 0
16471 #endif
16472 
16473 static struct symbols {
16474     ID last_id;
16475     st_table *sym_id;
16476     st_table *id_str;
16477 #if ENABLE_SELECTOR_NAMESPACE
16478     st_table *ivar2_id;
16479     st_table *id_ivar2;
16480 #endif
16481     VALUE op_sym[tLAST_OP_ID];
16482 } global_symbols = {tLAST_TOKEN};
16483 
16484 static const struct st_hash_type symhash = {
16485     rb_str_hash_cmp,
16486     rb_str_hash,
16487 };
16488 
16489 #if ENABLE_SELECTOR_NAMESPACE
16490 struct ivar2_key {
16491     ID id;
16492     VALUE klass;
16493 };
16494 
16495 static int
16496 ivar2_cmp(struct ivar2_key *key1, struct ivar2_key *key2)
16497 {
16498     if (key1->id == key2->id && key1->klass == key2->klass) {
16499         return 0;
16500     }
16501     return 1;
16502 }
16503 
16504 static int
16505 ivar2_hash(struct ivar2_key *key)
16506 {
16507     return (key->id << 8) ^ (key->klass >> 2);
16508 }
16509 
16510 static const struct st_hash_type ivar2_hash_type = {
16511     ivar2_cmp,
16512     ivar2_hash,
16513 };
16514 #endif
16515 
16516 void
16517 Init_sym(void)
16518 {
16519     global_symbols.sym_id = st_init_table_with_size(&symhash, 1000);
16520     global_symbols.id_str = st_init_numtable_with_size(1000);
16521 #if ENABLE_SELECTOR_NAMESPACE
16522     global_symbols.ivar2_id = st_init_table_with_size(&ivar2_hash_type, 1000);
16523     global_symbols.id_ivar2 = st_init_numtable_with_size(1000);
16524 #endif
16525 
16526     (void)nodetype;
16527     (void)nodeline;
16528 #if PARSER_DEBUG
16529     (void)lex_state_name(-1);
16530 #endif
16531 
16532     Init_id();
16533 }
16534 
16535 void
16536 rb_gc_mark_symbols(void)
16537 {
16538     rb_mark_tbl(global_symbols.id_str);
16539     rb_gc_mark_locations(global_symbols.op_sym,
16540                          global_symbols.op_sym + numberof(global_symbols.op_sym));
16541 }
16542 #endif /* !RIPPER */
16543 
16544 static ID
16545 internal_id_gen(struct parser_params *parser)
16546 {
16547     ID id = (ID)vtable_size(lvtbl->args) + (ID)vtable_size(lvtbl->vars);
16548     id += ((tLAST_TOKEN - ID_INTERNAL) >> ID_SCOPE_SHIFT) + 1;
16549     return ID_INTERNAL | (id << ID_SCOPE_SHIFT);
16550 }
16551 
16552 #ifndef RIPPER
16553 static int
16554 is_special_global_name(const char *m, const char *e, rb_encoding *enc)
16555 {
16556     int mb = 0;
16557 
16558     if (m >= e) return 0;
16559     if (is_global_name_punct(*m)) {
16560         ++m;
16561     }
16562     else if (*m == '-') {
16563         ++m;
16564         if (m < e && is_identchar(m, e, enc)) {
16565             if (!ISASCII(*m)) mb = 1;
16566             m += rb_enc_mbclen(m, e, enc);
16567         }
16568     }
16569     else {
16570         if (!rb_enc_isdigit(*m, enc)) return 0;
16571         do {
16572             if (!ISASCII(*m)) mb = 1;
16573             ++m;
16574         } while (m < e && rb_enc_isdigit(*m, enc));
16575     }
16576     return m == e ? mb + 1 : 0;
16577 }
16578 
16579 int
16580 rb_symname_p(const char *name)
16581 {
16582     return rb_enc_symname_p(name, rb_ascii8bit_encoding());
16583 }
16584 
16585 int
16586 rb_enc_symname_p(const char *name, rb_encoding *enc)
16587 {
16588     return rb_enc_symname2_p(name, strlen(name), enc);
16589 }
16590 
16591 #define IDSET_ATTRSET_FOR_SYNTAX ((1U<<ID_LOCAL)|(1U<<ID_CONST))
16592 #define IDSET_ATTRSET_FOR_INTERN (~(~0U<<(1<<ID_SCOPE_SHIFT)) & ~(1U<<ID_ATTRSET))
16593 
16594 static int
16595 rb_enc_symname_type(const char *name, long len, rb_encoding *enc, unsigned int allowed_atttset)
16596 {
16597     const char *m = name;
16598     const char *e = m + len;
16599     int type = ID_JUNK;
16600 
16601     if (!m || len <= 0) return -1;
16602     switch (*m) {
16603       case '\0':
16604         return -1;
16605 
16606       case '$':
16607         type = ID_GLOBAL;
16608         if (is_special_global_name(++m, e, enc)) return type;
16609         goto id;
16610 
16611       case '@':
16612         type = ID_INSTANCE;
16613         if (*++m == '@') {
16614             ++m;
16615             type = ID_CLASS;
16616         }
16617         goto id;
16618 
16619       case '<':
16620         switch (*++m) {
16621           case '<': ++m; break;
16622           case '=': if (*++m == '>') ++m; break;
16623           default: break;
16624         }
16625         break;
16626 
16627       case '>':
16628         switch (*++m) {
16629           case '>': case '=': ++m; break;
16630         }
16631         break;
16632 
16633       case '=':
16634         switch (*++m) {
16635           case '~': ++m; break;
16636           case '=': if (*++m == '=') ++m; break;
16637           default: return -1;
16638         }
16639         break;
16640 
16641       case '*':
16642         if (*++m == '*') ++m;
16643         break;
16644 
16645       case '+': case '-':
16646         if (*++m == '@') ++m;
16647         break;
16648 
16649       case '|': case '^': case '&': case '/': case '%': case '~': case '`':
16650         ++m;
16651         break;
16652 
16653       case '[':
16654         if (*++m != ']') return -1;
16655         if (*++m == '=') ++m;
16656         break;
16657 
16658       case '!':
16659         if (len == 1) return ID_JUNK;
16660         switch (*++m) {
16661           case '=': case '~': ++m; break;
16662           default: return -1;
16663         }
16664         break;
16665 
16666       default:
16667         type = rb_enc_isupper(*m, enc) ? ID_CONST : ID_LOCAL;
16668       id:
16669         if (m >= e || (*m != '_' && !rb_enc_isalpha(*m, enc) && ISASCII(*m)))
16670             return -1;
16671         while (m < e && is_identchar(m, e, enc)) m += rb_enc_mbclen(m, e, enc);
16672         if (m >= e) break;
16673         switch (*m) {
16674           case '!': case '?':
16675             if (type == ID_GLOBAL || type == ID_CLASS || type == ID_INSTANCE) return -1;
16676             type = ID_JUNK;
16677             ++m;
16678             if (m + 1 < e || *m != '=') break;
16679             /* fall through */
16680           case '=':
16681             if (!(allowed_atttset & (1U << type))) return -1;
16682             type = ID_ATTRSET;
16683             ++m;
16684             break;
16685         }
16686         break;
16687     }
16688     return m == e ? type : -1;
16689 }
16690 
16691 int
16692 rb_enc_symname2_p(const char *name, long len, rb_encoding *enc)
16693 {
16694     return rb_enc_symname_type(name, len, enc, IDSET_ATTRSET_FOR_SYNTAX) != -1;
16695 }
16696 
16697 static int
16698 rb_str_symname_type(VALUE name, unsigned int allowed_atttset)
16699 {
16700     const char *ptr = StringValuePtr(name);
16701     long len = RSTRING_LEN(name);
16702     int type = rb_enc_symname_type(ptr, len, rb_enc_get(name), allowed_atttset);
16703     RB_GC_GUARD(name);
16704     return type;
16705 }
16706 
16707 static ID
16708 register_symid(ID id, const char *name, long len, rb_encoding *enc)
16709 {
16710     VALUE str = rb_enc_str_new(name, len, enc);
16711     return register_symid_str(id, str);
16712 }
16713 
16714 static ID
16715 register_symid_str(ID id, VALUE str)
16716 {
16717     OBJ_FREEZE(str);
16718     st_add_direct(global_symbols.sym_id, (st_data_t)str, id);
16719     st_add_direct(global_symbols.id_str, id, (st_data_t)str);
16720     return id;
16721 }
16722 
16723 static int
16724 sym_check_asciionly(VALUE str)
16725 {
16726     if (!rb_enc_asciicompat(rb_enc_get(str))) return FALSE;
16727     switch (rb_enc_str_coderange(str)) {
16728       case ENC_CODERANGE_BROKEN:
16729         rb_raise(rb_eEncodingError, "invalid encoding symbol");
16730       case ENC_CODERANGE_7BIT:
16731         return TRUE;
16732     }
16733     return FALSE;
16734 }
16735 
16736 /*
16737  * _str_ itself will be registered at the global symbol table.  _str_
16738  * can be modified before the registration, since the encoding will be
16739  * set to ASCII-8BIT if it is a special global name.
16740  */
16741 static ID intern_str(VALUE str);
16742 
16743 ID
16744 rb_intern3(const char *name, long len, rb_encoding *enc)
16745 {
16746     VALUE str;
16747     st_data_t data;
16748     struct RString fake_str;
16749     fake_str.basic.flags = T_STRING|RSTRING_NOEMBED;
16750     fake_str.basic.klass = rb_cString;
16751     fake_str.as.heap.len = len;
16752     fake_str.as.heap.ptr = (char *)name;
16753     fake_str.as.heap.aux.capa = len;
16754     str = (VALUE)&fake_str;
16755     rb_enc_associate(str, enc);
16756     OBJ_FREEZE(str);
16757 
16758     if (st_lookup(global_symbols.sym_id, str, &data))
16759         return (ID)data;
16760 
16761     str = rb_enc_str_new(name, len, enc); /* make true string */
16762     return intern_str(str);
16763 }
16764 
16765 static ID
16766 intern_str(VALUE str)
16767 {
16768     const char *name, *m, *e;
16769     long len, last;
16770     rb_encoding *enc, *symenc;
16771     unsigned char c;
16772     ID id;
16773     int mb;
16774 
16775     RSTRING_GETMEM(str, name, len);
16776     m = name;
16777     e = m + len;
16778     enc = rb_enc_get(str);
16779     symenc = enc;
16780 
16781     if (!len || (rb_cString && !rb_enc_asciicompat(enc))) {
16782       junk:
16783         id = ID_JUNK;
16784         goto new_id;
16785     }
16786     last = len-1;
16787     id = 0;
16788     switch (*m) {
16789       case '$':
16790         if (len < 2) goto junk;
16791         id |= ID_GLOBAL;
16792         if ((mb = is_special_global_name(++m, e, enc)) != 0) {
16793             if (!--mb) symenc = rb_usascii_encoding();
16794             goto new_id;
16795         }
16796         break;
16797       case '@':
16798         if (m[1] == '@') {
16799             if (len < 3) goto junk;
16800             m++;
16801             id |= ID_CLASS;
16802         }
16803         else {
16804             if (len < 2) goto junk;
16805             id |= ID_INSTANCE;
16806         }
16807         m++;
16808         break;
16809       default:
16810         c = m[0];
16811         if (c != '_' && rb_enc_isascii(c, enc) && rb_enc_ispunct(c, enc)) {
16812             /* operators */
16813             int i;
16814 
16815             if (len == 1) {
16816                 id = c;
16817                 goto id_register;
16818             }
16819             for (i = 0; i < op_tbl_count; i++) {
16820                 if (*op_tbl[i].name == *m &&
16821                     strcmp(op_tbl[i].name, m) == 0) {
16822                     id = op_tbl[i].token;
16823                     goto id_register;
16824                 }
16825             }
16826         }
16827         break;
16828     }
16829     if (name[last] == '=') {
16830         /* attribute assignment */
16831         if (last > 1 && name[last-1] == '=')
16832             goto junk;
16833         id = rb_intern3(name, last, enc);
16834         if (id > tLAST_OP_ID && !is_attrset_id(id)) {
16835             enc = rb_enc_get(rb_id2str(id));
16836             id = rb_id_attrset(id);
16837             goto id_register;
16838         }
16839         id = ID_ATTRSET;
16840     }
16841     else if (id == 0) {
16842         if (rb_enc_isupper(m[0], enc)) {
16843             id = ID_CONST;
16844         }
16845         else {
16846             id = ID_LOCAL;
16847         }
16848     }
16849     if (!rb_enc_isdigit(*m, enc)) {
16850         while (m <= name + last && is_identchar(m, e, enc)) {
16851             if (ISASCII(*m)) {
16852                 m++;
16853             }
16854             else {
16855                 m += rb_enc_mbclen(m, e, enc);
16856             }
16857         }
16858     }
16859     if (id != ID_ATTRSET && m - name < len) id = ID_JUNK;
16860     if (sym_check_asciionly(str)) symenc = rb_usascii_encoding();
16861   new_id:
16862     if (symenc != enc) rb_enc_associate(str, symenc);
16863     if (global_symbols.last_id >= ~(ID)0 >> (ID_SCOPE_SHIFT+RUBY_SPECIAL_SHIFT)) {
16864         if (len > 20) {
16865             rb_raise(rb_eRuntimeError, "symbol table overflow (symbol %.20s...)",
16866                      name);
16867         }
16868         else {
16869             rb_raise(rb_eRuntimeError, "symbol table overflow (symbol %.*s)",
16870                      (int)len, name);
16871         }
16872     }
16873     id |= ++global_symbols.last_id << ID_SCOPE_SHIFT;
16874   id_register:
16875     return register_symid_str(id, str);
16876 }
16877 
16878 ID
16879 rb_intern2(const char *name, long len)
16880 {
16881     return rb_intern3(name, len, rb_usascii_encoding());
16882 }
16883 
16884 #undef rb_intern
16885 ID
16886 rb_intern(const char *name)
16887 {
16888     return rb_intern2(name, strlen(name));
16889 }
16890 
16891 ID
16892 rb_intern_str(VALUE str)
16893 {
16894     st_data_t id;
16895 
16896     if (st_lookup(global_symbols.sym_id, str, &id))
16897         return (ID)id;
16898     return intern_str(rb_str_dup(str));
16899 }
16900 
16901 VALUE
16902 rb_id2str(ID id)
16903 {
16904     st_data_t data;
16905 
16906     if (id < tLAST_TOKEN) {
16907         int i = 0;
16908 
16909         if (id < INT_MAX && rb_ispunct((int)id)) {
16910             VALUE str = global_symbols.op_sym[i = (int)id];
16911             if (!str) {
16912                 char name[2];
16913                 name[0] = (char)id;
16914                 name[1] = 0;
16915                 str = rb_usascii_str_new(name, 1);
16916                 OBJ_FREEZE(str);
16917                 global_symbols.op_sym[i] = str;
16918             }
16919             return str;
16920         }
16921         for (i = 0; i < op_tbl_count; i++) {
16922             if (op_tbl[i].token == id) {
16923                 VALUE str = global_symbols.op_sym[i];
16924                 if (!str) {
16925                     str = rb_usascii_str_new2(op_tbl[i].name);
16926                     OBJ_FREEZE(str);
16927                     global_symbols.op_sym[i] = str;
16928                 }
16929                 return str;
16930             }
16931         }
16932     }
16933 
16934     if (st_lookup(global_symbols.id_str, id, &data)) {
16935         VALUE str = (VALUE)data;
16936         if (RBASIC(str)->klass == 0)
16937             RBASIC(str)->klass = rb_cString;
16938         return str;
16939     }
16940 
16941     if (is_attrset_id(id)) {
16942         ID id_stem = (id & ~ID_SCOPE_MASK);
16943         VALUE str;
16944 
16945         do {
16946             if (!!(str = rb_id2str(id_stem | ID_LOCAL))) break;
16947             if (!!(str = rb_id2str(id_stem | ID_CONST))) break;
16948             if (!!(str = rb_id2str(id_stem | ID_INSTANCE))) break;
16949             if (!!(str = rb_id2str(id_stem | ID_GLOBAL))) break;
16950             if (!!(str = rb_id2str(id_stem | ID_CLASS))) break;
16951             if (!!(str = rb_id2str(id_stem | ID_JUNK))) break;
16952             return 0;
16953         } while (0);
16954         str = rb_str_dup(str);
16955         rb_str_cat(str, "=", 1);
16956         register_symid_str(id, str);
16957         if (st_lookup(global_symbols.id_str, id, &data)) {
16958             VALUE str = (VALUE)data;
16959             if (RBASIC(str)->klass == 0)
16960                 RBASIC(str)->klass = rb_cString;
16961             return str;
16962         }
16963     }
16964     return 0;
16965 }
16966 
16967 const char *
16968 rb_id2name(ID id)
16969 {
16970     VALUE str = rb_id2str(id);
16971 
16972     if (!str) return 0;
16973     return RSTRING_PTR(str);
16974 }
16975 
16976 static int
16977 symbols_i(VALUE sym, ID value, VALUE ary)
16978 {
16979     rb_ary_push(ary, ID2SYM(value));
16980     return ST_CONTINUE;
16981 }
16982 
16983 /*
16984  *  call-seq:
16985  *     Symbol.all_symbols    => array
16986  *
16987  *  Returns an array of all the symbols currently in Ruby's symbol
16988  *  table.
16989  *
16990  *     Symbol.all_symbols.size    #=> 903
16991  *     Symbol.all_symbols[1,20]   #=> [:floor, :ARGV, :Binding, :symlink,
16992  *                                     :chown, :EOFError, :$;, :String,
16993  *                                     :LOCK_SH, :"setuid?", :$<,
16994  *                                     :default_proc, :compact, :extend,
16995  *                                     :Tms, :getwd, :$=, :ThreadGroup,
16996  *                                     :wait2, :$>]
16997  */
16998 
16999 VALUE
17000 rb_sym_all_symbols(void)
17001 {
17002     VALUE ary = rb_ary_new2(global_symbols.sym_id->num_entries);
17003 
17004     st_foreach(global_symbols.sym_id, symbols_i, ary);
17005     return ary;
17006 }
17007 
17008 int
17009 rb_is_const_id(ID id)
17010 {
17011     return is_const_id(id);
17012 }
17013 
17014 int
17015 rb_is_class_id(ID id)
17016 {
17017     return is_class_id(id);
17018 }
17019 
17020 int
17021 rb_is_global_id(ID id)
17022 {
17023     return is_global_id(id);
17024 }
17025 
17026 int
17027 rb_is_instance_id(ID id)
17028 {
17029     return is_instance_id(id);
17030 }
17031 
17032 int
17033 rb_is_attrset_id(ID id)
17034 {
17035     return is_attrset_id(id);
17036 }
17037 
17038 int
17039 rb_is_local_id(ID id)
17040 {
17041     return is_local_id(id);
17042 }
17043 
17044 int
17045 rb_is_junk_id(ID id)
17046 {
17047     return is_junk_id(id);
17048 }
17049 
17061 ID
17062 rb_check_id(volatile VALUE *namep)
17063 {
17064     st_data_t id;
17065     VALUE tmp;
17066     VALUE name = *namep;
17067 
17068     if (SYMBOL_P(name)) {
17069         return SYM2ID(name);
17070     }
17071     else if (!RB_TYPE_P(name, T_STRING)) {
17072         tmp = rb_check_string_type(name);
17073         if (NIL_P(tmp)) {
17074             tmp = rb_inspect(name);
17075             rb_raise(rb_eTypeError, "%s is not a symbol",
17076                      RSTRING_PTR(tmp));
17077         }
17078         name = tmp;
17079         *namep = name;
17080     }
17081 
17082     sym_check_asciionly(name);
17083 
17084     if (st_lookup(global_symbols.sym_id, (st_data_t)name, &id))
17085         return (ID)id;
17086 
17087     if (rb_is_attrset_name(name)) {
17088         struct RString fake_str;
17089         const VALUE localname = (VALUE)&fake_str;
17090         /* make local name by chopping '=' */
17091         fake_str.basic.flags = T_STRING|RSTRING_NOEMBED;
17092         fake_str.basic.klass = rb_cString;
17093         fake_str.as.heap.len = RSTRING_LEN(name) - 1;
17094         fake_str.as.heap.ptr = RSTRING_PTR(name);
17095         fake_str.as.heap.aux.capa = fake_str.as.heap.len;
17096         rb_enc_copy(localname, name);
17097         OBJ_FREEZE(localname);
17098 
17099         if (st_lookup(global_symbols.sym_id, (st_data_t)localname, &id)) {
17100             return rb_id_attrset((ID)id);
17101         }
17102         RB_GC_GUARD(name);
17103     }
17104 
17105     return (ID)0;
17106 }
17107 
17108 ID
17109 rb_check_id_cstr(const char *ptr, long len, rb_encoding *enc)
17110 {
17111     st_data_t id;
17112     struct RString fake_str;
17113     const VALUE name = (VALUE)&fake_str;
17114     fake_str.basic.flags = T_STRING|RSTRING_NOEMBED;
17115     fake_str.basic.klass = rb_cString;
17116     fake_str.as.heap.len = len;
17117     fake_str.as.heap.ptr = (char *)ptr;
17118     fake_str.as.heap.aux.capa = len;
17119     rb_enc_associate(name, enc);
17120 
17121     sym_check_asciionly(name);
17122 
17123     if (st_lookup(global_symbols.sym_id, (st_data_t)name, &id))
17124         return (ID)id;
17125 
17126     if (rb_is_attrset_name(name)) {
17127         fake_str.as.heap.len = len - 1;
17128         if (st_lookup(global_symbols.sym_id, (st_data_t)name, &id)) {
17129             return rb_id_attrset((ID)id);
17130         }
17131     }
17132 
17133     return (ID)0;
17134 }
17135 
17136 int
17137 rb_is_const_name(VALUE name)
17138 {
17139     return rb_str_symname_type(name, 0) == ID_CONST;
17140 }
17141 
17142 int
17143 rb_is_class_name(VALUE name)
17144 {
17145     return rb_str_symname_type(name, 0) == ID_CLASS;
17146 }
17147 
17148 int
17149 rb_is_global_name(VALUE name)
17150 {
17151     return rb_str_symname_type(name, 0) == ID_GLOBAL;
17152 }
17153 
17154 int
17155 rb_is_instance_name(VALUE name)
17156 {
17157     return rb_str_symname_type(name, 0) == ID_INSTANCE;
17158 }
17159 
17160 int
17161 rb_is_attrset_name(VALUE name)
17162 {
17163     return rb_str_symname_type(name, IDSET_ATTRSET_FOR_INTERN) == ID_ATTRSET;
17164 }
17165 
17166 int
17167 rb_is_local_name(VALUE name)
17168 {
17169     return rb_str_symname_type(name, 0) == ID_LOCAL;
17170 }
17171 
17172 int
17173 rb_is_method_name(VALUE name)
17174 {
17175     switch (rb_str_symname_type(name, 0)) {
17176       case ID_LOCAL: case ID_ATTRSET: case ID_JUNK:
17177         return TRUE;
17178     }
17179     return FALSE;
17180 }
17181 
17182 int
17183 rb_is_junk_name(VALUE name)
17184 {
17185     return rb_str_symname_type(name, IDSET_ATTRSET_FOR_SYNTAX) == -1;
17186 }
17187 
17188 #endif /* !RIPPER */
17189 
17190 static void
17191 parser_initialize(struct parser_params *parser)
17192 {
17193     parser->eofp = Qfalse;
17194 
17195     parser->parser_lex_strterm = 0;
17196     parser->parser_cond_stack = 0;
17197     parser->parser_cmdarg_stack = 0;
17198     parser->parser_class_nest = 0;
17199     parser->parser_paren_nest = 0;
17200     parser->parser_lpar_beg = 0;
17201     parser->parser_brace_nest = 0;
17202     parser->parser_in_single = 0;
17203     parser->parser_in_def = 0;
17204     parser->parser_in_defined = 0;
17205     parser->parser_compile_for_eval = 0;
17206     parser->parser_cur_mid = 0;
17207     parser->parser_tokenbuf = NULL;
17208     parser->parser_tokidx = 0;
17209     parser->parser_toksiz = 0;
17210     parser->parser_heredoc_end = 0;
17211     parser->parser_command_start = TRUE;
17212     parser->parser_deferred_nodes = 0;
17213     parser->parser_lex_pbeg = 0;
17214     parser->parser_lex_p = 0;
17215     parser->parser_lex_pend = 0;
17216     parser->parser_lvtbl = 0;
17217     parser->parser_ruby__end__seen = 0;
17218     parser->parser_ruby_sourcefile = 0;
17219 #ifndef RIPPER
17220     parser->is_ripper = 0;
17221     parser->parser_eval_tree_begin = 0;
17222     parser->parser_eval_tree = 0;
17223 #else
17224     parser->is_ripper = 1;
17225     parser->parser_ruby_sourcefile_string = Qnil;
17226     parser->delayed = Qnil;
17227 
17228     parser->result = Qnil;
17229     parser->parsing_thread = Qnil;
17230     parser->toplevel_p = TRUE;
17231 #endif
17232 #ifdef YYMALLOC
17233     parser->heap = NULL;
17234 #endif
17235     parser->enc = rb_utf8_encoding();
17236 }
17237 
17238 #ifdef RIPPER
17239 #define parser_mark ripper_parser_mark
17240 #define parser_free ripper_parser_free
17241 #endif
17242 
17243 static void
17244 parser_mark(void *ptr)
17245 {
17246     struct parser_params *p = (struct parser_params*)ptr;
17247 
17248     rb_gc_mark((VALUE)p->parser_lex_strterm);
17249     rb_gc_mark((VALUE)p->parser_deferred_nodes);
17250     rb_gc_mark(p->parser_lex_input);
17251     rb_gc_mark(p->parser_lex_lastline);
17252     rb_gc_mark(p->parser_lex_nextline);
17253 #ifndef RIPPER
17254     rb_gc_mark((VALUE)p->parser_eval_tree_begin) ;
17255     rb_gc_mark((VALUE)p->parser_eval_tree) ;
17256     rb_gc_mark(p->debug_lines);
17257 #else
17258     rb_gc_mark(p->parser_ruby_sourcefile_string);
17259     rb_gc_mark(p->delayed);
17260     rb_gc_mark(p->value);
17261     rb_gc_mark(p->result);
17262     rb_gc_mark(p->parsing_thread);
17263 #endif
17264 #ifdef YYMALLOC
17265     rb_gc_mark((VALUE)p->heap);
17266 #endif
17267 }
17268 
17269 static void
17270 parser_free(void *ptr)
17271 {
17272     struct parser_params *p = (struct parser_params*)ptr;
17273     struct local_vars *local, *prev;
17274 
17275     if (p->parser_tokenbuf) {
17276         xfree(p->parser_tokenbuf);
17277     }
17278     for (local = p->parser_lvtbl; local; local = prev) {
17279         if (local->vars) xfree(local->vars);
17280         prev = local->prev;
17281         xfree(local);
17282     }
17283 #ifndef RIPPER
17284     xfree(p->parser_ruby_sourcefile);
17285 #endif
17286     xfree(p);
17287 }
17288 
17289 static size_t
17290 parser_memsize(const void *ptr)
17291 {
17292     struct parser_params *p = (struct parser_params*)ptr;
17293     struct local_vars *local;
17294     size_t size = sizeof(*p);
17295 
17296     if (!ptr) return 0;
17297     size += p->parser_toksiz;
17298     for (local = p->parser_lvtbl; local; local = local->prev) {
17299         size += sizeof(*local);
17300         if (local->vars) size += local->vars->capa * sizeof(ID);
17301     }
17302 #ifndef RIPPER
17303     if (p->parser_ruby_sourcefile) {
17304         size += strlen(p->parser_ruby_sourcefile) + 1;
17305     }
17306 #endif
17307     return size;
17308 }
17309 
17310 static
17311 #ifndef RIPPER
17312 const
17313 #endif
17314 rb_data_type_t parser_data_type = {
17315     "parser",
17316     {
17317         parser_mark,
17318         parser_free,
17319         parser_memsize,
17320     },
17321 };
17322 
17323 #ifndef RIPPER
17324 #undef rb_reserved_word
17325 
17326 const struct kwtable *
17327 rb_reserved_word(const char *str, unsigned int len)
17328 {
17329     return reserved_word(str, len);
17330 }
17331 
17332 static struct parser_params *
17333 parser_new(void)
17334 {
17335     struct parser_params *p;
17336 
17337     p = ALLOC_N(struct parser_params, 1);
17338     MEMZERO(p, struct parser_params, 1);
17339     parser_initialize(p);
17340     return p;
17341 }
17342 
17343 VALUE
17344 rb_parser_new(void)
17345 {
17346     struct parser_params *p = parser_new();
17347 
17348     return TypedData_Wrap_Struct(0, &parser_data_type, p);
17349 }
17350 
17351 /*
17352  *  call-seq:
17353  *    ripper#end_seen?   -> Boolean
17354  *
17355  *  Return true if parsed source ended by +\_\_END\_\_+.
17356  */
17357 VALUE
17358 rb_parser_end_seen_p(VALUE vparser)
17359 {
17360     struct parser_params *parser;
17361 
17362     TypedData_Get_Struct(vparser, struct parser_params, &parser_data_type, parser);
17363     return ruby__end__seen ? Qtrue : Qfalse;
17364 }
17365 
17366 /*
17367  *  call-seq:
17368  *    ripper#encoding   -> encoding
17369  *
17370  *  Return encoding of the source.
17371  */
17372 VALUE
17373 rb_parser_encoding(VALUE vparser)
17374 {
17375     struct parser_params *parser;
17376 
17377     TypedData_Get_Struct(vparser, struct parser_params, &parser_data_type, parser);
17378     return rb_enc_from_encoding(current_enc);
17379 }
17380 
17381 /*
17382  *  call-seq:
17383  *    ripper.yydebug   -> true or false
17384  *
17385  *  Get yydebug.
17386  */
17387 VALUE
17388 rb_parser_get_yydebug(VALUE self)
17389 {
17390     struct parser_params *parser;
17391 
17392     TypedData_Get_Struct(self, struct parser_params, &parser_data_type, parser);
17393     return yydebug ? Qtrue : Qfalse;
17394 }
17395 
17396 /*
17397  *  call-seq:
17398  *    ripper.yydebug = flag
17399  *
17400  *  Set yydebug.
17401  */
17402 VALUE
17403 rb_parser_set_yydebug(VALUE self, VALUE flag)
17404 {
17405     struct parser_params *parser;
17406 
17407     TypedData_Get_Struct(self, struct parser_params, &parser_data_type, parser);
17408     yydebug = RTEST(flag);
17409     return flag;
17410 }
17411 
17412 #ifdef YYMALLOC
17413 #define HEAPCNT(n, size) ((n) * (size) / sizeof(YYSTYPE))
17414 #define NEWHEAP() rb_node_newnode(NODE_ALLOCA, 0, (VALUE)parser->heap, 0)
17415 #define ADD2HEAP(n, c, p) ((parser->heap = (n))->u1.node = (p), \
17416                            (n)->u3.cnt = (c), (p))
17417 
17418 void *
17419 rb_parser_malloc(struct parser_params *parser, size_t size)
17420 {
17421     size_t cnt = HEAPCNT(1, size);
17422     NODE *n = NEWHEAP();
17423     void *ptr = xmalloc(size);
17424 
17425     return ADD2HEAP(n, cnt, ptr);
17426 }
17427 
17428 void *
17429 rb_parser_calloc(struct parser_params *parser, size_t nelem, size_t size)
17430 {
17431     size_t cnt = HEAPCNT(nelem, size);
17432     NODE *n = NEWHEAP();
17433     void *ptr = xcalloc(nelem, size);
17434 
17435     return ADD2HEAP(n, cnt, ptr);
17436 }
17437 
17438 void *
17439 rb_parser_realloc(struct parser_params *parser, void *ptr, size_t size)
17440 {
17441     NODE *n;
17442     size_t cnt = HEAPCNT(1, size);
17443 
17444     if (ptr && (n = parser->heap) != NULL) {
17445         do {
17446             if (n->u1.node == ptr) {
17447                 n->u1.node = ptr = xrealloc(ptr, size);
17448                 if (n->u3.cnt) n->u3.cnt = cnt;
17449                 return ptr;
17450             }
17451         } while ((n = n->u2.node) != NULL);
17452     }
17453     n = NEWHEAP();
17454     ptr = xrealloc(ptr, size);
17455     return ADD2HEAP(n, cnt, ptr);
17456 }
17457 
17458 void
17459 rb_parser_free(struct parser_params *parser, void *ptr)
17460 {
17461     NODE **prev = &parser->heap, *n;
17462 
17463     while ((n = *prev) != NULL) {
17464         if (n->u1.node == ptr) {
17465             *prev = n->u2.node;
17466             rb_gc_force_recycle((VALUE)n);
17467             break;
17468         }
17469         prev = &n->u2.node;
17470     }
17471     xfree(ptr);
17472 }
17473 #endif
17474 #endif
17475 
17476 #ifdef RIPPER
17477 #ifdef RIPPER_DEBUG
17478 extern int rb_is_pointer_to_heap(VALUE);
17479 
17480 /* :nodoc: */
17481 static VALUE
17482 ripper_validate_object(VALUE self, VALUE x)
17483 {
17484     if (x == Qfalse) return x;
17485     if (x == Qtrue) return x;
17486     if (x == Qnil) return x;
17487     if (x == Qundef)
17488         rb_raise(rb_eArgError, "Qundef given");
17489     if (FIXNUM_P(x)) return x;
17490     if (SYMBOL_P(x)) return x;
17491     if (!rb_is_pointer_to_heap(x))
17492         rb_raise(rb_eArgError, "invalid pointer: %p", x);
17493     switch (TYPE(x)) {
17494       case T_STRING:
17495       case T_OBJECT:
17496       case T_ARRAY:
17497       case T_BIGNUM:
17498       case T_FLOAT:
17499         return x;
17500       case T_NODE:
17501         if (nd_type(x) != NODE_LASGN) {
17502             rb_raise(rb_eArgError, "NODE given: %p", x);
17503         }
17504         return ((NODE *)x)->nd_rval;
17505       default:
17506         rb_raise(rb_eArgError, "wrong type of ruby object: %p (%s)",
17507                  x, rb_obj_classname(x));
17508     }
17509     return x;
17510 }
17511 #endif
17512 
17513 #define validate(x) ((x) = get_value(x))
17514 
17515 static VALUE
17516 ripper_dispatch0(struct parser_params *parser, ID mid)
17517 {
17518     return rb_funcall(parser->value, mid, 0);
17519 }
17520 
17521 static VALUE
17522 ripper_dispatch1(struct parser_params *parser, ID mid, VALUE a)
17523 {
17524     validate(a);
17525     return rb_funcall(parser->value, mid, 1, a);
17526 }
17527 
17528 static VALUE
17529 ripper_dispatch2(struct parser_params *parser, ID mid, VALUE a, VALUE b)
17530 {
17531     validate(a);
17532     validate(b);
17533     return rb_funcall(parser->value, mid, 2, a, b);
17534 }
17535 
17536 static VALUE
17537 ripper_dispatch3(struct parser_params *parser, ID mid, VALUE a, VALUE b, VALUE c)
17538 {
17539     validate(a);
17540     validate(b);
17541     validate(c);
17542     return rb_funcall(parser->value, mid, 3, a, b, c);
17543 }
17544 
17545 static VALUE
17546 ripper_dispatch4(struct parser_params *parser, ID mid, VALUE a, VALUE b, VALUE c, VALUE d)
17547 {
17548     validate(a);
17549     validate(b);
17550     validate(c);
17551     validate(d);
17552     return rb_funcall(parser->value, mid, 4, a, b, c, d);
17553 }
17554 
17555 static VALUE
17556 ripper_dispatch5(struct parser_params *parser, ID mid, VALUE a, VALUE b, VALUE c, VALUE d, VALUE e)
17557 {
17558     validate(a);
17559     validate(b);
17560     validate(c);
17561     validate(d);
17562     validate(e);
17563     return rb_funcall(parser->value, mid, 5, a, b, c, d, e);
17564 }
17565 
17566 static VALUE
17567 ripper_dispatch7(struct parser_params *parser, ID mid, VALUE a, VALUE b, VALUE c, VALUE d, VALUE e, VALUE f, VALUE g)
17568 {
17569     validate(a);
17570     validate(b);
17571     validate(c);
17572     validate(d);
17573     validate(e);
17574     validate(f);
17575     validate(g);
17576     return rb_funcall(parser->value, mid, 7, a, b, c, d, e, f, g);
17577 }
17578 
17579 static const struct kw_assoc {
17580     ID id;
17581     const char *name;
17582 } keyword_to_name[] = {
17583     {keyword_class,     "class"},
17584     {keyword_module,    "module"},
17585     {keyword_def,       "def"},
17586     {keyword_undef,     "undef"},
17587     {keyword_begin,     "begin"},
17588     {keyword_rescue,    "rescue"},
17589     {keyword_ensure,    "ensure"},
17590     {keyword_end,       "end"},
17591     {keyword_if,        "if"},
17592     {keyword_unless,    "unless"},
17593     {keyword_then,      "then"},
17594     {keyword_elsif,     "elsif"},
17595     {keyword_else,      "else"},
17596     {keyword_case,      "case"},
17597     {keyword_when,      "when"},
17598     {keyword_while,     "while"},
17599     {keyword_until,     "until"},
17600     {keyword_for,       "for"},
17601     {keyword_break,     "break"},
17602     {keyword_next,      "next"},
17603     {keyword_redo,      "redo"},
17604     {keyword_retry,     "retry"},
17605     {keyword_in,        "in"},
17606     {keyword_do,        "do"},
17607     {keyword_do_cond,   "do"},
17608     {keyword_do_block,  "do"},
17609     {keyword_return,    "return"},
17610     {keyword_yield,     "yield"},
17611     {keyword_super,     "super"},
17612     {keyword_self,      "self"},
17613     {keyword_nil,       "nil"},
17614     {keyword_true,      "true"},
17615     {keyword_false,     "false"},
17616     {keyword_and,       "and"},
17617     {keyword_or,        "or"},
17618     {keyword_not,       "not"},
17619     {modifier_if,       "if"},
17620     {modifier_unless,   "unless"},
17621     {modifier_while,    "while"},
17622     {modifier_until,    "until"},
17623     {modifier_rescue,   "rescue"},
17624     {keyword_alias,     "alias"},
17625     {keyword_defined,   "defined?"},
17626     {keyword_BEGIN,     "BEGIN"},
17627     {keyword_END,       "END"},
17628     {keyword__LINE__,   "__LINE__"},
17629     {keyword__FILE__,   "__FILE__"},
17630     {keyword__ENCODING__, "__ENCODING__"},
17631     {0, NULL}
17632 };
17633 
17634 static const char*
17635 keyword_id_to_str(ID id)
17636 {
17637     const struct kw_assoc *a;
17638 
17639     for (a = keyword_to_name; a->id; a++) {
17640         if (a->id == id)
17641             return a->name;
17642     }
17643     return NULL;
17644 }
17645 
17646 #undef ripper_id2sym
17647 static VALUE
17648 ripper_id2sym(ID id)
17649 {
17650     const char *name;
17651     char buf[8];
17652 
17653     if (id <= 256) {
17654         buf[0] = (char)id;
17655         buf[1] = '\0';
17656         return ID2SYM(rb_intern2(buf, 1));
17657     }
17658     if ((name = keyword_id_to_str(id))) {
17659         return ID2SYM(rb_intern(name));
17660     }
17661     switch (id) {
17662       case tOROP:
17663         name = "||";
17664         break;
17665       case tANDOP:
17666         name = "&&";
17667         break;
17668       default:
17669         name = rb_id2name(id);
17670         if (!name) {
17671             rb_bug("cannot convert ID to string: %ld", (unsigned long)id);
17672         }
17673         return ID2SYM(id);
17674     }
17675     return ID2SYM(rb_intern(name));
17676 }
17677 
17678 static ID
17679 ripper_get_id(VALUE v)
17680 {
17681     NODE *nd;
17682     if (!RB_TYPE_P(v, T_NODE)) return 0;
17683     nd = (NODE *)v;
17684     if (nd_type(nd) != NODE_LASGN) return 0;
17685     return nd->nd_vid;
17686 }
17687 
17688 static VALUE
17689 ripper_get_value(VALUE v)
17690 {
17691     NODE *nd;
17692     if (v == Qundef) return Qnil;
17693     if (!RB_TYPE_P(v, T_NODE)) return v;
17694     nd = (NODE *)v;
17695     if (nd_type(nd) != NODE_LASGN) return Qnil;
17696     return nd->nd_rval;
17697 }
17698 
17699 static void
17700 ripper_compile_error(struct parser_params *parser, const char *fmt, ...)
17701 {
17702     VALUE str;
17703     va_list args;
17704 
17705     va_start(args, fmt);
17706     str = rb_vsprintf(fmt, args);
17707     va_end(args);
17708     rb_funcall(parser->value, rb_intern("compile_error"), 1, str);
17709 }
17710 
17711 static void
17712 ripper_warn0(struct parser_params *parser, const char *fmt)
17713 {
17714     rb_funcall(parser->value, rb_intern("warn"), 1, STR_NEW2(fmt));
17715 }
17716 
17717 static void
17718 ripper_warnI(struct parser_params *parser, const char *fmt, int a)
17719 {
17720     rb_funcall(parser->value, rb_intern("warn"), 2,
17721                STR_NEW2(fmt), INT2NUM(a));
17722 }
17723 
17724 static void
17725 ripper_warnS(struct parser_params *parser, const char *fmt, const char *str)
17726 {
17727     rb_funcall(parser->value, rb_intern("warn"), 2,
17728                STR_NEW2(fmt), STR_NEW2(str));
17729 }
17730 
17731 static void
17732 ripper_warning0(struct parser_params *parser, const char *fmt)
17733 {
17734     rb_funcall(parser->value, rb_intern("warning"), 1, STR_NEW2(fmt));
17735 }
17736 
17737 static void
17738 ripper_warningS(struct parser_params *parser, const char *fmt, const char *str)
17739 {
17740     rb_funcall(parser->value, rb_intern("warning"), 2,
17741                STR_NEW2(fmt), STR_NEW2(str));
17742 }
17743 
17744 static VALUE
17745 ripper_lex_get_generic(struct parser_params *parser, VALUE src)
17746 {
17747     return rb_io_gets(src);
17748 }
17749 
17750 static VALUE
17751 ripper_s_allocate(VALUE klass)
17752 {
17753     struct parser_params *p;
17754     VALUE self;
17755 
17756     p = ALLOC_N(struct parser_params, 1);
17757     MEMZERO(p, struct parser_params, 1);
17758     self = TypedData_Wrap_Struct(klass, &parser_data_type, p);
17759     p->value = self;
17760     return self;
17761 }
17762 
17763 #define ripper_initialized_p(r) ((r)->parser_lex_input != 0)
17764 
17765 /*
17766  *  call-seq:
17767  *    Ripper.new(src, filename="(ripper)", lineno=1) -> ripper
17768  *
17769  *  Create a new Ripper object.
17770  *  _src_ must be a String, an IO, or an Object which has #gets method.
17771  *
17772  *  This method does not starts parsing.
17773  *  See also Ripper#parse and Ripper.parse.
17774  */
17775 static VALUE
17776 ripper_initialize(int argc, VALUE *argv, VALUE self)
17777 {
17778     struct parser_params *parser;
17779     VALUE src, fname, lineno;
17780 
17781     TypedData_Get_Struct(self, struct parser_params, &parser_data_type, parser);
17782     rb_scan_args(argc, argv, "12", &src, &fname, &lineno);
17783     if (RB_TYPE_P(src, T_FILE)) {
17784         parser->parser_lex_gets = ripper_lex_get_generic;
17785     }
17786     else {
17787         StringValue(src);
17788         parser->parser_lex_gets = lex_get_str;
17789     }
17790     parser->parser_lex_input = src;
17791     parser->eofp = Qfalse;
17792     if (NIL_P(fname)) {
17793         fname = STR_NEW2("(ripper)");
17794     }
17795     else {
17796         StringValue(fname);
17797     }
17798     parser_initialize(parser);
17799 
17800     parser->parser_ruby_sourcefile_string = fname;
17801     parser->parser_ruby_sourcefile = RSTRING_PTR(fname);
17802     parser->parser_ruby_sourceline = NIL_P(lineno) ? 0 : NUM2INT(lineno) - 1;
17803 
17804     return Qnil;
17805 }
17806 
17807 struct ripper_args {
17808     struct parser_params *parser;
17809     int argc;
17810     VALUE *argv;
17811 };
17812 
17813 static VALUE
17814 ripper_parse0(VALUE parser_v)
17815 {
17816     struct parser_params *parser;
17817 
17818     TypedData_Get_Struct(parser_v, struct parser_params, &parser_data_type, parser);
17819     parser_prepare(parser);
17820     ripper_yyparse((void*)parser);
17821     return parser->result;
17822 }
17823 
17824 static VALUE
17825 ripper_ensure(VALUE parser_v)
17826 {
17827     struct parser_params *parser;
17828 
17829     TypedData_Get_Struct(parser_v, struct parser_params, &parser_data_type, parser);
17830     parser->parsing_thread = Qnil;
17831     return Qnil;
17832 }
17833 
17834 /*
17835  *  call-seq:
17836  *    ripper#parse
17837  *
17838  *  Start parsing and returns the value of the root action.
17839  */
17840 static VALUE
17841 ripper_parse(VALUE self)
17842 {
17843     struct parser_params *parser;
17844 
17845     TypedData_Get_Struct(self, struct parser_params, &parser_data_type, parser);
17846     if (!ripper_initialized_p(parser)) {
17847         rb_raise(rb_eArgError, "method called for uninitialized object");
17848     }
17849     if (!NIL_P(parser->parsing_thread)) {
17850         if (parser->parsing_thread == rb_thread_current())
17851             rb_raise(rb_eArgError, "Ripper#parse is not reentrant");
17852         else
17853             rb_raise(rb_eArgError, "Ripper#parse is not multithread-safe");
17854     }
17855     parser->parsing_thread = rb_thread_current();
17856     rb_ensure(ripper_parse0, self, ripper_ensure, self);
17857 
17858     return parser->result;
17859 }
17860 
17861 /*
17862  *  call-seq:
17863  *    ripper#column   -> Integer
17864  *
17865  *  Return column number of current parsing line.
17866  *  This number starts from 0.
17867  */
17868 static VALUE
17869 ripper_column(VALUE self)
17870 {
17871     struct parser_params *parser;
17872     long col;
17873 
17874     TypedData_Get_Struct(self, struct parser_params, &parser_data_type, parser);
17875     if (!ripper_initialized_p(parser)) {
17876         rb_raise(rb_eArgError, "method called for uninitialized object");
17877     }
17878     if (NIL_P(parser->parsing_thread)) return Qnil;
17879     col = parser->tokp - parser->parser_lex_pbeg;
17880     return LONG2NUM(col);
17881 }
17882 
17883 /*
17884  *  call-seq:
17885  *    ripper#filename   -> String
17886  *
17887  *  Return current parsing filename.
17888  */
17889 static VALUE
17890 ripper_filename(VALUE self)
17891 {
17892     struct parser_params *parser;
17893 
17894     TypedData_Get_Struct(self, struct parser_params, &parser_data_type, parser);
17895     if (!ripper_initialized_p(parser)) {
17896         rb_raise(rb_eArgError, "method called for uninitialized object");
17897     }
17898     return parser->parser_ruby_sourcefile_string;
17899 }
17900 
17901 /*
17902  *  call-seq:
17903  *    ripper#lineno   -> Integer
17904  *
17905  *  Return line number of current parsing line.
17906  *  This number starts from 1.
17907  */
17908 static VALUE
17909 ripper_lineno(VALUE self)
17910 {
17911     struct parser_params *parser;
17912 
17913     TypedData_Get_Struct(self, struct parser_params, &parser_data_type, parser);
17914     if (!ripper_initialized_p(parser)) {
17915         rb_raise(rb_eArgError, "method called for uninitialized object");
17916     }
17917     if (NIL_P(parser->parsing_thread)) return Qnil;
17918     return INT2NUM(parser->parser_ruby_sourceline);
17919 }
17920 
17921 #ifdef RIPPER_DEBUG
17922 /* :nodoc: */
17923 static VALUE
17924 ripper_assert_Qundef(VALUE self, VALUE obj, VALUE msg)
17925 {
17926     StringValue(msg);
17927     if (obj == Qundef) {
17928         rb_raise(rb_eArgError, "%s", RSTRING_PTR(msg));
17929     }
17930     return Qnil;
17931 }
17932 
17933 /* :nodoc: */
17934 static VALUE
17935 ripper_value(VALUE self, VALUE obj)
17936 {
17937     return ULONG2NUM(obj);
17938 }
17939 #endif
17940 
17941 
17942 void
17943 Init_ripper(void)
17944 {
17945     parser_data_type.parent = RTYPEDDATA_TYPE(rb_parser_new());
17946 
17947     ripper_init_eventids1();
17948     ripper_init_eventids2();
17949     /* ensure existing in symbol table */
17950     (void)rb_intern("||");
17951     (void)rb_intern("&&");
17952 
17953     InitVM(ripper);
17954 }
17955 
17956 void
17957 InitVM_ripper(void)
17958 {
17959     VALUE Ripper;
17960 
17961     Ripper = rb_define_class("Ripper", rb_cObject);
17962     rb_define_const(Ripper, "Version", rb_usascii_str_new2(RIPPER_VERSION));
17963     rb_define_alloc_func(Ripper, ripper_s_allocate);
17964     rb_define_method(Ripper, "initialize", ripper_initialize, -1);
17965     rb_define_method(Ripper, "parse", ripper_parse, 0);
17966     rb_define_method(Ripper, "column", ripper_column, 0);
17967     rb_define_method(Ripper, "filename", ripper_filename, 0);
17968     rb_define_method(Ripper, "lineno", ripper_lineno, 0);
17969     rb_define_method(Ripper, "end_seen?", rb_parser_end_seen_p, 0);
17970     rb_define_method(Ripper, "encoding", rb_parser_encoding, 0);
17971     rb_define_method(Ripper, "yydebug", rb_parser_get_yydebug, 0);
17972     rb_define_method(Ripper, "yydebug=", rb_parser_set_yydebug, 1);
17973 #ifdef RIPPER_DEBUG
17974     rb_define_method(rb_mKernel, "assert_Qundef", ripper_assert_Qundef, 2);
17975     rb_define_method(rb_mKernel, "rawVALUE", ripper_value, 1);
17976     rb_define_method(rb_mKernel, "validate_object", ripper_validate_object, 1);
17977 #endif
17978 
17979     ripper_init_eventids1_table(Ripper);
17980     ripper_init_eventids2_table(Ripper);
17981 
17982 # if 0
17983     /* Hack to let RDoc document SCRIPT_LINES__ */
17984 
17985     /*
17986      * When a Hash is assigned to +SCRIPT_LINES__+ the contents of files loaded
17987      * after the assignment will be added as an Array of lines with the file
17988      * name as the key.
17989      */
17990     rb_define_global_const("SCRIPT_LINES__", Qnil);
17991 #endif
17992 
17993 }
17994 #endif /* RIPPER */
17995 
17996