Ruby  2.0.0p451(2014-02-24revision45167)
ext/ripper/ripper.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 "ripper.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 1
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 "ripper.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 "ripper.y"
05220     {
05221                         lex_state = EXPR_BEG;
05222 #if 0
05223                         local_push(compile_for_eval || rb_parse_in_main());
05224 #endif
05225                         local_push(0);
05226 
05227                     }
05228     break;
05229 
05230   case 3:
05231 
05232 /* Line 1806 of yacc.c  */
05233 #line 863 "ripper.y"
05234     {
05235 #if 0
05236                         if ((yyvsp[(2) - (2)].val) && !compile_for_eval) {
05237                             /* last expression should not be void */
05238                             if (nd_type((yyvsp[(2) - (2)].val)) != NODE_BLOCK) void_expr((yyvsp[(2) - (2)].val));
05239                             else {
05240                                 NODE *node = (yyvsp[(2) - (2)].val);
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)].val)));
05248 #endif
05249                         (yyval.val) = (yyvsp[(2) - (2)].val);
05250                         parser->result = dispatch1(program, (yyval.val));
05251 
05252                         local_pop();
05253                     }
05254     break;
05255 
05256   case 4:
05257 
05258 /* Line 1806 of yacc.c  */
05259 #line 886 "ripper.y"
05260     {
05261 #if 0
05262                         void_stmts((yyvsp[(1) - (2)].val));
05263                         fixup_nodes(&deferred_nodes);
05264 #endif
05265 
05266                         (yyval.val) = (yyvsp[(1) - (2)].val);
05267                     }
05268     break;
05269 
05270   case 5:
05271 
05272 /* Line 1806 of yacc.c  */
05273 #line 897 "ripper.y"
05274     {
05275 #if 0
05276                         (yyval.val) = NEW_BEGIN(0);
05277 #endif
05278                         (yyval.val) = 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 "ripper.y"
05288     {
05289 #if 0
05290                         (yyval.val) = newline_node((yyvsp[(1) - (1)].val));
05291 #endif
05292                         (yyval.val) = dispatch2(stmts_add, dispatch0(stmts_new), (yyvsp[(1) - (1)].val));
05293 
05294                     }
05295     break;
05296 
05297   case 7:
05298 
05299 /* Line 1806 of yacc.c  */
05300 #line 914 "ripper.y"
05301     {
05302 #if 0
05303                         (yyval.val) = block_append((yyvsp[(1) - (3)].val), newline_node((yyvsp[(3) - (3)].val)));
05304 #endif
05305                         (yyval.val) = dispatch2(stmts_add, (yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
05306 
05307                     }
05308     break;
05309 
05310   case 8:
05311 
05312 /* Line 1806 of yacc.c  */
05313 #line 922 "ripper.y"
05314     {
05315                         (yyval.val) = remove_begin((yyvsp[(2) - (2)].val));
05316                     }
05317     break;
05318 
05319   case 10:
05320 
05321 /* Line 1806 of yacc.c  */
05322 #line 929 "ripper.y"
05323     {
05324 #if 0
05325                         /* local_push(0); */
05326 #endif
05327 
05328                     }
05329     break;
05330 
05331   case 11:
05332 
05333 /* Line 1806 of yacc.c  */
05334 #line 936 "ripper.y"
05335     {
05336 #if 0
05337                         ruby_eval_tree_begin = block_append(ruby_eval_tree_begin,
05338                                                             (yyvsp[(4) - (5)].val));
05339                         /* NEW_PREEXE($4)); */
05340                         /* local_pop(); */
05341                         (yyval.val) = NEW_BEGIN(0);
05342 #endif
05343                         (yyval.val) = dispatch1(BEGIN, (yyvsp[(4) - (5)].val));
05344 
05345                     }
05346     break;
05347 
05348   case 12:
05349 
05350 /* Line 1806 of yacc.c  */
05351 #line 953 "ripper.y"
05352     {
05353 #if 0
05354                         (yyval.val) = (yyvsp[(1) - (4)].val);
05355                         if ((yyvsp[(2) - (4)].val)) {
05356                             (yyval.val) = NEW_RESCUE((yyvsp[(1) - (4)].val), (yyvsp[(2) - (4)].val), (yyvsp[(3) - (4)].val));
05357                         }
05358                         else if ((yyvsp[(3) - (4)].val)) {
05359                             rb_warn0("else without rescue is useless");
05360                             (yyval.val) = block_append((yyval.val), (yyvsp[(3) - (4)].val));
05361                         }
05362                         if ((yyvsp[(4) - (4)].val)) {
05363                             if ((yyval.val)) {
05364                                 (yyval.val) = NEW_ENSURE((yyval.val), (yyvsp[(4) - (4)].val));
05365                             }
05366                             else {
05367                                 (yyval.val) = block_append((yyvsp[(4) - (4)].val), NEW_NIL());
05368                             }
05369                         }
05370                         fixpos((yyval.val), (yyvsp[(1) - (4)].val));
05371 #endif
05372                         (yyval.val) = dispatch4(bodystmt,
05373                                        escape_Qundef((yyvsp[(1) - (4)].val)),
05374                                        escape_Qundef((yyvsp[(2) - (4)].val)),
05375                                        escape_Qundef((yyvsp[(3) - (4)].val)),
05376                                        escape_Qundef((yyvsp[(4) - (4)].val)));
05377 
05378                     }
05379     break;
05380 
05381   case 13:
05382 
05383 /* Line 1806 of yacc.c  */
05384 #line 983 "ripper.y"
05385     {
05386 #if 0
05387                         void_stmts((yyvsp[(1) - (2)].val));
05388                         fixup_nodes(&deferred_nodes);
05389 #endif
05390 
05391                         (yyval.val) = (yyvsp[(1) - (2)].val);
05392                     }
05393     break;
05394 
05395   case 14:
05396 
05397 /* Line 1806 of yacc.c  */
05398 #line 994 "ripper.y"
05399     {
05400 #if 0
05401                         (yyval.val) = NEW_BEGIN(0);
05402 #endif
05403                         (yyval.val) = 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 "ripper.y"
05413     {
05414 #if 0
05415                         (yyval.val) = newline_node((yyvsp[(1) - (1)].val));
05416 #endif
05417                         (yyval.val) = dispatch2(stmts_add, dispatch0(stmts_new), (yyvsp[(1) - (1)].val));
05418 
05419                     }
05420     break;
05421 
05422   case 16:
05423 
05424 /* Line 1806 of yacc.c  */
05425 #line 1011 "ripper.y"
05426     {
05427 #if 0
05428                         (yyval.val) = block_append((yyvsp[(1) - (3)].val), newline_node((yyvsp[(3) - (3)].val)));
05429 #endif
05430                         (yyval.val) = dispatch2(stmts_add, (yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
05431 
05432                     }
05433     break;
05434 
05435   case 17:
05436 
05437 /* Line 1806 of yacc.c  */
05438 #line 1019 "ripper.y"
05439     {
05440                         (yyval.val) = remove_begin((yyvsp[(2) - (2)].val));
05441                     }
05442     break;
05443 
05444   case 18:
05445 
05446 /* Line 1806 of yacc.c  */
05447 #line 1025 "ripper.y"
05448     {
05449                         (yyval.val) = (yyvsp[(1) - (1)].val);
05450                     }
05451     break;
05452 
05453   case 19:
05454 
05455 /* Line 1806 of yacc.c  */
05456 #line 1029 "ripper.y"
05457     {
05458                         yyerror("BEGIN is permitted only at toplevel");
05459 #if 0
05460                         /* local_push(0); */
05461 #endif
05462 
05463                     }
05464     break;
05465 
05466   case 20:
05467 
05468 /* Line 1806 of yacc.c  */
05469 #line 1037 "ripper.y"
05470     {
05471 #if 0
05472                         ruby_eval_tree_begin = block_append(ruby_eval_tree_begin,
05473                                                             (yyvsp[(4) - (5)].val));
05474                         /* NEW_PREEXE($4)); */
05475                         /* local_pop(); */
05476                         (yyval.val) = NEW_BEGIN(0);
05477 #endif
05478                         (yyval.val) = dispatch1(BEGIN, (yyvsp[(4) - (5)].val));
05479 
05480                     }
05481     break;
05482 
05483   case 21:
05484 
05485 /* Line 1806 of yacc.c  */
05486 #line 1049 "ripper.y"
05487     {lex_state = EXPR_FNAME;}
05488     break;
05489 
05490   case 22:
05491 
05492 /* Line 1806 of yacc.c  */
05493 #line 1050 "ripper.y"
05494     {
05495 #if 0
05496                         (yyval.val) = NEW_ALIAS((yyvsp[(2) - (4)].val), (yyvsp[(4) - (4)].val));
05497 #endif
05498                         (yyval.val) = dispatch2(alias, (yyvsp[(2) - (4)].val), (yyvsp[(4) - (4)].val));
05499 
05500                     }
05501     break;
05502 
05503   case 23:
05504 
05505 /* Line 1806 of yacc.c  */
05506 #line 1058 "ripper.y"
05507     {
05508 #if 0
05509                         (yyval.val) = NEW_VALIAS((yyvsp[(2) - (3)].val), (yyvsp[(3) - (3)].val));
05510 #endif
05511                         (yyval.val) = dispatch2(var_alias, (yyvsp[(2) - (3)].val), (yyvsp[(3) - (3)].val));
05512 
05513                     }
05514     break;
05515 
05516   case 24:
05517 
05518 /* Line 1806 of yacc.c  */
05519 #line 1066 "ripper.y"
05520     {
05521 #if 0
05522                         char buf[2];
05523                         buf[0] = '$';
05524                         buf[1] = (char)(yyvsp[(3) - (3)].val)->nd_nth;
05525                         (yyval.val) = NEW_VALIAS((yyvsp[(2) - (3)].val), rb_intern2(buf, 2));
05526 #endif
05527                         (yyval.val) = dispatch2(var_alias, (yyvsp[(2) - (3)].val), (yyvsp[(3) - (3)].val));
05528 
05529                     }
05530     break;
05531 
05532   case 25:
05533 
05534 /* Line 1806 of yacc.c  */
05535 #line 1077 "ripper.y"
05536     {
05537 #if 0
05538                         yyerror("can't make alias for the number variables");
05539                         (yyval.val) = NEW_BEGIN(0);
05540 #endif
05541                         (yyval.val) = dispatch2(var_alias, (yyvsp[(2) - (3)].val), (yyvsp[(3) - (3)].val));
05542                         (yyval.val) = dispatch1(alias_error, (yyval.val));
05543 
05544                     }
05545     break;
05546 
05547   case 26:
05548 
05549 /* Line 1806 of yacc.c  */
05550 #line 1087 "ripper.y"
05551     {
05552 #if 0
05553                         (yyval.val) = (yyvsp[(2) - (2)].val);
05554 #endif
05555                         (yyval.val) = dispatch1(undef, (yyvsp[(2) - (2)].val));
05556 
05557                     }
05558     break;
05559 
05560   case 27:
05561 
05562 /* Line 1806 of yacc.c  */
05563 #line 1095 "ripper.y"
05564     {
05565 #if 0
05566                         (yyval.val) = NEW_IF(cond((yyvsp[(3) - (3)].val)), remove_begin((yyvsp[(1) - (3)].val)), 0);
05567                         fixpos((yyval.val), (yyvsp[(3) - (3)].val));
05568 #endif
05569                         (yyval.val) = dispatch2(if_mod, (yyvsp[(3) - (3)].val), (yyvsp[(1) - (3)].val));
05570 
05571                     }
05572     break;
05573 
05574   case 28:
05575 
05576 /* Line 1806 of yacc.c  */
05577 #line 1104 "ripper.y"
05578     {
05579 #if 0
05580                         (yyval.val) = NEW_UNLESS(cond((yyvsp[(3) - (3)].val)), remove_begin((yyvsp[(1) - (3)].val)), 0);
05581                         fixpos((yyval.val), (yyvsp[(3) - (3)].val));
05582 #endif
05583                         (yyval.val) = dispatch2(unless_mod, (yyvsp[(3) - (3)].val), (yyvsp[(1) - (3)].val));
05584 
05585                     }
05586     break;
05587 
05588   case 29:
05589 
05590 /* Line 1806 of yacc.c  */
05591 #line 1113 "ripper.y"
05592     {
05593 #if 0
05594                         if ((yyvsp[(1) - (3)].val) && nd_type((yyvsp[(1) - (3)].val)) == NODE_BEGIN) {
05595                             (yyval.val) = NEW_WHILE(cond((yyvsp[(3) - (3)].val)), (yyvsp[(1) - (3)].val)->nd_body, 0);
05596                         }
05597                         else {
05598                             (yyval.val) = NEW_WHILE(cond((yyvsp[(3) - (3)].val)), (yyvsp[(1) - (3)].val), 1);
05599                         }
05600 #endif
05601                         (yyval.val) = dispatch2(while_mod, (yyvsp[(3) - (3)].val), (yyvsp[(1) - (3)].val));
05602 
05603                     }
05604     break;
05605 
05606   case 30:
05607 
05608 /* Line 1806 of yacc.c  */
05609 #line 1126 "ripper.y"
05610     {
05611 #if 0
05612                         if ((yyvsp[(1) - (3)].val) && nd_type((yyvsp[(1) - (3)].val)) == NODE_BEGIN) {
05613                             (yyval.val) = NEW_UNTIL(cond((yyvsp[(3) - (3)].val)), (yyvsp[(1) - (3)].val)->nd_body, 0);
05614                         }
05615                         else {
05616                             (yyval.val) = NEW_UNTIL(cond((yyvsp[(3) - (3)].val)), (yyvsp[(1) - (3)].val), 1);
05617                         }
05618 #endif
05619                         (yyval.val) = dispatch2(until_mod, (yyvsp[(3) - (3)].val), (yyvsp[(1) - (3)].val));
05620 
05621                     }
05622     break;
05623 
05624   case 31:
05625 
05626 /* Line 1806 of yacc.c  */
05627 #line 1139 "ripper.y"
05628     {
05629 #if 0
05630                         NODE *resq = NEW_RESBODY(0, remove_begin((yyvsp[(3) - (3)].val)), 0);
05631                         (yyval.val) = NEW_RESCUE(remove_begin((yyvsp[(1) - (3)].val)), resq, 0);
05632 #endif
05633                         (yyval.val) = dispatch2(rescue_mod, (yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
05634 
05635                     }
05636     break;
05637 
05638   case 32:
05639 
05640 /* Line 1806 of yacc.c  */
05641 #line 1148 "ripper.y"
05642     {
05643                         if (in_def || in_single) {
05644                             rb_warn0("END in method; use at_exit");
05645                         }
05646 #if 0
05647                         (yyval.val) = NEW_POSTEXE(NEW_NODE(
05648                             NODE_SCOPE, 0 /* tbl */, (yyvsp[(3) - (4)].val) /* body */, 0 /* args */));
05649 #endif
05650                         (yyval.val) = dispatch1(END, (yyvsp[(3) - (4)].val));
05651 
05652                     }
05653     break;
05654 
05655   case 34:
05656 
05657 /* Line 1806 of yacc.c  */
05658 #line 1161 "ripper.y"
05659     {
05660 #if 0
05661                         value_expr((yyvsp[(3) - (3)].val));
05662                         (yyvsp[(1) - (3)].val)->nd_value = (yyvsp[(3) - (3)].val);
05663                         (yyval.val) = (yyvsp[(1) - (3)].val);
05664 #endif
05665                         (yyval.val) = dispatch2(massign, (yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
05666 
05667                     }
05668     break;
05669 
05670   case 35:
05671 
05672 /* Line 1806 of yacc.c  */
05673 #line 1171 "ripper.y"
05674     {
05675                         value_expr((yyvsp[(3) - (3)].val));
05676                         (yyval.val) = new_op_assign((yyvsp[(1) - (3)].val), (yyvsp[(2) - (3)].val), (yyvsp[(3) - (3)].val));
05677                     }
05678     break;
05679 
05680   case 36:
05681 
05682 /* Line 1806 of yacc.c  */
05683 #line 1176 "ripper.y"
05684     {
05685 #if 0
05686                         NODE *args;
05687 
05688                         value_expr((yyvsp[(6) - (6)].val));
05689                         if (!(yyvsp[(3) - (6)].val)) (yyvsp[(3) - (6)].val) = NEW_ZARRAY();
05690                         args = arg_concat((yyvsp[(3) - (6)].val), (yyvsp[(6) - (6)].val));
05691                         if ((yyvsp[(5) - (6)].val) == tOROP) {
05692                             (yyvsp[(5) - (6)].val) = 0;
05693                         }
05694                         else if ((yyvsp[(5) - (6)].val) == tANDOP) {
05695                             (yyvsp[(5) - (6)].val) = 1;
05696                         }
05697                         (yyval.val) = NEW_OP_ASGN1((yyvsp[(1) - (6)].val), (yyvsp[(5) - (6)].val), args);
05698                         fixpos((yyval.val), (yyvsp[(1) - (6)].val));
05699 #endif
05700                         (yyval.val) = dispatch2(aref_field, (yyvsp[(1) - (6)].val), escape_Qundef((yyvsp[(3) - (6)].val)));
05701                         (yyval.val) = dispatch3(opassign, (yyval.val), (yyvsp[(5) - (6)].val), (yyvsp[(6) - (6)].val));
05702 
05703                     }
05704     break;
05705 
05706   case 37:
05707 
05708 /* Line 1806 of yacc.c  */
05709 #line 1197 "ripper.y"
05710     {
05711                         value_expr((yyvsp[(5) - (5)].val));
05712                         (yyval.val) = new_attr_op_assign((yyvsp[(1) - (5)].val), ripper_id2sym('.'), (yyvsp[(3) - (5)].val), (yyvsp[(4) - (5)].val), (yyvsp[(5) - (5)].val));
05713                     }
05714     break;
05715 
05716   case 38:
05717 
05718 /* Line 1806 of yacc.c  */
05719 #line 1202 "ripper.y"
05720     {
05721                         value_expr((yyvsp[(5) - (5)].val));
05722                         (yyval.val) = new_attr_op_assign((yyvsp[(1) - (5)].val), ripper_id2sym('.'), (yyvsp[(3) - (5)].val), (yyvsp[(4) - (5)].val), (yyvsp[(5) - (5)].val));
05723                     }
05724     break;
05725 
05726   case 39:
05727 
05728 /* Line 1806 of yacc.c  */
05729 #line 1207 "ripper.y"
05730     {
05731 #if 0
05732                         (yyval.val) = NEW_COLON2((yyvsp[(1) - (5)].val), (yyvsp[(3) - (5)].val));
05733                         (yyval.val) = new_const_op_assign((yyval.val), (yyvsp[(4) - (5)].val), (yyvsp[(5) - (5)].val));
05734 #endif
05735                         (yyval.val) = dispatch2(const_path_field, (yyvsp[(1) - (5)].val), (yyvsp[(3) - (5)].val));
05736                         (yyval.val) = dispatch3(opassign, (yyval.val), (yyvsp[(4) - (5)].val), (yyvsp[(5) - (5)].val));
05737 
05738                     }
05739     break;
05740 
05741   case 40:
05742 
05743 /* Line 1806 of yacc.c  */
05744 #line 1217 "ripper.y"
05745     {
05746                         value_expr((yyvsp[(5) - (5)].val));
05747                         (yyval.val) = new_attr_op_assign((yyvsp[(1) - (5)].val), ripper_intern("::"), (yyvsp[(3) - (5)].val), (yyvsp[(4) - (5)].val), (yyvsp[(5) - (5)].val));
05748                     }
05749     break;
05750 
05751   case 41:
05752 
05753 /* Line 1806 of yacc.c  */
05754 #line 1222 "ripper.y"
05755     {
05756 #if 0
05757                         rb_backref_error((yyvsp[(1) - (3)].val));
05758                         (yyval.val) = NEW_BEGIN(0);
05759 #endif
05760                         (yyval.val) = dispatch2(assign, dispatch1(var_field, (yyvsp[(1) - (3)].val)), (yyvsp[(3) - (3)].val));
05761                         (yyval.val) = dispatch1(assign_error, (yyval.val));
05762 
05763                     }
05764     break;
05765 
05766   case 42:
05767 
05768 /* Line 1806 of yacc.c  */
05769 #line 1232 "ripper.y"
05770     {
05771 #if 0
05772                         value_expr((yyvsp[(3) - (3)].val));
05773                         (yyval.val) = node_assign((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
05774 #endif
05775                         (yyval.val) = dispatch2(assign, (yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
05776 
05777                     }
05778     break;
05779 
05780   case 43:
05781 
05782 /* Line 1806 of yacc.c  */
05783 #line 1241 "ripper.y"
05784     {
05785 #if 0
05786                         (yyvsp[(1) - (3)].val)->nd_value = (yyvsp[(3) - (3)].val);
05787                         (yyval.val) = (yyvsp[(1) - (3)].val);
05788 #endif
05789                         (yyval.val) = dispatch2(massign, (yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
05790 
05791                     }
05792     break;
05793 
05794   case 44:
05795 
05796 /* Line 1806 of yacc.c  */
05797 #line 1250 "ripper.y"
05798     {
05799 #if 0
05800                         (yyvsp[(1) - (3)].val)->nd_value = (yyvsp[(3) - (3)].val);
05801                         (yyval.val) = (yyvsp[(1) - (3)].val);
05802 #endif
05803                         (yyval.val) = dispatch2(massign, (yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
05804 
05805                     }
05806     break;
05807 
05808   case 46:
05809 
05810 /* Line 1806 of yacc.c  */
05811 #line 1262 "ripper.y"
05812     {
05813 #if 0
05814                         value_expr((yyvsp[(3) - (3)].val));
05815                         (yyval.val) = node_assign((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
05816 #endif
05817                         (yyval.val) = dispatch2(assign, (yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
05818 
05819                     }
05820     break;
05821 
05822   case 47:
05823 
05824 /* Line 1806 of yacc.c  */
05825 #line 1271 "ripper.y"
05826     {
05827 #if 0
05828                         value_expr((yyvsp[(3) - (3)].val));
05829                         (yyval.val) = node_assign((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
05830 #endif
05831                         (yyval.val) = dispatch2(assign, (yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
05832 
05833                     }
05834     break;
05835 
05836   case 49:
05837 
05838 /* Line 1806 of yacc.c  */
05839 #line 1284 "ripper.y"
05840     {
05841 #if 0
05842                         (yyval.val) = logop(NODE_AND, (yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
05843 #endif
05844                         (yyval.val) = dispatch3(binary, (yyvsp[(1) - (3)].val), ripper_intern("and"), (yyvsp[(3) - (3)].val));
05845 
05846                     }
05847     break;
05848 
05849   case 50:
05850 
05851 /* Line 1806 of yacc.c  */
05852 #line 1292 "ripper.y"
05853     {
05854 #if 0
05855                         (yyval.val) = logop(NODE_OR, (yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
05856 #endif
05857                         (yyval.val) = dispatch3(binary, (yyvsp[(1) - (3)].val), ripper_intern("or"), (yyvsp[(3) - (3)].val));
05858 
05859                     }
05860     break;
05861 
05862   case 51:
05863 
05864 /* Line 1806 of yacc.c  */
05865 #line 1300 "ripper.y"
05866     {
05867 #if 0
05868                         (yyval.val) = call_uni_op(cond((yyvsp[(3) - (3)].val)), '!');
05869 #endif
05870                         (yyval.val) = dispatch2(unary, ripper_intern("not"), (yyvsp[(3) - (3)].val));
05871 
05872                     }
05873     break;
05874 
05875   case 52:
05876 
05877 /* Line 1806 of yacc.c  */
05878 #line 1308 "ripper.y"
05879     {
05880 #if 0
05881                         (yyval.val) = call_uni_op(cond((yyvsp[(2) - (2)].val)), '!');
05882 #endif
05883                         (yyval.val) = dispatch2(unary, ripper_id2sym('!'), (yyvsp[(2) - (2)].val));
05884 
05885                     }
05886     break;
05887 
05888   case 54:
05889 
05890 /* Line 1806 of yacc.c  */
05891 #line 1319 "ripper.y"
05892     {
05893 #if 0
05894                         value_expr((yyvsp[(1) - (1)].val));
05895                         (yyval.val) = (yyvsp[(1) - (1)].val);
05896                         if (!(yyval.val)) (yyval.val) = NEW_NIL();
05897 #endif
05898                         (yyval.val) = (yyvsp[(1) - (1)].val);
05899 
05900                     }
05901     break;
05902 
05903   case 58:
05904 
05905 /* Line 1806 of yacc.c  */
05906 #line 1336 "ripper.y"
05907     {
05908 #if 0
05909                         (yyval.val) = NEW_CALL((yyvsp[(1) - (4)].val), (yyvsp[(3) - (4)].val), (yyvsp[(4) - (4)].val));
05910 #endif
05911                         (yyval.val) = dispatch3(call, (yyvsp[(1) - (4)].val), (yyvsp[(2) - (4)].val), (yyvsp[(3) - (4)].val));
05912                         (yyval.val) = method_arg((yyval.val), (yyvsp[(4) - (4)].val));
05913 
05914                     }
05915     break;
05916 
05917   case 59:
05918 
05919 /* Line 1806 of yacc.c  */
05920 #line 1347 "ripper.y"
05921     {
05922                         (yyvsp[(1) - (1)].vars) = dyna_push();
05923 #if 0
05924                         (yyval.num) = ruby_sourceline;
05925 #endif
05926 
05927                     }
05928     break;
05929 
05930   case 60:
05931 
05932 /* Line 1806 of yacc.c  */
05933 #line 1357 "ripper.y"
05934     {
05935 #if 0
05936                         (yyval.val) = NEW_ITER((yyvsp[(3) - (5)].val),(yyvsp[(4) - (5)].val));
05937                         nd_set_line((yyval.val), (yyvsp[(2) - (5)].num));
05938 #endif
05939                         (yyval.val) = dispatch2(brace_block, escape_Qundef((yyvsp[(3) - (5)].val)), (yyvsp[(4) - (5)].val));
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 "ripper.y"
05949     {
05950 #if 0
05951                         (yyval.val) = NEW_FCALL((yyvsp[(1) - (1)].val), 0);
05952                         nd_set_line((yyval.val), tokline);
05953 #endif
05954 
05955                     }
05956     break;
05957 
05958   case 62:
05959 
05960 /* Line 1806 of yacc.c  */
05961 #line 1379 "ripper.y"
05962     {
05963 #if 0
05964                         (yyval.val) = (yyvsp[(1) - (2)].val);
05965                         (yyval.val)->nd_args = (yyvsp[(2) - (2)].val);
05966 #endif
05967                         (yyval.val) = dispatch2(command, (yyvsp[(1) - (2)].val), (yyvsp[(2) - (2)].val));
05968 
05969                     }
05970     break;
05971 
05972   case 63:
05973 
05974 /* Line 1806 of yacc.c  */
05975 #line 1388 "ripper.y"
05976     {
05977 #if 0
05978                         block_dup_check((yyvsp[(2) - (3)].val),(yyvsp[(3) - (3)].val));
05979                         (yyvsp[(1) - (3)].val)->nd_args = (yyvsp[(2) - (3)].val);
05980                         (yyvsp[(3) - (3)].val)->nd_iter = (yyvsp[(1) - (3)].val);
05981                         (yyval.val) = (yyvsp[(3) - (3)].val);
05982                         fixpos((yyval.val), (yyvsp[(1) - (3)].val));
05983 #endif
05984                         (yyval.val) = dispatch2(command, (yyvsp[(1) - (3)].val), (yyvsp[(2) - (3)].val));
05985                         (yyval.val) = method_add_block((yyval.val), (yyvsp[(3) - (3)].val));
05986 
05987                     }
05988     break;
05989 
05990   case 64:
05991 
05992 /* Line 1806 of yacc.c  */
05993 #line 1401 "ripper.y"
05994     {
05995 #if 0
05996                         (yyval.val) = NEW_CALL((yyvsp[(1) - (4)].val), (yyvsp[(3) - (4)].val), (yyvsp[(4) - (4)].val));
05997                         fixpos((yyval.val), (yyvsp[(1) - (4)].val));
05998 #endif
05999                         (yyval.val) = dispatch4(command_call, (yyvsp[(1) - (4)].val), ripper_id2sym('.'), (yyvsp[(3) - (4)].val), (yyvsp[(4) - (4)].val));
06000 
06001                     }
06002     break;
06003 
06004   case 65:
06005 
06006 /* Line 1806 of yacc.c  */
06007 #line 1410 "ripper.y"
06008     {
06009 #if 0
06010                         block_dup_check((yyvsp[(4) - (5)].val),(yyvsp[(5) - (5)].val));
06011                         (yyvsp[(5) - (5)].val)->nd_iter = NEW_CALL((yyvsp[(1) - (5)].val), (yyvsp[(3) - (5)].val), (yyvsp[(4) - (5)].val));
06012                         (yyval.val) = (yyvsp[(5) - (5)].val);
06013                         fixpos((yyval.val), (yyvsp[(1) - (5)].val));
06014 #endif
06015                         (yyval.val) = dispatch4(command_call, (yyvsp[(1) - (5)].val), ripper_id2sym('.'), (yyvsp[(3) - (5)].val), (yyvsp[(4) - (5)].val));
06016                         (yyval.val) = method_add_block((yyval.val), (yyvsp[(5) - (5)].val));
06017 
06018                    }
06019     break;
06020 
06021   case 66:
06022 
06023 /* Line 1806 of yacc.c  */
06024 #line 1422 "ripper.y"
06025     {
06026 #if 0
06027                         (yyval.val) = NEW_CALL((yyvsp[(1) - (4)].val), (yyvsp[(3) - (4)].val), (yyvsp[(4) - (4)].val));
06028                         fixpos((yyval.val), (yyvsp[(1) - (4)].val));
06029 #endif
06030                         (yyval.val) = dispatch4(command_call, (yyvsp[(1) - (4)].val), ripper_intern("::"), (yyvsp[(3) - (4)].val), (yyvsp[(4) - (4)].val));
06031 
06032                     }
06033     break;
06034 
06035   case 67:
06036 
06037 /* Line 1806 of yacc.c  */
06038 #line 1431 "ripper.y"
06039     {
06040 #if 0
06041                         block_dup_check((yyvsp[(4) - (5)].val),(yyvsp[(5) - (5)].val));
06042                         (yyvsp[(5) - (5)].val)->nd_iter = NEW_CALL((yyvsp[(1) - (5)].val), (yyvsp[(3) - (5)].val), (yyvsp[(4) - (5)].val));
06043                         (yyval.val) = (yyvsp[(5) - (5)].val);
06044                         fixpos((yyval.val), (yyvsp[(1) - (5)].val));
06045 #endif
06046                         (yyval.val) = dispatch4(command_call, (yyvsp[(1) - (5)].val), ripper_intern("::"), (yyvsp[(3) - (5)].val), (yyvsp[(4) - (5)].val));
06047                         (yyval.val) = method_add_block((yyval.val), (yyvsp[(5) - (5)].val));
06048 
06049                    }
06050     break;
06051 
06052   case 68:
06053 
06054 /* Line 1806 of yacc.c  */
06055 #line 1443 "ripper.y"
06056     {
06057 #if 0
06058                         (yyval.val) = NEW_SUPER((yyvsp[(2) - (2)].val));
06059                         fixpos((yyval.val), (yyvsp[(2) - (2)].val));
06060 #endif
06061                         (yyval.val) = dispatch1(super, (yyvsp[(2) - (2)].val));
06062 
06063                     }
06064     break;
06065 
06066   case 69:
06067 
06068 /* Line 1806 of yacc.c  */
06069 #line 1452 "ripper.y"
06070     {
06071 #if 0
06072                         (yyval.val) = new_yield((yyvsp[(2) - (2)].val));
06073                         fixpos((yyval.val), (yyvsp[(2) - (2)].val));
06074 #endif
06075                         (yyval.val) = dispatch1(yield, (yyvsp[(2) - (2)].val));
06076 
06077                     }
06078     break;
06079 
06080   case 70:
06081 
06082 /* Line 1806 of yacc.c  */
06083 #line 1461 "ripper.y"
06084     {
06085 #if 0
06086                         (yyval.val) = NEW_RETURN(ret_args((yyvsp[(2) - (2)].val)));
06087 #endif
06088                         (yyval.val) = dispatch1(return, (yyvsp[(2) - (2)].val));
06089 
06090                     }
06091     break;
06092 
06093   case 71:
06094 
06095 /* Line 1806 of yacc.c  */
06096 #line 1469 "ripper.y"
06097     {
06098 #if 0
06099                         (yyval.val) = NEW_BREAK(ret_args((yyvsp[(2) - (2)].val)));
06100 #endif
06101                         (yyval.val) = dispatch1(break, (yyvsp[(2) - (2)].val));
06102 
06103                     }
06104     break;
06105 
06106   case 72:
06107 
06108 /* Line 1806 of yacc.c  */
06109 #line 1477 "ripper.y"
06110     {
06111 #if 0
06112                         (yyval.val) = NEW_NEXT(ret_args((yyvsp[(2) - (2)].val)));
06113 #endif
06114                         (yyval.val) = dispatch1(next, (yyvsp[(2) - (2)].val));
06115 
06116                     }
06117     break;
06118 
06119   case 74:
06120 
06121 /* Line 1806 of yacc.c  */
06122 #line 1488 "ripper.y"
06123     {
06124 #if 0
06125                         (yyval.val) = (yyvsp[(2) - (3)].val);
06126 #endif
06127                         (yyval.val) = dispatch1(mlhs_paren, (yyvsp[(2) - (3)].val));
06128 
06129                     }
06130     break;
06131 
06132   case 76:
06133 
06134 /* Line 1806 of yacc.c  */
06135 #line 1499 "ripper.y"
06136     {
06137 #if 0
06138                         (yyval.val) = NEW_MASGN(NEW_LIST((yyvsp[(2) - (3)].val)), 0);
06139 #endif
06140                         (yyval.val) = dispatch1(mlhs_paren, (yyvsp[(2) - (3)].val));
06141 
06142                     }
06143     break;
06144 
06145   case 77:
06146 
06147 /* Line 1806 of yacc.c  */
06148 #line 1509 "ripper.y"
06149     {
06150 #if 0
06151                         (yyval.val) = NEW_MASGN((yyvsp[(1) - (1)].val), 0);
06152 #endif
06153                         (yyval.val) = (yyvsp[(1) - (1)].val);
06154 
06155                     }
06156     break;
06157 
06158   case 78:
06159 
06160 /* Line 1806 of yacc.c  */
06161 #line 1517 "ripper.y"
06162     {
06163 #if 0
06164                         (yyval.val) = NEW_MASGN(list_append((yyvsp[(1) - (2)].val),(yyvsp[(2) - (2)].val)), 0);
06165 #endif
06166                         (yyval.val) = mlhs_add((yyvsp[(1) - (2)].val), (yyvsp[(2) - (2)].val));
06167 
06168                     }
06169     break;
06170 
06171   case 79:
06172 
06173 /* Line 1806 of yacc.c  */
06174 #line 1525 "ripper.y"
06175     {
06176 #if 0
06177                         (yyval.val) = NEW_MASGN((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
06178 #endif
06179                         (yyval.val) = mlhs_add_star((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
06180 
06181                     }
06182     break;
06183 
06184   case 80:
06185 
06186 /* Line 1806 of yacc.c  */
06187 #line 1533 "ripper.y"
06188     {
06189 #if 0
06190                         (yyval.val) = NEW_MASGN((yyvsp[(1) - (5)].val), NEW_POSTARG((yyvsp[(3) - (5)].val),(yyvsp[(5) - (5)].val)));
06191 #endif
06192                         (yyvsp[(1) - (5)].val) = mlhs_add_star((yyvsp[(1) - (5)].val), (yyvsp[(3) - (5)].val));
06193                         (yyval.val) = mlhs_add((yyvsp[(1) - (5)].val), (yyvsp[(5) - (5)].val));
06194 
06195                     }
06196     break;
06197 
06198   case 81:
06199 
06200 /* Line 1806 of yacc.c  */
06201 #line 1542 "ripper.y"
06202     {
06203 #if 0
06204                         (yyval.val) = NEW_MASGN((yyvsp[(1) - (2)].val), -1);
06205 #endif
06206                         (yyval.val) = mlhs_add_star((yyvsp[(1) - (2)].val), Qnil);
06207 
06208                     }
06209     break;
06210 
06211   case 82:
06212 
06213 /* Line 1806 of yacc.c  */
06214 #line 1550 "ripper.y"
06215     {
06216 #if 0
06217                         (yyval.val) = NEW_MASGN((yyvsp[(1) - (4)].val), NEW_POSTARG(-1, (yyvsp[(4) - (4)].val)));
06218 #endif
06219                         (yyvsp[(1) - (4)].val) = mlhs_add_star((yyvsp[(1) - (4)].val), Qnil);
06220                         (yyval.val) = mlhs_add((yyvsp[(1) - (4)].val), (yyvsp[(4) - (4)].val));
06221 
06222                     }
06223     break;
06224 
06225   case 83:
06226 
06227 /* Line 1806 of yacc.c  */
06228 #line 1559 "ripper.y"
06229     {
06230 #if 0
06231                         (yyval.val) = NEW_MASGN(0, (yyvsp[(2) - (2)].val));
06232 #endif
06233                         (yyval.val) = mlhs_add_star(mlhs_new(), (yyvsp[(2) - (2)].val));
06234 
06235                     }
06236     break;
06237 
06238   case 84:
06239 
06240 /* Line 1806 of yacc.c  */
06241 #line 1567 "ripper.y"
06242     {
06243 #if 0
06244                         (yyval.val) = NEW_MASGN(0, NEW_POSTARG((yyvsp[(2) - (4)].val),(yyvsp[(4) - (4)].val)));
06245 #endif
06246                         (yyvsp[(2) - (4)].val) = mlhs_add_star(mlhs_new(), (yyvsp[(2) - (4)].val));
06247                         (yyval.val) = mlhs_add((yyvsp[(2) - (4)].val), (yyvsp[(4) - (4)].val));
06248 
06249                     }
06250     break;
06251 
06252   case 85:
06253 
06254 /* Line 1806 of yacc.c  */
06255 #line 1576 "ripper.y"
06256     {
06257 #if 0
06258                         (yyval.val) = NEW_MASGN(0, -1);
06259 #endif
06260                         (yyval.val) = mlhs_add_star(mlhs_new(), Qnil);
06261 
06262                     }
06263     break;
06264 
06265   case 86:
06266 
06267 /* Line 1806 of yacc.c  */
06268 #line 1584 "ripper.y"
06269     {
06270 #if 0
06271                         (yyval.val) = NEW_MASGN(0, NEW_POSTARG(-1, (yyvsp[(3) - (3)].val)));
06272 #endif
06273                         (yyval.val) = mlhs_add_star(mlhs_new(), Qnil);
06274                         (yyval.val) = mlhs_add((yyval.val), (yyvsp[(3) - (3)].val));
06275 
06276                     }
06277     break;
06278 
06279   case 88:
06280 
06281 /* Line 1806 of yacc.c  */
06282 #line 1596 "ripper.y"
06283     {
06284 #if 0
06285                         (yyval.val) = (yyvsp[(2) - (3)].val);
06286 #endif
06287                         (yyval.val) = dispatch1(mlhs_paren, (yyvsp[(2) - (3)].val));
06288 
06289                     }
06290     break;
06291 
06292   case 89:
06293 
06294 /* Line 1806 of yacc.c  */
06295 #line 1606 "ripper.y"
06296     {
06297 #if 0
06298                         (yyval.val) = NEW_LIST((yyvsp[(1) - (2)].val));
06299 #endif
06300                         (yyval.val) = mlhs_add(mlhs_new(), (yyvsp[(1) - (2)].val));
06301 
06302                     }
06303     break;
06304 
06305   case 90:
06306 
06307 /* Line 1806 of yacc.c  */
06308 #line 1614 "ripper.y"
06309     {
06310 #if 0
06311                         (yyval.val) = list_append((yyvsp[(1) - (3)].val), (yyvsp[(2) - (3)].val));
06312 #endif
06313                         (yyval.val) = mlhs_add((yyvsp[(1) - (3)].val), (yyvsp[(2) - (3)].val));
06314 
06315                     }
06316     break;
06317 
06318   case 91:
06319 
06320 /* Line 1806 of yacc.c  */
06321 #line 1624 "ripper.y"
06322     {
06323 #if 0
06324                         (yyval.val) = NEW_LIST((yyvsp[(1) - (1)].val));
06325 #endif
06326                         (yyval.val) = mlhs_add(mlhs_new(), (yyvsp[(1) - (1)].val));
06327 
06328                     }
06329     break;
06330 
06331   case 92:
06332 
06333 /* Line 1806 of yacc.c  */
06334 #line 1632 "ripper.y"
06335     {
06336 #if 0
06337                         (yyval.val) = list_append((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
06338 #endif
06339                         (yyval.val) = mlhs_add((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
06340 
06341                     }
06342     break;
06343 
06344   case 93:
06345 
06346 /* Line 1806 of yacc.c  */
06347 #line 1642 "ripper.y"
06348     {
06349                         (yyval.val) = assignable((yyvsp[(1) - (1)].val), 0);
06350                     }
06351     break;
06352 
06353   case 94:
06354 
06355 /* Line 1806 of yacc.c  */
06356 #line 1646 "ripper.y"
06357     {
06358                         (yyval.val) = assignable((yyvsp[(1) - (1)].val), 0);
06359                     }
06360     break;
06361 
06362   case 95:
06363 
06364 /* Line 1806 of yacc.c  */
06365 #line 1650 "ripper.y"
06366     {
06367 #if 0
06368                         (yyval.val) = aryset((yyvsp[(1) - (4)].val), (yyvsp[(3) - (4)].val));
06369 #endif
06370                         (yyval.val) = dispatch2(aref_field, (yyvsp[(1) - (4)].val), escape_Qundef((yyvsp[(3) - (4)].val)));
06371 
06372                     }
06373     break;
06374 
06375   case 96:
06376 
06377 /* Line 1806 of yacc.c  */
06378 #line 1658 "ripper.y"
06379     {
06380 #if 0
06381                         (yyval.val) = attrset((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
06382 #endif
06383                         (yyval.val) = dispatch3(field, (yyvsp[(1) - (3)].val), ripper_id2sym('.'), (yyvsp[(3) - (3)].val));
06384 
06385                     }
06386     break;
06387 
06388   case 97:
06389 
06390 /* Line 1806 of yacc.c  */
06391 #line 1666 "ripper.y"
06392     {
06393 #if 0
06394                         (yyval.val) = attrset((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
06395 #endif
06396                         (yyval.val) = dispatch2(const_path_field, (yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
06397 
06398                     }
06399     break;
06400 
06401   case 98:
06402 
06403 /* Line 1806 of yacc.c  */
06404 #line 1674 "ripper.y"
06405     {
06406 #if 0
06407                         (yyval.val) = attrset((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
06408 #endif
06409                         (yyval.val) = dispatch3(field, (yyvsp[(1) - (3)].val), ripper_id2sym('.'), (yyvsp[(3) - (3)].val));
06410 
06411                     }
06412     break;
06413 
06414   case 99:
06415 
06416 /* Line 1806 of yacc.c  */
06417 #line 1682 "ripper.y"
06418     {
06419 #if 0
06420                         if (in_def || in_single)
06421                             yyerror("dynamic constant assignment");
06422                         (yyval.val) = NEW_CDECL(0, 0, NEW_COLON2((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val)));
06423 #endif
06424                         if (in_def || in_single)
06425                             yyerror("dynamic constant assignment");
06426                         (yyval.val) = dispatch2(const_path_field, (yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
06427 
06428                     }
06429     break;
06430 
06431   case 100:
06432 
06433 /* Line 1806 of yacc.c  */
06434 #line 1694 "ripper.y"
06435     {
06436 #if 0
06437                         if (in_def || in_single)
06438                             yyerror("dynamic constant assignment");
06439                         (yyval.val) = NEW_CDECL(0, 0, NEW_COLON3((yyvsp[(2) - (2)].val)));
06440 #endif
06441                         (yyval.val) = dispatch1(top_const_field, (yyvsp[(2) - (2)].val));
06442 
06443                     }
06444     break;
06445 
06446   case 101:
06447 
06448 /* Line 1806 of yacc.c  */
06449 #line 1704 "ripper.y"
06450     {
06451 #if 0
06452                         rb_backref_error((yyvsp[(1) - (1)].val));
06453                         (yyval.val) = NEW_BEGIN(0);
06454 #endif
06455                         (yyval.val) = dispatch1(var_field, (yyvsp[(1) - (1)].val));
06456                         (yyval.val) = dispatch1(assign_error, (yyval.val));
06457 
06458                     }
06459     break;
06460 
06461   case 102:
06462 
06463 /* Line 1806 of yacc.c  */
06464 #line 1716 "ripper.y"
06465     {
06466                         (yyval.val) = assignable((yyvsp[(1) - (1)].val), 0);
06467 #if 0
06468                         if (!(yyval.val)) (yyval.val) = NEW_BEGIN(0);
06469 #endif
06470                         (yyval.val) = dispatch1(var_field, (yyval.val));
06471 
06472                     }
06473     break;
06474 
06475   case 103:
06476 
06477 /* Line 1806 of yacc.c  */
06478 #line 1725 "ripper.y"
06479     {
06480                         (yyval.val) = assignable((yyvsp[(1) - (1)].val), 0);
06481 #if 0
06482                         if (!(yyval.val)) (yyval.val) = NEW_BEGIN(0);
06483 #endif
06484                         (yyval.val) = dispatch1(var_field, (yyval.val));
06485 
06486                     }
06487     break;
06488 
06489   case 104:
06490 
06491 /* Line 1806 of yacc.c  */
06492 #line 1734 "ripper.y"
06493     {
06494 #if 0
06495                         (yyval.val) = aryset((yyvsp[(1) - (4)].val), (yyvsp[(3) - (4)].val));
06496 #endif
06497                         (yyval.val) = dispatch2(aref_field, (yyvsp[(1) - (4)].val), escape_Qundef((yyvsp[(3) - (4)].val)));
06498 
06499                     }
06500     break;
06501 
06502   case 105:
06503 
06504 /* Line 1806 of yacc.c  */
06505 #line 1742 "ripper.y"
06506     {
06507 #if 0
06508                         (yyval.val) = attrset((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
06509 #endif
06510                         (yyval.val) = dispatch3(field, (yyvsp[(1) - (3)].val), ripper_id2sym('.'), (yyvsp[(3) - (3)].val));
06511 
06512                     }
06513     break;
06514 
06515   case 106:
06516 
06517 /* Line 1806 of yacc.c  */
06518 #line 1750 "ripper.y"
06519     {
06520 #if 0
06521                         (yyval.val) = attrset((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
06522 #endif
06523                         (yyval.val) = dispatch3(field, (yyvsp[(1) - (3)].val), ripper_intern("::"), (yyvsp[(3) - (3)].val));
06524 
06525                     }
06526     break;
06527 
06528   case 107:
06529 
06530 /* Line 1806 of yacc.c  */
06531 #line 1758 "ripper.y"
06532     {
06533 #if 0
06534                         (yyval.val) = attrset((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
06535 #endif
06536                         (yyval.val) = dispatch3(field, (yyvsp[(1) - (3)].val), ripper_id2sym('.'), (yyvsp[(3) - (3)].val));
06537 
06538                     }
06539     break;
06540 
06541   case 108:
06542 
06543 /* Line 1806 of yacc.c  */
06544 #line 1766 "ripper.y"
06545     {
06546 #if 0
06547                         if (in_def || in_single)
06548                             yyerror("dynamic constant assignment");
06549                         (yyval.val) = NEW_CDECL(0, 0, NEW_COLON2((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val)));
06550 #endif
06551                         (yyval.val) = dispatch2(const_path_field, (yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
06552                         if (in_def || in_single) {
06553                             (yyval.val) = dispatch1(assign_error, (yyval.val));
06554                         }
06555 
06556                     }
06557     break;
06558 
06559   case 109:
06560 
06561 /* Line 1806 of yacc.c  */
06562 #line 1779 "ripper.y"
06563     {
06564 #if 0
06565                         if (in_def || in_single)
06566                             yyerror("dynamic constant assignment");
06567                         (yyval.val) = NEW_CDECL(0, 0, NEW_COLON3((yyvsp[(2) - (2)].val)));
06568 #endif
06569                         (yyval.val) = dispatch1(top_const_field, (yyvsp[(2) - (2)].val));
06570                         if (in_def || in_single) {
06571                             (yyval.val) = dispatch1(assign_error, (yyval.val));
06572                         }
06573 
06574                     }
06575     break;
06576 
06577   case 110:
06578 
06579 /* Line 1806 of yacc.c  */
06580 #line 1792 "ripper.y"
06581     {
06582 #if 0
06583                         rb_backref_error((yyvsp[(1) - (1)].val));
06584                         (yyval.val) = NEW_BEGIN(0);
06585 #endif
06586                         (yyval.val) = dispatch1(assign_error, (yyvsp[(1) - (1)].val));
06587 
06588                     }
06589     break;
06590 
06591   case 111:
06592 
06593 /* Line 1806 of yacc.c  */
06594 #line 1803 "ripper.y"
06595     {
06596 #if 0
06597                         yyerror("class/module name must be CONSTANT");
06598 #endif
06599                         (yyval.val) = dispatch1(class_name_error, (yyvsp[(1) - (1)].val));
06600 
06601                     }
06602     break;
06603 
06604   case 113:
06605 
06606 /* Line 1806 of yacc.c  */
06607 #line 1814 "ripper.y"
06608     {
06609 #if 0
06610                         (yyval.val) = NEW_COLON3((yyvsp[(2) - (2)].val));
06611 #endif
06612                         (yyval.val) = dispatch1(top_const_ref, (yyvsp[(2) - (2)].val));
06613 
06614                     }
06615     break;
06616 
06617   case 114:
06618 
06619 /* Line 1806 of yacc.c  */
06620 #line 1822 "ripper.y"
06621     {
06622 #if 0
06623                         (yyval.val) = NEW_COLON2(0, (yyval.val));
06624 #endif
06625                         (yyval.val) = dispatch1(const_ref, (yyvsp[(1) - (1)].val));
06626 
06627                     }
06628     break;
06629 
06630   case 115:
06631 
06632 /* Line 1806 of yacc.c  */
06633 #line 1830 "ripper.y"
06634     {
06635 #if 0
06636                         (yyval.val) = NEW_COLON2((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
06637 #endif
06638                         (yyval.val) = dispatch2(const_path_ref, (yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
06639 
06640                     }
06641     break;
06642 
06643   case 119:
06644 
06645 /* Line 1806 of yacc.c  */
06646 #line 1843 "ripper.y"
06647     {
06648                         lex_state = EXPR_ENDFN;
06649                         (yyval.val) = (yyvsp[(1) - (1)].val);
06650                     }
06651     break;
06652 
06653   case 120:
06654 
06655 /* Line 1806 of yacc.c  */
06656 #line 1848 "ripper.y"
06657     {
06658                         lex_state = EXPR_ENDFN;
06659 #if 0
06660                         (yyval.val) = (yyvsp[(1) - (1)].id);
06661 #endif
06662                         (yyval.val) = (yyvsp[(1) - (1)].val);
06663 
06664                     }
06665     break;
06666 
06667   case 123:
06668 
06669 /* Line 1806 of yacc.c  */
06670 #line 1863 "ripper.y"
06671     {
06672 #if 0
06673                         (yyval.val) = NEW_LIT(ID2SYM((yyvsp[(1) - (1)].val)));
06674 #endif
06675                         (yyval.val) = dispatch1(symbol_literal, (yyvsp[(1) - (1)].val));
06676 
06677                     }
06678     break;
06679 
06680   case 125:
06681 
06682 /* Line 1806 of yacc.c  */
06683 #line 1874 "ripper.y"
06684     {
06685 #if 0
06686                         (yyval.val) = NEW_UNDEF((yyvsp[(1) - (1)].val));
06687 #endif
06688                         (yyval.val) = rb_ary_new3(1, (yyvsp[(1) - (1)].val));
06689 
06690                     }
06691     break;
06692 
06693   case 126:
06694 
06695 /* Line 1806 of yacc.c  */
06696 #line 1881 "ripper.y"
06697     {lex_state = EXPR_FNAME;}
06698     break;
06699 
06700   case 127:
06701 
06702 /* Line 1806 of yacc.c  */
06703 #line 1882 "ripper.y"
06704     {
06705 #if 0
06706                         (yyval.val) = block_append((yyvsp[(1) - (4)].val), NEW_UNDEF((yyvsp[(4) - (4)].val)));
06707 #endif
06708                         rb_ary_push((yyvsp[(1) - (4)].val), (yyvsp[(4) - (4)].val));
06709 
06710                     }
06711     break;
06712 
06713   case 128:
06714 
06715 /* Line 1806 of yacc.c  */
06716 #line 1891 "ripper.y"
06717     { ifndef_ripper((yyval.val) = '|'); }
06718     break;
06719 
06720   case 129:
06721 
06722 /* Line 1806 of yacc.c  */
06723 #line 1892 "ripper.y"
06724     { ifndef_ripper((yyval.val) = '^'); }
06725     break;
06726 
06727   case 130:
06728 
06729 /* Line 1806 of yacc.c  */
06730 #line 1893 "ripper.y"
06731     { ifndef_ripper((yyval.val) = '&'); }
06732     break;
06733 
06734   case 131:
06735 
06736 /* Line 1806 of yacc.c  */
06737 #line 1894 "ripper.y"
06738     { ifndef_ripper((yyval.val) = tCMP); }
06739     break;
06740 
06741   case 132:
06742 
06743 /* Line 1806 of yacc.c  */
06744 #line 1895 "ripper.y"
06745     { ifndef_ripper((yyval.val) = tEQ); }
06746     break;
06747 
06748   case 133:
06749 
06750 /* Line 1806 of yacc.c  */
06751 #line 1896 "ripper.y"
06752     { ifndef_ripper((yyval.val) = tEQQ); }
06753     break;
06754 
06755   case 134:
06756 
06757 /* Line 1806 of yacc.c  */
06758 #line 1897 "ripper.y"
06759     { ifndef_ripper((yyval.val) = tMATCH); }
06760     break;
06761 
06762   case 135:
06763 
06764 /* Line 1806 of yacc.c  */
06765 #line 1898 "ripper.y"
06766     { ifndef_ripper((yyval.val) = tNMATCH); }
06767     break;
06768 
06769   case 136:
06770 
06771 /* Line 1806 of yacc.c  */
06772 #line 1899 "ripper.y"
06773     { ifndef_ripper((yyval.val) = '>'); }
06774     break;
06775 
06776   case 137:
06777 
06778 /* Line 1806 of yacc.c  */
06779 #line 1900 "ripper.y"
06780     { ifndef_ripper((yyval.val) = tGEQ); }
06781     break;
06782 
06783   case 138:
06784 
06785 /* Line 1806 of yacc.c  */
06786 #line 1901 "ripper.y"
06787     { ifndef_ripper((yyval.val) = '<'); }
06788     break;
06789 
06790   case 139:
06791 
06792 /* Line 1806 of yacc.c  */
06793 #line 1902 "ripper.y"
06794     { ifndef_ripper((yyval.val) = tLEQ); }
06795     break;
06796 
06797   case 140:
06798 
06799 /* Line 1806 of yacc.c  */
06800 #line 1903 "ripper.y"
06801     { ifndef_ripper((yyval.val) = tNEQ); }
06802     break;
06803 
06804   case 141:
06805 
06806 /* Line 1806 of yacc.c  */
06807 #line 1904 "ripper.y"
06808     { ifndef_ripper((yyval.val) = tLSHFT); }
06809     break;
06810 
06811   case 142:
06812 
06813 /* Line 1806 of yacc.c  */
06814 #line 1905 "ripper.y"
06815     { ifndef_ripper((yyval.val) = tRSHFT); }
06816     break;
06817 
06818   case 143:
06819 
06820 /* Line 1806 of yacc.c  */
06821 #line 1906 "ripper.y"
06822     { ifndef_ripper((yyval.val) = '+'); }
06823     break;
06824 
06825   case 144:
06826 
06827 /* Line 1806 of yacc.c  */
06828 #line 1907 "ripper.y"
06829     { ifndef_ripper((yyval.val) = '-'); }
06830     break;
06831 
06832   case 145:
06833 
06834 /* Line 1806 of yacc.c  */
06835 #line 1908 "ripper.y"
06836     { ifndef_ripper((yyval.val) = '*'); }
06837     break;
06838 
06839   case 146:
06840 
06841 /* Line 1806 of yacc.c  */
06842 #line 1909 "ripper.y"
06843     { ifndef_ripper((yyval.val) = '*'); }
06844     break;
06845 
06846   case 147:
06847 
06848 /* Line 1806 of yacc.c  */
06849 #line 1910 "ripper.y"
06850     { ifndef_ripper((yyval.val) = '/'); }
06851     break;
06852 
06853   case 148:
06854 
06855 /* Line 1806 of yacc.c  */
06856 #line 1911 "ripper.y"
06857     { ifndef_ripper((yyval.val) = '%'); }
06858     break;
06859 
06860   case 149:
06861 
06862 /* Line 1806 of yacc.c  */
06863 #line 1912 "ripper.y"
06864     { ifndef_ripper((yyval.val) = tPOW); }
06865     break;
06866 
06867   case 150:
06868 
06869 /* Line 1806 of yacc.c  */
06870 #line 1913 "ripper.y"
06871     { ifndef_ripper((yyval.val) = tDSTAR); }
06872     break;
06873 
06874   case 151:
06875 
06876 /* Line 1806 of yacc.c  */
06877 #line 1914 "ripper.y"
06878     { ifndef_ripper((yyval.val) = '!'); }
06879     break;
06880 
06881   case 152:
06882 
06883 /* Line 1806 of yacc.c  */
06884 #line 1915 "ripper.y"
06885     { ifndef_ripper((yyval.val) = '~'); }
06886     break;
06887 
06888   case 153:
06889 
06890 /* Line 1806 of yacc.c  */
06891 #line 1916 "ripper.y"
06892     { ifndef_ripper((yyval.val) = tUPLUS); }
06893     break;
06894 
06895   case 154:
06896 
06897 /* Line 1806 of yacc.c  */
06898 #line 1917 "ripper.y"
06899     { ifndef_ripper((yyval.val) = tUMINUS); }
06900     break;
06901 
06902   case 155:
06903 
06904 /* Line 1806 of yacc.c  */
06905 #line 1918 "ripper.y"
06906     { ifndef_ripper((yyval.val) = tAREF); }
06907     break;
06908 
06909   case 156:
06910 
06911 /* Line 1806 of yacc.c  */
06912 #line 1919 "ripper.y"
06913     { ifndef_ripper((yyval.val) = tASET); }
06914     break;
06915 
06916   case 157:
06917 
06918 /* Line 1806 of yacc.c  */
06919 #line 1920 "ripper.y"
06920     { ifndef_ripper((yyval.val) = '`'); }
06921     break;
06922 
06923   case 199:
06924 
06925 /* Line 1806 of yacc.c  */
06926 #line 1938 "ripper.y"
06927     {
06928 #if 0
06929                         value_expr((yyvsp[(3) - (3)].val));
06930                         (yyval.val) = node_assign((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
06931 #endif
06932                         (yyval.val) = dispatch2(assign, (yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
06933 
06934                     }
06935     break;
06936 
06937   case 200:
06938 
06939 /* Line 1806 of yacc.c  */
06940 #line 1947 "ripper.y"
06941     {
06942 #if 0
06943                         value_expr((yyvsp[(3) - (5)].val));
06944                         (yyvsp[(3) - (5)].val) = NEW_RESCUE((yyvsp[(3) - (5)].val), NEW_RESBODY(0,(yyvsp[(5) - (5)].val),0), 0);
06945                         (yyval.val) = node_assign((yyvsp[(1) - (5)].val), (yyvsp[(3) - (5)].val));
06946 #endif
06947                         (yyval.val) = dispatch2(assign, (yyvsp[(1) - (5)].val), dispatch2(rescue_mod, (yyvsp[(3) - (5)].val), (yyvsp[(5) - (5)].val)));
06948 
06949                     }
06950     break;
06951 
06952   case 201:
06953 
06954 /* Line 1806 of yacc.c  */
06955 #line 1957 "ripper.y"
06956     {
06957                         value_expr((yyvsp[(3) - (3)].val));
06958                         (yyval.val) = new_op_assign((yyvsp[(1) - (3)].val), (yyvsp[(2) - (3)].val), (yyvsp[(3) - (3)].val));
06959                     }
06960     break;
06961 
06962   case 202:
06963 
06964 /* Line 1806 of yacc.c  */
06965 #line 1962 "ripper.y"
06966     {
06967 #if 0
06968                         value_expr((yyvsp[(3) - (5)].val));
06969                         (yyvsp[(3) - (5)].val) = NEW_RESCUE((yyvsp[(3) - (5)].val), NEW_RESBODY(0,(yyvsp[(5) - (5)].val),0), 0);
06970 #endif
06971                         (yyvsp[(3) - (5)].val) = dispatch2(rescue_mod, (yyvsp[(3) - (5)].val), (yyvsp[(5) - (5)].val));
06972 
06973                         (yyval.val) = new_op_assign((yyvsp[(1) - (5)].val), (yyvsp[(2) - (5)].val), (yyvsp[(3) - (5)].val));
06974                     }
06975     break;
06976 
06977   case 203:
06978 
06979 /* Line 1806 of yacc.c  */
06980 #line 1972 "ripper.y"
06981     {
06982 #if 0
06983                         NODE *args;
06984 
06985                         value_expr((yyvsp[(6) - (6)].val));
06986                         if (!(yyvsp[(3) - (6)].val)) (yyvsp[(3) - (6)].val) = NEW_ZARRAY();
06987                         if (nd_type((yyvsp[(3) - (6)].val)) == NODE_BLOCK_PASS) {
06988                             args = NEW_ARGSCAT((yyvsp[(3) - (6)].val), (yyvsp[(6) - (6)].val));
06989                         }
06990                         else {
06991                             args = arg_concat((yyvsp[(3) - (6)].val), (yyvsp[(6) - (6)].val));
06992                         }
06993                         if ((yyvsp[(5) - (6)].val) == tOROP) {
06994                             (yyvsp[(5) - (6)].val) = 0;
06995                         }
06996                         else if ((yyvsp[(5) - (6)].val) == tANDOP) {
06997                             (yyvsp[(5) - (6)].val) = 1;
06998                         }
06999                         (yyval.val) = NEW_OP_ASGN1((yyvsp[(1) - (6)].val), (yyvsp[(5) - (6)].val), args);
07000                         fixpos((yyval.val), (yyvsp[(1) - (6)].val));
07001 #endif
07002                         (yyvsp[(1) - (6)].val) = dispatch2(aref_field, (yyvsp[(1) - (6)].val), escape_Qundef((yyvsp[(3) - (6)].val)));
07003                         (yyval.val) = dispatch3(opassign, (yyvsp[(1) - (6)].val), (yyvsp[(5) - (6)].val), (yyvsp[(6) - (6)].val));
07004 
07005                     }
07006     break;
07007 
07008   case 204:
07009 
07010 /* Line 1806 of yacc.c  */
07011 #line 1998 "ripper.y"
07012     {
07013                         value_expr((yyvsp[(5) - (5)].val));
07014                         (yyval.val) = new_attr_op_assign((yyvsp[(1) - (5)].val), ripper_id2sym('.'), (yyvsp[(3) - (5)].val), (yyvsp[(4) - (5)].val), (yyvsp[(5) - (5)].val));
07015                     }
07016     break;
07017 
07018   case 205:
07019 
07020 /* Line 1806 of yacc.c  */
07021 #line 2003 "ripper.y"
07022     {
07023                         value_expr((yyvsp[(5) - (5)].val));
07024                         (yyval.val) = new_attr_op_assign((yyvsp[(1) - (5)].val), ripper_id2sym('.'), (yyvsp[(3) - (5)].val), (yyvsp[(4) - (5)].val), (yyvsp[(5) - (5)].val));
07025                     }
07026     break;
07027 
07028   case 206:
07029 
07030 /* Line 1806 of yacc.c  */
07031 #line 2008 "ripper.y"
07032     {
07033                         value_expr((yyvsp[(5) - (5)].val));
07034                         (yyval.val) = new_attr_op_assign((yyvsp[(1) - (5)].val), ripper_intern("::"), (yyvsp[(3) - (5)].val), (yyvsp[(4) - (5)].val), (yyvsp[(5) - (5)].val));
07035                     }
07036     break;
07037 
07038   case 207:
07039 
07040 /* Line 1806 of yacc.c  */
07041 #line 2013 "ripper.y"
07042     {
07043 #if 0
07044                         (yyval.val) = NEW_COLON2((yyvsp[(1) - (5)].val), (yyvsp[(3) - (5)].val));
07045                         (yyval.val) = new_const_op_assign((yyval.val), (yyvsp[(4) - (5)].val), (yyvsp[(5) - (5)].val));
07046 #endif
07047                         (yyval.val) = dispatch2(const_path_field, (yyvsp[(1) - (5)].val), (yyvsp[(3) - (5)].val));
07048                         (yyval.val) = dispatch3(opassign, (yyval.val), (yyvsp[(4) - (5)].val), (yyvsp[(5) - (5)].val));
07049 
07050                     }
07051     break;
07052 
07053   case 208:
07054 
07055 /* Line 1806 of yacc.c  */
07056 #line 2023 "ripper.y"
07057     {
07058 #if 0
07059                         (yyval.val) = NEW_COLON3((yyvsp[(2) - (4)].val));
07060                         (yyval.val) = new_const_op_assign((yyval.val), (yyvsp[(3) - (4)].val), (yyvsp[(4) - (4)].val));
07061 #endif
07062                         (yyval.val) = dispatch1(top_const_field, (yyvsp[(2) - (4)].val));
07063                         (yyval.val) = dispatch3(opassign, (yyval.val), (yyvsp[(3) - (4)].val), (yyvsp[(4) - (4)].val));
07064 
07065                     }
07066     break;
07067 
07068   case 209:
07069 
07070 /* Line 1806 of yacc.c  */
07071 #line 2033 "ripper.y"
07072     {
07073 #if 0
07074                         rb_backref_error((yyvsp[(1) - (3)].val));
07075                         (yyval.val) = NEW_BEGIN(0);
07076 #endif
07077                         (yyval.val) = dispatch1(var_field, (yyvsp[(1) - (3)].val));
07078                         (yyval.val) = dispatch3(opassign, (yyval.val), (yyvsp[(2) - (3)].val), (yyvsp[(3) - (3)].val));
07079                         (yyval.val) = dispatch1(assign_error, (yyval.val));
07080 
07081                     }
07082     break;
07083 
07084   case 210:
07085 
07086 /* Line 1806 of yacc.c  */
07087 #line 2044 "ripper.y"
07088     {
07089 #if 0
07090                         value_expr((yyvsp[(1) - (3)].val));
07091                         value_expr((yyvsp[(3) - (3)].val));
07092                         (yyval.val) = NEW_DOT2((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
07093                         if (nd_type((yyvsp[(1) - (3)].val)) == NODE_LIT && FIXNUM_P((yyvsp[(1) - (3)].val)->nd_lit) &&
07094                             nd_type((yyvsp[(3) - (3)].val)) == NODE_LIT && FIXNUM_P((yyvsp[(3) - (3)].val)->nd_lit)) {
07095                             deferred_nodes = list_append(deferred_nodes, (yyval.val));
07096                         }
07097 #endif
07098                         (yyval.val) = dispatch2(dot2, (yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
07099 
07100                     }
07101     break;
07102 
07103   case 211:
07104 
07105 /* Line 1806 of yacc.c  */
07106 #line 2058 "ripper.y"
07107     {
07108 #if 0
07109                         value_expr((yyvsp[(1) - (3)].val));
07110                         value_expr((yyvsp[(3) - (3)].val));
07111                         (yyval.val) = NEW_DOT3((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
07112                         if (nd_type((yyvsp[(1) - (3)].val)) == NODE_LIT && FIXNUM_P((yyvsp[(1) - (3)].val)->nd_lit) &&
07113                             nd_type((yyvsp[(3) - (3)].val)) == NODE_LIT && FIXNUM_P((yyvsp[(3) - (3)].val)->nd_lit)) {
07114                             deferred_nodes = list_append(deferred_nodes, (yyval.val));
07115                         }
07116 #endif
07117                         (yyval.val) = dispatch2(dot3, (yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
07118 
07119                     }
07120     break;
07121 
07122   case 212:
07123 
07124 /* Line 1806 of yacc.c  */
07125 #line 2072 "ripper.y"
07126     {
07127 #if 0
07128                         (yyval.val) = call_bin_op((yyvsp[(1) - (3)].val), '+', (yyvsp[(3) - (3)].val));
07129 #endif
07130                         (yyval.val) = dispatch3(binary, (yyvsp[(1) - (3)].val), ID2SYM('+'), (yyvsp[(3) - (3)].val));
07131 
07132                     }
07133     break;
07134 
07135   case 213:
07136 
07137 /* Line 1806 of yacc.c  */
07138 #line 2080 "ripper.y"
07139     {
07140 #if 0
07141                         (yyval.val) = call_bin_op((yyvsp[(1) - (3)].val), '-', (yyvsp[(3) - (3)].val));
07142 #endif
07143                         (yyval.val) = dispatch3(binary, (yyvsp[(1) - (3)].val), ID2SYM('-'), (yyvsp[(3) - (3)].val));
07144 
07145                     }
07146     break;
07147 
07148   case 214:
07149 
07150 /* Line 1806 of yacc.c  */
07151 #line 2088 "ripper.y"
07152     {
07153 #if 0
07154                         (yyval.val) = call_bin_op((yyvsp[(1) - (3)].val), '*', (yyvsp[(3) - (3)].val));
07155 #endif
07156                         (yyval.val) = dispatch3(binary, (yyvsp[(1) - (3)].val), ID2SYM('*'), (yyvsp[(3) - (3)].val));
07157 
07158                     }
07159     break;
07160 
07161   case 215:
07162 
07163 /* Line 1806 of yacc.c  */
07164 #line 2096 "ripper.y"
07165     {
07166 #if 0
07167                         (yyval.val) = call_bin_op((yyvsp[(1) - (3)].val), '/', (yyvsp[(3) - (3)].val));
07168 #endif
07169                         (yyval.val) = dispatch3(binary, (yyvsp[(1) - (3)].val), ID2SYM('/'), (yyvsp[(3) - (3)].val));
07170 
07171                     }
07172     break;
07173 
07174   case 216:
07175 
07176 /* Line 1806 of yacc.c  */
07177 #line 2104 "ripper.y"
07178     {
07179 #if 0
07180                         (yyval.val) = call_bin_op((yyvsp[(1) - (3)].val), '%', (yyvsp[(3) - (3)].val));
07181 #endif
07182                         (yyval.val) = dispatch3(binary, (yyvsp[(1) - (3)].val), ID2SYM('%'), (yyvsp[(3) - (3)].val));
07183 
07184                     }
07185     break;
07186 
07187   case 217:
07188 
07189 /* Line 1806 of yacc.c  */
07190 #line 2112 "ripper.y"
07191     {
07192 #if 0
07193                         (yyval.val) = call_bin_op((yyvsp[(1) - (3)].val), tPOW, (yyvsp[(3) - (3)].val));
07194 #endif
07195                         (yyval.val) = dispatch3(binary, (yyvsp[(1) - (3)].val), ripper_intern("**"), (yyvsp[(3) - (3)].val));
07196 
07197                     }
07198     break;
07199 
07200   case 218:
07201 
07202 /* Line 1806 of yacc.c  */
07203 #line 2120 "ripper.y"
07204     {
07205 #if 0
07206                         (yyval.val) = NEW_CALL(call_bin_op((yyvsp[(2) - (4)].val), tPOW, (yyvsp[(4) - (4)].val)), tUMINUS, 0);
07207 #endif
07208                         (yyval.val) = dispatch3(binary, (yyvsp[(2) - (4)].val), ripper_intern("**"), (yyvsp[(4) - (4)].val));
07209                         (yyval.val) = dispatch2(unary, ripper_intern("-@"), (yyval.val));
07210 
07211                     }
07212     break;
07213 
07214   case 219:
07215 
07216 /* Line 1806 of yacc.c  */
07217 #line 2129 "ripper.y"
07218     {
07219 #if 0
07220                         (yyval.val) = NEW_CALL(call_bin_op((yyvsp[(2) - (4)].val), tPOW, (yyvsp[(4) - (4)].val)), tUMINUS, 0);
07221 #endif
07222                         (yyval.val) = dispatch3(binary, (yyvsp[(2) - (4)].val), ripper_intern("**"), (yyvsp[(4) - (4)].val));
07223                         (yyval.val) = dispatch2(unary, ripper_intern("-@"), (yyval.val));
07224 
07225                     }
07226     break;
07227 
07228   case 220:
07229 
07230 /* Line 1806 of yacc.c  */
07231 #line 2138 "ripper.y"
07232     {
07233 #if 0
07234                         (yyval.val) = call_uni_op((yyvsp[(2) - (2)].val), tUPLUS);
07235 #endif
07236                         (yyval.val) = dispatch2(unary, ripper_intern("+@"), (yyvsp[(2) - (2)].val));
07237 
07238                     }
07239     break;
07240 
07241   case 221:
07242 
07243 /* Line 1806 of yacc.c  */
07244 #line 2146 "ripper.y"
07245     {
07246 #if 0
07247                         (yyval.val) = call_uni_op((yyvsp[(2) - (2)].val), tUMINUS);
07248 #endif
07249                         (yyval.val) = dispatch2(unary, ripper_intern("-@"), (yyvsp[(2) - (2)].val));
07250 
07251                     }
07252     break;
07253 
07254   case 222:
07255 
07256 /* Line 1806 of yacc.c  */
07257 #line 2154 "ripper.y"
07258     {
07259 #if 0
07260                         (yyval.val) = call_bin_op((yyvsp[(1) - (3)].val), '|', (yyvsp[(3) - (3)].val));
07261 #endif
07262                         (yyval.val) = dispatch3(binary, (yyvsp[(1) - (3)].val), ID2SYM('|'), (yyvsp[(3) - (3)].val));
07263 
07264                     }
07265     break;
07266 
07267   case 223:
07268 
07269 /* Line 1806 of yacc.c  */
07270 #line 2162 "ripper.y"
07271     {
07272 #if 0
07273                         (yyval.val) = call_bin_op((yyvsp[(1) - (3)].val), '^', (yyvsp[(3) - (3)].val));
07274 #endif
07275                         (yyval.val) = dispatch3(binary, (yyvsp[(1) - (3)].val), ID2SYM('^'), (yyvsp[(3) - (3)].val));
07276 
07277                     }
07278     break;
07279 
07280   case 224:
07281 
07282 /* Line 1806 of yacc.c  */
07283 #line 2170 "ripper.y"
07284     {
07285 #if 0
07286                         (yyval.val) = call_bin_op((yyvsp[(1) - (3)].val), '&', (yyvsp[(3) - (3)].val));
07287 #endif
07288                         (yyval.val) = dispatch3(binary, (yyvsp[(1) - (3)].val), ID2SYM('&'), (yyvsp[(3) - (3)].val));
07289 
07290                     }
07291     break;
07292 
07293   case 225:
07294 
07295 /* Line 1806 of yacc.c  */
07296 #line 2178 "ripper.y"
07297     {
07298 #if 0
07299                         (yyval.val) = call_bin_op((yyvsp[(1) - (3)].val), tCMP, (yyvsp[(3) - (3)].val));
07300 #endif
07301                         (yyval.val) = dispatch3(binary, (yyvsp[(1) - (3)].val), ripper_intern("<=>"), (yyvsp[(3) - (3)].val));
07302 
07303                     }
07304     break;
07305 
07306   case 226:
07307 
07308 /* Line 1806 of yacc.c  */
07309 #line 2186 "ripper.y"
07310     {
07311 #if 0
07312                         (yyval.val) = call_bin_op((yyvsp[(1) - (3)].val), '>', (yyvsp[(3) - (3)].val));
07313 #endif
07314                         (yyval.val) = dispatch3(binary, (yyvsp[(1) - (3)].val), ID2SYM('>'), (yyvsp[(3) - (3)].val));
07315 
07316                     }
07317     break;
07318 
07319   case 227:
07320 
07321 /* Line 1806 of yacc.c  */
07322 #line 2194 "ripper.y"
07323     {
07324 #if 0
07325                         (yyval.val) = call_bin_op((yyvsp[(1) - (3)].val), tGEQ, (yyvsp[(3) - (3)].val));
07326 #endif
07327                         (yyval.val) = dispatch3(binary, (yyvsp[(1) - (3)].val), ripper_intern(">="), (yyvsp[(3) - (3)].val));
07328 
07329                     }
07330     break;
07331 
07332   case 228:
07333 
07334 /* Line 1806 of yacc.c  */
07335 #line 2202 "ripper.y"
07336     {
07337 #if 0
07338                         (yyval.val) = call_bin_op((yyvsp[(1) - (3)].val), '<', (yyvsp[(3) - (3)].val));
07339 #endif
07340                         (yyval.val) = dispatch3(binary, (yyvsp[(1) - (3)].val), ID2SYM('<'), (yyvsp[(3) - (3)].val));
07341 
07342                     }
07343     break;
07344 
07345   case 229:
07346 
07347 /* Line 1806 of yacc.c  */
07348 #line 2210 "ripper.y"
07349     {
07350 #if 0
07351                         (yyval.val) = call_bin_op((yyvsp[(1) - (3)].val), tLEQ, (yyvsp[(3) - (3)].val));
07352 #endif
07353                         (yyval.val) = dispatch3(binary, (yyvsp[(1) - (3)].val), ripper_intern("<="), (yyvsp[(3) - (3)].val));
07354 
07355                     }
07356     break;
07357 
07358   case 230:
07359 
07360 /* Line 1806 of yacc.c  */
07361 #line 2218 "ripper.y"
07362     {
07363 #if 0
07364                         (yyval.val) = call_bin_op((yyvsp[(1) - (3)].val), tEQ, (yyvsp[(3) - (3)].val));
07365 #endif
07366                         (yyval.val) = dispatch3(binary, (yyvsp[(1) - (3)].val), ripper_intern("=="), (yyvsp[(3) - (3)].val));
07367 
07368                     }
07369     break;
07370 
07371   case 231:
07372 
07373 /* Line 1806 of yacc.c  */
07374 #line 2226 "ripper.y"
07375     {
07376 #if 0
07377                         (yyval.val) = call_bin_op((yyvsp[(1) - (3)].val), tEQQ, (yyvsp[(3) - (3)].val));
07378 #endif
07379                         (yyval.val) = dispatch3(binary, (yyvsp[(1) - (3)].val), ripper_intern("==="), (yyvsp[(3) - (3)].val));
07380 
07381                     }
07382     break;
07383 
07384   case 232:
07385 
07386 /* Line 1806 of yacc.c  */
07387 #line 2234 "ripper.y"
07388     {
07389 #if 0
07390                         (yyval.val) = call_bin_op((yyvsp[(1) - (3)].val), tNEQ, (yyvsp[(3) - (3)].val));
07391 #endif
07392                         (yyval.val) = dispatch3(binary, (yyvsp[(1) - (3)].val), ripper_intern("!="), (yyvsp[(3) - (3)].val));
07393 
07394                     }
07395     break;
07396 
07397   case 233:
07398 
07399 /* Line 1806 of yacc.c  */
07400 #line 2242 "ripper.y"
07401     {
07402 #if 0
07403                         (yyval.val) = match_op((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
07404                         if (nd_type((yyvsp[(1) - (3)].val)) == NODE_LIT && RB_TYPE_P((yyvsp[(1) - (3)].val)->nd_lit, T_REGEXP)) {
07405                             (yyval.val) = reg_named_capture_assign((yyvsp[(1) - (3)].val)->nd_lit, (yyval.val));
07406                         }
07407 #endif
07408                         (yyval.val) = dispatch3(binary, (yyvsp[(1) - (3)].val), ripper_intern("=~"), (yyvsp[(3) - (3)].val));
07409 
07410                     }
07411     break;
07412 
07413   case 234:
07414 
07415 /* Line 1806 of yacc.c  */
07416 #line 2253 "ripper.y"
07417     {
07418 #if 0
07419                         (yyval.val) = call_bin_op((yyvsp[(1) - (3)].val), tNMATCH, (yyvsp[(3) - (3)].val));
07420 #endif
07421                         (yyval.val) = dispatch3(binary, (yyvsp[(1) - (3)].val), ripper_intern("!~"), (yyvsp[(3) - (3)].val));
07422 
07423                     }
07424     break;
07425 
07426   case 235:
07427 
07428 /* Line 1806 of yacc.c  */
07429 #line 2261 "ripper.y"
07430     {
07431 #if 0
07432                         (yyval.val) = call_uni_op(cond((yyvsp[(2) - (2)].val)), '!');
07433 #endif
07434                         (yyval.val) = dispatch2(unary, ID2SYM('!'), (yyvsp[(2) - (2)].val));
07435 
07436                     }
07437     break;
07438 
07439   case 236:
07440 
07441 /* Line 1806 of yacc.c  */
07442 #line 2269 "ripper.y"
07443     {
07444 #if 0
07445                         (yyval.val) = call_uni_op((yyvsp[(2) - (2)].val), '~');
07446 #endif
07447                         (yyval.val) = dispatch2(unary, ID2SYM('~'), (yyvsp[(2) - (2)].val));
07448 
07449                     }
07450     break;
07451 
07452   case 237:
07453 
07454 /* Line 1806 of yacc.c  */
07455 #line 2277 "ripper.y"
07456     {
07457 #if 0
07458                         (yyval.val) = call_bin_op((yyvsp[(1) - (3)].val), tLSHFT, (yyvsp[(3) - (3)].val));
07459 #endif
07460                         (yyval.val) = dispatch3(binary, (yyvsp[(1) - (3)].val), ripper_intern("<<"), (yyvsp[(3) - (3)].val));
07461 
07462                     }
07463     break;
07464 
07465   case 238:
07466 
07467 /* Line 1806 of yacc.c  */
07468 #line 2285 "ripper.y"
07469     {
07470 #if 0
07471                         (yyval.val) = call_bin_op((yyvsp[(1) - (3)].val), tRSHFT, (yyvsp[(3) - (3)].val));
07472 #endif
07473                         (yyval.val) = dispatch3(binary, (yyvsp[(1) - (3)].val), ripper_intern(">>"), (yyvsp[(3) - (3)].val));
07474 
07475                     }
07476     break;
07477 
07478   case 239:
07479 
07480 /* Line 1806 of yacc.c  */
07481 #line 2293 "ripper.y"
07482     {
07483 #if 0
07484                         (yyval.val) = logop(NODE_AND, (yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
07485 #endif
07486                         (yyval.val) = dispatch3(binary, (yyvsp[(1) - (3)].val), ripper_intern("&&"), (yyvsp[(3) - (3)].val));
07487 
07488                     }
07489     break;
07490 
07491   case 240:
07492 
07493 /* Line 1806 of yacc.c  */
07494 #line 2301 "ripper.y"
07495     {
07496 #if 0
07497                         (yyval.val) = logop(NODE_OR, (yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
07498 #endif
07499                         (yyval.val) = dispatch3(binary, (yyvsp[(1) - (3)].val), ripper_intern("||"), (yyvsp[(3) - (3)].val));
07500 
07501                     }
07502     break;
07503 
07504   case 241:
07505 
07506 /* Line 1806 of yacc.c  */
07507 #line 2308 "ripper.y"
07508     {in_defined = 1;}
07509     break;
07510 
07511   case 242:
07512 
07513 /* Line 1806 of yacc.c  */
07514 #line 2309 "ripper.y"
07515     {
07516 #if 0
07517                         in_defined = 0;
07518                         (yyval.val) = NEW_DEFINED((yyvsp[(4) - (4)].val));
07519 #endif
07520                         in_defined = 0;
07521                         (yyval.val) = dispatch1(defined, (yyvsp[(4) - (4)].val));
07522 
07523                     }
07524     break;
07525 
07526   case 243:
07527 
07528 /* Line 1806 of yacc.c  */
07529 #line 2319 "ripper.y"
07530     {
07531 #if 0
07532                         value_expr((yyvsp[(1) - (6)].val));
07533                         (yyval.val) = NEW_IF(cond((yyvsp[(1) - (6)].val)), (yyvsp[(3) - (6)].val), (yyvsp[(6) - (6)].val));
07534                         fixpos((yyval.val), (yyvsp[(1) - (6)].val));
07535 #endif
07536                         (yyval.val) = dispatch3(ifop, (yyvsp[(1) - (6)].val), (yyvsp[(3) - (6)].val), (yyvsp[(6) - (6)].val));
07537 
07538                     }
07539     break;
07540 
07541   case 244:
07542 
07543 /* Line 1806 of yacc.c  */
07544 #line 2329 "ripper.y"
07545     {
07546                         (yyval.val) = (yyvsp[(1) - (1)].val);
07547                     }
07548     break;
07549 
07550   case 245:
07551 
07552 /* Line 1806 of yacc.c  */
07553 #line 2335 "ripper.y"
07554     {
07555 #if 0
07556                         value_expr((yyvsp[(1) - (1)].val));
07557                         (yyval.val) = (yyvsp[(1) - (1)].val);
07558                         if (!(yyval.val)) (yyval.val) = NEW_NIL();
07559 #endif
07560                         (yyval.val) = (yyvsp[(1) - (1)].val);
07561 
07562                     }
07563     break;
07564 
07565   case 247:
07566 
07567 /* Line 1806 of yacc.c  */
07568 #line 2348 "ripper.y"
07569     {
07570                         (yyval.val) = (yyvsp[(1) - (2)].val);
07571                     }
07572     break;
07573 
07574   case 248:
07575 
07576 /* Line 1806 of yacc.c  */
07577 #line 2352 "ripper.y"
07578     {
07579 #if 0
07580                         (yyval.val) = arg_append((yyvsp[(1) - (4)].val), NEW_HASH((yyvsp[(3) - (4)].val)));
07581 #endif
07582                         (yyval.val) = arg_add_assocs((yyvsp[(1) - (4)].val), (yyvsp[(3) - (4)].val));
07583 
07584                     }
07585     break;
07586 
07587   case 249:
07588 
07589 /* Line 1806 of yacc.c  */
07590 #line 2360 "ripper.y"
07591     {
07592 #if 0
07593                         (yyval.val) = NEW_LIST(NEW_HASH((yyvsp[(1) - (2)].val)));
07594 #endif
07595                         (yyval.val) = arg_add_assocs(arg_new(), (yyvsp[(1) - (2)].val));
07596 
07597                     }
07598     break;
07599 
07600   case 250:
07601 
07602 /* Line 1806 of yacc.c  */
07603 #line 2370 "ripper.y"
07604     {
07605 #if 0
07606                         (yyval.val) = (yyvsp[(2) - (3)].val);
07607 #endif
07608                         (yyval.val) = dispatch1(arg_paren, escape_Qundef((yyvsp[(2) - (3)].val)));
07609 
07610                     }
07611     break;
07612 
07613   case 255:
07614 
07615 /* Line 1806 of yacc.c  */
07616 #line 2386 "ripper.y"
07617     {
07618                       (yyval.val) = (yyvsp[(1) - (2)].val);
07619                     }
07620     break;
07621 
07622   case 256:
07623 
07624 /* Line 1806 of yacc.c  */
07625 #line 2390 "ripper.y"
07626     {
07627 #if 0
07628                         (yyval.val) = arg_append((yyvsp[(1) - (4)].val), NEW_HASH((yyvsp[(3) - (4)].val)));
07629 #endif
07630                         (yyval.val) = arg_add_assocs((yyvsp[(1) - (4)].val), (yyvsp[(3) - (4)].val));
07631 
07632                     }
07633     break;
07634 
07635   case 257:
07636 
07637 /* Line 1806 of yacc.c  */
07638 #line 2398 "ripper.y"
07639     {
07640 #if 0
07641                         (yyval.val) = NEW_LIST(NEW_HASH((yyvsp[(1) - (2)].val)));
07642 #endif
07643                         (yyval.val) = arg_add_assocs(arg_new(), (yyvsp[(1) - (2)].val));
07644 
07645                     }
07646     break;
07647 
07648   case 258:
07649 
07650 /* Line 1806 of yacc.c  */
07651 #line 2408 "ripper.y"
07652     {
07653 #if 0
07654                         value_expr((yyvsp[(1) - (1)].val));
07655                         (yyval.val) = NEW_LIST((yyvsp[(1) - (1)].val));
07656 #endif
07657                         (yyval.val) = arg_add(arg_new(), (yyvsp[(1) - (1)].val));
07658 
07659                     }
07660     break;
07661 
07662   case 259:
07663 
07664 /* Line 1806 of yacc.c  */
07665 #line 2417 "ripper.y"
07666     {
07667 #if 0
07668                         (yyval.val) = arg_blk_pass((yyvsp[(1) - (2)].val), (yyvsp[(2) - (2)].val));
07669 #endif
07670                         (yyval.val) = arg_add_optblock((yyvsp[(1) - (2)].val), (yyvsp[(2) - (2)].val));
07671 
07672                     }
07673     break;
07674 
07675   case 260:
07676 
07677 /* Line 1806 of yacc.c  */
07678 #line 2425 "ripper.y"
07679     {
07680 #if 0
07681                         (yyval.val) = NEW_LIST(NEW_HASH((yyvsp[(1) - (2)].val)));
07682                         (yyval.val) = arg_blk_pass((yyval.val), (yyvsp[(2) - (2)].val));
07683 #endif
07684                         (yyval.val) = arg_add_assocs(arg_new(), (yyvsp[(1) - (2)].val));
07685                         (yyval.val) = arg_add_optblock((yyval.val), (yyvsp[(2) - (2)].val));
07686 
07687                     }
07688     break;
07689 
07690   case 261:
07691 
07692 /* Line 1806 of yacc.c  */
07693 #line 2435 "ripper.y"
07694     {
07695 #if 0
07696                         (yyval.val) = arg_append((yyvsp[(1) - (4)].val), NEW_HASH((yyvsp[(3) - (4)].val)));
07697                         (yyval.val) = arg_blk_pass((yyval.val), (yyvsp[(4) - (4)].val));
07698 #endif
07699                         (yyval.val) = arg_add_optblock(arg_add_assocs((yyvsp[(1) - (4)].val), (yyvsp[(3) - (4)].val)), (yyvsp[(4) - (4)].val));
07700 
07701                     }
07702     break;
07703 
07704   case 262:
07705 
07706 /* Line 1806 of yacc.c  */
07707 #line 2446 "ripper.y"
07708     {
07709                         (yyval.val) = arg_add_block(arg_new(), (yyvsp[(1) - (1)].val));
07710                     }
07711     break;
07712 
07713   case 263:
07714 
07715 /* Line 1806 of yacc.c  */
07716 #line 2452 "ripper.y"
07717     {
07718                         (yyval.val) = cmdarg_stack;
07719                         CMDARG_PUSH(1);
07720                     }
07721     break;
07722 
07723   case 264:
07724 
07725 /* Line 1806 of yacc.c  */
07726 #line 2457 "ripper.y"
07727     {
07728                         /* CMDARG_POP() */
07729                         cmdarg_stack = (yyvsp[(1) - (2)].val);
07730                         (yyval.val) = (yyvsp[(2) - (2)].val);
07731                     }
07732     break;
07733 
07734   case 265:
07735 
07736 /* Line 1806 of yacc.c  */
07737 #line 2465 "ripper.y"
07738     {
07739 #if 0
07740                         (yyval.val) = NEW_BLOCK_PASS((yyvsp[(2) - (2)].val));
07741 #endif
07742                         (yyval.val) = (yyvsp[(2) - (2)].val);
07743 
07744                     }
07745     break;
07746 
07747   case 266:
07748 
07749 /* Line 1806 of yacc.c  */
07750 #line 2475 "ripper.y"
07751     {
07752                         (yyval.val) = (yyvsp[(2) - (2)].val);
07753                     }
07754     break;
07755 
07756   case 267:
07757 
07758 /* Line 1806 of yacc.c  */
07759 #line 2479 "ripper.y"
07760     {
07761                         (yyval.val) = 0;
07762                     }
07763     break;
07764 
07765   case 268:
07766 
07767 /* Line 1806 of yacc.c  */
07768 #line 2485 "ripper.y"
07769     {
07770 #if 0
07771                         (yyval.val) = NEW_LIST((yyvsp[(1) - (1)].val));
07772 #endif
07773                         (yyval.val) = arg_add(arg_new(), (yyvsp[(1) - (1)].val));
07774 
07775                     }
07776     break;
07777 
07778   case 269:
07779 
07780 /* Line 1806 of yacc.c  */
07781 #line 2493 "ripper.y"
07782     {
07783 #if 0
07784                         (yyval.val) = NEW_SPLAT((yyvsp[(2) - (2)].val));
07785 #endif
07786                         (yyval.val) = arg_add_star(arg_new(), (yyvsp[(2) - (2)].val));
07787 
07788                     }
07789     break;
07790 
07791   case 270:
07792 
07793 /* Line 1806 of yacc.c  */
07794 #line 2501 "ripper.y"
07795     {
07796 #if 0
07797                         NODE *n1;
07798                         if ((n1 = splat_array((yyvsp[(1) - (3)].val))) != 0) {
07799                             (yyval.val) = list_append(n1, (yyvsp[(3) - (3)].val));
07800                         }
07801                         else {
07802                             (yyval.val) = arg_append((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
07803                         }
07804 #endif
07805                         (yyval.val) = arg_add((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
07806 
07807                     }
07808     break;
07809 
07810   case 271:
07811 
07812 /* Line 1806 of yacc.c  */
07813 #line 2515 "ripper.y"
07814     {
07815 #if 0
07816                         NODE *n1;
07817                         if ((nd_type((yyvsp[(4) - (4)].val)) == NODE_ARRAY) && (n1 = splat_array((yyvsp[(1) - (4)].val))) != 0) {
07818                             (yyval.val) = list_concat(n1, (yyvsp[(4) - (4)].val));
07819                         }
07820                         else {
07821                             (yyval.val) = arg_concat((yyvsp[(1) - (4)].val), (yyvsp[(4) - (4)].val));
07822                         }
07823 #endif
07824                         (yyval.val) = arg_add_star((yyvsp[(1) - (4)].val), (yyvsp[(4) - (4)].val));
07825 
07826                     }
07827     break;
07828 
07829   case 272:
07830 
07831 /* Line 1806 of yacc.c  */
07832 #line 2531 "ripper.y"
07833     {
07834 #if 0
07835                         NODE *n1;
07836                         if ((n1 = splat_array((yyvsp[(1) - (3)].val))) != 0) {
07837                             (yyval.val) = list_append(n1, (yyvsp[(3) - (3)].val));
07838                         }
07839                         else {
07840                             (yyval.val) = arg_append((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
07841                         }
07842 #endif
07843                         (yyval.val) = mrhs_add(args2mrhs((yyvsp[(1) - (3)].val)), (yyvsp[(3) - (3)].val));
07844 
07845                     }
07846     break;
07847 
07848   case 273:
07849 
07850 /* Line 1806 of yacc.c  */
07851 #line 2545 "ripper.y"
07852     {
07853 #if 0
07854                         NODE *n1;
07855                         if (nd_type((yyvsp[(4) - (4)].val)) == NODE_ARRAY &&
07856                             (n1 = splat_array((yyvsp[(1) - (4)].val))) != 0) {
07857                             (yyval.val) = list_concat(n1, (yyvsp[(4) - (4)].val));
07858                         }
07859                         else {
07860                             (yyval.val) = arg_concat((yyvsp[(1) - (4)].val), (yyvsp[(4) - (4)].val));
07861                         }
07862 #endif
07863                         (yyval.val) = mrhs_add_star(args2mrhs((yyvsp[(1) - (4)].val)), (yyvsp[(4) - (4)].val));
07864 
07865                     }
07866     break;
07867 
07868   case 274:
07869 
07870 /* Line 1806 of yacc.c  */
07871 #line 2560 "ripper.y"
07872     {
07873 #if 0
07874                         (yyval.val) = NEW_SPLAT((yyvsp[(2) - (2)].val));
07875 #endif
07876                         (yyval.val) = mrhs_add_star(mrhs_new(), (yyvsp[(2) - (2)].val));
07877 
07878                     }
07879     break;
07880 
07881   case 285:
07882 
07883 /* Line 1806 of yacc.c  */
07884 #line 2580 "ripper.y"
07885     {
07886 #if 0
07887                         (yyval.val) = NEW_FCALL((yyvsp[(1) - (1)].val), 0);
07888 #endif
07889                         (yyval.val) = method_arg(dispatch1(fcall, (yyvsp[(1) - (1)].val)), arg_new());
07890 
07891                     }
07892     break;
07893 
07894   case 286:
07895 
07896 /* Line 1806 of yacc.c  */
07897 #line 2588 "ripper.y"
07898     {
07899                         (yyvsp[(1) - (1)].val) = cmdarg_stack;
07900                         cmdarg_stack = 0;
07901 #if 0
07902                         (yyval.num) = ruby_sourceline;
07903 #endif
07904 
07905                     }
07906     break;
07907 
07908   case 287:
07909 
07910 /* Line 1806 of yacc.c  */
07911 #line 2598 "ripper.y"
07912     {
07913                         cmdarg_stack = (yyvsp[(1) - (4)].val);
07914 #if 0
07915                         if ((yyvsp[(3) - (4)].val) == NULL) {
07916                             (yyval.val) = NEW_NIL();
07917                         }
07918                         else {
07919                             if (nd_type((yyvsp[(3) - (4)].val)) == NODE_RESCUE ||
07920                                 nd_type((yyvsp[(3) - (4)].val)) == NODE_ENSURE)
07921                                 nd_set_line((yyvsp[(3) - (4)].val), (yyvsp[(2) - (4)].num));
07922                             (yyval.val) = NEW_BEGIN((yyvsp[(3) - (4)].val));
07923                         }
07924                         nd_set_line((yyval.val), (yyvsp[(2) - (4)].num));
07925 #endif
07926                         (yyval.val) = dispatch1(begin, (yyvsp[(3) - (4)].val));
07927 
07928                     }
07929     break;
07930 
07931   case 288:
07932 
07933 /* Line 1806 of yacc.c  */
07934 #line 2615 "ripper.y"
07935     {lex_state = EXPR_ENDARG;}
07936     break;
07937 
07938   case 289:
07939 
07940 /* Line 1806 of yacc.c  */
07941 #line 2616 "ripper.y"
07942     {
07943 #if 0
07944                         (yyval.val) = 0;
07945 #endif
07946                         (yyval.val) = dispatch1(paren, 0);
07947 
07948                     }
07949     break;
07950 
07951   case 290:
07952 
07953 /* Line 1806 of yacc.c  */
07954 #line 2623 "ripper.y"
07955     {lex_state = EXPR_ENDARG;}
07956     break;
07957 
07958   case 291:
07959 
07960 /* Line 1806 of yacc.c  */
07961 #line 2624 "ripper.y"
07962     {
07963 #if 0
07964                         (yyval.val) = (yyvsp[(2) - (4)].val);
07965 #endif
07966                         (yyval.val) = dispatch1(paren, (yyvsp[(2) - (4)].val));
07967 
07968                     }
07969     break;
07970 
07971   case 292:
07972 
07973 /* Line 1806 of yacc.c  */
07974 #line 2632 "ripper.y"
07975     {
07976 #if 0
07977                         (yyval.val) = (yyvsp[(2) - (3)].val);
07978 #endif
07979                         (yyval.val) = dispatch1(paren, (yyvsp[(2) - (3)].val));
07980 
07981                     }
07982     break;
07983 
07984   case 293:
07985 
07986 /* Line 1806 of yacc.c  */
07987 #line 2640 "ripper.y"
07988     {
07989 #if 0
07990                         (yyval.val) = NEW_COLON2((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
07991 #endif
07992                         (yyval.val) = dispatch2(const_path_ref, (yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
07993 
07994                     }
07995     break;
07996 
07997   case 294:
07998 
07999 /* Line 1806 of yacc.c  */
08000 #line 2648 "ripper.y"
08001     {
08002 #if 0
08003                         (yyval.val) = NEW_COLON3((yyvsp[(2) - (2)].val));
08004 #endif
08005                         (yyval.val) = dispatch1(top_const_ref, (yyvsp[(2) - (2)].val));
08006 
08007                     }
08008     break;
08009 
08010   case 295:
08011 
08012 /* Line 1806 of yacc.c  */
08013 #line 2656 "ripper.y"
08014     {
08015 #if 0
08016                         if ((yyvsp[(2) - (3)].val) == 0) {
08017                             (yyval.val) = NEW_ZARRAY(); /* zero length array*/
08018                         }
08019                         else {
08020                             (yyval.val) = (yyvsp[(2) - (3)].val);
08021                         }
08022 #endif
08023                         (yyval.val) = dispatch1(array, escape_Qundef((yyvsp[(2) - (3)].val)));
08024 
08025                     }
08026     break;
08027 
08028   case 296:
08029 
08030 /* Line 1806 of yacc.c  */
08031 #line 2669 "ripper.y"
08032     {
08033 #if 0
08034                         (yyval.val) = NEW_HASH((yyvsp[(2) - (3)].val));
08035 #endif
08036                         (yyval.val) = dispatch1(hash, escape_Qundef((yyvsp[(2) - (3)].val)));
08037 
08038                     }
08039     break;
08040 
08041   case 297:
08042 
08043 /* Line 1806 of yacc.c  */
08044 #line 2677 "ripper.y"
08045     {
08046 #if 0
08047                         (yyval.val) = NEW_RETURN(0);
08048 #endif
08049                         (yyval.val) = dispatch0(return0);
08050 
08051                     }
08052     break;
08053 
08054   case 298:
08055 
08056 /* Line 1806 of yacc.c  */
08057 #line 2685 "ripper.y"
08058     {
08059 #if 0
08060                         (yyval.val) = new_yield((yyvsp[(3) - (4)].val));
08061 #endif
08062                         (yyval.val) = dispatch1(yield, dispatch1(paren, (yyvsp[(3) - (4)].val)));
08063 
08064                     }
08065     break;
08066 
08067   case 299:
08068 
08069 /* Line 1806 of yacc.c  */
08070 #line 2693 "ripper.y"
08071     {
08072 #if 0
08073                         (yyval.val) = NEW_YIELD(0);
08074 #endif
08075                         (yyval.val) = dispatch1(yield, dispatch1(paren, arg_new()));
08076 
08077                     }
08078     break;
08079 
08080   case 300:
08081 
08082 /* Line 1806 of yacc.c  */
08083 #line 2701 "ripper.y"
08084     {
08085 #if 0
08086                         (yyval.val) = NEW_YIELD(0);
08087 #endif
08088                         (yyval.val) = dispatch0(yield0);
08089 
08090                     }
08091     break;
08092 
08093   case 301:
08094 
08095 /* Line 1806 of yacc.c  */
08096 #line 2708 "ripper.y"
08097     {in_defined = 1;}
08098     break;
08099 
08100   case 302:
08101 
08102 /* Line 1806 of yacc.c  */
08103 #line 2709 "ripper.y"
08104     {
08105 #if 0
08106                         in_defined = 0;
08107                         (yyval.val) = NEW_DEFINED((yyvsp[(5) - (6)].val));
08108 #endif
08109                         in_defined = 0;
08110                         (yyval.val) = dispatch1(defined, (yyvsp[(5) - (6)].val));
08111 
08112                     }
08113     break;
08114 
08115   case 303:
08116 
08117 /* Line 1806 of yacc.c  */
08118 #line 2719 "ripper.y"
08119     {
08120 #if 0
08121                         (yyval.val) = call_uni_op(cond((yyvsp[(3) - (4)].val)), '!');
08122 #endif
08123                         (yyval.val) = dispatch2(unary, ripper_intern("not"), (yyvsp[(3) - (4)].val));
08124 
08125                     }
08126     break;
08127 
08128   case 304:
08129 
08130 /* Line 1806 of yacc.c  */
08131 #line 2727 "ripper.y"
08132     {
08133 #if 0
08134                         (yyval.val) = call_uni_op(cond(NEW_NIL()), '!');
08135 #endif
08136                         (yyval.val) = dispatch2(unary, ripper_intern("not"), Qnil);
08137 
08138                     }
08139     break;
08140 
08141   case 305:
08142 
08143 /* Line 1806 of yacc.c  */
08144 #line 2735 "ripper.y"
08145     {
08146 #if 0
08147                         (yyvsp[(2) - (2)].val)->nd_iter = (yyvsp[(1) - (2)].val);
08148                         (yyval.val) = (yyvsp[(2) - (2)].val);
08149 #endif
08150                         (yyval.val) = method_arg(dispatch1(fcall, (yyvsp[(1) - (2)].val)), arg_new());
08151                         (yyval.val) = method_add_block((yyval.val), (yyvsp[(2) - (2)].val));
08152 
08153                     }
08154     break;
08155 
08156   case 307:
08157 
08158 /* Line 1806 of yacc.c  */
08159 #line 2746 "ripper.y"
08160     {
08161 #if 0
08162                         block_dup_check((yyvsp[(1) - (2)].val)->nd_args, (yyvsp[(2) - (2)].val));
08163                         (yyvsp[(2) - (2)].val)->nd_iter = (yyvsp[(1) - (2)].val);
08164                         (yyval.val) = (yyvsp[(2) - (2)].val);
08165 #endif
08166                         (yyval.val) = method_add_block((yyvsp[(1) - (2)].val), (yyvsp[(2) - (2)].val));
08167 
08168                     }
08169     break;
08170 
08171   case 308:
08172 
08173 /* Line 1806 of yacc.c  */
08174 #line 2756 "ripper.y"
08175     {
08176                         (yyval.val) = (yyvsp[(2) - (2)].val);
08177                     }
08178     break;
08179 
08180   case 309:
08181 
08182 /* Line 1806 of yacc.c  */
08183 #line 2763 "ripper.y"
08184     {
08185 #if 0
08186                         (yyval.val) = NEW_IF(cond((yyvsp[(2) - (6)].val)), (yyvsp[(4) - (6)].val), (yyvsp[(5) - (6)].val));
08187                         fixpos((yyval.val), (yyvsp[(2) - (6)].val));
08188 #endif
08189                         (yyval.val) = dispatch3(if, (yyvsp[(2) - (6)].val), (yyvsp[(4) - (6)].val), escape_Qundef((yyvsp[(5) - (6)].val)));
08190 
08191                     }
08192     break;
08193 
08194   case 310:
08195 
08196 /* Line 1806 of yacc.c  */
08197 #line 2775 "ripper.y"
08198     {
08199 #if 0
08200                         (yyval.val) = NEW_UNLESS(cond((yyvsp[(2) - (6)].val)), (yyvsp[(4) - (6)].val), (yyvsp[(5) - (6)].val));
08201                         fixpos((yyval.val), (yyvsp[(2) - (6)].val));
08202 #endif
08203                         (yyval.val) = dispatch3(unless, (yyvsp[(2) - (6)].val), (yyvsp[(4) - (6)].val), escape_Qundef((yyvsp[(5) - (6)].val)));
08204 
08205                     }
08206     break;
08207 
08208   case 311:
08209 
08210 /* Line 1806 of yacc.c  */
08211 #line 2783 "ripper.y"
08212     {COND_PUSH(1);}
08213     break;
08214 
08215   case 312:
08216 
08217 /* Line 1806 of yacc.c  */
08218 #line 2783 "ripper.y"
08219     {COND_POP();}
08220     break;
08221 
08222   case 313:
08223 
08224 /* Line 1806 of yacc.c  */
08225 #line 2786 "ripper.y"
08226     {
08227 #if 0
08228                         (yyval.val) = NEW_WHILE(cond((yyvsp[(3) - (7)].val)), (yyvsp[(6) - (7)].val), 1);
08229                         fixpos((yyval.val), (yyvsp[(3) - (7)].val));
08230 #endif
08231                         (yyval.val) = dispatch2(while, (yyvsp[(3) - (7)].val), (yyvsp[(6) - (7)].val));
08232 
08233                     }
08234     break;
08235 
08236   case 314:
08237 
08238 /* Line 1806 of yacc.c  */
08239 #line 2794 "ripper.y"
08240     {COND_PUSH(1);}
08241     break;
08242 
08243   case 315:
08244 
08245 /* Line 1806 of yacc.c  */
08246 #line 2794 "ripper.y"
08247     {COND_POP();}
08248     break;
08249 
08250   case 316:
08251 
08252 /* Line 1806 of yacc.c  */
08253 #line 2797 "ripper.y"
08254     {
08255 #if 0
08256                         (yyval.val) = NEW_UNTIL(cond((yyvsp[(3) - (7)].val)), (yyvsp[(6) - (7)].val), 1);
08257                         fixpos((yyval.val), (yyvsp[(3) - (7)].val));
08258 #endif
08259                         (yyval.val) = dispatch2(until, (yyvsp[(3) - (7)].val), (yyvsp[(6) - (7)].val));
08260 
08261                     }
08262     break;
08263 
08264   case 317:
08265 
08266 /* Line 1806 of yacc.c  */
08267 #line 2808 "ripper.y"
08268     {
08269 #if 0
08270                         (yyval.val) = NEW_CASE((yyvsp[(2) - (5)].val), (yyvsp[(4) - (5)].val));
08271                         fixpos((yyval.val), (yyvsp[(2) - (5)].val));
08272 #endif
08273                         (yyval.val) = dispatch2(case, (yyvsp[(2) - (5)].val), (yyvsp[(4) - (5)].val));
08274 
08275                     }
08276     break;
08277 
08278   case 318:
08279 
08280 /* Line 1806 of yacc.c  */
08281 #line 2817 "ripper.y"
08282     {
08283 #if 0
08284                         (yyval.val) = NEW_CASE(0, (yyvsp[(3) - (4)].val));
08285 #endif
08286                         (yyval.val) = dispatch2(case, Qnil, (yyvsp[(3) - (4)].val));
08287 
08288                     }
08289     break;
08290 
08291   case 319:
08292 
08293 /* Line 1806 of yacc.c  */
08294 #line 2825 "ripper.y"
08295     {COND_PUSH(1);}
08296     break;
08297 
08298   case 320:
08299 
08300 /* Line 1806 of yacc.c  */
08301 #line 2827 "ripper.y"
08302     {COND_POP();}
08303     break;
08304 
08305   case 321:
08306 
08307 /* Line 1806 of yacc.c  */
08308 #line 2830 "ripper.y"
08309     {
08310 #if 0
08311                         /*
08312                          *  for a, b, c in e
08313                          *  #=>
08314                          *  e.each{|*x| a, b, c = x
08315                          *
08316                          *  for a in e
08317                          *  #=>
08318                          *  e.each{|x| a, = x}
08319                          */
08320                         ID id = internal_id();
08321                         ID *tbl = ALLOC_N(ID, 2);
08322                         NODE *m = NEW_ARGS_AUX(0, 0);
08323                         NODE *args, *scope;
08324 
08325                         if (nd_type((yyvsp[(2) - (9)].val)) == NODE_MASGN) {
08326                             /* if args.length == 1 && args[0].kind_of?(Array)
08327                              *   args = args[0]
08328                              * end
08329                              */
08330                             NODE *one = NEW_LIST(NEW_LIT(INT2FIX(1)));
08331                             NODE *zero = NEW_LIST(NEW_LIT(INT2FIX(0)));
08332                             m->nd_next = block_append(
08333                                 NEW_IF(
08334                                     NEW_NODE(NODE_AND,
08335                                              NEW_CALL(NEW_CALL(NEW_DVAR(id), idLength, 0),
08336                                                       idEq, one),
08337                                              NEW_CALL(NEW_CALL(NEW_DVAR(id), idAREF, zero),
08338                                                       rb_intern("kind_of?"), NEW_LIST(NEW_LIT(rb_cArray))),
08339                                              0),
08340                                     NEW_DASGN_CURR(id,
08341                                                    NEW_CALL(NEW_DVAR(id), idAREF, zero)),
08342                                     0),
08343                                 node_assign((yyvsp[(2) - (9)].val), NEW_DVAR(id)));
08344 
08345                             args = new_args(m, 0, id, 0, new_args_tail(0, 0, 0));
08346                         }
08347                         else {
08348                             if (nd_type((yyvsp[(2) - (9)].val)) == NODE_LASGN ||
08349                                 nd_type((yyvsp[(2) - (9)].val)) == NODE_DASGN ||
08350                                 nd_type((yyvsp[(2) - (9)].val)) == NODE_DASGN_CURR) {
08351                                 (yyvsp[(2) - (9)].val)->nd_value = NEW_DVAR(id);
08352                                 m->nd_plen = 1;
08353                                 m->nd_next = (yyvsp[(2) - (9)].val);
08354                                 args = new_args(m, 0, 0, 0, new_args_tail(0, 0, 0));
08355                             }
08356                             else {
08357                                 m->nd_next = node_assign(NEW_MASGN(NEW_LIST((yyvsp[(2) - (9)].val)), 0), NEW_DVAR(id));
08358                                 args = new_args(m, 0, id, 0, new_args_tail(0, 0, 0));
08359                             }
08360                         }
08361                         scope = NEW_NODE(NODE_SCOPE, tbl, (yyvsp[(8) - (9)].val), args);
08362                         tbl[0] = 1; tbl[1] = id;
08363                         (yyval.val) = NEW_FOR(0, (yyvsp[(5) - (9)].val), scope);
08364                         fixpos((yyval.val), (yyvsp[(2) - (9)].val));
08365 #endif
08366                         (yyval.val) = dispatch3(for, (yyvsp[(2) - (9)].val), (yyvsp[(5) - (9)].val), (yyvsp[(8) - (9)].val));
08367 
08368                     }
08369     break;
08370 
08371   case 322:
08372 
08373 /* Line 1806 of yacc.c  */
08374 #line 2891 "ripper.y"
08375     {
08376                         if (in_def || in_single)
08377                             yyerror("class definition in method body");
08378                         local_push(0);
08379 #if 0
08380                         (yyval.num) = ruby_sourceline;
08381 #endif
08382 
08383                     }
08384     break;
08385 
08386   case 323:
08387 
08388 /* Line 1806 of yacc.c  */
08389 #line 2902 "ripper.y"
08390     {
08391 #if 0
08392                         (yyval.val) = NEW_CLASS((yyvsp[(2) - (6)].val), (yyvsp[(5) - (6)].val), (yyvsp[(3) - (6)].val));
08393                         nd_set_line((yyval.val), (yyvsp[(4) - (6)].num));
08394 #endif
08395                         (yyval.val) = dispatch3(class, (yyvsp[(2) - (6)].val), (yyvsp[(3) - (6)].val), (yyvsp[(5) - (6)].val));
08396 
08397                         local_pop();
08398                     }
08399     break;
08400 
08401   case 324:
08402 
08403 /* Line 1806 of yacc.c  */
08404 #line 2912 "ripper.y"
08405     {
08406                         (yyval.num) = in_def;
08407                         in_def = 0;
08408                     }
08409     break;
08410 
08411   case 325:
08412 
08413 /* Line 1806 of yacc.c  */
08414 #line 2917 "ripper.y"
08415     {
08416                         (yyval.num) = in_single;
08417                         in_single = 0;
08418                         local_push(0);
08419                     }
08420     break;
08421 
08422   case 326:
08423 
08424 /* Line 1806 of yacc.c  */
08425 #line 2924 "ripper.y"
08426     {
08427 #if 0
08428                         (yyval.val) = NEW_SCLASS((yyvsp[(3) - (8)].val), (yyvsp[(7) - (8)].val));
08429                         fixpos((yyval.val), (yyvsp[(3) - (8)].val));
08430 #endif
08431                         (yyval.val) = dispatch2(sclass, (yyvsp[(3) - (8)].val), (yyvsp[(7) - (8)].val));
08432 
08433                         local_pop();
08434                         in_def = (yyvsp[(4) - (8)].num);
08435                         in_single = (yyvsp[(6) - (8)].num);
08436                     }
08437     break;
08438 
08439   case 327:
08440 
08441 /* Line 1806 of yacc.c  */
08442 #line 2936 "ripper.y"
08443     {
08444                         if (in_def || in_single)
08445                             yyerror("module definition in method body");
08446                         local_push(0);
08447 #if 0
08448                         (yyval.num) = ruby_sourceline;
08449 #endif
08450 
08451                     }
08452     break;
08453 
08454   case 328:
08455 
08456 /* Line 1806 of yacc.c  */
08457 #line 2947 "ripper.y"
08458     {
08459 #if 0
08460                         (yyval.val) = NEW_MODULE((yyvsp[(2) - (5)].val), (yyvsp[(4) - (5)].val));
08461                         nd_set_line((yyval.val), (yyvsp[(3) - (5)].num));
08462 #endif
08463                         (yyval.val) = dispatch2(module, (yyvsp[(2) - (5)].val), (yyvsp[(4) - (5)].val));
08464 
08465                         local_pop();
08466                     }
08467     break;
08468 
08469   case 329:
08470 
08471 /* Line 1806 of yacc.c  */
08472 #line 2957 "ripper.y"
08473     {
08474                         (yyval.id) = cur_mid;
08475                         cur_mid = (yyvsp[(2) - (2)].val);
08476                         in_def++;
08477                         local_push(0);
08478                     }
08479     break;
08480 
08481   case 330:
08482 
08483 /* Line 1806 of yacc.c  */
08484 #line 2966 "ripper.y"
08485     {
08486 #if 0
08487                         NODE *body = remove_begin((yyvsp[(5) - (6)].val));
08488                         reduce_nodes(&body);
08489                         (yyval.val) = NEW_DEFN((yyvsp[(2) - (6)].val), (yyvsp[(4) - (6)].val), body, NOEX_PRIVATE);
08490                         nd_set_line((yyval.val), (yyvsp[(1) - (6)].num));
08491 #endif
08492                         (yyval.val) = dispatch3(def, (yyvsp[(2) - (6)].val), (yyvsp[(4) - (6)].val), (yyvsp[(5) - (6)].val));
08493 
08494                         local_pop();
08495                         in_def--;
08496                         cur_mid = (yyvsp[(3) - (6)].id);
08497                     }
08498     break;
08499 
08500   case 331:
08501 
08502 /* Line 1806 of yacc.c  */
08503 #line 2979 "ripper.y"
08504     {lex_state = EXPR_FNAME;}
08505     break;
08506 
08507   case 332:
08508 
08509 /* Line 1806 of yacc.c  */
08510 #line 2980 "ripper.y"
08511     {
08512                         in_single++;
08513                         lex_state = EXPR_ENDFN; /* force for args */
08514                         local_push(0);
08515                     }
08516     break;
08517 
08518   case 333:
08519 
08520 /* Line 1806 of yacc.c  */
08521 #line 2988 "ripper.y"
08522     {
08523 #if 0
08524                         NODE *body = remove_begin((yyvsp[(8) - (9)].val));
08525                         reduce_nodes(&body);
08526                         (yyval.val) = NEW_DEFS((yyvsp[(2) - (9)].val), (yyvsp[(5) - (9)].val), (yyvsp[(7) - (9)].val), body);
08527                         nd_set_line((yyval.val), (yyvsp[(1) - (9)].num));
08528 #endif
08529                         (yyval.val) = dispatch5(defs, (yyvsp[(2) - (9)].val), (yyvsp[(3) - (9)].val), (yyvsp[(5) - (9)].val), (yyvsp[(7) - (9)].val), (yyvsp[(8) - (9)].val));
08530 
08531                         local_pop();
08532                         in_single--;
08533                     }
08534     break;
08535 
08536   case 334:
08537 
08538 /* Line 1806 of yacc.c  */
08539 #line 3001 "ripper.y"
08540     {
08541 #if 0
08542                         (yyval.val) = NEW_BREAK(0);
08543 #endif
08544                         (yyval.val) = dispatch1(break, arg_new());
08545 
08546                     }
08547     break;
08548 
08549   case 335:
08550 
08551 /* Line 1806 of yacc.c  */
08552 #line 3009 "ripper.y"
08553     {
08554 #if 0
08555                         (yyval.val) = NEW_NEXT(0);
08556 #endif
08557                         (yyval.val) = dispatch1(next, arg_new());
08558 
08559                     }
08560     break;
08561 
08562   case 336:
08563 
08564 /* Line 1806 of yacc.c  */
08565 #line 3017 "ripper.y"
08566     {
08567 #if 0
08568                         (yyval.val) = NEW_REDO();
08569 #endif
08570                         (yyval.val) = dispatch0(redo);
08571 
08572                     }
08573     break;
08574 
08575   case 337:
08576 
08577 /* Line 1806 of yacc.c  */
08578 #line 3025 "ripper.y"
08579     {
08580 #if 0
08581                         (yyval.val) = NEW_RETRY();
08582 #endif
08583                         (yyval.val) = dispatch0(retry);
08584 
08585                     }
08586     break;
08587 
08588   case 338:
08589 
08590 /* Line 1806 of yacc.c  */
08591 #line 3035 "ripper.y"
08592     {
08593 #if 0
08594                         value_expr((yyvsp[(1) - (1)].val));
08595                         (yyval.val) = (yyvsp[(1) - (1)].val);
08596                         if (!(yyval.val)) (yyval.val) = NEW_NIL();
08597 #endif
08598                         (yyval.val) = (yyvsp[(1) - (1)].val);
08599 
08600                     }
08601     break;
08602 
08603   case 339:
08604 
08605 /* Line 1806 of yacc.c  */
08606 #line 3047 "ripper.y"
08607     {
08608                         token_info_push("begin");
08609                     }
08610     break;
08611 
08612   case 340:
08613 
08614 /* Line 1806 of yacc.c  */
08615 #line 3053 "ripper.y"
08616     {
08617                         token_info_push("if");
08618                     }
08619     break;
08620 
08621   case 341:
08622 
08623 /* Line 1806 of yacc.c  */
08624 #line 3059 "ripper.y"
08625     {
08626                         token_info_push("unless");
08627                     }
08628     break;
08629 
08630   case 342:
08631 
08632 /* Line 1806 of yacc.c  */
08633 #line 3065 "ripper.y"
08634     {
08635                         token_info_push("while");
08636                     }
08637     break;
08638 
08639   case 343:
08640 
08641 /* Line 1806 of yacc.c  */
08642 #line 3071 "ripper.y"
08643     {
08644                         token_info_push("until");
08645                     }
08646     break;
08647 
08648   case 344:
08649 
08650 /* Line 1806 of yacc.c  */
08651 #line 3077 "ripper.y"
08652     {
08653                         token_info_push("case");
08654                     }
08655     break;
08656 
08657   case 345:
08658 
08659 /* Line 1806 of yacc.c  */
08660 #line 3083 "ripper.y"
08661     {
08662                         token_info_push("for");
08663                     }
08664     break;
08665 
08666   case 346:
08667 
08668 /* Line 1806 of yacc.c  */
08669 #line 3089 "ripper.y"
08670     {
08671                         token_info_push("class");
08672                     }
08673     break;
08674 
08675   case 347:
08676 
08677 /* Line 1806 of yacc.c  */
08678 #line 3095 "ripper.y"
08679     {
08680                         token_info_push("module");
08681                     }
08682     break;
08683 
08684   case 348:
08685 
08686 /* Line 1806 of yacc.c  */
08687 #line 3101 "ripper.y"
08688     {
08689                         token_info_push("def");
08690 #if 0
08691                         (yyval.num) = ruby_sourceline;
08692 #endif
08693 
08694                     }
08695     break;
08696 
08697   case 349:
08698 
08699 /* Line 1806 of yacc.c  */
08700 #line 3111 "ripper.y"
08701     {
08702                         token_info_pop("end");
08703                     }
08704     break;
08705 
08706   case 350:
08707 
08708 /* Line 1806 of yacc.c  */
08709 #line 3119 "ripper.y"
08710     { (yyval.val) = Qnil; }
08711     break;
08712 
08713   case 352:
08714 
08715 /* Line 1806 of yacc.c  */
08716 #line 3125 "ripper.y"
08717     { (yyval.val) = (yyvsp[(2) - (2)].val); }
08718     break;
08719 
08720   case 353:
08721 
08722 /* Line 1806 of yacc.c  */
08723 #line 3132 "ripper.y"
08724     { (yyval.val) = Qnil; }
08725     break;
08726 
08727   case 356:
08728 
08729 /* Line 1806 of yacc.c  */
08730 #line 3141 "ripper.y"
08731     {
08732 #if 0
08733                         (yyval.val) = NEW_IF(cond((yyvsp[(2) - (5)].val)), (yyvsp[(4) - (5)].val), (yyvsp[(5) - (5)].val));
08734                         fixpos((yyval.val), (yyvsp[(2) - (5)].val));
08735 #endif
08736                         (yyval.val) = dispatch3(elsif, (yyvsp[(2) - (5)].val), (yyvsp[(4) - (5)].val), escape_Qundef((yyvsp[(5) - (5)].val)));
08737 
08738                     }
08739     break;
08740 
08741   case 358:
08742 
08743 /* Line 1806 of yacc.c  */
08744 #line 3153 "ripper.y"
08745     {
08746 #if 0
08747                         (yyval.val) = (yyvsp[(2) - (2)].val);
08748 #endif
08749                         (yyval.val) = dispatch1(else, (yyvsp[(2) - (2)].val));
08750 
08751                     }
08752     break;
08753 
08754   case 361:
08755 
08756 /* Line 1806 of yacc.c  */
08757 #line 3167 "ripper.y"
08758     {
08759                         (yyval.val) = assignable((yyvsp[(1) - (1)].val), 0);
08760 #if 0
08761 #endif
08762                         (yyval.val) = dispatch1(mlhs_paren, (yyval.val));
08763 
08764                     }
08765     break;
08766 
08767   case 362:
08768 
08769 /* Line 1806 of yacc.c  */
08770 #line 3175 "ripper.y"
08771     {
08772 #if 0
08773                         (yyval.val) = (yyvsp[(2) - (3)].val);
08774 #endif
08775                         (yyval.val) = dispatch1(mlhs_paren, (yyvsp[(2) - (3)].val));
08776 
08777                     }
08778     break;
08779 
08780   case 363:
08781 
08782 /* Line 1806 of yacc.c  */
08783 #line 3185 "ripper.y"
08784     {
08785 #if 0
08786                         (yyval.val) = NEW_LIST((yyvsp[(1) - (1)].val));
08787 #endif
08788                         (yyval.val) = mlhs_add(mlhs_new(), (yyvsp[(1) - (1)].val));
08789 
08790                     }
08791     break;
08792 
08793   case 364:
08794 
08795 /* Line 1806 of yacc.c  */
08796 #line 3193 "ripper.y"
08797     {
08798 #if 0
08799                         (yyval.val) = list_append((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
08800 #endif
08801                         (yyval.val) = mlhs_add((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
08802 
08803                     }
08804     break;
08805 
08806   case 365:
08807 
08808 /* Line 1806 of yacc.c  */
08809 #line 3203 "ripper.y"
08810     {
08811 #if 0
08812                         (yyval.val) = NEW_MASGN((yyvsp[(1) - (1)].val), 0);
08813 #endif
08814                         (yyval.val) = (yyvsp[(1) - (1)].val);
08815 
08816                     }
08817     break;
08818 
08819   case 366:
08820 
08821 /* Line 1806 of yacc.c  */
08822 #line 3211 "ripper.y"
08823     {
08824                         (yyval.val) = assignable((yyvsp[(4) - (4)].val), 0);
08825 #if 0
08826                         (yyval.val) = NEW_MASGN((yyvsp[(1) - (4)].val), (yyval.val));
08827 #endif
08828                         (yyval.val) = mlhs_add_star((yyvsp[(1) - (4)].val), (yyval.val));
08829 
08830                     }
08831     break;
08832 
08833   case 367:
08834 
08835 /* Line 1806 of yacc.c  */
08836 #line 3220 "ripper.y"
08837     {
08838                         (yyval.val) = assignable((yyvsp[(4) - (6)].val), 0);
08839 #if 0
08840                         (yyval.val) = NEW_MASGN((yyvsp[(1) - (6)].val), NEW_POSTARG((yyval.val), (yyvsp[(6) - (6)].val)));
08841 #endif
08842                         (yyval.val) = mlhs_add_star((yyvsp[(1) - (6)].val), (yyval.val));
08843 
08844                     }
08845     break;
08846 
08847   case 368:
08848 
08849 /* Line 1806 of yacc.c  */
08850 #line 3229 "ripper.y"
08851     {
08852 #if 0
08853                         (yyval.val) = NEW_MASGN((yyvsp[(1) - (3)].val), -1);
08854 #endif
08855                         (yyval.val) = mlhs_add_star((yyvsp[(1) - (3)].val), Qnil);
08856 
08857                     }
08858     break;
08859 
08860   case 369:
08861 
08862 /* Line 1806 of yacc.c  */
08863 #line 3237 "ripper.y"
08864     {
08865 #if 0
08866                         (yyval.val) = NEW_MASGN((yyvsp[(1) - (5)].val), NEW_POSTARG(-1, (yyvsp[(5) - (5)].val)));
08867 #endif
08868                         (yyval.val) = mlhs_add_star((yyvsp[(1) - (5)].val), (yyvsp[(5) - (5)].val));
08869 
08870                     }
08871     break;
08872 
08873   case 370:
08874 
08875 /* Line 1806 of yacc.c  */
08876 #line 3245 "ripper.y"
08877     {
08878                         (yyval.val) = assignable((yyvsp[(2) - (2)].val), 0);
08879 #if 0
08880                         (yyval.val) = NEW_MASGN(0, (yyval.val));
08881 #endif
08882                         (yyval.val) = mlhs_add_star(mlhs_new(), (yyval.val));
08883 
08884                     }
08885     break;
08886 
08887   case 371:
08888 
08889 /* Line 1806 of yacc.c  */
08890 #line 3254 "ripper.y"
08891     {
08892                         (yyval.val) = assignable((yyvsp[(2) - (4)].val), 0);
08893 #if 0
08894                         (yyval.val) = NEW_MASGN(0, NEW_POSTARG((yyval.val), (yyvsp[(4) - (4)].val)));
08895 #endif
08896                       #if 0
08897                       TODO: Check me
08898                       #endif
08899                         (yyval.val) = mlhs_add_star((yyval.val), (yyvsp[(4) - (4)].val));
08900 
08901                     }
08902     break;
08903 
08904   case 372:
08905 
08906 /* Line 1806 of yacc.c  */
08907 #line 3266 "ripper.y"
08908     {
08909 #if 0
08910                         (yyval.val) = NEW_MASGN(0, -1);
08911 #endif
08912                         (yyval.val) = mlhs_add_star(mlhs_new(), Qnil);
08913 
08914                     }
08915     break;
08916 
08917   case 373:
08918 
08919 /* Line 1806 of yacc.c  */
08920 #line 3274 "ripper.y"
08921     {
08922 #if 0
08923                         (yyval.val) = NEW_MASGN(0, NEW_POSTARG(-1, (yyvsp[(3) - (3)].val)));
08924 #endif
08925                         (yyval.val) = mlhs_add_star(mlhs_new(), Qnil);
08926 
08927                     }
08928     break;
08929 
08930   case 374:
08931 
08932 /* Line 1806 of yacc.c  */
08933 #line 3285 "ripper.y"
08934     {
08935                         (yyval.val) = new_args_tail((yyvsp[(1) - (4)].val), (yyvsp[(3) - (4)].val), (yyvsp[(4) - (4)].val));
08936                     }
08937     break;
08938 
08939   case 375:
08940 
08941 /* Line 1806 of yacc.c  */
08942 #line 3289 "ripper.y"
08943     {
08944                         (yyval.val) = new_args_tail((yyvsp[(1) - (2)].val), Qnone, (yyvsp[(2) - (2)].val));
08945                     }
08946     break;
08947 
08948   case 376:
08949 
08950 /* Line 1806 of yacc.c  */
08951 #line 3293 "ripper.y"
08952     {
08953                         (yyval.val) = new_args_tail(Qnone, (yyvsp[(1) - (2)].val), (yyvsp[(2) - (2)].val));
08954                     }
08955     break;
08956 
08957   case 377:
08958 
08959 /* Line 1806 of yacc.c  */
08960 #line 3297 "ripper.y"
08961     {
08962                         (yyval.val) = new_args_tail(Qnone, Qnone, (yyvsp[(1) - (1)].val));
08963                     }
08964     break;
08965 
08966   case 378:
08967 
08968 /* Line 1806 of yacc.c  */
08969 #line 3303 "ripper.y"
08970     {
08971                         (yyval.val) = (yyvsp[(2) - (2)].val);
08972                     }
08973     break;
08974 
08975   case 379:
08976 
08977 /* Line 1806 of yacc.c  */
08978 #line 3307 "ripper.y"
08979     {
08980                         (yyval.val) = new_args_tail(Qnone, Qnone, Qnone);
08981                     }
08982     break;
08983 
08984   case 380:
08985 
08986 /* Line 1806 of yacc.c  */
08987 #line 3313 "ripper.y"
08988     {
08989                         (yyval.val) = new_args((yyvsp[(1) - (6)].val), (yyvsp[(3) - (6)].val), (yyvsp[(5) - (6)].val), Qnone, (yyvsp[(6) - (6)].val));
08990                     }
08991     break;
08992 
08993   case 381:
08994 
08995 /* Line 1806 of yacc.c  */
08996 #line 3317 "ripper.y"
08997     {
08998                         (yyval.val) = new_args((yyvsp[(1) - (8)].val), (yyvsp[(3) - (8)].val), (yyvsp[(5) - (8)].val), (yyvsp[(7) - (8)].val), (yyvsp[(8) - (8)].val));
08999                     }
09000     break;
09001 
09002   case 382:
09003 
09004 /* Line 1806 of yacc.c  */
09005 #line 3321 "ripper.y"
09006     {
09007                         (yyval.val) = new_args((yyvsp[(1) - (4)].val), (yyvsp[(3) - (4)].val), Qnone, Qnone, (yyvsp[(4) - (4)].val));
09008                     }
09009     break;
09010 
09011   case 383:
09012 
09013 /* Line 1806 of yacc.c  */
09014 #line 3325 "ripper.y"
09015     {
09016                         (yyval.val) = new_args((yyvsp[(1) - (6)].val), (yyvsp[(3) - (6)].val), Qnone, (yyvsp[(5) - (6)].val), (yyvsp[(6) - (6)].val));
09017                     }
09018     break;
09019 
09020   case 384:
09021 
09022 /* Line 1806 of yacc.c  */
09023 #line 3329 "ripper.y"
09024     {
09025                         (yyval.val) = new_args((yyvsp[(1) - (4)].val), Qnone, (yyvsp[(3) - (4)].val), Qnone, (yyvsp[(4) - (4)].val));
09026                     }
09027     break;
09028 
09029   case 385:
09030 
09031 /* Line 1806 of yacc.c  */
09032 #line 3333 "ripper.y"
09033     {
09034                         (yyval.val) = new_args((yyvsp[(1) - (2)].val), Qnone, 1, Qnone, new_args_tail(Qnone, Qnone, Qnone));
09035 #if 0
09036 #endif
09037                         dispatch1(excessed_comma, (yyval.val));
09038 
09039                     }
09040     break;
09041 
09042   case 386:
09043 
09044 /* Line 1806 of yacc.c  */
09045 #line 3341 "ripper.y"
09046     {
09047                         (yyval.val) = new_args((yyvsp[(1) - (6)].val), Qnone, (yyvsp[(3) - (6)].val), (yyvsp[(5) - (6)].val), (yyvsp[(6) - (6)].val));
09048                     }
09049     break;
09050 
09051   case 387:
09052 
09053 /* Line 1806 of yacc.c  */
09054 #line 3345 "ripper.y"
09055     {
09056                         (yyval.val) = new_args((yyvsp[(1) - (2)].val), Qnone, Qnone, Qnone, (yyvsp[(2) - (2)].val));
09057                     }
09058     break;
09059 
09060   case 388:
09061 
09062 /* Line 1806 of yacc.c  */
09063 #line 3349 "ripper.y"
09064     {
09065                         (yyval.val) = new_args(Qnone, (yyvsp[(1) - (4)].val), (yyvsp[(3) - (4)].val), Qnone, (yyvsp[(4) - (4)].val));
09066                     }
09067     break;
09068 
09069   case 389:
09070 
09071 /* Line 1806 of yacc.c  */
09072 #line 3353 "ripper.y"
09073     {
09074                         (yyval.val) = new_args(Qnone, (yyvsp[(1) - (6)].val), (yyvsp[(3) - (6)].val), (yyvsp[(5) - (6)].val), (yyvsp[(6) - (6)].val));
09075                     }
09076     break;
09077 
09078   case 390:
09079 
09080 /* Line 1806 of yacc.c  */
09081 #line 3357 "ripper.y"
09082     {
09083                         (yyval.val) = new_args(Qnone, (yyvsp[(1) - (2)].val), Qnone, Qnone, (yyvsp[(2) - (2)].val));
09084                     }
09085     break;
09086 
09087   case 391:
09088 
09089 /* Line 1806 of yacc.c  */
09090 #line 3361 "ripper.y"
09091     {
09092                         (yyval.val) = new_args(Qnone, (yyvsp[(1) - (4)].val), Qnone, (yyvsp[(3) - (4)].val), (yyvsp[(4) - (4)].val));
09093                     }
09094     break;
09095 
09096   case 392:
09097 
09098 /* Line 1806 of yacc.c  */
09099 #line 3365 "ripper.y"
09100     {
09101                         (yyval.val) = new_args(Qnone, Qnone, (yyvsp[(1) - (2)].val), Qnone, (yyvsp[(2) - (2)].val));
09102                     }
09103     break;
09104 
09105   case 393:
09106 
09107 /* Line 1806 of yacc.c  */
09108 #line 3369 "ripper.y"
09109     {
09110                         (yyval.val) = new_args(Qnone, Qnone, (yyvsp[(1) - (4)].val), (yyvsp[(3) - (4)].val), (yyvsp[(4) - (4)].val));
09111                     }
09112     break;
09113 
09114   case 394:
09115 
09116 /* Line 1806 of yacc.c  */
09117 #line 3373 "ripper.y"
09118     {
09119                         (yyval.val) = new_args(Qnone, Qnone, Qnone, Qnone, (yyvsp[(1) - (1)].val));
09120                     }
09121     break;
09122 
09123   case 396:
09124 
09125 /* Line 1806 of yacc.c  */
09126 #line 3380 "ripper.y"
09127     {
09128                         command_start = TRUE;
09129                     }
09130     break;
09131 
09132   case 397:
09133 
09134 /* Line 1806 of yacc.c  */
09135 #line 3386 "ripper.y"
09136     {
09137 #if 0
09138                         (yyval.val) = 0;
09139 #endif
09140                         (yyval.val) = blockvar_new(params_new(Qnil,Qnil,Qnil,Qnil,Qnil,Qnil,Qnil),
09141                                           escape_Qundef((yyvsp[(2) - (3)].val)));
09142 
09143                     }
09144     break;
09145 
09146   case 398:
09147 
09148 /* Line 1806 of yacc.c  */
09149 #line 3395 "ripper.y"
09150     {
09151 #if 0
09152                         (yyval.val) = 0;
09153 #endif
09154                         (yyval.val) = blockvar_new(params_new(Qnil,Qnil,Qnil,Qnil,Qnil,Qnil,Qnil),
09155                                           Qnil);
09156 
09157                     }
09158     break;
09159 
09160   case 399:
09161 
09162 /* Line 1806 of yacc.c  */
09163 #line 3404 "ripper.y"
09164     {
09165 #if 0
09166                         (yyval.val) = (yyvsp[(2) - (4)].val);
09167 #endif
09168                         (yyval.val) = blockvar_new(escape_Qundef((yyvsp[(2) - (4)].val)), escape_Qundef((yyvsp[(3) - (4)].val)));
09169 
09170                     }
09171     break;
09172 
09173   case 400:
09174 
09175 /* Line 1806 of yacc.c  */
09176 #line 3415 "ripper.y"
09177     {
09178                       (yyval.val) = 0;
09179                     }
09180     break;
09181 
09182   case 401:
09183 
09184 /* Line 1806 of yacc.c  */
09185 #line 3419 "ripper.y"
09186     {
09187 #if 0
09188                         (yyval.val) = 0;
09189 #endif
09190                         (yyval.val) = (yyvsp[(3) - (4)].val);
09191 
09192                     }
09193     break;
09194 
09195   case 402:
09196 
09197 /* Line 1806 of yacc.c  */
09198 #line 3431 "ripper.y"
09199     {
09200                         (yyval.val) = rb_ary_new3(1, (yyvsp[(1) - (1)].val));
09201                     }
09202     break;
09203 
09204   case 403:
09205 
09206 /* Line 1806 of yacc.c  */
09207 #line 3438 "ripper.y"
09208     {
09209                         rb_ary_push((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
09210                     }
09211     break;
09212 
09213   case 404:
09214 
09215 /* Line 1806 of yacc.c  */
09216 #line 3445 "ripper.y"
09217     {
09218                         new_bv(get_id((yyvsp[(1) - (1)].val)));
09219 #if 0
09220 #endif
09221                         (yyval.val) = get_value((yyvsp[(1) - (1)].val));
09222 
09223                     }
09224     break;
09225 
09226   case 405:
09227 
09228 /* Line 1806 of yacc.c  */
09229 #line 3453 "ripper.y"
09230     {
09231                         (yyval.val) = 0;
09232                     }
09233     break;
09234 
09235   case 406:
09236 
09237 /* Line 1806 of yacc.c  */
09238 #line 3458 "ripper.y"
09239     {
09240                         (yyval.vars) = dyna_push();
09241                     }
09242     break;
09243 
09244   case 407:
09245 
09246 /* Line 1806 of yacc.c  */
09247 #line 3461 "ripper.y"
09248     {
09249                         (yyval.num) = lpar_beg;
09250                         lpar_beg = ++paren_nest;
09251                     }
09252     break;
09253 
09254   case 408:
09255 
09256 /* Line 1806 of yacc.c  */
09257 #line 3466 "ripper.y"
09258     {
09259                         (yyval.num) = ruby_sourceline;
09260                     }
09261     break;
09262 
09263   case 409:
09264 
09265 /* Line 1806 of yacc.c  */
09266 #line 3470 "ripper.y"
09267     {
09268                         lpar_beg = (yyvsp[(2) - (5)].num);
09269 #if 0
09270                         (yyval.val) = NEW_LAMBDA((yyvsp[(3) - (5)].val), (yyvsp[(5) - (5)].val));
09271                         nd_set_line((yyval.val), (yyvsp[(4) - (5)].num));
09272 #endif
09273                         (yyval.val) = dispatch2(lambda, (yyvsp[(3) - (5)].val), (yyvsp[(5) - (5)].val));
09274 
09275                         dyna_pop((yyvsp[(1) - (5)].vars));
09276                     }
09277     break;
09278 
09279   case 410:
09280 
09281 /* Line 1806 of yacc.c  */
09282 #line 3483 "ripper.y"
09283     {
09284 #if 0
09285                         (yyval.val) = (yyvsp[(2) - (4)].val);
09286 #endif
09287                         (yyval.val) = dispatch1(paren, (yyvsp[(2) - (4)].val));
09288 
09289                     }
09290     break;
09291 
09292   case 411:
09293 
09294 /* Line 1806 of yacc.c  */
09295 #line 3491 "ripper.y"
09296     {
09297 #if 0
09298                         (yyval.val) = (yyvsp[(1) - (1)].val);
09299 #endif
09300                         (yyval.val) = (yyvsp[(1) - (1)].val);
09301 
09302                     }
09303     break;
09304 
09305   case 412:
09306 
09307 /* Line 1806 of yacc.c  */
09308 #line 3501 "ripper.y"
09309     {
09310                         (yyval.val) = (yyvsp[(2) - (3)].val);
09311                     }
09312     break;
09313 
09314   case 413:
09315 
09316 /* Line 1806 of yacc.c  */
09317 #line 3505 "ripper.y"
09318     {
09319                         (yyval.val) = (yyvsp[(2) - (3)].val);
09320                     }
09321     break;
09322 
09323   case 414:
09324 
09325 /* Line 1806 of yacc.c  */
09326 #line 3511 "ripper.y"
09327     {
09328                         (yyvsp[(1) - (1)].vars) = dyna_push();
09329 #if 0
09330                         (yyval.num) = ruby_sourceline;
09331 #endif
09332                     }
09333     break;
09334 
09335   case 415:
09336 
09337 /* Line 1806 of yacc.c  */
09338 #line 3520 "ripper.y"
09339     {
09340 #if 0
09341                         (yyval.val) = NEW_ITER((yyvsp[(3) - (5)].val),(yyvsp[(4) - (5)].val));
09342                         nd_set_line((yyval.val), (yyvsp[(2) - (5)].num));
09343 #endif
09344                         (yyval.val) = dispatch2(do_block, escape_Qundef((yyvsp[(3) - (5)].val)), (yyvsp[(4) - (5)].val));
09345 
09346                         dyna_pop((yyvsp[(1) - (5)].vars));
09347                     }
09348     break;
09349 
09350   case 416:
09351 
09352 /* Line 1806 of yacc.c  */
09353 #line 3532 "ripper.y"
09354     {
09355 #if 0
09356                         if (nd_type((yyvsp[(1) - (2)].val)) == NODE_YIELD) {
09357                             compile_error(PARSER_ARG "block given to yield");
09358                         }
09359                         else {
09360                             block_dup_check((yyvsp[(1) - (2)].val)->nd_args, (yyvsp[(2) - (2)].val));
09361                         }
09362                         (yyvsp[(2) - (2)].val)->nd_iter = (yyvsp[(1) - (2)].val);
09363                         (yyval.val) = (yyvsp[(2) - (2)].val);
09364                         fixpos((yyval.val), (yyvsp[(1) - (2)].val));
09365 #endif
09366                         (yyval.val) = method_add_block((yyvsp[(1) - (2)].val), (yyvsp[(2) - (2)].val));
09367 
09368                     }
09369     break;
09370 
09371   case 417:
09372 
09373 /* Line 1806 of yacc.c  */
09374 #line 3548 "ripper.y"
09375     {
09376 #if 0
09377                         (yyval.val) = NEW_CALL((yyvsp[(1) - (4)].val), (yyvsp[(3) - (4)].val), (yyvsp[(4) - (4)].val));
09378 #endif
09379                         (yyval.val) = dispatch3(call, (yyvsp[(1) - (4)].val), (yyvsp[(2) - (4)].val), (yyvsp[(3) - (4)].val));
09380                         (yyval.val) = method_optarg((yyval.val), (yyvsp[(4) - (4)].val));
09381 
09382                     }
09383     break;
09384 
09385   case 418:
09386 
09387 /* Line 1806 of yacc.c  */
09388 #line 3557 "ripper.y"
09389     {
09390 #if 0
09391                         block_dup_check((yyvsp[(4) - (5)].val), (yyvsp[(5) - (5)].val));
09392                         (yyvsp[(5) - (5)].val)->nd_iter = NEW_CALL((yyvsp[(1) - (5)].val), (yyvsp[(3) - (5)].val), (yyvsp[(4) - (5)].val));
09393                         (yyval.val) = (yyvsp[(5) - (5)].val);
09394                         fixpos((yyval.val), (yyvsp[(1) - (5)].val));
09395 #endif
09396                         (yyval.val) = dispatch4(command_call, (yyvsp[(1) - (5)].val), (yyvsp[(2) - (5)].val), (yyvsp[(3) - (5)].val), (yyvsp[(4) - (5)].val));
09397                         (yyval.val) = method_add_block((yyval.val), (yyvsp[(5) - (5)].val));
09398 
09399                     }
09400     break;
09401 
09402   case 419:
09403 
09404 /* Line 1806 of yacc.c  */
09405 #line 3569 "ripper.y"
09406     {
09407 #if 0
09408                         block_dup_check((yyvsp[(4) - (5)].val), (yyvsp[(5) - (5)].val));
09409                         (yyvsp[(5) - (5)].val)->nd_iter = NEW_CALL((yyvsp[(1) - (5)].val), (yyvsp[(3) - (5)].val), (yyvsp[(4) - (5)].val));
09410                         (yyval.val) = (yyvsp[(5) - (5)].val);
09411                         fixpos((yyval.val), (yyvsp[(1) - (5)].val));
09412 #endif
09413                         (yyval.val) = dispatch4(command_call, (yyvsp[(1) - (5)].val), (yyvsp[(2) - (5)].val), (yyvsp[(3) - (5)].val), (yyvsp[(4) - (5)].val));
09414                         (yyval.val) = method_add_block((yyval.val), (yyvsp[(5) - (5)].val));
09415 
09416                     }
09417     break;
09418 
09419   case 420:
09420 
09421 /* Line 1806 of yacc.c  */
09422 #line 3583 "ripper.y"
09423     {
09424 #if 0
09425                         (yyval.val) = (yyvsp[(1) - (2)].val);
09426                         (yyval.val)->nd_args = (yyvsp[(2) - (2)].val);
09427 #endif
09428                         (yyval.val) = method_arg(dispatch1(fcall, (yyvsp[(1) - (2)].val)), (yyvsp[(2) - (2)].val));
09429 
09430                     }
09431     break;
09432 
09433   case 421:
09434 
09435 /* Line 1806 of yacc.c  */
09436 #line 3592 "ripper.y"
09437     {
09438 #if 0
09439                         (yyval.num) = ruby_sourceline;
09440 #endif
09441                     }
09442     break;
09443 
09444   case 422:
09445 
09446 /* Line 1806 of yacc.c  */
09447 #line 3598 "ripper.y"
09448     {
09449 #if 0
09450                         (yyval.val) = NEW_CALL((yyvsp[(1) - (5)].val), (yyvsp[(3) - (5)].val), (yyvsp[(5) - (5)].val));
09451                         nd_set_line((yyval.val), (yyvsp[(4) - (5)].num));
09452 #endif
09453                         (yyval.val) = dispatch3(call, (yyvsp[(1) - (5)].val), ripper_id2sym('.'), (yyvsp[(3) - (5)].val));
09454                         (yyval.val) = method_optarg((yyval.val), (yyvsp[(5) - (5)].val));
09455 
09456                     }
09457     break;
09458 
09459   case 423:
09460 
09461 /* Line 1806 of yacc.c  */
09462 #line 3608 "ripper.y"
09463     {
09464 #if 0
09465                         (yyval.num) = ruby_sourceline;
09466 #endif
09467                     }
09468     break;
09469 
09470   case 424:
09471 
09472 /* Line 1806 of yacc.c  */
09473 #line 3614 "ripper.y"
09474     {
09475 #if 0
09476                         (yyval.val) = NEW_CALL((yyvsp[(1) - (5)].val), (yyvsp[(3) - (5)].val), (yyvsp[(5) - (5)].val));
09477                         nd_set_line((yyval.val), (yyvsp[(4) - (5)].num));
09478 #endif
09479                         (yyval.val) = dispatch3(call, (yyvsp[(1) - (5)].val), ripper_id2sym('.'), (yyvsp[(3) - (5)].val));
09480                         (yyval.val) = method_optarg((yyval.val), (yyvsp[(5) - (5)].val));
09481 
09482                     }
09483     break;
09484 
09485   case 425:
09486 
09487 /* Line 1806 of yacc.c  */
09488 #line 3624 "ripper.y"
09489     {
09490 #if 0
09491                         (yyval.val) = NEW_CALL((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val), 0);
09492 #endif
09493                         (yyval.val) = dispatch3(call, (yyvsp[(1) - (3)].val), ripper_intern("::"), (yyvsp[(3) - (3)].val));
09494 
09495                     }
09496     break;
09497 
09498   case 426:
09499 
09500 /* Line 1806 of yacc.c  */
09501 #line 3632 "ripper.y"
09502     {
09503 #if 0
09504                         (yyval.num) = ruby_sourceline;
09505 #endif
09506                     }
09507     break;
09508 
09509   case 427:
09510 
09511 /* Line 1806 of yacc.c  */
09512 #line 3638 "ripper.y"
09513     {
09514 #if 0
09515                         (yyval.val) = NEW_CALL((yyvsp[(1) - (4)].val), rb_intern("call"), (yyvsp[(4) - (4)].val));
09516                         nd_set_line((yyval.val), (yyvsp[(3) - (4)].num));
09517 #endif
09518                         (yyval.val) = dispatch3(call, (yyvsp[(1) - (4)].val), ripper_id2sym('.'),
09519                                        ripper_intern("call"));
09520                         (yyval.val) = method_optarg((yyval.val), (yyvsp[(4) - (4)].val));
09521 
09522                     }
09523     break;
09524 
09525   case 428:
09526 
09527 /* Line 1806 of yacc.c  */
09528 #line 3649 "ripper.y"
09529     {
09530 #if 0
09531                         (yyval.num) = ruby_sourceline;
09532 #endif
09533                     }
09534     break;
09535 
09536   case 429:
09537 
09538 /* Line 1806 of yacc.c  */
09539 #line 3655 "ripper.y"
09540     {
09541 #if 0
09542                         (yyval.val) = NEW_CALL((yyvsp[(1) - (4)].val), rb_intern("call"), (yyvsp[(4) - (4)].val));
09543                         nd_set_line((yyval.val), (yyvsp[(3) - (4)].num));
09544 #endif
09545                         (yyval.val) = dispatch3(call, (yyvsp[(1) - (4)].val), ripper_intern("::"),
09546                                        ripper_intern("call"));
09547                         (yyval.val) = method_optarg((yyval.val), (yyvsp[(4) - (4)].val));
09548 
09549                     }
09550     break;
09551 
09552   case 430:
09553 
09554 /* Line 1806 of yacc.c  */
09555 #line 3666 "ripper.y"
09556     {
09557 #if 0
09558                         (yyval.val) = NEW_SUPER((yyvsp[(2) - (2)].val));
09559 #endif
09560                         (yyval.val) = dispatch1(super, (yyvsp[(2) - (2)].val));
09561 
09562                     }
09563     break;
09564 
09565   case 431:
09566 
09567 /* Line 1806 of yacc.c  */
09568 #line 3674 "ripper.y"
09569     {
09570 #if 0
09571                         (yyval.val) = NEW_ZSUPER();
09572 #endif
09573                         (yyval.val) = dispatch0(zsuper);
09574 
09575                     }
09576     break;
09577 
09578   case 432:
09579 
09580 /* Line 1806 of yacc.c  */
09581 #line 3682 "ripper.y"
09582     {
09583 #if 0
09584                         if ((yyvsp[(1) - (4)].val) && nd_type((yyvsp[(1) - (4)].val)) == NODE_SELF)
09585                             (yyval.val) = NEW_FCALL(tAREF, (yyvsp[(3) - (4)].val));
09586                         else
09587                             (yyval.val) = NEW_CALL((yyvsp[(1) - (4)].val), tAREF, (yyvsp[(3) - (4)].val));
09588                         fixpos((yyval.val), (yyvsp[(1) - (4)].val));
09589 #endif
09590                         (yyval.val) = dispatch2(aref, (yyvsp[(1) - (4)].val), escape_Qundef((yyvsp[(3) - (4)].val)));
09591 
09592                     }
09593     break;
09594 
09595   case 433:
09596 
09597 /* Line 1806 of yacc.c  */
09598 #line 3696 "ripper.y"
09599     {
09600                         (yyvsp[(1) - (1)].vars) = dyna_push();
09601 #if 0
09602                         (yyval.num) = ruby_sourceline;
09603 #endif
09604 
09605                     }
09606     break;
09607 
09608   case 434:
09609 
09610 /* Line 1806 of yacc.c  */
09611 #line 3705 "ripper.y"
09612     {
09613 #if 0
09614                         (yyval.val) = NEW_ITER((yyvsp[(3) - (5)].val),(yyvsp[(4) - (5)].val));
09615                         nd_set_line((yyval.val), (yyvsp[(2) - (5)].num));
09616 #endif
09617                         (yyval.val) = dispatch2(brace_block, escape_Qundef((yyvsp[(3) - (5)].val)), (yyvsp[(4) - (5)].val));
09618 
09619                         dyna_pop((yyvsp[(1) - (5)].vars));
09620                     }
09621     break;
09622 
09623   case 435:
09624 
09625 /* Line 1806 of yacc.c  */
09626 #line 3715 "ripper.y"
09627     {
09628                         (yyvsp[(1) - (1)].vars) = dyna_push();
09629 #if 0
09630                         (yyval.num) = ruby_sourceline;
09631 #endif
09632 
09633                     }
09634     break;
09635 
09636   case 436:
09637 
09638 /* Line 1806 of yacc.c  */
09639 #line 3724 "ripper.y"
09640     {
09641 #if 0
09642                         (yyval.val) = NEW_ITER((yyvsp[(3) - (5)].val),(yyvsp[(4) - (5)].val));
09643                         nd_set_line((yyval.val), (yyvsp[(2) - (5)].num));
09644 #endif
09645                         (yyval.val) = dispatch2(do_block, escape_Qundef((yyvsp[(3) - (5)].val)), (yyvsp[(4) - (5)].val));
09646 
09647                         dyna_pop((yyvsp[(1) - (5)].vars));
09648                     }
09649     break;
09650 
09651   case 437:
09652 
09653 /* Line 1806 of yacc.c  */
09654 #line 3738 "ripper.y"
09655     {
09656 #if 0
09657                         (yyval.val) = NEW_WHEN((yyvsp[(2) - (5)].val), (yyvsp[(4) - (5)].val), (yyvsp[(5) - (5)].val));
09658 #endif
09659                         (yyval.val) = dispatch3(when, (yyvsp[(2) - (5)].val), (yyvsp[(4) - (5)].val), escape_Qundef((yyvsp[(5) - (5)].val)));
09660 
09661                     }
09662     break;
09663 
09664   case 440:
09665 
09666 /* Line 1806 of yacc.c  */
09667 #line 3754 "ripper.y"
09668     {
09669 #if 0
09670                         if ((yyvsp[(3) - (6)].val)) {
09671                             (yyvsp[(3) - (6)].val) = node_assign((yyvsp[(3) - (6)].val), NEW_ERRINFO());
09672                             (yyvsp[(5) - (6)].val) = block_append((yyvsp[(3) - (6)].val), (yyvsp[(5) - (6)].val));
09673                         }
09674                         (yyval.val) = NEW_RESBODY((yyvsp[(2) - (6)].val), (yyvsp[(5) - (6)].val), (yyvsp[(6) - (6)].val));
09675                         fixpos((yyval.val), (yyvsp[(2) - (6)].val)?(yyvsp[(2) - (6)].val):(yyvsp[(5) - (6)].val));
09676 #endif
09677                         (yyval.val) = dispatch4(rescue,
09678                                        escape_Qundef((yyvsp[(2) - (6)].val)),
09679                                        escape_Qundef((yyvsp[(3) - (6)].val)),
09680                                        escape_Qundef((yyvsp[(5) - (6)].val)),
09681                                        escape_Qundef((yyvsp[(6) - (6)].val)));
09682 
09683                     }
09684     break;
09685 
09686   case 442:
09687 
09688 /* Line 1806 of yacc.c  */
09689 #line 3774 "ripper.y"
09690     {
09691 #if 0
09692                         (yyval.val) = NEW_LIST((yyvsp[(1) - (1)].val));
09693 #endif
09694                         (yyval.val) = rb_ary_new3(1, (yyvsp[(1) - (1)].val));
09695 
09696                     }
09697     break;
09698 
09699   case 443:
09700 
09701 /* Line 1806 of yacc.c  */
09702 #line 3782 "ripper.y"
09703     {
09704 #if 0
09705                         if (!((yyval.val) = splat_array((yyvsp[(1) - (1)].val)))) (yyval.val) = (yyvsp[(1) - (1)].val);
09706 #endif
09707                         (yyval.val) = (yyvsp[(1) - (1)].val);
09708 
09709                     }
09710     break;
09711 
09712   case 445:
09713 
09714 /* Line 1806 of yacc.c  */
09715 #line 3793 "ripper.y"
09716     {
09717                         (yyval.val) = (yyvsp[(2) - (2)].val);
09718                     }
09719     break;
09720 
09721   case 447:
09722 
09723 /* Line 1806 of yacc.c  */
09724 #line 3800 "ripper.y"
09725     {
09726 #if 0
09727                         (yyval.val) = (yyvsp[(2) - (2)].val);
09728 #endif
09729                         (yyval.val) = dispatch1(ensure, (yyvsp[(2) - (2)].val));
09730 
09731                     }
09732     break;
09733 
09734   case 450:
09735 
09736 /* Line 1806 of yacc.c  */
09737 #line 3812 "ripper.y"
09738     {
09739 #if 0
09740                         (yyval.val) = NEW_LIT(ID2SYM((yyvsp[(1) - (1)].val)));
09741 #endif
09742                         (yyval.val) = dispatch1(symbol_literal, (yyvsp[(1) - (1)].val));
09743 
09744                     }
09745     break;
09746 
09747   case 452:
09748 
09749 /* Line 1806 of yacc.c  */
09750 #line 3823 "ripper.y"
09751     {
09752 #if 0
09753                         NODE *node = (yyvsp[(1) - (1)].val);
09754                         if (!node) {
09755                             node = NEW_STR(STR_NEW0());
09756                         }
09757                         else {
09758                             node = evstr2dstr(node);
09759                         }
09760                         (yyval.val) = node;
09761 #endif
09762                         (yyval.val) = (yyvsp[(1) - (1)].val);
09763 
09764                     }
09765     break;
09766 
09767   case 455:
09768 
09769 /* Line 1806 of yacc.c  */
09770 #line 3842 "ripper.y"
09771     {
09772 #if 0
09773                         (yyval.val) = literal_concat((yyvsp[(1) - (2)].val), (yyvsp[(2) - (2)].val));
09774 #endif
09775                         (yyval.val) = dispatch2(string_concat, (yyvsp[(1) - (2)].val), (yyvsp[(2) - (2)].val));
09776 
09777                     }
09778     break;
09779 
09780   case 456:
09781 
09782 /* Line 1806 of yacc.c  */
09783 #line 3852 "ripper.y"
09784     {
09785 #if 0
09786                         (yyval.val) = (yyvsp[(2) - (3)].val);
09787 #endif
09788                         (yyval.val) = dispatch1(string_literal, (yyvsp[(2) - (3)].val));
09789 
09790                     }
09791     break;
09792 
09793   case 457:
09794 
09795 /* Line 1806 of yacc.c  */
09796 #line 3862 "ripper.y"
09797     {
09798 #if 0
09799                         NODE *node = (yyvsp[(2) - (3)].val);
09800                         if (!node) {
09801                             node = NEW_XSTR(STR_NEW0());
09802                         }
09803                         else {
09804                             switch (nd_type(node)) {
09805                               case NODE_STR:
09806                                 nd_set_type(node, NODE_XSTR);
09807                                 break;
09808                               case NODE_DSTR:
09809                                 nd_set_type(node, NODE_DXSTR);
09810                                 break;
09811                               default:
09812                                 node = NEW_NODE(NODE_DXSTR, Qnil, 1, NEW_LIST(node));
09813                                 break;
09814                             }
09815                         }
09816                         (yyval.val) = node;
09817 #endif
09818                         (yyval.val) = dispatch1(xstring_literal, (yyvsp[(2) - (3)].val));
09819 
09820                     }
09821     break;
09822 
09823   case 458:
09824 
09825 /* Line 1806 of yacc.c  */
09826 #line 3889 "ripper.y"
09827     {
09828 #if 0
09829                         int options = (yyvsp[(3) - (3)].val);
09830                         NODE *node = (yyvsp[(2) - (3)].val);
09831                         NODE *list, *prev;
09832                         if (!node) {
09833                             node = NEW_LIT(reg_compile(STR_NEW0(), options));
09834                         }
09835                         else switch (nd_type(node)) {
09836                           case NODE_STR:
09837                             {
09838                                 VALUE src = node->nd_lit;
09839                                 nd_set_type(node, NODE_LIT);
09840                                 node->nd_lit = reg_compile(src, options);
09841                             }
09842                             break;
09843                           default:
09844                             node = NEW_NODE(NODE_DSTR, STR_NEW0(), 1, NEW_LIST(node));
09845                           case NODE_DSTR:
09846                             if (options & RE_OPTION_ONCE) {
09847                                 nd_set_type(node, NODE_DREGX_ONCE);
09848                             }
09849                             else {
09850                                 nd_set_type(node, NODE_DREGX);
09851                             }
09852                             node->nd_cflag = options & RE_OPTION_MASK;
09853                             if (!NIL_P(node->nd_lit)) reg_fragment_check(node->nd_lit, options);
09854                             for (list = (prev = node)->nd_next; list; list = list->nd_next) {
09855                                 if (nd_type(list->nd_head) == NODE_STR) {
09856                                     VALUE tail = list->nd_head->nd_lit;
09857                                     if (reg_fragment_check(tail, options) && prev && !NIL_P(prev->nd_lit)) {
09858                                         VALUE lit = prev == node ? prev->nd_lit : prev->nd_head->nd_lit;
09859                                         if (!literal_concat0(parser, lit, tail)) {
09860                                             node = 0;
09861                                             break;
09862                                         }
09863                                         rb_str_resize(tail, 0);
09864                                         prev->nd_next = list->nd_next;
09865                                         rb_gc_force_recycle((VALUE)list->nd_head);
09866                                         rb_gc_force_recycle((VALUE)list);
09867                                         list = prev;
09868                                     }
09869                                     else {
09870                                         prev = list;
09871                                     }
09872                                 }
09873                                 else {
09874                                     prev = 0;
09875                                 }
09876                             }
09877                             if (!node->nd_next) {
09878                                 VALUE src = node->nd_lit;
09879                                 nd_set_type(node, NODE_LIT);
09880                                 node->nd_lit = reg_compile(src, options);
09881                             }
09882                             break;
09883                         }
09884                         (yyval.val) = node;
09885 #endif
09886                         (yyval.val) = dispatch2(regexp_literal, (yyvsp[(2) - (3)].val), (yyvsp[(3) - (3)].val));
09887 
09888                     }
09889     break;
09890 
09891   case 459:
09892 
09893 /* Line 1806 of yacc.c  */
09894 #line 3954 "ripper.y"
09895     {
09896 #if 0
09897                         (yyval.val) = NEW_ZARRAY();
09898 #endif
09899                         (yyval.val) = dispatch0(words_new);
09900                         (yyval.val) = dispatch1(array, (yyval.val));
09901 
09902                     }
09903     break;
09904 
09905   case 460:
09906 
09907 /* Line 1806 of yacc.c  */
09908 #line 3963 "ripper.y"
09909     {
09910 #if 0
09911                         (yyval.val) = (yyvsp[(2) - (3)].val);
09912 #endif
09913                         (yyval.val) = dispatch1(array, (yyvsp[(2) - (3)].val));
09914 
09915                     }
09916     break;
09917 
09918   case 461:
09919 
09920 /* Line 1806 of yacc.c  */
09921 #line 3973 "ripper.y"
09922     {
09923 #if 0
09924                         (yyval.val) = 0;
09925 #endif
09926                         (yyval.val) = dispatch0(words_new);
09927 
09928                     }
09929     break;
09930 
09931   case 462:
09932 
09933 /* Line 1806 of yacc.c  */
09934 #line 3981 "ripper.y"
09935     {
09936 #if 0
09937                         (yyval.val) = list_append((yyvsp[(1) - (3)].val), evstr2dstr((yyvsp[(2) - (3)].val)));
09938 #endif
09939                         (yyval.val) = dispatch2(words_add, (yyvsp[(1) - (3)].val), (yyvsp[(2) - (3)].val));
09940 
09941                     }
09942     break;
09943 
09944   case 463:
09945 
09946 /* Line 1806 of yacc.c  */
09947 #line 3993 "ripper.y"
09948     {
09949                         (yyval.val) = dispatch0(word_new);
09950                         (yyval.val) = dispatch2(word_add, (yyval.val), (yyvsp[(1) - (1)].val));
09951                     }
09952     break;
09953 
09954   case 464:
09955 
09956 /* Line 1806 of yacc.c  */
09957 #line 3999 "ripper.y"
09958     {
09959 #if 0
09960                         (yyval.val) = literal_concat((yyvsp[(1) - (2)].val), (yyvsp[(2) - (2)].val));
09961 #endif
09962                         (yyval.val) = dispatch2(word_add, (yyvsp[(1) - (2)].val), (yyvsp[(2) - (2)].val));
09963 
09964                     }
09965     break;
09966 
09967   case 465:
09968 
09969 /* Line 1806 of yacc.c  */
09970 #line 4009 "ripper.y"
09971     {
09972 #if 0
09973                         (yyval.val) = NEW_ZARRAY();
09974 #endif
09975                         (yyval.val) = dispatch0(symbols_new);
09976                         (yyval.val) = dispatch1(array, (yyval.val));
09977 
09978                     }
09979     break;
09980 
09981   case 466:
09982 
09983 /* Line 1806 of yacc.c  */
09984 #line 4018 "ripper.y"
09985     {
09986 #if 0
09987                         (yyval.val) = (yyvsp[(2) - (3)].val);
09988 #endif
09989                         (yyval.val) = dispatch1(array, (yyvsp[(2) - (3)].val));
09990 
09991                     }
09992     break;
09993 
09994   case 467:
09995 
09996 /* Line 1806 of yacc.c  */
09997 #line 4028 "ripper.y"
09998     {
09999 #if 0
10000                         (yyval.val) = 0;
10001 #endif
10002                         (yyval.val) = dispatch0(symbols_new);
10003 
10004                     }
10005     break;
10006 
10007   case 468:
10008 
10009 /* Line 1806 of yacc.c  */
10010 #line 4036 "ripper.y"
10011     {
10012 #if 0
10013                         (yyvsp[(2) - (3)].val) = evstr2dstr((yyvsp[(2) - (3)].val));
10014                         nd_set_type((yyvsp[(2) - (3)].val), NODE_DSYM);
10015                         (yyval.val) = list_append((yyvsp[(1) - (3)].val), (yyvsp[(2) - (3)].val));
10016 #endif
10017                         (yyval.val) = dispatch2(symbols_add, (yyvsp[(1) - (3)].val), (yyvsp[(2) - (3)].val));
10018 
10019                     }
10020     break;
10021 
10022   case 469:
10023 
10024 /* Line 1806 of yacc.c  */
10025 #line 4048 "ripper.y"
10026     {
10027 #if 0
10028                         (yyval.val) = NEW_ZARRAY();
10029 #endif
10030                         (yyval.val) = dispatch0(qwords_new);
10031                         (yyval.val) = dispatch1(array, (yyval.val));
10032 
10033                     }
10034     break;
10035 
10036   case 470:
10037 
10038 /* Line 1806 of yacc.c  */
10039 #line 4057 "ripper.y"
10040     {
10041 #if 0
10042                         (yyval.val) = (yyvsp[(2) - (3)].val);
10043 #endif
10044                         (yyval.val) = dispatch1(array, (yyvsp[(2) - (3)].val));
10045 
10046                     }
10047     break;
10048 
10049   case 471:
10050 
10051 /* Line 1806 of yacc.c  */
10052 #line 4067 "ripper.y"
10053     {
10054 #if 0
10055                         (yyval.val) = NEW_ZARRAY();
10056 #endif
10057                         (yyval.val) = dispatch0(qsymbols_new);
10058                         (yyval.val) = dispatch1(array, (yyval.val));
10059 
10060                     }
10061     break;
10062 
10063   case 472:
10064 
10065 /* Line 1806 of yacc.c  */
10066 #line 4076 "ripper.y"
10067     {
10068 #if 0
10069                         (yyval.val) = (yyvsp[(2) - (3)].val);
10070 #endif
10071                         (yyval.val) = dispatch1(array, (yyvsp[(2) - (3)].val));
10072 
10073                     }
10074     break;
10075 
10076   case 473:
10077 
10078 /* Line 1806 of yacc.c  */
10079 #line 4086 "ripper.y"
10080     {
10081 #if 0
10082                         (yyval.val) = 0;
10083 #endif
10084                         (yyval.val) = dispatch0(qwords_new);
10085 
10086                     }
10087     break;
10088 
10089   case 474:
10090 
10091 /* Line 1806 of yacc.c  */
10092 #line 4094 "ripper.y"
10093     {
10094 #if 0
10095                         (yyval.val) = list_append((yyvsp[(1) - (3)].val), (yyvsp[(2) - (3)].val));
10096 #endif
10097                         (yyval.val) = dispatch2(qwords_add, (yyvsp[(1) - (3)].val), (yyvsp[(2) - (3)].val));
10098 
10099                     }
10100     break;
10101 
10102   case 475:
10103 
10104 /* Line 1806 of yacc.c  */
10105 #line 4104 "ripper.y"
10106     {
10107 #if 0
10108                         (yyval.val) = 0;
10109 #endif
10110                         (yyval.val) = dispatch0(qsymbols_new);
10111 
10112                     }
10113     break;
10114 
10115   case 476:
10116 
10117 /* Line 1806 of yacc.c  */
10118 #line 4112 "ripper.y"
10119     {
10120 #if 0
10121                         VALUE lit;
10122                         lit = (yyvsp[(2) - (3)].val)->nd_lit;
10123                         (yyvsp[(2) - (3)].val)->nd_lit = ID2SYM(rb_intern_str(lit));
10124                         nd_set_type((yyvsp[(2) - (3)].val), NODE_LIT);
10125                         (yyval.val) = list_append((yyvsp[(1) - (3)].val), (yyvsp[(2) - (3)].val));
10126 #endif
10127                         (yyval.val) = dispatch2(qsymbols_add, (yyvsp[(1) - (3)].val), (yyvsp[(2) - (3)].val));
10128 
10129                     }
10130     break;
10131 
10132   case 477:
10133 
10134 /* Line 1806 of yacc.c  */
10135 #line 4126 "ripper.y"
10136     {
10137 #if 0
10138                         (yyval.val) = 0;
10139 #endif
10140                         (yyval.val) = dispatch0(string_content);
10141 
10142                     }
10143     break;
10144 
10145   case 478:
10146 
10147 /* Line 1806 of yacc.c  */
10148 #line 4134 "ripper.y"
10149     {
10150 #if 0
10151                         (yyval.val) = literal_concat((yyvsp[(1) - (2)].val), (yyvsp[(2) - (2)].val));
10152 #endif
10153                         (yyval.val) = dispatch2(string_add, (yyvsp[(1) - (2)].val), (yyvsp[(2) - (2)].val));
10154 
10155                     }
10156     break;
10157 
10158   case 479:
10159 
10160 /* Line 1806 of yacc.c  */
10161 #line 4144 "ripper.y"
10162     {
10163 #if 0
10164                         (yyval.val) = 0;
10165 #endif
10166                         (yyval.val) = dispatch0(xstring_new);
10167 
10168                     }
10169     break;
10170 
10171   case 480:
10172 
10173 /* Line 1806 of yacc.c  */
10174 #line 4152 "ripper.y"
10175     {
10176 #if 0
10177                         (yyval.val) = literal_concat((yyvsp[(1) - (2)].val), (yyvsp[(2) - (2)].val));
10178 #endif
10179                         (yyval.val) = dispatch2(xstring_add, (yyvsp[(1) - (2)].val), (yyvsp[(2) - (2)].val));
10180 
10181                     }
10182     break;
10183 
10184   case 481:
10185 
10186 /* Line 1806 of yacc.c  */
10187 #line 4162 "ripper.y"
10188     {
10189 #if 0
10190                         (yyval.val) = 0;
10191 #endif
10192                         (yyval.val) = dispatch0(regexp_new);
10193 
10194                     }
10195     break;
10196 
10197   case 482:
10198 
10199 /* Line 1806 of yacc.c  */
10200 #line 4170 "ripper.y"
10201     {
10202 #if 0
10203                         NODE *head = (yyvsp[(1) - (2)].val), *tail = (yyvsp[(2) - (2)].val);
10204                         if (!head) {
10205                             (yyval.val) = tail;
10206                         }
10207                         else if (!tail) {
10208                             (yyval.val) = head;
10209                         }
10210                         else {
10211                             switch (nd_type(head)) {
10212                               case NODE_STR:
10213                                 nd_set_type(head, NODE_DSTR);
10214                                 break;
10215                               case NODE_DSTR:
10216                                 break;
10217                               default:
10218                                 head = list_append(NEW_DSTR(Qnil), head);
10219                                 break;
10220                             }
10221                             (yyval.val) = list_append(head, tail);
10222                         }
10223 #endif
10224                         (yyval.val) = dispatch2(regexp_add, (yyvsp[(1) - (2)].val), (yyvsp[(2) - (2)].val));
10225 
10226                     }
10227     break;
10228 
10229   case 484:
10230 
10231 /* Line 1806 of yacc.c  */
10232 #line 4200 "ripper.y"
10233     {
10234                         (yyval.node) = lex_strterm;
10235                         lex_strterm = 0;
10236                         lex_state = EXPR_BEG;
10237                     }
10238     break;
10239 
10240   case 485:
10241 
10242 /* Line 1806 of yacc.c  */
10243 #line 4206 "ripper.y"
10244     {
10245 #if 0
10246                         lex_strterm = (yyvsp[(2) - (3)].node);
10247                         (yyval.val) = NEW_EVSTR((yyvsp[(3) - (3)].val));
10248 #endif
10249                         lex_strterm = (yyvsp[(2) - (3)].node);
10250                         (yyval.val) = dispatch1(string_dvar, (yyvsp[(3) - (3)].val));
10251 
10252                     }
10253     break;
10254 
10255   case 486:
10256 
10257 /* Line 1806 of yacc.c  */
10258 #line 4216 "ripper.y"
10259     {
10260                         (yyvsp[(1) - (1)].val) = cond_stack;
10261                         (yyval.val) = cmdarg_stack;
10262                         cond_stack = 0;
10263                         cmdarg_stack = 0;
10264                     }
10265     break;
10266 
10267   case 487:
10268 
10269 /* Line 1806 of yacc.c  */
10270 #line 4222 "ripper.y"
10271     {
10272                         (yyval.node) = lex_strterm;
10273                         lex_strterm = 0;
10274                         lex_state = EXPR_BEG;
10275                     }
10276     break;
10277 
10278   case 488:
10279 
10280 /* Line 1806 of yacc.c  */
10281 #line 4227 "ripper.y"
10282     {
10283                         (yyval.num) = brace_nest;
10284                         brace_nest = 0;
10285                     }
10286     break;
10287 
10288   case 489:
10289 
10290 /* Line 1806 of yacc.c  */
10291 #line 4232 "ripper.y"
10292     {
10293                         cond_stack = (yyvsp[(1) - (6)].val);
10294                         cmdarg_stack = (yyvsp[(2) - (6)].val);
10295                         lex_strterm = (yyvsp[(3) - (6)].node);
10296                         brace_nest = (yyvsp[(4) - (6)].num);
10297 #if 0
10298                         if ((yyvsp[(5) - (6)].val)) (yyvsp[(5) - (6)].val)->flags &= ~NODE_FL_NEWLINE;
10299                         (yyval.val) = new_evstr((yyvsp[(5) - (6)].val));
10300 #endif
10301                         (yyval.val) = dispatch1(string_embexpr, (yyvsp[(5) - (6)].val));
10302 
10303                     }
10304     break;
10305 
10306   case 490:
10307 
10308 /* Line 1806 of yacc.c  */
10309 #line 4247 "ripper.y"
10310     {
10311 #if 0
10312                         (yyval.val) = NEW_GVAR((yyvsp[(1) - (1)].val));
10313 #endif
10314                         (yyval.val) = dispatch1(var_ref, (yyvsp[(1) - (1)].val));
10315 
10316                     }
10317     break;
10318 
10319   case 491:
10320 
10321 /* Line 1806 of yacc.c  */
10322 #line 4255 "ripper.y"
10323     {
10324 #if 0
10325                         (yyval.val) = NEW_IVAR((yyvsp[(1) - (1)].val));
10326 #endif
10327                         (yyval.val) = dispatch1(var_ref, (yyvsp[(1) - (1)].val));
10328 
10329                     }
10330     break;
10331 
10332   case 492:
10333 
10334 /* Line 1806 of yacc.c  */
10335 #line 4263 "ripper.y"
10336     {
10337 #if 0
10338                         (yyval.val) = NEW_CVAR((yyvsp[(1) - (1)].val));
10339 #endif
10340                         (yyval.val) = dispatch1(var_ref, (yyvsp[(1) - (1)].val));
10341 
10342                     }
10343     break;
10344 
10345   case 494:
10346 
10347 /* Line 1806 of yacc.c  */
10348 #line 4274 "ripper.y"
10349     {
10350                         lex_state = EXPR_END;
10351 #if 0
10352                         (yyval.val) = (yyvsp[(2) - (2)].val);
10353 #endif
10354                         (yyval.val) = dispatch1(symbol, (yyvsp[(2) - (2)].val));
10355 
10356                     }
10357     break;
10358 
10359   case 499:
10360 
10361 /* Line 1806 of yacc.c  */
10362 #line 4291 "ripper.y"
10363     {
10364                         lex_state = EXPR_END;
10365 #if 0
10366                         (yyval.val) = dsym_node((yyvsp[(2) - (3)].val));
10367 #endif
10368                         (yyval.val) = dispatch1(dyna_symbol, (yyvsp[(2) - (3)].val));
10369 
10370                     }
10371     break;
10372 
10373   case 502:
10374 
10375 /* Line 1806 of yacc.c  */
10376 #line 4304 "ripper.y"
10377     {
10378 #if 0
10379                         (yyval.val) = negate_lit((yyvsp[(2) - (2)].val));
10380 #endif
10381                         (yyval.val) = dispatch2(unary, ripper_intern("-@"), (yyvsp[(2) - (2)].val));
10382 
10383                     }
10384     break;
10385 
10386   case 503:
10387 
10388 /* Line 1806 of yacc.c  */
10389 #line 4312 "ripper.y"
10390     {
10391 #if 0
10392                         (yyval.val) = negate_lit((yyvsp[(2) - (2)].val));
10393 #endif
10394                         (yyval.val) = dispatch2(unary, ripper_intern("-@"), (yyvsp[(2) - (2)].val));
10395 
10396                     }
10397     break;
10398 
10399   case 509:
10400 
10401 /* Line 1806 of yacc.c  */
10402 #line 4328 "ripper.y"
10403     {ifndef_ripper((yyval.val) = keyword_nil);}
10404     break;
10405 
10406   case 510:
10407 
10408 /* Line 1806 of yacc.c  */
10409 #line 4329 "ripper.y"
10410     {ifndef_ripper((yyval.val) = keyword_self);}
10411     break;
10412 
10413   case 511:
10414 
10415 /* Line 1806 of yacc.c  */
10416 #line 4330 "ripper.y"
10417     {ifndef_ripper((yyval.val) = keyword_true);}
10418     break;
10419 
10420   case 512:
10421 
10422 /* Line 1806 of yacc.c  */
10423 #line 4331 "ripper.y"
10424     {ifndef_ripper((yyval.val) = keyword_false);}
10425     break;
10426 
10427   case 513:
10428 
10429 /* Line 1806 of yacc.c  */
10430 #line 4332 "ripper.y"
10431     {ifndef_ripper((yyval.val) = keyword__FILE__);}
10432     break;
10433 
10434   case 514:
10435 
10436 /* Line 1806 of yacc.c  */
10437 #line 4333 "ripper.y"
10438     {ifndef_ripper((yyval.val) = keyword__LINE__);}
10439     break;
10440 
10441   case 515:
10442 
10443 /* Line 1806 of yacc.c  */
10444 #line 4334 "ripper.y"
10445     {ifndef_ripper((yyval.val) = keyword__ENCODING__);}
10446     break;
10447 
10448   case 516:
10449 
10450 /* Line 1806 of yacc.c  */
10451 #line 4338 "ripper.y"
10452     {
10453 #if 0
10454                         if (!((yyval.val) = gettable((yyvsp[(1) - (1)].val)))) (yyval.val) = NEW_BEGIN(0);
10455 #endif
10456                         if (id_is_var(get_id((yyvsp[(1) - (1)].val)))) {
10457                             (yyval.val) = dispatch1(var_ref, (yyvsp[(1) - (1)].val));
10458                         }
10459                         else {
10460                             (yyval.val) = dispatch1(vcall, (yyvsp[(1) - (1)].val));
10461                         }
10462 
10463                     }
10464     break;
10465 
10466   case 517:
10467 
10468 /* Line 1806 of yacc.c  */
10469 #line 4351 "ripper.y"
10470     {
10471 #if 0
10472                         if (!((yyval.val) = gettable((yyvsp[(1) - (1)].val)))) (yyval.val) = NEW_BEGIN(0);
10473 #endif
10474                         (yyval.val) = dispatch1(var_ref, (yyvsp[(1) - (1)].val));
10475 
10476                     }
10477     break;
10478 
10479   case 518:
10480 
10481 /* Line 1806 of yacc.c  */
10482 #line 4361 "ripper.y"
10483     {
10484                         (yyval.val) = assignable((yyvsp[(1) - (1)].val), 0);
10485 #if 0
10486 #endif
10487                         (yyval.val) = dispatch1(var_field, (yyval.val));
10488 
10489                     }
10490     break;
10491 
10492   case 519:
10493 
10494 /* Line 1806 of yacc.c  */
10495 #line 4369 "ripper.y"
10496     {
10497                         (yyval.val) = assignable((yyvsp[(1) - (1)].val), 0);
10498 #if 0
10499 #endif
10500                         (yyval.val) = dispatch1(var_field, (yyval.val));
10501 
10502                     }
10503     break;
10504 
10505   case 522:
10506 
10507 /* Line 1806 of yacc.c  */
10508 #line 4383 "ripper.y"
10509     {
10510 #if 0
10511                         (yyval.val) = 0;
10512 #endif
10513                         (yyval.val) = Qnil;
10514 
10515                     }
10516     break;
10517 
10518   case 523:
10519 
10520 /* Line 1806 of yacc.c  */
10521 #line 4391 "ripper.y"
10522     {
10523                         lex_state = EXPR_BEG;
10524                         command_start = TRUE;
10525                     }
10526     break;
10527 
10528   case 524:
10529 
10530 /* Line 1806 of yacc.c  */
10531 #line 4396 "ripper.y"
10532     {
10533                         (yyval.val) = (yyvsp[(3) - (4)].val);
10534                     }
10535     break;
10536 
10537   case 525:
10538 
10539 /* Line 1806 of yacc.c  */
10540 #line 4400 "ripper.y"
10541     {
10542 #if 0
10543                         yyerrok;
10544                         (yyval.val) = 0;
10545 #endif
10546                         yyerrok;
10547                         (yyval.val) = Qnil;
10548 
10549                     }
10550     break;
10551 
10552   case 526:
10553 
10554 /* Line 1806 of yacc.c  */
10555 #line 4412 "ripper.y"
10556     {
10557 #if 0
10558                         (yyval.val) = (yyvsp[(2) - (3)].val);
10559 #endif
10560                         (yyval.val) = dispatch1(paren, (yyvsp[(2) - (3)].val));
10561 
10562                         lex_state = EXPR_BEG;
10563                         command_start = TRUE;
10564                     }
10565     break;
10566 
10567   case 527:
10568 
10569 /* Line 1806 of yacc.c  */
10570 #line 4422 "ripper.y"
10571     {
10572                         (yyval.val) = (yyvsp[(1) - (2)].val);
10573                         lex_state = EXPR_BEG;
10574                         command_start = TRUE;
10575                     }
10576     break;
10577 
10578   case 528:
10579 
10580 /* Line 1806 of yacc.c  */
10581 #line 4430 "ripper.y"
10582     {
10583                         (yyval.val) = new_args_tail((yyvsp[(1) - (4)].val), (yyvsp[(3) - (4)].val), (yyvsp[(4) - (4)].val));
10584                     }
10585     break;
10586 
10587   case 529:
10588 
10589 /* Line 1806 of yacc.c  */
10590 #line 4434 "ripper.y"
10591     {
10592                         (yyval.val) = new_args_tail((yyvsp[(1) - (2)].val), Qnone, (yyvsp[(2) - (2)].val));
10593                     }
10594     break;
10595 
10596   case 530:
10597 
10598 /* Line 1806 of yacc.c  */
10599 #line 4438 "ripper.y"
10600     {
10601                         (yyval.val) = new_args_tail(Qnone, (yyvsp[(1) - (2)].val), (yyvsp[(2) - (2)].val));
10602                     }
10603     break;
10604 
10605   case 531:
10606 
10607 /* Line 1806 of yacc.c  */
10608 #line 4442 "ripper.y"
10609     {
10610                         (yyval.val) = new_args_tail(Qnone, Qnone, (yyvsp[(1) - (1)].val));
10611                     }
10612     break;
10613 
10614   case 532:
10615 
10616 /* Line 1806 of yacc.c  */
10617 #line 4448 "ripper.y"
10618     {
10619                         (yyval.val) = (yyvsp[(2) - (2)].val);
10620                     }
10621     break;
10622 
10623   case 533:
10624 
10625 /* Line 1806 of yacc.c  */
10626 #line 4452 "ripper.y"
10627     {
10628                         (yyval.val) = new_args_tail(Qnone, Qnone, Qnone);
10629                     }
10630     break;
10631 
10632   case 534:
10633 
10634 /* Line 1806 of yacc.c  */
10635 #line 4458 "ripper.y"
10636     {
10637                         (yyval.val) = new_args((yyvsp[(1) - (6)].val), (yyvsp[(3) - (6)].val), (yyvsp[(5) - (6)].val), Qnone, (yyvsp[(6) - (6)].val));
10638                     }
10639     break;
10640 
10641   case 535:
10642 
10643 /* Line 1806 of yacc.c  */
10644 #line 4462 "ripper.y"
10645     {
10646                         (yyval.val) = new_args((yyvsp[(1) - (8)].val), (yyvsp[(3) - (8)].val), (yyvsp[(5) - (8)].val), (yyvsp[(7) - (8)].val), (yyvsp[(8) - (8)].val));
10647                     }
10648     break;
10649 
10650   case 536:
10651 
10652 /* Line 1806 of yacc.c  */
10653 #line 4466 "ripper.y"
10654     {
10655                         (yyval.val) = new_args((yyvsp[(1) - (4)].val), (yyvsp[(3) - (4)].val), Qnone, Qnone, (yyvsp[(4) - (4)].val));
10656                     }
10657     break;
10658 
10659   case 537:
10660 
10661 /* Line 1806 of yacc.c  */
10662 #line 4470 "ripper.y"
10663     {
10664                         (yyval.val) = new_args((yyvsp[(1) - (6)].val), (yyvsp[(3) - (6)].val), Qnone, (yyvsp[(5) - (6)].val), (yyvsp[(6) - (6)].val));
10665                     }
10666     break;
10667 
10668   case 538:
10669 
10670 /* Line 1806 of yacc.c  */
10671 #line 4474 "ripper.y"
10672     {
10673                         (yyval.val) = new_args((yyvsp[(1) - (4)].val), Qnone, (yyvsp[(3) - (4)].val), Qnone, (yyvsp[(4) - (4)].val));
10674                     }
10675     break;
10676 
10677   case 539:
10678 
10679 /* Line 1806 of yacc.c  */
10680 #line 4478 "ripper.y"
10681     {
10682                         (yyval.val) = new_args((yyvsp[(1) - (6)].val), Qnone, (yyvsp[(3) - (6)].val), (yyvsp[(5) - (6)].val), (yyvsp[(6) - (6)].val));
10683                     }
10684     break;
10685 
10686   case 540:
10687 
10688 /* Line 1806 of yacc.c  */
10689 #line 4482 "ripper.y"
10690     {
10691                         (yyval.val) = new_args((yyvsp[(1) - (2)].val), Qnone, Qnone, Qnone, (yyvsp[(2) - (2)].val));
10692                     }
10693     break;
10694 
10695   case 541:
10696 
10697 /* Line 1806 of yacc.c  */
10698 #line 4486 "ripper.y"
10699     {
10700                         (yyval.val) = new_args(Qnone, (yyvsp[(1) - (4)].val), (yyvsp[(3) - (4)].val), Qnone, (yyvsp[(4) - (4)].val));
10701                     }
10702     break;
10703 
10704   case 542:
10705 
10706 /* Line 1806 of yacc.c  */
10707 #line 4490 "ripper.y"
10708     {
10709                         (yyval.val) = new_args(Qnone, (yyvsp[(1) - (6)].val), (yyvsp[(3) - (6)].val), (yyvsp[(5) - (6)].val), (yyvsp[(6) - (6)].val));
10710                     }
10711     break;
10712 
10713   case 543:
10714 
10715 /* Line 1806 of yacc.c  */
10716 #line 4494 "ripper.y"
10717     {
10718                         (yyval.val) = new_args(Qnone, (yyvsp[(1) - (2)].val), Qnone, Qnone, (yyvsp[(2) - (2)].val));
10719                     }
10720     break;
10721 
10722   case 544:
10723 
10724 /* Line 1806 of yacc.c  */
10725 #line 4498 "ripper.y"
10726     {
10727                         (yyval.val) = new_args(Qnone, (yyvsp[(1) - (4)].val), Qnone, (yyvsp[(3) - (4)].val), (yyvsp[(4) - (4)].val));
10728                     }
10729     break;
10730 
10731   case 545:
10732 
10733 /* Line 1806 of yacc.c  */
10734 #line 4502 "ripper.y"
10735     {
10736                         (yyval.val) = new_args(Qnone, Qnone, (yyvsp[(1) - (2)].val), Qnone, (yyvsp[(2) - (2)].val));
10737                     }
10738     break;
10739 
10740   case 546:
10741 
10742 /* Line 1806 of yacc.c  */
10743 #line 4506 "ripper.y"
10744     {
10745                         (yyval.val) = new_args(Qnone, Qnone, (yyvsp[(1) - (4)].val), (yyvsp[(3) - (4)].val), (yyvsp[(4) - (4)].val));
10746                     }
10747     break;
10748 
10749   case 547:
10750 
10751 /* Line 1806 of yacc.c  */
10752 #line 4510 "ripper.y"
10753     {
10754                         (yyval.val) = new_args(Qnone, Qnone, Qnone, Qnone, (yyvsp[(1) - (1)].val));
10755                     }
10756     break;
10757 
10758   case 548:
10759 
10760 /* Line 1806 of yacc.c  */
10761 #line 4514 "ripper.y"
10762     {
10763                         (yyval.val) = new_args_tail(Qnone, Qnone, Qnone);
10764                         (yyval.val) = new_args(Qnone, Qnone, Qnone, Qnone, (yyval.val));
10765                     }
10766     break;
10767 
10768   case 549:
10769 
10770 /* Line 1806 of yacc.c  */
10771 #line 4521 "ripper.y"
10772     {
10773 #if 0
10774                         yyerror("formal argument cannot be a constant");
10775                         (yyval.val) = 0;
10776 #endif
10777                         (yyval.val) = dispatch1(param_error, (yyvsp[(1) - (1)].val));
10778 
10779                     }
10780     break;
10781 
10782   case 550:
10783 
10784 /* Line 1806 of yacc.c  */
10785 #line 4530 "ripper.y"
10786     {
10787 #if 0
10788                         yyerror("formal argument cannot be an instance variable");
10789                         (yyval.val) = 0;
10790 #endif
10791                         (yyval.val) = dispatch1(param_error, (yyvsp[(1) - (1)].val));
10792 
10793                     }
10794     break;
10795 
10796   case 551:
10797 
10798 /* Line 1806 of yacc.c  */
10799 #line 4539 "ripper.y"
10800     {
10801 #if 0
10802                         yyerror("formal argument cannot be a global variable");
10803                         (yyval.val) = 0;
10804 #endif
10805                         (yyval.val) = dispatch1(param_error, (yyvsp[(1) - (1)].val));
10806 
10807                     }
10808     break;
10809 
10810   case 552:
10811 
10812 /* Line 1806 of yacc.c  */
10813 #line 4548 "ripper.y"
10814     {
10815 #if 0
10816                         yyerror("formal argument cannot be a class variable");
10817                         (yyval.val) = 0;
10818 #endif
10819                         (yyval.val) = dispatch1(param_error, (yyvsp[(1) - (1)].val));
10820 
10821                     }
10822     break;
10823 
10824   case 554:
10825 
10826 /* Line 1806 of yacc.c  */
10827 #line 4560 "ripper.y"
10828     {
10829                         formal_argument(get_id((yyvsp[(1) - (1)].val)));
10830                         (yyval.val) = (yyvsp[(1) - (1)].val);
10831                     }
10832     break;
10833 
10834   case 555:
10835 
10836 /* Line 1806 of yacc.c  */
10837 #line 4567 "ripper.y"
10838     {
10839                         arg_var(get_id((yyvsp[(1) - (1)].val)));
10840 #if 0
10841                         (yyval.val) = NEW_ARGS_AUX((yyvsp[(1) - (1)].val), 1);
10842 #endif
10843                         (yyval.val) = get_value((yyvsp[(1) - (1)].val));
10844 
10845                     }
10846     break;
10847 
10848   case 556:
10849 
10850 /* Line 1806 of yacc.c  */
10851 #line 4576 "ripper.y"
10852     {
10853                         ID tid = internal_id();
10854                         arg_var(tid);
10855 #if 0
10856                         if (dyna_in_block()) {
10857                             (yyvsp[(2) - (3)].val)->nd_value = NEW_DVAR(tid);
10858                         }
10859                         else {
10860                             (yyvsp[(2) - (3)].val)->nd_value = NEW_LVAR(tid);
10861                         }
10862                         (yyval.val) = NEW_ARGS_AUX(tid, 1);
10863                         (yyval.val)->nd_next = (yyvsp[(2) - (3)].val);
10864 #endif
10865                         (yyval.val) = dispatch1(mlhs_paren, (yyvsp[(2) - (3)].val));
10866 
10867                     }
10868     break;
10869 
10870   case 557:
10871 
10872 /* Line 1806 of yacc.c  */
10873 #line 4597 "ripper.y"
10874     {
10875                         (yyval.val) = rb_ary_new3(1, (yyvsp[(1) - (1)].val));
10876                     }
10877     break;
10878 
10879   case 558:
10880 
10881 /* Line 1806 of yacc.c  */
10882 #line 4602 "ripper.y"
10883     {
10884 #if 0
10885                         (yyval.val) = (yyvsp[(1) - (3)].val);
10886                         (yyval.val)->nd_plen++;
10887                         (yyval.val)->nd_next = block_append((yyval.val)->nd_next, (yyvsp[(3) - (3)].val)->nd_next);
10888                         rb_gc_force_recycle((VALUE)(yyvsp[(3) - (3)].val));
10889 #endif
10890                         (yyval.val) = rb_ary_push((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
10891 
10892                     }
10893     break;
10894 
10895   case 559:
10896 
10897 /* Line 1806 of yacc.c  */
10898 #line 4615 "ripper.y"
10899     {
10900                         arg_var(formal_argument(get_id((yyvsp[(1) - (2)].val))));
10901                         (yyval.val) = assignable((yyvsp[(1) - (2)].val), (yyvsp[(2) - (2)].val));
10902 #if 0
10903                         (yyval.val) = NEW_KW_ARG(0, (yyval.val));
10904 #endif
10905                         (yyval.val) = rb_assoc_new((yyval.val), (yyvsp[(2) - (2)].val));
10906 
10907                     }
10908     break;
10909 
10910   case 560:
10911 
10912 /* Line 1806 of yacc.c  */
10913 #line 4627 "ripper.y"
10914     {
10915                         arg_var(formal_argument(get_id((yyvsp[(1) - (2)].val))));
10916                         (yyval.val) = assignable((yyvsp[(1) - (2)].val), (yyvsp[(2) - (2)].val));
10917 #if 0
10918                         (yyval.val) = NEW_KW_ARG(0, (yyval.val));
10919 #endif
10920                         (yyval.val) = rb_assoc_new((yyval.val), (yyvsp[(2) - (2)].val));
10921 
10922                     }
10923     break;
10924 
10925   case 561:
10926 
10927 /* Line 1806 of yacc.c  */
10928 #line 4639 "ripper.y"
10929     {
10930 #if 0
10931                         (yyval.val) = (yyvsp[(1) - (1)].val);
10932 #endif
10933                         (yyval.val) = rb_ary_new3(1, (yyvsp[(1) - (1)].val));
10934 
10935                     }
10936     break;
10937 
10938   case 562:
10939 
10940 /* Line 1806 of yacc.c  */
10941 #line 4647 "ripper.y"
10942     {
10943 #if 0
10944                         NODE *kws = (yyvsp[(1) - (3)].val);
10945 
10946                         while (kws->nd_next) {
10947                             kws = kws->nd_next;
10948                         }
10949                         kws->nd_next = (yyvsp[(3) - (3)].val);
10950                         (yyval.val) = (yyvsp[(1) - (3)].val);
10951 #endif
10952                         (yyval.val) = rb_ary_push((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
10953 
10954                     }
10955     break;
10956 
10957   case 563:
10958 
10959 /* Line 1806 of yacc.c  */
10960 #line 4664 "ripper.y"
10961     {
10962 #if 0
10963                         (yyval.val) = (yyvsp[(1) - (1)].val);
10964 #endif
10965                         (yyval.val) = rb_ary_new3(1, (yyvsp[(1) - (1)].val));
10966 
10967                     }
10968     break;
10969 
10970   case 564:
10971 
10972 /* Line 1806 of yacc.c  */
10973 #line 4672 "ripper.y"
10974     {
10975 #if 0
10976                         NODE *kws = (yyvsp[(1) - (3)].val);
10977 
10978                         while (kws->nd_next) {
10979                             kws = kws->nd_next;
10980                         }
10981                         kws->nd_next = (yyvsp[(3) - (3)].val);
10982                         (yyval.val) = (yyvsp[(1) - (3)].val);
10983 #endif
10984                         (yyval.val) = rb_ary_push((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
10985 
10986                     }
10987     break;
10988 
10989   case 567:
10990 
10991 /* Line 1806 of yacc.c  */
10992 #line 4692 "ripper.y"
10993     {
10994                         shadowing_lvar(get_id((yyvsp[(2) - (2)].val)));
10995                         (yyval.val) = (yyvsp[(2) - (2)].val);
10996                     }
10997     break;
10998 
10999   case 568:
11000 
11001 /* Line 1806 of yacc.c  */
11002 #line 4697 "ripper.y"
11003     {
11004                         (yyval.val) = internal_id();
11005                     }
11006     break;
11007 
11008   case 569:
11009 
11010 /* Line 1806 of yacc.c  */
11011 #line 4703 "ripper.y"
11012     {
11013                         arg_var(formal_argument(get_id((yyvsp[(1) - (3)].val))));
11014                         (yyval.val) = assignable((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
11015 #if 0
11016                         (yyval.val) = NEW_OPT_ARG(0, (yyval.val));
11017 #endif
11018                         (yyval.val) = rb_assoc_new((yyval.val), (yyvsp[(3) - (3)].val));
11019 
11020                     }
11021     break;
11022 
11023   case 570:
11024 
11025 /* Line 1806 of yacc.c  */
11026 #line 4715 "ripper.y"
11027     {
11028                         arg_var(formal_argument(get_id((yyvsp[(1) - (3)].val))));
11029                         (yyval.val) = assignable((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
11030 #if 0
11031                         (yyval.val) = NEW_OPT_ARG(0, (yyval.val));
11032 #endif
11033                         (yyval.val) = rb_assoc_new((yyval.val), (yyvsp[(3) - (3)].val));
11034 
11035                     }
11036     break;
11037 
11038   case 571:
11039 
11040 /* Line 1806 of yacc.c  */
11041 #line 4727 "ripper.y"
11042     {
11043 #if 0
11044                         (yyval.val) = (yyvsp[(1) - (1)].val);
11045 #endif
11046                         (yyval.val) = rb_ary_new3(1, (yyvsp[(1) - (1)].val));
11047 
11048                     }
11049     break;
11050 
11051   case 572:
11052 
11053 /* Line 1806 of yacc.c  */
11054 #line 4735 "ripper.y"
11055     {
11056 #if 0
11057                         NODE *opts = (yyvsp[(1) - (3)].val);
11058 
11059                         while (opts->nd_next) {
11060                             opts = opts->nd_next;
11061                         }
11062                         opts->nd_next = (yyvsp[(3) - (3)].val);
11063                         (yyval.val) = (yyvsp[(1) - (3)].val);
11064 #endif
11065                         (yyval.val) = rb_ary_push((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
11066 
11067                     }
11068     break;
11069 
11070   case 573:
11071 
11072 /* Line 1806 of yacc.c  */
11073 #line 4751 "ripper.y"
11074     {
11075 #if 0
11076                         (yyval.val) = (yyvsp[(1) - (1)].val);
11077 #endif
11078                         (yyval.val) = rb_ary_new3(1, (yyvsp[(1) - (1)].val));
11079 
11080                     }
11081     break;
11082 
11083   case 574:
11084 
11085 /* Line 1806 of yacc.c  */
11086 #line 4759 "ripper.y"
11087     {
11088 #if 0
11089                         NODE *opts = (yyvsp[(1) - (3)].val);
11090 
11091                         while (opts->nd_next) {
11092                             opts = opts->nd_next;
11093                         }
11094                         opts->nd_next = (yyvsp[(3) - (3)].val);
11095                         (yyval.val) = (yyvsp[(1) - (3)].val);
11096 #endif
11097                         (yyval.val) = rb_ary_push((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
11098 
11099                     }
11100     break;
11101 
11102   case 577:
11103 
11104 /* Line 1806 of yacc.c  */
11105 #line 4779 "ripper.y"
11106     {
11107 #if 0
11108                         if (!is_local_id((yyvsp[(2) - (2)].val)))
11109                             yyerror("rest argument must be local variable");
11110 #endif
11111                         arg_var(shadowing_lvar(get_id((yyvsp[(2) - (2)].val))));
11112 #if 0
11113                         (yyval.val) = (yyvsp[(2) - (2)].val);
11114 #endif
11115                         (yyval.val) = dispatch1(rest_param, (yyvsp[(2) - (2)].val));
11116 
11117                     }
11118     break;
11119 
11120   case 578:
11121 
11122 /* Line 1806 of yacc.c  */
11123 #line 4792 "ripper.y"
11124     {
11125 #if 0
11126                         (yyval.val) = internal_id();
11127                         arg_var((yyval.val));
11128 #endif
11129                         (yyval.val) = dispatch1(rest_param, Qnil);
11130 
11131                     }
11132     break;
11133 
11134   case 581:
11135 
11136 /* Line 1806 of yacc.c  */
11137 #line 4807 "ripper.y"
11138     {
11139 #if 0
11140                         if (!is_local_id((yyvsp[(2) - (2)].val)))
11141                             yyerror("block argument must be local variable");
11142                         else if (!dyna_in_block() && local_id((yyvsp[(2) - (2)].val)))
11143                             yyerror("duplicated block argument name");
11144 #endif
11145                         arg_var(shadowing_lvar(get_id((yyvsp[(2) - (2)].val))));
11146 #if 0
11147                         (yyval.val) = (yyvsp[(2) - (2)].val);
11148 #endif
11149                         (yyval.val) = dispatch1(blockarg, (yyvsp[(2) - (2)].val));
11150 
11151                     }
11152     break;
11153 
11154   case 582:
11155 
11156 /* Line 1806 of yacc.c  */
11157 #line 4824 "ripper.y"
11158     {
11159                         (yyval.val) = (yyvsp[(2) - (2)].val);
11160                     }
11161     break;
11162 
11163   case 583:
11164 
11165 /* Line 1806 of yacc.c  */
11166 #line 4828 "ripper.y"
11167     {
11168 #if 0
11169                         (yyval.val) = 0;
11170 #endif
11171                         (yyval.val) = Qundef;
11172 
11173                     }
11174     break;
11175 
11176   case 584:
11177 
11178 /* Line 1806 of yacc.c  */
11179 #line 4838 "ripper.y"
11180     {
11181 #if 0
11182                         value_expr((yyvsp[(1) - (1)].val));
11183                         (yyval.val) = (yyvsp[(1) - (1)].val);
11184                         if (!(yyval.val)) (yyval.val) = NEW_NIL();
11185 #endif
11186                         (yyval.val) = (yyvsp[(1) - (1)].val);
11187 
11188                     }
11189     break;
11190 
11191   case 585:
11192 
11193 /* Line 1806 of yacc.c  */
11194 #line 4847 "ripper.y"
11195     {lex_state = EXPR_BEG;}
11196     break;
11197 
11198   case 586:
11199 
11200 /* Line 1806 of yacc.c  */
11201 #line 4848 "ripper.y"
11202     {
11203 #if 0
11204                         if ((yyvsp[(3) - (4)].val) == 0) {
11205                             yyerror("can't define singleton method for ().");
11206                         }
11207                         else {
11208                             switch (nd_type((yyvsp[(3) - (4)].val))) {
11209                               case NODE_STR:
11210                               case NODE_DSTR:
11211                               case NODE_XSTR:
11212                               case NODE_DXSTR:
11213                               case NODE_DREGX:
11214                               case NODE_LIT:
11215                               case NODE_ARRAY:
11216                               case NODE_ZARRAY:
11217                                 yyerror("can't define singleton method for literals");
11218                               default:
11219                                 value_expr((yyvsp[(3) - (4)].val));
11220                                 break;
11221                             }
11222                         }
11223                         (yyval.val) = (yyvsp[(3) - (4)].val);
11224 #endif
11225                         (yyval.val) = dispatch1(paren, (yyvsp[(3) - (4)].val));
11226 
11227                     }
11228     break;
11229 
11230   case 588:
11231 
11232 /* Line 1806 of yacc.c  */
11233 #line 4878 "ripper.y"
11234     {
11235 #if 0
11236                         (yyval.val) = (yyvsp[(1) - (2)].val);
11237 #endif
11238                         (yyval.val) = dispatch1(assoclist_from_args, (yyvsp[(1) - (2)].val));
11239 
11240                     }
11241     break;
11242 
11243   case 589:
11244 
11245 /* Line 1806 of yacc.c  */
11246 #line 4890 "ripper.y"
11247     {
11248                         (yyval.val) = rb_ary_new3(1, (yyvsp[(1) - (1)].val));
11249                     }
11250     break;
11251 
11252   case 590:
11253 
11254 /* Line 1806 of yacc.c  */
11255 #line 4895 "ripper.y"
11256     {
11257 #if 0
11258                         (yyval.val) = list_concat((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
11259 #endif
11260                         (yyval.val) = rb_ary_push((yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
11261 
11262                     }
11263     break;
11264 
11265   case 591:
11266 
11267 /* Line 1806 of yacc.c  */
11268 #line 4905 "ripper.y"
11269     {
11270 #if 0
11271                         (yyval.val) = list_append(NEW_LIST((yyvsp[(1) - (3)].val)), (yyvsp[(3) - (3)].val));
11272 #endif
11273                         (yyval.val) = dispatch2(assoc_new, (yyvsp[(1) - (3)].val), (yyvsp[(3) - (3)].val));
11274 
11275                     }
11276     break;
11277 
11278   case 592:
11279 
11280 /* Line 1806 of yacc.c  */
11281 #line 4913 "ripper.y"
11282     {
11283 #if 0
11284                         (yyval.val) = list_append(NEW_LIST(NEW_LIT(ID2SYM((yyvsp[(1) - (2)].val)))), (yyvsp[(2) - (2)].val));
11285 #endif
11286                         (yyval.val) = dispatch2(assoc_new, (yyvsp[(1) - (2)].val), (yyvsp[(2) - (2)].val));
11287 
11288                     }
11289     break;
11290 
11291   case 593:
11292 
11293 /* Line 1806 of yacc.c  */
11294 #line 4921 "ripper.y"
11295     {
11296 #if 0
11297                         (yyval.val) = list_append(NEW_LIST(0), (yyvsp[(2) - (2)].val));
11298 #endif
11299                         (yyval.val) = dispatch1(assoc_splat, (yyvsp[(2) - (2)].val));
11300 
11301                     }
11302     break;
11303 
11304   case 604:
11305 
11306 /* Line 1806 of yacc.c  */
11307 #line 4951 "ripper.y"
11308     { (yyval.val) = (yyvsp[(1) - (1)].val); }
11309     break;
11310 
11311   case 605:
11312 
11313 /* Line 1806 of yacc.c  */
11314 #line 4956 "ripper.y"
11315     { (yyval.val) = (yyvsp[(1) - (1)].val); }
11316     break;
11317 
11318   case 615:
11319 
11320 /* Line 1806 of yacc.c  */
11321 #line 4979 "ripper.y"
11322     {yyerrok;}
11323     break;
11324 
11325   case 618:
11326 
11327 /* Line 1806 of yacc.c  */
11328 #line 4984 "ripper.y"
11329     {yyerrok;}
11330     break;
11331 
11332   case 619:
11333 
11334 /* Line 1806 of yacc.c  */
11335 #line 4988 "ripper.y"
11336     {
11337 #if 0
11338                         (yyval.val) = 0;
11339 #endif
11340                         (yyval.val) = Qundef;
11341 
11342                     }
11343     break;
11344 
11345 
11346 
11347 /* Line 1806 of yacc.c  */
11348 #line 11347 "parse.c"
11349       default: break;
11350     }
11351   /* User semantic actions sometimes alter yychar, and that requires
11352      that yytoken be updated with the new translation.  We take the
11353      approach of translating immediately before every use of yytoken.
11354      One alternative is translating here after every semantic action,
11355      but that translation would be missed if the semantic action invokes
11356      YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or
11357      if it invokes YYBACKUP.  In the case of YYABORT or YYACCEPT, an
11358      incorrect destructor might then be invoked immediately.  In the
11359      case of YYERROR or YYBACKUP, subsequent parser actions might lead
11360      to an incorrect destructor call or verbose syntax error message
11361      before the lookahead is translated.  */
11362   YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
11363 
11364   YYPOPSTACK (yylen);
11365   yylen = 0;
11366   YY_STACK_PRINT (yyss, yyssp);
11367 
11368   *++yyvsp = yyval;
11369 
11370   /* Now `shift' the result of the reduction.  Determine what state
11371      that goes to, based on the state we popped back to and the rule
11372      number reduced by.  */
11373 
11374   yyn = yyr1[yyn];
11375 
11376   yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
11377   if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
11378     yystate = yytable[yystate];
11379   else
11380     yystate = yydefgoto[yyn - YYNTOKENS];
11381 
11382   goto yynewstate;
11383 
11384 
11385 /*------------------------------------.
11386 | yyerrlab -- here on detecting error |
11387 `------------------------------------*/
11388 yyerrlab:
11389   /* Make sure we have latest lookahead translation.  See comments at
11390      user semantic actions for why this is necessary.  */
11391   yytoken = yychar == YYEMPTY ? YYEMPTY : YYTRANSLATE (yychar);
11392 
11393   /* If not already recovering from an error, report this error.  */
11394   if (!yyerrstatus)
11395     {
11396       ++yynerrs;
11397 #if ! YYERROR_VERBOSE
11398       parser_yyerror (parser, YY_("syntax error"));
11399 #else
11400 # define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, \
11401                                         yyssp, yytoken)
11402       {
11403         char const *yymsgp = YY_("syntax error");
11404         int yysyntax_error_status;
11405         yysyntax_error_status = YYSYNTAX_ERROR;
11406         if (yysyntax_error_status == 0)
11407           yymsgp = yymsg;
11408         else if (yysyntax_error_status == 1)
11409           {
11410             if (yymsg != yymsgbuf)
11411               YYSTACK_FREE (yymsg);
11412             yymsg = (char *) YYSTACK_ALLOC (yymsg_alloc);
11413             if (!yymsg)
11414               {
11415                 yymsg = yymsgbuf;
11416                 yymsg_alloc = sizeof yymsgbuf;
11417                 yysyntax_error_status = 2;
11418               }
11419             else
11420               {
11421                 yysyntax_error_status = YYSYNTAX_ERROR;
11422                 yymsgp = yymsg;
11423               }
11424           }
11425         parser_yyerror (parser, yymsgp);
11426         if (yysyntax_error_status == 2)
11427           goto yyexhaustedlab;
11428       }
11429 # undef YYSYNTAX_ERROR
11430 #endif
11431     }
11432 
11433 
11434 
11435   if (yyerrstatus == 3)
11436     {
11437       /* If just tried and failed to reuse lookahead token after an
11438          error, discard it.  */
11439 
11440       if (yychar <= YYEOF)
11441         {
11442           /* Return failure if at end of input.  */
11443           if (yychar == YYEOF)
11444             YYABORT;
11445         }
11446       else
11447         {
11448           yydestruct ("Error: discarding",
11449                       yytoken, &yylval, parser);
11450           yychar = YYEMPTY;
11451         }
11452     }
11453 
11454   /* Else will try to reuse lookahead token after shifting the error
11455      token.  */
11456   goto yyerrlab1;
11457 
11458 
11459 /*---------------------------------------------------.
11460 | yyerrorlab -- error raised explicitly by YYERROR.  |
11461 `---------------------------------------------------*/
11462 yyerrorlab:
11463 
11464   /* Pacify compilers like GCC when the user code never invokes
11465      YYERROR and the label yyerrorlab therefore never appears in user
11466      code.  */
11467   if (/*CONSTCOND*/ 0)
11468      goto yyerrorlab;
11469 
11470   /* Do not reclaim the symbols of the rule which action triggered
11471      this YYERROR.  */
11472   YYPOPSTACK (yylen);
11473   yylen = 0;
11474   YY_STACK_PRINT (yyss, yyssp);
11475   yystate = *yyssp;
11476   goto yyerrlab1;
11477 
11478 
11479 /*-------------------------------------------------------------.
11480 | yyerrlab1 -- common code for both syntax error and YYERROR.  |
11481 `-------------------------------------------------------------*/
11482 yyerrlab1:
11483   yyerrstatus = 3;      /* Each real token shifted decrements this.  */
11484 
11485   for (;;)
11486     {
11487       yyn = yypact[yystate];
11488       if (!yypact_value_is_default (yyn))
11489         {
11490           yyn += YYTERROR;
11491           if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
11492             {
11493               yyn = yytable[yyn];
11494               if (0 < yyn)
11495                 break;
11496             }
11497         }
11498 
11499       /* Pop the current state because it cannot handle the error token.  */
11500       if (yyssp == yyss)
11501         YYABORT;
11502 
11503 
11504       yydestruct ("Error: popping",
11505                   yystos[yystate], yyvsp, parser);
11506       YYPOPSTACK (1);
11507       yystate = *yyssp;
11508       YY_STACK_PRINT (yyss, yyssp);
11509     }
11510 
11511   *++yyvsp = yylval;
11512 
11513 
11514   /* Shift the error token.  */
11515   YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp);
11516 
11517   yystate = yyn;
11518   goto yynewstate;
11519 
11520 
11521 /*-------------------------------------.
11522 | yyacceptlab -- YYACCEPT comes here.  |
11523 `-------------------------------------*/
11524 yyacceptlab:
11525   yyresult = 0;
11526   goto yyreturn;
11527 
11528 /*-----------------------------------.
11529 | yyabortlab -- YYABORT comes here.  |
11530 `-----------------------------------*/
11531 yyabortlab:
11532   yyresult = 1;
11533   goto yyreturn;
11534 
11535 #if !defined(yyoverflow) || YYERROR_VERBOSE
11536 /*-------------------------------------------------.
11537 | yyexhaustedlab -- memory exhaustion comes here.  |
11538 `-------------------------------------------------*/
11539 yyexhaustedlab:
11540   parser_yyerror (parser, YY_("memory exhausted"));
11541   yyresult = 2;
11542   /* Fall through.  */
11543 #endif
11544 
11545 yyreturn:
11546   if (yychar != YYEMPTY)
11547     {
11548       /* Make sure we have latest lookahead translation.  See comments at
11549          user semantic actions for why this is necessary.  */
11550       yytoken = YYTRANSLATE (yychar);
11551       yydestruct ("Cleanup: discarding lookahead",
11552                   yytoken, &yylval, parser);
11553     }
11554   /* Do not reclaim the symbols of the rule which action triggered
11555      this YYABORT or YYACCEPT.  */
11556   YYPOPSTACK (yylen);
11557   YY_STACK_PRINT (yyss, yyssp);
11558   while (yyssp != yyss)
11559     {
11560       yydestruct ("Cleanup: popping",
11561                   yystos[*yyssp], yyvsp, parser);
11562       YYPOPSTACK (1);
11563     }
11564 #ifndef yyoverflow
11565   if (yyss != yyssa)
11566     YYSTACK_FREE (yyss);
11567 #endif
11568 #if YYERROR_VERBOSE
11569   if (yymsg != yymsgbuf)
11570     YYSTACK_FREE (yymsg);
11571 #endif
11572   /* Make sure YYID is used.  */
11573   return YYID (yyresult);
11574 }
11575 
11576 
11577 
11578 /* Line 2067 of yacc.c  */
11579 #line 4996 "ripper.y"
11580 
11581 # undef parser
11582 # undef yylex
11583 # undef yylval
11584 # define yylval  (*((YYSTYPE*)(parser->parser_yylval)))
11585 
11586 static int parser_regx_options(struct parser_params*);
11587 static int parser_tokadd_string(struct parser_params*,int,int,int,long*,rb_encoding**);
11588 static void parser_tokaddmbc(struct parser_params *parser, int c, rb_encoding *enc);
11589 static int parser_parse_string(struct parser_params*,NODE*);
11590 static int parser_here_document(struct parser_params*,NODE*);
11591 
11592 
11593 # define nextc()                   parser_nextc(parser)
11594 # define pushback(c)               parser_pushback(parser, (c))
11595 # define newtok()                  parser_newtok(parser)
11596 # define tokspace(n)               parser_tokspace(parser, (n))
11597 # define tokadd(c)                 parser_tokadd(parser, (c))
11598 # define tok_hex(numlen)           parser_tok_hex(parser, (numlen))
11599 # define read_escape(flags,e)      parser_read_escape(parser, (flags), (e))
11600 # define tokadd_escape(e)          parser_tokadd_escape(parser, (e))
11601 # define regx_options()            parser_regx_options(parser)
11602 # define tokadd_string(f,t,p,n,e)  parser_tokadd_string(parser,(f),(t),(p),(n),(e))
11603 # define parse_string(n)           parser_parse_string(parser,(n))
11604 # define tokaddmbc(c, enc)         parser_tokaddmbc(parser, (c), (enc))
11605 # define here_document(n)          parser_here_document(parser,(n))
11606 # define heredoc_identifier()      parser_heredoc_identifier(parser)
11607 # define heredoc_restore(n)        parser_heredoc_restore(parser,(n))
11608 # define whole_match_p(e,l,i)      parser_whole_match_p(parser,(e),(l),(i))
11609 
11610 #ifndef RIPPER
11611 # define set_yylval_str(x) (yylval.node = NEW_STR(x))
11612 # define set_yylval_num(x) (yylval.num = (x))
11613 # define set_yylval_id(x)  (yylval.id = (x))
11614 # define set_yylval_name(x)  (yylval.id = (x))
11615 # define set_yylval_literal(x) (yylval.node = NEW_LIT(x))
11616 # define set_yylval_node(x) (yylval.node = (x))
11617 # define yylval_id() (yylval.id)
11618 #else
11619 static inline VALUE
11620 ripper_yylval_id(ID x)
11621 {
11622     return (VALUE)NEW_LASGN(x, ID2SYM(x));
11623 }
11624 # define set_yylval_str(x) (void)(x)
11625 # define set_yylval_num(x) (void)(x)
11626 # define set_yylval_id(x)  (void)(x)
11627 # define set_yylval_name(x) (void)(yylval.val = ripper_yylval_id(x))
11628 # define set_yylval_literal(x) (void)(x)
11629 # define set_yylval_node(x) (void)(x)
11630 # define yylval_id() yylval.id
11631 #endif
11632 
11633 #ifndef RIPPER
11634 #define ripper_flush(p) (void)(p)
11635 #else
11636 #define ripper_flush(p) ((p)->tokp = (p)->parser_lex_p)
11637 
11638 #define yylval_rval (*(RB_TYPE_P(yylval.val, T_NODE) ? &yylval.node->nd_rval : &yylval.val))
11639 
11640 static int
11641 ripper_has_scan_event(struct parser_params *parser)
11642 {
11643 
11644     if (lex_p < parser->tokp) rb_raise(rb_eRuntimeError, "lex_p < tokp");
11645     return lex_p > parser->tokp;
11646 }
11647 
11648 static VALUE
11649 ripper_scan_event_val(struct parser_params *parser, int t)
11650 {
11651     VALUE str = STR_NEW(parser->tokp, lex_p - parser->tokp);
11652     VALUE rval = ripper_dispatch1(parser, ripper_token2eventid(t), str);
11653     ripper_flush(parser);
11654     return rval;
11655 }
11656 
11657 static void
11658 ripper_dispatch_scan_event(struct parser_params *parser, int t)
11659 {
11660     if (!ripper_has_scan_event(parser)) return;
11661     yylval_rval = ripper_scan_event_val(parser, t);
11662 }
11663 
11664 static void
11665 ripper_dispatch_ignored_scan_event(struct parser_params *parser, int t)
11666 {
11667     if (!ripper_has_scan_event(parser)) return;
11668     (void)ripper_scan_event_val(parser, t);
11669 }
11670 
11671 static void
11672 ripper_dispatch_delayed_token(struct parser_params *parser, int t)
11673 {
11674     int saved_line = ruby_sourceline;
11675     const char *saved_tokp = parser->tokp;
11676 
11677     ruby_sourceline = parser->delayed_line;
11678     parser->tokp = lex_pbeg + parser->delayed_col;
11679     yylval_rval = ripper_dispatch1(parser, ripper_token2eventid(t), parser->delayed);
11680     parser->delayed = Qnil;
11681     ruby_sourceline = saved_line;
11682     parser->tokp = saved_tokp;
11683 }
11684 #endif /* RIPPER */
11685 
11686 #include "ruby/regex.h"
11687 #include "ruby/util.h"
11688 
11689 /* We remove any previous definition of `SIGN_EXTEND_CHAR',
11690    since ours (we hope) works properly with all combinations of
11691    machines, compilers, `char' and `unsigned char' argument types.
11692    (Per Bothner suggested the basic approach.)  */
11693 #undef SIGN_EXTEND_CHAR
11694 #if __STDC__
11695 # define SIGN_EXTEND_CHAR(c) ((signed char)(c))
11696 #else  /* not __STDC__ */
11697 /* As in Harbison and Steele.  */
11698 # define SIGN_EXTEND_CHAR(c) ((((unsigned char)(c)) ^ 128) - 128)
11699 #endif
11700 
11701 #define parser_encoding_name()  (current_enc->name)
11702 #define parser_mbclen()  mbclen((lex_p-1),lex_pend,current_enc)
11703 #define parser_precise_mbclen()  rb_enc_precise_mbclen((lex_p-1),lex_pend,current_enc)
11704 #define is_identchar(p,e,enc) (rb_enc_isalnum(*(p),(enc)) || (*(p)) == '_' || !ISASCII(*(p)))
11705 #define parser_is_identchar() (!parser->eofp && is_identchar((lex_p-1),lex_pend,current_enc))
11706 
11707 #define parser_isascii() ISASCII(*(lex_p-1))
11708 
11709 #ifndef RIPPER
11710 static int
11711 token_info_get_column(struct parser_params *parser, const char *token)
11712 {
11713     int column = 1;
11714     const char *p, *pend = lex_p - strlen(token);
11715     for (p = lex_pbeg; p < pend; p++) {
11716         if (*p == '\t') {
11717             column = (((column - 1) / 8) + 1) * 8;
11718         }
11719         column++;
11720     }
11721     return column;
11722 }
11723 
11724 static int
11725 token_info_has_nonspaces(struct parser_params *parser, const char *token)
11726 {
11727     const char *p, *pend = lex_p - strlen(token);
11728     for (p = lex_pbeg; p < pend; p++) {
11729         if (*p != ' ' && *p != '\t') {
11730             return 1;
11731         }
11732     }
11733     return 0;
11734 }
11735 
11736 #undef token_info_push
11737 static void
11738 token_info_push(struct parser_params *parser, const char *token)
11739 {
11740     token_info *ptinfo;
11741 
11742     if (!parser->parser_token_info_enabled) return;
11743     ptinfo = ALLOC(token_info);
11744     ptinfo->token = token;
11745     ptinfo->linenum = ruby_sourceline;
11746     ptinfo->column = token_info_get_column(parser, token);
11747     ptinfo->nonspc = token_info_has_nonspaces(parser, token);
11748     ptinfo->next = parser->parser_token_info;
11749 
11750     parser->parser_token_info = ptinfo;
11751 }
11752 
11753 #undef token_info_pop
11754 static void
11755 token_info_pop(struct parser_params *parser, const char *token)
11756 {
11757     int linenum;
11758     token_info *ptinfo = parser->parser_token_info;
11759 
11760     if (!ptinfo) return;
11761     parser->parser_token_info = ptinfo->next;
11762     if (token_info_get_column(parser, token) == ptinfo->column) { /* OK */
11763         goto finish;
11764     }
11765     linenum = ruby_sourceline;
11766     if (linenum == ptinfo->linenum) { /* SKIP */
11767         goto finish;
11768     }
11769     if (token_info_has_nonspaces(parser, token) || ptinfo->nonspc) { /* SKIP */
11770         goto finish;
11771     }
11772     if (parser->parser_token_info_enabled) {
11773         rb_compile_warn(ruby_sourcefile, linenum,
11774                         "mismatched indentations at '%s' with '%s' at %d",
11775                         token, ptinfo->token, ptinfo->linenum);
11776     }
11777 
11778   finish:
11779     xfree(ptinfo);
11780 }
11781 #endif  /* RIPPER */
11782 
11783 static int
11784 parser_yyerror(struct parser_params *parser, const char *msg)
11785 {
11786 #ifndef RIPPER
11787     const int max_line_margin = 30;
11788     const char *p, *pe;
11789     char *buf;
11790     long len;
11791     int i;
11792 
11793     compile_error(PARSER_ARG "%s", msg);
11794     p = lex_p;
11795     while (lex_pbeg <= p) {
11796         if (*p == '\n') break;
11797         p--;
11798     }
11799     p++;
11800 
11801     pe = lex_p;
11802     while (pe < lex_pend) {
11803         if (*pe == '\n') break;
11804         pe++;
11805     }
11806 
11807     len = pe - p;
11808     if (len > 4) {
11809         char *p2;
11810         const char *pre = "", *post = "";
11811 
11812         if (len > max_line_margin * 2 + 10) {
11813             if (lex_p - p > max_line_margin) {
11814                 p = rb_enc_prev_char(p, lex_p - max_line_margin, pe, rb_enc_get(lex_lastline));
11815                 pre = "...";
11816             }
11817             if (pe - lex_p > max_line_margin) {
11818                 pe = rb_enc_prev_char(lex_p, lex_p + max_line_margin, pe, rb_enc_get(lex_lastline));
11819                 post = "...";
11820             }
11821             len = pe - p;
11822         }
11823         buf = ALLOCA_N(char, len+2);
11824         MEMCPY(buf, p, char, len);
11825         buf[len] = '\0';
11826         rb_compile_error_append("%s%s%s", pre, buf, post);
11827 
11828         i = (int)(lex_p - p);
11829         p2 = buf; pe = buf + len;
11830 
11831         while (p2 < pe) {
11832             if (*p2 != '\t') *p2 = ' ';
11833             p2++;
11834         }
11835         buf[i] = '^';
11836         buf[i+1] = '\0';
11837         rb_compile_error_append("%s%s", pre, buf);
11838     }
11839 #else
11840     dispatch1(parse_error, STR_NEW2(msg));
11841 #endif /* !RIPPER */
11842     return 0;
11843 }
11844 
11845 static void parser_prepare(struct parser_params *parser);
11846 
11847 #ifndef RIPPER
11848 static VALUE
11849 debug_lines(const char *f)
11850 {
11851     ID script_lines;
11852     CONST_ID(script_lines, "SCRIPT_LINES__");
11853     if (rb_const_defined_at(rb_cObject, script_lines)) {
11854         VALUE hash = rb_const_get_at(rb_cObject, script_lines);
11855         if (RB_TYPE_P(hash, T_HASH)) {
11856             VALUE fname = rb_external_str_new_with_enc(f, strlen(f), rb_filesystem_encoding());
11857             VALUE lines = rb_ary_new();
11858             rb_hash_aset(hash, fname, lines);
11859             return lines;
11860         }
11861     }
11862     return 0;
11863 }
11864 
11865 static VALUE
11866 coverage(const char *f, int n)
11867 {
11868     VALUE coverages = rb_get_coverages();
11869     if (RTEST(coverages) && RBASIC(coverages)->klass == 0) {
11870         VALUE fname = rb_external_str_new_with_enc(f, strlen(f), rb_filesystem_encoding());
11871         VALUE lines = rb_ary_new2(n);
11872         int i;
11873         RBASIC(lines)->klass = 0;
11874         for (i = 0; i < n; i++) RARRAY_PTR(lines)[i] = Qnil;
11875         RARRAY(lines)->as.heap.len = n;
11876         rb_hash_aset(coverages, fname, lines);
11877         return lines;
11878     }
11879     return 0;
11880 }
11881 
11882 static int
11883 e_option_supplied(struct parser_params *parser)
11884 {
11885     return strcmp(ruby_sourcefile, "-e") == 0;
11886 }
11887 
11888 static VALUE
11889 yycompile0(VALUE arg)
11890 {
11891     int n;
11892     NODE *tree;
11893     struct parser_params *parser = (struct parser_params *)arg;
11894 
11895     if (!compile_for_eval && rb_safe_level() == 0) {
11896         ruby_debug_lines = debug_lines(ruby_sourcefile);
11897         if (ruby_debug_lines && ruby_sourceline > 0) {
11898             VALUE str = STR_NEW0();
11899             n = ruby_sourceline;
11900             do {
11901                 rb_ary_push(ruby_debug_lines, str);
11902             } while (--n);
11903         }
11904 
11905         if (!e_option_supplied(parser)) {
11906             ruby_coverage = coverage(ruby_sourcefile, ruby_sourceline);
11907         }
11908     }
11909 
11910     parser_prepare(parser);
11911     deferred_nodes = 0;
11912 #ifndef RIPPER
11913     parser->parser_token_info_enabled = !compile_for_eval && RTEST(ruby_verbose);
11914 #endif
11915 #ifndef RIPPER
11916     if (RUBY_DTRACE_PARSE_BEGIN_ENABLED()) {
11917         RUBY_DTRACE_PARSE_BEGIN(parser->parser_ruby_sourcefile,
11918                                 parser->parser_ruby_sourceline);
11919     }
11920 #endif
11921     n = yyparse((void*)parser);
11922 #ifndef RIPPER
11923     if (RUBY_DTRACE_PARSE_END_ENABLED()) {
11924         RUBY_DTRACE_PARSE_END(parser->parser_ruby_sourcefile,
11925                               parser->parser_ruby_sourceline);
11926     }
11927 #endif
11928     ruby_debug_lines = 0;
11929     ruby_coverage = 0;
11930     compile_for_eval = 0;
11931 
11932     lex_strterm = 0;
11933     lex_p = lex_pbeg = lex_pend = 0;
11934     lex_lastline = lex_nextline = 0;
11935     if (parser->nerr) {
11936         return 0;
11937     }
11938     tree = ruby_eval_tree;
11939     if (!tree) {
11940         tree = NEW_NIL();
11941     }
11942     else if (ruby_eval_tree_begin) {
11943         tree->nd_body = NEW_PRELUDE(ruby_eval_tree_begin, tree->nd_body);
11944     }
11945     return (VALUE)tree;
11946 }
11947 
11948 static NODE*
11949 yycompile(struct parser_params *parser, const char *f, int line)
11950 {
11951     ruby_sourcefile = ruby_strdup(f);
11952     ruby_sourceline = line - 1;
11953     return (NODE *)rb_suppress_tracing(yycompile0, (VALUE)parser);
11954 }
11955 #endif /* !RIPPER */
11956 
11957 static rb_encoding *
11958 must_be_ascii_compatible(VALUE s)
11959 {
11960     rb_encoding *enc = rb_enc_get(s);
11961     if (!rb_enc_asciicompat(enc)) {
11962         rb_raise(rb_eArgError, "invalid source encoding");
11963     }
11964     return enc;
11965 }
11966 
11967 static VALUE
11968 lex_get_str(struct parser_params *parser, VALUE s)
11969 {
11970     char *beg, *end, *pend;
11971     rb_encoding *enc = must_be_ascii_compatible(s);
11972 
11973     beg = RSTRING_PTR(s);
11974     if (lex_gets_ptr) {
11975         if (RSTRING_LEN(s) == lex_gets_ptr) return Qnil;
11976         beg += lex_gets_ptr;
11977     }
11978     pend = RSTRING_PTR(s) + RSTRING_LEN(s);
11979     end = beg;
11980     while (end < pend) {
11981         if (*end++ == '\n') break;
11982     }
11983     lex_gets_ptr = end - RSTRING_PTR(s);
11984     return rb_enc_str_new(beg, end - beg, enc);
11985 }
11986 
11987 static VALUE
11988 lex_getline(struct parser_params *parser)
11989 {
11990     VALUE line = (*parser->parser_lex_gets)(parser, parser->parser_lex_input);
11991     if (NIL_P(line)) return line;
11992     must_be_ascii_compatible(line);
11993 #ifndef RIPPER
11994     if (ruby_debug_lines) {
11995         rb_enc_associate(line, current_enc);
11996         rb_ary_push(ruby_debug_lines, line);
11997     }
11998     if (ruby_coverage) {
11999         rb_ary_push(ruby_coverage, Qnil);
12000     }
12001 #endif
12002     return line;
12003 }
12004 
12005 #ifdef RIPPER
12006 static rb_data_type_t parser_data_type;
12007 #else
12008 static const rb_data_type_t parser_data_type;
12009 
12010 static NODE*
12011 parser_compile_string(volatile VALUE vparser, const char *f, VALUE s, int line)
12012 {
12013     struct parser_params *parser;
12014     NODE *node;
12015 
12016     TypedData_Get_Struct(vparser, struct parser_params, &parser_data_type, parser);
12017     lex_gets = lex_get_str;
12018     lex_gets_ptr = 0;
12019     lex_input = s;
12020     lex_pbeg = lex_p = lex_pend = 0;
12021     compile_for_eval = rb_parse_in_eval();
12022 
12023     node = yycompile(parser, f, line);
12024     RB_GC_GUARD(vparser); /* prohibit tail call optimization */
12025 
12026     return node;
12027 }
12028 
12029 NODE*
12030 rb_compile_string(const char *f, VALUE s, int line)
12031 {
12032     must_be_ascii_compatible(s);
12033     return parser_compile_string(rb_parser_new(), f, s, line);
12034 }
12035 
12036 NODE*
12037 rb_parser_compile_string(volatile VALUE vparser, const char *f, VALUE s, int line)
12038 {
12039     must_be_ascii_compatible(s);
12040     return parser_compile_string(vparser, f, s, line);
12041 }
12042 
12043 NODE*
12044 rb_compile_cstr(const char *f, const char *s, int len, int line)
12045 {
12046     VALUE str = rb_str_new(s, len);
12047     return parser_compile_string(rb_parser_new(), f, str, line);
12048 }
12049 
12050 NODE*
12051 rb_parser_compile_cstr(volatile VALUE vparser, const char *f, const char *s, int len, int line)
12052 {
12053     VALUE str = rb_str_new(s, len);
12054     return parser_compile_string(vparser, f, str, line);
12055 }
12056 
12057 static VALUE
12058 lex_io_gets(struct parser_params *parser, VALUE io)
12059 {
12060     return rb_io_gets(io);
12061 }
12062 
12063 NODE*
12064 rb_compile_file(const char *f, VALUE file, int start)
12065 {
12066     VALUE volatile vparser = rb_parser_new();
12067 
12068     return rb_parser_compile_file(vparser, f, file, start);
12069 }
12070 
12071 NODE*
12072 rb_parser_compile_file(volatile VALUE vparser, const char *f, VALUE file, int start)
12073 {
12074     struct parser_params *parser;
12075     NODE *node;
12076 
12077     TypedData_Get_Struct(vparser, struct parser_params, &parser_data_type, parser);
12078     lex_gets = lex_io_gets;
12079     lex_input = file;
12080     lex_pbeg = lex_p = lex_pend = 0;
12081     compile_for_eval = rb_parse_in_eval();
12082 
12083     node = yycompile(parser, f, start);
12084     RB_GC_GUARD(vparser); /* prohibit tail call optimization */
12085 
12086     return node;
12087 }
12088 #endif  /* !RIPPER */
12089 
12090 #define STR_FUNC_ESCAPE 0x01
12091 #define STR_FUNC_EXPAND 0x02
12092 #define STR_FUNC_REGEXP 0x04
12093 #define STR_FUNC_QWORDS 0x08
12094 #define STR_FUNC_SYMBOL 0x10
12095 #define STR_FUNC_INDENT 0x20
12096 
12097 enum string_type {
12098     str_squote = (0),
12099     str_dquote = (STR_FUNC_EXPAND),
12100     str_xquote = (STR_FUNC_EXPAND),
12101     str_regexp = (STR_FUNC_REGEXP|STR_FUNC_ESCAPE|STR_FUNC_EXPAND),
12102     str_sword  = (STR_FUNC_QWORDS),
12103     str_dword  = (STR_FUNC_QWORDS|STR_FUNC_EXPAND),
12104     str_ssym   = (STR_FUNC_SYMBOL),
12105     str_dsym   = (STR_FUNC_SYMBOL|STR_FUNC_EXPAND)
12106 };
12107 
12108 static VALUE
12109 parser_str_new(const char *p, long n, rb_encoding *enc, int func, rb_encoding *enc0)
12110 {
12111     VALUE str;
12112 
12113     str = rb_enc_str_new(p, n, enc);
12114     if (!(func & STR_FUNC_REGEXP) && rb_enc_asciicompat(enc)) {
12115         if (rb_enc_str_coderange(str) == ENC_CODERANGE_7BIT) {
12116         }
12117         else if (enc0 == rb_usascii_encoding() && enc != rb_utf8_encoding()) {
12118             rb_enc_associate(str, rb_ascii8bit_encoding());
12119         }
12120     }
12121 
12122     return str;
12123 }
12124 
12125 #define lex_goto_eol(parser) ((parser)->parser_lex_p = (parser)->parser_lex_pend)
12126 #define lex_eol_p() (lex_p >= lex_pend)
12127 #define peek(c) peek_n((c), 0)
12128 #define peek_n(c,n) (lex_p+(n) < lex_pend && (c) == (unsigned char)lex_p[n])
12129 
12130 static inline int
12131 parser_nextc(struct parser_params *parser)
12132 {
12133     int c;
12134 
12135     if (lex_p == lex_pend) {
12136         VALUE v = lex_nextline;
12137         lex_nextline = 0;
12138         if (!v) {
12139             if (parser->eofp)
12140                 return -1;
12141 
12142             if (!lex_input || NIL_P(v = lex_getline(parser))) {
12143                 parser->eofp = Qtrue;
12144                 lex_goto_eol(parser);
12145                 return -1;
12146             }
12147         }
12148         {
12149 #ifdef RIPPER
12150             if (parser->tokp < lex_pend) {
12151                 if (NIL_P(parser->delayed)) {
12152                     parser->delayed = rb_str_buf_new(1024);
12153                     rb_enc_associate(parser->delayed, current_enc);
12154                     rb_str_buf_cat(parser->delayed,
12155                                    parser->tokp, lex_pend - parser->tokp);
12156                     parser->delayed_line = ruby_sourceline;
12157                     parser->delayed_col = (int)(parser->tokp - lex_pbeg);
12158                 }
12159                 else {
12160                     rb_str_buf_cat(parser->delayed,
12161                                    parser->tokp, lex_pend - parser->tokp);
12162                 }
12163             }
12164 #endif
12165             if (heredoc_end > 0) {
12166                 ruby_sourceline = heredoc_end;
12167                 heredoc_end = 0;
12168             }
12169             ruby_sourceline++;
12170             parser->line_count++;
12171             lex_pbeg = lex_p = RSTRING_PTR(v);
12172             lex_pend = lex_p + RSTRING_LEN(v);
12173             ripper_flush(parser);
12174             lex_lastline = v;
12175         }
12176     }
12177     c = (unsigned char)*lex_p++;
12178     if (c == '\r' && peek('\n')) {
12179         lex_p++;
12180         c = '\n';
12181     }
12182 
12183     return c;
12184 }
12185 
12186 static void
12187 parser_pushback(struct parser_params *parser, int c)
12188 {
12189     if (c == -1) return;
12190     lex_p--;
12191     if (lex_p > lex_pbeg && lex_p[0] == '\n' && lex_p[-1] == '\r') {
12192         lex_p--;
12193     }
12194 }
12195 
12196 #define was_bol() (lex_p == lex_pbeg + 1)
12197 
12198 #define tokfix() (tokenbuf[tokidx]='\0')
12199 #define tok() tokenbuf
12200 #define toklen() tokidx
12201 #define toklast() (tokidx>0?tokenbuf[tokidx-1]:0)
12202 
12203 static char*
12204 parser_newtok(struct parser_params *parser)
12205 {
12206     tokidx = 0;
12207     tokline = ruby_sourceline;
12208     if (!tokenbuf) {
12209         toksiz = 60;
12210         tokenbuf = ALLOC_N(char, 60);
12211     }
12212     if (toksiz > 4096) {
12213         toksiz = 60;
12214         REALLOC_N(tokenbuf, char, 60);
12215     }
12216     return tokenbuf;
12217 }
12218 
12219 static char *
12220 parser_tokspace(struct parser_params *parser, int n)
12221 {
12222     tokidx += n;
12223 
12224     if (tokidx >= toksiz) {
12225         do {toksiz *= 2;} while (toksiz < tokidx);
12226         REALLOC_N(tokenbuf, char, toksiz);
12227     }
12228     return &tokenbuf[tokidx-n];
12229 }
12230 
12231 static void
12232 parser_tokadd(struct parser_params *parser, int c)
12233 {
12234     tokenbuf[tokidx++] = (char)c;
12235     if (tokidx >= toksiz) {
12236         toksiz *= 2;
12237         REALLOC_N(tokenbuf, char, toksiz);
12238     }
12239 }
12240 
12241 static int
12242 parser_tok_hex(struct parser_params *parser, size_t *numlen)
12243 {
12244     int c;
12245 
12246     c = scan_hex(lex_p, 2, numlen);
12247     if (!*numlen) {
12248         yyerror("invalid hex escape");
12249         return 0;
12250     }
12251     lex_p += *numlen;
12252     return c;
12253 }
12254 
12255 #define tokcopy(n) memcpy(tokspace(n), lex_p - (n), (n))
12256 
12257 /* return value is for ?\u3042 */
12258 static int
12259 parser_tokadd_utf8(struct parser_params *parser, rb_encoding **encp,
12260                    int string_literal, int symbol_literal, int regexp_literal)
12261 {
12262     /*
12263      * If string_literal is true, then we allow multiple codepoints
12264      * in \u{}, and add the codepoints to the current token.
12265      * Otherwise we're parsing a character literal and return a single
12266      * codepoint without adding it
12267      */
12268 
12269     int codepoint;
12270     size_t numlen;
12271 
12272     if (regexp_literal) { tokadd('\\'); tokadd('u'); }
12273 
12274     if (peek('{')) {  /* handle \u{...} form */
12275         do {
12276             if (regexp_literal) { tokadd(*lex_p); }
12277             nextc();
12278             codepoint = scan_hex(lex_p, 6, &numlen);
12279             if (numlen == 0)  {
12280                 yyerror("invalid Unicode escape");
12281                 return 0;
12282             }
12283             if (codepoint > 0x10ffff) {
12284                 yyerror("invalid Unicode codepoint (too large)");
12285                 return 0;
12286             }
12287             lex_p += numlen;
12288             if (regexp_literal) {
12289                 tokcopy((int)numlen);
12290             }
12291             else if (codepoint >= 0x80) {
12292                 *encp = rb_utf8_encoding();
12293                 if (string_literal) tokaddmbc(codepoint, *encp);
12294             }
12295             else if (string_literal) {
12296                 tokadd(codepoint);
12297             }
12298         } while (string_literal && (peek(' ') || peek('\t')));
12299 
12300         if (!peek('}')) {
12301             yyerror("unterminated Unicode escape");
12302             return 0;
12303         }
12304 
12305         if (regexp_literal) { tokadd('}'); }
12306         nextc();
12307     }
12308     else {                      /* handle \uxxxx form */
12309         codepoint = scan_hex(lex_p, 4, &numlen);
12310         if (numlen < 4) {
12311             yyerror("invalid Unicode escape");
12312             return 0;
12313         }
12314         lex_p += 4;
12315         if (regexp_literal) {
12316             tokcopy(4);
12317         }
12318         else if (codepoint >= 0x80) {
12319             *encp = rb_utf8_encoding();
12320             if (string_literal) tokaddmbc(codepoint, *encp);
12321         }
12322         else if (string_literal) {
12323             tokadd(codepoint);
12324         }
12325     }
12326 
12327     return codepoint;
12328 }
12329 
12330 #define ESCAPE_CONTROL 1
12331 #define ESCAPE_META    2
12332 
12333 static int
12334 parser_read_escape(struct parser_params *parser, int flags,
12335                    rb_encoding **encp)
12336 {
12337     int c;
12338     size_t numlen;
12339 
12340     switch (c = nextc()) {
12341       case '\\':        /* Backslash */
12342         return c;
12343 
12344       case 'n': /* newline */
12345         return '\n';
12346 
12347       case 't': /* horizontal tab */
12348         return '\t';
12349 
12350       case 'r': /* carriage-return */
12351         return '\r';
12352 
12353       case 'f': /* form-feed */
12354         return '\f';
12355 
12356       case 'v': /* vertical tab */
12357         return '\13';
12358 
12359       case 'a': /* alarm(bell) */
12360         return '\007';
12361 
12362       case 'e': /* escape */
12363         return 033;
12364 
12365       case '0': case '1': case '2': case '3': /* octal constant */
12366       case '4': case '5': case '6': case '7':
12367         pushback(c);
12368         c = scan_oct(lex_p, 3, &numlen);
12369         lex_p += numlen;
12370         return c;
12371 
12372       case 'x': /* hex constant */
12373         c = tok_hex(&numlen);
12374         if (numlen == 0) return 0;
12375         return c;
12376 
12377       case 'b': /* backspace */
12378         return '\010';
12379 
12380       case 's': /* space */
12381         return ' ';
12382 
12383       case 'M':
12384         if (flags & ESCAPE_META) goto eof;
12385         if ((c = nextc()) != '-') {
12386             pushback(c);
12387             goto eof;
12388         }
12389         if ((c = nextc()) == '\\') {
12390             if (peek('u')) goto eof;
12391             return read_escape(flags|ESCAPE_META, encp) | 0x80;
12392         }
12393         else if (c == -1 || !ISASCII(c)) goto eof;
12394         else {
12395             return ((c & 0xff) | 0x80);
12396         }
12397 
12398       case 'C':
12399         if ((c = nextc()) != '-') {
12400             pushback(c);
12401             goto eof;
12402         }
12403       case 'c':
12404         if (flags & ESCAPE_CONTROL) goto eof;
12405         if ((c = nextc())== '\\') {
12406             if (peek('u')) goto eof;
12407             c = read_escape(flags|ESCAPE_CONTROL, encp);
12408         }
12409         else if (c == '?')
12410             return 0177;
12411         else if (c == -1 || !ISASCII(c)) goto eof;
12412         return c & 0x9f;
12413 
12414       eof:
12415       case -1:
12416         yyerror("Invalid escape character syntax");
12417         return '\0';
12418 
12419       default:
12420         return c;
12421     }
12422 }
12423 
12424 static void
12425 parser_tokaddmbc(struct parser_params *parser, int c, rb_encoding *enc)
12426 {
12427     int len = rb_enc_codelen(c, enc);
12428     rb_enc_mbcput(c, tokspace(len), enc);
12429 }
12430 
12431 static int
12432 parser_tokadd_escape(struct parser_params *parser, rb_encoding **encp)
12433 {
12434     int c;
12435     int flags = 0;
12436     size_t numlen;
12437 
12438   first:
12439     switch (c = nextc()) {
12440       case '\n':
12441         return 0;               /* just ignore */
12442 
12443       case '0': case '1': case '2': case '3': /* octal constant */
12444       case '4': case '5': case '6': case '7':
12445         {
12446             ruby_scan_oct(--lex_p, 3, &numlen);
12447             if (numlen == 0) goto eof;
12448             lex_p += numlen;
12449             tokcopy((int)numlen + 1);
12450         }
12451         return 0;
12452 
12453       case 'x': /* hex constant */
12454         {
12455             tok_hex(&numlen);
12456             if (numlen == 0) return -1;
12457             tokcopy((int)numlen + 2);
12458         }
12459         return 0;
12460 
12461       case 'M':
12462         if (flags & ESCAPE_META) goto eof;
12463         if ((c = nextc()) != '-') {
12464             pushback(c);
12465             goto eof;
12466         }
12467         tokcopy(3);
12468         flags |= ESCAPE_META;
12469         goto escaped;
12470 
12471       case 'C':
12472         if (flags & ESCAPE_CONTROL) goto eof;
12473         if ((c = nextc()) != '-') {
12474             pushback(c);
12475             goto eof;
12476         }
12477         tokcopy(3);
12478         goto escaped;
12479 
12480       case 'c':
12481         if (flags & ESCAPE_CONTROL) goto eof;
12482         tokcopy(2);
12483         flags |= ESCAPE_CONTROL;
12484       escaped:
12485         if ((c = nextc()) == '\\') {
12486             goto first;
12487         }
12488         else if (c == -1) goto eof;
12489         tokadd(c);
12490         return 0;
12491 
12492       eof:
12493       case -1:
12494         yyerror("Invalid escape character syntax");
12495         return -1;
12496 
12497       default:
12498         tokadd('\\');
12499         tokadd(c);
12500     }
12501     return 0;
12502 }
12503 
12504 static int
12505 parser_regx_options(struct parser_params *parser)
12506 {
12507     int kcode = 0;
12508     int kopt = 0;
12509     int options = 0;
12510     int c, opt, kc;
12511 
12512     newtok();
12513     while (c = nextc(), ISALPHA(c)) {
12514         if (c == 'o') {
12515             options |= RE_OPTION_ONCE;
12516         }
12517         else if (rb_char_to_option_kcode(c, &opt, &kc)) {
12518             if (kc >= 0) {
12519                 if (kc != rb_ascii8bit_encindex()) kcode = c;
12520                 kopt = opt;
12521             }
12522             else {
12523                 options |= opt;
12524             }
12525         }
12526         else {
12527             tokadd(c);
12528         }
12529     }
12530     options |= kopt;
12531     pushback(c);
12532     if (toklen()) {
12533         tokfix();
12534         compile_error(PARSER_ARG "unknown regexp option%s - %s",
12535                       toklen() > 1 ? "s" : "", tok());
12536     }
12537     return options | RE_OPTION_ENCODING(kcode);
12538 }
12539 
12540 static void
12541 dispose_string(VALUE str)
12542 {
12543     rb_str_free(str);
12544     rb_gc_force_recycle(str);
12545 }
12546 
12547 static int
12548 parser_tokadd_mbchar(struct parser_params *parser, int c)
12549 {
12550     int len = parser_precise_mbclen();
12551     if (!MBCLEN_CHARFOUND_P(len)) {
12552         compile_error(PARSER_ARG "invalid multibyte char (%s)", parser_encoding_name());
12553         return -1;
12554     }
12555     tokadd(c);
12556     lex_p += --len;
12557     if (len > 0) tokcopy(len);
12558     return c;
12559 }
12560 
12561 #define tokadd_mbchar(c) parser_tokadd_mbchar(parser, (c))
12562 
12563 static inline int
12564 simple_re_meta(int c)
12565 {
12566     switch (c) {
12567       case '$': case '*': case '+': case '.':
12568       case '?': case '^': case '|':
12569       case ')': case ']': case '}': case '>':
12570         return TRUE;
12571       default:
12572         return FALSE;
12573     }
12574 }
12575 
12576 static int
12577 parser_tokadd_string(struct parser_params *parser,
12578                      int func, int term, int paren, long *nest,
12579                      rb_encoding **encp)
12580 {
12581     int c;
12582     int has_nonascii = 0;
12583     rb_encoding *enc = *encp;
12584     char *errbuf = 0;
12585     static const char mixed_msg[] = "%s mixed within %s source";
12586 
12587 #define mixed_error(enc1, enc2) if (!errbuf) {  \
12588         size_t len = sizeof(mixed_msg) - 4;     \
12589         len += strlen(rb_enc_name(enc1));       \
12590         len += strlen(rb_enc_name(enc2));       \
12591         errbuf = ALLOCA_N(char, len);           \
12592         snprintf(errbuf, len, mixed_msg,        \
12593                  rb_enc_name(enc1),             \
12594                  rb_enc_name(enc2));            \
12595         yyerror(errbuf);                        \
12596     }
12597 #define mixed_escape(beg, enc1, enc2) do {      \
12598         const char *pos = lex_p;                \
12599         lex_p = (beg);                          \
12600         mixed_error((enc1), (enc2));            \
12601         lex_p = pos;                            \
12602     } while (0)
12603 
12604     while ((c = nextc()) != -1) {
12605         if (paren && c == paren) {
12606             ++*nest;
12607         }
12608         else if (c == term) {
12609             if (!nest || !*nest) {
12610                 pushback(c);
12611                 break;
12612             }
12613             --*nest;
12614         }
12615         else if ((func & STR_FUNC_EXPAND) && c == '#' && lex_p < lex_pend) {
12616             int c2 = *lex_p;
12617             if (c2 == '$' || c2 == '@' || c2 == '{') {
12618                 pushback(c);
12619                 break;
12620             }
12621         }
12622         else if (c == '\\') {
12623             const char *beg = lex_p - 1;
12624             c = nextc();
12625             switch (c) {
12626               case '\n':
12627                 if (func & STR_FUNC_QWORDS) break;
12628                 if (func & STR_FUNC_EXPAND) continue;
12629                 tokadd('\\');
12630                 break;
12631 
12632               case '\\':
12633                 if (func & STR_FUNC_ESCAPE) tokadd(c);
12634                 break;
12635 
12636               case 'u':
12637                 if ((func & STR_FUNC_EXPAND) == 0) {
12638                     tokadd('\\');
12639                     break;
12640                 }
12641                 parser_tokadd_utf8(parser, &enc, 1,
12642                                    func & STR_FUNC_SYMBOL,
12643                                    func & STR_FUNC_REGEXP);
12644                 if (has_nonascii && enc != *encp) {
12645                     mixed_escape(beg, enc, *encp);
12646                 }
12647                 continue;
12648 
12649               default:
12650                 if (c == -1) return -1;
12651                 if (!ISASCII(c)) {
12652                     if ((func & STR_FUNC_EXPAND) == 0) tokadd('\\');
12653                     goto non_ascii;
12654                 }
12655                 if (func & STR_FUNC_REGEXP) {
12656                     if (c == term && !simple_re_meta(c)) {
12657                         tokadd(c);
12658                         continue;
12659                     }
12660                     pushback(c);
12661                     if ((c = tokadd_escape(&enc)) < 0)
12662                         return -1;
12663                     if (has_nonascii && enc != *encp) {
12664                         mixed_escape(beg, enc, *encp);
12665                     }
12666                     continue;
12667                 }
12668                 else if (func & STR_FUNC_EXPAND) {
12669                     pushback(c);
12670                     if (func & STR_FUNC_ESCAPE) tokadd('\\');
12671                     c = read_escape(0, &enc);
12672                 }
12673                 else if ((func & STR_FUNC_QWORDS) && ISSPACE(c)) {
12674                     /* ignore backslashed spaces in %w */
12675                 }
12676                 else if (c != term && !(paren && c == paren)) {
12677                     tokadd('\\');
12678                     pushback(c);
12679                     continue;
12680                 }
12681             }
12682         }
12683         else if (!parser_isascii()) {
12684           non_ascii:
12685             has_nonascii = 1;
12686             if (enc != *encp) {
12687                 mixed_error(enc, *encp);
12688                 continue;
12689             }
12690             if (tokadd_mbchar(c) == -1) return -1;
12691             continue;
12692         }
12693         else if ((func & STR_FUNC_QWORDS) && ISSPACE(c)) {
12694             pushback(c);
12695             break;
12696         }
12697         if (c & 0x80) {
12698             has_nonascii = 1;
12699             if (enc != *encp) {
12700                 mixed_error(enc, *encp);
12701                 continue;
12702             }
12703         }
12704         tokadd(c);
12705     }
12706     *encp = enc;
12707     return c;
12708 }
12709 
12710 #define NEW_STRTERM(func, term, paren) \
12711         rb_node_newnode(NODE_STRTERM, (func), (term) | ((paren) << (CHAR_BIT * 2)), 0)
12712 
12713 #ifdef RIPPER
12714 static void
12715 ripper_flush_string_content(struct parser_params *parser, rb_encoding *enc)
12716 {
12717     if (!NIL_P(parser->delayed)) {
12718         ptrdiff_t len = lex_p - parser->tokp;
12719         if (len > 0) {
12720             rb_enc_str_buf_cat(parser->delayed, parser->tokp, len, enc);
12721         }
12722         ripper_dispatch_delayed_token(parser, tSTRING_CONTENT);
12723         parser->tokp = lex_p;
12724     }
12725 }
12726 
12727 #define flush_string_content(enc) ripper_flush_string_content(parser, (enc))
12728 #else
12729 #define flush_string_content(enc) ((void)(enc))
12730 #endif
12731 
12732 RUBY_FUNC_EXPORTED const unsigned int ruby_global_name_punct_bits[(0x7e - 0x20 + 31) / 32];
12733 /* this can be shared with ripper, since it's independent from struct
12734  * parser_params. */
12735 #ifndef RIPPER
12736 #define BIT(c, idx) (((c) / 32 - 1 == idx) ? (1U << ((c) % 32)) : 0)
12737 #define SPECIAL_PUNCT(idx) ( \
12738         BIT('~', idx) | BIT('*', idx) | BIT('$', idx) | BIT('?', idx) | \
12739         BIT('!', idx) | BIT('@', idx) | BIT('/', idx) | BIT('\\', idx) | \
12740         BIT(';', idx) | BIT(',', idx) | BIT('.', idx) | BIT('=', idx) | \
12741         BIT(':', idx) | BIT('<', idx) | BIT('>', idx) | BIT('\"', idx) | \
12742         BIT('&', idx) | BIT('`', idx) | BIT('\'', idx) | BIT('+', idx) | \
12743         BIT('0', idx))
12744 const unsigned int ruby_global_name_punct_bits[] = {
12745     SPECIAL_PUNCT(0),
12746     SPECIAL_PUNCT(1),
12747     SPECIAL_PUNCT(2),
12748 };
12749 #undef BIT
12750 #undef SPECIAL_PUNCT
12751 #endif
12752 
12753 static inline int
12754 is_global_name_punct(const char c)
12755 {
12756     if (c <= 0x20 || 0x7e < c) return 0;
12757     return (ruby_global_name_punct_bits[(c - 0x20) / 32] >> (c % 32)) & 1;
12758 }
12759 
12760 static int
12761 parser_peek_variable_name(struct parser_params *parser)
12762 {
12763     int c;
12764     const char *p = lex_p;
12765 
12766     if (p + 1 >= lex_pend) return 0;
12767     c = *p++;
12768     switch (c) {
12769       case '$':
12770         if ((c = *p) == '-') {
12771             if (++p >= lex_pend) return 0;
12772             c = *p;
12773         }
12774         else if (is_global_name_punct(c) || ISDIGIT(c)) {
12775             return tSTRING_DVAR;
12776         }
12777         break;
12778       case '@':
12779         if ((c = *p) == '@') {
12780             if (++p >= lex_pend) return 0;
12781             c = *p;
12782         }
12783         break;
12784       case '{':
12785         lex_p = p;
12786         command_start = TRUE;
12787         return tSTRING_DBEG;
12788       default:
12789         return 0;
12790     }
12791     if (!ISASCII(c) || c == '_' || ISALPHA(c))
12792         return tSTRING_DVAR;
12793     return 0;
12794 }
12795 
12796 static int
12797 parser_parse_string(struct parser_params *parser, NODE *quote)
12798 {
12799     int func = (int)quote->nd_func;
12800     int term = nd_term(quote);
12801     int paren = nd_paren(quote);
12802     int c, space = 0;
12803     rb_encoding *enc = current_enc;
12804 
12805     if (func == -1) return tSTRING_END;
12806     c = nextc();
12807     if ((func & STR_FUNC_QWORDS) && ISSPACE(c)) {
12808         do {c = nextc();} while (ISSPACE(c));
12809         space = 1;
12810     }
12811     if (c == term && !quote->nd_nest) {
12812         if (func & STR_FUNC_QWORDS) {
12813             quote->nd_func = -1;
12814             return ' ';
12815         }
12816         if (!(func & STR_FUNC_REGEXP)) return tSTRING_END;
12817         set_yylval_num(regx_options());
12818         return tREGEXP_END;
12819     }
12820     if (space) {
12821         pushback(c);
12822         return ' ';
12823     }
12824     newtok();
12825     if ((func & STR_FUNC_EXPAND) && c == '#') {
12826         int t = parser_peek_variable_name(parser);
12827         if (t) return t;
12828         tokadd('#');
12829         c = nextc();
12830     }
12831     pushback(c);
12832     if (tokadd_string(func, term, paren, &quote->nd_nest,
12833                       &enc) == -1) {
12834         ruby_sourceline = nd_line(quote);
12835         if (func & STR_FUNC_REGEXP) {
12836             if (parser->eofp)
12837                 compile_error(PARSER_ARG "unterminated regexp meets end of file");
12838             return tREGEXP_END;
12839         }
12840         else {
12841             if (parser->eofp)
12842                 compile_error(PARSER_ARG "unterminated string meets end of file");
12843             return tSTRING_END;
12844         }
12845     }
12846 
12847     tokfix();
12848     set_yylval_str(STR_NEW3(tok(), toklen(), enc, func));
12849     flush_string_content(enc);
12850 
12851     return tSTRING_CONTENT;
12852 }
12853 
12854 static int
12855 parser_heredoc_identifier(struct parser_params *parser)
12856 {
12857     int c = nextc(), term, func = 0;
12858     long len;
12859 
12860     if (c == '-') {
12861         c = nextc();
12862         func = STR_FUNC_INDENT;
12863     }
12864     switch (c) {
12865       case '\'':
12866         func |= str_squote; goto quoted;
12867       case '"':
12868         func |= str_dquote; goto quoted;
12869       case '`':
12870         func |= str_xquote;
12871       quoted:
12872         newtok();
12873         tokadd(func);
12874         term = c;
12875         while ((c = nextc()) != -1 && c != term) {
12876             if (tokadd_mbchar(c) == -1) return 0;
12877         }
12878         if (c == -1) {
12879             compile_error(PARSER_ARG "unterminated here document identifier");
12880             return 0;
12881         }
12882         break;
12883 
12884       default:
12885         if (!parser_is_identchar()) {
12886             pushback(c);
12887             if (func & STR_FUNC_INDENT) {
12888                 pushback('-');
12889             }
12890             return 0;
12891         }
12892         newtok();
12893         term = '"';
12894         tokadd(func |= str_dquote);
12895         do {
12896             if (tokadd_mbchar(c) == -1) return 0;
12897         } while ((c = nextc()) != -1 && parser_is_identchar());
12898         pushback(c);
12899         break;
12900     }
12901 
12902     tokfix();
12903 #ifdef RIPPER
12904     ripper_dispatch_scan_event(parser, tHEREDOC_BEG);
12905 #endif
12906     len = lex_p - lex_pbeg;
12907     lex_goto_eol(parser);
12908     lex_strterm = rb_node_newnode(NODE_HEREDOC,
12909                                   STR_NEW(tok(), toklen()),     /* nd_lit */
12910                                   len,                          /* nd_nth */
12911                                   lex_lastline);                /* nd_orig */
12912     nd_set_line(lex_strterm, ruby_sourceline);
12913     ripper_flush(parser);
12914     return term == '`' ? tXSTRING_BEG : tSTRING_BEG;
12915 }
12916 
12917 static void
12918 parser_heredoc_restore(struct parser_params *parser, NODE *here)
12919 {
12920     VALUE line;
12921 
12922     line = here->nd_orig;
12923     lex_lastline = line;
12924     lex_pbeg = RSTRING_PTR(line);
12925     lex_pend = lex_pbeg + RSTRING_LEN(line);
12926     lex_p = lex_pbeg + here->nd_nth;
12927     heredoc_end = ruby_sourceline;
12928     ruby_sourceline = nd_line(here);
12929     dispose_string(here->nd_lit);
12930     rb_gc_force_recycle((VALUE)here);
12931     ripper_flush(parser);
12932 }
12933 
12934 static int
12935 parser_whole_match_p(struct parser_params *parser,
12936     const char *eos, long len, int indent)
12937 {
12938     const char *p = lex_pbeg;
12939     long n;
12940 
12941     if (indent) {
12942         while (*p && ISSPACE(*p)) p++;
12943     }
12944     n = lex_pend - (p + len);
12945     if (n < 0 || (n > 0 && p[len] != '\n' && p[len] != '\r')) return FALSE;
12946     return strncmp(eos, p, len) == 0;
12947 }
12948 
12949 #ifdef RIPPER
12950 static void
12951 ripper_dispatch_heredoc_end(struct parser_params *parser)
12952 {
12953     if (!NIL_P(parser->delayed))
12954         ripper_dispatch_delayed_token(parser, tSTRING_CONTENT);
12955     lex_goto_eol(parser);
12956     ripper_dispatch_ignored_scan_event(parser, tHEREDOC_END);
12957 }
12958 
12959 #define dispatch_heredoc_end() ripper_dispatch_heredoc_end(parser)
12960 #else
12961 #define dispatch_heredoc_end() ((void)0)
12962 #endif
12963 
12964 static int
12965 parser_here_document(struct parser_params *parser, NODE *here)
12966 {
12967     int c, func, indent = 0;
12968     const char *eos, *p, *pend;
12969     long len;
12970     VALUE str = 0;
12971     rb_encoding *enc = current_enc;
12972 
12973     eos = RSTRING_PTR(here->nd_lit);
12974     len = RSTRING_LEN(here->nd_lit) - 1;
12975     indent = (func = *eos++) & STR_FUNC_INDENT;
12976 
12977     if ((c = nextc()) == -1) {
12978       error:
12979         compile_error(PARSER_ARG "can't find string \"%s\" anywhere before EOF", eos);
12980 #ifdef RIPPER
12981         if (NIL_P(parser->delayed)) {
12982             ripper_dispatch_scan_event(parser, tSTRING_CONTENT);
12983         }
12984         else {
12985             if (str ||
12986                 ((len = lex_p - parser->tokp) > 0 &&
12987                  (str = STR_NEW3(parser->tokp, len, enc, func), 1))) {
12988                 rb_str_append(parser->delayed, str);
12989             }
12990             ripper_dispatch_delayed_token(parser, tSTRING_CONTENT);
12991         }
12992         lex_goto_eol(parser);
12993 #endif
12994       restore:
12995         heredoc_restore(lex_strterm);
12996         lex_strterm = 0;
12997         return 0;
12998     }
12999     if (was_bol() && whole_match_p(eos, len, indent)) {
13000         dispatch_heredoc_end();
13001         heredoc_restore(lex_strterm);
13002         return tSTRING_END;
13003     }
13004 
13005     if (!(func & STR_FUNC_EXPAND)) {
13006         do {
13007             p = RSTRING_PTR(lex_lastline);
13008             pend = lex_pend;
13009             if (pend > p) {
13010                 switch (pend[-1]) {
13011                   case '\n':
13012                     if (--pend == p || pend[-1] != '\r') {
13013                         pend++;
13014                         break;
13015                     }
13016                   case '\r':
13017                     --pend;
13018                 }
13019             }
13020             if (str)
13021                 rb_str_cat(str, p, pend - p);
13022             else
13023                 str = STR_NEW(p, pend - p);
13024             if (pend < lex_pend) rb_str_cat(str, "\n", 1);
13025             lex_goto_eol(parser);
13026             if (nextc() == -1) {
13027                 if (str) dispose_string(str);
13028                 goto error;
13029             }
13030         } while (!whole_match_p(eos, len, indent));
13031     }
13032     else {
13033         /*      int mb = ENC_CODERANGE_7BIT, *mbp = &mb;*/
13034         newtok();
13035         if (c == '#') {
13036             int t = parser_peek_variable_name(parser);
13037             if (t) return t;
13038             tokadd('#');
13039             c = nextc();
13040         }
13041         do {
13042             pushback(c);
13043             if ((c = tokadd_string(func, '\n', 0, NULL, &enc)) == -1) {
13044                 if (parser->eofp) goto error;
13045                 goto restore;
13046             }
13047             if (c != '\n') {
13048                 set_yylval_str(STR_NEW3(tok(), toklen(), enc, func));
13049                 flush_string_content(enc);
13050                 return tSTRING_CONTENT;
13051             }
13052             tokadd(nextc());
13053             /*      if (mbp && mb == ENC_CODERANGE_UNKNOWN) mbp = 0;*/
13054             if ((c = nextc()) == -1) goto error;
13055         } while (!whole_match_p(eos, len, indent));
13056         str = STR_NEW3(tok(), toklen(), enc, func);
13057     }
13058     dispatch_heredoc_end();
13059     heredoc_restore(lex_strterm);
13060     lex_strterm = NEW_STRTERM(-1, 0, 0);
13061     set_yylval_str(str);
13062     return tSTRING_CONTENT;
13063 }
13064 
13065 #include "lex.c"
13066 
13067 static void
13068 arg_ambiguous_gen(struct parser_params *parser)
13069 {
13070 #ifndef RIPPER
13071     rb_warning0("ambiguous first argument; put parentheses or even spaces");
13072 #else
13073     dispatch0(arg_ambiguous);
13074 #endif
13075 }
13076 #define arg_ambiguous() (arg_ambiguous_gen(parser), 1)
13077 
13078 static ID
13079 formal_argument_gen(struct parser_params *parser, ID lhs)
13080 {
13081 #ifndef RIPPER
13082     if (!is_local_id(lhs))
13083         yyerror("formal argument must be local variable");
13084 #endif
13085     shadowing_lvar(lhs);
13086     return lhs;
13087 }
13088 
13089 static int
13090 lvar_defined_gen(struct parser_params *parser, ID id)
13091 {
13092     return (dyna_in_block() && dvar_defined_get(id)) || local_id(id);
13093 }
13094 
13095 /* emacsen -*- hack */
13096 static long
13097 parser_encode_length(struct parser_params *parser, const char *name, long len)
13098 {
13099     long nlen;
13100 
13101     if (len > 5 && name[nlen = len - 5] == '-') {
13102         if (rb_memcicmp(name + nlen + 1, "unix", 4) == 0)
13103             return nlen;
13104     }
13105     if (len > 4 && name[nlen = len - 4] == '-') {
13106         if (rb_memcicmp(name + nlen + 1, "dos", 3) == 0)
13107             return nlen;
13108         if (rb_memcicmp(name + nlen + 1, "mac", 3) == 0 &&
13109             !(len == 8 && rb_memcicmp(name, "utf8-mac", len) == 0))
13110             /* exclude UTF8-MAC because the encoding named "UTF8" doesn't exist in Ruby */
13111             return nlen;
13112     }
13113     return len;
13114 }
13115 
13116 static void
13117 parser_set_encode(struct parser_params *parser, const char *name)
13118 {
13119     int idx = rb_enc_find_index(name);
13120     rb_encoding *enc;
13121     VALUE excargs[3];
13122 
13123     if (idx < 0) {
13124         excargs[1] = rb_sprintf("unknown encoding name: %s", name);
13125       error:
13126         excargs[0] = rb_eArgError;
13127         excargs[2] = rb_make_backtrace();
13128         rb_ary_unshift(excargs[2], rb_sprintf("%s:%d", ruby_sourcefile, ruby_sourceline));
13129         rb_exc_raise(rb_make_exception(3, excargs));
13130     }
13131     enc = rb_enc_from_index(idx);
13132     if (!rb_enc_asciicompat(enc)) {
13133         excargs[1] = rb_sprintf("%s is not ASCII compatible", rb_enc_name(enc));
13134         goto error;
13135     }
13136     parser->enc = enc;
13137 #ifndef RIPPER
13138     if (ruby_debug_lines) {
13139         long i, n = RARRAY_LEN(ruby_debug_lines);
13140         const VALUE *p = RARRAY_PTR(ruby_debug_lines);
13141         for (i = 0; i < n; ++i) {
13142             rb_enc_associate_index(*p, idx);
13143         }
13144     }
13145 #endif
13146 }
13147 
13148 static int
13149 comment_at_top(struct parser_params *parser)
13150 {
13151     const char *p = lex_pbeg, *pend = lex_p - 1;
13152     if (parser->line_count != (parser->has_shebang ? 2 : 1)) return 0;
13153     while (p < pend) {
13154         if (!ISSPACE(*p)) return 0;
13155         p++;
13156     }
13157     return 1;
13158 }
13159 
13160 #ifndef RIPPER
13161 typedef long (*rb_magic_comment_length_t)(struct parser_params *parser, const char *name, long len);
13162 typedef void (*rb_magic_comment_setter_t)(struct parser_params *parser, const char *name, const char *val);
13163 
13164 static void
13165 magic_comment_encoding(struct parser_params *parser, const char *name, const char *val)
13166 {
13167     if (!comment_at_top(parser)) {
13168         return;
13169     }
13170     parser_set_encode(parser, val);
13171 }
13172 
13173 static void
13174 parser_set_token_info(struct parser_params *parser, const char *name, const char *val)
13175 {
13176     int *p = &parser->parser_token_info_enabled;
13177 
13178     switch (*val) {
13179       case 't': case 'T':
13180         if (strcasecmp(val, "true") == 0) {
13181             *p = TRUE;
13182             return;
13183         }
13184         break;
13185       case 'f': case 'F':
13186         if (strcasecmp(val, "false") == 0) {
13187             *p = FALSE;
13188             return;
13189         }
13190         break;
13191     }
13192     rb_compile_warning(ruby_sourcefile, ruby_sourceline, "invalid value for %s: %s", name, val);
13193 }
13194 
13195 struct magic_comment {
13196     const char *name;
13197     rb_magic_comment_setter_t func;
13198     rb_magic_comment_length_t length;
13199 };
13200 
13201 static const struct magic_comment magic_comments[] = {
13202     {"coding", magic_comment_encoding, parser_encode_length},
13203     {"encoding", magic_comment_encoding, parser_encode_length},
13204     {"warn_indent", parser_set_token_info},
13205 };
13206 #endif
13207 
13208 static const char *
13209 magic_comment_marker(const char *str, long len)
13210 {
13211     long i = 2;
13212 
13213     while (i < len) {
13214         switch (str[i]) {
13215           case '-':
13216             if (str[i-1] == '*' && str[i-2] == '-') {
13217                 return str + i + 1;
13218             }
13219             i += 2;
13220             break;
13221           case '*':
13222             if (i + 1 >= len) return 0;
13223             if (str[i+1] != '-') {
13224                 i += 4;
13225             }
13226             else if (str[i-1] != '-') {
13227                 i += 2;
13228             }
13229             else {
13230                 return str + i + 2;
13231             }
13232             break;
13233           default:
13234             i += 3;
13235             break;
13236         }
13237     }
13238     return 0;
13239 }
13240 
13241 static int
13242 parser_magic_comment(struct parser_params *parser, const char *str, long len)
13243 {
13244     VALUE name = 0, val = 0;
13245     const char *beg, *end, *vbeg, *vend;
13246 #define str_copy(_s, _p, _n) ((_s) \
13247         ? (void)(rb_str_resize((_s), (_n)), \
13248            MEMCPY(RSTRING_PTR(_s), (_p), char, (_n)), (_s)) \
13249         : (void)((_s) = STR_NEW((_p), (_n))))
13250 
13251     if (len <= 7) return FALSE;
13252     if (!(beg = magic_comment_marker(str, len))) return FALSE;
13253     if (!(end = magic_comment_marker(beg, str + len - beg))) return FALSE;
13254     str = beg;
13255     len = end - beg - 3;
13256 
13257     /* %r"([^\\s\'\":;]+)\\s*:\\s*(\"(?:\\\\.|[^\"])*\"|[^\"\\s;]+)[\\s;]*" */
13258     while (len > 0) {
13259 #ifndef RIPPER
13260         const struct magic_comment *p = magic_comments;
13261 #endif
13262         char *s;
13263         int i;
13264         long n = 0;
13265 
13266         for (; len > 0 && *str; str++, --len) {
13267             switch (*str) {
13268               case '\'': case '"': case ':': case ';':
13269                 continue;
13270             }
13271             if (!ISSPACE(*str)) break;
13272         }
13273         for (beg = str; len > 0; str++, --len) {
13274             switch (*str) {
13275               case '\'': case '"': case ':': case ';':
13276                 break;
13277               default:
13278                 if (ISSPACE(*str)) break;
13279                 continue;
13280             }
13281             break;
13282         }
13283         for (end = str; len > 0 && ISSPACE(*str); str++, --len);
13284         if (!len) break;
13285         if (*str != ':') continue;
13286 
13287         do str++; while (--len > 0 && ISSPACE(*str));
13288         if (!len) break;
13289         if (*str == '"') {
13290             for (vbeg = ++str; --len > 0 && *str != '"'; str++) {
13291                 if (*str == '\\') {
13292                     --len;
13293                     ++str;
13294                 }
13295             }
13296             vend = str;
13297             if (len) {
13298                 --len;
13299                 ++str;
13300             }
13301         }
13302         else {
13303             for (vbeg = str; len > 0 && *str != '"' && *str != ';' && !ISSPACE(*str); --len, str++);
13304             vend = str;
13305         }
13306         while (len > 0 && (*str == ';' || ISSPACE(*str))) --len, str++;
13307 
13308         n = end - beg;
13309         str_copy(name, beg, n);
13310         s = RSTRING_PTR(name);
13311         for (i = 0; i < n; ++i) {
13312             if (s[i] == '-') s[i] = '_';
13313         }
13314 #ifndef RIPPER
13315         do {
13316             if (STRNCASECMP(p->name, s, n) == 0) {
13317                 n = vend - vbeg;
13318                 if (p->length) {
13319                     n = (*p->length)(parser, vbeg, n);
13320                 }
13321                 str_copy(val, vbeg, n);
13322                 (*p->func)(parser, s, RSTRING_PTR(val));
13323                 break;
13324             }
13325         } while (++p < magic_comments + numberof(magic_comments));
13326 #else
13327         str_copy(val, vbeg, vend - vbeg);
13328         dispatch2(magic_comment, name, val);
13329 #endif
13330     }
13331 
13332     return TRUE;
13333 }
13334 
13335 static void
13336 set_file_encoding(struct parser_params *parser, const char *str, const char *send)
13337 {
13338     int sep = 0;
13339     const char *beg = str;
13340     VALUE s;
13341 
13342     for (;;) {
13343         if (send - str <= 6) return;
13344         switch (str[6]) {
13345           case 'C': case 'c': str += 6; continue;
13346           case 'O': case 'o': str += 5; continue;
13347           case 'D': case 'd': str += 4; continue;
13348           case 'I': case 'i': str += 3; continue;
13349           case 'N': case 'n': str += 2; continue;
13350           case 'G': case 'g': str += 1; continue;
13351           case '=': case ':':
13352             sep = 1;
13353             str += 6;
13354             break;
13355           default:
13356             str += 6;
13357             if (ISSPACE(*str)) break;
13358             continue;
13359         }
13360         if (STRNCASECMP(str-6, "coding", 6) == 0) break;
13361     }
13362     for (;;) {
13363         do {
13364             if (++str >= send) return;
13365         } while (ISSPACE(*str));
13366         if (sep) break;
13367         if (*str != '=' && *str != ':') return;
13368         sep = 1;
13369         str++;
13370     }
13371     beg = str;
13372     while ((*str == '-' || *str == '_' || ISALNUM(*str)) && ++str < send);
13373     s = rb_str_new(beg, parser_encode_length(parser, beg, str - beg));
13374     parser_set_encode(parser, RSTRING_PTR(s));
13375     rb_str_resize(s, 0);
13376 }
13377 
13378 static void
13379 parser_prepare(struct parser_params *parser)
13380 {
13381     int c = nextc();
13382     switch (c) {
13383       case '#':
13384         if (peek('!')) parser->has_shebang = 1;
13385         break;
13386       case 0xef:                /* UTF-8 BOM marker */
13387         if (lex_pend - lex_p >= 2 &&
13388             (unsigned char)lex_p[0] == 0xbb &&
13389             (unsigned char)lex_p[1] == 0xbf) {
13390             parser->enc = rb_utf8_encoding();
13391             lex_p += 2;
13392             lex_pbeg = lex_p;
13393             return;
13394         }
13395         break;
13396       case EOF:
13397         return;
13398     }
13399     pushback(c);
13400     parser->enc = rb_enc_get(lex_lastline);
13401 }
13402 
13403 #define IS_ARG() IS_lex_state(EXPR_ARG_ANY)
13404 #define IS_END() IS_lex_state(EXPR_END_ANY)
13405 #define IS_BEG() IS_lex_state(EXPR_BEG_ANY)
13406 #define IS_SPCARG(c) (IS_ARG() && space_seen && !ISSPACE(c))
13407 #define IS_LABEL_POSSIBLE() ((IS_lex_state(EXPR_BEG | EXPR_ENDFN) && !cmd_state) || IS_ARG())
13408 #define IS_LABEL_SUFFIX(n) (peek_n(':',(n)) && !peek_n(':', (n)+1))
13409 #define IS_AFTER_OPERATOR() IS_lex_state(EXPR_FNAME | EXPR_DOT)
13410 
13411 #ifndef RIPPER
13412 #define ambiguous_operator(op, syn) ( \
13413     rb_warning0("`"op"' after local variable is interpreted as binary operator"), \
13414     rb_warning0("even though it seems like "syn""))
13415 #else
13416 #define ambiguous_operator(op, syn) dispatch2(operator_ambiguous, ripper_intern(op), rb_str_new_cstr(syn))
13417 #endif
13418 #define warn_balanced(op, syn) ((void) \
13419     (!IS_lex_state_for(last_state, EXPR_CLASS|EXPR_DOT|EXPR_FNAME|EXPR_ENDFN|EXPR_ENDARG) && \
13420      space_seen && !ISSPACE(c) && \
13421      (ambiguous_operator(op, syn), 0)))
13422 
13423 static int
13424 parser_yylex(struct parser_params *parser)
13425 {
13426     register int c;
13427     int space_seen = 0;
13428     int cmd_state;
13429     enum lex_state_e last_state;
13430     rb_encoding *enc;
13431     int mb;
13432 #ifdef RIPPER
13433     int fallthru = FALSE;
13434 #endif
13435 
13436     if (lex_strterm) {
13437         int token;
13438         if (nd_type(lex_strterm) == NODE_HEREDOC) {
13439             token = here_document(lex_strterm);
13440             if (token == tSTRING_END) {
13441                 lex_strterm = 0;
13442                 lex_state = EXPR_END;
13443             }
13444         }
13445         else {
13446             token = parse_string(lex_strterm);
13447             if (token == tSTRING_END || token == tREGEXP_END) {
13448                 rb_gc_force_recycle((VALUE)lex_strterm);
13449                 lex_strterm = 0;
13450                 lex_state = EXPR_END;
13451             }
13452         }
13453         return token;
13454     }
13455     cmd_state = command_start;
13456     command_start = FALSE;
13457   retry:
13458     last_state = lex_state;
13459     switch (c = nextc()) {
13460       case '\0':                /* NUL */
13461       case '\004':              /* ^D */
13462       case '\032':              /* ^Z */
13463       case -1:                  /* end of script. */
13464         return 0;
13465 
13466         /* white spaces */
13467       case ' ': case '\t': case '\f': case '\r':
13468       case '\13': /* '\v' */
13469         space_seen = 1;
13470 #ifdef RIPPER
13471         while ((c = nextc())) {
13472             switch (c) {
13473               case ' ': case '\t': case '\f': case '\r':
13474               case '\13': /* '\v' */
13475                 break;
13476               default:
13477                 goto outofloop;
13478             }
13479         }
13480       outofloop:
13481         pushback(c);
13482         ripper_dispatch_scan_event(parser, tSP);
13483 #endif
13484         goto retry;
13485 
13486       case '#':         /* it's a comment */
13487         /* no magic_comment in shebang line */
13488         if (!parser_magic_comment(parser, lex_p, lex_pend - lex_p)) {
13489             if (comment_at_top(parser)) {
13490                 set_file_encoding(parser, lex_p, lex_pend);
13491             }
13492         }
13493         lex_p = lex_pend;
13494 #ifdef RIPPER
13495         ripper_dispatch_scan_event(parser, tCOMMENT);
13496         fallthru = TRUE;
13497 #endif
13498         /* fall through */
13499       case '\n':
13500         if (IS_lex_state(EXPR_BEG | EXPR_VALUE | EXPR_CLASS | EXPR_FNAME | EXPR_DOT)) {
13501 #ifdef RIPPER
13502             if (!fallthru) {
13503                 ripper_dispatch_scan_event(parser, tIGNORED_NL);
13504             }
13505             fallthru = FALSE;
13506 #endif
13507             goto retry;
13508         }
13509         while ((c = nextc())) {
13510             switch (c) {
13511               case ' ': case '\t': case '\f': case '\r':
13512               case '\13': /* '\v' */
13513                 space_seen = 1;
13514                 break;
13515               case '.': {
13516                   if ((c = nextc()) != '.') {
13517                       pushback(c);
13518                       pushback('.');
13519                       goto retry;
13520                   }
13521               }
13522               default:
13523                 --ruby_sourceline;
13524                 lex_nextline = lex_lastline;
13525               case -1:          /* EOF no decrement*/
13526                 lex_goto_eol(parser);
13527 #ifdef RIPPER
13528                 if (c != -1) {
13529                     parser->tokp = lex_p;
13530                 }
13531 #endif
13532                 goto normal_newline;
13533             }
13534         }
13535       normal_newline:
13536         command_start = TRUE;
13537         lex_state = EXPR_BEG;
13538         return '\n';
13539 
13540       case '*':
13541         if ((c = nextc()) == '*') {
13542             if ((c = nextc()) == '=') {
13543                 set_yylval_id(tPOW);
13544                 lex_state = EXPR_BEG;
13545                 return tOP_ASGN;
13546             }
13547             pushback(c);
13548             if (IS_SPCARG(c)) {
13549                 rb_warning0("`**' interpreted as argument prefix");
13550                 c = tDSTAR;
13551             }
13552             else if (IS_BEG()) {
13553                 c = tDSTAR;
13554             }
13555             else {
13556                 warn_balanced("**", "argument prefix");
13557                 c = tPOW;
13558             }
13559         }
13560         else {
13561             if (c == '=') {
13562                 set_yylval_id('*');
13563                 lex_state = EXPR_BEG;
13564                 return tOP_ASGN;
13565             }
13566             pushback(c);
13567             if (IS_SPCARG(c)) {
13568                 rb_warning0("`*' interpreted as argument prefix");
13569                 c = tSTAR;
13570             }
13571             else if (IS_BEG()) {
13572                 c = tSTAR;
13573             }
13574             else {
13575                 warn_balanced("*", "argument prefix");
13576                 c = '*';
13577             }
13578         }
13579         lex_state = IS_AFTER_OPERATOR() ? EXPR_ARG : EXPR_BEG;
13580         return c;
13581 
13582       case '!':
13583         c = nextc();
13584         if (IS_AFTER_OPERATOR()) {
13585             lex_state = EXPR_ARG;
13586             if (c == '@') {
13587                 return '!';
13588             }
13589         }
13590         else {
13591             lex_state = EXPR_BEG;
13592         }
13593         if (c == '=') {
13594             return tNEQ;
13595         }
13596         if (c == '~') {
13597             return tNMATCH;
13598         }
13599         pushback(c);
13600         return '!';
13601 
13602       case '=':
13603         if (was_bol()) {
13604             /* skip embedded rd document */
13605             if (strncmp(lex_p, "begin", 5) == 0 && ISSPACE(lex_p[5])) {
13606 #ifdef RIPPER
13607                 int first_p = TRUE;
13608 
13609                 lex_goto_eol(parser);
13610                 ripper_dispatch_scan_event(parser, tEMBDOC_BEG);
13611 #endif
13612                 for (;;) {
13613                     lex_goto_eol(parser);
13614 #ifdef RIPPER
13615                     if (!first_p) {
13616                         ripper_dispatch_scan_event(parser, tEMBDOC);
13617                     }
13618                     first_p = FALSE;
13619 #endif
13620                     c = nextc();
13621                     if (c == -1) {
13622                         compile_error(PARSER_ARG "embedded document meets end of file");
13623                         return 0;
13624                     }
13625                     if (c != '=') continue;
13626                     if (strncmp(lex_p, "end", 3) == 0 &&
13627                         (lex_p + 3 == lex_pend || ISSPACE(lex_p[3]))) {
13628                         break;
13629                     }
13630                 }
13631                 lex_goto_eol(parser);
13632 #ifdef RIPPER
13633                 ripper_dispatch_scan_event(parser, tEMBDOC_END);
13634 #endif
13635                 goto retry;
13636             }
13637         }
13638 
13639         lex_state = IS_AFTER_OPERATOR() ? EXPR_ARG : EXPR_BEG;
13640         if ((c = nextc()) == '=') {
13641             if ((c = nextc()) == '=') {
13642                 return tEQQ;
13643             }
13644             pushback(c);
13645             return tEQ;
13646         }
13647         if (c == '~') {
13648             return tMATCH;
13649         }
13650         else if (c == '>') {
13651             return tASSOC;
13652         }
13653         pushback(c);
13654         return '=';
13655 
13656       case '<':
13657         last_state = lex_state;
13658         c = nextc();
13659         if (c == '<' &&
13660             !IS_lex_state(EXPR_DOT | EXPR_CLASS) &&
13661             !IS_END() &&
13662             (!IS_ARG() || space_seen)) {
13663             int token = heredoc_identifier();
13664             if (token) return token;
13665         }
13666         if (IS_AFTER_OPERATOR()) {
13667             lex_state = EXPR_ARG;
13668         }
13669         else {
13670             if (IS_lex_state(EXPR_CLASS))
13671                 command_start = TRUE;
13672             lex_state = EXPR_BEG;
13673         }
13674         if (c == '=') {
13675             if ((c = nextc()) == '>') {
13676                 return tCMP;
13677             }
13678             pushback(c);
13679             return tLEQ;
13680         }
13681         if (c == '<') {
13682             if ((c = nextc()) == '=') {
13683                 set_yylval_id(tLSHFT);
13684                 lex_state = EXPR_BEG;
13685                 return tOP_ASGN;
13686             }
13687             pushback(c);
13688             warn_balanced("<<", "here document");
13689             return tLSHFT;
13690         }
13691         pushback(c);
13692         return '<';
13693 
13694       case '>':
13695         lex_state = IS_AFTER_OPERATOR() ? EXPR_ARG : EXPR_BEG;
13696         if ((c = nextc()) == '=') {
13697             return tGEQ;
13698         }
13699         if (c == '>') {
13700             if ((c = nextc()) == '=') {
13701                 set_yylval_id(tRSHFT);
13702                 lex_state = EXPR_BEG;
13703                 return tOP_ASGN;
13704             }
13705             pushback(c);
13706             return tRSHFT;
13707         }
13708         pushback(c);
13709         return '>';
13710 
13711       case '"':
13712         lex_strterm = NEW_STRTERM(str_dquote, '"', 0);
13713         return tSTRING_BEG;
13714 
13715       case '`':
13716         if (IS_lex_state(EXPR_FNAME)) {
13717             lex_state = EXPR_ENDFN;
13718             return c;
13719         }
13720         if (IS_lex_state(EXPR_DOT)) {
13721             if (cmd_state)
13722                 lex_state = EXPR_CMDARG;
13723             else
13724                 lex_state = EXPR_ARG;
13725             return c;
13726         }
13727         lex_strterm = NEW_STRTERM(str_xquote, '`', 0);
13728         return tXSTRING_BEG;
13729 
13730       case '\'':
13731         lex_strterm = NEW_STRTERM(str_squote, '\'', 0);
13732         return tSTRING_BEG;
13733 
13734       case '?':
13735         if (IS_END()) {
13736             lex_state = EXPR_VALUE;
13737             return '?';
13738         }
13739         c = nextc();
13740         if (c == -1) {
13741             compile_error(PARSER_ARG "incomplete character syntax");
13742             return 0;
13743         }
13744         if (rb_enc_isspace(c, current_enc)) {
13745             if (!IS_ARG()) {
13746                 int c2 = 0;
13747                 switch (c) {
13748                   case ' ':
13749                     c2 = 's';
13750                     break;
13751                   case '\n':
13752                     c2 = 'n';
13753                     break;
13754                   case '\t':
13755                     c2 = 't';
13756                     break;
13757                   case '\v':
13758                     c2 = 'v';
13759                     break;
13760                   case '\r':
13761                     c2 = 'r';
13762                     break;
13763                   case '\f':
13764                     c2 = 'f';
13765                     break;
13766                 }
13767                 if (c2) {
13768                     rb_warnI("invalid character syntax; use ?\\%c", c2);
13769                 }
13770             }
13771           ternary:
13772             pushback(c);
13773             lex_state = EXPR_VALUE;
13774             return '?';
13775         }
13776         newtok();
13777         enc = current_enc;
13778         if (!parser_isascii()) {
13779             if (tokadd_mbchar(c) == -1) return 0;
13780         }
13781         else if ((rb_enc_isalnum(c, current_enc) || c == '_') &&
13782                  lex_p < lex_pend && is_identchar(lex_p, lex_pend, current_enc)) {
13783             goto ternary;
13784         }
13785         else if (c == '\\') {
13786             if (peek('u')) {
13787                 nextc();
13788                 c = parser_tokadd_utf8(parser, &enc, 0, 0, 0);
13789                 if (0x80 <= c) {
13790                     tokaddmbc(c, enc);
13791                 }
13792                 else {
13793                     tokadd(c);
13794                 }
13795             }
13796             else if (!lex_eol_p() && !(c = *lex_p, ISASCII(c))) {
13797                 nextc();
13798                 if (tokadd_mbchar(c) == -1) return 0;
13799             }
13800             else {
13801                 c = read_escape(0, &enc);
13802                 tokadd(c);
13803             }
13804         }
13805         else {
13806             tokadd(c);
13807         }
13808         tokfix();
13809         set_yylval_str(STR_NEW3(tok(), toklen(), enc, 0));
13810         lex_state = EXPR_END;
13811         return tCHAR;
13812 
13813       case '&':
13814         if ((c = nextc()) == '&') {
13815             lex_state = EXPR_BEG;
13816             if ((c = nextc()) == '=') {
13817                 set_yylval_id(tANDOP);
13818                 lex_state = EXPR_BEG;
13819                 return tOP_ASGN;
13820             }
13821             pushback(c);
13822             return tANDOP;
13823         }
13824         else if (c == '=') {
13825             set_yylval_id('&');
13826             lex_state = EXPR_BEG;
13827             return tOP_ASGN;
13828         }
13829         pushback(c);
13830         if (IS_SPCARG(c)) {
13831             rb_warning0("`&' interpreted as argument prefix");
13832             c = tAMPER;
13833         }
13834         else if (IS_BEG()) {
13835             c = tAMPER;
13836         }
13837         else {
13838             warn_balanced("&", "argument prefix");
13839             c = '&';
13840         }
13841         lex_state = IS_AFTER_OPERATOR() ? EXPR_ARG : EXPR_BEG;
13842         return c;
13843 
13844       case '|':
13845         if ((c = nextc()) == '|') {
13846             lex_state = EXPR_BEG;
13847             if ((c = nextc()) == '=') {
13848                 set_yylval_id(tOROP);
13849                 lex_state = EXPR_BEG;
13850                 return tOP_ASGN;
13851             }
13852             pushback(c);
13853             return tOROP;
13854         }
13855         if (c == '=') {
13856             set_yylval_id('|');
13857             lex_state = EXPR_BEG;
13858             return tOP_ASGN;
13859         }
13860         lex_state = IS_AFTER_OPERATOR() ? EXPR_ARG : EXPR_BEG;
13861         pushback(c);
13862         return '|';
13863 
13864       case '+':
13865         c = nextc();
13866         if (IS_AFTER_OPERATOR()) {
13867             lex_state = EXPR_ARG;
13868             if (c == '@') {
13869                 return tUPLUS;
13870             }
13871             pushback(c);
13872             return '+';
13873         }
13874         if (c == '=') {
13875             set_yylval_id('+');
13876             lex_state = EXPR_BEG;
13877             return tOP_ASGN;
13878         }
13879         if (IS_BEG() || (IS_SPCARG(c) && arg_ambiguous())) {
13880             lex_state = EXPR_BEG;
13881             pushback(c);
13882             if (c != -1 && ISDIGIT(c)) {
13883                 c = '+';
13884                 goto start_num;
13885             }
13886             return tUPLUS;
13887         }
13888         lex_state = EXPR_BEG;
13889         pushback(c);
13890         warn_balanced("+", "unary operator");
13891         return '+';
13892 
13893       case '-':
13894         c = nextc();
13895         if (IS_AFTER_OPERATOR()) {
13896             lex_state = EXPR_ARG;
13897             if (c == '@') {
13898                 return tUMINUS;
13899             }
13900             pushback(c);
13901             return '-';
13902         }
13903         if (c == '=') {
13904             set_yylval_id('-');
13905             lex_state = EXPR_BEG;
13906             return tOP_ASGN;
13907         }
13908         if (c == '>') {
13909             lex_state = EXPR_ENDFN;
13910             return tLAMBDA;
13911         }
13912         if (IS_BEG() || (IS_SPCARG(c) && arg_ambiguous())) {
13913             lex_state = EXPR_BEG;
13914             pushback(c);
13915             if (c != -1 && ISDIGIT(c)) {
13916                 return tUMINUS_NUM;
13917             }
13918             return tUMINUS;
13919         }
13920         lex_state = EXPR_BEG;
13921         pushback(c);
13922         warn_balanced("-", "unary operator");
13923         return '-';
13924 
13925       case '.':
13926         lex_state = EXPR_BEG;
13927         if ((c = nextc()) == '.') {
13928             if ((c = nextc()) == '.') {
13929                 return tDOT3;
13930             }
13931             pushback(c);
13932             return tDOT2;
13933         }
13934         pushback(c);
13935         if (c != -1 && ISDIGIT(c)) {
13936             yyerror("no .<digit> floating literal anymore; put 0 before dot");
13937         }
13938         lex_state = EXPR_DOT;
13939         return '.';
13940 
13941       start_num:
13942       case '0': case '1': case '2': case '3': case '4':
13943       case '5': case '6': case '7': case '8': case '9':
13944         {
13945             int is_float, seen_point, seen_e, nondigit;
13946 
13947             is_float = seen_point = seen_e = nondigit = 0;
13948             lex_state = EXPR_END;
13949             newtok();
13950             if (c == '-' || c == '+') {
13951                 tokadd(c);
13952                 c = nextc();
13953             }
13954             if (c == '0') {
13955 #define no_digits() do {yyerror("numeric literal without digits"); return 0;} while (0)
13956                 int start = toklen();
13957                 c = nextc();
13958                 if (c == 'x' || c == 'X') {
13959                     /* hexadecimal */
13960                     c = nextc();
13961                     if (c != -1 && ISXDIGIT(c)) {
13962                         do {
13963                             if (c == '_') {
13964                                 if (nondigit) break;
13965                                 nondigit = c;
13966                                 continue;
13967                             }
13968                             if (!ISXDIGIT(c)) break;
13969                             nondigit = 0;
13970                             tokadd(c);
13971                         } while ((c = nextc()) != -1);
13972                     }
13973                     pushback(c);
13974                     tokfix();
13975                     if (toklen() == start) {
13976                         no_digits();
13977                     }
13978                     else if (nondigit) goto trailing_uc;
13979                     set_yylval_literal(rb_cstr_to_inum(tok(), 16, FALSE));
13980                     return tINTEGER;
13981                 }
13982                 if (c == 'b' || c == 'B') {
13983                     /* binary */
13984                     c = nextc();
13985                     if (c == '0' || c == '1') {
13986                         do {
13987                             if (c == '_') {
13988                                 if (nondigit) break;
13989                                 nondigit = c;
13990                                 continue;
13991                             }
13992                             if (c != '0' && c != '1') break;
13993                             nondigit = 0;
13994                             tokadd(c);
13995                         } while ((c = nextc()) != -1);
13996                     }
13997                     pushback(c);
13998                     tokfix();
13999                     if (toklen() == start) {
14000                         no_digits();
14001                     }
14002                     else if (nondigit) goto trailing_uc;
14003                     set_yylval_literal(rb_cstr_to_inum(tok(), 2, FALSE));
14004                     return tINTEGER;
14005                 }
14006                 if (c == 'd' || c == 'D') {
14007                     /* decimal */
14008                     c = nextc();
14009                     if (c != -1 && ISDIGIT(c)) {
14010                         do {
14011                             if (c == '_') {
14012                                 if (nondigit) break;
14013                                 nondigit = c;
14014                                 continue;
14015                             }
14016                             if (!ISDIGIT(c)) break;
14017                             nondigit = 0;
14018                             tokadd(c);
14019                         } while ((c = nextc()) != -1);
14020                     }
14021                     pushback(c);
14022                     tokfix();
14023                     if (toklen() == start) {
14024                         no_digits();
14025                     }
14026                     else if (nondigit) goto trailing_uc;
14027                     set_yylval_literal(rb_cstr_to_inum(tok(), 10, FALSE));
14028                     return tINTEGER;
14029                 }
14030                 if (c == '_') {
14031                     /* 0_0 */
14032                     goto octal_number;
14033                 }
14034                 if (c == 'o' || c == 'O') {
14035                     /* prefixed octal */
14036                     c = nextc();
14037                     if (c == -1 || c == '_' || !ISDIGIT(c)) {
14038                         no_digits();
14039                     }
14040                 }
14041                 if (c >= '0' && c <= '7') {
14042                     /* octal */
14043                   octal_number:
14044                     do {
14045                         if (c == '_') {
14046                             if (nondigit) break;
14047                             nondigit = c;
14048                             continue;
14049                         }
14050                         if (c < '0' || c > '9') break;
14051                         if (c > '7') goto invalid_octal;
14052                         nondigit = 0;
14053                         tokadd(c);
14054                     } while ((c = nextc()) != -1);
14055                     if (toklen() > start) {
14056                         pushback(c);
14057                         tokfix();
14058                         if (nondigit) goto trailing_uc;
14059                         set_yylval_literal(rb_cstr_to_inum(tok(), 8, FALSE));
14060                         return tINTEGER;
14061                     }
14062                     if (nondigit) {
14063                         pushback(c);
14064                         goto trailing_uc;
14065                     }
14066                 }
14067                 if (c > '7' && c <= '9') {
14068                   invalid_octal:
14069                     yyerror("Invalid octal digit");
14070                 }
14071                 else if (c == '.' || c == 'e' || c == 'E') {
14072                     tokadd('0');
14073                 }
14074                 else {
14075                     pushback(c);
14076                     set_yylval_literal(INT2FIX(0));
14077                     return tINTEGER;
14078                 }
14079             }
14080 
14081             for (;;) {
14082                 switch (c) {
14083                   case '0': case '1': case '2': case '3': case '4':
14084                   case '5': case '6': case '7': case '8': case '9':
14085                     nondigit = 0;
14086                     tokadd(c);
14087                     break;
14088 
14089                   case '.':
14090                     if (nondigit) goto trailing_uc;
14091                     if (seen_point || seen_e) {
14092                         goto decode_num;
14093                     }
14094                     else {
14095                         int c0 = nextc();
14096                         if (c0 == -1 || !ISDIGIT(c0)) {
14097                             pushback(c0);
14098                             goto decode_num;
14099                         }
14100                         c = c0;
14101                     }
14102                     tokadd('.');
14103                     tokadd(c);
14104                     is_float++;
14105                     seen_point++;
14106                     nondigit = 0;
14107                     break;
14108 
14109                   case 'e':
14110                   case 'E':
14111                     if (nondigit) {
14112                         pushback(c);
14113                         c = nondigit;
14114                         goto decode_num;
14115                     }
14116                     if (seen_e) {
14117                         goto decode_num;
14118                     }
14119                     tokadd(c);
14120                     seen_e++;
14121                     is_float++;
14122                     nondigit = c;
14123                     c = nextc();
14124                     if (c != '-' && c != '+') continue;
14125                     tokadd(c);
14126                     nondigit = c;
14127                     break;
14128 
14129                   case '_':     /* `_' in number just ignored */
14130                     if (nondigit) goto decode_num;
14131                     nondigit = c;
14132                     break;
14133 
14134                   default:
14135                     goto decode_num;
14136                 }
14137                 c = nextc();
14138             }
14139 
14140           decode_num:
14141             pushback(c);
14142             if (nondigit) {
14143                 char tmp[30];
14144               trailing_uc:
14145                 snprintf(tmp, sizeof(tmp), "trailing `%c' in number", nondigit);
14146                 yyerror(tmp);
14147             }
14148             tokfix();
14149             if (is_float) {
14150                 double d = strtod(tok(), 0);
14151                 if (errno == ERANGE) {
14152                     rb_warningS("Float %s out of range", tok());
14153                     errno = 0;
14154                 }
14155                 set_yylval_literal(DBL2NUM(d));
14156                 return tFLOAT;
14157             }
14158             set_yylval_literal(rb_cstr_to_inum(tok(), 10, FALSE));
14159             return tINTEGER;
14160         }
14161 
14162       case ')':
14163       case ']':
14164         paren_nest--;
14165       case '}':
14166         COND_LEXPOP();
14167         CMDARG_LEXPOP();
14168         if (c == ')')
14169             lex_state = EXPR_ENDFN;
14170         else
14171             lex_state = EXPR_ENDARG;
14172         if (c == '}') {
14173             if (!brace_nest--) c = tSTRING_DEND;
14174         }
14175         return c;
14176 
14177       case ':':
14178         c = nextc();
14179         if (c == ':') {
14180             if (IS_BEG() || IS_lex_state(EXPR_CLASS) || IS_SPCARG(-1)) {
14181                 lex_state = EXPR_BEG;
14182                 return tCOLON3;
14183             }
14184             lex_state = EXPR_DOT;
14185             return tCOLON2;
14186         }
14187         if (IS_END() || ISSPACE(c)) {
14188             pushback(c);
14189             warn_balanced(":", "symbol literal");
14190             lex_state = EXPR_BEG;
14191             return ':';
14192         }
14193         switch (c) {
14194           case '\'':
14195             lex_strterm = NEW_STRTERM(str_ssym, c, 0);
14196             break;
14197           case '"':
14198             lex_strterm = NEW_STRTERM(str_dsym, c, 0);
14199             break;
14200           default:
14201             pushback(c);
14202             break;
14203         }
14204         lex_state = EXPR_FNAME;
14205         return tSYMBEG;
14206 
14207       case '/':
14208         if (IS_lex_state(EXPR_BEG_ANY)) {
14209             lex_strterm = NEW_STRTERM(str_regexp, '/', 0);
14210             return tREGEXP_BEG;
14211         }
14212         if ((c = nextc()) == '=') {
14213             set_yylval_id('/');
14214             lex_state = EXPR_BEG;
14215             return tOP_ASGN;
14216         }
14217         pushback(c);
14218         if (IS_SPCARG(c)) {
14219             (void)arg_ambiguous();
14220             lex_strterm = NEW_STRTERM(str_regexp, '/', 0);
14221             return tREGEXP_BEG;
14222         }
14223         lex_state = IS_AFTER_OPERATOR() ? EXPR_ARG : EXPR_BEG;
14224         warn_balanced("/", "regexp literal");
14225         return '/';
14226 
14227       case '^':
14228         if ((c = nextc()) == '=') {
14229             set_yylval_id('^');
14230             lex_state = EXPR_BEG;
14231             return tOP_ASGN;
14232         }
14233         lex_state = IS_AFTER_OPERATOR() ? EXPR_ARG : EXPR_BEG;
14234         pushback(c);
14235         return '^';
14236 
14237       case ';':
14238         lex_state = EXPR_BEG;
14239         command_start = TRUE;
14240         return ';';
14241 
14242       case ',':
14243         lex_state = EXPR_BEG;
14244         return ',';
14245 
14246       case '~':
14247         if (IS_AFTER_OPERATOR()) {
14248             if ((c = nextc()) != '@') {
14249                 pushback(c);
14250             }
14251             lex_state = EXPR_ARG;
14252         }
14253         else {
14254             lex_state = EXPR_BEG;
14255         }
14256         return '~';
14257 
14258       case '(':
14259         if (IS_BEG()) {
14260             c = tLPAREN;
14261         }
14262         else if (IS_SPCARG(-1)) {
14263             c = tLPAREN_ARG;
14264         }
14265         paren_nest++;
14266         COND_PUSH(0);
14267         CMDARG_PUSH(0);
14268         lex_state = EXPR_BEG;
14269         return c;
14270 
14271       case '[':
14272         paren_nest++;
14273         if (IS_AFTER_OPERATOR()) {
14274             lex_state = EXPR_ARG;
14275             if ((c = nextc()) == ']') {
14276                 if ((c = nextc()) == '=') {
14277                     return tASET;
14278                 }
14279                 pushback(c);
14280                 return tAREF;
14281             }
14282             pushback(c);
14283             return '[';
14284         }
14285         else if (IS_BEG()) {
14286             c = tLBRACK;
14287         }
14288         else if (IS_ARG() && space_seen) {
14289             c = tLBRACK;
14290         }
14291         lex_state = EXPR_BEG;
14292         COND_PUSH(0);
14293         CMDARG_PUSH(0);
14294         return c;
14295 
14296       case '{':
14297         ++brace_nest;
14298         if (lpar_beg && lpar_beg == paren_nest) {
14299             lex_state = EXPR_BEG;
14300             lpar_beg = 0;
14301             --paren_nest;
14302             COND_PUSH(0);
14303             CMDARG_PUSH(0);
14304             return tLAMBEG;
14305         }
14306         if (IS_ARG() || IS_lex_state(EXPR_END | EXPR_ENDFN))
14307             c = '{';          /* block (primary) */
14308         else if (IS_lex_state(EXPR_ENDARG))
14309             c = tLBRACE_ARG;  /* block (expr) */
14310         else
14311             c = tLBRACE;      /* hash */
14312         COND_PUSH(0);
14313         CMDARG_PUSH(0);
14314         lex_state = EXPR_BEG;
14315         if (c != tLBRACE) command_start = TRUE;
14316         return c;
14317 
14318       case '\\':
14319         c = nextc();
14320         if (c == '\n') {
14321             space_seen = 1;
14322 #ifdef RIPPER
14323             ripper_dispatch_scan_event(parser, tSP);
14324 #endif
14325             goto retry; /* skip \\n */
14326         }
14327         pushback(c);
14328         return '\\';
14329 
14330       case '%':
14331         if (IS_lex_state(EXPR_BEG_ANY)) {
14332             int term;
14333             int paren;
14334 
14335             c = nextc();
14336           quotation:
14337             if (c == -1 || !ISALNUM(c)) {
14338                 term = c;
14339                 c = 'Q';
14340             }
14341             else {
14342                 term = nextc();
14343                 if (rb_enc_isalnum(term, current_enc) || !parser_isascii()) {
14344                     yyerror("unknown type of %string");
14345                     return 0;
14346                 }
14347             }
14348             if (c == -1 || term == -1) {
14349                 compile_error(PARSER_ARG "unterminated quoted string meets end of file");
14350                 return 0;
14351             }
14352             paren = term;
14353             if (term == '(') term = ')';
14354             else if (term == '[') term = ']';
14355             else if (term == '{') term = '}';
14356             else if (term == '<') term = '>';
14357             else paren = 0;
14358 
14359             switch (c) {
14360               case 'Q':
14361                 lex_strterm = NEW_STRTERM(str_dquote, term, paren);
14362                 return tSTRING_BEG;
14363 
14364               case 'q':
14365                 lex_strterm = NEW_STRTERM(str_squote, term, paren);
14366                 return tSTRING_BEG;
14367 
14368               case 'W':
14369                 lex_strterm = NEW_STRTERM(str_dword, term, paren);
14370                 do {c = nextc();} while (ISSPACE(c));
14371                 pushback(c);
14372                 return tWORDS_BEG;
14373 
14374               case 'w':
14375                 lex_strterm = NEW_STRTERM(str_sword, term, paren);
14376                 do {c = nextc();} while (ISSPACE(c));
14377                 pushback(c);
14378                 return tQWORDS_BEG;
14379 
14380               case 'I':
14381                 lex_strterm = NEW_STRTERM(str_dword, term, paren);
14382                 do {c = nextc();} while (ISSPACE(c));
14383                 pushback(c);
14384                 return tSYMBOLS_BEG;
14385 
14386               case 'i':
14387                 lex_strterm = NEW_STRTERM(str_sword, term, paren);
14388                 do {c = nextc();} while (ISSPACE(c));
14389                 pushback(c);
14390                 return tQSYMBOLS_BEG;
14391 
14392               case 'x':
14393                 lex_strterm = NEW_STRTERM(str_xquote, term, paren);
14394                 return tXSTRING_BEG;
14395 
14396               case 'r':
14397                 lex_strterm = NEW_STRTERM(str_regexp, term, paren);
14398                 return tREGEXP_BEG;
14399 
14400               case 's':
14401                 lex_strterm = NEW_STRTERM(str_ssym, term, paren);
14402                 lex_state = EXPR_FNAME;
14403                 return tSYMBEG;
14404 
14405               default:
14406                 yyerror("unknown type of %string");
14407                 return 0;
14408             }
14409         }
14410         if ((c = nextc()) == '=') {
14411             set_yylval_id('%');
14412             lex_state = EXPR_BEG;
14413             return tOP_ASGN;
14414         }
14415         if (IS_SPCARG(c)) {
14416             goto quotation;
14417         }
14418         lex_state = IS_AFTER_OPERATOR() ? EXPR_ARG : EXPR_BEG;
14419         pushback(c);
14420         warn_balanced("%%", "string literal");
14421         return '%';
14422 
14423       case '$':
14424         lex_state = EXPR_END;
14425         newtok();
14426         c = nextc();
14427         switch (c) {
14428           case '_':             /* $_: last read line string */
14429             c = nextc();
14430             if (parser_is_identchar()) {
14431                 tokadd('$');
14432                 tokadd('_');
14433                 break;
14434             }
14435             pushback(c);
14436             c = '_';
14437             /* fall through */
14438           case '~':             /* $~: match-data */
14439           case '*':             /* $*: argv */
14440           case '$':             /* $$: pid */
14441           case '?':             /* $?: last status */
14442           case '!':             /* $!: error string */
14443           case '@':             /* $@: error position */
14444           case '/':             /* $/: input record separator */
14445           case '\\':            /* $\: output record separator */
14446           case ';':             /* $;: field separator */
14447           case ',':             /* $,: output field separator */
14448           case '.':             /* $.: last read line number */
14449           case '=':             /* $=: ignorecase */
14450           case ':':             /* $:: load path */
14451           case '<':             /* $<: reading filename */
14452           case '>':             /* $>: default output handle */
14453           case '\"':            /* $": already loaded files */
14454             tokadd('$');
14455             tokadd(c);
14456             tokfix();
14457             set_yylval_name(rb_intern(tok()));
14458             return tGVAR;
14459 
14460           case '-':
14461             tokadd('$');
14462             tokadd(c);
14463             c = nextc();
14464             if (parser_is_identchar()) {
14465                 if (tokadd_mbchar(c) == -1) return 0;
14466             }
14467             else {
14468                 pushback(c);
14469             }
14470           gvar:
14471             tokfix();
14472             set_yylval_name(rb_intern(tok()));
14473             return tGVAR;
14474 
14475           case '&':             /* $&: last match */
14476           case '`':             /* $`: string before last match */
14477           case '\'':            /* $': string after last match */
14478           case '+':             /* $+: string matches last paren. */
14479             if (IS_lex_state_for(last_state, EXPR_FNAME)) {
14480                 tokadd('$');
14481                 tokadd(c);
14482                 goto gvar;
14483             }
14484             set_yylval_node(NEW_BACK_REF(c));
14485             return tBACK_REF;
14486 
14487           case '1': case '2': case '3':
14488           case '4': case '5': case '6':
14489           case '7': case '8': case '9':
14490             tokadd('$');
14491             do {
14492                 tokadd(c);
14493                 c = nextc();
14494             } while (c != -1 && ISDIGIT(c));
14495             pushback(c);
14496             if (IS_lex_state_for(last_state, EXPR_FNAME)) goto gvar;
14497             tokfix();
14498             set_yylval_node(NEW_NTH_REF(atoi(tok()+1)));
14499             return tNTH_REF;
14500 
14501           default:
14502             if (!parser_is_identchar()) {
14503                 pushback(c);
14504                 compile_error(PARSER_ARG "`$%c' is not allowed as a global variable name", c);
14505                 return 0;
14506             }
14507           case '0':
14508             tokadd('$');
14509         }
14510         break;
14511 
14512       case '@':
14513         c = nextc();
14514         newtok();
14515         tokadd('@');
14516         if (c == '@') {
14517             tokadd('@');
14518             c = nextc();
14519         }
14520         if (c != -1 && (ISDIGIT(c) || !parser_is_identchar())) {
14521             pushback(c);
14522             if (tokidx == 1) {
14523                 compile_error(PARSER_ARG "`@%c' is not allowed as an instance variable name", c);
14524             }
14525             else {
14526                 compile_error(PARSER_ARG "`@@%c' is not allowed as a class variable name", c);
14527             }
14528             return 0;
14529         }
14530         break;
14531 
14532       case '_':
14533         if (was_bol() && whole_match_p("__END__", 7, 0)) {
14534             ruby__end__seen = 1;
14535             parser->eofp = Qtrue;
14536 #ifndef RIPPER
14537             return -1;
14538 #else
14539             lex_goto_eol(parser);
14540             ripper_dispatch_scan_event(parser, k__END__);
14541             return 0;
14542 #endif
14543         }
14544         newtok();
14545         break;
14546 
14547       default:
14548         if (!parser_is_identchar()) {
14549             rb_compile_error(PARSER_ARG  "Invalid char `\\x%02X' in expression", c);
14550             goto retry;
14551         }
14552 
14553         newtok();
14554         break;
14555     }
14556 
14557     mb = ENC_CODERANGE_7BIT;
14558     do {
14559         if (!ISASCII(c)) mb = ENC_CODERANGE_UNKNOWN;
14560         if (tokadd_mbchar(c) == -1) return 0;
14561         c = nextc();
14562     } while (parser_is_identchar());
14563     switch (tok()[0]) {
14564       case '@': case '$':
14565         pushback(c);
14566         break;
14567       default:
14568         if ((c == '!' || c == '?') && !peek('=')) {
14569             tokadd(c);
14570         }
14571         else {
14572             pushback(c);
14573         }
14574     }
14575     tokfix();
14576 
14577     {
14578         int result = 0;
14579 
14580         last_state = lex_state;
14581         switch (tok()[0]) {
14582           case '$':
14583             lex_state = EXPR_END;
14584             result = tGVAR;
14585             break;
14586           case '@':
14587             lex_state = EXPR_END;
14588             if (tok()[1] == '@')
14589                 result = tCVAR;
14590             else
14591                 result = tIVAR;
14592             break;
14593 
14594           default:
14595             if (toklast() == '!' || toklast() == '?') {
14596                 result = tFID;
14597             }
14598             else {
14599                 if (IS_lex_state(EXPR_FNAME)) {
14600                     if ((c = nextc()) == '=' && !peek('~') && !peek('>') &&
14601                         (!peek('=') || (peek_n('>', 1)))) {
14602                         result = tIDENTIFIER;
14603                         tokadd(c);
14604                         tokfix();
14605                     }
14606                     else {
14607                         pushback(c);
14608                     }
14609                 }
14610                 if (result == 0 && ISUPPER(tok()[0])) {
14611                     result = tCONSTANT;
14612                 }
14613                 else {
14614                     result = tIDENTIFIER;
14615                 }
14616             }
14617 
14618             if (IS_LABEL_POSSIBLE()) {
14619                 if (IS_LABEL_SUFFIX(0)) {
14620                     lex_state = EXPR_BEG;
14621                     nextc();
14622                     set_yylval_name(TOK_INTERN(!ENC_SINGLE(mb)));
14623                     return tLABEL;
14624                 }
14625             }
14626             if (mb == ENC_CODERANGE_7BIT && !IS_lex_state(EXPR_DOT)) {
14627                 const struct kwtable *kw;
14628 
14629                 /* See if it is a reserved word.  */
14630                 kw = rb_reserved_word(tok(), toklen());
14631                 if (kw) {
14632                     enum lex_state_e state = lex_state;
14633                     lex_state = kw->state;
14634                     if (state == EXPR_FNAME) {
14635                         set_yylval_name(rb_intern(kw->name));
14636                         return kw->id[0];
14637                     }
14638                     if (lex_state == EXPR_BEG) {
14639                         command_start = TRUE;
14640                     }
14641                     if (kw->id[0] == keyword_do) {
14642                         if (lpar_beg && lpar_beg == paren_nest) {
14643                             lpar_beg = 0;
14644                             --paren_nest;
14645                             return keyword_do_LAMBDA;
14646                         }
14647                         if (COND_P()) return keyword_do_cond;
14648                         if (CMDARG_P() && state != EXPR_CMDARG)
14649                             return keyword_do_block;
14650                         if (state & (EXPR_BEG | EXPR_ENDARG))
14651                             return keyword_do_block;
14652                         return keyword_do;
14653                     }
14654                     if (state & (EXPR_BEG | EXPR_VALUE))
14655                         return kw->id[0];
14656                     else {
14657                         if (kw->id[0] != kw->id[1])
14658                             lex_state = EXPR_BEG;
14659                         return kw->id[1];
14660                     }
14661                 }
14662             }
14663 
14664             if (IS_lex_state(EXPR_BEG_ANY | EXPR_ARG_ANY | EXPR_DOT)) {
14665                 if (cmd_state) {
14666                     lex_state = EXPR_CMDARG;
14667                 }
14668                 else {
14669                     lex_state = EXPR_ARG;
14670                 }
14671             }
14672             else if (lex_state == EXPR_FNAME) {
14673                 lex_state = EXPR_ENDFN;
14674             }
14675             else {
14676                 lex_state = EXPR_END;
14677             }
14678         }
14679         {
14680             ID ident = TOK_INTERN(!ENC_SINGLE(mb));
14681 
14682             set_yylval_name(ident);
14683             if (!IS_lex_state_for(last_state, EXPR_DOT|EXPR_FNAME) &&
14684                 is_local_id(ident) && lvar_defined(ident)) {
14685                 lex_state = EXPR_END;
14686             }
14687         }
14688         return result;
14689     }
14690 }
14691 
14692 #if YYPURE
14693 static int
14694 yylex(void *lval, void *p)
14695 #else
14696 yylex(void *p)
14697 #endif
14698 {
14699     struct parser_params *parser = (struct parser_params*)p;
14700     int t;
14701 
14702 #if YYPURE
14703     parser->parser_yylval = lval;
14704     parser->parser_yylval->val = Qundef;
14705 #endif
14706     t = parser_yylex(parser);
14707 #ifdef RIPPER
14708     if (!NIL_P(parser->delayed)) {
14709         ripper_dispatch_delayed_token(parser, t);
14710         return t;
14711     }
14712     if (t != 0)
14713         ripper_dispatch_scan_event(parser, t);
14714 #endif
14715 
14716     return t;
14717 }
14718 
14719 #ifndef RIPPER
14720 static NODE*
14721 node_newnode(struct parser_params *parser, enum node_type type, VALUE a0, VALUE a1, VALUE a2)
14722 {
14723     NODE *n = (rb_node_newnode)(type, a0, a1, a2);
14724     nd_set_line(n, ruby_sourceline);
14725     return n;
14726 }
14727 
14728 static enum node_type
14729 nodetype(NODE *node)                    /* for debug */
14730 {
14731     return (enum node_type)nd_type(node);
14732 }
14733 
14734 static int
14735 nodeline(NODE *node)
14736 {
14737     return nd_line(node);
14738 }
14739 
14740 static NODE*
14741 newline_node(NODE *node)
14742 {
14743     if (node) {
14744         node = remove_begin(node);
14745         node->flags |= NODE_FL_NEWLINE;
14746     }
14747     return node;
14748 }
14749 
14750 static void
14751 fixpos(NODE *node, NODE *orig)
14752 {
14753     if (!node) return;
14754     if (!orig) return;
14755     if (orig == (NODE*)1) return;
14756     nd_set_line(node, nd_line(orig));
14757 }
14758 
14759 static void
14760 parser_warning(struct parser_params *parser, NODE *node, const char *mesg)
14761 {
14762     rb_compile_warning(ruby_sourcefile, nd_line(node), "%s", mesg);
14763 }
14764 #define parser_warning(node, mesg) parser_warning(parser, (node), (mesg))
14765 
14766 static void
14767 parser_warn(struct parser_params *parser, NODE *node, const char *mesg)
14768 {
14769     rb_compile_warn(ruby_sourcefile, nd_line(node), "%s", mesg);
14770 }
14771 #define parser_warn(node, mesg) parser_warn(parser, (node), (mesg))
14772 
14773 static NODE*
14774 block_append_gen(struct parser_params *parser, NODE *head, NODE *tail)
14775 {
14776     NODE *end, *h = head, *nd;
14777 
14778     if (tail == 0) return head;
14779 
14780     if (h == 0) return tail;
14781     switch (nd_type(h)) {
14782       case NODE_LIT:
14783       case NODE_STR:
14784       case NODE_SELF:
14785       case NODE_TRUE:
14786       case NODE_FALSE:
14787       case NODE_NIL:
14788         parser_warning(h, "unused literal ignored");
14789         return tail;
14790       default:
14791         h = end = NEW_BLOCK(head);
14792         end->nd_end = end;
14793         fixpos(end, head);
14794         head = end;
14795         break;
14796       case NODE_BLOCK:
14797         end = h->nd_end;
14798         break;
14799     }
14800 
14801     nd = end->nd_head;
14802     switch (nd_type(nd)) {
14803       case NODE_RETURN:
14804       case NODE_BREAK:
14805       case NODE_NEXT:
14806       case NODE_REDO:
14807       case NODE_RETRY:
14808         if (RTEST(ruby_verbose)) {
14809             parser_warning(tail, "statement not reached");
14810         }
14811         break;
14812 
14813       default:
14814         break;
14815     }
14816 
14817     if (nd_type(tail) != NODE_BLOCK) {
14818         tail = NEW_BLOCK(tail);
14819         tail->nd_end = tail;
14820     }
14821     end->nd_next = tail;
14822     h->nd_end = tail->nd_end;
14823     return head;
14824 }
14825 
14826 /* append item to the list */
14827 static NODE*
14828 list_append_gen(struct parser_params *parser, NODE *list, NODE *item)
14829 {
14830     NODE *last;
14831 
14832     if (list == 0) return NEW_LIST(item);
14833     if (list->nd_next) {
14834         last = list->nd_next->nd_end;
14835     }
14836     else {
14837         last = list;
14838     }
14839 
14840     list->nd_alen += 1;
14841     last->nd_next = NEW_LIST(item);
14842     list->nd_next->nd_end = last->nd_next;
14843     return list;
14844 }
14845 
14846 /* concat two lists */
14847 static NODE*
14848 list_concat_gen(struct parser_params *parser, NODE *head, NODE *tail)
14849 {
14850     NODE *last;
14851 
14852     if (head->nd_next) {
14853         last = head->nd_next->nd_end;
14854     }
14855     else {
14856         last = head;
14857     }
14858 
14859     head->nd_alen += tail->nd_alen;
14860     last->nd_next = tail;
14861     if (tail->nd_next) {
14862         head->nd_next->nd_end = tail->nd_next->nd_end;
14863     }
14864     else {
14865         head->nd_next->nd_end = tail;
14866     }
14867 
14868     return head;
14869 }
14870 
14871 static int
14872 literal_concat0(struct parser_params *parser, VALUE head, VALUE tail)
14873 {
14874     if (NIL_P(tail)) return 1;
14875     if (!rb_enc_compatible(head, tail)) {
14876         compile_error(PARSER_ARG "string literal encodings differ (%s / %s)",
14877                       rb_enc_name(rb_enc_get(head)),
14878                       rb_enc_name(rb_enc_get(tail)));
14879         rb_str_resize(head, 0);
14880         rb_str_resize(tail, 0);
14881         return 0;
14882     }
14883     rb_str_buf_append(head, tail);
14884     return 1;
14885 }
14886 
14887 /* concat two string literals */
14888 static NODE *
14889 literal_concat_gen(struct parser_params *parser, NODE *head, NODE *tail)
14890 {
14891     enum node_type htype;
14892     NODE *headlast;
14893     VALUE lit;
14894 
14895     if (!head) return tail;
14896     if (!tail) return head;
14897 
14898     htype = nd_type(head);
14899     if (htype == NODE_EVSTR) {
14900         NODE *node = NEW_DSTR(Qnil);
14901         head = list_append(node, head);
14902         htype = NODE_DSTR;
14903     }
14904     switch (nd_type(tail)) {
14905       case NODE_STR:
14906         if (htype == NODE_DSTR && (headlast = head->nd_next->nd_end->nd_head) &&
14907             nd_type(headlast) == NODE_STR) {
14908             htype = NODE_STR;
14909             lit = headlast->nd_lit;
14910         }
14911         else {
14912             lit = head->nd_lit;
14913         }
14914         if (htype == NODE_STR) {
14915             if (!literal_concat0(parser, lit, tail->nd_lit)) {
14916               error:
14917                 rb_gc_force_recycle((VALUE)head);
14918                 rb_gc_force_recycle((VALUE)tail);
14919                 return 0;
14920             }
14921             rb_gc_force_recycle((VALUE)tail);
14922         }
14923         else {
14924             list_append(head, tail);
14925         }
14926         break;
14927 
14928       case NODE_DSTR:
14929         if (htype == NODE_STR) {
14930             if (!literal_concat0(parser, head->nd_lit, tail->nd_lit))
14931                 goto error;
14932             tail->nd_lit = head->nd_lit;
14933             rb_gc_force_recycle((VALUE)head);
14934             head = tail;
14935         }
14936         else if (NIL_P(tail->nd_lit)) {
14937           append:
14938             head->nd_alen += tail->nd_alen - 1;
14939             head->nd_next->nd_end->nd_next = tail->nd_next;
14940             head->nd_next->nd_end = tail->nd_next->nd_end;
14941             rb_gc_force_recycle((VALUE)tail);
14942         }
14943         else if (htype == NODE_DSTR && (headlast = head->nd_next->nd_end->nd_head) &&
14944                  nd_type(headlast) == NODE_STR) {
14945             lit = headlast->nd_lit;
14946             if (!literal_concat0(parser, lit, tail->nd_lit))
14947                 goto error;
14948             tail->nd_lit = Qnil;
14949             goto append;
14950         }
14951         else {
14952             nd_set_type(tail, NODE_ARRAY);
14953             tail->nd_head = NEW_STR(tail->nd_lit);
14954             list_concat(head, tail);
14955         }
14956         break;
14957 
14958       case NODE_EVSTR:
14959         if (htype == NODE_STR) {
14960             nd_set_type(head, NODE_DSTR);
14961             head->nd_alen = 1;
14962         }
14963         list_append(head, tail);
14964         break;
14965     }
14966     return head;
14967 }
14968 
14969 static NODE *
14970 evstr2dstr_gen(struct parser_params *parser, NODE *node)
14971 {
14972     if (nd_type(node) == NODE_EVSTR) {
14973         node = list_append(NEW_DSTR(Qnil), node);
14974     }
14975     return node;
14976 }
14977 
14978 static NODE *
14979 new_evstr_gen(struct parser_params *parser, NODE *node)
14980 {
14981     NODE *head = node;
14982 
14983     if (node) {
14984         switch (nd_type(node)) {
14985           case NODE_STR: case NODE_DSTR: case NODE_EVSTR:
14986             return node;
14987         }
14988     }
14989     return NEW_EVSTR(head);
14990 }
14991 
14992 static NODE *
14993 call_bin_op_gen(struct parser_params *parser, NODE *recv, ID id, NODE *arg1)
14994 {
14995     value_expr(recv);
14996     value_expr(arg1);
14997     return NEW_CALL(recv, id, NEW_LIST(arg1));
14998 }
14999 
15000 static NODE *
15001 call_uni_op_gen(struct parser_params *parser, NODE *recv, ID id)
15002 {
15003     value_expr(recv);
15004     return NEW_CALL(recv, id, 0);
15005 }
15006 
15007 static NODE*
15008 match_op_gen(struct parser_params *parser, NODE *node1, NODE *node2)
15009 {
15010     value_expr(node1);
15011     value_expr(node2);
15012     if (node1) {
15013         switch (nd_type(node1)) {
15014           case NODE_DREGX:
15015           case NODE_DREGX_ONCE:
15016             return NEW_MATCH2(node1, node2);
15017 
15018           case NODE_LIT:
15019             if (RB_TYPE_P(node1->nd_lit, T_REGEXP)) {
15020                 return NEW_MATCH2(node1, node2);
15021             }
15022         }
15023     }
15024 
15025     if (node2) {
15026         switch (nd_type(node2)) {
15027           case NODE_DREGX:
15028           case NODE_DREGX_ONCE:
15029             return NEW_MATCH3(node2, node1);
15030 
15031           case NODE_LIT:
15032             if (RB_TYPE_P(node2->nd_lit, T_REGEXP)) {
15033                 return NEW_MATCH3(node2, node1);
15034             }
15035         }
15036     }
15037 
15038     return NEW_CALL(node1, tMATCH, NEW_LIST(node2));
15039 }
15040 
15041 static NODE*
15042 gettable_gen(struct parser_params *parser, ID id)
15043 {
15044     switch (id) {
15045       case keyword_self:
15046         return NEW_SELF();
15047       case keyword_nil:
15048         return NEW_NIL();
15049       case keyword_true:
15050         return NEW_TRUE();
15051       case keyword_false:
15052         return NEW_FALSE();
15053       case keyword__FILE__:
15054         return NEW_STR(rb_external_str_new_with_enc(ruby_sourcefile, strlen(ruby_sourcefile),
15055                                                     rb_filesystem_encoding()));
15056       case keyword__LINE__:
15057         return NEW_LIT(INT2FIX(tokline));
15058       case keyword__ENCODING__:
15059         return NEW_LIT(rb_enc_from_encoding(current_enc));
15060     }
15061     switch (id_type(id)) {
15062       case ID_LOCAL:
15063         if (dyna_in_block() && dvar_defined(id)) return NEW_DVAR(id);
15064         if (local_id(id)) return NEW_LVAR(id);
15065         /* method call without arguments */
15066         return NEW_VCALL(id);
15067       case ID_GLOBAL:
15068         return NEW_GVAR(id);
15069       case ID_INSTANCE:
15070         return NEW_IVAR(id);
15071       case ID_CONST:
15072         return NEW_CONST(id);
15073       case ID_CLASS:
15074         return NEW_CVAR(id);
15075     }
15076     compile_error(PARSER_ARG "identifier %s is not valid to get", rb_id2name(id));
15077     return 0;
15078 }
15079 #else  /* !RIPPER */
15080 static int
15081 id_is_var_gen(struct parser_params *parser, ID id)
15082 {
15083     if (is_notop_id(id)) {
15084         switch (id & ID_SCOPE_MASK) {
15085           case ID_GLOBAL: case ID_INSTANCE: case ID_CONST: case ID_CLASS:
15086             return 1;
15087           case ID_LOCAL:
15088             if (dyna_in_block() && dvar_defined(id)) return 1;
15089             if (local_id(id)) return 1;
15090             /* method call without arguments */
15091             return 0;
15092         }
15093     }
15094     compile_error(PARSER_ARG "identifier %s is not valid to get", rb_id2name(id));
15095     return 0;
15096 }
15097 #endif /* !RIPPER */
15098 
15099 #if PARSER_DEBUG
15100 static const char *
15101 lex_state_name(enum lex_state_e state)
15102 {
15103     static const char names[][12] = {
15104         "EXPR_BEG",    "EXPR_END",    "EXPR_ENDARG", "EXPR_ENDFN",  "EXPR_ARG",
15105         "EXPR_CMDARG", "EXPR_MID",    "EXPR_FNAME",  "EXPR_DOT",    "EXPR_CLASS",
15106         "EXPR_VALUE",
15107     };
15108 
15109     if ((unsigned)state & ~(~0u << EXPR_MAX_STATE))
15110         return names[ffs(state)];
15111     return NULL;
15112 }
15113 #endif
15114 
15115 #ifdef RIPPER
15116 static VALUE
15117 assignable_gen(struct parser_params *parser, VALUE lhs)
15118 #else
15119 static NODE*
15120 assignable_gen(struct parser_params *parser, ID id, NODE *val)
15121 #endif
15122 {
15123 #ifdef RIPPER
15124     ID id = get_id(lhs);
15125 # define assignable_result(x) get_value(lhs)
15126 # define parser_yyerror(parser, x) dispatch1(assign_error, lhs)
15127 #else
15128 # define assignable_result(x) (x)
15129 #endif
15130     if (!id) return assignable_result(0);
15131     switch (id) {
15132       case keyword_self:
15133         yyerror("Can't change the value of self");
15134         goto error;
15135       case keyword_nil:
15136         yyerror("Can't assign to nil");
15137         goto error;
15138       case keyword_true:
15139         yyerror("Can't assign to true");
15140         goto error;
15141       case keyword_false:
15142         yyerror("Can't assign to false");
15143         goto error;
15144       case keyword__FILE__:
15145         yyerror("Can't assign to __FILE__");
15146         goto error;
15147       case keyword__LINE__:
15148         yyerror("Can't assign to __LINE__");
15149         goto error;
15150       case keyword__ENCODING__:
15151         yyerror("Can't assign to __ENCODING__");
15152         goto error;
15153     }
15154     switch (id_type(id)) {
15155       case ID_LOCAL:
15156         if (dyna_in_block()) {
15157             if (dvar_curr(id)) {
15158                 return assignable_result(NEW_DASGN_CURR(id, val));
15159             }
15160             else if (dvar_defined(id)) {
15161                 return assignable_result(NEW_DASGN(id, val));
15162             }
15163             else if (local_id(id)) {
15164                 return assignable_result(NEW_LASGN(id, val));
15165             }
15166             else {
15167                 dyna_var(id);
15168                 return assignable_result(NEW_DASGN_CURR(id, val));
15169             }
15170         }
15171         else {
15172             if (!local_id(id)) {
15173                 local_var(id);
15174             }
15175             return assignable_result(NEW_LASGN(id, val));
15176         }
15177         break;
15178       case ID_GLOBAL:
15179         return assignable_result(NEW_GASGN(id, val));
15180       case ID_INSTANCE:
15181         return assignable_result(NEW_IASGN(id, val));
15182       case ID_CONST:
15183         if (!in_def && !in_single)
15184             return assignable_result(NEW_CDECL(id, val, 0));
15185         yyerror("dynamic constant assignment");
15186         break;
15187       case ID_CLASS:
15188         return assignable_result(NEW_CVASGN(id, val));
15189       default:
15190         compile_error(PARSER_ARG "identifier %s is not valid to set", rb_id2name(id));
15191     }
15192   error:
15193     return assignable_result(0);
15194 #undef assignable_result
15195 #undef parser_yyerror
15196 }
15197 
15198 static int
15199 is_private_local_id(ID name)
15200 {
15201     VALUE s;
15202     if (name == idUScore) return 1;
15203     if (!is_local_id(name)) return 0;
15204     s = rb_id2str(name);
15205     if (!s) return 0;
15206     return RSTRING_PTR(s)[0] == '_';
15207 }
15208 
15209 #define LVAR_USED ((ID)1 << (sizeof(ID) * CHAR_BIT - 1))
15210 
15211 static ID
15212 shadowing_lvar_gen(struct parser_params *parser, ID name)
15213 {
15214     if (is_private_local_id(name)) return name;
15215     if (dyna_in_block()) {
15216         if (dvar_curr(name)) {
15217             yyerror("duplicated argument name");
15218         }
15219         else if (dvar_defined_get(name) || local_id(name)) {
15220             rb_warningS("shadowing outer local variable - %s", rb_id2name(name));
15221             vtable_add(lvtbl->vars, name);
15222             if (lvtbl->used) {
15223                 vtable_add(lvtbl->used, (ID)ruby_sourceline | LVAR_USED);
15224             }
15225         }
15226     }
15227     else {
15228         if (local_id(name)) {
15229             yyerror("duplicated argument name");
15230         }
15231     }
15232     return name;
15233 }
15234 
15235 static void
15236 new_bv_gen(struct parser_params *parser, ID name)
15237 {
15238     if (!name) return;
15239     if (!is_local_id(name)) {
15240         compile_error(PARSER_ARG "invalid local variable - %s",
15241                       rb_id2name(name));
15242         return;
15243     }
15244     shadowing_lvar(name);
15245     dyna_var(name);
15246 }
15247 
15248 #ifndef RIPPER
15249 static NODE *
15250 aryset_gen(struct parser_params *parser, NODE *recv, NODE *idx)
15251 {
15252     if (recv && nd_type(recv) == NODE_SELF)
15253         recv = (NODE *)1;
15254     return NEW_ATTRASGN(recv, tASET, idx);
15255 }
15256 
15257 static void
15258 block_dup_check_gen(struct parser_params *parser, NODE *node1, NODE *node2)
15259 {
15260     if (node2 && node1 && nd_type(node1) == NODE_BLOCK_PASS) {
15261         compile_error(PARSER_ARG "both block arg and actual block given");
15262     }
15263 }
15264 
15265 static const char id_type_names[][9] = {
15266     "LOCAL",
15267     "INSTANCE",
15268     "",                         /* INSTANCE2 */
15269     "GLOBAL",
15270     "ATTRSET",
15271     "CONST",
15272     "CLASS",
15273     "JUNK",
15274 };
15275 
15276 ID
15277 rb_id_attrset(ID id)
15278 {
15279     if (!is_notop_id(id)) {
15280         switch (id) {
15281           case tAREF: case tASET:
15282             return tASET;       /* only exception */
15283         }
15284         rb_name_error(id, "cannot make operator ID :%s attrset", rb_id2name(id));
15285     }
15286     else {
15287         int scope = (int)(id & ID_SCOPE_MASK);
15288         switch (scope) {
15289           case ID_LOCAL: case ID_INSTANCE: case ID_GLOBAL:
15290           case ID_CONST: case ID_CLASS: case ID_JUNK:
15291             break;
15292           case ID_ATTRSET:
15293             return id;
15294           default:
15295             rb_name_error(id, "cannot make %s ID %+"PRIsVALUE" attrset",
15296                           id_type_names[scope], ID2SYM(id));
15297 
15298         }
15299     }
15300     id &= ~ID_SCOPE_MASK;
15301     id |= ID_ATTRSET;
15302     return id;
15303 }
15304 
15305 static NODE *
15306 attrset_gen(struct parser_params *parser, NODE *recv, ID id)
15307 {
15308     if (recv && nd_type(recv) == NODE_SELF)
15309         recv = (NODE *)1;
15310     return NEW_ATTRASGN(recv, rb_id_attrset(id), 0);
15311 }
15312 
15313 static void
15314 rb_backref_error_gen(struct parser_params *parser, NODE *node)
15315 {
15316     switch (nd_type(node)) {
15317       case NODE_NTH_REF:
15318         compile_error(PARSER_ARG "Can't set variable $%ld", node->nd_nth);
15319         break;
15320       case NODE_BACK_REF:
15321         compile_error(PARSER_ARG "Can't set variable $%c", (int)node->nd_nth);
15322         break;
15323     }
15324 }
15325 
15326 static NODE *
15327 arg_concat_gen(struct parser_params *parser, NODE *node1, NODE *node2)
15328 {
15329     if (!node2) return node1;
15330     switch (nd_type(node1)) {
15331       case NODE_BLOCK_PASS:
15332         if (node1->nd_head)
15333             node1->nd_head = arg_concat(node1->nd_head, node2);
15334         else
15335             node1->nd_head = NEW_LIST(node2);
15336         return node1;
15337       case NODE_ARGSPUSH:
15338         if (nd_type(node2) != NODE_ARRAY) break;
15339         node1->nd_body = list_concat(NEW_LIST(node1->nd_body), node2);
15340         nd_set_type(node1, NODE_ARGSCAT);
15341         return node1;
15342       case NODE_ARGSCAT:
15343         if (nd_type(node2) != NODE_ARRAY ||
15344             nd_type(node1->nd_body) != NODE_ARRAY) break;
15345         node1->nd_body = list_concat(node1->nd_body, node2);
15346         return node1;
15347     }
15348     return NEW_ARGSCAT(node1, node2);
15349 }
15350 
15351 static NODE *
15352 arg_append_gen(struct parser_params *parser, NODE *node1, NODE *node2)
15353 {
15354     if (!node1) return NEW_LIST(node2);
15355     switch (nd_type(node1))  {
15356       case NODE_ARRAY:
15357         return list_append(node1, node2);
15358       case NODE_BLOCK_PASS:
15359         node1->nd_head = arg_append(node1->nd_head, node2);
15360         return node1;
15361       case NODE_ARGSPUSH:
15362         node1->nd_body = list_append(NEW_LIST(node1->nd_body), node2);
15363         nd_set_type(node1, NODE_ARGSCAT);
15364         return node1;
15365     }
15366     return NEW_ARGSPUSH(node1, node2);
15367 }
15368 
15369 static NODE *
15370 splat_array(NODE* node)
15371 {
15372     if (nd_type(node) == NODE_SPLAT) node = node->nd_head;
15373     if (nd_type(node) == NODE_ARRAY) return node;
15374     return 0;
15375 }
15376 
15377 static NODE *
15378 node_assign_gen(struct parser_params *parser, NODE *lhs, NODE *rhs)
15379 {
15380     if (!lhs) return 0;
15381 
15382     switch (nd_type(lhs)) {
15383       case NODE_GASGN:
15384       case NODE_IASGN:
15385       case NODE_IASGN2:
15386       case NODE_LASGN:
15387       case NODE_DASGN:
15388       case NODE_DASGN_CURR:
15389       case NODE_MASGN:
15390       case NODE_CDECL:
15391       case NODE_CVASGN:
15392         lhs->nd_value = rhs;
15393         break;
15394 
15395       case NODE_ATTRASGN:
15396       case NODE_CALL:
15397         lhs->nd_args = arg_append(lhs->nd_args, rhs);
15398         break;
15399 
15400       default:
15401         /* should not happen */
15402         break;
15403     }
15404 
15405     return lhs;
15406 }
15407 
15408 static int
15409 value_expr_gen(struct parser_params *parser, NODE *node)
15410 {
15411     int cond = 0;
15412 
15413     if (!node) {
15414         rb_warning0("empty expression");
15415     }
15416     while (node) {
15417         switch (nd_type(node)) {
15418           case NODE_DEFN:
15419           case NODE_DEFS:
15420             parser_warning(node, "void value expression");
15421             return FALSE;
15422 
15423           case NODE_RETURN:
15424           case NODE_BREAK:
15425           case NODE_NEXT:
15426           case NODE_REDO:
15427           case NODE_RETRY:
15428             if (!cond) yyerror("void value expression");
15429             /* or "control never reach"? */
15430             return FALSE;
15431 
15432           case NODE_BLOCK:
15433             while (node->nd_next) {
15434                 node = node->nd_next;
15435             }
15436             node = node->nd_head;
15437             break;
15438 
15439           case NODE_BEGIN:
15440             node = node->nd_body;
15441             break;
15442 
15443           case NODE_IF:
15444             if (!node->nd_body) {
15445                 node = node->nd_else;
15446                 break;
15447             }
15448             else if (!node->nd_else) {
15449                 node = node->nd_body;
15450                 break;
15451             }
15452             if (!value_expr(node->nd_body)) return FALSE;
15453             node = node->nd_else;
15454             break;
15455 
15456           case NODE_AND:
15457           case NODE_OR:
15458             cond = 1;
15459             node = node->nd_2nd;
15460             break;
15461 
15462           default:
15463             return TRUE;
15464         }
15465     }
15466 
15467     return TRUE;
15468 }
15469 
15470 static void
15471 void_expr_gen(struct parser_params *parser, NODE *node)
15472 {
15473     const char *useless = 0;
15474 
15475     if (!RTEST(ruby_verbose)) return;
15476 
15477     if (!node) return;
15478     switch (nd_type(node)) {
15479       case NODE_CALL:
15480         switch (node->nd_mid) {
15481           case '+':
15482           case '-':
15483           case '*':
15484           case '/':
15485           case '%':
15486           case tPOW:
15487           case tUPLUS:
15488           case tUMINUS:
15489           case '|':
15490           case '^':
15491           case '&':
15492           case tCMP:
15493           case '>':
15494           case tGEQ:
15495           case '<':
15496           case tLEQ:
15497           case tEQ:
15498           case tNEQ:
15499             useless = rb_id2name(node->nd_mid);
15500             break;
15501         }
15502         break;
15503 
15504       case NODE_LVAR:
15505       case NODE_DVAR:
15506       case NODE_GVAR:
15507       case NODE_IVAR:
15508       case NODE_CVAR:
15509       case NODE_NTH_REF:
15510       case NODE_BACK_REF:
15511         useless = "a variable";
15512         break;
15513       case NODE_CONST:
15514         useless = "a constant";
15515         break;
15516       case NODE_LIT:
15517       case NODE_STR:
15518       case NODE_DSTR:
15519       case NODE_DREGX:
15520       case NODE_DREGX_ONCE:
15521         useless = "a literal";
15522         break;
15523       case NODE_COLON2:
15524       case NODE_COLON3:
15525         useless = "::";
15526         break;
15527       case NODE_DOT2:
15528         useless = "..";
15529         break;
15530       case NODE_DOT3:
15531         useless = "...";
15532         break;
15533       case NODE_SELF:
15534         useless = "self";
15535         break;
15536       case NODE_NIL:
15537         useless = "nil";
15538         break;
15539       case NODE_TRUE:
15540         useless = "true";
15541         break;
15542       case NODE_FALSE:
15543         useless = "false";
15544         break;
15545       case NODE_DEFINED:
15546         useless = "defined?";
15547         break;
15548     }
15549 
15550     if (useless) {
15551         int line = ruby_sourceline;
15552 
15553         ruby_sourceline = nd_line(node);
15554         rb_warnS("possibly useless use of %s in void context", useless);
15555         ruby_sourceline = line;
15556     }
15557 }
15558 
15559 static void
15560 void_stmts_gen(struct parser_params *parser, NODE *node)
15561 {
15562     if (!RTEST(ruby_verbose)) return;
15563     if (!node) return;
15564     if (nd_type(node) != NODE_BLOCK) return;
15565 
15566     for (;;) {
15567         if (!node->nd_next) return;
15568         void_expr0(node->nd_head);
15569         node = node->nd_next;
15570     }
15571 }
15572 
15573 static NODE *
15574 remove_begin(NODE *node)
15575 {
15576     NODE **n = &node, *n1 = node;
15577     while (n1 && nd_type(n1) == NODE_BEGIN && n1->nd_body) {
15578         *n = n1 = n1->nd_body;
15579     }
15580     return node;
15581 }
15582 
15583 static void
15584 reduce_nodes_gen(struct parser_params *parser, NODE **body)
15585 {
15586     NODE *node = *body;
15587 
15588     if (!node) {
15589         *body = NEW_NIL();
15590         return;
15591     }
15592 #define subnodes(n1, n2) \
15593     ((!node->n1) ? (node->n2 ? (body = &node->n2, 1) : 0) : \
15594      (!node->n2) ? (body = &node->n1, 1) : \
15595      (reduce_nodes(&node->n1), body = &node->n2, 1))
15596 
15597     while (node) {
15598         int newline = (int)(node->flags & NODE_FL_NEWLINE);
15599         switch (nd_type(node)) {
15600           end:
15601           case NODE_NIL:
15602             *body = 0;
15603             return;
15604           case NODE_RETURN:
15605             *body = node = node->nd_stts;
15606             if (newline && node) node->flags |= NODE_FL_NEWLINE;
15607             continue;
15608           case NODE_BEGIN:
15609             *body = node = node->nd_body;
15610             if (newline && node) node->flags |= NODE_FL_NEWLINE;
15611             continue;
15612           case NODE_BLOCK:
15613             body = &node->nd_end->nd_head;
15614             break;
15615           case NODE_IF:
15616             if (subnodes(nd_body, nd_else)) break;
15617             return;
15618           case NODE_CASE:
15619             body = &node->nd_body;
15620             break;
15621           case NODE_WHEN:
15622             if (!subnodes(nd_body, nd_next)) goto end;
15623             break;
15624           case NODE_ENSURE:
15625             if (!subnodes(nd_head, nd_resq)) goto end;
15626             break;
15627           case NODE_RESCUE:
15628             if (node->nd_else) {
15629                 body = &node->nd_resq;
15630                 break;
15631             }
15632             if (!subnodes(nd_head, nd_resq)) goto end;
15633             break;
15634           default:
15635             return;
15636         }
15637         node = *body;
15638         if (newline && node) node->flags |= NODE_FL_NEWLINE;
15639     }
15640 
15641 #undef subnodes
15642 }
15643 
15644 static int
15645 is_static_content(NODE *node)
15646 {
15647     if (!node) return 1;
15648     switch (nd_type(node)) {
15649       case NODE_HASH:
15650         if (!(node = node->nd_head)) break;
15651       case NODE_ARRAY:
15652         do {
15653             if (!is_static_content(node->nd_head)) return 0;
15654         } while ((node = node->nd_next) != 0);
15655       case NODE_LIT:
15656       case NODE_STR:
15657       case NODE_NIL:
15658       case NODE_TRUE:
15659       case NODE_FALSE:
15660       case NODE_ZARRAY:
15661         break;
15662       default:
15663         return 0;
15664     }
15665     return 1;
15666 }
15667 
15668 static int
15669 assign_in_cond(struct parser_params *parser, NODE *node)
15670 {
15671     switch (nd_type(node)) {
15672       case NODE_MASGN:
15673         yyerror("multiple assignment in conditional");
15674         return 1;
15675 
15676       case NODE_LASGN:
15677       case NODE_DASGN:
15678       case NODE_DASGN_CURR:
15679       case NODE_GASGN:
15680       case NODE_IASGN:
15681         break;
15682 
15683       default:
15684         return 0;
15685     }
15686 
15687     if (!node->nd_value) return 1;
15688     if (is_static_content(node->nd_value)) {
15689         /* reports always */
15690         parser_warn(node->nd_value, "found = in conditional, should be ==");
15691     }
15692     return 1;
15693 }
15694 
15695 static void
15696 warn_unless_e_option(struct parser_params *parser, NODE *node, const char *str)
15697 {
15698     if (!e_option_supplied(parser)) parser_warn(node, str);
15699 }
15700 
15701 static void
15702 warning_unless_e_option(struct parser_params *parser, NODE *node, const char *str)
15703 {
15704     if (!e_option_supplied(parser)) parser_warning(node, str);
15705 }
15706 
15707 static void
15708 fixup_nodes(NODE **rootnode)
15709 {
15710     NODE *node, *next, *head;
15711 
15712     for (node = *rootnode; node; node = next) {
15713         enum node_type type;
15714         VALUE val;
15715 
15716         next = node->nd_next;
15717         head = node->nd_head;
15718         rb_gc_force_recycle((VALUE)node);
15719         *rootnode = next;
15720         switch (type = nd_type(head)) {
15721           case NODE_DOT2:
15722           case NODE_DOT3:
15723             val = rb_range_new(head->nd_beg->nd_lit, head->nd_end->nd_lit,
15724                                type == NODE_DOT3);
15725             rb_gc_force_recycle((VALUE)head->nd_beg);
15726             rb_gc_force_recycle((VALUE)head->nd_end);
15727             nd_set_type(head, NODE_LIT);
15728             head->nd_lit = val;
15729             break;
15730           default:
15731             break;
15732         }
15733     }
15734 }
15735 
15736 static NODE *cond0(struct parser_params*,NODE*);
15737 
15738 static NODE*
15739 range_op(struct parser_params *parser, NODE *node)
15740 {
15741     enum node_type type;
15742 
15743     if (node == 0) return 0;
15744 
15745     type = nd_type(node);
15746     value_expr(node);
15747     if (type == NODE_LIT && FIXNUM_P(node->nd_lit)) {
15748         warn_unless_e_option(parser, node, "integer literal in conditional range");
15749         return NEW_CALL(node, tEQ, NEW_LIST(NEW_GVAR(rb_intern("$."))));
15750     }
15751     return cond0(parser, node);
15752 }
15753 
15754 static int
15755 literal_node(NODE *node)
15756 {
15757     if (!node) return 1;        /* same as NODE_NIL */
15758     switch (nd_type(node)) {
15759       case NODE_LIT:
15760       case NODE_STR:
15761       case NODE_DSTR:
15762       case NODE_EVSTR:
15763       case NODE_DREGX:
15764       case NODE_DREGX_ONCE:
15765       case NODE_DSYM:
15766         return 2;
15767       case NODE_TRUE:
15768       case NODE_FALSE:
15769       case NODE_NIL:
15770         return 1;
15771     }
15772     return 0;
15773 }
15774 
15775 static NODE*
15776 cond0(struct parser_params *parser, NODE *node)
15777 {
15778     if (node == 0) return 0;
15779     assign_in_cond(parser, node);
15780 
15781     switch (nd_type(node)) {
15782       case NODE_DSTR:
15783       case NODE_EVSTR:
15784       case NODE_STR:
15785         rb_warn0("string literal in condition");
15786         break;
15787 
15788       case NODE_DREGX:
15789       case NODE_DREGX_ONCE:
15790         warning_unless_e_option(parser, node, "regex literal in condition");
15791         return NEW_MATCH2(node, NEW_GVAR(rb_intern("$_")));
15792 
15793       case NODE_AND:
15794       case NODE_OR:
15795         node->nd_1st = cond0(parser, node->nd_1st);
15796         node->nd_2nd = cond0(parser, node->nd_2nd);
15797         break;
15798 
15799       case NODE_DOT2:
15800       case NODE_DOT3:
15801         node->nd_beg = range_op(parser, node->nd_beg);
15802         node->nd_end = range_op(parser, node->nd_end);
15803         if (nd_type(node) == NODE_DOT2) nd_set_type(node,NODE_FLIP2);
15804         else if (nd_type(node) == NODE_DOT3) nd_set_type(node, NODE_FLIP3);
15805         if (!e_option_supplied(parser)) {
15806             int b = literal_node(node->nd_beg);
15807             int e = literal_node(node->nd_end);
15808             if ((b == 1 && e == 1) || (b + e >= 2 && RTEST(ruby_verbose))) {
15809                 parser_warn(node, "range literal in condition");
15810             }
15811         }
15812         break;
15813 
15814       case NODE_DSYM:
15815         parser_warning(node, "literal in condition");
15816         break;
15817 
15818       case NODE_LIT:
15819         if (RB_TYPE_P(node->nd_lit, T_REGEXP)) {
15820             warn_unless_e_option(parser, node, "regex literal in condition");
15821             nd_set_type(node, NODE_MATCH);
15822         }
15823         else {
15824             parser_warning(node, "literal in condition");
15825         }
15826       default:
15827         break;
15828     }
15829     return node;
15830 }
15831 
15832 static NODE*
15833 cond_gen(struct parser_params *parser, NODE *node)
15834 {
15835     if (node == 0) return 0;
15836     return cond0(parser, node);
15837 }
15838 
15839 static NODE*
15840 logop_gen(struct parser_params *parser, enum node_type type, NODE *left, NODE *right)
15841 {
15842     value_expr(left);
15843     if (left && (enum node_type)nd_type(left) == type) {
15844         NODE *node = left, *second;
15845         while ((second = node->nd_2nd) != 0 && (enum node_type)nd_type(second) == type) {
15846             node = second;
15847         }
15848         node->nd_2nd = NEW_NODE(type, second, right, 0);
15849         return left;
15850     }
15851     return NEW_NODE(type, left, right, 0);
15852 }
15853 
15854 static void
15855 no_blockarg(struct parser_params *parser, NODE *node)
15856 {
15857     if (node && nd_type(node) == NODE_BLOCK_PASS) {
15858         compile_error(PARSER_ARG "block argument should not be given");
15859     }
15860 }
15861 
15862 static NODE *
15863 ret_args_gen(struct parser_params *parser, NODE *node)
15864 {
15865     if (node) {
15866         no_blockarg(parser, node);
15867         if (nd_type(node) == NODE_ARRAY) {
15868             if (node->nd_next == 0) {
15869                 node = node->nd_head;
15870             }
15871             else {
15872                 nd_set_type(node, NODE_VALUES);
15873             }
15874         }
15875     }
15876     return node;
15877 }
15878 
15879 static NODE *
15880 new_yield_gen(struct parser_params *parser, NODE *node)
15881 {
15882     if (node) no_blockarg(parser, node);
15883 
15884     return NEW_YIELD(node);
15885 }
15886 
15887 static NODE*
15888 negate_lit(NODE *node)
15889 {
15890     switch (TYPE(node->nd_lit)) {
15891       case T_FIXNUM:
15892         node->nd_lit = LONG2FIX(-FIX2LONG(node->nd_lit));
15893         break;
15894       case T_BIGNUM:
15895         node->nd_lit = rb_funcall(node->nd_lit,tUMINUS,0,0);
15896         break;
15897       case T_FLOAT:
15898 #if USE_FLONUM
15899         if (FLONUM_P(node->nd_lit)) {
15900             node->nd_lit = DBL2NUM(-RFLOAT_VALUE(node->nd_lit));
15901         }
15902         else {
15903             RFLOAT(node->nd_lit)->float_value = -RFLOAT_VALUE(node->nd_lit);
15904         }
15905 #else
15906         RFLOAT(node->nd_lit)->float_value = -RFLOAT_VALUE(node->nd_lit);
15907 #endif
15908         break;
15909       default:
15910         break;
15911     }
15912     return node;
15913 }
15914 
15915 static NODE *
15916 arg_blk_pass(NODE *node1, NODE *node2)
15917 {
15918     if (node2) {
15919         node2->nd_head = node1;
15920         return node2;
15921     }
15922     return node1;
15923 }
15924 
15925 
15926 static NODE*
15927 new_args_gen(struct parser_params *parser, NODE *m, NODE *o, ID r, NODE *p, NODE *tail)
15928 {
15929     int saved_line = ruby_sourceline;
15930     struct rb_args_info *args = tail->nd_ainfo;
15931 
15932     args->pre_args_num   = m ? rb_long2int(m->nd_plen) : 0;
15933     args->pre_init       = m ? m->nd_next : 0;
15934 
15935     args->post_args_num  = p ? rb_long2int(p->nd_plen) : 0;
15936     args->post_init      = p ? p->nd_next : 0;
15937     args->first_post_arg = p ? p->nd_pid : 0;
15938 
15939     args->rest_arg       = r;
15940 
15941     args->opt_args       = o;
15942 
15943     ruby_sourceline = saved_line;
15944 
15945     return tail;
15946 }
15947 
15948 static NODE*
15949 new_args_tail_gen(struct parser_params *parser, NODE *k, ID kr, ID b)
15950 {
15951     int saved_line = ruby_sourceline;
15952     struct rb_args_info *args;
15953     NODE *kw_rest_arg = 0;
15954     NODE *node;
15955 
15956     args = ALLOC(struct rb_args_info);
15957     MEMZERO(args, struct rb_args_info, 1);
15958     node = NEW_NODE(NODE_ARGS, 0, 0, args);
15959 
15960     args->block_arg      = b;
15961     args->kw_args        = k;
15962     if (k && !kr) kr = internal_id();
15963     if (kr) {
15964         arg_var(kr);
15965         kw_rest_arg  = NEW_DVAR(kr);
15966     }
15967     args->kw_rest_arg    = kw_rest_arg;
15968 
15969     ruby_sourceline = saved_line;
15970     return node;
15971 }
15972 
15973 static NODE*
15974 dsym_node_gen(struct parser_params *parser, NODE *node)
15975 {
15976     VALUE lit;
15977 
15978     if (!node) {
15979         return NEW_LIT(ID2SYM(idNULL));
15980     }
15981 
15982     switch (nd_type(node)) {
15983       case NODE_DSTR:
15984         nd_set_type(node, NODE_DSYM);
15985         break;
15986       case NODE_STR:
15987         lit = node->nd_lit;
15988         node->nd_lit = ID2SYM(rb_intern_str(lit));
15989         nd_set_type(node, NODE_LIT);
15990         break;
15991       default:
15992         node = NEW_NODE(NODE_DSYM, Qnil, 1, NEW_LIST(node));
15993         break;
15994     }
15995     return node;
15996 }
15997 #endif /* !RIPPER */
15998 
15999 #ifndef RIPPER
16000 static NODE *
16001 new_op_assign_gen(struct parser_params *parser, NODE *lhs, ID op, NODE *rhs)
16002 {
16003     NODE *asgn;
16004 
16005     if (lhs) {
16006         ID vid = lhs->nd_vid;
16007         if (op == tOROP) {
16008             lhs->nd_value = rhs;
16009             asgn = NEW_OP_ASGN_OR(gettable(vid), lhs);
16010             if (is_asgn_or_id(vid)) {
16011                 asgn->nd_aid = vid;
16012             }
16013         }
16014         else if (op == tANDOP) {
16015             lhs->nd_value = rhs;
16016             asgn = NEW_OP_ASGN_AND(gettable(vid), lhs);
16017         }
16018         else {
16019             asgn = lhs;
16020             asgn->nd_value = NEW_CALL(gettable(vid), op, NEW_LIST(rhs));
16021         }
16022     }
16023     else {
16024         asgn = NEW_BEGIN(0);
16025     }
16026     return asgn;
16027 }
16028 
16029 static NODE *
16030 new_attr_op_assign_gen(struct parser_params *parser, NODE *lhs, ID attr, ID op, NODE *rhs)
16031 {
16032     NODE *asgn;
16033 
16034     if (op == tOROP) {
16035         op = 0;
16036     }
16037     else if (op == tANDOP) {
16038         op = 1;
16039     }
16040     asgn = NEW_OP_ASGN2(lhs, attr, op, rhs);
16041     fixpos(asgn, lhs);
16042     return asgn;
16043 }
16044 
16045 static NODE *
16046 new_const_op_assign_gen(struct parser_params *parser, NODE *lhs, ID op, NODE *rhs)
16047 {
16048     NODE *asgn;
16049 
16050     if (op == tOROP) {
16051         op = 0;
16052     }
16053     else if (op == tANDOP) {
16054         op = 1;
16055     }
16056     if (lhs) {
16057         asgn = NEW_OP_CDECL(lhs, op, rhs);
16058     }
16059     else {
16060         asgn = NEW_BEGIN(0);
16061     }
16062     fixpos(asgn, lhs);
16063     return asgn;
16064 }
16065 #else
16066 static VALUE
16067 new_op_assign_gen(struct parser_params *parser, VALUE lhs, VALUE op, VALUE rhs)
16068 {
16069     return dispatch3(opassign, lhs, op, rhs);
16070 }
16071 
16072 static VALUE
16073 new_attr_op_assign_gen(struct parser_params *parser, VALUE lhs, VALUE type, VALUE attr, VALUE op, VALUE rhs)
16074 {
16075     VALUE recv = dispatch3(field, lhs, type, attr);
16076     return dispatch3(opassign, recv, op, rhs);
16077 }
16078 #endif
16079 
16080 static void
16081 warn_unused_var(struct parser_params *parser, struct local_vars *local)
16082 {
16083     int i, cnt;
16084     ID *v, *u;
16085 
16086     if (!local->used) return;
16087     v = local->vars->tbl;
16088     u = local->used->tbl;
16089     cnt = local->used->pos;
16090     if (cnt != local->vars->pos) {
16091         rb_bug("local->used->pos != local->vars->pos");
16092     }
16093     for (i = 0; i < cnt; ++i) {
16094         if (!v[i] || (u[i] & LVAR_USED)) continue;
16095         if (is_private_local_id(v[i])) continue;
16096         rb_warn4S(ruby_sourcefile, (int)u[i], "assigned but unused variable - %s", rb_id2name(v[i]));
16097     }
16098 }
16099 
16100 static void
16101 local_push_gen(struct parser_params *parser, int inherit_dvars)
16102 {
16103     struct local_vars *local;
16104 
16105     local = ALLOC(struct local_vars);
16106     local->prev = lvtbl;
16107     local->args = vtable_alloc(0);
16108     local->vars = vtable_alloc(inherit_dvars ? DVARS_INHERIT : DVARS_TOPSCOPE);
16109     local->used = !(inherit_dvars &&
16110                     (ifndef_ripper(compile_for_eval || e_option_supplied(parser))+0)) &&
16111         RTEST(ruby_verbose) ? vtable_alloc(0) : 0;
16112     local->cmdargs = cmdarg_stack;
16113     cmdarg_stack = 0;
16114     lvtbl = local;
16115 }
16116 
16117 static void
16118 local_pop_gen(struct parser_params *parser)
16119 {
16120     struct local_vars *local = lvtbl->prev;
16121     if (lvtbl->used) {
16122         warn_unused_var(parser, lvtbl);
16123         vtable_free(lvtbl->used);
16124     }
16125     vtable_free(lvtbl->args);
16126     vtable_free(lvtbl->vars);
16127     cmdarg_stack = lvtbl->cmdargs;
16128     xfree(lvtbl);
16129     lvtbl = local;
16130 }
16131 
16132 #ifndef RIPPER
16133 static ID*
16134 vtable_tblcpy(ID *buf, const struct vtable *src)
16135 {
16136     int i, cnt = vtable_size(src);
16137 
16138     if (cnt > 0) {
16139         buf[0] = cnt;
16140         for (i = 0; i < cnt; i++) {
16141             buf[i] = src->tbl[i];
16142         }
16143         return buf;
16144     }
16145     return 0;
16146 }
16147 
16148 static ID*
16149 local_tbl_gen(struct parser_params *parser)
16150 {
16151     int cnt = vtable_size(lvtbl->args) + vtable_size(lvtbl->vars);
16152     ID *buf;
16153 
16154     if (cnt <= 0) return 0;
16155     buf = ALLOC_N(ID, cnt + 1);
16156     vtable_tblcpy(buf+1, lvtbl->args);
16157     vtable_tblcpy(buf+vtable_size(lvtbl->args)+1, lvtbl->vars);
16158     buf[0] = cnt;
16159     return buf;
16160 }
16161 #endif
16162 
16163 static int
16164 arg_var_gen(struct parser_params *parser, ID id)
16165 {
16166     vtable_add(lvtbl->args, id);
16167     return vtable_size(lvtbl->args) - 1;
16168 }
16169 
16170 static int
16171 local_var_gen(struct parser_params *parser, ID id)
16172 {
16173     vtable_add(lvtbl->vars, id);
16174     if (lvtbl->used) {
16175         vtable_add(lvtbl->used, (ID)ruby_sourceline);
16176     }
16177     return vtable_size(lvtbl->vars) - 1;
16178 }
16179 
16180 static int
16181 local_id_gen(struct parser_params *parser, ID id)
16182 {
16183     struct vtable *vars, *args, *used;
16184 
16185     vars = lvtbl->vars;
16186     args = lvtbl->args;
16187     used = lvtbl->used;
16188 
16189     while (vars && POINTER_P(vars->prev)) {
16190         vars = vars->prev;
16191         args = args->prev;
16192         if (used) used = used->prev;
16193     }
16194 
16195     if (vars && vars->prev == DVARS_INHERIT) {
16196         return rb_local_defined(id);
16197     }
16198     else if (vtable_included(args, id)) {
16199         return 1;
16200     }
16201     else {
16202         int i = vtable_included(vars, id);
16203         if (i && used) used->tbl[i-1] |= LVAR_USED;
16204         return i != 0;
16205     }
16206 }
16207 
16208 static const struct vtable *
16209 dyna_push_gen(struct parser_params *parser)
16210 {
16211     lvtbl->args = vtable_alloc(lvtbl->args);
16212     lvtbl->vars = vtable_alloc(lvtbl->vars);
16213     if (lvtbl->used) {
16214         lvtbl->used = vtable_alloc(lvtbl->used);
16215     }
16216     return lvtbl->args;
16217 }
16218 
16219 static void
16220 dyna_pop_1(struct parser_params *parser)
16221 {
16222     struct vtable *tmp;
16223 
16224     if ((tmp = lvtbl->used) != 0) {
16225         warn_unused_var(parser, lvtbl);
16226         lvtbl->used = lvtbl->used->prev;
16227         vtable_free(tmp);
16228     }
16229     tmp = lvtbl->args;
16230     lvtbl->args = lvtbl->args->prev;
16231     vtable_free(tmp);
16232     tmp = lvtbl->vars;
16233     lvtbl->vars = lvtbl->vars->prev;
16234     vtable_free(tmp);
16235 }
16236 
16237 static void
16238 dyna_pop_gen(struct parser_params *parser, const struct vtable *lvargs)
16239 {
16240     while (lvtbl->args != lvargs) {
16241         dyna_pop_1(parser);
16242         if (!lvtbl->args) {
16243             struct local_vars *local = lvtbl->prev;
16244             xfree(lvtbl);
16245             lvtbl = local;
16246         }
16247     }
16248     dyna_pop_1(parser);
16249 }
16250 
16251 static int
16252 dyna_in_block_gen(struct parser_params *parser)
16253 {
16254     return POINTER_P(lvtbl->vars) && lvtbl->vars->prev != DVARS_TOPSCOPE;
16255 }
16256 
16257 static int
16258 dvar_defined_gen(struct parser_params *parser, ID id, int get)
16259 {
16260     struct vtable *vars, *args, *used;
16261     int i;
16262 
16263     args = lvtbl->args;
16264     vars = lvtbl->vars;
16265     used = lvtbl->used;
16266 
16267     while (POINTER_P(vars)) {
16268         if (vtable_included(args, id)) {
16269             return 1;
16270         }
16271         if ((i = vtable_included(vars, id)) != 0) {
16272             if (used) used->tbl[i-1] |= LVAR_USED;
16273             return 1;
16274         }
16275         args = args->prev;
16276         vars = vars->prev;
16277         if (get) used = 0;
16278         if (used) used = used->prev;
16279     }
16280 
16281     if (vars == DVARS_INHERIT) {
16282         return rb_dvar_defined(id);
16283     }
16284 
16285     return 0;
16286 }
16287 
16288 static int
16289 dvar_curr_gen(struct parser_params *parser, ID id)
16290 {
16291     return (vtable_included(lvtbl->args, id) ||
16292             vtable_included(lvtbl->vars, id));
16293 }
16294 
16295 #ifndef RIPPER
16296 static void
16297 reg_fragment_setenc_gen(struct parser_params* parser, VALUE str, int options)
16298 {
16299     int c = RE_OPTION_ENCODING_IDX(options);
16300 
16301     if (c) {
16302         int opt, idx;
16303         rb_char_to_option_kcode(c, &opt, &idx);
16304         if (idx != ENCODING_GET(str) &&
16305             rb_enc_str_coderange(str) != ENC_CODERANGE_7BIT) {
16306             goto error;
16307         }
16308         ENCODING_SET(str, idx);
16309     }
16310     else if (RE_OPTION_ENCODING_NONE(options)) {
16311         if (!ENCODING_IS_ASCII8BIT(str) &&
16312             rb_enc_str_coderange(str) != ENC_CODERANGE_7BIT) {
16313             c = 'n';
16314             goto error;
16315         }
16316         rb_enc_associate(str, rb_ascii8bit_encoding());
16317     }
16318     else if (current_enc == rb_usascii_encoding()) {
16319         if (rb_enc_str_coderange(str) != ENC_CODERANGE_7BIT) {
16320             /* raise in re.c */
16321             rb_enc_associate(str, rb_usascii_encoding());
16322         }
16323         else {
16324             rb_enc_associate(str, rb_ascii8bit_encoding());
16325         }
16326     }
16327     return;
16328 
16329   error:
16330     compile_error(PARSER_ARG
16331         "regexp encoding option '%c' differs from source encoding '%s'",
16332         c, rb_enc_name(rb_enc_get(str)));
16333 }
16334 
16335 static int
16336 reg_fragment_check_gen(struct parser_params* parser, VALUE str, int options)
16337 {
16338     VALUE err;
16339     reg_fragment_setenc(str, options);
16340     err = rb_reg_check_preprocess(str);
16341     if (err != Qnil) {
16342         err = rb_obj_as_string(err);
16343         compile_error(PARSER_ARG "%s", RSTRING_PTR(err));
16344         RB_GC_GUARD(err);
16345         return 0;
16346     }
16347     return 1;
16348 }
16349 
16350 typedef struct {
16351     struct parser_params* parser;
16352     rb_encoding *enc;
16353     NODE *succ_block;
16354     NODE *fail_block;
16355     int num;
16356 } reg_named_capture_assign_t;
16357 
16358 static int
16359 reg_named_capture_assign_iter(const OnigUChar *name, const OnigUChar *name_end,
16360           int back_num, int *back_refs, OnigRegex regex, void *arg0)
16361 {
16362     reg_named_capture_assign_t *arg = (reg_named_capture_assign_t*)arg0;
16363     struct parser_params* parser = arg->parser;
16364     rb_encoding *enc = arg->enc;
16365     long len = name_end - name;
16366     const char *s = (const char *)name;
16367     ID var;
16368 
16369     arg->num++;
16370 
16371     if (arg->succ_block == 0) {
16372         arg->succ_block = NEW_BEGIN(0);
16373         arg->fail_block = NEW_BEGIN(0);
16374     }
16375 
16376     if (!len || (*name != '_' && ISASCII(*name) && !rb_enc_islower(*name, enc)) ||
16377         (len < MAX_WORD_LENGTH && rb_reserved_word(s, (int)len)) ||
16378         !rb_enc_symname2_p(s, len, enc)) {
16379         return ST_CONTINUE;
16380     }
16381     var = rb_intern3(s, len, enc);
16382     if (dvar_defined(var) || local_id(var)) {
16383         rb_warningS("named capture conflicts a local variable - %s",
16384                     rb_id2name(var));
16385     }
16386     arg->succ_block = block_append(arg->succ_block,
16387         newline_node(node_assign(assignable(var,0),
16388             NEW_CALL(
16389               gettable(rb_intern("$~")),
16390               idAREF,
16391               NEW_LIST(NEW_LIT(ID2SYM(var))))
16392             )));
16393     arg->fail_block = block_append(arg->fail_block,
16394         newline_node(node_assign(assignable(var,0), NEW_LIT(Qnil))));
16395     return ST_CONTINUE;
16396 }
16397 
16398 static NODE *
16399 reg_named_capture_assign_gen(struct parser_params* parser, VALUE regexp, NODE *match)
16400 {
16401     reg_named_capture_assign_t arg;
16402 
16403     arg.parser = parser;
16404     arg.enc = rb_enc_get(regexp);
16405     arg.succ_block = 0;
16406     arg.fail_block = 0;
16407     arg.num = 0;
16408     onig_foreach_name(RREGEXP(regexp)->ptr, reg_named_capture_assign_iter, (void*)&arg);
16409 
16410     if (arg.num == 0)
16411         return match;
16412 
16413     return
16414         block_append(
16415             newline_node(match),
16416             NEW_IF(gettable(rb_intern("$~")),
16417                 block_append(
16418                     newline_node(arg.succ_block),
16419                     newline_node(
16420                         NEW_CALL(
16421                           gettable(rb_intern("$~")),
16422                           rb_intern("begin"),
16423                           NEW_LIST(NEW_LIT(INT2FIX(0)))))),
16424                 block_append(
16425                     newline_node(arg.fail_block),
16426                     newline_node(
16427                         NEW_LIT(Qnil)))));
16428 }
16429 
16430 static VALUE
16431 reg_compile_gen(struct parser_params* parser, VALUE str, int options)
16432 {
16433     VALUE re;
16434     VALUE err;
16435 
16436     reg_fragment_setenc(str, options);
16437     err = rb_errinfo();
16438     re = rb_reg_compile(str, options & RE_OPTION_MASK, ruby_sourcefile, ruby_sourceline);
16439     if (NIL_P(re)) {
16440         ID mesg = rb_intern("mesg");
16441         VALUE m = rb_attr_get(rb_errinfo(), mesg);
16442         rb_set_errinfo(err);
16443         if (!NIL_P(err)) {
16444             rb_str_append(rb_str_cat(rb_attr_get(err, mesg), "\n", 1), m);
16445         }
16446         else {
16447             compile_error(PARSER_ARG "%s", RSTRING_PTR(m));
16448         }
16449         return Qnil;
16450     }
16451     return re;
16452 }
16453 
16454 void
16455 rb_gc_mark_parser(void)
16456 {
16457 }
16458 
16459 NODE*
16460 rb_parser_append_print(VALUE vparser, NODE *node)
16461 {
16462     NODE *prelude = 0;
16463     NODE *scope = node;
16464     struct parser_params *parser;
16465 
16466     if (!node) return node;
16467 
16468     TypedData_Get_Struct(vparser, struct parser_params, &parser_data_type, parser);
16469 
16470     node = node->nd_body;
16471 
16472     if (nd_type(node) == NODE_PRELUDE) {
16473         prelude = node;
16474         node = node->nd_body;
16475     }
16476 
16477     node = block_append(node,
16478                         NEW_FCALL(rb_intern("print"),
16479                                   NEW_ARRAY(NEW_GVAR(rb_intern("$_")))));
16480     if (prelude) {
16481         prelude->nd_body = node;
16482         scope->nd_body = prelude;
16483     }
16484     else {
16485         scope->nd_body = node;
16486     }
16487 
16488     return scope;
16489 }
16490 
16491 NODE *
16492 rb_parser_while_loop(VALUE vparser, NODE *node, int chop, int split)
16493 {
16494     NODE *prelude = 0;
16495     NODE *scope = node;
16496     struct parser_params *parser;
16497 
16498     if (!node) return node;
16499 
16500     TypedData_Get_Struct(vparser, struct parser_params, &parser_data_type, parser);
16501 
16502     node = node->nd_body;
16503 
16504     if (nd_type(node) == NODE_PRELUDE) {
16505         prelude = node;
16506         node = node->nd_body;
16507     }
16508     if (split) {
16509         node = block_append(NEW_GASGN(rb_intern("$F"),
16510                                       NEW_CALL(NEW_GVAR(rb_intern("$_")),
16511                                                rb_intern("split"), 0)),
16512                             node);
16513     }
16514     if (chop) {
16515         node = block_append(NEW_CALL(NEW_GVAR(rb_intern("$_")),
16516                                      rb_intern("chop!"), 0), node);
16517     }
16518 
16519     node = NEW_OPT_N(node);
16520 
16521     if (prelude) {
16522         prelude->nd_body = node;
16523         scope->nd_body = prelude;
16524     }
16525     else {
16526         scope->nd_body = node;
16527     }
16528 
16529     return scope;
16530 }
16531 
16532 static const struct {
16533     ID token;
16534     const char *name;
16535 } op_tbl[] = {
16536     {tDOT2,     ".."},
16537     {tDOT3,     "..."},
16538     {tPOW,      "**"},
16539     {tDSTAR,    "**"},
16540     {tUPLUS,    "+@"},
16541     {tUMINUS,   "-@"},
16542     {tCMP,      "<=>"},
16543     {tGEQ,      ">="},
16544     {tLEQ,      "<="},
16545     {tEQ,       "=="},
16546     {tEQQ,      "==="},
16547     {tNEQ,      "!="},
16548     {tMATCH,    "=~"},
16549     {tNMATCH,   "!~"},
16550     {tAREF,     "[]"},
16551     {tASET,     "[]="},
16552     {tLSHFT,    "<<"},
16553     {tRSHFT,    ">>"},
16554     {tCOLON2,   "::"},
16555 };
16556 
16557 #define op_tbl_count numberof(op_tbl)
16558 
16559 #ifndef ENABLE_SELECTOR_NAMESPACE
16560 #define ENABLE_SELECTOR_NAMESPACE 0
16561 #endif
16562 
16563 static struct symbols {
16564     ID last_id;
16565     st_table *sym_id;
16566     st_table *id_str;
16567 #if ENABLE_SELECTOR_NAMESPACE
16568     st_table *ivar2_id;
16569     st_table *id_ivar2;
16570 #endif
16571     VALUE op_sym[tLAST_OP_ID];
16572 } global_symbols = {tLAST_TOKEN};
16573 
16574 static const struct st_hash_type symhash = {
16575     rb_str_hash_cmp,
16576     rb_str_hash,
16577 };
16578 
16579 #if ENABLE_SELECTOR_NAMESPACE
16580 struct ivar2_key {
16581     ID id;
16582     VALUE klass;
16583 };
16584 
16585 static int
16586 ivar2_cmp(struct ivar2_key *key1, struct ivar2_key *key2)
16587 {
16588     if (key1->id == key2->id && key1->klass == key2->klass) {
16589         return 0;
16590     }
16591     return 1;
16592 }
16593 
16594 static int
16595 ivar2_hash(struct ivar2_key *key)
16596 {
16597     return (key->id << 8) ^ (key->klass >> 2);
16598 }
16599 
16600 static const struct st_hash_type ivar2_hash_type = {
16601     ivar2_cmp,
16602     ivar2_hash,
16603 };
16604 #endif
16605 
16606 void
16607 Init_sym(void)
16608 {
16609     global_symbols.sym_id = st_init_table_with_size(&symhash, 1000);
16610     global_symbols.id_str = st_init_numtable_with_size(1000);
16611 #if ENABLE_SELECTOR_NAMESPACE
16612     global_symbols.ivar2_id = st_init_table_with_size(&ivar2_hash_type, 1000);
16613     global_symbols.id_ivar2 = st_init_numtable_with_size(1000);
16614 #endif
16615 
16616     (void)nodetype;
16617     (void)nodeline;
16618 #if PARSER_DEBUG
16619     (void)lex_state_name(-1);
16620 #endif
16621 
16622     Init_id();
16623 }
16624 
16625 void
16626 rb_gc_mark_symbols(void)
16627 {
16628     rb_mark_tbl(global_symbols.id_str);
16629     rb_gc_mark_locations(global_symbols.op_sym,
16630                          global_symbols.op_sym + numberof(global_symbols.op_sym));
16631 }
16632 #endif /* !RIPPER */
16633 
16634 static ID
16635 internal_id_gen(struct parser_params *parser)
16636 {
16637     ID id = (ID)vtable_size(lvtbl->args) + (ID)vtable_size(lvtbl->vars);
16638     id += ((tLAST_TOKEN - ID_INTERNAL) >> ID_SCOPE_SHIFT) + 1;
16639     return ID_INTERNAL | (id << ID_SCOPE_SHIFT);
16640 }
16641 
16642 #ifndef RIPPER
16643 static int
16644 is_special_global_name(const char *m, const char *e, rb_encoding *enc)
16645 {
16646     int mb = 0;
16647 
16648     if (m >= e) return 0;
16649     if (is_global_name_punct(*m)) {
16650         ++m;
16651     }
16652     else if (*m == '-') {
16653         ++m;
16654         if (m < e && is_identchar(m, e, enc)) {
16655             if (!ISASCII(*m)) mb = 1;
16656             m += rb_enc_mbclen(m, e, enc);
16657         }
16658     }
16659     else {
16660         if (!rb_enc_isdigit(*m, enc)) return 0;
16661         do {
16662             if (!ISASCII(*m)) mb = 1;
16663             ++m;
16664         } while (m < e && rb_enc_isdigit(*m, enc));
16665     }
16666     return m == e ? mb + 1 : 0;
16667 }
16668 
16669 int
16670 rb_symname_p(const char *name)
16671 {
16672     return rb_enc_symname_p(name, rb_ascii8bit_encoding());
16673 }
16674 
16675 int
16676 rb_enc_symname_p(const char *name, rb_encoding *enc)
16677 {
16678     return rb_enc_symname2_p(name, strlen(name), enc);
16679 }
16680 
16681 #define IDSET_ATTRSET_FOR_SYNTAX ((1U<<ID_LOCAL)|(1U<<ID_CONST))
16682 #define IDSET_ATTRSET_FOR_INTERN (~(~0U<<(1<<ID_SCOPE_SHIFT)) & ~(1U<<ID_ATTRSET))
16683 
16684 static int
16685 rb_enc_symname_type(const char *name, long len, rb_encoding *enc, unsigned int allowed_atttset)
16686 {
16687     const char *m = name;
16688     const char *e = m + len;
16689     int type = ID_JUNK;
16690 
16691     if (!m || len <= 0) return -1;
16692     switch (*m) {
16693       case '\0':
16694         return -1;
16695 
16696       case '$':
16697         type = ID_GLOBAL;
16698         if (is_special_global_name(++m, e, enc)) return type;
16699         goto id;
16700 
16701       case '@':
16702         type = ID_INSTANCE;
16703         if (*++m == '@') {
16704             ++m;
16705             type = ID_CLASS;
16706         }
16707         goto id;
16708 
16709       case '<':
16710         switch (*++m) {
16711           case '<': ++m; break;
16712           case '=': if (*++m == '>') ++m; break;
16713           default: break;
16714         }
16715         break;
16716 
16717       case '>':
16718         switch (*++m) {
16719           case '>': case '=': ++m; break;
16720         }
16721         break;
16722 
16723       case '=':
16724         switch (*++m) {
16725           case '~': ++m; break;
16726           case '=': if (*++m == '=') ++m; break;
16727           default: return -1;
16728         }
16729         break;
16730 
16731       case '*':
16732         if (*++m == '*') ++m;
16733         break;
16734 
16735       case '+': case '-':
16736         if (*++m == '@') ++m;
16737         break;
16738 
16739       case '|': case '^': case '&': case '/': case '%': case '~': case '`':
16740         ++m;
16741         break;
16742 
16743       case '[':
16744         if (*++m != ']') return -1;
16745         if (*++m == '=') ++m;
16746         break;
16747 
16748       case '!':
16749         if (len == 1) return ID_JUNK;
16750         switch (*++m) {
16751           case '=': case '~': ++m; break;
16752           default: return -1;
16753         }
16754         break;
16755 
16756       default:
16757         type = rb_enc_isupper(*m, enc) ? ID_CONST : ID_LOCAL;
16758       id:
16759         if (m >= e || (*m != '_' && !rb_enc_isalpha(*m, enc) && ISASCII(*m)))
16760             return -1;
16761         while (m < e && is_identchar(m, e, enc)) m += rb_enc_mbclen(m, e, enc);
16762         if (m >= e) break;
16763         switch (*m) {
16764           case '!': case '?':
16765             if (type == ID_GLOBAL || type == ID_CLASS || type == ID_INSTANCE) return -1;
16766             type = ID_JUNK;
16767             ++m;
16768             if (m + 1 < e || *m != '=') break;
16769             /* fall through */
16770           case '=':
16771             if (!(allowed_atttset & (1U << type))) return -1;
16772             type = ID_ATTRSET;
16773             ++m;
16774             break;
16775         }
16776         break;
16777     }
16778     return m == e ? type : -1;
16779 }
16780 
16781 int
16782 rb_enc_symname2_p(const char *name, long len, rb_encoding *enc)
16783 {
16784     return rb_enc_symname_type(name, len, enc, IDSET_ATTRSET_FOR_SYNTAX) != -1;
16785 }
16786 
16787 static int
16788 rb_str_symname_type(VALUE name, unsigned int allowed_atttset)
16789 {
16790     const char *ptr = StringValuePtr(name);
16791     long len = RSTRING_LEN(name);
16792     int type = rb_enc_symname_type(ptr, len, rb_enc_get(name), allowed_atttset);
16793     RB_GC_GUARD(name);
16794     return type;
16795 }
16796 
16797 static ID
16798 register_symid(ID id, const char *name, long len, rb_encoding *enc)
16799 {
16800     VALUE str = rb_enc_str_new(name, len, enc);
16801     return register_symid_str(id, str);
16802 }
16803 
16804 static ID
16805 register_symid_str(ID id, VALUE str)
16806 {
16807     OBJ_FREEZE(str);
16808     st_add_direct(global_symbols.sym_id, (st_data_t)str, id);
16809     st_add_direct(global_symbols.id_str, id, (st_data_t)str);
16810     return id;
16811 }
16812 
16813 static int
16814 sym_check_asciionly(VALUE str)
16815 {
16816     if (!rb_enc_asciicompat(rb_enc_get(str))) return FALSE;
16817     switch (rb_enc_str_coderange(str)) {
16818       case ENC_CODERANGE_BROKEN:
16819         rb_raise(rb_eEncodingError, "invalid encoding symbol");
16820       case ENC_CODERANGE_7BIT:
16821         return TRUE;
16822     }
16823     return FALSE;
16824 }
16825 
16826 /*
16827  * _str_ itself will be registered at the global symbol table.  _str_
16828  * can be modified before the registration, since the encoding will be
16829  * set to ASCII-8BIT if it is a special global name.
16830  */
16831 static ID intern_str(VALUE str);
16832 
16833 ID
16834 rb_intern3(const char *name, long len, rb_encoding *enc)
16835 {
16836     VALUE str;
16837     st_data_t data;
16838     struct RString fake_str;
16839     fake_str.basic.flags = T_STRING|RSTRING_NOEMBED;
16840     fake_str.basic.klass = rb_cString;
16841     fake_str.as.heap.len = len;
16842     fake_str.as.heap.ptr = (char *)name;
16843     fake_str.as.heap.aux.capa = len;
16844     str = (VALUE)&fake_str;
16845     rb_enc_associate(str, enc);
16846     OBJ_FREEZE(str);
16847 
16848     if (st_lookup(global_symbols.sym_id, str, &data))
16849         return (ID)data;
16850 
16851     str = rb_enc_str_new(name, len, enc); /* make true string */
16852     return intern_str(str);
16853 }
16854 
16855 static ID
16856 intern_str(VALUE str)
16857 {
16858     const char *name, *m, *e;
16859     long len, last;
16860     rb_encoding *enc, *symenc;
16861     unsigned char c;
16862     ID id;
16863     int mb;
16864 
16865     RSTRING_GETMEM(str, name, len);
16866     m = name;
16867     e = m + len;
16868     enc = rb_enc_get(str);
16869     symenc = enc;
16870 
16871     if (!len || (rb_cString && !rb_enc_asciicompat(enc))) {
16872       junk:
16873         id = ID_JUNK;
16874         goto new_id;
16875     }
16876     last = len-1;
16877     id = 0;
16878     switch (*m) {
16879       case '$':
16880         if (len < 2) goto junk;
16881         id |= ID_GLOBAL;
16882         if ((mb = is_special_global_name(++m, e, enc)) != 0) {
16883             if (!--mb) symenc = rb_usascii_encoding();
16884             goto new_id;
16885         }
16886         break;
16887       case '@':
16888         if (m[1] == '@') {
16889             if (len < 3) goto junk;
16890             m++;
16891             id |= ID_CLASS;
16892         }
16893         else {
16894             if (len < 2) goto junk;
16895             id |= ID_INSTANCE;
16896         }
16897         m++;
16898         break;
16899       default:
16900         c = m[0];
16901         if (c != '_' && rb_enc_isascii(c, enc) && rb_enc_ispunct(c, enc)) {
16902             /* operators */
16903             int i;
16904 
16905             if (len == 1) {
16906                 id = c;
16907                 goto id_register;
16908             }
16909             for (i = 0; i < op_tbl_count; i++) {
16910                 if (*op_tbl[i].name == *m &&
16911                     strcmp(op_tbl[i].name, m) == 0) {
16912                     id = op_tbl[i].token;
16913                     goto id_register;
16914                 }
16915             }
16916         }
16917         break;
16918     }
16919     if (name[last] == '=') {
16920         /* attribute assignment */
16921         if (last > 1 && name[last-1] == '=')
16922             goto junk;
16923         id = rb_intern3(name, last, enc);
16924         if (id > tLAST_OP_ID && !is_attrset_id(id)) {
16925             enc = rb_enc_get(rb_id2str(id));
16926             id = rb_id_attrset(id);
16927             goto id_register;
16928         }
16929         id = ID_ATTRSET;
16930     }
16931     else if (id == 0) {
16932         if (rb_enc_isupper(m[0], enc)) {
16933             id = ID_CONST;
16934         }
16935         else {
16936             id = ID_LOCAL;
16937         }
16938     }
16939     if (!rb_enc_isdigit(*m, enc)) {
16940         while (m <= name + last && is_identchar(m, e, enc)) {
16941             if (ISASCII(*m)) {
16942                 m++;
16943             }
16944             else {
16945                 m += rb_enc_mbclen(m, e, enc);
16946             }
16947         }
16948     }
16949     if (id != ID_ATTRSET && m - name < len) id = ID_JUNK;
16950     if (sym_check_asciionly(str)) symenc = rb_usascii_encoding();
16951   new_id:
16952     if (symenc != enc) rb_enc_associate(str, symenc);
16953     if (global_symbols.last_id >= ~(ID)0 >> (ID_SCOPE_SHIFT+RUBY_SPECIAL_SHIFT)) {
16954         if (len > 20) {
16955             rb_raise(rb_eRuntimeError, "symbol table overflow (symbol %.20s...)",
16956                      name);
16957         }
16958         else {
16959             rb_raise(rb_eRuntimeError, "symbol table overflow (symbol %.*s)",
16960                      (int)len, name);
16961         }
16962     }
16963     id |= ++global_symbols.last_id << ID_SCOPE_SHIFT;
16964   id_register:
16965     return register_symid_str(id, str);
16966 }
16967 
16968 ID
16969 rb_intern2(const char *name, long len)
16970 {
16971     return rb_intern3(name, len, rb_usascii_encoding());
16972 }
16973 
16974 #undef rb_intern
16975 ID
16976 rb_intern(const char *name)
16977 {
16978     return rb_intern2(name, strlen(name));
16979 }
16980 
16981 ID
16982 rb_intern_str(VALUE str)
16983 {
16984     st_data_t id;
16985 
16986     if (st_lookup(global_symbols.sym_id, str, &id))
16987         return (ID)id;
16988     return intern_str(rb_str_dup(str));
16989 }
16990 
16991 VALUE
16992 rb_id2str(ID id)
16993 {
16994     st_data_t data;
16995 
16996     if (id < tLAST_TOKEN) {
16997         int i = 0;
16998 
16999         if (id < INT_MAX && rb_ispunct((int)id)) {
17000             VALUE str = global_symbols.op_sym[i = (int)id];
17001             if (!str) {
17002                 char name[2];
17003                 name[0] = (char)id;
17004                 name[1] = 0;
17005                 str = rb_usascii_str_new(name, 1);
17006                 OBJ_FREEZE(str);
17007                 global_symbols.op_sym[i] = str;
17008             }
17009             return str;
17010         }
17011         for (i = 0; i < op_tbl_count; i++) {
17012             if (op_tbl[i].token == id) {
17013                 VALUE str = global_symbols.op_sym[i];
17014                 if (!str) {
17015                     str = rb_usascii_str_new2(op_tbl[i].name);
17016                     OBJ_FREEZE(str);
17017                     global_symbols.op_sym[i] = str;
17018                 }
17019                 return str;
17020             }
17021         }
17022     }
17023 
17024     if (st_lookup(global_symbols.id_str, id, &data)) {
17025         VALUE str = (VALUE)data;
17026         if (RBASIC(str)->klass == 0)
17027             RBASIC(str)->klass = rb_cString;
17028         return str;
17029     }
17030 
17031     if (is_attrset_id(id)) {
17032         ID id_stem = (id & ~ID_SCOPE_MASK);
17033         VALUE str;
17034 
17035         do {
17036             if (!!(str = rb_id2str(id_stem | ID_LOCAL))) break;
17037             if (!!(str = rb_id2str(id_stem | ID_CONST))) break;
17038             if (!!(str = rb_id2str(id_stem | ID_INSTANCE))) break;
17039             if (!!(str = rb_id2str(id_stem | ID_GLOBAL))) break;
17040             if (!!(str = rb_id2str(id_stem | ID_CLASS))) break;
17041             if (!!(str = rb_id2str(id_stem | ID_JUNK))) break;
17042             return 0;
17043         } while (0);
17044         str = rb_str_dup(str);
17045         rb_str_cat(str, "=", 1);
17046         register_symid_str(id, str);
17047         if (st_lookup(global_symbols.id_str, id, &data)) {
17048             VALUE str = (VALUE)data;
17049             if (RBASIC(str)->klass == 0)
17050                 RBASIC(str)->klass = rb_cString;
17051             return str;
17052         }
17053     }
17054     return 0;
17055 }
17056 
17057 const char *
17058 rb_id2name(ID id)
17059 {
17060     VALUE str = rb_id2str(id);
17061 
17062     if (!str) return 0;
17063     return RSTRING_PTR(str);
17064 }
17065 
17066 static int
17067 symbols_i(VALUE sym, ID value, VALUE ary)
17068 {
17069     rb_ary_push(ary, ID2SYM(value));
17070     return ST_CONTINUE;
17071 }
17072 
17073 /*
17074  *  call-seq:
17075  *     Symbol.all_symbols    => array
17076  *
17077  *  Returns an array of all the symbols currently in Ruby's symbol
17078  *  table.
17079  *
17080  *     Symbol.all_symbols.size    #=> 903
17081  *     Symbol.all_symbols[1,20]   #=> [:floor, :ARGV, :Binding, :symlink,
17082  *                                     :chown, :EOFError, :$;, :String,
17083  *                                     :LOCK_SH, :"setuid?", :$<,
17084  *                                     :default_proc, :compact, :extend,
17085  *                                     :Tms, :getwd, :$=, :ThreadGroup,
17086  *                                     :wait2, :$>]
17087  */
17088 
17089 VALUE
17090 rb_sym_all_symbols(void)
17091 {
17092     VALUE ary = rb_ary_new2(global_symbols.sym_id->num_entries);
17093 
17094     st_foreach(global_symbols.sym_id, symbols_i, ary);
17095     return ary;
17096 }
17097 
17098 int
17099 rb_is_const_id(ID id)
17100 {
17101     return is_const_id(id);
17102 }
17103 
17104 int
17105 rb_is_class_id(ID id)
17106 {
17107     return is_class_id(id);
17108 }
17109 
17110 int
17111 rb_is_global_id(ID id)
17112 {
17113     return is_global_id(id);
17114 }
17115 
17116 int
17117 rb_is_instance_id(ID id)
17118 {
17119     return is_instance_id(id);
17120 }
17121 
17122 int
17123 rb_is_attrset_id(ID id)
17124 {
17125     return is_attrset_id(id);
17126 }
17127 
17128 int
17129 rb_is_local_id(ID id)
17130 {
17131     return is_local_id(id);
17132 }
17133 
17134 int
17135 rb_is_junk_id(ID id)
17136 {
17137     return is_junk_id(id);
17138 }
17139 
17151 ID
17152 rb_check_id(volatile VALUE *namep)
17153 {
17154     st_data_t id;
17155     VALUE tmp;
17156     VALUE name = *namep;
17157 
17158     if (SYMBOL_P(name)) {
17159         return SYM2ID(name);
17160     }
17161     else if (!RB_TYPE_P(name, T_STRING)) {
17162         tmp = rb_check_string_type(name);
17163         if (NIL_P(tmp)) {
17164             tmp = rb_inspect(name);
17165             rb_raise(rb_eTypeError, "%s is not a symbol",
17166                      RSTRING_PTR(tmp));
17167         }
17168         name = tmp;
17169         *namep = name;
17170     }
17171 
17172     sym_check_asciionly(name);
17173 
17174     if (st_lookup(global_symbols.sym_id, (st_data_t)name, &id))
17175         return (ID)id;
17176 
17177     if (rb_is_attrset_name(name)) {
17178         struct RString fake_str;
17179         const VALUE localname = (VALUE)&fake_str;
17180         /* make local name by chopping '=' */
17181         fake_str.basic.flags = T_STRING|RSTRING_NOEMBED;
17182         fake_str.basic.klass = rb_cString;
17183         fake_str.as.heap.len = RSTRING_LEN(name) - 1;
17184         fake_str.as.heap.ptr = RSTRING_PTR(name);
17185         fake_str.as.heap.aux.capa = fake_str.as.heap.len;
17186         rb_enc_copy(localname, name);
17187         OBJ_FREEZE(localname);
17188 
17189         if (st_lookup(global_symbols.sym_id, (st_data_t)localname, &id)) {
17190             return rb_id_attrset((ID)id);
17191         }
17192         RB_GC_GUARD(name);
17193     }
17194 
17195     return (ID)0;
17196 }
17197 
17198 ID
17199 rb_check_id_cstr(const char *ptr, long len, rb_encoding *enc)
17200 {
17201     st_data_t id;
17202     struct RString fake_str;
17203     const VALUE name = (VALUE)&fake_str;
17204     fake_str.basic.flags = T_STRING|RSTRING_NOEMBED;
17205     fake_str.basic.klass = rb_cString;
17206     fake_str.as.heap.len = len;
17207     fake_str.as.heap.ptr = (char *)ptr;
17208     fake_str.as.heap.aux.capa = len;
17209     rb_enc_associate(name, enc);
17210 
17211     sym_check_asciionly(name);
17212 
17213     if (st_lookup(global_symbols.sym_id, (st_data_t)name, &id))
17214         return (ID)id;
17215 
17216     if (rb_is_attrset_name(name)) {
17217         fake_str.as.heap.len = len - 1;
17218         if (st_lookup(global_symbols.sym_id, (st_data_t)name, &id)) {
17219             return rb_id_attrset((ID)id);
17220         }
17221     }
17222 
17223     return (ID)0;
17224 }
17225 
17226 int
17227 rb_is_const_name(VALUE name)
17228 {
17229     return rb_str_symname_type(name, 0) == ID_CONST;
17230 }
17231 
17232 int
17233 rb_is_class_name(VALUE name)
17234 {
17235     return rb_str_symname_type(name, 0) == ID_CLASS;
17236 }
17237 
17238 int
17239 rb_is_global_name(VALUE name)
17240 {
17241     return rb_str_symname_type(name, 0) == ID_GLOBAL;
17242 }
17243 
17244 int
17245 rb_is_instance_name(VALUE name)
17246 {
17247     return rb_str_symname_type(name, 0) == ID_INSTANCE;
17248 }
17249 
17250 int
17251 rb_is_attrset_name(VALUE name)
17252 {
17253     return rb_str_symname_type(name, IDSET_ATTRSET_FOR_INTERN) == ID_ATTRSET;
17254 }
17255 
17256 int
17257 rb_is_local_name(VALUE name)
17258 {
17259     return rb_str_symname_type(name, 0) == ID_LOCAL;
17260 }
17261 
17262 int
17263 rb_is_method_name(VALUE name)
17264 {
17265     switch (rb_str_symname_type(name, 0)) {
17266       case ID_LOCAL: case ID_ATTRSET: case ID_JUNK:
17267         return TRUE;
17268     }
17269     return FALSE;
17270 }
17271 
17272 int
17273 rb_is_junk_name(VALUE name)
17274 {
17275     return rb_str_symname_type(name, IDSET_ATTRSET_FOR_SYNTAX) == -1;
17276 }
17277 
17278 #endif /* !RIPPER */
17279 
17280 static void
17281 parser_initialize(struct parser_params *parser)
17282 {
17283     parser->eofp = Qfalse;
17284 
17285     parser->parser_lex_strterm = 0;
17286     parser->parser_cond_stack = 0;
17287     parser->parser_cmdarg_stack = 0;
17288     parser->parser_class_nest = 0;
17289     parser->parser_paren_nest = 0;
17290     parser->parser_lpar_beg = 0;
17291     parser->parser_brace_nest = 0;
17292     parser->parser_in_single = 0;
17293     parser->parser_in_def = 0;
17294     parser->parser_in_defined = 0;
17295     parser->parser_compile_for_eval = 0;
17296     parser->parser_cur_mid = 0;
17297     parser->parser_tokenbuf = NULL;
17298     parser->parser_tokidx = 0;
17299     parser->parser_toksiz = 0;
17300     parser->parser_heredoc_end = 0;
17301     parser->parser_command_start = TRUE;
17302     parser->parser_deferred_nodes = 0;
17303     parser->parser_lex_pbeg = 0;
17304     parser->parser_lex_p = 0;
17305     parser->parser_lex_pend = 0;
17306     parser->parser_lvtbl = 0;
17307     parser->parser_ruby__end__seen = 0;
17308     parser->parser_ruby_sourcefile = 0;
17309 #ifndef RIPPER
17310     parser->is_ripper = 0;
17311     parser->parser_eval_tree_begin = 0;
17312     parser->parser_eval_tree = 0;
17313 #else
17314     parser->is_ripper = 1;
17315     parser->parser_ruby_sourcefile_string = Qnil;
17316     parser->delayed = Qnil;
17317 
17318     parser->result = Qnil;
17319     parser->parsing_thread = Qnil;
17320     parser->toplevel_p = TRUE;
17321 #endif
17322 #ifdef YYMALLOC
17323     parser->heap = NULL;
17324 #endif
17325     parser->enc = rb_utf8_encoding();
17326 }
17327 
17328 #ifdef RIPPER
17329 #define parser_mark ripper_parser_mark
17330 #define parser_free ripper_parser_free
17331 #endif
17332 
17333 static void
17334 parser_mark(void *ptr)
17335 {
17336     struct parser_params *p = (struct parser_params*)ptr;
17337 
17338     rb_gc_mark((VALUE)p->parser_lex_strterm);
17339     rb_gc_mark((VALUE)p->parser_deferred_nodes);
17340     rb_gc_mark(p->parser_lex_input);
17341     rb_gc_mark(p->parser_lex_lastline);
17342     rb_gc_mark(p->parser_lex_nextline);
17343 #ifndef RIPPER
17344     rb_gc_mark((VALUE)p->parser_eval_tree_begin) ;
17345     rb_gc_mark((VALUE)p->parser_eval_tree) ;
17346     rb_gc_mark(p->debug_lines);
17347 #else
17348     rb_gc_mark(p->parser_ruby_sourcefile_string);
17349     rb_gc_mark(p->delayed);
17350     rb_gc_mark(p->value);
17351     rb_gc_mark(p->result);
17352     rb_gc_mark(p->parsing_thread);
17353 #endif
17354 #ifdef YYMALLOC
17355     rb_gc_mark((VALUE)p->heap);
17356 #endif
17357 }
17358 
17359 static void
17360 parser_free(void *ptr)
17361 {
17362     struct parser_params *p = (struct parser_params*)ptr;
17363     struct local_vars *local, *prev;
17364 
17365     if (p->parser_tokenbuf) {
17366         xfree(p->parser_tokenbuf);
17367     }
17368     for (local = p->parser_lvtbl; local; local = prev) {
17369         if (local->vars) xfree(local->vars);
17370         prev = local->prev;
17371         xfree(local);
17372     }
17373 #ifndef RIPPER
17374     xfree(p->parser_ruby_sourcefile);
17375 #endif
17376     xfree(p);
17377 }
17378 
17379 static size_t
17380 parser_memsize(const void *ptr)
17381 {
17382     struct parser_params *p = (struct parser_params*)ptr;
17383     struct local_vars *local;
17384     size_t size = sizeof(*p);
17385 
17386     if (!ptr) return 0;
17387     size += p->parser_toksiz;
17388     for (local = p->parser_lvtbl; local; local = local->prev) {
17389         size += sizeof(*local);
17390         if (local->vars) size += local->vars->capa * sizeof(ID);
17391     }
17392 #ifndef RIPPER
17393     if (p->parser_ruby_sourcefile) {
17394         size += strlen(p->parser_ruby_sourcefile) + 1;
17395     }
17396 #endif
17397     return size;
17398 }
17399 
17400 static
17401 #ifndef RIPPER
17402 const
17403 #endif
17404 rb_data_type_t parser_data_type = {
17405     "parser",
17406     {
17407         parser_mark,
17408         parser_free,
17409         parser_memsize,
17410     },
17411 };
17412 
17413 #ifndef RIPPER
17414 #undef rb_reserved_word
17415 
17416 const struct kwtable *
17417 rb_reserved_word(const char *str, unsigned int len)
17418 {
17419     return reserved_word(str, len);
17420 }
17421 
17422 static struct parser_params *
17423 parser_new(void)
17424 {
17425     struct parser_params *p;
17426 
17427     p = ALLOC_N(struct parser_params, 1);
17428     MEMZERO(p, struct parser_params, 1);
17429     parser_initialize(p);
17430     return p;
17431 }
17432 
17433 VALUE
17434 rb_parser_new(void)
17435 {
17436     struct parser_params *p = parser_new();
17437 
17438     return TypedData_Wrap_Struct(0, &parser_data_type, p);
17439 }
17440 
17441 /*
17442  *  call-seq:
17443  *    ripper#end_seen?   -> Boolean
17444  *
17445  *  Return true if parsed source ended by +\_\_END\_\_+.
17446  */
17447 VALUE
17448 rb_parser_end_seen_p(VALUE vparser)
17449 {
17450     struct parser_params *parser;
17451 
17452     TypedData_Get_Struct(vparser, struct parser_params, &parser_data_type, parser);
17453     return ruby__end__seen ? Qtrue : Qfalse;
17454 }
17455 
17456 /*
17457  *  call-seq:
17458  *    ripper#encoding   -> encoding
17459  *
17460  *  Return encoding of the source.
17461  */
17462 VALUE
17463 rb_parser_encoding(VALUE vparser)
17464 {
17465     struct parser_params *parser;
17466 
17467     TypedData_Get_Struct(vparser, struct parser_params, &parser_data_type, parser);
17468     return rb_enc_from_encoding(current_enc);
17469 }
17470 
17471 /*
17472  *  call-seq:
17473  *    ripper.yydebug   -> true or false
17474  *
17475  *  Get yydebug.
17476  */
17477 VALUE
17478 rb_parser_get_yydebug(VALUE self)
17479 {
17480     struct parser_params *parser;
17481 
17482     TypedData_Get_Struct(self, struct parser_params, &parser_data_type, parser);
17483     return yydebug ? Qtrue : Qfalse;
17484 }
17485 
17486 /*
17487  *  call-seq:
17488  *    ripper.yydebug = flag
17489  *
17490  *  Set yydebug.
17491  */
17492 VALUE
17493 rb_parser_set_yydebug(VALUE self, VALUE flag)
17494 {
17495     struct parser_params *parser;
17496 
17497     TypedData_Get_Struct(self, struct parser_params, &parser_data_type, parser);
17498     yydebug = RTEST(flag);
17499     return flag;
17500 }
17501 
17502 #ifdef YYMALLOC
17503 #define HEAPCNT(n, size) ((n) * (size) / sizeof(YYSTYPE))
17504 #define NEWHEAP() rb_node_newnode(NODE_ALLOCA, 0, (VALUE)parser->heap, 0)
17505 #define ADD2HEAP(n, c, p) ((parser->heap = (n))->u1.node = (p), \
17506                            (n)->u3.cnt = (c), (p))
17507 
17508 void *
17509 rb_parser_malloc(struct parser_params *parser, size_t size)
17510 {
17511     size_t cnt = HEAPCNT(1, size);
17512     NODE *n = NEWHEAP();
17513     void *ptr = xmalloc(size);
17514 
17515     return ADD2HEAP(n, cnt, ptr);
17516 }
17517 
17518 void *
17519 rb_parser_calloc(struct parser_params *parser, size_t nelem, size_t size)
17520 {
17521     size_t cnt = HEAPCNT(nelem, size);
17522     NODE *n = NEWHEAP();
17523     void *ptr = xcalloc(nelem, size);
17524 
17525     return ADD2HEAP(n, cnt, ptr);
17526 }
17527 
17528 void *
17529 rb_parser_realloc(struct parser_params *parser, void *ptr, size_t size)
17530 {
17531     NODE *n;
17532     size_t cnt = HEAPCNT(1, size);
17533 
17534     if (ptr && (n = parser->heap) != NULL) {
17535         do {
17536             if (n->u1.node == ptr) {
17537                 n->u1.node = ptr = xrealloc(ptr, size);
17538                 if (n->u3.cnt) n->u3.cnt = cnt;
17539                 return ptr;
17540             }
17541         } while ((n = n->u2.node) != NULL);
17542     }
17543     n = NEWHEAP();
17544     ptr = xrealloc(ptr, size);
17545     return ADD2HEAP(n, cnt, ptr);
17546 }
17547 
17548 void
17549 rb_parser_free(struct parser_params *parser, void *ptr)
17550 {
17551     NODE **prev = &parser->heap, *n;
17552 
17553     while ((n = *prev) != NULL) {
17554         if (n->u1.node == ptr) {
17555             *prev = n->u2.node;
17556             rb_gc_force_recycle((VALUE)n);
17557             break;
17558         }
17559         prev = &n->u2.node;
17560     }
17561     xfree(ptr);
17562 }
17563 #endif
17564 #endif
17565 
17566 #ifdef RIPPER
17567 #ifdef RIPPER_DEBUG
17568 extern int rb_is_pointer_to_heap(VALUE);
17569 
17570 /* :nodoc: */
17571 static VALUE
17572 ripper_validate_object(VALUE self, VALUE x)
17573 {
17574     if (x == Qfalse) return x;
17575     if (x == Qtrue) return x;
17576     if (x == Qnil) return x;
17577     if (x == Qundef)
17578         rb_raise(rb_eArgError, "Qundef given");
17579     if (FIXNUM_P(x)) return x;
17580     if (SYMBOL_P(x)) return x;
17581     if (!rb_is_pointer_to_heap(x))
17582         rb_raise(rb_eArgError, "invalid pointer: %p", x);
17583     switch (TYPE(x)) {
17584       case T_STRING:
17585       case T_OBJECT:
17586       case T_ARRAY:
17587       case T_BIGNUM:
17588       case T_FLOAT:
17589         return x;
17590       case T_NODE:
17591         if (nd_type(x) != NODE_LASGN) {
17592             rb_raise(rb_eArgError, "NODE given: %p", x);
17593         }
17594         return ((NODE *)x)->nd_rval;
17595       default:
17596         rb_raise(rb_eArgError, "wrong type of ruby object: %p (%s)",
17597                  x, rb_obj_classname(x));
17598     }
17599     return x;
17600 }
17601 #endif
17602 
17603 #define validate(x) ((x) = get_value(x))
17604 
17605 static VALUE
17606 ripper_dispatch0(struct parser_params *parser, ID mid)
17607 {
17608     return rb_funcall(parser->value, mid, 0);
17609 }
17610 
17611 static VALUE
17612 ripper_dispatch1(struct parser_params *parser, ID mid, VALUE a)
17613 {
17614     validate(a);
17615     return rb_funcall(parser->value, mid, 1, a);
17616 }
17617 
17618 static VALUE
17619 ripper_dispatch2(struct parser_params *parser, ID mid, VALUE a, VALUE b)
17620 {
17621     validate(a);
17622     validate(b);
17623     return rb_funcall(parser->value, mid, 2, a, b);
17624 }
17625 
17626 static VALUE
17627 ripper_dispatch3(struct parser_params *parser, ID mid, VALUE a, VALUE b, VALUE c)
17628 {
17629     validate(a);
17630     validate(b);
17631     validate(c);
17632     return rb_funcall(parser->value, mid, 3, a, b, c);
17633 }
17634 
17635 static VALUE
17636 ripper_dispatch4(struct parser_params *parser, ID mid, VALUE a, VALUE b, VALUE c, VALUE d)
17637 {
17638     validate(a);
17639     validate(b);
17640     validate(c);
17641     validate(d);
17642     return rb_funcall(parser->value, mid, 4, a, b, c, d);
17643 }
17644 
17645 static VALUE
17646 ripper_dispatch5(struct parser_params *parser, ID mid, VALUE a, VALUE b, VALUE c, VALUE d, VALUE e)
17647 {
17648     validate(a);
17649     validate(b);
17650     validate(c);
17651     validate(d);
17652     validate(e);
17653     return rb_funcall(parser->value, mid, 5, a, b, c, d, e);
17654 }
17655 
17656 static VALUE
17657 ripper_dispatch7(struct parser_params *parser, ID mid, VALUE a, VALUE b, VALUE c, VALUE d, VALUE e, VALUE f, VALUE g)
17658 {
17659     validate(a);
17660     validate(b);
17661     validate(c);
17662     validate(d);
17663     validate(e);
17664     validate(f);
17665     validate(g);
17666     return rb_funcall(parser->value, mid, 7, a, b, c, d, e, f, g);
17667 }
17668 
17669 static const struct kw_assoc {
17670     ID id;
17671     const char *name;
17672 } keyword_to_name[] = {
17673     {keyword_class,     "class"},
17674     {keyword_module,    "module"},
17675     {keyword_def,       "def"},
17676     {keyword_undef,     "undef"},
17677     {keyword_begin,     "begin"},
17678     {keyword_rescue,    "rescue"},
17679     {keyword_ensure,    "ensure"},
17680     {keyword_end,       "end"},
17681     {keyword_if,        "if"},
17682     {keyword_unless,    "unless"},
17683     {keyword_then,      "then"},
17684     {keyword_elsif,     "elsif"},
17685     {keyword_else,      "else"},
17686     {keyword_case,      "case"},
17687     {keyword_when,      "when"},
17688     {keyword_while,     "while"},
17689     {keyword_until,     "until"},
17690     {keyword_for,       "for"},
17691     {keyword_break,     "break"},
17692     {keyword_next,      "next"},
17693     {keyword_redo,      "redo"},
17694     {keyword_retry,     "retry"},
17695     {keyword_in,        "in"},
17696     {keyword_do,        "do"},
17697     {keyword_do_cond,   "do"},
17698     {keyword_do_block,  "do"},
17699     {keyword_return,    "return"},
17700     {keyword_yield,     "yield"},
17701     {keyword_super,     "super"},
17702     {keyword_self,      "self"},
17703     {keyword_nil,       "nil"},
17704     {keyword_true,      "true"},
17705     {keyword_false,     "false"},
17706     {keyword_and,       "and"},
17707     {keyword_or,        "or"},
17708     {keyword_not,       "not"},
17709     {modifier_if,       "if"},
17710     {modifier_unless,   "unless"},
17711     {modifier_while,    "while"},
17712     {modifier_until,    "until"},
17713     {modifier_rescue,   "rescue"},
17714     {keyword_alias,     "alias"},
17715     {keyword_defined,   "defined?"},
17716     {keyword_BEGIN,     "BEGIN"},
17717     {keyword_END,       "END"},
17718     {keyword__LINE__,   "__LINE__"},
17719     {keyword__FILE__,   "__FILE__"},
17720     {keyword__ENCODING__, "__ENCODING__"},
17721     {0, NULL}
17722 };
17723 
17724 static const char*
17725 keyword_id_to_str(ID id)
17726 {
17727     const struct kw_assoc *a;
17728 
17729     for (a = keyword_to_name; a->id; a++) {
17730         if (a->id == id)
17731             return a->name;
17732     }
17733     return NULL;
17734 }
17735 
17736 #undef ripper_id2sym
17737 static VALUE
17738 ripper_id2sym(ID id)
17739 {
17740     const char *name;
17741     char buf[8];
17742 
17743     if (id <= 256) {
17744         buf[0] = (char)id;
17745         buf[1] = '\0';
17746         return ID2SYM(rb_intern2(buf, 1));
17747     }
17748     if ((name = keyword_id_to_str(id))) {
17749         return ID2SYM(rb_intern(name));
17750     }
17751     switch (id) {
17752       case tOROP:
17753         name = "||";
17754         break;
17755       case tANDOP:
17756         name = "&&";
17757         break;
17758       default:
17759         name = rb_id2name(id);
17760         if (!name) {
17761             rb_bug("cannot convert ID to string: %ld", (unsigned long)id);
17762         }
17763         return ID2SYM(id);
17764     }
17765     return ID2SYM(rb_intern(name));
17766 }
17767 
17768 static ID
17769 ripper_get_id(VALUE v)
17770 {
17771     NODE *nd;
17772     if (!RB_TYPE_P(v, T_NODE)) return 0;
17773     nd = (NODE *)v;
17774     if (nd_type(nd) != NODE_LASGN) return 0;
17775     return nd->nd_vid;
17776 }
17777 
17778 static VALUE
17779 ripper_get_value(VALUE v)
17780 {
17781     NODE *nd;
17782     if (v == Qundef) return Qnil;
17783     if (!RB_TYPE_P(v, T_NODE)) return v;
17784     nd = (NODE *)v;
17785     if (nd_type(nd) != NODE_LASGN) return Qnil;
17786     return nd->nd_rval;
17787 }
17788 
17789 static void
17790 ripper_compile_error(struct parser_params *parser, const char *fmt, ...)
17791 {
17792     VALUE str;
17793     va_list args;
17794 
17795     va_start(args, fmt);
17796     str = rb_vsprintf(fmt, args);
17797     va_end(args);
17798     rb_funcall(parser->value, rb_intern("compile_error"), 1, str);
17799 }
17800 
17801 static void
17802 ripper_warn0(struct parser_params *parser, const char *fmt)
17803 {
17804     rb_funcall(parser->value, rb_intern("warn"), 1, STR_NEW2(fmt));
17805 }
17806 
17807 static void
17808 ripper_warnI(struct parser_params *parser, const char *fmt, int a)
17809 {
17810     rb_funcall(parser->value, rb_intern("warn"), 2,
17811                STR_NEW2(fmt), INT2NUM(a));
17812 }
17813 
17814 static void
17815 ripper_warnS(struct parser_params *parser, const char *fmt, const char *str)
17816 {
17817     rb_funcall(parser->value, rb_intern("warn"), 2,
17818                STR_NEW2(fmt), STR_NEW2(str));
17819 }
17820 
17821 static void
17822 ripper_warning0(struct parser_params *parser, const char *fmt)
17823 {
17824     rb_funcall(parser->value, rb_intern("warning"), 1, STR_NEW2(fmt));
17825 }
17826 
17827 static void
17828 ripper_warningS(struct parser_params *parser, const char *fmt, const char *str)
17829 {
17830     rb_funcall(parser->value, rb_intern("warning"), 2,
17831                STR_NEW2(fmt), STR_NEW2(str));
17832 }
17833 
17834 static VALUE
17835 ripper_lex_get_generic(struct parser_params *parser, VALUE src)
17836 {
17837     return rb_io_gets(src);
17838 }
17839 
17840 static VALUE
17841 ripper_s_allocate(VALUE klass)
17842 {
17843     struct parser_params *p;
17844     VALUE self;
17845 
17846     p = ALLOC_N(struct parser_params, 1);
17847     MEMZERO(p, struct parser_params, 1);
17848     self = TypedData_Wrap_Struct(klass, &parser_data_type, p);
17849     p->value = self;
17850     return self;
17851 }
17852 
17853 #define ripper_initialized_p(r) ((r)->parser_lex_input != 0)
17854 
17855 /*
17856  *  call-seq:
17857  *    Ripper.new(src, filename="(ripper)", lineno=1) -> ripper
17858  *
17859  *  Create a new Ripper object.
17860  *  _src_ must be a String, an IO, or an Object which has #gets method.
17861  *
17862  *  This method does not starts parsing.
17863  *  See also Ripper#parse and Ripper.parse.
17864  */
17865 static VALUE
17866 ripper_initialize(int argc, VALUE *argv, VALUE self)
17867 {
17868     struct parser_params *parser;
17869     VALUE src, fname, lineno;
17870 
17871     TypedData_Get_Struct(self, struct parser_params, &parser_data_type, parser);
17872     rb_scan_args(argc, argv, "12", &src, &fname, &lineno);
17873     if (RB_TYPE_P(src, T_FILE)) {
17874         parser->parser_lex_gets = ripper_lex_get_generic;
17875     }
17876     else {
17877         StringValue(src);
17878         parser->parser_lex_gets = lex_get_str;
17879     }
17880     parser->parser_lex_input = src;
17881     parser->eofp = Qfalse;
17882     if (NIL_P(fname)) {
17883         fname = STR_NEW2("(ripper)");
17884     }
17885     else {
17886         StringValue(fname);
17887     }
17888     parser_initialize(parser);
17889 
17890     parser->parser_ruby_sourcefile_string = fname;
17891     parser->parser_ruby_sourcefile = RSTRING_PTR(fname);
17892     parser->parser_ruby_sourceline = NIL_P(lineno) ? 0 : NUM2INT(lineno) - 1;
17893 
17894     return Qnil;
17895 }
17896 
17897 struct ripper_args {
17898     struct parser_params *parser;
17899     int argc;
17900     VALUE *argv;
17901 };
17902 
17903 static VALUE
17904 ripper_parse0(VALUE parser_v)
17905 {
17906     struct parser_params *parser;
17907 
17908     TypedData_Get_Struct(parser_v, struct parser_params, &parser_data_type, parser);
17909     parser_prepare(parser);
17910     ripper_yyparse((void*)parser);
17911     return parser->result;
17912 }
17913 
17914 static VALUE
17915 ripper_ensure(VALUE parser_v)
17916 {
17917     struct parser_params *parser;
17918 
17919     TypedData_Get_Struct(parser_v, struct parser_params, &parser_data_type, parser);
17920     parser->parsing_thread = Qnil;
17921     return Qnil;
17922 }
17923 
17924 /*
17925  *  call-seq:
17926  *    ripper#parse
17927  *
17928  *  Start parsing and returns the value of the root action.
17929  */
17930 static VALUE
17931 ripper_parse(VALUE self)
17932 {
17933     struct parser_params *parser;
17934 
17935     TypedData_Get_Struct(self, struct parser_params, &parser_data_type, parser);
17936     if (!ripper_initialized_p(parser)) {
17937         rb_raise(rb_eArgError, "method called for uninitialized object");
17938     }
17939     if (!NIL_P(parser->parsing_thread)) {
17940         if (parser->parsing_thread == rb_thread_current())
17941             rb_raise(rb_eArgError, "Ripper#parse is not reentrant");
17942         else
17943             rb_raise(rb_eArgError, "Ripper#parse is not multithread-safe");
17944     }
17945     parser->parsing_thread = rb_thread_current();
17946     rb_ensure(ripper_parse0, self, ripper_ensure, self);
17947 
17948     return parser->result;
17949 }
17950 
17951 /*
17952  *  call-seq:
17953  *    ripper#column   -> Integer
17954  *
17955  *  Return column number of current parsing line.
17956  *  This number starts from 0.
17957  */
17958 static VALUE
17959 ripper_column(VALUE self)
17960 {
17961     struct parser_params *parser;
17962     long col;
17963 
17964     TypedData_Get_Struct(self, struct parser_params, &parser_data_type, parser);
17965     if (!ripper_initialized_p(parser)) {
17966         rb_raise(rb_eArgError, "method called for uninitialized object");
17967     }
17968     if (NIL_P(parser->parsing_thread)) return Qnil;
17969     col = parser->tokp - parser->parser_lex_pbeg;
17970     return LONG2NUM(col);
17971 }
17972 
17973 /*
17974  *  call-seq:
17975  *    ripper#filename   -> String
17976  *
17977  *  Return current parsing filename.
17978  */
17979 static VALUE
17980 ripper_filename(VALUE self)
17981 {
17982     struct parser_params *parser;
17983 
17984     TypedData_Get_Struct(self, struct parser_params, &parser_data_type, parser);
17985     if (!ripper_initialized_p(parser)) {
17986         rb_raise(rb_eArgError, "method called for uninitialized object");
17987     }
17988     return parser->parser_ruby_sourcefile_string;
17989 }
17990 
17991 /*
17992  *  call-seq:
17993  *    ripper#lineno   -> Integer
17994  *
17995  *  Return line number of current parsing line.
17996  *  This number starts from 1.
17997  */
17998 static VALUE
17999 ripper_lineno(VALUE self)
18000 {
18001     struct parser_params *parser;
18002 
18003     TypedData_Get_Struct(self, struct parser_params, &parser_data_type, parser);
18004     if (!ripper_initialized_p(parser)) {
18005         rb_raise(rb_eArgError, "method called for uninitialized object");
18006     }
18007     if (NIL_P(parser->parsing_thread)) return Qnil;
18008     return INT2NUM(parser->parser_ruby_sourceline);
18009 }
18010 
18011 #ifdef RIPPER_DEBUG
18012 /* :nodoc: */
18013 static VALUE
18014 ripper_assert_Qundef(VALUE self, VALUE obj, VALUE msg)
18015 {
18016     StringValue(msg);
18017     if (obj == Qundef) {
18018         rb_raise(rb_eArgError, "%s", RSTRING_PTR(msg));
18019     }
18020     return Qnil;
18021 }
18022 
18023 /* :nodoc: */
18024 static VALUE
18025 ripper_value(VALUE self, VALUE obj)
18026 {
18027     return ULONG2NUM(obj);
18028 }
18029 #endif
18030 
18031 
18032 void
18033 Init_ripper(void)
18034 {
18035     parser_data_type.parent = RTYPEDDATA_TYPE(rb_parser_new());
18036 
18037     ripper_init_eventids1();
18038     ripper_init_eventids2();
18039     /* ensure existing in symbol table */
18040     (void)rb_intern("||");
18041     (void)rb_intern("&&");
18042 
18043     InitVM(ripper);
18044 }
18045 
18046 void
18047 InitVM_ripper(void)
18048 {
18049     VALUE Ripper;
18050 
18051     Ripper = rb_define_class("Ripper", rb_cObject);
18052     rb_define_const(Ripper, "Version", rb_usascii_str_new2(RIPPER_VERSION));
18053     rb_define_alloc_func(Ripper, ripper_s_allocate);
18054     rb_define_method(Ripper, "initialize", ripper_initialize, -1);
18055     rb_define_method(Ripper, "parse", ripper_parse, 0);
18056     rb_define_method(Ripper, "column", ripper_column, 0);
18057     rb_define_method(Ripper, "filename", ripper_filename, 0);
18058     rb_define_method(Ripper, "lineno", ripper_lineno, 0);
18059     rb_define_method(Ripper, "end_seen?", rb_parser_end_seen_p, 0);
18060     rb_define_method(Ripper, "encoding", rb_parser_encoding, 0);
18061     rb_define_method(Ripper, "yydebug", rb_parser_get_yydebug, 0);
18062     rb_define_method(Ripper, "yydebug=", rb_parser_set_yydebug, 1);
18063 #ifdef RIPPER_DEBUG
18064     rb_define_method(rb_mKernel, "assert_Qundef", ripper_assert_Qundef, 2);
18065     rb_define_method(rb_mKernel, "rawVALUE", ripper_value, 1);
18066     rb_define_method(rb_mKernel, "validate_object", ripper_validate_object, 1);
18067 #endif
18068 
18069     ripper_init_eventids1_table(Ripper);
18070     ripper_init_eventids2_table(Ripper);
18071 
18072 # if 0
18073     /* Hack to let RDoc document SCRIPT_LINES__ */
18074 
18075     /*
18076      * When a Hash is assigned to +SCRIPT_LINES__+ the contents of files loaded
18077      * after the assignment will be added as an Array of lines with the file
18078      * name as the key.
18079      */
18080     rb_define_global_const("SCRIPT_LINES__", Qnil);
18081 #endif
18082 
18083 }
18084 #endif /* RIPPER */
18085 
18086