| 1 |
/* A Bison parser, made by GNU Bison 3.8.2. */ |
| 2 |
|
| 3 |
/* Bison implementation for Yacc-like parsers in C |
| 4 |
|
| 5 |
Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2021 Free Software Foundation, |
| 6 |
Inc. |
| 7 |
|
| 8 |
This program is free software: you can redistribute it and/or modify |
| 9 |
it under the terms of the GNU General Public License as published by |
| 10 |
the Free Software Foundation, either version 3 of the License, or |
| 11 |
(at your option) any later version. |
| 12 |
|
| 13 |
This program is distributed in the hope that it will be useful, |
| 14 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 |
GNU General Public License for more details. |
| 17 |
|
| 18 |
You should have received a copy of the GNU General Public License |
| 19 |
along with this program. If not, see <https://www.gnu.org/licenses/>. */ |
| 20 |
|
| 21 |
/* As a special exception, you may create a larger work that contains |
| 22 |
part or all of the Bison parser skeleton and distribute that work |
| 23 |
under terms of your choice, so long as that work isn't itself a |
| 24 |
parser generator using the skeleton or a modified version thereof |
| 25 |
as a parser skeleton. Alternatively, if you modify or redistribute |
| 26 |
the parser skeleton itself, you may (at your option) remove this |
| 27 |
special exception, which will cause the skeleton and the resulting |
| 28 |
Bison output files to be licensed under the GNU General Public |
| 29 |
License without this special exception. |
| 30 |
|
| 31 |
This special exception was added by the Free Software Foundation in |
| 32 |
version 2.2 of Bison. */ |
| 33 |
|
| 34 |
/* C LALR(1) parser skeleton written by Richard Stallman, by |
| 35 |
simplifying the original so-called "semantic" parser. */ |
| 36 |
|
| 37 |
/* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual, |
| 38 |
especially those whose name start with YY_ or yy_. They are |
| 39 |
private implementation details that can be changed or removed. */ |
| 40 |
|
| 41 |
/* All symbols defined below should begin with yy or YY, to avoid |
| 42 |
infringing on user name space. This should be done even for local |
| 43 |
variables, as they might otherwise be expanded by user macros. |
| 44 |
There are some unavoidable exceptions within include files to |
| 45 |
define necessary library symbols; they are noted "INFRINGES ON |
| 46 |
USER NAME SPACE" below. */ |
| 47 |
|
| 48 |
/* Identify Bison output, and Bison version. */ |
| 49 |
#define YYBISON 30802 |
| 50 |
|
| 51 |
/* Bison version string. */ |
| 52 |
#define YYBISON_VERSION "3.8.2" |
| 53 |
|
| 54 |
/* Skeleton name. */ |
| 55 |
#define YYSKELETON_NAME "yacc.c" |
| 56 |
|
| 57 |
/* Pure parsers. */ |
| 58 |
#define YYPURE 1 |
| 59 |
|
| 60 |
/* Push parsers. */ |
| 61 |
#define YYPUSH 0 |
| 62 |
|
| 63 |
/* Pull parsers. */ |
| 64 |
#define YYPULL 1 |
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
/* First part of user prologue. */ |
| 70 |
#line 7 "mrbgems/mruby-compiler/core/parse.y" |
| 71 |
|
| 72 |
#undef PARSER_DEBUG |
| 73 |
#ifdef PARSER_DEBUG |
| 74 |
# define YYDEBUG 1 |
| 75 |
#endif |
| 76 |
#define YYSTACK_USE_ALLOCA 1 |
| 77 |
|
| 78 |
#include <ctype.h> |
| 79 |
#include <string.h> |
| 80 |
#include <mruby.h> |
| 81 |
#include <mruby/compile.h> |
| 82 |
#include <mruby/proc.h> |
| 83 |
#include <mruby/error.h> |
| 84 |
#include <mruby/throw.h> |
| 85 |
#include <mruby/string.h> |
| 86 |
#include <mruby/dump.h> |
| 87 |
#include <mruby/internal.h> |
| 88 |
#include <mruby/presym.h> |
| 89 |
#include "node.h" |
| 90 |
|
| 91 |
#define YYLEX_PARAM p |
| 92 |
|
| 93 |
typedef mrb_ast_node node; |
| 94 |
typedef struct mrb_parser_state parser_state; |
| 95 |
typedef struct mrb_parser_heredoc_info parser_heredoc_info; |
| 96 |
|
| 97 |
static int yyparse(parser_state *p); |
| 98 |
static int yylex(void *lval, parser_state *p); |
| 99 |
static void yyerror(parser_state *p, const char *s); |
| 100 |
static void yywarning(parser_state *p, const char *s); |
| 101 |
static void backref_error(parser_state *p, node *n); |
| 102 |
static void void_expr_error(parser_state *p, node *n); |
| 103 |
static void tokadd(parser_state *p, int32_t c); |
| 104 |
|
| 105 |
#define identchar(c) (ISALNUM(c) || (c) == '_' || !ISASCII(c)) |
| 106 |
|
| 107 |
typedef unsigned int stack_type; |
| 108 |
|
| 109 |
#define BITSTACK_PUSH(stack, n) ((stack) = ((stack)<<1)|((n)&1)) |
| 110 |
#define BITSTACK_POP(stack) ((stack) = (stack) >> 1) |
| 111 |
#define BITSTACK_LEXPOP(stack) ((stack) = ((stack) >> 1) | ((stack) & 1)) |
| 112 |
#define BITSTACK_SET_P(stack) ((stack)&1) |
| 113 |
|
| 114 |
#define COND_PUSH(n) BITSTACK_PUSH(p->cond_stack, (n)) |
| 115 |
#define COND_POP() BITSTACK_POP(p->cond_stack) |
| 116 |
#define COND_LEXPOP() BITSTACK_LEXPOP(p->cond_stack) |
| 117 |
#define COND_P() BITSTACK_SET_P(p->cond_stack) |
| 118 |
|
| 119 |
#define CMDARG_PUSH(n) BITSTACK_PUSH(p->cmdarg_stack, (n)) |
| 120 |
#define CMDARG_POP() BITSTACK_POP(p->cmdarg_stack) |
| 121 |
#define CMDARG_LEXPOP() BITSTACK_LEXPOP(p->cmdarg_stack) |
| 122 |
#define CMDARG_P() BITSTACK_SET_P(p->cmdarg_stack) |
| 123 |
|
| 124 |
#define SET_LINENO(c,n) ((c)->lineno = (n)) |
| 125 |
#define NODE_LINENO(c,n) do {\ |
| 126 |
if (n) {\ |
| 127 |
(c)->filename_index = (n)->filename_index;\ |
| 128 |
(c)->lineno = (n)->lineno;\ |
| 129 |
}\ |
| 130 |
} while (0) |
| 131 |
|
| 132 |
#define sym(x) ((mrb_sym)(intptr_t)(x)) |
| 133 |
#define nsym(x) ((node*)(intptr_t)(x)) |
| 134 |
#define nint(x) ((node*)(intptr_t)(x)) |
| 135 |
#define intn(x) ((int)(intptr_t)(x)) |
| 136 |
#define typen(x) ((enum node_type)(intptr_t)(x)) |
| 137 |
|
| 138 |
#define NUM_SUFFIX_R (1<<0) |
| 139 |
#define NUM_SUFFIX_I (1<<1) |
| 140 |
|
| 141 |
static inline mrb_sym |
| 142 |
intern_cstr_gen(parser_state *p, const char *s) |
| 143 |
{ |
| 144 |
return mrb_intern_cstr(p->mrb, s); |
| 145 |
} |
| 146 |
#define intern_cstr(s) intern_cstr_gen(p,(s)) |
| 147 |
|
| 148 |
static inline mrb_sym |
| 149 |
intern_gen(parser_state *p, const char *s, size_t len) |
| 150 |
{ |
| 151 |
return mrb_intern(p->mrb, s, len); |
| 152 |
} |
| 153 |
#define intern(s,len) intern_gen(p,(s),(len)) |
| 154 |
|
| 155 |
#define intern_op(op) MRB_OPSYM_2(p->mrb, op) |
| 156 |
|
| 157 |
static mrb_sym |
| 158 |
intern_numparam_gen(parser_state *p, int num) |
| 159 |
{ |
| 160 |
char buf[3]; |
| 161 |
buf[0] = '_'; buf[1] = '0'+num; buf[2] = '\0'; |
| 162 |
return intern(buf, 2); |
| 163 |
} |
| 164 |
#define intern_numparam(n) intern_numparam_gen(p,(n)) |
| 165 |
|
| 166 |
static void |
| 167 |
cons_free_gen(parser_state *p, node *cons) |
| 168 |
{ |
| 169 |
cons->cdr = p->cells; |
| 170 |
p->cells = cons; |
| 171 |
} |
| 172 |
#define cons_free(c) cons_free_gen(p, (c)) |
| 173 |
|
| 174 |
static void* |
| 175 |
parser_palloc(parser_state *p, size_t size) |
| 176 |
{ |
| 177 |
void *m = mrb_pool_alloc(p->pool, size); |
| 178 |
|
| 179 |
if (!m) { |
| 180 |
MRB_THROW(p->mrb->jmp); |
| 181 |
} |
| 182 |
return m; |
| 183 |
} |
| 184 |
|
| 185 |
#define parser_pfree(ptr) do { if (sizeof(node) <= sizeof(*(ptr))) cons_free((node*)ptr);} while (0) |
| 186 |
|
| 187 |
static node* |
| 188 |
cons_gen(parser_state *p, node *car, node *cdr) |
| 189 |
{ |
| 190 |
node *c; |
| 191 |
|
| 192 |
if (p->cells) { |
| 193 |
c = p->cells; |
| 194 |
p->cells = p->cells->cdr; |
| 195 |
} |
| 196 |
else { |
| 197 |
c = (node*)parser_palloc(p, sizeof(mrb_ast_node)); |
| 198 |
} |
| 199 |
|
| 200 |
c->car = car; |
| 201 |
c->cdr = cdr; |
| 202 |
c->lineno = p->lineno; |
| 203 |
c->filename_index = p->current_filename_index; |
| 204 |
/* beginning of next partial file; need to point the previous file */ |
| 205 |
if (p->lineno == 0 && p->current_filename_index > 0) { |
| 206 |
c->filename_index--; |
| 207 |
} |
| 208 |
return c; |
| 209 |
} |
| 210 |
#define cons(a,b) cons_gen(p,(a),(b)) |
| 211 |
|
| 212 |
static node* |
| 213 |
list1_gen(parser_state *p, node *a) |
| 214 |
{ |
| 215 |
return cons(a, 0); |
| 216 |
} |
| 217 |
#define list1(a) list1_gen(p, (a)) |
| 218 |
|
| 219 |
static node* |
| 220 |
list2_gen(parser_state *p, node *a, node *b) |
| 221 |
{ |
| 222 |
return cons(a, cons(b,0)); |
| 223 |
} |
| 224 |
#define list2(a,b) list2_gen(p, (a),(b)) |
| 225 |
|
| 226 |
static node* |
| 227 |
list3_gen(parser_state *p, node *a, node *b, node *c) |
| 228 |
{ |
| 229 |
return cons(a, cons(b, cons(c,0))); |
| 230 |
} |
| 231 |
#define list3(a,b,c) list3_gen(p, (a),(b),(c)) |
| 232 |
|
| 233 |
static node* |
| 234 |
list4_gen(parser_state *p, node *a, node *b, node *c, node *d) |
| 235 |
{ |
| 236 |
return cons(a, cons(b, cons(c, cons(d, 0)))); |
| 237 |
} |
| 238 |
#define list4(a,b,c,d) list4_gen(p, (a),(b),(c),(d)) |
| 239 |
|
| 240 |
static node* |
| 241 |
list5_gen(parser_state *p, node *a, node *b, node *c, node *d, node *e) |
| 242 |
{ |
| 243 |
return cons(a, cons(b, cons(c, cons(d, cons(e, 0))))); |
| 244 |
} |
| 245 |
#define list5(a,b,c,d,e) list5_gen(p, (a),(b),(c),(d),(e)) |
| 246 |
|
| 247 |
static node* |
| 248 |
list6_gen(parser_state *p, node *a, node *b, node *c, node *d, node *e, node *f) |
| 249 |
{ |
| 250 |
return cons(a, cons(b, cons(c, cons(d, cons(e, cons(f, 0)))))); |
| 251 |
} |
| 252 |
#define list6(a,b,c,d,e,f) list6_gen(p, (a),(b),(c),(d),(e),(f)) |
| 253 |
|
| 254 |
static node* |
| 255 |
append_gen(parser_state *p, node *a, node *b) |
| 256 |
{ |
| 257 |
node *c = a; |
| 258 |
|
| 259 |
if (!a) return b; |
| 260 |
if (!b) return a; |
| 261 |
while (c->cdr) { |
| 262 |
c = c->cdr; |
| 263 |
} |
| 264 |
c->cdr = b; |
| 265 |
return a; |
| 266 |
} |
| 267 |
#define append(a,b) append_gen(p,(a),(b)) |
| 268 |
#define push(a,b) append_gen(p,(a),list1(b)) |
| 269 |
|
| 270 |
static char* |
| 271 |
parser_strndup(parser_state *p, const char *s, size_t len) |
| 272 |
{ |
| 273 |
char *b = (char*)parser_palloc(p, len+1); |
| 274 |
|
| 275 |
memcpy(b, s, len); |
| 276 |
b[len] = '\0'; |
| 277 |
return b; |
| 278 |
} |
| 279 |
#undef strndup |
| 280 |
#define strndup(s,len) parser_strndup(p, s, len) |
| 281 |
|
| 282 |
static char* |
| 283 |
parser_strdup(parser_state *p, const char *s) |
| 284 |
{ |
| 285 |
return parser_strndup(p, s, strlen(s)); |
| 286 |
} |
| 287 |
#undef strdup |
| 288 |
#define strdup(s) parser_strdup(p, s) |
| 289 |
|
| 290 |
static void |
| 291 |
dump_int(uint16_t i, char *s) |
| 292 |
{ |
| 293 |
char *p = s; |
| 294 |
char *t = s; |
| 295 |
|
| 296 |
while (i > 0) { |
| 297 |
*p++ = (i % 10)+'0'; |
| 298 |
i /= 10; |
| 299 |
} |
| 300 |
if (p == s) *p++ = '0'; |
| 301 |
*p = 0; |
| 302 |
p--; /* point the last char */ |
| 303 |
while (t < p) { |
| 304 |
char c = *t; |
| 305 |
*t++ = *p; |
| 306 |
*p-- = c; |
| 307 |
} |
| 308 |
} |
| 309 |
|
| 310 |
/* xxx ----------------------------- */ |
| 311 |
|
| 312 |
static node* |
| 313 |
local_switch(parser_state *p) |
| 314 |
{ |
| 315 |
node *prev = p->locals; |
| 316 |
|
| 317 |
p->locals = cons(0, 0); |
| 318 |
return prev; |
| 319 |
} |
| 320 |
|
| 321 |
static void |
| 322 |
local_resume(parser_state *p, node *prev) |
| 323 |
{ |
| 324 |
p->locals = prev; |
| 325 |
} |
| 326 |
|
| 327 |
static void |
| 328 |
local_nest(parser_state *p) |
| 329 |
{ |
| 330 |
p->locals = cons(0, p->locals); |
| 331 |
} |
| 332 |
|
| 333 |
static void |
| 334 |
local_unnest(parser_state *p) |
| 335 |
{ |
| 336 |
if (p->locals) { |
| 337 |
p->locals = p->locals->cdr; |
| 338 |
} |
| 339 |
} |
| 340 |
|
| 341 |
static mrb_bool |
| 342 |
local_var_p(parser_state *p, mrb_sym sym) |
| 343 |
{ |
| 344 |
const struct RProc *u; |
| 345 |
node *l = p->locals; |
| 346 |
|
| 347 |
while (l) { |
| 348 |
node *n = l->car; |
| 349 |
while (n) { |
| 350 |
if (sym(n->car) == sym) return TRUE; |
| 351 |
n = n->cdr; |
| 352 |
} |
| 353 |
l = l->cdr; |
| 354 |
} |
| 355 |
|
| 356 |
u = p->upper; |
| 357 |
while (u && !MRB_PROC_CFUNC_P(u)) { |
| 358 |
const struct mrb_irep *ir = u->body.irep; |
| 359 |
const mrb_sym *v = ir->lv; |
| 360 |
int i; |
| 361 |
|
| 362 |
if (v) { |
| 363 |
for (i=0; i+1 < ir->nlocals; i++) { |
| 364 |
if (v[i] == sym) return TRUE; |
| 365 |
} |
| 366 |
} |
| 367 |
if (MRB_PROC_SCOPE_P(u)) break; |
| 368 |
u = u->upper; |
| 369 |
} |
| 370 |
return FALSE; |
| 371 |
} |
| 372 |
|
| 373 |
static void |
| 374 |
local_add_f(parser_state *p, mrb_sym sym) |
| 375 |
{ |
| 376 |
if (p->locals) { |
| 377 |
node *n = p->locals->car; |
| 378 |
while (n) { |
| 379 |
if (sym(n->car) == sym) { |
| 380 |
mrb_int len; |
| 381 |
const char* name = mrb_sym_name_len(p->mrb, sym, &len); |
| 382 |
if (len > 0 && name[0] != '_') { |
| 383 |
yyerror(p, "duplicated argument name"); |
| 384 |
return; |
| 385 |
} |
| 386 |
} |
| 387 |
n = n->cdr; |
| 388 |
} |
| 389 |
p->locals->car = push(p->locals->car, nsym(sym)); |
| 390 |
} |
| 391 |
} |
| 392 |
|
| 393 |
static void |
| 394 |
local_add(parser_state *p, mrb_sym sym) |
| 395 |
{ |
| 396 |
if (!local_var_p(p, sym)) { |
| 397 |
local_add_f(p, sym); |
| 398 |
} |
| 399 |
} |
| 400 |
|
| 401 |
static void |
| 402 |
local_add_blk(parser_state *p, mrb_sym blk) |
| 403 |
{ |
| 404 |
/* allocate register for block */ |
| 405 |
local_add_f(p, blk ? blk : 0); |
| 406 |
} |
| 407 |
|
| 408 |
static void |
| 409 |
local_add_kw(parser_state *p, mrb_sym kwd) |
| 410 |
{ |
| 411 |
/* allocate register for keywords hash */ |
| 412 |
local_add_f(p, kwd ? kwd : intern_op(pow)); |
| 413 |
} |
| 414 |
|
| 415 |
static node* |
| 416 |
locals_node(parser_state *p) |
| 417 |
{ |
| 418 |
return p->locals ? p->locals->car : NULL; |
| 419 |
} |
| 420 |
|
| 421 |
static void |
| 422 |
nvars_nest(parser_state *p) |
| 423 |
{ |
| 424 |
p->nvars = cons(nint(0), p->nvars); |
| 425 |
} |
| 426 |
|
| 427 |
static void |
| 428 |
nvars_block(parser_state *p) |
| 429 |
{ |
| 430 |
p->nvars = cons(nint(-2), p->nvars); |
| 431 |
} |
| 432 |
|
| 433 |
static void |
| 434 |
nvars_unnest(parser_state *p) |
| 435 |
{ |
| 436 |
p->nvars = p->nvars->cdr; |
| 437 |
} |
| 438 |
|
| 439 |
/* (:scope (vars..) (prog...)) */ |
| 440 |
static node* |
| 441 |
new_scope(parser_state *p, node *body) |
| 442 |
{ |
| 443 |
return cons((node*)NODE_SCOPE, cons(locals_node(p), body)); |
| 444 |
} |
| 445 |
|
| 446 |
/* (:begin prog...) */ |
| 447 |
static node* |
| 448 |
new_begin(parser_state *p, node *body) |
| 449 |
{ |
| 450 |
if (body) { |
| 451 |
return list2((node*)NODE_BEGIN, body); |
| 452 |
} |
| 453 |
return cons((node*)NODE_BEGIN, 0); |
| 454 |
} |
| 455 |
|
| 456 |
#define newline_node(n) (n) |
| 457 |
|
| 458 |
/* (:rescue body rescue else) */ |
| 459 |
static node* |
| 460 |
new_rescue(parser_state *p, node *body, node *resq, node *els) |
| 461 |
{ |
| 462 |
return list4((node*)NODE_RESCUE, body, resq, els); |
| 463 |
} |
| 464 |
|
| 465 |
static node* |
| 466 |
new_mod_rescue(parser_state *p, node *body, node *resq) |
| 467 |
{ |
| 468 |
return new_rescue(p, body, list1(list3(0, 0, resq)), 0); |
| 469 |
} |
| 470 |
|
| 471 |
/* (:ensure body ensure) */ |
| 472 |
static node* |
| 473 |
new_ensure(parser_state *p, node *a, node *b) |
| 474 |
{ |
| 475 |
return cons((node*)NODE_ENSURE, cons(a, cons(0, b))); |
| 476 |
} |
| 477 |
|
| 478 |
/* (:nil) */ |
| 479 |
static node* |
| 480 |
new_nil(parser_state *p) |
| 481 |
{ |
| 482 |
return list1((node*)NODE_NIL); |
| 483 |
} |
| 484 |
|
| 485 |
/* (:true) */ |
| 486 |
static node* |
| 487 |
new_true(parser_state *p) |
| 488 |
{ |
| 489 |
return list1((node*)NODE_TRUE); |
| 490 |
} |
| 491 |
|
| 492 |
/* (:false) */ |
| 493 |
static node* |
| 494 |
new_false(parser_state *p) |
| 495 |
{ |
| 496 |
return list1((node*)NODE_FALSE); |
| 497 |
} |
| 498 |
|
| 499 |
/* (:alias new old) */ |
| 500 |
static node* |
| 501 |
new_alias(parser_state *p, mrb_sym a, mrb_sym b) |
| 502 |
{ |
| 503 |
return cons((node*)NODE_ALIAS, cons(nsym(a), nsym(b))); |
| 504 |
} |
| 505 |
|
| 506 |
/* (:if cond then else) */ |
| 507 |
static node* |
| 508 |
new_if(parser_state *p, node *a, node *b, node *c) |
| 509 |
{ |
| 510 |
void_expr_error(p, a); |
| 511 |
return list4((node*)NODE_IF, a, b, c); |
| 512 |
} |
| 513 |
|
| 514 |
/* (:unless cond then else) */ |
| 515 |
static node* |
| 516 |
new_unless(parser_state *p, node *a, node *b, node *c) |
| 517 |
{ |
| 518 |
void_expr_error(p, a); |
| 519 |
return list4((node*)NODE_IF, a, c, b); |
| 520 |
} |
| 521 |
|
| 522 |
/* (:while cond body) */ |
| 523 |
static node* |
| 524 |
new_while(parser_state *p, node *a, node *b) |
| 525 |
{ |
| 526 |
void_expr_error(p, a); |
| 527 |
return cons((node*)NODE_WHILE, cons(a, b)); |
| 528 |
} |
| 529 |
|
| 530 |
/* (:until cond body) */ |
| 531 |
static node* |
| 532 |
new_until(parser_state *p, node *a, node *b) |
| 533 |
{ |
| 534 |
void_expr_error(p, a); |
| 535 |
return cons((node*)NODE_UNTIL, cons(a, b)); |
| 536 |
} |
| 537 |
|
| 538 |
/* (:for var obj body) */ |
| 539 |
static node* |
| 540 |
new_for(parser_state *p, node *v, node *o, node *b) |
| 541 |
{ |
| 542 |
void_expr_error(p, o); |
| 543 |
return list4((node*)NODE_FOR, v, o, b); |
| 544 |
} |
| 545 |
|
| 546 |
/* (:case a ((when ...) body) ((when...) body)) */ |
| 547 |
static node* |
| 548 |
new_case(parser_state *p, node *a, node *b) |
| 549 |
{ |
| 550 |
node *n = list2((node*)NODE_CASE, a); |
| 551 |
node *n2 = n; |
| 552 |
|
| 553 |
void_expr_error(p, a); |
| 554 |
while (n2->cdr) { |
| 555 |
n2 = n2->cdr; |
| 556 |
} |
| 557 |
n2->cdr = b; |
| 558 |
return n; |
| 559 |
} |
| 560 |
|
| 561 |
/* (:postexe a) */ |
| 562 |
static node* |
| 563 |
new_postexe(parser_state *p, node *a) |
| 564 |
{ |
| 565 |
return cons((node*)NODE_POSTEXE, a); |
| 566 |
} |
| 567 |
|
| 568 |
/* (:self) */ |
| 569 |
static node* |
| 570 |
new_self(parser_state *p) |
| 571 |
{ |
| 572 |
return list1((node*)NODE_SELF); |
| 573 |
} |
| 574 |
|
| 575 |
/* (:call a b c) */ |
| 576 |
static node* |
| 577 |
new_call(parser_state *p, node *a, mrb_sym b, node *c, int pass) |
| 578 |
{ |
| 579 |
node *n = list4(nint(pass?NODE_CALL:NODE_SCALL), a, nsym(b), c); |
| 580 |
void_expr_error(p, a); |
| 581 |
NODE_LINENO(n, a); |
| 582 |
return n; |
| 583 |
} |
| 584 |
|
| 585 |
/* (:fcall self mid args) */ |
| 586 |
static node* |
| 587 |
new_fcall(parser_state *p, mrb_sym b, node *c) |
| 588 |
{ |
| 589 |
node *n = list4((node*)NODE_FCALL, 0, nsym(b), c); |
| 590 |
NODE_LINENO(n, c); |
| 591 |
return n; |
| 592 |
} |
| 593 |
|
| 594 |
/* (a b . c) */ |
| 595 |
static node* |
| 596 |
new_callargs(parser_state *p, node *a, node *b, node *c) |
| 597 |
{ |
| 598 |
return cons(a, cons(b, c)); |
| 599 |
} |
| 600 |
|
| 601 |
/* (:super . c) */ |
| 602 |
static node* |
| 603 |
new_super(parser_state *p, node *c) |
| 604 |
{ |
| 605 |
return cons((node*)NODE_SUPER, c); |
| 606 |
} |
| 607 |
|
| 608 |
/* (:zsuper) */ |
| 609 |
static node* |
| 610 |
new_zsuper(parser_state *p) |
| 611 |
{ |
| 612 |
return cons((node*)NODE_ZSUPER, 0); |
| 613 |
} |
| 614 |
|
| 615 |
/* (:yield . c) */ |
| 616 |
static node* |
| 617 |
new_yield(parser_state *p, node *c) |
| 618 |
{ |
| 619 |
if (c) { |
| 620 |
if (c->cdr) { |
| 621 |
if (c->cdr->cdr) { |
| 622 |
yyerror(p, "both block arg and actual block given"); |
| 623 |
} |
| 624 |
if (c->cdr->car) { |
| 625 |
return cons((node*)NODE_YIELD, push(c->car, c->cdr->car)); |
| 626 |
} |
| 627 |
} |
| 628 |
return cons((node*)NODE_YIELD, c->car); |
| 629 |
} |
| 630 |
return cons((node*)NODE_YIELD, 0); |
| 631 |
} |
| 632 |
|
| 633 |
/* (:return . c) */ |
| 634 |
static node* |
| 635 |
new_return(parser_state *p, node *c) |
| 636 |
{ |
| 637 |
return cons((node*)NODE_RETURN, c); |
| 638 |
} |
| 639 |
|
| 640 |
/* (:break . c) */ |
| 641 |
static node* |
| 642 |
new_break(parser_state *p, node *c) |
| 643 |
{ |
| 644 |
return cons((node*)NODE_BREAK, c); |
| 645 |
} |
| 646 |
|
| 647 |
/* (:next . c) */ |
| 648 |
static node* |
| 649 |
new_next(parser_state *p, node *c) |
| 650 |
{ |
| 651 |
return cons((node*)NODE_NEXT, c); |
| 652 |
} |
| 653 |
|
| 654 |
/* (:redo) */ |
| 655 |
static node* |
| 656 |
new_redo(parser_state *p) |
| 657 |
{ |
| 658 |
return list1((node*)NODE_REDO); |
| 659 |
} |
| 660 |
|
| 661 |
/* (:retry) */ |
| 662 |
static node* |
| 663 |
new_retry(parser_state *p) |
| 664 |
{ |
| 665 |
return list1((node*)NODE_RETRY); |
| 666 |
} |
| 667 |
|
| 668 |
/* (:dot2 a b) */ |
| 669 |
static node* |
| 670 |
new_dot2(parser_state *p, node *a, node *b) |
| 671 |
{ |
| 672 |
return cons((node*)NODE_DOT2, cons(a, b)); |
| 673 |
} |
| 674 |
|
| 675 |
/* (:dot3 a b) */ |
| 676 |
static node* |
| 677 |
new_dot3(parser_state *p, node *a, node *b) |
| 678 |
{ |
| 679 |
return cons((node*)NODE_DOT3, cons(a, b)); |
| 680 |
} |
| 681 |
|
| 682 |
/* (:colon2 b c) */ |
| 683 |
static node* |
| 684 |
new_colon2(parser_state *p, node *b, mrb_sym c) |
| 685 |
{ |
| 686 |
void_expr_error(p, b); |
| 687 |
return cons((node*)NODE_COLON2, cons(b, nsym(c))); |
| 688 |
} |
| 689 |
|
| 690 |
/* (:colon3 . c) */ |
| 691 |
static node* |
| 692 |
new_colon3(parser_state *p, mrb_sym c) |
| 693 |
{ |
| 694 |
return cons((node*)NODE_COLON3, nsym(c)); |
| 695 |
} |
| 696 |
|
| 697 |
/* (:and a b) */ |
| 698 |
static node* |
| 699 |
new_and(parser_state *p, node *a, node *b) |
| 700 |
{ |
| 701 |
void_expr_error(p, a); |
| 702 |
return cons((node*)NODE_AND, cons(a, b)); |
| 703 |
} |
| 704 |
|
| 705 |
/* (:or a b) */ |
| 706 |
static node* |
| 707 |
new_or(parser_state *p, node *a, node *b) |
| 708 |
{ |
| 709 |
void_expr_error(p, a); |
| 710 |
return cons((node*)NODE_OR, cons(a, b)); |
| 711 |
} |
| 712 |
|
| 713 |
/* (:array a...) */ |
| 714 |
static node* |
| 715 |
new_array(parser_state *p, node *a) |
| 716 |
{ |
| 717 |
return cons((node*)NODE_ARRAY, a); |
| 718 |
} |
| 719 |
|
| 720 |
/* (:splat . a) */ |
| 721 |
static node* |
| 722 |
new_splat(parser_state *p, node *a) |
| 723 |
{ |
| 724 |
void_expr_error(p, a); |
| 725 |
return cons((node*)NODE_SPLAT, a); |
| 726 |
} |
| 727 |
|
| 728 |
/* (:hash (k . v) (k . v)...) */ |
| 729 |
static node* |
| 730 |
new_hash(parser_state *p, node *a) |
| 731 |
{ |
| 732 |
return cons((node*)NODE_HASH, a); |
| 733 |
} |
| 734 |
|
| 735 |
/* (:kw_hash (k . v) (k . v)...) */ |
| 736 |
static node* |
| 737 |
new_kw_hash(parser_state *p, node *a) |
| 738 |
{ |
| 739 |
return cons((node*)NODE_KW_HASH, a); |
| 740 |
} |
| 741 |
|
| 742 |
/* (:sym . a) */ |
| 743 |
static node* |
| 744 |
new_sym(parser_state *p, mrb_sym sym) |
| 745 |
{ |
| 746 |
return cons((node*)NODE_SYM, nsym(sym)); |
| 747 |
} |
| 748 |
|
| 749 |
static mrb_sym |
| 750 |
new_strsym(parser_state *p, node* str) |
| 751 |
{ |
| 752 |
const char *s = (const char*)str->cdr->car; |
| 753 |
size_t len = (size_t)str->cdr->cdr; |
| 754 |
|
| 755 |
return mrb_intern(p->mrb, s, len); |
| 756 |
} |
| 757 |
|
| 758 |
/* (:lvar . a) */ |
| 759 |
static node* |
| 760 |
new_lvar(parser_state *p, mrb_sym sym) |
| 761 |
{ |
| 762 |
return cons((node*)NODE_LVAR, nsym(sym)); |
| 763 |
} |
| 764 |
|
| 765 |
/* (:gvar . a) */ |
| 766 |
static node* |
| 767 |
new_gvar(parser_state *p, mrb_sym sym) |
| 768 |
{ |
| 769 |
return cons((node*)NODE_GVAR, nsym(sym)); |
| 770 |
} |
| 771 |
|
| 772 |
/* (:ivar . a) */ |
| 773 |
static node* |
| 774 |
new_ivar(parser_state *p, mrb_sym sym) |
| 775 |
{ |
| 776 |
return cons((node*)NODE_IVAR, nsym(sym)); |
| 777 |
} |
| 778 |
|
| 779 |
/* (:cvar . a) */ |
| 780 |
static node* |
| 781 |
new_cvar(parser_state *p, mrb_sym sym) |
| 782 |
{ |
| 783 |
return cons((node*)NODE_CVAR, nsym(sym)); |
| 784 |
} |
| 785 |
|
| 786 |
/* (:nvar . a) */ |
| 787 |
static node* |
| 788 |
new_nvar(parser_state *p, int num) |
| 789 |
{ |
| 790 |
return cons((node*)NODE_NVAR, nint(num)); |
| 791 |
} |
| 792 |
|
| 793 |
/* (:const . a) */ |
| 794 |
static node* |
| 795 |
new_const(parser_state *p, mrb_sym sym) |
| 796 |
{ |
| 797 |
return cons((node*)NODE_CONST, nsym(sym)); |
| 798 |
} |
| 799 |
|
| 800 |
/* (:undef a...) */ |
| 801 |
static node* |
| 802 |
new_undef(parser_state *p, mrb_sym sym) |
| 803 |
{ |
| 804 |
return list2((node*)NODE_UNDEF, nsym(sym)); |
| 805 |
} |
| 806 |
|
| 807 |
/* (:class class super body) */ |
| 808 |
static node* |
| 809 |
new_class(parser_state *p, node *c, node *s, node *b) |
| 810 |
{ |
| 811 |
void_expr_error(p, s); |
| 812 |
return list4((node*)NODE_CLASS, c, s, cons(locals_node(p), b)); |
| 813 |
} |
| 814 |
|
| 815 |
/* (:sclass obj body) */ |
| 816 |
static node* |
| 817 |
new_sclass(parser_state *p, node *o, node *b) |
| 818 |
{ |
| 819 |
void_expr_error(p, o); |
| 820 |
return list3((node*)NODE_SCLASS, o, cons(locals_node(p), b)); |
| 821 |
} |
| 822 |
|
| 823 |
/* (:module module body) */ |
| 824 |
static node* |
| 825 |
new_module(parser_state *p, node *m, node *b) |
| 826 |
{ |
| 827 |
return list3((node*)NODE_MODULE, m, cons(locals_node(p), b)); |
| 828 |
} |
| 829 |
|
| 830 |
/* (:def m lv (arg . body)) */ |
| 831 |
static node* |
| 832 |
new_def(parser_state *p, mrb_sym m, node *a, node *b) |
| 833 |
{ |
| 834 |
return list5((node*)NODE_DEF, nsym(m), 0, a, b); |
| 835 |
} |
| 836 |
|
| 837 |
static void |
| 838 |
defn_setup(parser_state *p, node *d, node *a, node *b) |
| 839 |
{ |
| 840 |
node *n = d->cdr->cdr; |
| 841 |
|
| 842 |
n->car = locals_node(p); |
| 843 |
p->cmdarg_stack = intn(n->cdr->car); |
| 844 |
n->cdr->car = a; |
| 845 |
local_resume(p, n->cdr->cdr->car); |
| 846 |
n->cdr->cdr->car = b; |
| 847 |
} |
| 848 |
|
| 849 |
/* (:sdef obj m lv (arg . body)) */ |
| 850 |
static node* |
| 851 |
new_sdef(parser_state *p, node *o, mrb_sym m, node *a, node *b) |
| 852 |
{ |
| 853 |
void_expr_error(p, o); |
| 854 |
return list6((node*)NODE_SDEF, o, nsym(m), 0, a, b); |
| 855 |
} |
| 856 |
|
| 857 |
static void |
| 858 |
defs_setup(parser_state *p, node *d, node *a, node *b) |
| 859 |
{ |
| 860 |
node *n = d->cdr->cdr->cdr; |
| 861 |
|
| 862 |
n->car = locals_node(p); |
| 863 |
p->cmdarg_stack = intn(n->cdr->car); |
| 864 |
n->cdr->car = a; |
| 865 |
local_resume(p, n->cdr->cdr->car); |
| 866 |
n->cdr->cdr->car = b; |
| 867 |
} |
| 868 |
|
| 869 |
/* (:arg . sym) */ |
| 870 |
static node* |
| 871 |
new_arg(parser_state *p, mrb_sym sym) |
| 872 |
{ |
| 873 |
return cons((node*)NODE_ARG, nsym(sym)); |
| 874 |
} |
| 875 |
|
| 876 |
static void |
| 877 |
local_add_margs(parser_state *p, node *n) |
| 878 |
{ |
| 879 |
while (n) { |
| 880 |
if (typen(n->car->car) == NODE_MASGN) { |
| 881 |
node *t = n->car->cdr->cdr; |
| 882 |
|
| 883 |
n->car->cdr->cdr = NULL; |
| 884 |
while (t) { |
| 885 |
local_add_f(p, sym(t->car)); |
| 886 |
t = t->cdr; |
| 887 |
} |
| 888 |
local_add_margs(p, n->car->cdr->car->car); |
| 889 |
local_add_margs(p, n->car->cdr->car->cdr->cdr->car); |
| 890 |
} |
| 891 |
n = n->cdr; |
| 892 |
} |
| 893 |
} |
| 894 |
|
| 895 |
static void |
| 896 |
local_add_lv(parser_state *p, node *lv) |
| 897 |
{ |
| 898 |
while (lv) { |
| 899 |
local_add_f(p, sym(lv->car)); |
| 900 |
lv = lv->cdr; |
| 901 |
} |
| 902 |
} |
| 903 |
|
| 904 |
/* (m o r m2 tail) */ |
| 905 |
/* m: (a b c) */ |
| 906 |
/* o: ((a . e1) (b . e2)) */ |
| 907 |
/* r: a */ |
| 908 |
/* m2: (a b c) */ |
| 909 |
/* b: a */ |
| 910 |
static node* |
| 911 |
new_args(parser_state *p, node *m, node *opt, mrb_sym rest, node *m2, node *tail) |
| 912 |
{ |
| 913 |
node *n; |
| 914 |
|
| 915 |
local_add_margs(p, m); |
| 916 |
local_add_margs(p, m2); |
| 917 |
n = cons(m2, tail); |
| 918 |
n = cons(nsym(rest), n); |
| 919 |
n = cons(opt, n); |
| 920 |
while (opt) { |
| 921 |
/* opt: (sym . (opt . lv)) -> (sym . opt) */ |
| 922 |
local_add_lv(p, opt->car->cdr->cdr); |
| 923 |
opt->car->cdr = opt->car->cdr->car; |
| 924 |
opt = opt->cdr; |
| 925 |
} |
| 926 |
return cons(m, n); |
| 927 |
} |
| 928 |
|
| 929 |
/* (:args_tail keywords rest_keywords_sym block_sym) */ |
| 930 |
static node* |
| 931 |
new_args_tail(parser_state *p, node *kws, node *kwrest, mrb_sym blk) |
| 932 |
{ |
| 933 |
node *k; |
| 934 |
|
| 935 |
if (kws || kwrest) { |
| 936 |
local_add_kw(p, (kwrest && kwrest->cdr)? sym(kwrest->cdr) : 0); |
| 937 |
} |
| 938 |
|
| 939 |
local_add_blk(p, blk); |
| 940 |
|
| 941 |
/* allocate register for keywords arguments */ |
| 942 |
/* order is for Proc#parameters */ |
| 943 |
for (k = kws; k; k = k->cdr) { |
| 944 |
if (!k->car->cdr->cdr->car) { /* allocate required keywords */ |
| 945 |
local_add_f(p, sym(k->car->cdr->car)); |
| 946 |
} |
| 947 |
} |
| 948 |
for (k = kws; k; k = k->cdr) { |
| 949 |
if (k->car->cdr->cdr->car) { /* allocate keywords with default */ |
| 950 |
local_add_lv(p, k->car->cdr->cdr->car->cdr); |
| 951 |
k->car->cdr->cdr->car = k->car->cdr->cdr->car->car; |
| 952 |
local_add_f(p, sym(k->car->cdr->car)); |
| 953 |
} |
| 954 |
} |
| 955 |
|
| 956 |
return list4((node*)NODE_ARGS_TAIL, kws, kwrest, nsym(blk)); |
| 957 |
} |
| 958 |
|
| 959 |
/* (:kw_arg kw_sym def_arg) */ |
| 960 |
static node* |
| 961 |
new_kw_arg(parser_state *p, mrb_sym kw, node *def_arg) |
| 962 |
{ |
| 963 |
mrb_assert(kw); |
| 964 |
return list3((node*)NODE_KW_ARG, nsym(kw), def_arg); |
| 965 |
} |
| 966 |
|
| 967 |
/* (:kw_rest_args . a) */ |
| 968 |
static node* |
| 969 |
new_kw_rest_args(parser_state *p, mrb_sym sym) |
| 970 |
{ |
| 971 |
return cons((node*)NODE_KW_REST_ARGS, nsym(sym)); |
| 972 |
} |
| 973 |
|
| 974 |
static node* |
| 975 |
new_args_dots(parser_state *p, node *m) |
| 976 |
{ |
| 977 |
mrb_sym r = intern_op(mul); |
| 978 |
mrb_sym k = intern_op(pow); |
| 979 |
mrb_sym b = intern_op(and); |
| 980 |
local_add_f(p, r); |
| 981 |
return new_args(p, m, 0, r, 0, |
| 982 |
new_args_tail(p, 0, new_kw_rest_args(p, k), b)); |
| 983 |
} |
| 984 |
|
| 985 |
/* (:block_arg . a) */ |
| 986 |
static node* |
| 987 |
new_block_arg(parser_state *p, node *a) |
| 988 |
{ |
| 989 |
return cons((node*)NODE_BLOCK_ARG, a); |
| 990 |
} |
| 991 |
|
| 992 |
static node* |
| 993 |
setup_numparams(parser_state *p, node *a) |
| 994 |
{ |
| 995 |
int nvars = intn(p->nvars->car); |
| 996 |
if (nvars > 0) { |
| 997 |
int i; |
| 998 |
mrb_sym sym; |
| 999 |
// m || opt || rest || tail |
| 1000 |
if (a && (a->car || (a->cdr && a->cdr->car) || (a->cdr->cdr && a->cdr->cdr->car) || (a->cdr->cdr->cdr->cdr && a->cdr->cdr->cdr->cdr->car))) { |
| 1001 |
yyerror(p, "ordinary parameter is defined"); |
| 1002 |
} |
| 1003 |
else if (p->locals) { |
| 1004 |
/* p->locals should not be NULL unless error happens before the point */ |
| 1005 |
node* args = 0; |
| 1006 |
for (i = nvars; i > 0; i--) { |
| 1007 |
char buf[3]; |
| 1008 |
|
| 1009 |
buf[0] = '_'; |
| 1010 |
buf[1] = i+'0'; |
| 1011 |
buf[2] = '\0'; |
| 1012 |
sym = intern_cstr(buf); |
| 1013 |
args = cons(new_arg(p, sym), args); |
| 1014 |
p->locals->car = cons(nsym(sym), p->locals->car); |
| 1015 |
} |
| 1016 |
a = new_args(p, args, 0, 0, 0, 0); |
| 1017 |
} |
| 1018 |
} |
| 1019 |
return a; |
| 1020 |
} |
| 1021 |
|
| 1022 |
/* (:block arg body) */ |
| 1023 |
static node* |
| 1024 |
new_block(parser_state *p, node *a, node *b) |
| 1025 |
{ |
| 1026 |
a = setup_numparams(p, a); |
| 1027 |
return list4((node*)NODE_BLOCK, locals_node(p), a, b); |
| 1028 |
} |
| 1029 |
|
| 1030 |
/* (:lambda arg body) */ |
| 1031 |
static node* |
| 1032 |
new_lambda(parser_state *p, node *a, node *b) |
| 1033 |
{ |
| 1034 |
return list4((node*)NODE_LAMBDA, locals_node(p), a, b); |
| 1035 |
} |
| 1036 |
|
| 1037 |
/* (:asgn lhs rhs) */ |
| 1038 |
static node* |
| 1039 |
new_asgn(parser_state *p, node *a, node *b) |
| 1040 |
{ |
| 1041 |
void_expr_error(p, b); |
| 1042 |
return cons((node*)NODE_ASGN, cons(a, b)); |
| 1043 |
} |
| 1044 |
|
| 1045 |
/* (:masgn mlhs=(pre rest post) mrhs) */ |
| 1046 |
static node* |
| 1047 |
new_masgn(parser_state *p, node *a, node *b) |
| 1048 |
{ |
| 1049 |
void_expr_error(p, b); |
| 1050 |
return cons((node*)NODE_MASGN, cons(a, b)); |
| 1051 |
} |
| 1052 |
|
| 1053 |
/* (:masgn mlhs mrhs) no check */ |
| 1054 |
static node* |
| 1055 |
new_masgn_param(parser_state *p, node *a, node *b) |
| 1056 |
{ |
| 1057 |
return cons((node*)NODE_MASGN, cons(a, b)); |
| 1058 |
} |
| 1059 |
|
| 1060 |
/* (:asgn lhs rhs) */ |
| 1061 |
static node* |
| 1062 |
new_op_asgn(parser_state *p, node *a, mrb_sym op, node *b) |
| 1063 |
{ |
| 1064 |
void_expr_error(p, b); |
| 1065 |
return list4((node*)NODE_OP_ASGN, a, nsym(op), b); |
| 1066 |
} |
| 1067 |
|
| 1068 |
static node* |
| 1069 |
new_imaginary(parser_state *p, node *imaginary) |
| 1070 |
{ |
| 1071 |
return new_call(p, new_const(p, MRB_SYM_2(p->mrb, Kernel)), MRB_SYM_2(p->mrb, Complex), |
| 1072 |
new_callargs(p, list2(list3((node*)NODE_INT, (node*)strdup("0"), nint(10)), imaginary), 0, 0), '.'); |
| 1073 |
} |
| 1074 |
|
| 1075 |
static node* |
| 1076 |
new_rational(parser_state *p, node *rational) |
| 1077 |
{ |
| 1078 |
return new_call(p, new_const(p, MRB_SYM_2(p->mrb, Kernel)), MRB_SYM_2(p->mrb, Rational), new_callargs(p, list1(rational), 0, 0), '.'); |
| 1079 |
} |
| 1080 |
|
| 1081 |
/* (:int . i) */ |
| 1082 |
static node* |
| 1083 |
new_int(parser_state *p, const char *s, int base, int suffix) |
| 1084 |
{ |
| 1085 |
node* result = list3((node*)NODE_INT, (node*)strdup(s), nint(base)); |
| 1086 |
if (suffix & NUM_SUFFIX_R) { |
| 1087 |
result = new_rational(p, result); |
| 1088 |
} |
| 1089 |
if (suffix & NUM_SUFFIX_I) { |
| 1090 |
result = new_imaginary(p, result); |
| 1091 |
} |
| 1092 |
return result; |
| 1093 |
} |
| 1094 |
|
| 1095 |
#ifndef MRB_NO_FLOAT |
| 1096 |
/* (:float . i) */ |
| 1097 |
static node* |
| 1098 |
new_float(parser_state *p, const char *s, int suffix) |
| 1099 |
{ |
| 1100 |
node* result = cons((node*)NODE_FLOAT, (node*)strdup(s)); |
| 1101 |
if (suffix & NUM_SUFFIX_R) { |
| 1102 |
result = new_rational(p, result); |
| 1103 |
} |
| 1104 |
if (suffix & NUM_SUFFIX_I) { |
| 1105 |
result = new_imaginary(p, result); |
| 1106 |
} |
| 1107 |
return result; |
| 1108 |
} |
| 1109 |
#endif |
| 1110 |
|
| 1111 |
/* (:str . (s . len)) */ |
| 1112 |
static node* |
| 1113 |
new_str(parser_state *p, const char *s, size_t len) |
| 1114 |
{ |
| 1115 |
return cons((node*)NODE_STR, cons((node*)strndup(s, len), nint(len))); |
| 1116 |
} |
| 1117 |
|
| 1118 |
/* (:dstr . a) */ |
| 1119 |
static node* |
| 1120 |
new_dstr(parser_state *p, node *a) |
| 1121 |
{ |
| 1122 |
return cons((node*)NODE_DSTR, a); |
| 1123 |
} |
| 1124 |
|
| 1125 |
static int |
| 1126 |
string_node_p(node *n) |
| 1127 |
{ |
| 1128 |
return (int)(typen(n->car) == NODE_STR); |
| 1129 |
} |
| 1130 |
|
| 1131 |
static node* |
| 1132 |
composite_string_node(parser_state *p, node *a, node *b) |
| 1133 |
{ |
| 1134 |
size_t newlen = (size_t)a->cdr + (size_t)b->cdr; |
| 1135 |
char *str = (char*)mrb_pool_realloc(p->pool, a->car, (size_t)a->cdr + 1, newlen + 1); |
| 1136 |
memcpy(str + (size_t)a->cdr, b->car, (size_t)b->cdr); |
| 1137 |
str[newlen] = '\0'; |
| 1138 |
a->car = (node*)str; |
| 1139 |
a->cdr = (node*)newlen; |
| 1140 |
cons_free(b); |
| 1141 |
return a; |
| 1142 |
} |
| 1143 |
|
| 1144 |
static node* |
| 1145 |
concat_string(parser_state *p, node *a, node *b) |
| 1146 |
{ |
| 1147 |
if (string_node_p(a)) { |
| 1148 |
if (string_node_p(b)) { |
| 1149 |
/* a == NODE_STR && b == NODE_STR */ |
| 1150 |
composite_string_node(p, a->cdr, b->cdr); |
| 1151 |
cons_free(b); |
| 1152 |
return a; |
| 1153 |
} |
| 1154 |
else { |
| 1155 |
/* a == NODE_STR && b == NODE_DSTR */ |
| 1156 |
|
| 1157 |
if (string_node_p(b->cdr->car)) { |
| 1158 |
/* a == NODE_STR && b->[NODE_STR, ...] */ |
| 1159 |
composite_string_node(p, a->cdr, b->cdr->car->cdr); |
| 1160 |
cons_free(b->cdr->car); |
| 1161 |
b->cdr->car = a; |
| 1162 |
return b; |
| 1163 |
} |
| 1164 |
} |
| 1165 |
} |
| 1166 |
else { |
| 1167 |
node *c; /* last node of a */ |
| 1168 |
for (c = a; c->cdr != NULL; c = c->cdr) |
| 1169 |
; |
| 1170 |
if (string_node_p(b)) { |
| 1171 |
/* a == NODE_DSTR && b == NODE_STR */ |
| 1172 |
if (string_node_p(c->car)) { |
| 1173 |
/* a->[..., NODE_STR] && b == NODE_STR */ |
| 1174 |
composite_string_node(p, c->car->cdr, b->cdr); |
| 1175 |
cons_free(b); |
| 1176 |
return a; |
| 1177 |
} |
| 1178 |
|
| 1179 |
push(a, b); |
| 1180 |
return a; |
| 1181 |
} |
| 1182 |
else { |
| 1183 |
/* a == NODE_DSTR && b == NODE_DSTR */ |
| 1184 |
if (string_node_p(c->car) && string_node_p(b->cdr->car)) { |
| 1185 |
/* a->[..., NODE_STR] && b->[NODE_STR, ...] */ |
| 1186 |
node *d = b->cdr; |
| 1187 |
cons_free(b); |
| 1188 |
composite_string_node(p, c->car->cdr, d->car->cdr); |
| 1189 |
cons_free(d->car); |
| 1190 |
c->cdr = d->cdr; |
| 1191 |
cons_free(d); |
| 1192 |
return a; |
| 1193 |
} |
| 1194 |
else { |
| 1195 |
c->cdr = b->cdr; |
| 1196 |
cons_free(b); |
| 1197 |
return a; |
| 1198 |
} |
| 1199 |
} |
| 1200 |
} |
| 1201 |
|
| 1202 |
return new_dstr(p, list2(a, b)); |
| 1203 |
} |
| 1204 |
|
| 1205 |
/* (:str . (s . len)) */ |
| 1206 |
static node* |
| 1207 |
new_xstr(parser_state *p, const char *s, int len) |
| 1208 |
{ |
| 1209 |
return cons((node*)NODE_XSTR, cons((node*)strndup(s, len), nint(len))); |
| 1210 |
} |
| 1211 |
|
| 1212 |
/* (:xstr . a) */ |
| 1213 |
static node* |
| 1214 |
new_dxstr(parser_state *p, node *a) |
| 1215 |
{ |
| 1216 |
return cons((node*)NODE_DXSTR, a); |
| 1217 |
} |
| 1218 |
|
| 1219 |
/* (:dsym . a) */ |
| 1220 |
static node* |
| 1221 |
new_dsym(parser_state *p, node *a) |
| 1222 |
{ |
| 1223 |
return cons((node*)NODE_DSYM, a); |
| 1224 |
} |
| 1225 |
|
| 1226 |
/* (:regx . (s . (opt . enc))) */ |
| 1227 |
static node* |
| 1228 |
new_regx(parser_state *p, const char *p1, const char* p2, const char* p3) |
| 1229 |
{ |
| 1230 |
return cons((node*)NODE_REGX, cons((node*)p1, cons((node*)p2, (node*)p3))); |
| 1231 |
} |
| 1232 |
|
| 1233 |
/* (:dregx . (a . b)) */ |
| 1234 |
static node* |
| 1235 |
new_dregx(parser_state *p, node *a, node *b) |
| 1236 |
{ |
| 1237 |
return cons((node*)NODE_DREGX, cons(a, b)); |
| 1238 |
} |
| 1239 |
|
| 1240 |
/* (:backref . n) */ |
| 1241 |
static node* |
| 1242 |
new_back_ref(parser_state *p, int n) |
| 1243 |
{ |
| 1244 |
return cons((node*)NODE_BACK_REF, nint(n)); |
| 1245 |
} |
| 1246 |
|
| 1247 |
/* (:nthref . n) */ |
| 1248 |
static node* |
| 1249 |
new_nth_ref(parser_state *p, int n) |
| 1250 |
{ |
| 1251 |
return cons((node*)NODE_NTH_REF, nint(n)); |
| 1252 |
} |
| 1253 |
|
| 1254 |
/* (:heredoc . a) */ |
| 1255 |
static node* |
| 1256 |
new_heredoc(parser_state *p) |
| 1257 |
{ |
| 1258 |
parser_heredoc_info *inf = (parser_heredoc_info*)parser_palloc(p, sizeof(parser_heredoc_info)); |
| 1259 |
return cons((node*)NODE_HEREDOC, (node*)inf); |
| 1260 |
} |
| 1261 |
|
| 1262 |
static void |
| 1263 |
new_bv(parser_state *p, mrb_sym id) |
| 1264 |
{ |
| 1265 |
} |
| 1266 |
|
| 1267 |
static node* |
| 1268 |
new_literal_delim(parser_state *p) |
| 1269 |
{ |
| 1270 |
return cons((node*)NODE_LITERAL_DELIM, 0); |
| 1271 |
} |
| 1272 |
|
| 1273 |
/* (:words . a) */ |
| 1274 |
static node* |
| 1275 |
new_words(parser_state *p, node *a) |
| 1276 |
{ |
| 1277 |
return cons((node*)NODE_WORDS, a); |
| 1278 |
} |
| 1279 |
|
| 1280 |
/* (:symbols . a) */ |
| 1281 |
static node* |
| 1282 |
new_symbols(parser_state *p, node *a) |
| 1283 |
{ |
| 1284 |
return cons((node*)NODE_SYMBOLS, a); |
| 1285 |
} |
| 1286 |
|
| 1287 |
/* xxx ----------------------------- */ |
| 1288 |
|
| 1289 |
/* (:call a op) */ |
| 1290 |
static node* |
| 1291 |
call_uni_op(parser_state *p, node *recv, const char *m) |
| 1292 |
{ |
| 1293 |
void_expr_error(p, recv); |
| 1294 |
return new_call(p, recv, intern_cstr(m), 0, '.'); |
| 1295 |
} |
| 1296 |
|
| 1297 |
/* (:call a op b) */ |
| 1298 |
static node* |
| 1299 |
call_bin_op(parser_state *p, node *recv, const char *m, node *arg1) |
| 1300 |
{ |
| 1301 |
return new_call(p, recv, intern_cstr(m), new_callargs(p, list1(arg1), 0, 0), '.'); |
| 1302 |
} |
| 1303 |
|
| 1304 |
static void |
| 1305 |
args_with_block(parser_state *p, node *a, node *b) |
| 1306 |
{ |
| 1307 |
if (b) { |
| 1308 |
if (a->cdr && a->cdr->cdr) { |
| 1309 |
yyerror(p, "both block arg and actual block given"); |
| 1310 |
} |
| 1311 |
a->cdr->cdr = b; |
| 1312 |
} |
| 1313 |
} |
| 1314 |
|
| 1315 |
static void |
| 1316 |
endless_method_name(parser_state *p, node *defn) |
| 1317 |
{ |
| 1318 |
mrb_sym sym = sym(defn->cdr->car); |
| 1319 |
mrb_int len; |
| 1320 |
const char *name = mrb_sym_name_len(p->mrb, sym, &len); |
| 1321 |
|
| 1322 |
if (len > 1 && name[len-1] == '=') { |
| 1323 |
for (int i=0; i<len-1; i++) { |
| 1324 |
if (!identchar(name[i])) return; |
| 1325 |
} |
| 1326 |
yyerror(p, "setter method cannot be defined by endless method definition"); |
| 1327 |
} |
| 1328 |
} |
| 1329 |
|
| 1330 |
static void |
| 1331 |
call_with_block(parser_state *p, node *a, node *b) |
| 1332 |
{ |
| 1333 |
node *n; |
| 1334 |
|
| 1335 |
switch (typen(a->car)) { |
| 1336 |
case NODE_SUPER: |
| 1337 |
case NODE_ZSUPER: |
| 1338 |
if (!a->cdr) a->cdr = new_callargs(p, 0, 0, b); |
| 1339 |
else args_with_block(p, a->cdr, b); |
| 1340 |
break; |
| 1341 |
case NODE_CALL: |
| 1342 |
case NODE_FCALL: |
| 1343 |
case NODE_SCALL: |
| 1344 |
/* (NODE_CALL recv mid (args kw . blk)) */ |
| 1345 |
n = a->cdr->cdr->cdr; /* (args kw . blk) */ |
| 1346 |
if (!n->car) n->car = new_callargs(p, 0, 0, b); |
| 1347 |
else args_with_block(p, n->car, b); |
| 1348 |
break; |
| 1349 |
case NODE_RETURN: |
| 1350 |
case NODE_BREAK: |
| 1351 |
case NODE_NEXT: |
| 1352 |
if (a->cdr == NULL) return; |
| 1353 |
call_with_block(p, a->cdr, b); |
| 1354 |
break; |
| 1355 |
default: |
| 1356 |
break; |
| 1357 |
} |
| 1358 |
} |
| 1359 |
|
| 1360 |
static node* |
| 1361 |
new_negate(parser_state *p, node *n) |
| 1362 |
{ |
| 1363 |
return cons((node*)NODE_NEGATE, n); |
| 1364 |
} |
| 1365 |
|
| 1366 |
static node* |
| 1367 |
cond(node *n) |
| 1368 |
{ |
| 1369 |
return n; |
| 1370 |
} |
| 1371 |
|
| 1372 |
static node* |
| 1373 |
ret_args(parser_state *p, node *n) |
| 1374 |
{ |
| 1375 |
if (n->cdr->cdr) { |
| 1376 |
yyerror(p, "block argument should not be given"); |
| 1377 |
return NULL; |
| 1378 |
} |
| 1379 |
if (!n->car) return NULL; |
| 1380 |
if (!n->car->cdr) return n->car->car; |
| 1381 |
return new_array(p, n->car); |
| 1382 |
} |
| 1383 |
|
| 1384 |
static void |
| 1385 |
assignable(parser_state *p, node *lhs) |
| 1386 |
{ |
| 1387 |
if (intn(lhs->car) == NODE_LVAR) { |
| 1388 |
local_add(p, sym(lhs->cdr)); |
| 1389 |
} |
| 1390 |
} |
| 1391 |
|
| 1392 |
static node* |
| 1393 |
var_reference(parser_state *p, node *lhs) |
| 1394 |
{ |
| 1395 |
node *n; |
| 1396 |
|
| 1397 |
if (intn(lhs->car) == NODE_LVAR) { |
| 1398 |
if (!local_var_p(p, sym(lhs->cdr))) { |
| 1399 |
n = new_fcall(p, sym(lhs->cdr), 0); |
| 1400 |
cons_free(lhs); |
| 1401 |
return n; |
| 1402 |
} |
| 1403 |
} |
| 1404 |
|
| 1405 |
return lhs; |
| 1406 |
} |
| 1407 |
|
| 1408 |
static node* |
| 1409 |
label_reference(parser_state *p, mrb_sym sym) |
| 1410 |
{ |
| 1411 |
const char *name = mrb_sym_name(p->mrb, sym); |
| 1412 |
node *n; |
| 1413 |
|
| 1414 |
if (local_var_p(p, sym)) { |
| 1415 |
n = new_lvar(p, sym); |
| 1416 |
} |
| 1417 |
else if (ISUPPER(name[0])) { |
| 1418 |
n = new_const(p, sym); |
| 1419 |
} |
| 1420 |
else { |
| 1421 |
n = new_fcall(p, sym, 0); |
| 1422 |
} |
| 1423 |
return n; |
| 1424 |
} |
| 1425 |
|
| 1426 |
typedef enum mrb_string_type string_type; |
| 1427 |
|
| 1428 |
typedef struct parser_lex_strterm { |
| 1429 |
int type; |
| 1430 |
int level; |
| 1431 |
int term; |
| 1432 |
int paren; |
| 1433 |
struct parser_lex_strterm *prev; |
| 1434 |
} parser_lex_strterm; |
| 1435 |
|
| 1436 |
static parser_lex_strterm* |
| 1437 |
new_strterm(parser_state *p, string_type type, int term, int paren) |
| 1438 |
{ |
| 1439 |
parser_lex_strterm *lex = (parser_lex_strterm*)parser_palloc(p, sizeof(parser_lex_strterm)); |
| 1440 |
lex->type = type; |
| 1441 |
lex->level = 0; |
| 1442 |
lex->term = term; |
| 1443 |
lex->paren = paren; |
| 1444 |
lex->prev = p->lex_strterm; |
| 1445 |
return lex; |
| 1446 |
} |
| 1447 |
|
| 1448 |
static void |
| 1449 |
end_strterm(parser_state *p) |
| 1450 |
{ |
| 1451 |
parser_lex_strterm *term = p->lex_strterm->prev; |
| 1452 |
parser_pfree(p->lex_strterm); |
| 1453 |
p->lex_strterm = term; |
| 1454 |
} |
| 1455 |
|
| 1456 |
static node* |
| 1457 |
push_strterm(parser_state *p) |
| 1458 |
{ |
| 1459 |
node *n = cons((node*)p->lex_strterm, p->parsing_heredoc); |
| 1460 |
p->lex_strterm = NULL; |
| 1461 |
return n; |
| 1462 |
} |
| 1463 |
|
| 1464 |
static void |
| 1465 |
pop_strterm(parser_state *p, node *n) |
| 1466 |
{ |
| 1467 |
p->lex_strterm = (parser_lex_strterm*)n->car; |
| 1468 |
p->parsing_heredoc = n->cdr; |
| 1469 |
cons_free(n); |
| 1470 |
} |
| 1471 |
|
| 1472 |
static parser_heredoc_info * |
| 1473 |
parsing_heredoc_info(parser_state *p) |
| 1474 |
{ |
| 1475 |
node *nd = p->parsing_heredoc; |
| 1476 |
if (nd == NULL) |
| 1477 |
return NULL; |
| 1478 |
/* mrb_assert(nd->car->car == NODE_HEREDOC); */ |
| 1479 |
return (parser_heredoc_info*)nd->car->cdr; |
| 1480 |
} |
| 1481 |
|
| 1482 |
static void |
| 1483 |
heredoc_treat_nextline(parser_state *p) |
| 1484 |
{ |
| 1485 |
if (p->heredocs_from_nextline == NULL) return; |
| 1486 |
if (p->parsing_heredoc && p->lex_strterm) { |
| 1487 |
append(p->heredocs_from_nextline, p->parsing_heredoc); |
| 1488 |
} |
| 1489 |
p->parsing_heredoc = p->heredocs_from_nextline; |
| 1490 |
p->lex_strterm = new_strterm(p, parsing_heredoc_info(p)->type, 0, 0); |
| 1491 |
p->heredocs_from_nextline = NULL; |
| 1492 |
} |
| 1493 |
|
| 1494 |
static void |
| 1495 |
heredoc_end(parser_state *p) |
| 1496 |
{ |
| 1497 |
p->parsing_heredoc = p->parsing_heredoc->cdr; |
| 1498 |
if (p->parsing_heredoc == NULL) { |
| 1499 |
p->lstate = EXPR_BEG; |
| 1500 |
end_strterm(p); |
| 1501 |
} |
| 1502 |
else { |
| 1503 |
/* next heredoc */ |
| 1504 |
p->lex_strterm->type = parsing_heredoc_info(p)->type; |
| 1505 |
} |
| 1506 |
} |
| 1507 |
#define is_strterm_type(p,str_func) ((p)->lex_strterm->type & (str_func)) |
| 1508 |
|
| 1509 |
/* xxx ----------------------------- */ |
| 1510 |
|
| 1511 |
|
| 1512 |
#line 1513 "mrbgems/mruby-compiler/core/y.tab.c" |
| 1513 |
|
| 1514 |
# ifndef YY_CAST |
| 1515 |
# ifdef __cplusplus |
| 1516 |
# define YY_CAST(Type, Val) static_cast<Type> (Val) |
| 1517 |
# define YY_REINTERPRET_CAST(Type, Val) reinterpret_cast<Type> (Val) |
| 1518 |
# else |
| 1519 |
# define YY_CAST(Type, Val) ((Type) (Val)) |
| 1520 |
# define YY_REINTERPRET_CAST(Type, Val) ((Type) (Val)) |
| 1521 |
# endif |
| 1522 |
# endif |
| 1523 |
# ifndef YY_NULLPTR |
| 1524 |
# if defined __cplusplus |
| 1525 |
# if 201103L <= __cplusplus |
| 1526 |
# define YY_NULLPTR nullptr |
| 1527 |
# else |
| 1528 |
# define YY_NULLPTR 0 |
| 1529 |
# endif |
| 1530 |
# else |
| 1531 |
# define YY_NULLPTR ((void*)0) |
| 1532 |
# endif |
| 1533 |
# endif |
| 1534 |
|
| 1535 |
|
| 1536 |
/* Debug traces. */ |
| 1537 |
#ifndef YYDEBUG |
| 1538 |
# define YYDEBUG 0 |
| 1539 |
#endif |
| 1540 |
#if YYDEBUG |
| 1541 |
extern int yydebug; |
| 1542 |
#endif |
| 1543 |
|
| 1544 |
/* Token kinds. */ |
| 1545 |
#ifndef YYTOKENTYPE |
| 1546 |
# define YYTOKENTYPE |
| 1547 |
enum yytokentype |
| 1548 |
{ |
| 1549 |
YYEMPTY = -2, |
| 1550 |
YYEOF = 0, /* "end of file" */ |
| 1551 |
YYerror = 256, /* error */ |
| 1552 |
YYUNDEF = 257, /* "invalid token" */ |
| 1553 |
keyword_class = 258, /* "'class'" */ |
| 1554 |
keyword_module = 259, /* "'module'" */ |
| 1555 |
keyword_def = 260, /* "'def'" */ |
| 1556 |
keyword_begin = 261, /* "'begin'" */ |
| 1557 |
keyword_if = 262, /* "'if'" */ |
| 1558 |
keyword_unless = 263, /* "'unless'" */ |
| 1559 |
keyword_while = 264, /* "'while'" */ |
| 1560 |
keyword_until = 265, /* "'until'" */ |
| 1561 |
keyword_for = 266, /* "'for'" */ |
| 1562 |
keyword_undef = 267, /* "'undef'" */ |
| 1563 |
keyword_rescue = 268, /* "'rescue'" */ |
| 1564 |
keyword_ensure = 269, /* "'ensure'" */ |
| 1565 |
keyword_end = 270, /* "'end'" */ |
| 1566 |
keyword_then = 271, /* "'then'" */ |
| 1567 |
keyword_elsif = 272, /* "'elsif'" */ |
| 1568 |
keyword_else = 273, /* "'else'" */ |
| 1569 |
keyword_case = 274, /* "'case'" */ |
| 1570 |
keyword_when = 275, /* "'when'" */ |
| 1571 |
keyword_break = 276, /* "'break'" */ |
| 1572 |
keyword_next = 277, /* "'next'" */ |
| 1573 |
keyword_redo = 278, /* "'redo'" */ |
| 1574 |
keyword_retry = 279, /* "'retry'" */ |
| 1575 |
keyword_in = 280, /* "'in'" */ |
| 1576 |
keyword_do = 281, /* "'do'" */ |
| 1577 |
keyword_do_cond = 282, /* "'do' for condition" */ |
| 1578 |
keyword_do_block = 283, /* "'do' for block" */ |
| 1579 |
keyword_do_LAMBDA = 284, /* "'do' for lambda" */ |
| 1580 |
keyword_return = 285, /* "'return'" */ |
| 1581 |
keyword_yield = 286, /* "'yield'" */ |
| 1582 |
keyword_super = 287, /* "'super'" */ |
| 1583 |
keyword_self = 288, /* "'self'" */ |
| 1584 |
keyword_nil = 289, /* "'nil'" */ |
| 1585 |
keyword_true = 290, /* "'true'" */ |
| 1586 |
keyword_false = 291, /* "'false'" */ |
| 1587 |
keyword_and = 292, /* "'and'" */ |
| 1588 |
keyword_or = 293, /* "'or'" */ |
| 1589 |
keyword_not = 294, /* "'not'" */ |
| 1590 |
modifier_if = 295, /* "'if' modifier" */ |
| 1591 |
modifier_unless = 296, /* "'unless' modifier" */ |
| 1592 |
modifier_while = 297, /* "'while' modifier" */ |
| 1593 |
modifier_until = 298, /* "'until' modifier" */ |
| 1594 |
modifier_rescue = 299, /* "'rescue' modifier" */ |
| 1595 |
keyword_alias = 300, /* "'alis'" */ |
| 1596 |
keyword_BEGIN = 301, /* "'BEGIN'" */ |
| 1597 |
keyword_END = 302, /* "'END'" */ |
| 1598 |
keyword__LINE__ = 303, /* "'__LINE__'" */ |
| 1599 |
keyword__FILE__ = 304, /* "'__FILE__'" */ |
| 1600 |
keyword__ENCODING__ = 305, /* "'__ENCODING__'" */ |
| 1601 |
tIDENTIFIER = 306, /* "local variable or method" */ |
| 1602 |
tFID = 307, /* "method" */ |
| 1603 |
tGVAR = 308, /* "global variable" */ |
| 1604 |
tIVAR = 309, /* "instance variable" */ |
| 1605 |
tCONSTANT = 310, /* "constant" */ |
| 1606 |
tCVAR = 311, /* "class variable" */ |
| 1607 |
tLABEL_TAG = 312, /* "label" */ |
| 1608 |
tINTEGER = 313, /* "integer literal" */ |
| 1609 |
tFLOAT = 314, /* "float literal" */ |
| 1610 |
tCHAR = 315, /* "character literal" */ |
| 1611 |
tXSTRING = 316, /* tXSTRING */ |
| 1612 |
tREGEXP = 317, /* tREGEXP */ |
| 1613 |
tSTRING = 318, /* tSTRING */ |
| 1614 |
tSTRING_PART = 319, /* tSTRING_PART */ |
| 1615 |
tSTRING_MID = 320, /* tSTRING_MID */ |
| 1616 |
tNTH_REF = 321, /* tNTH_REF */ |
| 1617 |
tBACK_REF = 322, /* tBACK_REF */ |
| 1618 |
tREGEXP_END = 323, /* tREGEXP_END */ |
| 1619 |
tNUMPARAM = 324, /* "numbered parameter" */ |
| 1620 |
tUPLUS = 325, /* "unary plus" */ |
| 1621 |
tUMINUS = 326, /* "unary minus" */ |
| 1622 |
tCMP = 327, /* "<=>" */ |
| 1623 |
tEQ = 328, /* "==" */ |
| 1624 |
tEQQ = 329, /* "===" */ |
| 1625 |
tNEQ = 330, /* "!=" */ |
| 1626 |
tGEQ = 331, /* ">=" */ |
| 1627 |
tLEQ = 332, /* "<=" */ |
| 1628 |
tANDOP = 333, /* "&&" */ |
| 1629 |
tOROP = 334, /* "||" */ |
| 1630 |
tMATCH = 335, /* "=~" */ |
| 1631 |
tNMATCH = 336, /* "!~" */ |
| 1632 |
tDOT2 = 337, /* ".." */ |
| 1633 |
tDOT3 = 338, /* "..." */ |
| 1634 |
tBDOT2 = 339, /* tBDOT2 */ |
| 1635 |
tBDOT3 = 340, /* tBDOT3 */ |
| 1636 |
tAREF = 341, /* tAREF */ |
| 1637 |
tASET = 342, /* tASET */ |
| 1638 |
tLSHFT = 343, /* "<<" */ |
| 1639 |
tRSHFT = 344, /* ">>" */ |
| 1640 |
tCOLON2 = 345, /* "::" */ |
| 1641 |
tCOLON3 = 346, /* tCOLON3 */ |
| 1642 |
tOP_ASGN = 347, /* tOP_ASGN */ |
| 1643 |
tASSOC = 348, /* "=>" */ |
| 1644 |
tLPAREN = 349, /* tLPAREN */ |
| 1645 |
tLPAREN_ARG = 350, /* "(" */ |
| 1646 |
tRPAREN = 351, /* ")" */ |
| 1647 |
tLBRACK = 352, /* "[" */ |
| 1648 |
tLBRACE = 353, /* tLBRACE */ |
| 1649 |
tLBRACE_ARG = 354, /* "{" */ |
| 1650 |
tSTAR = 355, /* "*" */ |
| 1651 |
tPOW = 356, /* tPOW */ |
| 1652 |
tDSTAR = 357, /* "**" */ |
| 1653 |
tAMPER = 358, /* "&" */ |
| 1654 |
tLAMBDA = 359, /* "->" */ |
| 1655 |
tANDDOT = 360, /* "&." */ |
| 1656 |
tSYMBEG = 361, /* "symbol" */ |
| 1657 |
tSTRING_BEG = 362, /* "string literal" */ |
| 1658 |
tXSTRING_BEG = 363, /* tXSTRING_BEG */ |
| 1659 |
tSTRING_DVAR = 364, /* tSTRING_DVAR */ |
| 1660 |
tREGEXP_BEG = 365, /* tREGEXP_BEG */ |
| 1661 |
tWORDS_BEG = 366, /* tWORDS_BEG */ |
| 1662 |
tSYMBOLS_BEG = 367, /* tSYMBOLS_BEG */ |
| 1663 |
tLAMBEG = 368, /* tLAMBEG */ |
| 1664 |
tHEREDOC_BEG = 369, /* "here document" */ |
| 1665 |
tHEREDOC_END = 370, /* tHEREDOC_END */ |
| 1666 |
tLITERAL_DELIM = 371, /* tLITERAL_DELIM */ |
| 1667 |
tHD_LITERAL_DELIM = 372, /* tHD_LITERAL_DELIM */ |
| 1668 |
tHD_STRING_PART = 373, /* tHD_STRING_PART */ |
| 1669 |
tHD_STRING_MID = 374, /* tHD_STRING_MID */ |
| 1670 |
tLOWEST = 375, /* tLOWEST */ |
| 1671 |
tUMINUS_NUM = 376, /* tUMINUS_NUM */ |
| 1672 |
tLAST_TOKEN = 377 /* tLAST_TOKEN */ |
| 1673 |
}; |
| 1674 |
typedef enum yytokentype yytoken_kind_t; |
| 1675 |
#endif |
| 1676 |
|
| 1677 |
/* Value type. */ |
| 1678 |
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED |
| 1679 |
union YYSTYPE |
| 1680 |
{ |
| 1681 |
#line 1454 "mrbgems/mruby-compiler/core/parse.y" |
| 1682 |
|
| 1683 |
node *nd; |
| 1684 |
mrb_sym id; |
| 1685 |
int num; |
| 1686 |
stack_type stack; |
| 1687 |
const struct vtable *vars; |
| 1688 |
|
| 1689 |
#line 1690 "mrbgems/mruby-compiler/core/y.tab.c" |
| 1690 |
|
| 1691 |
}; |
| 1692 |
typedef union YYSTYPE YYSTYPE; |
| 1693 |
# define YYSTYPE_IS_TRIVIAL 1 |
| 1694 |
# define YYSTYPE_IS_DECLARED 1 |
| 1695 |
#endif |
| 1696 |
|
| 1697 |
|
| 1698 |
|
| 1699 |
|
| 1700 |
int yyparse (parser_state *p); |
| 1701 |
|
| 1702 |
|
| 1703 |
|
| 1704 |
/* Symbol kind. */ |
| 1705 |
enum yysymbol_kind_t |
| 1706 |
{ |
| 1707 |
YYSYMBOL_YYEMPTY = -2, |
| 1708 |
YYSYMBOL_YYEOF = 0, /* "end of file" */ |
| 1709 |
YYSYMBOL_YYerror = 1, /* error */ |
| 1710 |
YYSYMBOL_YYUNDEF = 2, /* "invalid token" */ |
| 1711 |
YYSYMBOL_keyword_class = 3, /* "'class'" */ |
| 1712 |
YYSYMBOL_keyword_module = 4, /* "'module'" */ |
| 1713 |
YYSYMBOL_keyword_def = 5, /* "'def'" */ |
| 1714 |
YYSYMBOL_keyword_begin = 6, /* "'begin'" */ |
| 1715 |
YYSYMBOL_keyword_if = 7, /* "'if'" */ |
| 1716 |
YYSYMBOL_keyword_unless = 8, /* "'unless'" */ |
| 1717 |
YYSYMBOL_keyword_while = 9, /* "'while'" */ |
| 1718 |
YYSYMBOL_keyword_until = 10, /* "'until'" */ |
| 1719 |
YYSYMBOL_keyword_for = 11, /* "'for'" */ |
| 1720 |
YYSYMBOL_keyword_undef = 12, /* "'undef'" */ |
| 1721 |
YYSYMBOL_keyword_rescue = 13, /* "'rescue'" */ |
| 1722 |
YYSYMBOL_keyword_ensure = 14, /* "'ensure'" */ |
| 1723 |
YYSYMBOL_keyword_end = 15, /* "'end'" */ |
| 1724 |
YYSYMBOL_keyword_then = 16, /* "'then'" */ |
| 1725 |
YYSYMBOL_keyword_elsif = 17, /* "'elsif'" */ |
| 1726 |
YYSYMBOL_keyword_else = 18, /* "'else'" */ |
| 1727 |
YYSYMBOL_keyword_case = 19, /* "'case'" */ |
| 1728 |
YYSYMBOL_keyword_when = 20, /* "'when'" */ |
| 1729 |
YYSYMBOL_keyword_break = 21, /* "'break'" */ |
| 1730 |
YYSYMBOL_keyword_next = 22, /* "'next'" */ |
| 1731 |
YYSYMBOL_keyword_redo = 23, /* "'redo'" */ |
| 1732 |
YYSYMBOL_keyword_retry = 24, /* "'retry'" */ |
| 1733 |
YYSYMBOL_keyword_in = 25, /* "'in'" */ |
| 1734 |
YYSYMBOL_keyword_do = 26, /* "'do'" */ |
| 1735 |
YYSYMBOL_keyword_do_cond = 27, /* "'do' for condition" */ |
| 1736 |
YYSYMBOL_keyword_do_block = 28, /* "'do' for block" */ |
| 1737 |
YYSYMBOL_keyword_do_LAMBDA = 29, /* "'do' for lambda" */ |
| 1738 |
YYSYMBOL_keyword_return = 30, /* "'return'" */ |
| 1739 |
YYSYMBOL_keyword_yield = 31, /* "'yield'" */ |
| 1740 |
YYSYMBOL_keyword_super = 32, /* "'super'" */ |
| 1741 |
YYSYMBOL_keyword_self = 33, /* "'self'" */ |
| 1742 |
YYSYMBOL_keyword_nil = 34, /* "'nil'" */ |
| 1743 |
YYSYMBOL_keyword_true = 35, /* "'true'" */ |
| 1744 |
YYSYMBOL_keyword_false = 36, /* "'false'" */ |
| 1745 |
YYSYMBOL_keyword_and = 37, /* "'and'" */ |
| 1746 |
YYSYMBOL_keyword_or = 38, /* "'or'" */ |
| 1747 |
YYSYMBOL_keyword_not = 39, /* "'not'" */ |
| 1748 |
YYSYMBOL_modifier_if = 40, /* "'if' modifier" */ |
| 1749 |
YYSYMBOL_modifier_unless = 41, /* "'unless' modifier" */ |
| 1750 |
YYSYMBOL_modifier_while = 42, /* "'while' modifier" */ |
| 1751 |
YYSYMBOL_modifier_until = 43, /* "'until' modifier" */ |
| 1752 |
YYSYMBOL_modifier_rescue = 44, /* "'rescue' modifier" */ |
| 1753 |
YYSYMBOL_keyword_alias = 45, /* "'alis'" */ |
| 1754 |
YYSYMBOL_keyword_BEGIN = 46, /* "'BEGIN'" */ |
| 1755 |
YYSYMBOL_keyword_END = 47, /* "'END'" */ |
| 1756 |
YYSYMBOL_keyword__LINE__ = 48, /* "'__LINE__'" */ |
| 1757 |
YYSYMBOL_keyword__FILE__ = 49, /* "'__FILE__'" */ |
| 1758 |
YYSYMBOL_keyword__ENCODING__ = 50, /* "'__ENCODING__'" */ |
| 1759 |
YYSYMBOL_tIDENTIFIER = 51, /* "local variable or method" */ |
| 1760 |
YYSYMBOL_tFID = 52, /* "method" */ |
| 1761 |
YYSYMBOL_tGVAR = 53, /* "global variable" */ |
| 1762 |
YYSYMBOL_tIVAR = 54, /* "instance variable" */ |
| 1763 |
YYSYMBOL_tCONSTANT = 55, /* "constant" */ |
| 1764 |
YYSYMBOL_tCVAR = 56, /* "class variable" */ |
| 1765 |
YYSYMBOL_tLABEL_TAG = 57, /* "label" */ |
| 1766 |
YYSYMBOL_tINTEGER = 58, /* "integer literal" */ |
| 1767 |
YYSYMBOL_tFLOAT = 59, /* "float literal" */ |
| 1768 |
YYSYMBOL_tCHAR = 60, /* "character literal" */ |
| 1769 |
YYSYMBOL_tXSTRING = 61, /* tXSTRING */ |
| 1770 |
YYSYMBOL_tREGEXP = 62, /* tREGEXP */ |
| 1771 |
YYSYMBOL_tSTRING = 63, /* tSTRING */ |
| 1772 |
YYSYMBOL_tSTRING_PART = 64, /* tSTRING_PART */ |
| 1773 |
YYSYMBOL_tSTRING_MID = 65, /* tSTRING_MID */ |
| 1774 |
YYSYMBOL_tNTH_REF = 66, /* tNTH_REF */ |
| 1775 |
YYSYMBOL_tBACK_REF = 67, /* tBACK_REF */ |
| 1776 |
YYSYMBOL_tREGEXP_END = 68, /* tREGEXP_END */ |
| 1777 |
YYSYMBOL_tNUMPARAM = 69, /* "numbered parameter" */ |
| 1778 |
YYSYMBOL_tUPLUS = 70, /* "unary plus" */ |
| 1779 |
YYSYMBOL_tUMINUS = 71, /* "unary minus" */ |
| 1780 |
YYSYMBOL_tCMP = 72, /* "<=>" */ |
| 1781 |
YYSYMBOL_tEQ = 73, /* "==" */ |
| 1782 |
YYSYMBOL_tEQQ = 74, /* "===" */ |
| 1783 |
YYSYMBOL_tNEQ = 75, /* "!=" */ |
| 1784 |
YYSYMBOL_tGEQ = 76, /* ">=" */ |
| 1785 |
YYSYMBOL_tLEQ = 77, /* "<=" */ |
| 1786 |
YYSYMBOL_tANDOP = 78, /* "&&" */ |
| 1787 |
YYSYMBOL_tOROP = 79, /* "||" */ |
| 1788 |
YYSYMBOL_tMATCH = 80, /* "=~" */ |
| 1789 |
YYSYMBOL_tNMATCH = 81, /* "!~" */ |
| 1790 |
YYSYMBOL_tDOT2 = 82, /* ".." */ |
| 1791 |
YYSYMBOL_tDOT3 = 83, /* "..." */ |
| 1792 |
YYSYMBOL_tBDOT2 = 84, /* tBDOT2 */ |
| 1793 |
YYSYMBOL_tBDOT3 = 85, /* tBDOT3 */ |
| 1794 |
YYSYMBOL_tAREF = 86, /* tAREF */ |
| 1795 |
YYSYMBOL_tASET = 87, /* tASET */ |
| 1796 |
YYSYMBOL_tLSHFT = 88, /* "<<" */ |
| 1797 |
YYSYMBOL_tRSHFT = 89, /* ">>" */ |
| 1798 |
YYSYMBOL_tCOLON2 = 90, /* "::" */ |
| 1799 |
YYSYMBOL_tCOLON3 = 91, /* tCOLON3 */ |
| 1800 |
YYSYMBOL_tOP_ASGN = 92, /* tOP_ASGN */ |
| 1801 |
YYSYMBOL_tASSOC = 93, /* "=>" */ |
| 1802 |
YYSYMBOL_tLPAREN = 94, /* tLPAREN */ |
| 1803 |
YYSYMBOL_tLPAREN_ARG = 95, /* "(" */ |
| 1804 |
YYSYMBOL_tRPAREN = 96, /* ")" */ |
| 1805 |
YYSYMBOL_tLBRACK = 97, /* "[" */ |
| 1806 |
YYSYMBOL_tLBRACE = 98, /* tLBRACE */ |
| 1807 |
YYSYMBOL_tLBRACE_ARG = 99, /* "{" */ |
| 1808 |
YYSYMBOL_tSTAR = 100, /* "*" */ |
| 1809 |
YYSYMBOL_tPOW = 101, /* tPOW */ |
| 1810 |
YYSYMBOL_tDSTAR = 102, /* "**" */ |
| 1811 |
YYSYMBOL_tAMPER = 103, /* "&" */ |
| 1812 |
YYSYMBOL_tLAMBDA = 104, /* "->" */ |
| 1813 |
YYSYMBOL_tANDDOT = 105, /* "&." */ |
| 1814 |
YYSYMBOL_tSYMBEG = 106, /* "symbol" */ |
| 1815 |
YYSYMBOL_tSTRING_BEG = 107, /* "string literal" */ |
| 1816 |
YYSYMBOL_tXSTRING_BEG = 108, /* tXSTRING_BEG */ |
| 1817 |
YYSYMBOL_tSTRING_DVAR = 109, /* tSTRING_DVAR */ |
| 1818 |
YYSYMBOL_tREGEXP_BEG = 110, /* tREGEXP_BEG */ |
| 1819 |
YYSYMBOL_tWORDS_BEG = 111, /* tWORDS_BEG */ |
| 1820 |
YYSYMBOL_tSYMBOLS_BEG = 112, /* tSYMBOLS_BEG */ |
| 1821 |
YYSYMBOL_tLAMBEG = 113, /* tLAMBEG */ |
| 1822 |
YYSYMBOL_tHEREDOC_BEG = 114, /* "here document" */ |
| 1823 |
YYSYMBOL_tHEREDOC_END = 115, /* tHEREDOC_END */ |
| 1824 |
YYSYMBOL_tLITERAL_DELIM = 116, /* tLITERAL_DELIM */ |
| 1825 |
YYSYMBOL_tHD_LITERAL_DELIM = 117, /* tHD_LITERAL_DELIM */ |
| 1826 |
YYSYMBOL_tHD_STRING_PART = 118, /* tHD_STRING_PART */ |
| 1827 |
YYSYMBOL_tHD_STRING_MID = 119, /* tHD_STRING_MID */ |
| 1828 |
YYSYMBOL_tLOWEST = 120, /* tLOWEST */ |
| 1829 |
YYSYMBOL_121_ = 121, /* '=' */ |
| 1830 |
YYSYMBOL_122_ = 122, /* '?' */ |
| 1831 |
YYSYMBOL_123_ = 123, /* ':' */ |
| 1832 |
YYSYMBOL_124_ = 124, /* '>' */ |
| 1833 |
YYSYMBOL_125_ = 125, /* '<' */ |
| 1834 |
YYSYMBOL_126_ = 126, /* '|' */ |
| 1835 |
YYSYMBOL_127_ = 127, /* '^' */ |
| 1836 |
YYSYMBOL_128_ = 128, /* '&' */ |
| 1837 |
YYSYMBOL_129_ = 129, /* '+' */ |
| 1838 |
YYSYMBOL_130_ = 130, /* '-' */ |
| 1839 |
YYSYMBOL_131_ = 131, /* '*' */ |
| 1840 |
YYSYMBOL_132_ = 132, /* '/' */ |
| 1841 |
YYSYMBOL_133_ = 133, /* '%' */ |
| 1842 |
YYSYMBOL_tUMINUS_NUM = 134, /* tUMINUS_NUM */ |
| 1843 |
YYSYMBOL_135_ = 135, /* '!' */ |
| 1844 |
YYSYMBOL_136_ = 136, /* '~' */ |
| 1845 |
YYSYMBOL_tLAST_TOKEN = 137, /* tLAST_TOKEN */ |
| 1846 |
YYSYMBOL_138_ = 138, /* '{' */ |
| 1847 |
YYSYMBOL_139_ = 139, /* '}' */ |
| 1848 |
YYSYMBOL_140_ = 140, /* '[' */ |
| 1849 |
YYSYMBOL_141_ = 141, /* ']' */ |
| 1850 |
YYSYMBOL_142_ = 142, /* ',' */ |
| 1851 |
YYSYMBOL_143_ = 143, /* '`' */ |
| 1852 |
YYSYMBOL_144_ = 144, /* '(' */ |
| 1853 |
YYSYMBOL_145_ = 145, /* ')' */ |
| 1854 |
YYSYMBOL_146_ = 146, /* ';' */ |
| 1855 |
YYSYMBOL_147_ = 147, /* '.' */ |
| 1856 |
YYSYMBOL_148_n_ = 148, /* '\n' */ |
| 1857 |
YYSYMBOL_YYACCEPT = 149, /* $accept */ |
| 1858 |
YYSYMBOL_program = 150, /* program */ |
| 1859 |
YYSYMBOL_151_1 = 151, /* $@1 */ |
| 1860 |
YYSYMBOL_top_compstmt = 152, /* top_compstmt */ |
| 1861 |
YYSYMBOL_top_stmts = 153, /* top_stmts */ |
| 1862 |
YYSYMBOL_top_stmt = 154, /* top_stmt */ |
| 1863 |
YYSYMBOL_155_2 = 155, /* @2 */ |
| 1864 |
YYSYMBOL_bodystmt = 156, /* bodystmt */ |
| 1865 |
YYSYMBOL_compstmt = 157, /* compstmt */ |
| 1866 |
YYSYMBOL_stmts = 158, /* stmts */ |
| 1867 |
YYSYMBOL_stmt = 159, /* stmt */ |
| 1868 |
YYSYMBOL_160_3 = 160, /* $@3 */ |
| 1869 |
YYSYMBOL_command_asgn = 161, /* command_asgn */ |
| 1870 |
YYSYMBOL_command_rhs = 162, /* command_rhs */ |
| 1871 |
YYSYMBOL_expr = 163, /* expr */ |
| 1872 |
YYSYMBOL_defn_head = 164, /* defn_head */ |
| 1873 |
YYSYMBOL_defs_head = 165, /* defs_head */ |
| 1874 |
YYSYMBOL_166_4 = 166, /* $@4 */ |
| 1875 |
YYSYMBOL_expr_value = 167, /* expr_value */ |
| 1876 |
YYSYMBOL_command_call = 168, /* command_call */ |
| 1877 |
YYSYMBOL_block_command = 169, /* block_command */ |
| 1878 |
YYSYMBOL_cmd_brace_block = 170, /* cmd_brace_block */ |
| 1879 |
YYSYMBOL_171_5 = 171, /* $@5 */ |
| 1880 |
YYSYMBOL_command = 172, /* command */ |
| 1881 |
YYSYMBOL_mlhs = 173, /* mlhs */ |
| 1882 |
YYSYMBOL_mlhs_inner = 174, /* mlhs_inner */ |
| 1883 |
YYSYMBOL_mlhs_basic = 175, /* mlhs_basic */ |
| 1884 |
YYSYMBOL_mlhs_item = 176, /* mlhs_item */ |
| 1885 |
YYSYMBOL_mlhs_list = 177, /* mlhs_list */ |
| 1886 |
YYSYMBOL_mlhs_post = 178, /* mlhs_post */ |
| 1887 |
YYSYMBOL_mlhs_node = 179, /* mlhs_node */ |
| 1888 |
YYSYMBOL_lhs = 180, /* lhs */ |
| 1889 |
YYSYMBOL_cname = 181, /* cname */ |
| 1890 |
YYSYMBOL_cpath = 182, /* cpath */ |
| 1891 |
YYSYMBOL_fname = 183, /* fname */ |
| 1892 |
YYSYMBOL_fsym = 184, /* fsym */ |
| 1893 |
YYSYMBOL_undef_list = 185, /* undef_list */ |
| 1894 |
YYSYMBOL_186_6 = 186, /* $@6 */ |
| 1895 |
YYSYMBOL_op = 187, /* op */ |
| 1896 |
YYSYMBOL_reswords = 188, /* reswords */ |
| 1897 |
YYSYMBOL_arg = 189, /* arg */ |
| 1898 |
YYSYMBOL_aref_args = 190, /* aref_args */ |
| 1899 |
YYSYMBOL_arg_rhs = 191, /* arg_rhs */ |
| 1900 |
YYSYMBOL_paren_args = 192, /* paren_args */ |
| 1901 |
YYSYMBOL_opt_paren_args = 193, /* opt_paren_args */ |
| 1902 |
YYSYMBOL_opt_call_args = 194, /* opt_call_args */ |
| 1903 |
YYSYMBOL_call_args = 195, /* call_args */ |
| 1904 |
YYSYMBOL_command_args = 196, /* command_args */ |
| 1905 |
YYSYMBOL_197_7 = 197, /* @7 */ |
| 1906 |
YYSYMBOL_block_arg = 198, /* block_arg */ |
| 1907 |
YYSYMBOL_opt_block_arg = 199, /* opt_block_arg */ |
| 1908 |
YYSYMBOL_comma = 200, /* comma */ |
| 1909 |
YYSYMBOL_args = 201, /* args */ |
| 1910 |
YYSYMBOL_mrhs = 202, /* mrhs */ |
| 1911 |
YYSYMBOL_primary = 203, /* primary */ |
| 1912 |
YYSYMBOL_204_8 = 204, /* @8 */ |
| 1913 |
YYSYMBOL_205_9 = 205, /* @9 */ |
| 1914 |
YYSYMBOL_206_10 = 206, /* $@10 */ |
| 1915 |
YYSYMBOL_207_11 = 207, /* $@11 */ |
| 1916 |
YYSYMBOL_208_12 = 208, /* @12 */ |
| 1917 |
YYSYMBOL_209_13 = 209, /* @13 */ |
| 1918 |
YYSYMBOL_210_14 = 210, /* $@14 */ |
| 1919 |
YYSYMBOL_211_15 = 211, /* $@15 */ |
| 1920 |
YYSYMBOL_212_16 = 212, /* $@16 */ |
| 1921 |
YYSYMBOL_213_17 = 213, /* $@17 */ |
| 1922 |
YYSYMBOL_214_18 = 214, /* $@18 */ |
| 1923 |
YYSYMBOL_215_19 = 215, /* $@19 */ |
| 1924 |
YYSYMBOL_216_20 = 216, /* @20 */ |
| 1925 |
YYSYMBOL_217_21 = 217, /* @21 */ |
| 1926 |
YYSYMBOL_218_22 = 218, /* @22 */ |
| 1927 |
YYSYMBOL_219_23 = 219, /* @23 */ |
| 1928 |
YYSYMBOL_primary_value = 220, /* primary_value */ |
| 1929 |
YYSYMBOL_then = 221, /* then */ |
| 1930 |
YYSYMBOL_do = 222, /* do */ |
| 1931 |
YYSYMBOL_if_tail = 223, /* if_tail */ |
| 1932 |
YYSYMBOL_opt_else = 224, /* opt_else */ |
| 1933 |
YYSYMBOL_for_var = 225, /* for_var */ |
| 1934 |
YYSYMBOL_f_margs = 226, /* f_margs */ |
| 1935 |
YYSYMBOL_227_24 = 227, /* $@24 */ |
| 1936 |
YYSYMBOL_block_args_tail = 228, /* block_args_tail */ |
| 1937 |
YYSYMBOL_opt_block_args_tail = 229, /* opt_block_args_tail */ |
| 1938 |
YYSYMBOL_block_param = 230, /* block_param */ |
| 1939 |
YYSYMBOL_opt_block_param = 231, /* opt_block_param */ |
| 1940 |
YYSYMBOL_block_param_def = 232, /* block_param_def */ |
| 1941 |
YYSYMBOL_233_25 = 233, /* $@25 */ |
| 1942 |
YYSYMBOL_opt_bv_decl = 234, /* opt_bv_decl */ |
| 1943 |
YYSYMBOL_bv_decls = 235, /* bv_decls */ |
| 1944 |
YYSYMBOL_bvar = 236, /* bvar */ |
| 1945 |
YYSYMBOL_f_larglist = 237, /* f_larglist */ |
| 1946 |
YYSYMBOL_lambda_body = 238, /* lambda_body */ |
| 1947 |
YYSYMBOL_do_block = 239, /* do_block */ |
| 1948 |
YYSYMBOL_240_26 = 240, /* @26 */ |
| 1949 |
YYSYMBOL_block_call = 241, /* block_call */ |
| 1950 |
YYSYMBOL_method_call = 242, /* method_call */ |
| 1951 |
YYSYMBOL_brace_block = 243, /* brace_block */ |
| 1952 |
YYSYMBOL_244_27 = 244, /* @27 */ |
| 1953 |
YYSYMBOL_245_28 = 245, /* @28 */ |
| 1954 |
YYSYMBOL_case_body = 246, /* case_body */ |
| 1955 |
YYSYMBOL_cases = 247, /* cases */ |
| 1956 |
YYSYMBOL_opt_rescue = 248, /* opt_rescue */ |
| 1957 |
YYSYMBOL_exc_list = 249, /* exc_list */ |
| 1958 |
YYSYMBOL_exc_var = 250, /* exc_var */ |
| 1959 |
YYSYMBOL_opt_ensure = 251, /* opt_ensure */ |
| 1960 |
YYSYMBOL_literal = 252, /* literal */ |
| 1961 |
YYSYMBOL_string = 253, /* string */ |
| 1962 |
YYSYMBOL_string_fragment = 254, /* string_fragment */ |
| 1963 |
YYSYMBOL_string_rep = 255, /* string_rep */ |
| 1964 |
YYSYMBOL_string_interp = 256, /* string_interp */ |
| 1965 |
YYSYMBOL_257_29 = 257, /* @29 */ |
| 1966 |
YYSYMBOL_xstring = 258, /* xstring */ |
| 1967 |
YYSYMBOL_regexp = 259, /* regexp */ |
| 1968 |
YYSYMBOL_heredoc = 260, /* heredoc */ |
| 1969 |
YYSYMBOL_heredoc_bodies = 261, /* heredoc_bodies */ |
| 1970 |
YYSYMBOL_heredoc_body = 262, /* heredoc_body */ |
| 1971 |
YYSYMBOL_heredoc_string_rep = 263, /* heredoc_string_rep */ |
| 1972 |
YYSYMBOL_heredoc_string_interp = 264, /* heredoc_string_interp */ |
| 1973 |
YYSYMBOL_265_30 = 265, /* @30 */ |
| 1974 |
YYSYMBOL_words = 266, /* words */ |
| 1975 |
YYSYMBOL_symbol = 267, /* symbol */ |
| 1976 |
YYSYMBOL_basic_symbol = 268, /* basic_symbol */ |
| 1977 |
YYSYMBOL_sym = 269, /* sym */ |
| 1978 |
YYSYMBOL_symbols = 270, /* symbols */ |
| 1979 |
YYSYMBOL_numeric = 271, /* numeric */ |
| 1980 |
YYSYMBOL_variable = 272, /* variable */ |
| 1981 |
YYSYMBOL_var_lhs = 273, /* var_lhs */ |
| 1982 |
YYSYMBOL_var_ref = 274, /* var_ref */ |
| 1983 |
YYSYMBOL_backref = 275, /* backref */ |
| 1984 |
YYSYMBOL_superclass = 276, /* superclass */ |
| 1985 |
YYSYMBOL_277_31 = 277, /* $@31 */ |
| 1986 |
YYSYMBOL_f_opt_arglist_paren = 278, /* f_opt_arglist_paren */ |
| 1987 |
YYSYMBOL_f_arglist_paren = 279, /* f_arglist_paren */ |
| 1988 |
YYSYMBOL_f_arglist = 280, /* f_arglist */ |
| 1989 |
YYSYMBOL_f_label = 281, /* f_label */ |
| 1990 |
YYSYMBOL_f_kw = 282, /* f_kw */ |
| 1991 |
YYSYMBOL_f_block_kw = 283, /* f_block_kw */ |
| 1992 |
YYSYMBOL_f_block_kwarg = 284, /* f_block_kwarg */ |
| 1993 |
YYSYMBOL_f_kwarg = 285, /* f_kwarg */ |
| 1994 |
YYSYMBOL_kwrest_mark = 286, /* kwrest_mark */ |
| 1995 |
YYSYMBOL_f_kwrest = 287, /* f_kwrest */ |
| 1996 |
YYSYMBOL_args_tail = 288, /* args_tail */ |
| 1997 |
YYSYMBOL_opt_args_tail = 289, /* opt_args_tail */ |
| 1998 |
YYSYMBOL_f_args = 290, /* f_args */ |
| 1999 |
YYSYMBOL_f_bad_arg = 291, /* f_bad_arg */ |
| 2000 |
YYSYMBOL_f_norm_arg = 292, /* f_norm_arg */ |
| 2001 |
YYSYMBOL_f_arg_item = 293, /* f_arg_item */ |
| 2002 |
YYSYMBOL_294_32 = 294, /* @32 */ |
| 2003 |
YYSYMBOL_f_arg = 295, /* f_arg */ |
| 2004 |
YYSYMBOL_f_opt_asgn = 296, /* f_opt_asgn */ |
| 2005 |
YYSYMBOL_f_opt = 297, /* f_opt */ |
| 2006 |
YYSYMBOL_f_block_opt = 298, /* f_block_opt */ |
| 2007 |
YYSYMBOL_f_block_optarg = 299, /* f_block_optarg */ |
| 2008 |
YYSYMBOL_f_optarg = 300, /* f_optarg */ |
| 2009 |
YYSYMBOL_restarg_mark = 301, /* restarg_mark */ |
| 2010 |
YYSYMBOL_f_rest_arg = 302, /* f_rest_arg */ |
| 2011 |
YYSYMBOL_blkarg_mark = 303, /* blkarg_mark */ |
| 2012 |
YYSYMBOL_f_block_arg = 304, /* f_block_arg */ |
| 2013 |
YYSYMBOL_opt_f_block_arg = 305, /* opt_f_block_arg */ |
| 2014 |
YYSYMBOL_singleton = 306, /* singleton */ |
| 2015 |
YYSYMBOL_307_33 = 307, /* $@33 */ |
| 2016 |
YYSYMBOL_assoc_list = 308, /* assoc_list */ |
| 2017 |
YYSYMBOL_assocs = 309, /* assocs */ |
| 2018 |
YYSYMBOL_assoc = 310, /* assoc */ |
| 2019 |
YYSYMBOL_operation = 311, /* operation */ |
| 2020 |
YYSYMBOL_operation2 = 312, /* operation2 */ |
| 2021 |
YYSYMBOL_operation3 = 313, /* operation3 */ |
| 2022 |
YYSYMBOL_dot_or_colon = 314, /* dot_or_colon */ |
| 2023 |
YYSYMBOL_call_op = 315, /* call_op */ |
| 2024 |
YYSYMBOL_call_op2 = 316, /* call_op2 */ |
| 2025 |
YYSYMBOL_opt_terms = 317, /* opt_terms */ |
| 2026 |
YYSYMBOL_opt_nl = 318, /* opt_nl */ |
| 2027 |
YYSYMBOL_rparen = 319, /* rparen */ |
| 2028 |
YYSYMBOL_trailer = 320, /* trailer */ |
| 2029 |
YYSYMBOL_term = 321, /* term */ |
| 2030 |
YYSYMBOL_nl = 322, /* nl */ |
| 2031 |
YYSYMBOL_terms = 323, /* terms */ |
| 2032 |
YYSYMBOL_none = 324 /* none */ |
| 2033 |
}; |
| 2034 |
typedef enum yysymbol_kind_t yysymbol_kind_t; |
| 2035 |
|
| 2036 |
|
| 2037 |
|
| 2038 |
|
| 2039 |
#ifdef short |
| 2040 |
# undef short |
| 2041 |
#endif |
| 2042 |
|
| 2043 |
/* On compilers that do not define __PTRDIFF_MAX__ etc., make sure |
| 2044 |
<limits.h> and (if available) <stdint.h> are included |
| 2045 |
so that the code can choose integer types of a good width. */ |
| 2046 |
|
| 2047 |
#ifndef __PTRDIFF_MAX__ |
| 2048 |
# include <limits.h> /* INFRINGES ON USER NAME SPACE */ |
| 2049 |
# if defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__ |
| 2050 |
# include <stdint.h> /* INFRINGES ON USER NAME SPACE */ |
| 2051 |
# define YY_STDINT_H |
| 2052 |
# endif |
| 2053 |
#endif |
| 2054 |
|
| 2055 |
/* Narrow types that promote to a signed type and that can represent a |
| 2056 |
signed or unsigned integer of at least N bits. In tables they can |
| 2057 |
save space and decrease cache pressure. Promoting to a signed type |
| 2058 |
helps avoid bugs in integer arithmetic. */ |
| 2059 |
|
| 2060 |
#ifdef __INT_LEAST8_MAX__ |
| 2061 |
typedef __INT_LEAST8_TYPE__ yytype_int8; |
| 2062 |
#elif defined YY_STDINT_H |
| 2063 |
typedef int_least8_t yytype_int8; |
| 2064 |
#else |
| 2065 |
typedef signed char yytype_int8; |
| 2066 |
#endif |
| 2067 |
|
| 2068 |
#ifdef __INT_LEAST16_MAX__ |
| 2069 |
typedef __INT_LEAST16_TYPE__ yytype_int16; |
| 2070 |
#elif defined YY_STDINT_H |
| 2071 |
typedef int_least16_t yytype_int16; |
| 2072 |
#else |
| 2073 |
typedef short yytype_int16; |
| 2074 |
#endif |
| 2075 |
|
| 2076 |
/* Work around bug in HP-UX 11.23, which defines these macros |
| 2077 |
incorrectly for preprocessor constants. This workaround can likely |
| 2078 |
be removed in 2023, as HPE has promised support for HP-UX 11.23 |
| 2079 |
(aka HP-UX 11i v2) only through the end of 2022; see Table 2 of |
| 2080 |
<https://h20195.www2.hpe.com/V2/getpdf.aspx/4AA4-7673ENW.pdf>. */ |
| 2081 |
#ifdef __hpux |
| 2082 |
# undef UINT_LEAST8_MAX |
| 2083 |
# undef UINT_LEAST16_MAX |
| 2084 |
# define UINT_LEAST8_MAX 255 |
| 2085 |
# define UINT_LEAST16_MAX 65535 |
| 2086 |
#endif |
| 2087 |
|
| 2088 |
#if defined __UINT_LEAST8_MAX__ && __UINT_LEAST8_MAX__ <= __INT_MAX__ |
| 2089 |
typedef __UINT_LEAST8_TYPE__ yytype_uint8; |
| 2090 |
#elif (!defined __UINT_LEAST8_MAX__ && defined YY_STDINT_H \ |
| 2091 |
&& UINT_LEAST8_MAX <= INT_MAX) |
| 2092 |
typedef uint_least8_t yytype_uint8; |
| 2093 |
#elif !defined __UINT_LEAST8_MAX__ && UCHAR_MAX <= INT_MAX |
| 2094 |
typedef unsigned char yytype_uint8; |
| 2095 |
#else |
| 2096 |
typedef short yytype_uint8; |
| 2097 |
#endif |
| 2098 |
|
| 2099 |
#if defined __UINT_LEAST16_MAX__ && __UINT_LEAST16_MAX__ <= __INT_MAX__ |
| 2100 |
typedef __UINT_LEAST16_TYPE__ yytype_uint16; |
| 2101 |
#elif (!defined __UINT_LEAST16_MAX__ && defined YY_STDINT_H \ |
| 2102 |
&& UINT_LEAST16_MAX <= INT_MAX) |
| 2103 |
typedef uint_least16_t yytype_uint16; |
| 2104 |
#elif !defined __UINT_LEAST16_MAX__ && USHRT_MAX <= INT_MAX |
| 2105 |
typedef unsigned short yytype_uint16; |
| 2106 |
#else |
| 2107 |
typedef int yytype_uint16; |
| 2108 |
#endif |
| 2109 |
|
| 2110 |
#ifndef YYPTRDIFF_T |
| 2111 |
# if defined __PTRDIFF_TYPE__ && defined __PTRDIFF_MAX__ |
| 2112 |
# define YYPTRDIFF_T __PTRDIFF_TYPE__ |
| 2113 |
# define YYPTRDIFF_MAXIMUM __PTRDIFF_MAX__ |
| 2114 |
# elif defined PTRDIFF_MAX |
| 2115 |
# ifndef ptrdiff_t |
| 2116 |
# include <stddef.h> /* INFRINGES ON USER NAME SPACE */ |
| 2117 |
# endif |
| 2118 |
# define YYPTRDIFF_T ptrdiff_t |
| 2119 |
# define YYPTRDIFF_MAXIMUM PTRDIFF_MAX |
| 2120 |
# else |
| 2121 |
# define YYPTRDIFF_T long |
| 2122 |
# define YYPTRDIFF_MAXIMUM LONG_MAX |
| 2123 |
# endif |
| 2124 |
#endif |
| 2125 |
|
| 2126 |
#ifndef YYSIZE_T |
| 2127 |
# ifdef __SIZE_TYPE__ |
| 2128 |
# define YYSIZE_T __SIZE_TYPE__ |
| 2129 |
# elif defined size_t |
| 2130 |
# define YYSIZE_T size_t |
| 2131 |
# elif defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__ |
| 2132 |
# include <stddef.h> /* INFRINGES ON USER NAME SPACE */ |
| 2133 |
# define YYSIZE_T size_t |
| 2134 |
# else |
| 2135 |
# define YYSIZE_T unsigned |
| 2136 |
# endif |
| 2137 |
#endif |
| 2138 |
|
| 2139 |
#define YYSIZE_MAXIMUM \ |
| 2140 |
YY_CAST (YYPTRDIFF_T, \ |
| 2141 |
(YYPTRDIFF_MAXIMUM < YY_CAST (YYSIZE_T, -1) \ |
| 2142 |
? YYPTRDIFF_MAXIMUM \ |
| 2143 |
: YY_CAST (YYSIZE_T, -1))) |
| 2144 |
|
| 2145 |
#define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X)) |
| 2146 |
|
| 2147 |
|
| 2148 |
/* Stored state numbers (used for stacks). */ |
| 2149 |
typedef yytype_int16 yy_state_t; |
| 2150 |
|
| 2151 |
/* State numbers in computations. */ |
| 2152 |
typedef int yy_state_fast_t; |
| 2153 |
|
| 2154 |
#ifndef YY_ |
| 2155 |
# if defined YYENABLE_NLS && YYENABLE_NLS |
| 2156 |
# if ENABLE_NLS |
| 2157 |
# include <libintl.h> /* INFRINGES ON USER NAME SPACE */ |
| 2158 |
# define YY_(Msgid) dgettext ("bison-runtime", Msgid) |
| 2159 |
# endif |
| 2160 |
# endif |
| 2161 |
# ifndef YY_ |
| 2162 |
# define YY_(Msgid) Msgid |
| 2163 |
# endif |
| 2164 |
#endif |
| 2165 |
|
| 2166 |
|
| 2167 |
#ifndef YY_ATTRIBUTE_PURE |
| 2168 |
# if defined __GNUC__ && 2 < __GNUC__ + (96 <= __GNUC_MINOR__) |
| 2169 |
# define YY_ATTRIBUTE_PURE __attribute__ ((__pure__)) |
| 2170 |
# else |
| 2171 |
# define YY_ATTRIBUTE_PURE |
| 2172 |
# endif |
| 2173 |
#endif |
| 2174 |
|
| 2175 |
#ifndef YY_ATTRIBUTE_UNUSED |
| 2176 |
# if defined __GNUC__ && 2 < __GNUC__ + (7 <= __GNUC_MINOR__) |
| 2177 |
# define YY_ATTRIBUTE_UNUSED __attribute__ ((__unused__)) |
| 2178 |
# else |
| 2179 |
# define YY_ATTRIBUTE_UNUSED |
| 2180 |
# endif |
| 2181 |
#endif |
| 2182 |
|
| 2183 |
/* Suppress unused-variable warnings by "using" E. */ |
| 2184 |
#if ! defined lint || defined __GNUC__ |
| 2185 |
# define YY_USE(E) ((void) (E)) |
| 2186 |
#else |
| 2187 |
# define YY_USE(E) /* empty */ |
| 2188 |
#endif |
| 2189 |
|
| 2190 |
/* Suppress an incorrect diagnostic about yylval being uninitialized. */ |
| 2191 |
#if defined __GNUC__ && ! defined __ICC && 406 <= __GNUC__ * 100 + __GNUC_MINOR__ |
| 2192 |
# if __GNUC__ * 100 + __GNUC_MINOR__ < 407 |
| 2193 |
# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ |
| 2194 |
_Pragma ("GCC diagnostic push") \ |
| 2195 |
_Pragma ("GCC diagnostic ignored \"-Wuninitialized\"") |
| 2196 |
# else |
| 2197 |
# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ |
| 2198 |
_Pragma ("GCC diagnostic push") \ |
| 2199 |
_Pragma ("GCC diagnostic ignored \"-Wuninitialized\"") \ |
| 2200 |
_Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"") |
| 2201 |
# endif |
| 2202 |
# define YY_IGNORE_MAYBE_UNINITIALIZED_END \ |
| 2203 |
_Pragma ("GCC diagnostic pop") |
| 2204 |
#else |
| 2205 |
# define YY_INITIAL_VALUE(Value) Value |
| 2206 |
#endif |
| 2207 |
#ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
| 2208 |
# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
| 2209 |
# define YY_IGNORE_MAYBE_UNINITIALIZED_END |
| 2210 |
#endif |
| 2211 |
#ifndef YY_INITIAL_VALUE |
| 2212 |
# define YY_INITIAL_VALUE(Value) /* Nothing. */ |
| 2213 |
#endif |
| 2214 |
|
| 2215 |
#if defined __cplusplus && defined __GNUC__ && ! defined __ICC && 6 <= __GNUC__ |
| 2216 |
# define YY_IGNORE_USELESS_CAST_BEGIN \ |
| 2217 |
_Pragma ("GCC diagnostic push") \ |
| 2218 |
_Pragma ("GCC diagnostic ignored \"-Wuseless-cast\"") |
| 2219 |
# define YY_IGNORE_USELESS_CAST_END \ |
| 2220 |
_Pragma ("GCC diagnostic pop") |
| 2221 |
#endif |
| 2222 |
#ifndef YY_IGNORE_USELESS_CAST_BEGIN |
| 2223 |
# define YY_IGNORE_USELESS_CAST_BEGIN |
| 2224 |
# define YY_IGNORE_USELESS_CAST_END |
| 2225 |
#endif |
| 2226 |
|
| 2227 |
|
| 2228 |
#define YY_ASSERT(E) ((void) (0 && (E))) |
| 2229 |
|
| 2230 |
#if 1 |
| 2231 |
|
| 2232 |
/* The parser invokes alloca or malloc; define the necessary symbols. */ |
| 2233 |
|
| 2234 |
# ifdef YYSTACK_USE_ALLOCA |
| 2235 |
# if YYSTACK_USE_ALLOCA |
| 2236 |
# ifdef __GNUC__ |
| 2237 |
# define YYSTACK_ALLOC __builtin_alloca |
| 2238 |
# elif defined __BUILTIN_VA_ARG_INCR |
| 2239 |
# include <alloca.h> /* INFRINGES ON USER NAME SPACE */ |
| 2240 |
# elif defined _AIX |
| 2241 |
# define YYSTACK_ALLOC __alloca |
| 2242 |
# elif defined _MSC_VER |
| 2243 |
# include <malloc.h> /* INFRINGES ON USER NAME SPACE */ |
| 2244 |
# define alloca _alloca |
| 2245 |
# else |
| 2246 |
# define YYSTACK_ALLOC alloca |
| 2247 |
# if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS |
| 2248 |
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ |
| 2249 |
/* Use EXIT_SUCCESS as a witness for stdlib.h. */ |
| 2250 |
# ifndef EXIT_SUCCESS |
| 2251 |
# define EXIT_SUCCESS 0 |
| 2252 |
# endif |
| 2253 |
# endif |
| 2254 |
# endif |
| 2255 |
# endif |
| 2256 |
# endif |
| 2257 |
|
| 2258 |
# ifdef YYSTACK_ALLOC |
| 2259 |
/* Pacify GCC's 'empty if-body' warning. */ |
| 2260 |
# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0) |
| 2261 |
# ifndef YYSTACK_ALLOC_MAXIMUM |
| 2262 |
/* The OS might guarantee only one guard page at the bottom of the stack, |
| 2263 |
and a page size can be as small as 4096 bytes. So we cannot safely |
| 2264 |
invoke alloca (N) if N exceeds 4096. Use a slightly smaller number |
| 2265 |
to allow for a few compiler-allocated temporary stack slots. */ |
| 2266 |
# define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */ |
| 2267 |
# endif |
| 2268 |
# else |
| 2269 |
# define YYSTACK_ALLOC YYMALLOC |
| 2270 |
# define YYSTACK_FREE YYFREE |
| 2271 |
# ifndef YYSTACK_ALLOC_MAXIMUM |
| 2272 |
# define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
| 2273 |
# endif |
| 2274 |
# if (defined __cplusplus && ! defined EXIT_SUCCESS \ |
| 2275 |
&& ! ((defined YYMALLOC || defined malloc) \ |
| 2276 |
&& (defined YYFREE || defined free))) |
| 2277 |
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ |
| 2278 |
# ifndef EXIT_SUCCESS |
| 2279 |
# define EXIT_SUCCESS 0 |
| 2280 |
# endif |
| 2281 |
# endif |
| 2282 |
# ifndef YYMALLOC |
| 2283 |
# define YYMALLOC malloc |
| 2284 |
# if ! defined malloc && ! defined EXIT_SUCCESS |
| 2285 |
void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ |
| 2286 |
# endif |
| 2287 |
# endif |
| 2288 |
# ifndef YYFREE |
| 2289 |
# define YYFREE free |
| 2290 |
# if ! defined free && ! defined EXIT_SUCCESS |
| 2291 |
void free (void *); /* INFRINGES ON USER NAME SPACE */ |
| 2292 |
# endif |
| 2293 |
# endif |
| 2294 |
# endif |
| 2295 |
#endif /* 1 */ |
| 2296 |
|
| 2297 |
#if (! defined yyoverflow \ |
| 2298 |
&& (! defined __cplusplus \ |
| 2299 |
|| (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) |
| 2300 |
|
| 2301 |
/* A type that is properly aligned for any stack member. */ |
| 2302 |
union yyalloc |
| 2303 |
{ |
| 2304 |
yy_state_t yyss_alloc; |
| 2305 |
YYSTYPE yyvs_alloc; |
| 2306 |
}; |
| 2307 |
|
| 2308 |
/* The size of the maximum gap between one aligned stack and the next. */ |
| 2309 |
# define YYSTACK_GAP_MAXIMUM (YYSIZEOF (union yyalloc) - 1) |
| 2310 |
|
| 2311 |
/* The size of an array large to enough to hold all stacks, each with |
| 2312 |
N elements. */ |
| 2313 |
# define YYSTACK_BYTES(N) \ |
| 2314 |
((N) * (YYSIZEOF (yy_state_t) + YYSIZEOF (YYSTYPE)) \ |
| 2315 |
+ YYSTACK_GAP_MAXIMUM) |
| 2316 |
|
| 2317 |
# define YYCOPY_NEEDED 1 |
| 2318 |
|
| 2319 |
/* Relocate STACK from its old location to the new one. The |
| 2320 |
local variables YYSIZE and YYSTACKSIZE give the old and new number of |
| 2321 |
elements in the stack, and YYPTR gives the new location of the |
| 2322 |
stack. Advance YYPTR to a properly aligned location for the next |
| 2323 |
stack. */ |
| 2324 |
# define YYSTACK_RELOCATE(Stack_alloc, Stack) \ |
| 2325 |
do \ |
| 2326 |
{ \ |
| 2327 |
YYPTRDIFF_T yynewbytes; \ |
| 2328 |
YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \ |
| 2329 |
Stack = &yyptr->Stack_alloc; \ |
| 2330 |
yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \ |
| 2331 |
yyptr += yynewbytes / YYSIZEOF (*yyptr); \ |
| 2332 |
} \ |
| 2333 |
while (0) |
| 2334 |
|
| 2335 |
#endif |
| 2336 |
|
| 2337 |
#if defined YYCOPY_NEEDED && YYCOPY_NEEDED |
| 2338 |
/* Copy COUNT objects from SRC to DST. The source and destination do |
| 2339 |
not overlap. */ |
| 2340 |
# ifndef YYCOPY |
| 2341 |
# if defined __GNUC__ && 1 < __GNUC__ |
| 2342 |
# define YYCOPY(Dst, Src, Count) \ |
| 2343 |
__builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src))) |
| 2344 |
# else |
| 2345 |
# define YYCOPY(Dst, Src, Count) \ |
| 2346 |
do \ |
| 2347 |
{ \ |
| 2348 |
YYPTRDIFF_T yyi; \ |
| 2349 |
for (yyi = 0; yyi < (Count); yyi++) \ |
| 2350 |
(Dst)[yyi] = (Src)[yyi]; \ |
| 2351 |
} \ |
| 2352 |
while (0) |
| 2353 |
# endif |
| 2354 |
# endif |
| 2355 |
#endif /* !YYCOPY_NEEDED */ |
| 2356 |
|
| 2357 |
/* YYFINAL -- State number of the termination state. */ |
| 2358 |
#define YYFINAL 3 |
| 2359 |
/* YYLAST -- Last index in YYTABLE. */ |
| 2360 |
#define YYLAST 13092 |
| 2361 |
|
| 2362 |
/* YYNTOKENS -- Number of terminals. */ |
| 2363 |
#define YYNTOKENS 149 |
| 2364 |
/* YYNNTS -- Number of nonterminals. */ |
| 2365 |
#define YYNNTS 176 |
| 2366 |
/* YYNRULES -- Number of rules. */ |
| 2367 |
#define YYNRULES 619 |
| 2368 |
/* YYNSTATES -- Number of states. */ |
| 2369 |
#define YYNSTATES 1084 |
| 2370 |
|
| 2371 |
/* YYMAXUTOK -- Last valid token kind. */ |
| 2372 |
#define YYMAXUTOK 377 |
| 2373 |
|
| 2374 |
|
| 2375 |
/* YYTRANSLATE(TOKEN-NUM) -- Symbol number corresponding to TOKEN-NUM |
| 2376 |
as returned by yylex, with out-of-bounds checking. */ |
| 2377 |
#define YYTRANSLATE(YYX) \ |
| 2378 |
(0 <= (YYX) && (YYX) <= YYMAXUTOK \ |
| 2379 |
? YY_CAST (yysymbol_kind_t, yytranslate[YYX]) \ |
| 2380 |
: YYSYMBOL_YYUNDEF) |
| 2381 |
|
| 2382 |
/* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM |
| 2383 |
as returned by yylex. */ |
| 2384 |
static const yytype_uint8 yytranslate[] = |
| 2385 |
{ |
| 2386 |
0, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 2387 |
148, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 2388 |
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 2389 |
2, 2, 2, 135, 2, 2, 2, 133, 128, 2, |
| 2390 |
144, 145, 131, 129, 142, 130, 147, 132, 2, 2, |
| 2391 |
2, 2, 2, 2, 2, 2, 2, 2, 123, 146, |
| 2392 |
125, 121, 124, 122, 2, 2, 2, 2, 2, 2, |
| 2393 |
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 2394 |
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 2395 |
2, 140, 2, 141, 127, 2, 143, 2, 2, 2, |
| 2396 |
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 2397 |
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 2398 |
2, 2, 2, 138, 126, 139, 136, 2, 2, 2, |
| 2399 |
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 2400 |
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 2401 |
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 2402 |
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 2403 |
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 2404 |
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 2405 |
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 2406 |
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 2407 |
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 2408 |
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 2409 |
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 2410 |
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| 2411 |
2, 2, 2, 2, 2, 2, 1, 2, 3, 4, |
| 2412 |
5, 6, 7, 8, 9, 10, 11, 12, 13, 14, |
| 2413 |
15, 16, 17, 18, 19, 20, 21, 22, 23, 24, |
| 2414 |
25, 26, 27, 28, 29, 30, 31, 32, 33, 34, |
| 2415 |
35, 36, 37, 38, 39, 40, 41, 42, 43, 44, |
| 2416 |
45, 46, 47, 48, 49, 50, 51, 52, 53, 54, |
| 2417 |
55, 56, 57, 58, 59, 60, 61, 62, 63, 64, |
| 2418 |
65, 66, 67, 68, 69, 70, 71, 72, 73, 74, |
| 2419 |
75, 76, 77, 78, 79, 80, 81, 82, 83, 84, |
| 2420 |
85, 86, 87, 88, 89, 90, 91, 92, 93, 94, |
| 2421 |
95, 96, 97, 98, 99, 100, 101, 102, 103, 104, |
| 2422 |
105, 106, 107, 108, 109, 110, 111, 112, 113, 114, |
| 2423 |
115, 116, 117, 118, 119, 120, 134, 137 |
| 2424 |
}; |
| 2425 |
|
| 2426 |
#if YYDEBUG |
| 2427 |
/* YYRLINE[YYN] -- Source line where rule number YYN was defined. */ |
| 2428 |
static const yytype_int16 yyrline[] = |
| 2429 |
{ |
| 2430 |
0, 1625, 1625, 1625, 1636, 1642, 1646, 1651, 1655, 1661, |
| 2431 |
1663, 1662, 1676, 1703, 1709, 1713, 1718, 1722, 1728, 1728, |
| 2432 |
1732, 1736, 1740, 1744, 1748, 1752, 1756, 1761, 1762, 1766, |
| 2433 |
1770, 1774, 1778, 1784, 1787, 1791, 1795, 1799, 1803, 1807, |
| 2434 |
1812, 1816, 1825, 1834, 1843, 1852, 1859, 1860, 1864, 1868, |
| 2435 |
1869, 1873, 1877, 1881, 1885, 1889, 1899, 1898, 1913, 1922, |
| 2436 |
1923, 1926, 1927, 1934, 1933, 1948, 1952, 1957, 1961, 1966, |
| 2437 |
1970, 1975, 1979, 1983, 1987, 1991, 1997, 2001, 2007, 2008, |
| 2438 |
2014, 2018, 2022, 2026, 2030, 2034, 2038, 2042, 2046, 2050, |
| 2439 |
2056, 2057, 2063, 2067, 2073, 2077, 2083, 2087, 2091, 2095, |
| 2440 |
2099, 2103, 2109, 2115, 2122, 2126, 2130, 2134, 2138, 2142, |
| 2441 |
2148, 2154, 2159, 2165, 2169, 2172, 2176, 2180, 2187, 2188, |
| 2442 |
2189, 2190, 2195, 2202, 2203, 2206, 2210, 2210, 2216, 2217, |
| 2443 |
2218, 2219, 2220, 2221, 2222, 2223, 2224, 2225, 2226, 2227, |
| 2444 |
2228, 2229, 2230, 2231, 2232, 2233, 2234, 2235, 2236, 2237, |
| 2445 |
2238, 2239, 2240, 2241, 2242, 2243, 2244, 2245, 2248, 2248, |
| 2446 |
2248, 2249, 2249, 2250, 2250, 2250, 2251, 2251, 2251, 2251, |
| 2447 |
2252, 2252, 2252, 2253, 2253, 2253, 2254, 2254, 2254, 2254, |
| 2448 |
2255, 2255, 2255, 2255, 2256, 2256, 2256, 2256, 2257, 2257, |
| 2449 |
2257, 2257, 2258, 2258, 2258, 2258, 2259, 2259, 2262, 2266, |
| 2450 |
2270, 2274, 2278, 2282, 2286, 2291, 2296, 2301, 2305, 2309, |
| 2451 |
2313, 2317, 2321, 2325, 2329, 2333, 2337, 2341, 2345, 2349, |
| 2452 |
2353, 2357, 2361, 2365, 2369, 2373, 2377, 2381, 2385, 2389, |
| 2453 |
2393, 2397, 2401, 2405, 2409, 2413, 2417, 2421, 2425, 2429, |
| 2454 |
2433, 2437, 2441, 2445, 2449, 2458, 2467, 2476, 2485, 2491, |
| 2455 |
2492, 2497, 2501, 2508, 2512, 2519, 2523, 2532, 2549, 2550, |
| 2456 |
2553, 2554, 2555, 2560, 2565, 2572, 2578, 2583, 2588, 2593, |
| 2457 |
2600, 2600, 2611, 2615, 2621, 2625, 2631, 2634, 2640, 2644, |
| 2458 |
2649, 2654, 2658, 2664, 2669, 2673, 2679, 2680, 2681, 2682, |
| 2459 |
2683, 2684, 2685, 2686, 2690, 2695, 2694, 2706, 2710, 2705, |
| 2460 |
2715, 2715, 2719, 2723, 2727, 2731, 2736, 2741, 2745, 2749, |
| 2461 |
2753, 2757, 2761, 2762, 2768, 2775, 2767, 2788, 2796, 2804, |
| 2462 |
2804, 2804, 2811, 2811, 2811, 2818, 2824, 2829, 2831, 2828, |
| 2463 |
2840, 2838, 2856, 2861, 2854, 2878, 2876, 2892, 2902, 2913, |
| 2464 |
2917, 2921, 2925, 2931, 2938, 2939, 2940, 2943, 2944, 2947, |
| 2465 |
2948, 2956, 2957, 2963, 2967, 2970, 2974, 2978, 2982, 2987, |
| 2466 |
2991, 2995, 2999, 3005, 3004, 3014, 3018, 3022, 3026, 3032, |
| 2467 |
3037, 3042, 3046, 3050, 3054, 3058, 3062, 3066, 3070, 3074, |
| 2468 |
3078, 3082, 3086, 3090, 3094, 3098, 3104, 3109, 3116, 3116, |
| 2469 |
3120, 3125, 3132, 3136, 3142, 3143, 3146, 3151, 3154, 3158, |
| 2470 |
3164, 3168, 3175, 3174, 3191, 3201, 3205, 3210, 3217, 3221, |
| 2471 |
3225, 3229, 3233, 3237, 3241, 3245, 3249, 3256, 3255, 3270, |
| 2472 |
3269, 3285, 3293, 3302, 3305, 3312, 3315, 3319, 3320, 3323, |
| 2473 |
3327, 3330, 3334, 3337, 3338, 3339, 3340, 3343, 3344, 3350, |
| 2474 |
3351, 3352, 3356, 3369, 3370, 3376, 3381, 3380, 3390, 3394, |
| 2475 |
3400, 3404, 3417, 3421, 3427, 3430, 3431, 3434, 3440, 3446, |
| 2476 |
3447, 3450, 3457, 3456, 3469, 3473, 3487, 3492, 3506, 3512, |
| 2477 |
3513, 3514, 3515, 3516, 3520, 3526, 3530, 3540, 3541, 3542, |
| 2478 |
3546, 3552, 3556, 3560, 3564, 3568, 3574, 3578, 3584, 3588, |
| 2479 |
3592, 3596, 3600, 3604, 3612, 3619, 3625, 3626, 3630, 3634, |
| 2480 |
3633, 3650, 3651, 3654, 3660, 3664, 3670, 3671, 3675, 3679, |
| 2481 |
3685, 3689, 3695, 3701, 3708, 3714, 3721, 3725, 3731, 3735, |
| 2482 |
3741, 3742, 3745, 3749, 3755, 3759, 3763, 3767, 3773, 3778, |
| 2483 |
3783, 3787, 3791, 3795, 3799, 3803, 3807, 3811, 3815, 3819, |
| 2484 |
3823, 3827, 3831, 3835, 3840, 3846, 3851, 3856, 3861, 3866, |
| 2485 |
3873, 3877, 3884, 3889, 3888, 3900, 3904, 3910, 3918, 3926, |
| 2486 |
3934, 3938, 3944, 3948, 3954, 3955, 3958, 3963, 3970, 3971, |
| 2487 |
3974, 3978, 3984, 3988, 3994, 3999, 3999, 4024, 4025, 4031, |
| 2488 |
4036, 4042, 4048, 4053, 4057, 4062, 4067, 4077, 4082, 4088, |
| 2489 |
4089, 4090, 4093, 4094, 4095, 4096, 4099, 4100, 4101, 4104, |
| 2490 |
4105, 4108, 4112, 4118, 4119, 4125, 4126, 4129, 4130, 4133, |
| 2491 |
4136, 4137, 4138, 4141, 4142, 4145, 4150, 4153, 4154, 4158 |
| 2492 |
}; |
| 2493 |
#endif |
| 2494 |
|
| 2495 |
/** Accessing symbol of state STATE. */ |
| 2496 |
#define YY_ACCESSING_SYMBOL(State) YY_CAST (yysymbol_kind_t, yystos[State]) |
| 2497 |
|
| 2498 |
#if 1 |
| 2499 |
/* The user-facing name of the symbol whose (internal) number is |
| 2500 |
YYSYMBOL. No bounds checking. */ |
| 2501 |
static const char *yysymbol_name (yysymbol_kind_t yysymbol) YY_ATTRIBUTE_UNUSED; |
| 2502 |
|
| 2503 |
/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. |
| 2504 |
First, the terminals, then, starting at YYNTOKENS, nonterminals. */ |
| 2505 |
static const char *const yytname[] = |
| 2506 |
{ |
| 2507 |
"\"end of file\"", "error", "\"invalid token\"", "\"'class'\"", |
| 2508 |
"\"'module'\"", "\"'def'\"", "\"'begin'\"", "\"'if'\"", "\"'unless'\"", |
| 2509 |
"\"'while'\"", "\"'until'\"", "\"'for'\"", "\"'undef'\"", "\"'rescue'\"", |
| 2510 |
"\"'ensure'\"", "\"'end'\"", "\"'then'\"", "\"'elsif'\"", "\"'else'\"", |
| 2511 |
"\"'case'\"", "\"'when'\"", "\"'break'\"", "\"'next'\"", "\"'redo'\"", |
| 2512 |
"\"'retry'\"", "\"'in'\"", "\"'do'\"", "\"'do' for condition\"", |
| 2513 |
"\"'do' for block\"", "\"'do' for lambda\"", "\"'return'\"", |
| 2514 |
"\"'yield'\"", "\"'super'\"", "\"'self'\"", "\"'nil'\"", "\"'true'\"", |
| 2515 |
"\"'false'\"", "\"'and'\"", "\"'or'\"", "\"'not'\"", "\"'if' modifier\"", |
| 2516 |
"\"'unless' modifier\"", "\"'while' modifier\"", "\"'until' modifier\"", |
| 2517 |
"\"'rescue' modifier\"", "\"'alis'\"", "\"'BEGIN'\"", "\"'END'\"", |
| 2518 |
"\"'__LINE__'\"", "\"'__FILE__'\"", "\"'__ENCODING__'\"", |
| 2519 |
"\"local variable or method\"", "\"method\"", "\"global variable\"", |
| 2520 |
"\"instance variable\"", "\"constant\"", "\"class variable\"", |
| 2521 |
"\"label\"", "\"integer literal\"", "\"float literal\"", |
| 2522 |
"\"character literal\"", "tXSTRING", "tREGEXP", "tSTRING", |
| 2523 |
"tSTRING_PART", "tSTRING_MID", "tNTH_REF", "tBACK_REF", "tREGEXP_END", |
| 2524 |
"\"numbered parameter\"", "\"unary plus\"", "\"unary minus\"", "\"<=>\"", |
| 2525 |
"\"==\"", "\"===\"", "\"!=\"", "\">=\"", "\"<=\"", "\"&&\"", "\"||\"", |
| 2526 |
"\"=~\"", "\"!~\"", "\"..\"", "\"...\"", "tBDOT2", "tBDOT3", "tAREF", |
| 2527 |
"tASET", "\"<<\"", "\">>\"", "\"::\"", "tCOLON3", "tOP_ASGN", "\"=>\"", |
| 2528 |
"tLPAREN", "\"(\"", "\")\"", "\"[\"", "tLBRACE", "\"{\"", "\"*\"", |
| 2529 |
"tPOW", "\"**\"", "\"&\"", "\"->\"", "\"&.\"", "\"symbol\"", |
| 2530 |
"\"string literal\"", "tXSTRING_BEG", "tSTRING_DVAR", "tREGEXP_BEG", |
| 2531 |
"tWORDS_BEG", "tSYMBOLS_BEG", "tLAMBEG", "\"here document\"", |
| 2532 |
"tHEREDOC_END", "tLITERAL_DELIM", "tHD_LITERAL_DELIM", "tHD_STRING_PART", |
| 2533 |
"tHD_STRING_MID", "tLOWEST", "'='", "'?'", "':'", "'>'", "'<'", "'|'", |
| 2534 |
"'^'", "'&'", "'+'", "'-'", "'*'", "'/'", "'%'", "tUMINUS_NUM", "'!'", |
| 2535 |
"'~'", "tLAST_TOKEN", "'{'", "'}'", "'['", "']'", "','", "'`'", "'('", |
| 2536 |
"')'", "';'", "'.'", "'\\n'", "$accept", "program", "$@1", |
| 2537 |
"top_compstmt", "top_stmts", "top_stmt", "@2", "bodystmt", "compstmt", |
| 2538 |
"stmts", "stmt", "$@3", "command_asgn", "command_rhs", "expr", |
| 2539 |
"defn_head", "defs_head", "$@4", "expr_value", "command_call", |
| 2540 |
"block_command", "cmd_brace_block", "$@5", "command", "mlhs", |
| 2541 |
"mlhs_inner", "mlhs_basic", "mlhs_item", "mlhs_list", "mlhs_post", |
| 2542 |
"mlhs_node", "lhs", "cname", "cpath", "fname", "fsym", "undef_list", |
| 2543 |
"$@6", "op", "reswords", "arg", "aref_args", "arg_rhs", "paren_args", |
| 2544 |
"opt_paren_args", "opt_call_args", "call_args", "command_args", "@7", |
| 2545 |
"block_arg", "opt_block_arg", "comma", "args", "mrhs", "primary", "@8", |
| 2546 |
"@9", "$@10", "$@11", "@12", "@13", "$@14", "$@15", "$@16", "$@17", |
| 2547 |
"$@18", "$@19", "@20", "@21", "@22", "@23", "primary_value", "then", |
| 2548 |
"do", "if_tail", "opt_else", "for_var", "f_margs", "$@24", |
| 2549 |
"block_args_tail", "opt_block_args_tail", "block_param", |
| 2550 |
"opt_block_param", "block_param_def", "$@25", "opt_bv_decl", "bv_decls", |
| 2551 |
"bvar", "f_larglist", "lambda_body", "do_block", "@26", "block_call", |
| 2552 |
"method_call", "brace_block", "@27", "@28", "case_body", "cases", |
| 2553 |
"opt_rescue", "exc_list", "exc_var", "opt_ensure", "literal", "string", |
| 2554 |
"string_fragment", "string_rep", "string_interp", "@29", "xstring", |
| 2555 |
"regexp", "heredoc", "heredoc_bodies", "heredoc_body", |
| 2556 |
"heredoc_string_rep", "heredoc_string_interp", "@30", "words", "symbol", |
| 2557 |
"basic_symbol", "sym", "symbols", "numeric", "variable", "var_lhs", |
| 2558 |
"var_ref", "backref", "superclass", "$@31", "f_opt_arglist_paren", |
| 2559 |
"f_arglist_paren", "f_arglist", "f_label", "f_kw", "f_block_kw", |
| 2560 |
"f_block_kwarg", "f_kwarg", "kwrest_mark", "f_kwrest", "args_tail", |
| 2561 |
"opt_args_tail", "f_args", "f_bad_arg", "f_norm_arg", "f_arg_item", |
| 2562 |
"@32", "f_arg", "f_opt_asgn", "f_opt", "f_block_opt", "f_block_optarg", |
| 2563 |
"f_optarg", "restarg_mark", "f_rest_arg", "blkarg_mark", "f_block_arg", |
| 2564 |
"opt_f_block_arg", "singleton", "$@33", "assoc_list", "assocs", "assoc", |
| 2565 |
"operation", "operation2", "operation3", "dot_or_colon", "call_op", |
| 2566 |
"call_op2", "opt_terms", "opt_nl", "rparen", "trailer", "term", "nl", |
| 2567 |
"terms", "none", YY_NULLPTR |
| 2568 |
}; |
| 2569 |
|
| 2570 |
static const char * |
| 2571 |
yysymbol_name (yysymbol_kind_t yysymbol) |
| 2572 |
{ |
| 2573 |
return yytname[yysymbol]; |
| 2574 |
} |
| 2575 |
#endif |
| 2576 |
|
| 2577 |
#define YYPACT_NINF (-868) |
| 2578 |
|
| 2579 |
#define yypact_value_is_default(Yyn) \ |
| 2580 |
((Yyn) == YYPACT_NINF) |
| 2581 |
|
| 2582 |
#define YYTABLE_NINF (-620) |
| 2583 |
|
| 2584 |
#define yytable_value_is_error(Yyn) \ |
| 2585 |
((Yyn) == YYTABLE_NINF) |
| 2586 |
|
| 2587 |
/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing |
| 2588 |
STATE-NUM. */ |
| 2589 |
static const yytype_int16 yypact[] = |
| 2590 |
{ |
| 2591 |
-868, 115, 3515, -868, 8231, 10355, 10697, 6539, -868, 10001, |
| 2592 |
10001, -868, -868, 10469, 7721, 6155, 8467, 8467, -868, -868, |
| 2593 |
8467, 4172, 3764, -868, -868, -868, -868, 18, 7721, -868, |
| 2594 |
38, -868, -868, -868, 6681, 3628, -868, -868, 6823, -868, |
| 2595 |
-868, -868, -868, -868, -868, -868, 45, 10119, 10119, 10119, |
| 2596 |
10119, 217, 5414, 792, 8939, 9293, 8003, -868, 7439, 1134, |
| 2597 |
894, 67, 1139, 1203, -868, 94, 10237, 10119, -868, 780, |
| 2598 |
-868, 1204, -868, 529, 1741, 1741, -868, -868, 271, 173, |
| 2599 |
-868, 184, 10583, -868, 272, 12773, 579, 668, 228, 75, |
| 2600 |
-868, 381, -868, -868, -868, -868, -868, -868, -868, -868, |
| 2601 |
-868, 48, 278, -868, 300, 129, -868, -868, -868, -868, |
| 2602 |
-868, 243, 243, 18, 110, 646, -868, 10001, 360, 5533, |
| 2603 |
517, 1837, 1837, -868, 279, -868, 756, -868, -868, 129, |
| 2604 |
-868, -868, -868, -868, -868, -868, -868, -868, -868, -868, |
| 2605 |
-868, -868, -868, -868, -868, -868, -868, -868, -868, -868, |
| 2606 |
-868, -868, -868, -868, -868, -868, -868, -868, 33, 89, |
| 2607 |
108, 109, -868, -868, -868, -868, -868, -868, 117, 154, |
| 2608 |
192, 199, -868, 208, -868, -868, -868, -868, -868, -868, |
| 2609 |
-868, -868, -868, -868, -868, -868, -868, -868, -868, -868, |
| 2610 |
-868, -868, -868, -868, -868, -868, -868, -868, -868, -868, |
| 2611 |
-868, -868, -868, -868, -868, -868, -868, -868, -868, 290, |
| 2612 |
4592, 354, 529, 1741, 1741, 77, 305, 12897, 801, 159, |
| 2613 |
347, 193, 77, 10001, 10001, 866, 397, -868, -868, 890, |
| 2614 |
433, 78, 85, -868, -868, -868, -868, -868, -868, -868, |
| 2615 |
-868, -868, 7580, -868, -868, 320, -868, -868, -868, -868, |
| 2616 |
-868, -868, 780, -868, 944, -868, 444, -868, -868, 780, |
| 2617 |
3900, 124, 10119, 10119, 10119, 10119, -868, 12835, -868, -868, |
| 2618 |
324, 428, 324, -868, -868, -868, 8585, -868, -868, -868, |
| 2619 |
8467, -868, -868, -868, 6155, 6393, -868, 367, 5652, -868, |
| 2620 |
974, 391, 12959, 12959, 355, 8349, 5414, 378, 780, 1204, |
| 2621 |
780, 416, -868, 8349, 780, 408, 714, 714, -868, 12835, |
| 2622 |
423, 714, -868, 500, 10811, 429, 988, 999, 1035, 1982, |
| 2623 |
-868, -868, -868, -868, 1241, -868, -868, -868, -868, -868, |
| 2624 |
-868, 981, 1248, -868, -868, 1126, -868, 1051, -868, 1252, |
| 2625 |
-868, 1265, 480, 482, -868, -868, -868, -868, 5917, 10001, |
| 2626 |
10001, 10001, 10001, 8349, 10001, 10001, 93, -868, -868, -868, |
| 2627 |
-868, 536, 780, -868, -868, -868, -868, -868, -868, -868, |
| 2628 |
2113, 475, 479, 4592, 10119, -868, 463, 563, 476, -868, |
| 2629 |
780, -868, -868, -868, 483, 10119, -868, 487, 576, 489, |
| 2630 |
581, -868, -868, 521, 4592, -868, -868, 9411, -868, 5414, |
| 2631 |
8117, 503, 9411, 10119, 10119, 10119, 10119, 10119, 10119, 10119, |
| 2632 |
10119, 10119, 10119, 10119, 10119, 10119, 10119, 592, 10119, 10119, |
| 2633 |
10119, 10119, 10119, 10119, 10119, 10119, 10119, 10119, 10119, 10119, |
| 2634 |
3310, -868, 8467, -868, 11089, -868, -868, 12293, -868, -868, |
| 2635 |
-868, -868, 10237, 10237, -868, 550, -868, 529, -868, 1036, |
| 2636 |
-868, -868, -868, -868, -868, -868, 11175, 8467, 11261, 4592, |
| 2637 |
10001, -868, -868, -868, 636, 642, 210, 538, 540, -868, |
| 2638 |
4738, 659, 10119, 11347, 8467, 11433, 10119, 10119, 5030, 620, |
| 2639 |
620, 134, 11519, 8467, 11605, -868, 616, -868, 5652, 444, |
| 2640 |
-868, -868, 9529, 665, -868, 10119, 10119, 12897, 12897, 12897, |
| 2641 |
10119, -868, -868, 8703, -868, 10119, -868, 9057, 6274, 546, |
| 2642 |
780, 324, 324, -868, -868, 313, 547, -868, -868, -868, |
| 2643 |
7721, 5149, 557, 11347, 11433, 10119, 1204, 780, -868, -868, |
| 2644 |
6036, 555, 1204, -868, -868, 9175, -868, 780, 9293, -868, |
| 2645 |
-868, -868, 1036, 184, 10811, -868, 10811, 11691, 8467, 11777, |
| 2646 |
2314, -868, -868, 561, -868, 1290, 5652, 981, -868, -868, |
| 2647 |
-868, -868, -868, -868, -868, 10119, 10119, -868, -868, -868, |
| 2648 |
-868, -868, -868, -868, -868, -868, -868, -868, -868, 1428, |
| 2649 |
780, 780, 564, 10237, 699, 12897, 266, -868, -868, -868, |
| 2650 |
263, -868, -868, 2562, -868, 12897, 2314, -868, -868, 2042, |
| 2651 |
-868, -868, 10237, 701, 65, 10119, -868, 12489, 324, -868, |
| 2652 |
780, 10811, 566, -868, -868, -868, 674, 591, 2410, -868, |
| 2653 |
-868, 1037, 220, 3100, 3100, 3100, 3100, 1377, 1377, 3375, |
| 2654 |
2808, 3100, 3100, 12959, 12959, 1279, 1279, -868, 391, 12897, |
| 2655 |
1377, 1377, 1483, 1483, 1288, 383, 383, 391, 391, 391, |
| 2656 |
2930, 7179, 4308, 7297, -868, 243, -868, 584, 324, 452, |
| 2657 |
-868, 516, -868, -868, 4036, -868, -868, 1908, 65, 65, |
| 2658 |
-868, 3027, -868, -868, -868, -868, -868, 780, 10001, 4592, |
| 2659 |
697, 530, -868, 243, 587, 243, 707, 313, 7862, -868, |
| 2660 |
9647, 715, -868, 10119, 10119, 572, -868, 6941, 7060, 596, |
| 2661 |
223, 285, 715, -868, -868, -868, -868, 116, 121, 603, |
| 2662 |
135, 136, 10001, 7721, 609, 734, 12897, 206, -868, 12897, |
| 2663 |
12897, 12897, 281, 10119, 12835, -868, 324, 12897, -868, -868, |
| 2664 |
-868, -868, 8821, 9057, -868, -868, -868, 611, -868, -868, |
| 2665 |
211, 1204, 780, 714, 503, -868, 697, 530, 613, 860, |
| 2666 |
904, -868, 36, 2314, -868, 618, -868, 391, 391, -868, |
| 2667 |
-868, 812, 780, 619, -868, -868, 2628, 711, 12365, -868, |
| 2668 |
706, 536, -868, 476, -868, 780, -868, -868, 623, 627, |
| 2669 |
628, -868, 630, 706, 628, 731, 12427, -868, -868, 2314, |
| 2670 |
4592, -868, -868, 12560, 9765, -868, -868, 10811, 8349, 10237, |
| 2671 |
10119, 11863, 8467, 11949, 413, 10237, 10237, -868, 550, 560, |
| 2672 |
8703, 10237, 10237, -868, 550, 75, 271, 4592, 5652, 65, |
| 2673 |
-868, 780, 766, -868, -868, -868, -868, 12489, -868, 689, |
| 2674 |
-868, 5295, 771, -868, 10001, 774, -868, 10119, 10119, 333, |
| 2675 |
10119, 10119, 776, 5798, 5798, 148, 620, -868, -868, -868, |
| 2676 |
9883, 4884, 12897, -868, 6274, 324, -868, -868, -868, 88, |
| 2677 |
647, 990, 4592, 5652, -868, -868, -868, 653, -868, 1554, |
| 2678 |
780, 10119, 10119, -868, -868, 2314, -868, 2042, -868, 2042, |
| 2679 |
-868, 2042, -868, -868, 10119, 10119, -868, -868, -868, 10925, |
| 2680 |
-868, 655, 476, 657, 10925, -868, 661, 667, -868, 786, |
| 2681 |
10119, 12631, -868, -868, 12897, 3179, 4444, 670, 406, 426, |
| 2682 |
10119, 10119, -868, -868, -868, -868, -868, 10237, -868, -868, |
| 2683 |
-868, -868, -868, -868, -868, 803, 677, 5652, 4592, -868, |
| 2684 |
-868, 11039, 77, -868, -868, 5798, -868, -868, 77, -868, |
| 2685 |
10119, -868, 808, 809, -868, 12897, 219, -868, 9057, -868, |
| 2686 |
1629, 813, 682, 1445, 1445, 1019, -868, 12897, 12897, 628, |
| 2687 |
694, 628, 628, 12897, 12897, 705, 712, 788, 1054, 266, |
| 2688 |
-868, -868, 1801, -868, 1054, 2314, -868, 2042, -868, -868, |
| 2689 |
12702, 432, 12897, 12897, -868, -868, -868, -868, 718, 830, |
| 2690 |
795, -868, 1083, 999, 1035, 4592, -868, 4738, -868, -868, |
| 2691 |
5798, -868, -868, -868, -868, 722, -868, -868, -868, -868, |
| 2692 |
727, 727, 1445, 733, -868, 2042, -868, -868, -868, -868, |
| 2693 |
-868, -868, 12035, -868, 476, 266, -868, -868, 736, 746, |
| 2694 |
750, -868, 751, 750, -868, -868, 1036, 12121, 8467, 12207, |
| 2695 |
642, 572, 879, 1629, 281, 1445, 727, 1445, 628, 757, |
| 2696 |
761, -868, 2314, -868, 2042, -868, 2042, -868, 2042, -868, |
| 2697 |
-868, 697, 530, 772, 201, 467, -868, -868, -868, -868, |
| 2698 |
727, -868, 750, 781, 750, 750, 88, -868, 2042, -868, |
| 2699 |
-868, -868, 750, -868 |
| 2700 |
}; |
| 2701 |
|
| 2702 |
/* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM. |
| 2703 |
Performed when YYTABLE does not specify something else to do. Zero |
| 2704 |
means the default is an error. */ |
| 2705 |
static const yytype_int16 yydefact[] = |
| 2706 |
{ |
| 2707 |
2, 0, 0, 1, 0, 0, 0, 0, 295, 0, |
| 2708 |
0, 319, 322, 0, 0, 605, 339, 340, 341, 342, |
| 2709 |
307, 270, 270, 490, 489, 491, 492, 607, 0, 10, |
| 2710 |
0, 494, 493, 495, 481, 591, 483, 482, 485, 484, |
| 2711 |
477, 478, 439, 440, 496, 497, 293, 0, 0, 0, |
| 2712 |
0, 0, 0, 297, 619, 619, 88, 314, 0, 0, |
| 2713 |
0, 0, 0, 0, 454, 0, 0, 0, 3, 605, |
| 2714 |
6, 9, 27, 33, 544, 544, 49, 60, 59, 0, |
| 2715 |
76, 0, 80, 90, 0, 54, 248, 0, 61, 312, |
| 2716 |
286, 287, 437, 288, 289, 290, 435, 434, 466, 436, |
| 2717 |
433, 488, 0, 291, 292, 270, 5, 8, 339, 340, |
| 2718 |
307, 619, 415, 0, 113, 114, 293, 0, 0, 0, |
| 2719 |
0, 544, 544, 116, 498, 343, 0, 488, 292, 0, |
| 2720 |
335, 168, 178, 169, 165, 194, 195, 196, 197, 176, |
| 2721 |
191, 184, 174, 173, 189, 172, 171, 167, 192, 166, |
| 2722 |
179, 183, 185, 177, 170, 186, 193, 188, 187, 180, |
| 2723 |
190, 175, 164, 182, 181, 163, 161, 162, 158, 159, |
| 2724 |
160, 118, 120, 119, 153, 154, 131, 132, 133, 140, |
| 2725 |
137, 139, 134, 135, 155, 156, 141, 142, 146, 149, |
| 2726 |
150, 136, 138, 128, 129, 130, 143, 144, 145, 147, |
| 2727 |
148, 151, 152, 157, 575, 55, 121, 122, 574, 0, |
| 2728 |
0, 0, 58, 544, 544, 0, 0, 54, 0, 488, |
| 2729 |
0, 292, 0, 0, 0, 112, 0, 354, 353, 0, |
| 2730 |
0, 488, 292, 187, 180, 190, 175, 158, 159, 160, |
| 2731 |
118, 119, 0, 123, 125, 20, 124, 457, 462, 461, |
| 2732 |
613, 615, 605, 616, 0, 459, 0, 617, 614, 606, |
| 2733 |
589, 293, 278, 588, 273, 0, 265, 277, 74, 269, |
| 2734 |
619, 437, 619, 579, 75, 73, 619, 259, 308, 72, |
| 2735 |
0, 258, 414, 71, 605, 0, 18, 0, 0, 221, |
| 2736 |
0, 222, 209, 212, 304, 0, 0, 0, 605, 15, |
| 2737 |
605, 78, 14, 0, 605, 0, 610, 610, 249, 0, |
| 2738 |
0, 610, 577, 0, 0, 86, 0, 96, 103, 544, |
| 2739 |
471, 470, 472, 473, 0, 469, 468, 441, 446, 445, |
| 2740 |
448, 0, 0, 443, 450, 0, 452, 0, 464, 0, |
| 2741 |
475, 0, 479, 480, 53, 236, 237, 4, 606, 0, |
| 2742 |
0, 0, 0, 0, 0, 0, 551, 547, 546, 545, |
| 2743 |
548, 549, 0, 553, 565, 520, 521, 569, 568, 564, |
| 2744 |
544, 0, 506, 0, 513, 518, 619, 523, 619, 543, |
| 2745 |
0, 550, 552, 555, 529, 0, 562, 529, 567, 529, |
| 2746 |
571, 527, 502, 0, 0, 402, 404, 0, 92, 0, |
| 2747 |
84, 81, 0, 0, 0, 0, 0, 0, 0, 0, |
| 2748 |
0, 0, 0, 208, 211, 0, 0, 0, 0, 0, |
| 2749 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 2750 |
0, 602, 619, 601, 0, 604, 603, 0, 419, 417, |
| 2751 |
313, 438, 0, 0, 408, 65, 311, 332, 113, 114, |
| 2752 |
115, 479, 480, 506, 499, 330, 0, 619, 0, 0, |
| 2753 |
0, 600, 599, 56, 0, 619, 304, 0, 0, 345, |
| 2754 |
0, 344, 0, 0, 619, 0, 0, 0, 0, 0, |
| 2755 |
0, 304, 0, 619, 0, 327, 0, 126, 0, 0, |
| 2756 |
458, 460, 0, 0, 618, 583, 584, 279, 587, 272, |
| 2757 |
0, 607, 266, 0, 275, 0, 267, 0, 605, 0, |
| 2758 |
605, 619, 619, 260, 271, 605, 0, 310, 52, 608, |
| 2759 |
0, 0, 0, 0, 0, 0, 17, 605, 302, 13, |
| 2760 |
606, 77, 298, 301, 305, 612, 250, 611, 612, 252, |
| 2761 |
306, 578, 102, 94, 0, 89, 0, 0, 619, 0, |
| 2762 |
544, 315, 399, 529, 474, 0, 0, 449, 455, 442, |
| 2763 |
444, 451, 453, 465, 476, 0, 0, 7, 21, 22, |
| 2764 |
23, 24, 25, 50, 51, 510, 557, 511, 509, 0, |
| 2765 |
605, 605, 529, 0, 0, 512, 0, 525, 573, 522, |
| 2766 |
0, 526, 507, 0, 536, 558, 0, 539, 566, 0, |
| 2767 |
541, 570, 0, 0, 619, 278, 28, 30, 0, 31, |
| 2768 |
605, 0, 82, 93, 48, 34, 46, 0, 253, 198, |
| 2769 |
29, 0, 292, 226, 231, 232, 233, 228, 230, 240, |
| 2770 |
241, 234, 235, 207, 210, 238, 239, 32, 218, 607, |
| 2771 |
227, 229, 223, 224, 225, 213, 214, 215, 216, 217, |
| 2772 |
592, 597, 593, 598, 413, 270, 411, 0, 619, 592, |
| 2773 |
594, 593, 595, 412, 270, 592, 593, 270, 619, 619, |
| 2774 |
35, 253, 199, 45, 206, 63, 66, 0, 0, 0, |
| 2775 |
113, 114, 117, 0, 0, 619, 0, 605, 0, 296, |
| 2776 |
619, 619, 425, 0, 0, 619, 346, 596, 303, 0, |
| 2777 |
592, 593, 619, 348, 320, 347, 323, 596, 303, 0, |
| 2778 |
592, 593, 0, 0, 0, 0, 277, 0, 326, 582, |
| 2779 |
585, 581, 276, 281, 280, 274, 619, 586, 580, 257, |
| 2780 |
255, 261, 262, 264, 309, 609, 19, 0, 26, 205, |
| 2781 |
79, 16, 605, 610, 95, 87, 99, 101, 0, 98, |
| 2782 |
100, 607, 0, 0, 467, 0, 456, 219, 220, 551, |
| 2783 |
549, 362, 605, 355, 505, 503, 0, 41, 244, 337, |
| 2784 |
0, 0, 519, 619, 572, 0, 528, 556, 529, 529, |
| 2785 |
529, 563, 529, 551, 529, 43, 246, 338, 390, 388, |
| 2786 |
0, 387, 386, 285, 0, 91, 85, 0, 0, 0, |
| 2787 |
0, 0, 619, 0, 0, 0, 0, 410, 69, 416, |
| 2788 |
262, 0, 0, 409, 67, 405, 62, 0, 0, 619, |
| 2789 |
333, 0, 0, 416, 336, 576, 57, 426, 427, 619, |
| 2790 |
428, 0, 619, 351, 0, 0, 349, 0, 0, 416, |
| 2791 |
0, 0, 0, 0, 0, 416, 0, 127, 463, 325, |
| 2792 |
0, 0, 282, 268, 605, 619, 11, 299, 251, 97, |
| 2793 |
0, 392, 0, 0, 316, 447, 363, 360, 554, 0, |
| 2794 |
605, 0, 0, 524, 508, 0, 532, 0, 534, 0, |
| 2795 |
540, 0, 537, 542, 0, 0, 385, 607, 607, 515, |
| 2796 |
516, 619, 619, 370, 0, 560, 370, 370, 368, 0, |
| 2797 |
281, 283, 83, 47, 254, 592, 593, 0, 592, 593, |
| 2798 |
0, 0, 40, 203, 39, 204, 70, 0, 37, 201, |
| 2799 |
38, 202, 68, 406, 407, 0, 0, 0, 0, 500, |
| 2800 |
331, 0, 0, 430, 352, 0, 12, 432, 0, 317, |
| 2801 |
0, 318, 0, 0, 328, 280, 619, 256, 263, 398, |
| 2802 |
0, 0, 0, 0, 0, 358, 504, 42, 245, 529, |
| 2803 |
529, 529, 529, 44, 247, 0, 0, 0, 514, 0, |
| 2804 |
366, 367, 370, 378, 559, 0, 381, 0, 383, 403, |
| 2805 |
284, 416, 243, 242, 36, 200, 420, 418, 0, 0, |
| 2806 |
0, 429, 0, 104, 111, 0, 431, 0, 321, 324, |
| 2807 |
0, 422, 423, 421, 396, 607, 394, 397, 401, 400, |
| 2808 |
364, 361, 0, 356, 533, 0, 530, 535, 538, 391, |
| 2809 |
389, 304, 0, 517, 619, 0, 369, 376, 370, 370, |
| 2810 |
370, 561, 370, 370, 64, 334, 110, 0, 619, 0, |
| 2811 |
619, 619, 0, 0, 393, 0, 359, 0, 529, 596, |
| 2812 |
303, 365, 0, 373, 0, 375, 0, 382, 0, 379, |
| 2813 |
384, 107, 109, 0, 592, 593, 424, 350, 329, 395, |
| 2814 |
357, 531, 370, 370, 370, 370, 105, 374, 0, 371, |
| 2815 |
377, 380, 370, 372 |
| 2816 |
}; |
| 2817 |
|
| 2818 |
/* YYPGOTO[NTERM-NUM]. */ |
| 2819 |
static const yytype_int16 yypgoto[] = |
| 2820 |
{ |
| 2821 |
-868, -868, -868, 411, -868, 25, -868, -282, 693, -868, |
| 2822 |
42, -868, -254, -213, 768, 1343, 1513, -868, 84, -59, |
| 2823 |
-868, -429, -868, -14, 916, -190, 4, -33, -271, -487, |
| 2824 |
-11, 1993, -84, 936, 29, -19, -868, -868, 19, -868, |
| 2825 |
867, -868, -392, 46, -461, -327, 118, -7, -868, -446, |
| 2826 |
-233, -184, 15, -360, 57, -868, -868, -868, -868, -868, |
| 2827 |
-868, -868, -868, -868, -868, -868, -868, -868, -868, -868, |
| 2828 |
-868, 8, -211, -460, -94, -610, -868, -868, -868, 163, |
| 2829 |
501, -868, -572, -868, -868, -276, -868, -90, -868, -868, |
| 2830 |
145, -868, -868, -868, -81, -868, -868, -451, -868, -78, |
| 2831 |
-868, -868, -868, -868, -868, 147, 58, -167, -868, -868, |
| 2832 |
-868, -868, -868, -248, -868, 710, -868, -868, -868, 2, |
| 2833 |
-868, -868, -868, 2347, 2558, 960, 1777, -868, -868, -27, |
| 2834 |
502, 20, -9, 396, 16, -868, -868, -868, 181, 485, |
| 2835 |
249, -244, -839, -672, -556, -868, 180, -723, -541, -867, |
| 2836 |
14, -513, -868, -388, -868, 675, -351, -868, -868, -868, |
| 2837 |
62, -436, 624, -330, -868, -868, -47, -868, 7, -22, |
| 2838 |
806, -253, 394, -284, -65, -2 |
| 2839 |
}; |
| 2840 |
|
| 2841 |
/* YYDEFGOTO[NTERM-NUM]. */ |
| 2842 |
static const yytype_int16 yydefgoto[] = |
| 2843 |
{ |
| 2844 |
0, 1, 2, 68, 69, 70, 287, 464, 465, 298, |
| 2845 |
299, 520, 72, 615, 73, 213, 214, 688, 215, 76, |
| 2846 |
77, 676, 819, 78, 79, 300, 80, 81, 82, 545, |
| 2847 |
83, 216, 123, 124, 243, 244, 245, 713, 653, 207, |
| 2848 |
85, 305, 619, 654, 278, 509, 510, 279, 280, 269, |
| 2849 |
502, 538, 658, 609, 86, 210, 303, 742, 304, 319, |
| 2850 |
752, 223, 843, 224, 844, 712, 1000, 679, 677, 928, |
| 2851 |
459, 290, 470, 704, 835, 836, 230, 762, 953, 1026, |
| 2852 |
973, 887, 790, 791, 888, 860, 1005, 1006, 551, 864, |
| 2853 |
396, 604, 88, 89, 446, 669, 668, 493, 1003, 691, |
| 2854 |
829, 932, 936, 90, 91, 92, 332, 333, 556, 93, |
| 2855 |
94, 95, 557, 253, 254, 255, 488, 96, 97, 98, |
| 2856 |
326, 99, 100, 219, 220, 103, 221, 455, 678, 371, |
| 2857 |
372, 373, 374, 375, 890, 891, 376, 377, 378, 776, |
| 2858 |
594, 380, 381, 382, 383, 579, 384, 385, 386, 895, |
| 2859 |
896, 387, 388, 389, 390, 391, 587, 209, 460, 310, |
| 2860 |
512, 273, 129, 683, 656, 463, 458, 437, 516, 861, |
| 2861 |
517, 536, 257, 258, 259, 302 |
| 2862 |
}; |
| 2863 |
|
| 2864 |
/* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If |
| 2865 |
positive, shift that token. If negative, reduce the rule whose |
| 2866 |
number is the opposite. If YYTABLE_NINF, syntax error. */ |
| 2867 |
static const yytype_int16 yytable[] = |
| 2868 |
{ |
| 2869 |
106, 519, 266, 266, 348, 285, 266, 344, 440, 286, |
| 2870 |
87, 478, 87, 126, 126, 283, 246, 218, 218, 281, |
| 2871 |
706, 229, 256, 218, 218, 218, 206, 591, 218, 107, |
| 2872 |
246, 270, 270, 206, 450, 270, 205, 777, 715, 506, |
| 2873 |
434, 436, 620, 544, 71, 315, 71, 206, 393, 401, |
| 2874 |
672, 674, 308, 312, 539, 781, 301, 725, 541, 745, |
| 2875 |
87, 725, 125, 125, 316, 862, 894, 277, 282, 306, |
| 2876 |
125, 728, 392, 392, 218, 552, 347, 206, 272, 272, |
| 2877 |
778, 832, 272, 558, 672, 674, 503, 325, 507, 867, |
| 2878 |
316, 584, 842, 469, 222, 394, 817, 818, 445, 252, |
| 2879 |
655, 438, 728, -104, 664, 657, 527, 667, 1031, 281, |
| 2880 |
-111, 1007, 603, 125, -416, 3, 307, 311, 335, 337, |
| 2881 |
339, 341, 535, -490, 796, 218, 581, 87, 685, 336, |
| 2882 |
684, 328, 329, 739, 268, 274, -589, -487, 275, 125, |
| 2883 |
-486, -107, 394, 655, 788, 664, -109, 699, 614, 863, |
| 2884 |
575, 444, 342, 343, 685, 438, 709, 277, 282, -110, |
| 2885 |
-106, -108, 284, 271, 271, 560, -112, 271, 560, -104, |
| 2886 |
560, 475, 560, -105, 560, 444, 288, 686, -416, -489, |
| 2887 |
-490, 496, 484, 330, 331, 1031, 467, 468, 614, 614, |
| 2888 |
-96, 789, 247, -416, 685, 248, 249, 777, -491, -492, |
| 2889 |
-481, 271, 271, 813, 1007, 779, 815, -494, 782, 610, |
| 2890 |
777, 392, 392, 439, 576, -481, -487, -106, 87, 685, |
| 2891 |
-96, 748, 469, 250, 813, 251, -416, -103, -416, 670, |
| 2892 |
673, 218, 218, 530, 394, -416, -489, 831, 441, 492, |
| 2893 |
778, 537, 537, 524, -493, -112, 537, 927, -589, 894, |
| 2894 |
-481, -486, 894, 778, -589, -491, -492, -481, -99, 489, |
| 2895 |
-592, 206, 266, -101, -494, -593, 266, 439, 504, 549, |
| 2896 |
504, 325, 294, 276, 513, 544, -102, -98, -100, 506, |
| 2897 |
-104, 543, -495, 1013, 218, 477, 725, 725, 218, -481, |
| 2898 |
-97, 511, 218, 218, 397, 270, 87, 728, -485, 395, |
| 2899 |
301, -493, 525, 87, 87, 529, 751, 479, 480, 756, |
| 2900 |
902, 87, 443, 777, -111, 840, -106, 770, 435, -106, |
| 2901 |
-106, 247, 316, 777, 248, 249, 398, 732, 733, 894, |
| 2902 |
828, -110, -77, 431, 781, 771, 1001, 526, 606, -495, |
| 2903 |
544, -111, 272, 616, -106, 532, -481, -106, 501, -106, |
| 2904 |
354, 355, 250, -91, 251, -485, 87, 218, 218, 218, |
| 2905 |
218, 87, 218, 218, 725, 779, 367, 365, 366, 367, |
| 2906 |
442, 125, 682, 567, 588, 433, 588, 841, 779, 916, |
| 2907 |
461, 87, 555, 616, 616, 922, 944, 276, 560, 612, |
| 2908 |
71, 368, 443, 402, 368, 572, 247, 822, 514, 248, |
| 2909 |
249, 897, 87, 301, 454, 218, -108, 87, 316, 466, |
| 2910 |
621, 448, 608, 913, 915, 449, 777, 608, 266, 919, |
| 2911 |
921, -111, 873, 271, 794, 940, 472, 271, 247, 251, |
| 2912 |
513, 248, 249, 568, 569, 570, 571, 462, 519, 476, |
| 2913 |
218, 42, -103, 266, 43, 913, 915, 525, 919, 921, |
| 2914 |
621, 621, 481, 662, -105, 513, 662, 125, 485, 250, |
| 2915 |
266, 251, 487, 692, 492, 218, 501, 87, 218, 266, |
| 2916 |
910, 655, 513, 664, 810, 907, -110, 662, 87, 722, |
| 2917 |
663, 513, 218, -108, 418, 505, 87, 960, 59, 777, |
| 2918 |
858, 218, 418, 853, 662, 1002, 87, -102, 811, 553, |
| 2919 |
777, 736, 725, 662, 663, 521, 851, 717, 899, 504, |
| 2920 |
504, 744, 728, 543, 427, 428, 429, 731, 812, 106, |
| 2921 |
519, 663, 246, 528, 917, 985, 544, -106, 247, 87, |
| 2922 |
663, 248, 249, 850, 266, 925, 911, -76, 87, 206, |
| 2923 |
970, 971, 507, 662, 811, 614, 513, -108, 985, 534, |
| 2924 |
582, 614, 316, -105, 316, 542, 218, 614, 614, 379, |
| 2925 |
379, 251, 540, 71, 87, 726, 354, 355, 662, 767, |
| 2926 |
663, 546, 741, -106, 803, 451, 452, 519, 543, 271, |
| 2927 |
951, 565, -108, 566, 1029, -108, -108, 1032, 785, 834, |
| 2928 |
831, 218, 912, 577, -98, 663, 583, 743, 918, 920, |
| 2929 |
-501, 125, 792, 125, 271, 586, 379, 379, 812, 471, |
| 2930 |
218, 965, 966, -108, 589, -108, 471, 804, 590, 316, |
| 2931 |
-303, 271, 853, 453, 453, 593, 105, 598, 105, 596, |
| 2932 |
271, 599, 601, 105, 105, -303, 597, -108, 600, 105, |
| 2933 |
105, 105, 602, 637, 105, 613, 989, 703, 808, 675, |
| 2934 |
271, 689, 917, 494, 271, 690, 504, 814, -100, 693, |
| 2935 |
816, 694, 281, 614, 1073, 281, 792, 792, 125, -343, |
| 2936 |
-303, 948, -590, 1051, -593, 696, 105, -303, 537, 554, |
| 2937 |
718, -105, 271, 281, -343, 271, 218, 87, 830, 833, |
| 2938 |
105, 730, 735, 833, 847, 271, 738, -91, 379, 379, |
| 2939 |
833, 807, -97, 753, 984, 608, 766, 206, 797, 685, |
| 2940 |
277, 1063, 799, 277, 769, 246, 787, 826, 798, -343, |
| 2941 |
218, 995, 824, -596, 504, 809, -343, 997, 823, 807, |
| 2942 |
553, 277, 206, 831, 923, 247, -485, 839, 248, 249, |
| 2943 |
616, 105, 494, 105, 845, 297, 616, 914, 848, 849, |
| 2944 |
856, -485, 616, 616, 859, 871, 578, 865, 430, 763, |
| 2945 |
519, 869, 821, 575, 543, 875, 250, 773, 251, 877, |
| 2946 |
879, 588, 881, 431, 592, 884, 780, 212, 212, 784, |
| 2947 |
889, 930, 931, 212, -590, 935, -485, -596, 266, 939, |
| 2948 |
-590, 941, 949, -485, 855, 954, 846, 969, 87, 972, |
| 2949 |
513, 979, -596, 975, 379, 316, 87, 621, 432, 977, |
| 2950 |
218, 981, 297, 621, 218, 433, 987, 792, 986, 621, |
| 2951 |
621, 1009, 662, 998, 999, 87, 87, 933, 1008, 247, |
| 2952 |
937, 1019, 248, 249, 105, -596, 1015, -596, 1020, 87, |
| 2953 |
903, -592, 218, 1021, -596, 1035, 456, 105, 105, 663, |
| 2954 |
1036, 87, 87, 504, 125, 379, 501, 1034, 616, 87, |
| 2955 |
250, 431, 251, 759, 1043, 357, 358, 359, 360, 1045, |
| 2956 |
87, 87, 855, 705, 705, 1047, 217, 217, 1052, 271, |
| 2957 |
271, 760, 217, 267, 267, 447, -592, 267, 1054, 588, |
| 2958 |
588, 473, 1056, 1058, 1068, 247, 457, 968, 248, 249, |
| 2959 |
105, -592, 974, 433, 105, -593, 431, -300, 105, 105, |
| 2960 |
-300, -300, 105, 1076, 289, 291, 292, 293, 938, 105, |
| 2961 |
105, 267, 309, 1078, 494, 621, 250, 105, 251, 227, |
| 2962 |
-593, 494, 737, 345, 346, 87, 87, -300, -300, 992, |
| 2963 |
-300, 474, 130, 87, 833, 1039, 125, 1067, 433, 271, |
| 2964 |
-592, 125, 886, 1069, 866, 334, -293, 271, 328, 329, |
| 2965 |
889, 924, 1066, 889, 491, -592, 889, 208, 889, 893, |
| 2966 |
892, -293, 105, 105, 105, 105, 105, 105, 105, 105, |
| 2967 |
482, 522, 772, 1044, 217, 1023, 1028, 0, 125, 297, |
| 2968 |
0, 212, 212, 0, -593, 431, 0, 105, -592, 0, |
| 2969 |
-592, 0, 0, 87, -592, 87, -293, -592, 87, -593, |
| 2970 |
330, 331, 0, -293, 0, 0, 889, 0, 105, 0, |
| 2971 |
0, 105, 588, 105, 266, 0, 105, 876, 878, 880, |
| 2972 |
483, 882, 0, 883, 0, 379, 513, 433, 692, 833, |
| 2973 |
0, 0, -593, 889, -593, 889, 218, 889, -593, 889, |
| 2974 |
0, -593, 515, 518, 0, 959, 105, 961, 662, 490, |
| 2975 |
0, 962, 248, 249, 523, 0, 105, 105, 0, 889, |
| 2976 |
759, 820, 357, 358, 359, 360, 0, 0, 547, 431, |
| 2977 |
0, 105, 0, 105, 105, 663, 0, 0, 760, -488, |
| 2978 |
217, 217, 297, 431, 105, 271, 247, 0, 105, 248, |
| 2979 |
249, 0, 105, 0, -488, 247, 531, 105, 248, 249, |
| 2980 |
533, 471, 105, 562, 474, 328, 329, 212, 212, 212, |
| 2981 |
212, 433, 573, 574, 0, -292, -304, 801, 548, 497, |
| 2982 |
498, 499, 345, 1010, 1011, 433, 950, 0, 251, -488, |
| 2983 |
-292, -304, 431, 267, 1022, 105, -488, 267, 0, 0, |
| 2984 |
1024, 217, 217, 892, 105, 1030, 892, 1033, 892, 431, |
| 2985 |
0, 1012, 0, 695, 0, 0, 0, 330, 331, 874, |
| 2986 |
0, 702, 105, 1037, 0, -292, -304, 802, 0, 0, |
| 2987 |
105, 714, -292, -304, 433, 271, 0, 561, 431, 0, |
| 2988 |
328, 329, 1046, 0, 457, 1048, 0, 327, 328, 329, |
| 2989 |
0, 433, 338, 328, 329, 0, 892, 105, 1014, 1016, |
| 2990 |
1017, 1018, 0, 0, 0, 929, 217, 217, 217, 217, |
| 2991 |
0, 217, 217, 1038, 0, 0, 105, 1070, 687, 0, |
| 2992 |
433, 0, 1072, 892, 1074, 892, 0, 892, 1075, 892, |
| 2993 |
705, 585, 330, 331, 349, 350, 351, 352, 353, 755, |
| 2994 |
330, 331, 595, 0, 0, 330, 331, 0, 1082, 892, |
| 2995 |
0, 774, 0, 0, 607, 774, 340, 328, 329, 618, |
| 2996 |
623, 624, 625, 626, 627, 628, 629, 630, 631, 632, |
| 2997 |
633, 634, 635, 636, 0, 638, 639, 640, 641, 642, |
| 2998 |
643, 644, 645, 646, 647, 648, 649, 1071, 0, 267, |
| 2999 |
0, 0, 105, 105, 554, 328, 329, 0, 0, 671, |
| 3000 |
671, 559, 328, 329, 729, 563, 328, 329, 0, 330, |
| 3001 |
331, 734, 0, 0, 267, 0, 471, 217, 564, 328, |
| 3002 |
329, 0, 471, 740, 0, 0, 105, 0, 0, 671, |
| 3003 |
0, 267, 0, 671, 671, 74, 0, 74, 121, 121, |
| 3004 |
267, 0, 0, 754, 328, 329, 121, 330, 331, 716, |
| 3005 |
0, 0, 719, 720, 330, 331, 0, 721, 330, 331, |
| 3006 |
724, 0, 727, 0, 309, 293, 415, 416, 0, 0, |
| 3007 |
418, 330, 331, 0, 0, 0, 764, 765, 0, 418, |
| 3008 |
0, 0, 671, 0, 0, 74, 0, 976, 978, 121, |
| 3009 |
0, 0, 724, 0, 0, 309, 330, 331, 425, 426, |
| 3010 |
427, 428, 429, 0, 105, 267, 795, 425, 426, 427, |
| 3011 |
428, 429, 105, 105, 0, 121, 105, 0, 0, 105, |
| 3012 |
105, 0, 757, 758, 0, 105, 105, 0, 0, 0, |
| 3013 |
0, 105, 105, 0, 0, 0, 212, 0, 0, 0, |
| 3014 |
768, 0, 0, 0, 0, 105, 0, 0, 105, 0, |
| 3015 |
0, 0, 74, 0, 898, 415, 416, 105, 105, 786, |
| 3016 |
0, 0, 793, 1027, 0, 105, 0, 0, 418, 759, |
| 3017 |
212, 357, 358, 359, 360, 0, 105, 105, 0, 0, |
| 3018 |
0, 0, 0, 825, 0, 0, 759, 760, 357, 358, |
| 3019 |
359, 360, 0, 422, 423, 424, 425, 426, 427, 428, |
| 3020 |
429, 926, 0, 0, 760, 75, 0, 75, 122, 122, |
| 3021 |
0, 0, 363, 0, 934, 0, 122, 0, 761, 1053, |
| 3022 |
1055, 1057, 0, 1059, 1060, 0, 942, 943, 0, 363, |
| 3023 |
0, 105, 0, 0, 946, 217, 0, 0, 857, 0, |
| 3024 |
0, 105, 105, 74, 0, 0, 952, 827, 0, 105, |
| 3025 |
768, 786, 0, 0, 0, 75, 0, 0, 868, 122, |
| 3026 |
0, 415, 416, 1077, 1079, 1080, 1081, 0, 0, 217, |
| 3027 |
0, 0, 0, 1083, 418, 0, 0, 0, 0, 0, |
| 3028 |
852, 0, 0, 0, 0, 122, 0, 0, 0, 724, |
| 3029 |
309, 0, 212, 0, 0, 759, 0, 357, 358, 359, |
| 3030 |
360, 424, 425, 426, 427, 428, 429, 0, 0, 105, |
| 3031 |
988, 105, 0, 760, 105, 0, 0, 0, 996, 0, |
| 3032 |
0, 74, 75, 0, 0, 0, 0, 0, 74, 74, |
| 3033 |
0, 0, 0, 0, 774, 0, 74, 898, 363, 0, |
| 3034 |
898, 0, 898, 0, 955, 0, 0, 121, 0, 0, |
| 3035 |
947, 901, 105, 0, 0, 0, 671, 904, 0, 267, |
| 3036 |
0, 0, 671, 671, 0, 0, 956, 724, 671, 671, |
| 3037 |
1004, 0, 357, 358, 359, 360, 0, 0, 1040, 0, |
| 3038 |
1041, 74, 0, 1042, 0, 0, 74, 0, 760, 0, |
| 3039 |
898, 217, 0, 0, 671, 671, 0, 671, 671, 0, |
| 3040 |
0, 0, 0, 0, 0, 0, 74, 945, 0, 0, |
| 3041 |
0, 293, 0, 75, 0, 0, 0, 898, 0, 898, |
| 3042 |
0, 898, 0, 898, 0, 0, 0, 74, 957, 958, |
| 3043 |
0, 0, 74, 121, 0, 74, 0, 0, 0, 0, |
| 3044 |
0, 963, 964, 898, 0, 0, 0, 0, 0, 0, |
| 3045 |
0, 0, 0, 0, 0, 0, 0, 980, 0, 0, |
| 3046 |
0, 0, 0, 0, 0, 0, 0, 982, 983, 104, |
| 3047 |
0, 104, 128, 128, 671, 74, 74, 0, 0, 0, |
| 3048 |
232, 0, 356, 0, 357, 358, 359, 360, 0, 0, |
| 3049 |
0, 75, 74, 0, 0, 0, 0, 671, 75, 75, |
| 3050 |
361, 0, 0, 74, 0, 309, 75, 0, 0, 0, |
| 3051 |
0, 74, 0, 0, 362, 0, 0, 122, 0, 104, |
| 3052 |
0, 74, 0, 318, 0, 363, 0, 0, 0, 0, |
| 3053 |
0, 364, 365, 366, 367, 0, 0, 0, 0, 0, |
| 3054 |
0, 0, 356, 0, 357, 358, 359, 360, 0, 318, |
| 3055 |
0, 75, -619, 0, 74, 0, 75, 0, 0, 368, |
| 3056 |
361, 0, 369, 74, 0, 0, 0, 0, 0, 0, |
| 3057 |
0, 0, 0, 0, 0, 370, 75, 121, 356, 121, |
| 3058 |
357, 358, 359, 360, 0, 363, 104, 0, 0, 74, |
| 3059 |
0, 364, 365, 366, 367, 267, 361, 75, -619, 0, |
| 3060 |
0, 0, 75, 122, 0, 75, 0, 0, 0, 0, |
| 3061 |
362, -619, -619, -619, -619, -619, -619, 0, -619, 368, |
| 3062 |
0, 363, 369, 0, -619, -619, 0, 364, 365, 366, |
| 3063 |
367, 0, 0, 1025, 0, -619, -619, 0, -619, -619, |
| 3064 |
-619, -619, -619, 0, 121, 75, 75, 0, 0, 0, |
| 3065 |
0, 0, 0, 0, 0, 368, 0, 0, 369, 0, |
| 3066 |
0, 0, 75, 0, 0, 0, 0, 0, 0, 0, |
| 3067 |
0, 370, 0, 75, 0, 0, 0, 104, 0, 0, |
| 3068 |
0, 75, 0, 0, 0, 84, 0, 84, -619, 0, |
| 3069 |
0, 75, 0, 0, 0, 0, 228, 0, 0, 0, |
| 3070 |
0, 0, 0, -619, 0, 0, 0, 0, 0, 0, |
| 3071 |
0, 0, 74, -619, 0, 0, -619, -619, 0, 0, |
| 3072 |
0, 0, 0, 356, 75, 357, 358, 359, 360, 0, |
| 3073 |
0, 0, 0, 75, 0, 84, -619, -619, 0, 0, |
| 3074 |
0, 361, 276, -619, -619, -619, -619, 122, 0, 122, |
| 3075 |
0, 0, 0, 0, 0, 104, 0, 0, 0, 75, |
| 3076 |
0, 0, 104, 104, 0, 0, 363, 0, 0, 0, |
| 3077 |
104, 0, 364, 365, 366, 367, 0, 0, 0, 0, |
| 3078 |
0, 318, 0, 783, 0, 357, 358, 359, 360, 0, |
| 3079 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3080 |
368, 361, 84, 369, 0, 0, 0, 0, 0, 0, |
| 3081 |
0, 0, 0, 0, 122, 104, 550, 0, 0, 0, |
| 3082 |
104, 0, 0, 74, 0, 0, 363, 0, 0, 0, |
| 3083 |
121, 74, 74, 365, 366, 367, 0, 0, 74, 0, |
| 3084 |
104, 0, 0, 0, 74, 74, 0, 0, 0, 0, |
| 3085 |
74, 74, 0, 0, 356, 0, 357, 358, 359, 360, |
| 3086 |
368, 104, 0, 0, 74, 0, 104, 318, 0, 622, |
| 3087 |
0, 0, 361, 0, 0, 0, 74, 74, 0, 0, |
| 3088 |
0, 0, 75, 0, 74, 0, 0, 0, 580, 0, |
| 3089 |
0, 0, 0, 84, 0, 74, 74, 363, 0, 0, |
| 3090 |
0, 0, 0, 364, 365, 366, 367, 0, 0, 622, |
| 3091 |
622, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3092 |
0, 0, 121, 0, 0, 0, 104, 121, 0, 0, |
| 3093 |
0, 368, 0, 0, 369, 0, 0, 104, 0, 0, |
| 3094 |
0, 0, 0, 0, 0, 104, 0, 0, 0, 0, |
| 3095 |
74, 0, 0, 0, 0, 104, 0, 0, 0, 0, |
| 3096 |
74, 74, 0, 0, 121, 0, 0, 0, 74, 0, |
| 3097 |
0, 84, 0, 0, 0, 0, 0, 0, 84, 84, |
| 3098 |
0, 0, 0, 0, 0, 0, 84, 0, 104, 0, |
| 3099 |
0, 0, 0, 75, 0, 0, 0, 104, 0, 0, |
| 3100 |
122, 75, 75, 0, 0, 0, 0, 0, 75, 0, |
| 3101 |
0, 318, 0, 318, 75, 75, 0, 0, 0, 0, |
| 3102 |
75, 75, 0, 104, 0, 0, 0, 0, 74, 0, |
| 3103 |
74, 84, 0, 74, 75, 0, 84, 0, 0, 101, |
| 3104 |
0, 101, 127, 127, 127, 0, 75, 75, 0, 0, |
| 3105 |
231, 0, 0, 0, 75, 356, 84, 357, 358, 359, |
| 3106 |
360, 0, 0, 0, 0, 75, 75, 0, 0, 0, |
| 3107 |
0, 0, 0, 361, 0, 0, 0, 84, 318, 0, |
| 3108 |
0, 0, 84, 0, 0, 617, 0, 0, 0, 101, |
| 3109 |
0, 0, 122, 317, 0, 0, 0, 122, 363, 0, |
| 3110 |
0, 0, 0, 0, 364, 365, 366, 367, 0, 0, |
| 3111 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 317, |
| 3112 |
75, 0, 0, 0, 0, 617, 617, 0, 0, 0, |
| 3113 |
75, 75, 368, 0, 122, 369, 0, 0, 75, 0, |
| 3114 |
0, 0, 84, 0, 800, 0, 104, 0, 0, 0, |
| 3115 |
0, 0, 0, 84, 0, 0, 101, 0, 0, 0, |
| 3116 |
0, 84, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3117 |
0, 84, 403, 404, 405, 406, 407, 408, 409, 410, |
| 3118 |
411, 412, 413, 414, 0, 0, 0, 0, 415, 416, |
| 3119 |
0, 0, 0, 0, 0, 0, 0, 0, 75, 0, |
| 3120 |
75, 418, 0, 75, 84, 0, 0, 0, 0, 0, |
| 3121 |
0, 0, 0, 84, 0, 0, 0, 0, 0, 0, |
| 3122 |
0, 0, 419, 0, 420, 421, 422, 423, 424, 425, |
| 3123 |
426, 427, 428, 429, 0, 0, 0, 0, 0, 84, |
| 3124 |
0, 0, -277, 0, 0, 0, 0, 101, 0, 0, |
| 3125 |
102, 0, 102, 0, 0, 0, 0, 104, 0, 0, |
| 3126 |
0, 0, 0, 0, 318, 104, 622, 0, 0, 0, |
| 3127 |
0, 0, 622, 0, 0, 0, 0, 0, 622, 622, |
| 3128 |
0, 0, 0, 0, 104, 104, 0, 0, 0, 0, |
| 3129 |
0, 0, 0, 0, 0, 0, 0, 0, 104, 0, |
| 3130 |
102, 0, 0, 356, 0, 357, 358, 359, 360, 0, |
| 3131 |
104, 104, 0, 0, 0, 0, 0, 0, 104, 0, |
| 3132 |
0, 361, 0, 0, 0, 101, 0, 0, 0, 104, |
| 3133 |
104, 0, 101, 101, 0, 0, 0, 775, 0, 0, |
| 3134 |
101, 0, 0, 0, 0, 0, 363, 0, 0, 0, |
| 3135 |
0, 317, 364, 365, 366, 367, 128, 0, 0, 0, |
| 3136 |
0, 128, 84, 0, 0, 0, 0, 102, 0, 356, |
| 3137 |
0, 357, 358, 359, 360, 0, 0, 0, 0, 0, |
| 3138 |
368, 0, 0, 369, 622, 101, 0, 361, 0, 0, |
| 3139 |
101, 0, 0, 0, 104, 104, 0, 0, 994, 0, |
| 3140 |
0, 0, 104, 870, 0, 0, 0, 0, 0, 0, |
| 3141 |
101, 0, 363, 0, 0, 0, 0, 0, 364, 365, |
| 3142 |
366, 367, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3143 |
0, 101, 0, 0, 0, 0, 101, 317, 0, 0, |
| 3144 |
0, 0, 0, 0, 0, 0, 368, 0, 0, 369, |
| 3145 |
0, 0, 0, 0, 0, 0, 0, 0, 102, 0, |
| 3146 |
0, 0, 104, 0, 104, 0, 0, 104, 0, 0, |
| 3147 |
0, 0, 0, 84, 0, 0, 0, 0, 0, 0, |
| 3148 |
0, 84, 617, 0, 0, 0, 0, 0, 617, 0, |
| 3149 |
0, 0, 0, 0, 617, 617, 101, 0, 0, 0, |
| 3150 |
84, 84, 0, 0, 0, 0, 0, 101, 0, 0, |
| 3151 |
0, 0, 0, 0, 84, 101, 0, 0, 0, 0, |
| 3152 |
0, 0, 0, 0, 0, 101, 84, 84, 0, 0, |
| 3153 |
0, 0, 0, 0, 84, 0, 102, 0, 0, 0, |
| 3154 |
0, 0, 0, 102, 102, 84, 84, 0, 0, 0, |
| 3155 |
0, 102, 0, 0, 0, 0, 0, 0, 101, 0, |
| 3156 |
0, 0, 0, 0, 0, 0, 0, 101, 0, 0, |
| 3157 |
403, 404, 405, 406, 407, 408, 409, 0, 411, 412, |
| 3158 |
0, 317, 0, 317, 0, 0, 415, 416, 0, 0, |
| 3159 |
0, 0, 0, 101, 0, 0, 102, 0, 0, 418, |
| 3160 |
617, 102, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3161 |
84, 84, 0, 0, 991, 0, 0, 0, 84, 0, |
| 3162 |
-596, 102, 420, 421, 422, 423, 424, 425, 426, 427, |
| 3163 |
428, 429, 0, -596, -596, -596, 0, -596, -596, 0, |
| 3164 |
-596, 0, 102, 0, 0, 0, -596, 102, 317, 0, |
| 3165 |
102, 0, 0, 0, 0, 0, 0, -596, -596, 0, |
| 3166 |
-596, -596, -596, -596, -596, 0, 0, 0, 0, 0, |
| 3167 |
0, 0, 0, 0, 0, 0, 0, 0, 84, 0, |
| 3168 |
84, 0, 0, 84, 0, 0, 0, 0, 0, 0, |
| 3169 |
102, 102, -596, -596, -596, -596, -596, -596, -596, -596, |
| 3170 |
-596, -596, -596, -596, 0, 0, 0, 102, -596, -596, |
| 3171 |
-596, 0, 805, -596, 0, 0, 101, 0, 102, 0, |
| 3172 |
0, -596, 0, 0, 0, -596, 102, 0, 0, 0, |
| 3173 |
0, 0, 0, 0, 0, -596, 102, 0, -596, -596, |
| 3174 |
0, -107, -596, 0, -596, -596, -596, -596, -596, -596, |
| 3175 |
-596, -596, -596, -596, 0, 0, 0, 0, -596, -596, |
| 3176 |
-596, 800, -99, 0, 0, -596, -596, -596, -596, 102, |
| 3177 |
0, 0, 0, 0, 0, 0, 0, 0, 102, 0, |
| 3178 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 403, |
| 3179 |
404, 405, 406, 407, 408, 409, 410, 411, 412, 413, |
| 3180 |
414, 0, 0, 0, 102, 415, 416, 0, 0, 0, |
| 3181 |
0, 0, 0, 0, 0, 0, 0, 0, 418, 0, |
| 3182 |
0, 0, 0, 0, 0, 0, 0, 101, 0, 0, |
| 3183 |
0, 0, 0, 0, 317, 101, 0, 0, 0, 419, |
| 3184 |
0, 420, 421, 422, 423, 424, 425, 426, 427, 428, |
| 3185 |
429, 0, 0, 0, 101, 101, 0, 0, 0, 0, |
| 3186 |
0, 0, -620, -620, -620, -620, 407, 408, 101, -596, |
| 3187 |
-620, -620, 0, 0, 0, 0, 0, 0, 415, 416, |
| 3188 |
101, 101, -596, -596, -596, 0, -596, -596, 101, -596, |
| 3189 |
0, 418, 0, 0, 0, -596, 0, 0, 0, 101, |
| 3190 |
101, 0, 0, 0, 0, 0, -596, -596, 0, -596, |
| 3191 |
-596, -596, -596, -596, 420, 421, 422, 423, 424, 425, |
| 3192 |
426, 427, 428, 429, 0, 0, 127, 102, 0, 0, |
| 3193 |
0, 127, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3194 |
0, -596, -596, -596, -596, -596, -596, -596, -596, -596, |
| 3195 |
-596, -596, -596, 0, 0, 0, 0, -596, -596, -596, |
| 3196 |
0, 805, -596, 0, 101, 101, 0, 0, 993, 0, |
| 3197 |
-596, 0, 101, 0, -596, 0, 0, 0, 0, 0, |
| 3198 |
0, 0, 0, 0, -596, 0, 0, -596, -596, 0, |
| 3199 |
-107, -596, 0, -596, -596, -596, -596, -596, -596, -596, |
| 3200 |
-596, -596, -596, 0, 0, 0, 0, -596, -596, -596, |
| 3201 |
0, -596, 0, 0, -596, -596, -596, -596, 0, 0, |
| 3202 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3203 |
0, 0, 101, 0, 101, 0, 0, 101, 102, 0, |
| 3204 |
0, 0, 0, 0, 0, 0, 102, 102, 0, 0, |
| 3205 |
0, 650, 651, 102, 0, 652, 0, 0, 0, 102, |
| 3206 |
102, 0, 0, 0, 0, 102, 102, 0, 0, 0, |
| 3207 |
174, 175, 176, 177, 178, 179, 180, 181, 0, 102, |
| 3208 |
182, 183, 0, 0, 0, 0, 184, 185, 186, 187, |
| 3209 |
0, 102, 102, 0, 0, 0, 0, 0, 0, 102, |
| 3210 |
188, 189, 190, 0, 0, 0, 0, 0, 0, 0, |
| 3211 |
102, 102, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3212 |
0, 0, 0, 0, 191, 192, 193, 194, 195, 196, |
| 3213 |
197, 198, 199, 200, 0, 201, 202, 403, 404, 405, |
| 3214 |
406, 407, 408, 203, 276, 411, 412, 0, 0, 0, |
| 3215 |
0, 0, 0, 415, 416, 0, 0, 0, 0, 0, |
| 3216 |
0, 0, 0, 0, 0, 102, 418, 0, 0, 0, |
| 3217 |
0, 0, 0, 0, 0, 102, 102, 0, 0, 0, |
| 3218 |
0, 0, 0, 102, 0, 0, 0, 0, 0, 420, |
| 3219 |
421, 422, 423, 424, 425, 426, 427, 428, 429, 0, |
| 3220 |
0, 0, 0, 0, 0, -619, 4, 0, 5, 6, |
| 3221 |
7, 8, 9, 10, 11, 12, 13, 14, 0, 0, |
| 3222 |
0, 0, 0, 0, 15, 0, 16, 17, 18, 19, |
| 3223 |
0, 0, 0, 0, 0, 20, 21, 22, 23, 24, |
| 3224 |
25, 26, 0, 102, 27, 102, 0, 0, 102, 0, |
| 3225 |
28, 29, 30, 31, 32, 33, 34, 35, 36, 37, |
| 3226 |
38, 39, 0, 40, 41, 42, 0, 0, 43, 0, |
| 3227 |
0, 44, 45, 0, 46, 47, 48, 0, 0, 0, |
| 3228 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 49, |
| 3229 |
50, 0, 0, 0, 0, 0, 51, 0, 0, 52, |
| 3230 |
53, 0, 54, 55, 0, 56, 0, 0, 0, 57, |
| 3231 |
0, 58, 59, 60, 0, 61, 62, 63, -294, 64, |
| 3232 |
-619, 0, 0, -619, -619, 0, 0, 0, 0, 0, |
| 3233 |
0, -294, -294, -294, -294, -294, -294, 0, -294, 65, |
| 3234 |
66, 67, 0, 0, 0, -294, -294, -294, 0, 0, |
| 3235 |
0, -619, 0, -619, 0, -294, -294, 0, -294, -294, |
| 3236 |
-294, -294, -294, 0, 0, 0, 0, 0, 0, 0, |
| 3237 |
0, 0, 0, 0, 0, -294, 0, 0, 0, 0, |
| 3238 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3239 |
-294, -294, -294, -294, -294, -294, -294, -294, -294, -294, |
| 3240 |
-294, -294, 0, 0, 0, 0, -294, -294, -294, 0, |
| 3241 |
0, -294, 0, 0, 0, 0, 0, -294, 0, -294, |
| 3242 |
0, 0, 0, -294, 0, 0, 0, 0, 0, 0, |
| 3243 |
0, -294, 0, -294, 0, 0, -294, -294, 0, 0, |
| 3244 |
-294, -294, -294, -294, -294, -294, -294, -294, -294, -294, |
| 3245 |
-294, -294, 0, 0, -415, 0, 0, -294, -294, -294, |
| 3246 |
-294, 0, 0, -294, -294, -294, -294, -415, -415, -415, |
| 3247 |
-415, -415, -415, 0, -415, 0, 0, 0, 0, 0, |
| 3248 |
-415, -415, -415, 0, 0, 0, 0, 0, 0, 0, |
| 3249 |
0, -415, -415, 0, -415, -415, -415, -415, -415, 0, |
| 3250 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3251 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3252 |
0, 0, 0, 0, 0, 0, -415, -415, -415, -415, |
| 3253 |
-415, -415, -415, -415, -415, -415, -415, -415, 0, 0, |
| 3254 |
0, 0, -415, -415, -415, 0, 0, -415, 0, 0, |
| 3255 |
0, 0, 0, -415, 0, -415, 0, 0, 0, -415, |
| 3256 |
0, 0, 0, 0, 0, 0, 0, 0, 0, -415, |
| 3257 |
0, 0, -415, -415, 0, 0, -415, 0, -415, -415, |
| 3258 |
-415, -415, -415, -415, -415, -415, -415, -415, 0, 0, |
| 3259 |
-481, 0, -415, -415, -415, -415, -415, 0, 276, -415, |
| 3260 |
-415, -415, -415, -481, -481, -481, -481, -481, -481, 0, |
| 3261 |
-481, 0, 0, 0, 0, 0, 0, -481, -481, 0, |
| 3262 |
0, 0, 0, 0, 0, 0, 0, -481, -481, 0, |
| 3263 |
-481, -481, -481, -481, -481, 0, 0, 0, 0, 0, |
| 3264 |
0, 0, 0, 0, 0, 0, 0, 495, 0, 0, |
| 3265 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3266 |
0, 0, -481, -481, -481, -481, -481, -481, -481, -481, |
| 3267 |
-481, -481, -481, -481, 0, 0, 0, 0, -481, -481, |
| 3268 |
-481, 0, -481, -481, 0, 0, 0, 0, 0, -481, |
| 3269 |
0, -481, 0, 0, 0, -481, 0, 0, 0, 0, |
| 3270 |
0, 0, 0, 0, 0, -481, 0, 0, -481, -481, |
| 3271 |
0, -481, -481, 0, -481, -481, -481, -481, -481, -481, |
| 3272 |
-481, -481, -481, -481, 0, 0, -619, 0, 0, -481, |
| 3273 |
-481, -481, -481, 0, 0, -481, -481, -481, -481, -619, |
| 3274 |
-619, -619, -619, -619, -619, 0, -619, 0, 0, 0, |
| 3275 |
0, 0, -619, -619, -619, 0, 0, 0, 0, 0, |
| 3276 |
0, 0, 0, -619, -619, 0, -619, -619, -619, -619, |
| 3277 |
-619, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3278 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3279 |
0, 0, 0, 0, 0, 0, 0, 0, -619, -619, |
| 3280 |
-619, -619, -619, -619, -619, -619, -619, -619, -619, -619, |
| 3281 |
0, 0, 0, 0, -619, -619, -619, 0, 0, -619, |
| 3282 |
0, 0, 0, 0, 0, -619, 0, -619, 0, 0, |
| 3283 |
0, -619, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3284 |
0, -619, 0, 0, -619, -619, 0, 0, -619, 0, |
| 3285 |
-619, -619, -619, -619, -619, -619, -619, -619, -619, -619, |
| 3286 |
0, 0, -619, 0, -619, -619, -619, -619, -619, 0, |
| 3287 |
276, -619, -619, -619, -619, -619, -619, -619, -619, -619, |
| 3288 |
-619, 0, -619, 0, 0, 0, 0, 0, 0, -619, |
| 3289 |
-619, 0, 0, 0, 0, 0, 0, 0, 0, -619, |
| 3290 |
-619, 0, -619, -619, -619, -619, -619, 0, 0, 0, |
| 3291 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3292 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3293 |
0, 0, 0, 0, -619, -619, -619, -619, -619, -619, |
| 3294 |
-619, -619, -619, -619, -619, -619, 0, 0, 0, 0, |
| 3295 |
-619, -619, -619, 0, 0, -619, 0, 0, 0, 0, |
| 3296 |
0, -619, 0, -619, 0, 0, 0, -619, 0, 0, |
| 3297 |
0, 0, 0, 0, 0, 0, 0, -619, 0, 0, |
| 3298 |
-619, -619, 0, 0, -619, 0, -619, -619, -619, -619, |
| 3299 |
-619, -619, -619, -619, -619, -619, 0, 0, -303, 0, |
| 3300 |
0, -619, -619, -619, -619, 0, 276, -619, -619, -619, |
| 3301 |
-619, -303, -303, -303, 0, -303, -303, 0, -303, 0, |
| 3302 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3303 |
0, 0, 0, 0, 0, -303, -303, 0, -303, -303, |
| 3304 |
-303, -303, -303, 0, 0, 0, 0, 0, 0, 0, |
| 3305 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3306 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3307 |
-303, -303, -303, -303, -303, -303, -303, -303, -303, -303, |
| 3308 |
-303, -303, 0, 0, 0, 0, -303, -303, -303, 0, |
| 3309 |
806, -303, 0, 0, 0, 0, 0, 0, 0, -303, |
| 3310 |
0, 0, 0, -303, 0, 0, 0, 0, 0, 0, |
| 3311 |
0, 0, 0, -303, 0, 0, -303, -303, 0, -109, |
| 3312 |
-303, 0, -303, -303, -303, -303, -303, -303, -303, -303, |
| 3313 |
-303, -303, 0, 0, -303, 0, 0, -303, -303, 0, |
| 3314 |
-101, 0, 0, -303, -303, -303, -303, -303, -303, -303, |
| 3315 |
0, -303, -303, 0, -303, 0, 0, 0, 0, 0, |
| 3316 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3317 |
0, -303, -303, 0, -303, -303, -303, -303, -303, 0, |
| 3318 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3319 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3320 |
0, 0, 0, 0, 0, 0, -303, -303, -303, -303, |
| 3321 |
-303, -303, -303, -303, -303, -303, -303, -303, 0, 0, |
| 3322 |
0, 0, -303, -303, -303, 0, 806, -303, 0, 0, |
| 3323 |
0, 0, 0, 0, 0, -303, 0, 0, 0, -303, |
| 3324 |
0, 0, 0, 0, 0, 0, 0, 0, 0, -303, |
| 3325 |
0, 0, -303, -303, 0, -109, -303, 0, -303, -303, |
| 3326 |
-303, -303, -303, -303, -303, -303, -303, -303, 0, 0, |
| 3327 |
0, 0, 0, -303, -303, 0, -303, 0, 0, -303, |
| 3328 |
-303, -303, -303, 295, 0, 5, 6, 7, 8, 9, |
| 3329 |
10, 11, 12, 13, 14, -619, -619, -619, 0, 0, |
| 3330 |
-619, 15, 0, 16, 17, 18, 19, 0, 0, 0, |
| 3331 |
0, 0, 20, 21, 22, 23, 24, 25, 26, 0, |
| 3332 |
0, 27, 0, 0, 0, 0, 0, 28, 0, 30, |
| 3333 |
31, 32, 33, 34, 35, 36, 37, 38, 39, 0, |
| 3334 |
40, 41, 42, 0, 0, 43, 0, 0, 44, 45, |
| 3335 |
0, 46, 47, 48, 0, 0, 0, 0, 0, 0, |
| 3336 |
0, 0, 0, 0, 0, 0, 49, 50, 0, 0, |
| 3337 |
0, 0, 0, 51, 0, 0, 52, 53, 0, 54, |
| 3338 |
55, 0, 56, 0, 0, 0, 57, 0, 58, 59, |
| 3339 |
60, 0, 61, 62, 63, 0, 64, -619, 0, 0, |
| 3340 |
-619, -619, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3341 |
0, 0, 0, 0, 0, 0, 65, 66, 67, 0, |
| 3342 |
0, 0, 0, 0, 0, 0, 0, 0, -619, 295, |
| 3343 |
-619, 5, 6, 7, 8, 9, 10, 11, 12, 13, |
| 3344 |
14, 0, 0, -619, 0, -619, -619, 15, 0, 16, |
| 3345 |
17, 18, 19, 0, 0, 0, 0, 0, 20, 21, |
| 3346 |
22, 23, 24, 25, 26, 0, 0, 27, 0, 0, |
| 3347 |
0, 0, 0, 28, 0, 30, 31, 32, 33, 34, |
| 3348 |
35, 36, 37, 38, 39, 0, 40, 41, 42, 0, |
| 3349 |
0, 43, 0, 0, 44, 45, 0, 46, 47, 48, |
| 3350 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3351 |
0, 0, 49, 50, 0, 0, 0, 0, 0, 51, |
| 3352 |
0, 0, 52, 53, 0, 54, 55, 0, 56, 0, |
| 3353 |
0, 0, 57, 0, 58, 59, 60, 0, 61, 62, |
| 3354 |
63, 0, 64, -619, 0, 0, -619, -619, 0, 0, |
| 3355 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3356 |
0, 0, 65, 66, 67, 0, 0, 0, 0, 0, |
| 3357 |
0, 0, 0, 0, -619, 295, -619, 5, 6, 7, |
| 3358 |
8, 9, 10, 11, 12, 13, 14, 0, 0, -619, |
| 3359 |
0, 0, -619, 15, -619, 16, 17, 18, 19, 0, |
| 3360 |
0, 0, 0, 0, 20, 21, 22, 23, 24, 25, |
| 3361 |
26, 0, 0, 27, 0, 0, 0, 0, 0, 28, |
| 3362 |
0, 30, 31, 32, 33, 34, 35, 36, 37, 38, |
| 3363 |
39, 0, 40, 41, 42, 0, 0, 43, 0, 0, |
| 3364 |
44, 45, 0, 46, 47, 48, 0, 0, 0, 0, |
| 3365 |
0, 0, 0, 0, 0, 0, 0, 0, 49, 50, |
| 3366 |
0, 0, 0, 0, 0, 51, 0, 0, 52, 53, |
| 3367 |
0, 54, 55, 0, 56, 0, 0, 0, 57, 0, |
| 3368 |
58, 59, 60, 0, 61, 62, 63, 0, 64, -619, |
| 3369 |
0, 0, -619, -619, 0, 0, 0, 0, 0, 0, |
| 3370 |
0, 0, 0, 0, 0, 0, 0, 0, 65, 66, |
| 3371 |
67, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3372 |
-619, 295, -619, 5, 6, 7, 8, 9, 10, 11, |
| 3373 |
12, 13, 14, 0, 0, -619, 0, 0, -619, 15, |
| 3374 |
0, 16, 17, 18, 19, 0, 0, 0, 0, 0, |
| 3375 |
20, 21, 22, 23, 24, 25, 26, 0, 0, 27, |
| 3376 |
0, 0, 0, 0, 0, 28, 0, 30, 31, 32, |
| 3377 |
33, 34, 35, 36, 37, 38, 39, 0, 40, 41, |
| 3378 |
42, 0, 0, 43, 0, 0, 44, 45, 0, 46, |
| 3379 |
47, 48, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3380 |
0, 0, 0, 0, 49, 50, 0, 0, 0, 0, |
| 3381 |
0, 51, 0, 0, 52, 53, 0, 54, 55, 0, |
| 3382 |
56, 0, 0, 0, 57, 0, 58, 59, 60, 0, |
| 3383 |
61, 62, 63, 0, 64, -619, 0, 0, -619, -619, |
| 3384 |
4, 0, 5, 6, 7, 8, 9, 10, 11, 12, |
| 3385 |
13, 14, 0, 0, 65, 66, 67, 0, 15, 0, |
| 3386 |
16, 17, 18, 19, 0, 0, -619, 0, -619, 20, |
| 3387 |
21, 22, 23, 24, 25, 26, 0, 0, 27, 0, |
| 3388 |
0, 0, 0, 0, 28, 29, 30, 31, 32, 33, |
| 3389 |
34, 35, 36, 37, 38, 39, 0, 40, 41, 42, |
| 3390 |
0, 0, 43, 0, 0, 44, 45, 0, 46, 47, |
| 3391 |
48, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3392 |
0, 0, 0, 49, 50, 0, 0, 0, 0, 0, |
| 3393 |
51, 0, 0, 52, 53, 0, 54, 55, 0, 56, |
| 3394 |
0, 0, 0, 57, 0, 58, 59, 60, 0, 61, |
| 3395 |
62, 63, 0, 64, -619, 0, 0, -619, -619, 0, |
| 3396 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3397 |
0, 0, 0, 65, 66, 67, 0, 0, -619, 0, |
| 3398 |
0, 0, 0, 0, 0, -619, 295, -619, 5, 6, |
| 3399 |
7, 8, 9, 10, 11, 12, 13, 14, 0, -619, |
| 3400 |
-619, 0, 0, 0, 15, 0, 16, 17, 18, 19, |
| 3401 |
0, 0, 0, 0, 0, 20, 21, 22, 23, 24, |
| 3402 |
25, 26, 0, 0, 27, 0, 0, 0, 0, 0, |
| 3403 |
28, 0, 30, 31, 32, 33, 34, 35, 36, 37, |
| 3404 |
38, 39, 0, 40, 41, 42, 0, 0, 43, 0, |
| 3405 |
0, 44, 45, 0, 46, 47, 48, 0, 0, 0, |
| 3406 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 49, |
| 3407 |
50, 0, 0, 0, 0, 0, 51, 0, 0, 52, |
| 3408 |
53, 0, 54, 55, 0, 56, 0, 0, 0, 57, |
| 3409 |
0, 58, 59, 60, 0, 61, 62, 63, 0, 64, |
| 3410 |
-619, 0, 0, -619, -619, 295, 0, 5, 6, 7, |
| 3411 |
8, 9, 10, 11, 12, 13, 14, 0, 0, 65, |
| 3412 |
66, 67, 0, 15, 0, 16, 17, 18, 19, 0, |
| 3413 |
0, -619, 0, -619, 20, 21, 22, 23, 24, 25, |
| 3414 |
26, 0, 0, 27, 0, 0, 0, 0, 0, 28, |
| 3415 |
0, 30, 31, 32, 33, 34, 35, 36, 37, 38, |
| 3416 |
39, 0, 40, 41, 42, 0, 0, 43, 0, 0, |
| 3417 |
44, 45, 0, 46, 47, 48, 0, 0, 0, 0, |
| 3418 |
0, 0, 0, 0, 0, 0, 0, 0, 49, 50, |
| 3419 |
0, 0, 0, 0, 0, 51, 0, 0, 296, 53, |
| 3420 |
0, 54, 55, 0, 56, 0, 0, 0, 57, 0, |
| 3421 |
58, 59, 60, 0, 61, 62, 63, 0, 64, -619, |
| 3422 |
0, 0, -619, -619, 295, 0, 5, 6, 7, 8, |
| 3423 |
9, 10, 11, 12, 13, 14, 0, 0, 65, 66, |
| 3424 |
67, 0, 15, 0, 16, 17, 18, 19, 0, -619, |
| 3425 |
-619, 0, -619, 20, 21, 22, 23, 24, 25, 26, |
| 3426 |
0, 0, 27, 0, 0, 0, 0, 0, 28, 0, |
| 3427 |
30, 31, 32, 33, 34, 35, 36, 37, 38, 39, |
| 3428 |
0, 40, 41, 42, 0, 0, 43, 0, 0, 44, |
| 3429 |
45, 0, 46, 47, 48, 0, 0, 0, 0, 0, |
| 3430 |
0, 0, 0, 0, 0, 0, 0, 49, 50, 0, |
| 3431 |
0, 0, 0, 0, 51, 0, 0, 52, 53, 0, |
| 3432 |
54, 55, 0, 56, 0, 0, 0, 57, 0, 58, |
| 3433 |
59, 60, 0, 61, 62, 63, 0, 64, -619, 0, |
| 3434 |
0, -619, -619, 295, 0, 5, 6, 7, 8, 9, |
| 3435 |
10, 11, 12, 13, 14, 0, 0, 65, 66, 67, |
| 3436 |
0, 15, 0, 16, 17, 18, 19, 0, -619, -619, |
| 3437 |
0, -619, 20, 21, 22, 23, 24, 25, 26, 0, |
| 3438 |
0, 27, 0, 0, 0, 0, 0, 28, 0, 30, |
| 3439 |
31, 32, 33, 34, 35, 36, 37, 38, 39, 0, |
| 3440 |
40, 41, 42, 0, 0, 43, 0, 0, 44, 45, |
| 3441 |
0, 46, 47, 48, 0, 0, 0, 0, 0, 0, |
| 3442 |
0, 0, 0, 0, 0, 0, 49, 50, 0, 0, |
| 3443 |
0, 0, 0, 51, 0, 0, 52, 53, 0, 54, |
| 3444 |
55, 0, 56, 0, 0, 0, 57, 0, 58, 59, |
| 3445 |
60, 0, 61, 62, 63, 0, 64, -619, 0, 0, |
| 3446 |
-619, -619, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3447 |
0, 0, 0, 0, 0, 0, 65, 66, 67, 0, |
| 3448 |
0, -619, 0, 0, 0, 0, 0, 0, -619, 295, |
| 3449 |
-619, 5, 6, 7, 8, 9, 10, 11, 12, 13, |
| 3450 |
14, 0, 0, -619, 0, 0, 0, 15, 0, 16, |
| 3451 |
17, 18, 19, 0, 0, 0, 0, 0, 20, 21, |
| 3452 |
22, 23, 24, 25, 26, 0, 0, 27, 0, 0, |
| 3453 |
0, 0, 0, 28, 0, 30, 31, 32, 33, 34, |
| 3454 |
35, 36, 37, 38, 39, 0, 40, 41, 42, 0, |
| 3455 |
0, 43, 0, 0, 44, 45, 0, 46, 47, 48, |
| 3456 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3457 |
0, 0, 49, 50, 0, 0, 0, 0, 0, 51, |
| 3458 |
0, 0, 52, 53, 0, 54, 55, 0, 56, 0, |
| 3459 |
0, 0, 57, 0, 58, 59, 60, 0, 61, 62, |
| 3460 |
63, 0, 64, -619, 0, 0, -619, -619, 0, 0, |
| 3461 |
5, 6, 7, 8, 9, 10, 11, 12, 13, 14, |
| 3462 |
0, 0, 65, 66, 67, 0, 15, 0, 16, 17, |
| 3463 |
18, 19, 0, 0, -619, 0, -619, 20, 21, 22, |
| 3464 |
23, 24, 25, 26, 0, 0, 27, 0, 0, 0, |
| 3465 |
0, 0, 28, 29, 30, 31, 32, 33, 34, 35, |
| 3466 |
36, 37, 38, 39, 0, 40, 41, 42, 0, 0, |
| 3467 |
43, 0, 0, 44, 45, 0, 46, 47, 48, 0, |
| 3468 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3469 |
0, 49, 50, 0, 0, 0, 0, 0, 51, 0, |
| 3470 |
0, 52, 53, 0, 54, 55, 0, 56, 0, 0, |
| 3471 |
0, 57, 0, 58, 59, 60, 0, 61, 62, 63, |
| 3472 |
0, 64, 247, 0, 0, 248, 249, 0, 0, 5, |
| 3473 |
6, 7, 8, 9, 10, 11, 12, 13, 14, 0, |
| 3474 |
0, 65, 66, 67, 0, 15, 0, 16, 17, 18, |
| 3475 |
19, 0, 0, 250, 0, 251, 20, 21, 22, 23, |
| 3476 |
24, 25, 26, 0, 0, 27, 0, 0, 0, 0, |
| 3477 |
0, 28, 0, 30, 31, 32, 33, 34, 35, 36, |
| 3478 |
37, 38, 39, 0, 40, 41, 42, 0, 0, 43, |
| 3479 |
0, 0, 44, 45, 0, 46, 47, 48, 0, 0, |
| 3480 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3481 |
49, 50, 0, 0, 0, 0, 0, 51, 0, 0, |
| 3482 |
52, 53, 0, 54, 55, 0, 56, 0, 0, 0, |
| 3483 |
57, 0, 58, 59, 60, 0, 61, 62, 63, 0, |
| 3484 |
64, 247, 0, 0, 248, 249, 0, 0, 5, 6, |
| 3485 |
7, 8, 9, 10, 11, 12, 13, 0, 0, 0, |
| 3486 |
65, 66, 67, 0, 15, 0, 16, 17, 18, 19, |
| 3487 |
0, 0, 250, 0, 251, 20, 21, 22, 23, 24, |
| 3488 |
25, 26, 0, 0, 27, 0, 0, 0, 0, 0, |
| 3489 |
0, 0, 0, 31, 32, 33, 34, 35, 36, 37, |
| 3490 |
38, 39, 0, 40, 41, 42, 0, 0, 43, 0, |
| 3491 |
0, 44, 45, 0, 46, 47, 48, 0, 0, 0, |
| 3492 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 49, |
| 3493 |
50, 0, 0, 0, 0, 0, 211, 0, 0, 119, |
| 3494 |
53, 0, 54, 55, 0, 0, 0, 0, 0, 57, |
| 3495 |
0, 58, 59, 60, 0, 61, 62, 63, 0, 64, |
| 3496 |
247, 0, 0, 248, 249, 0, 0, 5, 6, 7, |
| 3497 |
8, 9, 10, 11, 12, 13, 0, 0, 0, 65, |
| 3498 |
66, 67, 0, 15, 0, 108, 109, 18, 19, 0, |
| 3499 |
0, 250, 0, 251, 110, 111, 112, 23, 24, 25, |
| 3500 |
26, 0, 0, 113, 0, 0, 0, 0, 0, 0, |
| 3501 |
0, 0, 31, 32, 33, 34, 35, 36, 37, 38, |
| 3502 |
39, 0, 40, 41, 42, 0, 0, 43, 0, 0, |
| 3503 |
44, 45, 0, 46, 47, 48, 0, 0, 0, 0, |
| 3504 |
0, 0, 0, 0, 0, 0, 0, 0, 49, 50, |
| 3505 |
0, 0, 0, 0, 0, 211, 0, 0, 119, 53, |
| 3506 |
0, 54, 55, 0, 0, 0, 0, 0, 57, 0, |
| 3507 |
58, 59, 60, 0, 61, 62, 63, 0, 64, 247, |
| 3508 |
0, 0, 248, 249, 0, 0, 5, 6, 7, 8, |
| 3509 |
9, 10, 11, 12, 13, 0, 0, 0, 65, 265, |
| 3510 |
67, 0, 15, 0, 16, 17, 18, 19, 0, 0, |
| 3511 |
250, 0, 251, 20, 21, 22, 23, 24, 25, 26, |
| 3512 |
0, 0, 27, 0, 0, 0, 0, 0, 0, 0, |
| 3513 |
0, 31, 32, 33, 34, 35, 36, 37, 38, 39, |
| 3514 |
0, 40, 41, 42, 0, 0, 43, 0, 0, 44, |
| 3515 |
45, 0, 46, 47, 48, 0, 0, 0, 0, 0, |
| 3516 |
0, 0, 0, 0, 0, 0, 0, 49, 50, 0, |
| 3517 |
0, 0, 0, 0, 211, 0, 0, 119, 53, 0, |
| 3518 |
54, 55, 0, 0, 0, 0, 0, 57, 0, 58, |
| 3519 |
59, 60, 0, 61, 62, 63, 0, 64, 247, 0, |
| 3520 |
0, 248, 249, 0, 0, 0, 0, 0, 0, 0, |
| 3521 |
0, 0, 0, 0, 0, 0, 0, 65, 66, 67, |
| 3522 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3523 |
0, 251, 131, 132, 133, 134, 135, 136, 137, 138, |
| 3524 |
139, 140, 141, 142, 143, 144, 145, 146, 147, 148, |
| 3525 |
149, 150, 151, 152, 153, 154, 0, 0, 0, 155, |
| 3526 |
156, 157, 158, 159, 160, 161, 162, 163, 164, 0, |
| 3527 |
0, 0, 0, 0, 165, 166, 167, 168, 169, 170, |
| 3528 |
171, 172, 36, 37, 173, 39, 0, 0, 0, 0, |
| 3529 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 174, |
| 3530 |
175, 176, 177, 178, 179, 180, 181, 0, 0, 182, |
| 3531 |
183, 0, 0, 0, 0, 184, 185, 186, 187, 0, |
| 3532 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 188, |
| 3533 |
189, 190, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3534 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3535 |
0, 0, 0, 191, 192, 193, 194, 195, 196, 197, |
| 3536 |
198, 199, 200, 0, 201, 202, 0, 0, 0, 0, |
| 3537 |
0, 0, 203, 204, -589, -589, -589, -589, -589, -589, |
| 3538 |
-589, -589, -589, 0, 0, 0, 0, 0, 0, 0, |
| 3539 |
-589, 0, -589, -589, -589, -589, 0, -589, 0, 0, |
| 3540 |
0, -589, -589, -589, -589, -589, -589, -589, 0, 0, |
| 3541 |
-589, 0, 0, 0, 0, 0, 0, 0, 0, -589, |
| 3542 |
-589, -589, -589, -589, -589, -589, -589, -589, 0, -589, |
| 3543 |
-589, -589, 0, 0, -589, 0, 0, -589, -589, 0, |
| 3544 |
-589, -589, -589, 0, 0, 0, 0, 0, 0, 0, |
| 3545 |
0, 0, 0, 0, 0, -589, -589, 0, 0, 0, |
| 3546 |
0, 0, -589, 0, 0, -589, -589, 0, -589, -589, |
| 3547 |
0, -589, 0, -589, -589, -589, 0, -589, -589, -589, |
| 3548 |
0, -589, -589, -589, 0, -589, 0, 0, 0, 0, |
| 3549 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3550 |
0, 0, 0, 0, 0, -589, -589, -589, 0, -589, |
| 3551 |
0, 0, 0, 0, 0, -589, -590, -590, -590, -590, |
| 3552 |
-590, -590, -590, -590, -590, 0, 0, 0, 0, 0, |
| 3553 |
0, 0, -590, 0, -590, -590, -590, -590, 0, -590, |
| 3554 |
0, 0, 0, -590, -590, -590, -590, -590, -590, -590, |
| 3555 |
0, 0, -590, 0, 0, 0, 0, 0, 0, 0, |
| 3556 |
0, -590, -590, -590, -590, -590, -590, -590, -590, -590, |
| 3557 |
0, -590, -590, -590, 0, 0, -590, 0, 0, -590, |
| 3558 |
-590, 0, -590, -590, -590, 0, 0, 0, 0, 0, |
| 3559 |
0, 0, 0, 0, 0, 0, 0, -590, -590, 0, |
| 3560 |
0, 0, 0, 0, -590, 0, 0, -590, -590, 0, |
| 3561 |
-590, -590, 0, -590, 0, -590, -590, -590, 0, -590, |
| 3562 |
-590, -590, 0, -590, -590, -590, 0, -590, 0, 0, |
| 3563 |
0, 0, 0, 0, -592, -592, -592, -592, -592, -592, |
| 3564 |
-592, -592, -592, 0, 0, 0, 0, -590, -590, -590, |
| 3565 |
-592, -590, -592, -592, -592, -592, 0, -590, 0, 0, |
| 3566 |
0, -592, -592, -592, -592, -592, -592, -592, 0, 0, |
| 3567 |
-592, 0, 0, 0, 0, 0, 0, 0, 0, -592, |
| 3568 |
-592, -592, -592, -592, -592, -592, -592, -592, 0, -592, |
| 3569 |
-592, -592, 0, 0, -592, 0, 0, -592, -592, 0, |
| 3570 |
-592, -592, -592, 0, 0, 0, 0, 0, 0, 0, |
| 3571 |
0, 0, 0, 0, 0, -592, -592, 0, 0, 0, |
| 3572 |
0, 0, -592, 837, 0, -592, -592, 0, -592, -592, |
| 3573 |
0, -592, 0, -592, -592, -592, 0, -592, -592, -592, |
| 3574 |
0, -592, -592, -592, 0, -592, 0, 0, 0, 0, |
| 3575 |
0, 0, -107, -593, -593, -593, -593, -593, -593, -593, |
| 3576 |
-593, -593, 0, 0, 0, -592, -592, -592, 0, -593, |
| 3577 |
0, -593, -593, -593, -593, -592, 0, 0, 0, 0, |
| 3578 |
-593, -593, -593, -593, -593, -593, -593, 0, 0, -593, |
| 3579 |
0, 0, 0, 0, 0, 0, 0, 0, -593, -593, |
| 3580 |
-593, -593, -593, -593, -593, -593, -593, 0, -593, -593, |
| 3581 |
-593, 0, 0, -593, 0, 0, -593, -593, 0, -593, |
| 3582 |
-593, -593, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3583 |
0, 0, 0, 0, -593, -593, 0, 0, 0, 0, |
| 3584 |
0, -593, 838, 0, -593, -593, 0, -593, -593, 0, |
| 3585 |
-593, 0, -593, -593, -593, 0, -593, -593, -593, 0, |
| 3586 |
-593, -593, -593, 0, -593, 0, 0, 0, 0, 0, |
| 3587 |
0, -109, -594, -594, -594, -594, -594, -594, -594, -594, |
| 3588 |
-594, 0, 0, 0, -593, -593, -593, 0, -594, 0, |
| 3589 |
-594, -594, -594, -594, -593, 0, 0, 0, 0, -594, |
| 3590 |
-594, -594, -594, -594, -594, -594, 0, 0, -594, 0, |
| 3591 |
0, 0, 0, 0, 0, 0, 0, -594, -594, -594, |
| 3592 |
-594, -594, -594, -594, -594, -594, 0, -594, -594, -594, |
| 3593 |
0, 0, -594, 0, 0, -594, -594, 0, -594, -594, |
| 3594 |
-594, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3595 |
0, 0, 0, -594, -594, 0, 0, 0, 0, 0, |
| 3596 |
-594, 0, 0, -594, -594, 0, -594, -594, 0, -594, |
| 3597 |
0, -594, -594, -594, 0, -594, -594, -594, 0, -594, |
| 3598 |
-594, -594, 0, -594, 0, 0, 0, 0, 0, 0, |
| 3599 |
-595, -595, -595, -595, -595, -595, -595, -595, -595, 0, |
| 3600 |
0, 0, 0, -594, -594, -594, -595, 0, -595, -595, |
| 3601 |
-595, -595, 0, -594, 0, 0, 0, -595, -595, -595, |
| 3602 |
-595, -595, -595, -595, 0, 0, -595, 0, 0, 0, |
| 3603 |
0, 0, 0, 0, 0, -595, -595, -595, -595, -595, |
| 3604 |
-595, -595, -595, -595, 0, -595, -595, -595, 0, 0, |
| 3605 |
-595, 0, 0, -595, -595, 0, -595, -595, -595, 0, |
| 3606 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3607 |
0, -595, -595, 0, 0, 0, 0, 0, -595, 0, |
| 3608 |
0, -595, -595, 0, -595, -595, 0, -595, 0, -595, |
| 3609 |
-595, -595, 0, -595, -595, -595, 0, -595, -595, -595, |
| 3610 |
0, -595, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3611 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3612 |
0, -595, -595, -595, 0, 0, 0, 0, 0, 0, |
| 3613 |
0, -595, 131, 132, 133, 134, 135, 136, 137, 138, |
| 3614 |
139, 140, 141, 142, 143, 144, 145, 146, 147, 148, |
| 3615 |
149, 150, 151, 152, 153, 154, 0, 0, 0, 155, |
| 3616 |
156, 157, 233, 234, 235, 236, 162, 163, 164, 0, |
| 3617 |
0, 0, 0, 0, 165, 166, 167, 237, 238, 239, |
| 3618 |
240, 172, 320, 321, 241, 322, 0, 0, 0, 0, |
| 3619 |
0, 0, 323, 0, 0, 0, 0, 0, 0, 174, |
| 3620 |
175, 176, 177, 178, 179, 180, 181, 0, 0, 182, |
| 3621 |
183, 0, 0, 0, 0, 184, 185, 186, 187, 0, |
| 3622 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 188, |
| 3623 |
189, 190, 0, 0, 0, 0, 324, 0, 0, 0, |
| 3624 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3625 |
0, 0, 0, 191, 192, 193, 194, 195, 196, 197, |
| 3626 |
198, 199, 200, 0, 201, 202, 0, 0, 0, 0, |
| 3627 |
0, 0, 203, 131, 132, 133, 134, 135, 136, 137, |
| 3628 |
138, 139, 140, 141, 142, 143, 144, 145, 146, 147, |
| 3629 |
148, 149, 150, 151, 152, 153, 154, 0, 0, 0, |
| 3630 |
155, 156, 157, 233, 234, 235, 236, 162, 163, 164, |
| 3631 |
0, 0, 0, 0, 0, 165, 166, 167, 237, 238, |
| 3632 |
239, 240, 172, 320, 321, 241, 322, 0, 0, 0, |
| 3633 |
0, 0, 0, 323, 0, 0, 0, 0, 0, 0, |
| 3634 |
174, 175, 176, 177, 178, 179, 180, 181, 0, 0, |
| 3635 |
182, 183, 0, 0, 0, 0, 184, 185, 186, 187, |
| 3636 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3637 |
188, 189, 190, 0, 0, 0, 0, 486, 0, 0, |
| 3638 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3639 |
0, 0, 0, 0, 191, 192, 193, 194, 195, 196, |
| 3640 |
197, 198, 199, 200, 0, 201, 202, 0, 0, 0, |
| 3641 |
0, 0, 0, 203, 131, 132, 133, 134, 135, 136, |
| 3642 |
137, 138, 139, 140, 141, 142, 143, 144, 145, 146, |
| 3643 |
147, 148, 149, 150, 151, 152, 153, 154, 0, 0, |
| 3644 |
0, 155, 156, 157, 233, 234, 235, 236, 162, 163, |
| 3645 |
164, 0, 0, 0, 0, 0, 165, 166, 167, 237, |
| 3646 |
238, 239, 240, 172, 0, 0, 241, 0, 0, 0, |
| 3647 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3648 |
0, 174, 175, 176, 177, 178, 179, 180, 181, 0, |
| 3649 |
0, 182, 183, 0, 0, 0, 0, 184, 185, 186, |
| 3650 |
187, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3651 |
0, 188, 189, 190, 0, 0, 0, 242, 0, 0, |
| 3652 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3653 |
0, 0, 0, 0, 0, 191, 192, 193, 194, 195, |
| 3654 |
196, 197, 198, 199, 200, 0, 201, 202, 0, 0, |
| 3655 |
0, 0, 0, 0, 203, 131, 132, 133, 134, 135, |
| 3656 |
136, 137, 138, 139, 140, 141, 142, 143, 144, 145, |
| 3657 |
146, 147, 148, 149, 150, 151, 152, 153, 154, 0, |
| 3658 |
0, 0, 155, 156, 157, 233, 234, 235, 236, 162, |
| 3659 |
163, 164, 0, 0, 0, 0, 0, 165, 166, 167, |
| 3660 |
237, 238, 239, 240, 172, 0, 0, 241, 0, 0, |
| 3661 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3662 |
0, 0, 174, 175, 176, 177, 178, 179, 180, 181, |
| 3663 |
0, 0, 182, 183, 0, 0, 0, 0, 184, 185, |
| 3664 |
186, 187, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3665 |
0, 0, 188, 189, 190, 0, 0, 0, 0, 0, |
| 3666 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3667 |
0, 0, 0, 0, 0, 0, 191, 192, 193, 194, |
| 3668 |
195, 196, 197, 198, 199, 200, 0, 201, 202, 0, |
| 3669 |
0, 0, 0, 0, 0, 203, 5, 6, 7, 8, |
| 3670 |
9, 10, 11, 12, 13, 0, 0, 0, 0, 0, |
| 3671 |
0, 0, 15, 0, 108, 109, 18, 19, 0, 0, |
| 3672 |
0, 0, 0, 110, 111, 112, 23, 24, 25, 26, |
| 3673 |
0, 0, 113, 0, 0, 0, 0, 0, 0, 0, |
| 3674 |
0, 31, 32, 33, 34, 35, 36, 37, 38, 39, |
| 3675 |
0, 40, 41, 42, 0, 0, 43, 0, 0, 44, |
| 3676 |
45, 0, 116, 0, 0, 0, 0, 0, 0, 0, |
| 3677 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3678 |
0, 0, 0, 0, 313, 0, 0, 119, 53, 0, |
| 3679 |
54, 55, 0, 0, 0, 0, 0, 57, 0, 58, |
| 3680 |
59, 60, 0, 61, 62, 63, 0, 64, 0, 0, |
| 3681 |
5, 6, 7, 8, 9, 10, 11, 12, 13, 0, |
| 3682 |
0, 0, 0, 0, 0, 0, 15, 120, 108, 109, |
| 3683 |
18, 19, 0, 0, 0, 314, 0, 110, 111, 112, |
| 3684 |
23, 24, 25, 26, 0, 0, 113, 0, 0, 0, |
| 3685 |
0, 0, 0, 0, 0, 31, 32, 33, 34, 35, |
| 3686 |
36, 37, 38, 39, 0, 40, 41, 42, 0, 0, |
| 3687 |
43, 0, 0, 44, 45, 0, 116, 0, 0, 0, |
| 3688 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3689 |
0, 0, 0, 0, 0, 0, 0, 0, 313, 0, |
| 3690 |
0, 119, 53, 0, 54, 55, 0, 0, 0, 0, |
| 3691 |
0, 57, 0, 58, 59, 60, 0, 61, 62, 63, |
| 3692 |
0, 64, 0, 0, 5, 6, 7, 8, 9, 10, |
| 3693 |
11, 12, 13, 14, 0, 0, 0, 0, 0, 0, |
| 3694 |
15, 120, 16, 17, 18, 19, 0, 0, 0, 611, |
| 3695 |
0, 20, 21, 22, 23, 24, 25, 26, 0, 0, |
| 3696 |
27, 0, 0, 0, 0, 0, 28, 29, 30, 31, |
| 3697 |
32, 33, 34, 35, 36, 37, 38, 39, 0, 40, |
| 3698 |
41, 42, 0, 0, 43, 0, 0, 44, 45, 0, |
| 3699 |
46, 47, 48, 0, 0, 0, 0, 0, 0, 0, |
| 3700 |
0, 0, 0, 0, 0, 49, 50, 0, 0, 0, |
| 3701 |
0, 0, 51, 0, 0, 52, 53, 0, 54, 55, |
| 3702 |
0, 56, 0, 0, 0, 57, 0, 58, 59, 60, |
| 3703 |
0, 61, 62, 63, 0, 64, 0, 0, 0, 0, |
| 3704 |
0, 0, 5, 6, 7, 8, 9, 10, 11, 12, |
| 3705 |
13, 14, 0, 0, 0, 65, 66, 67, 15, 0, |
| 3706 |
16, 17, 18, 19, 0, 0, 0, 0, 0, 20, |
| 3707 |
21, 22, 23, 24, 25, 26, 0, 0, 27, 0, |
| 3708 |
0, 0, 0, 0, 28, 0, 30, 31, 32, 33, |
| 3709 |
34, 35, 36, 37, 38, 39, 0, 40, 41, 42, |
| 3710 |
0, 0, 43, 0, 0, 44, 45, 0, 46, 47, |
| 3711 |
48, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3712 |
0, 0, 0, 49, 50, 0, 0, 0, 0, 0, |
| 3713 |
51, 0, 0, 52, 53, 0, 54, 55, 0, 56, |
| 3714 |
0, 0, 0, 57, 0, 58, 59, 60, 0, 61, |
| 3715 |
62, 63, 0, 64, 0, 0, 0, 0, 0, 0, |
| 3716 |
5, 6, 7, 8, 9, 10, 11, 12, 13, 0, |
| 3717 |
0, 0, 0, 65, 66, 67, 15, 0, 16, 17, |
| 3718 |
18, 19, 0, 0, 0, 0, 0, 20, 21, 22, |
| 3719 |
23, 24, 25, 26, 0, 0, 113, 0, 0, 0, |
| 3720 |
0, 0, 0, 0, 0, 31, 32, 33, 260, 35, |
| 3721 |
36, 37, 38, 39, 0, 40, 41, 42, 0, 0, |
| 3722 |
43, 0, 0, 44, 45, 0, 261, 47, 48, 0, |
| 3723 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3724 |
0, 49, 50, 0, 0, 0, 0, 0, 211, 0, |
| 3725 |
0, 119, 53, 0, 54, 55, 0, 262, 0, 263, |
| 3726 |
264, 57, 0, 58, 59, 60, 0, 61, 62, 63, |
| 3727 |
0, 64, 0, 0, 0, 0, 0, 0, 5, 6, |
| 3728 |
7, 8, 9, 10, 11, 12, 13, 0, 0, 0, |
| 3729 |
0, 65, 265, 67, 15, 0, 16, 17, 18, 19, |
| 3730 |
0, 0, 0, 0, 0, 20, 21, 22, 23, 24, |
| 3731 |
25, 26, 0, 0, 113, 0, 0, 0, 0, 0, |
| 3732 |
0, 0, 0, 31, 32, 33, 260, 35, 36, 37, |
| 3733 |
38, 39, 0, 40, 41, 42, 0, 0, 43, 0, |
| 3734 |
0, 44, 45, 0, 261, 47, 48, 0, 0, 0, |
| 3735 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 49, |
| 3736 |
508, 0, 0, 0, 0, 0, 211, 0, 0, 119, |
| 3737 |
53, 0, 54, 55, 0, 262, 0, 263, 264, 57, |
| 3738 |
0, 58, 59, 60, 0, 61, 62, 63, 0, 64, |
| 3739 |
0, 0, 0, 0, 0, 0, 5, 6, 7, 8, |
| 3740 |
9, 10, 11, 12, 13, 0, 0, 0, 0, 65, |
| 3741 |
265, 67, 15, 0, 108, 109, 18, 19, 0, 0, |
| 3742 |
0, 0, 0, 110, 111, 112, 23, 24, 25, 26, |
| 3743 |
0, 0, 113, 0, 0, 0, 0, 0, 0, 0, |
| 3744 |
0, 31, 32, 33, 260, 35, 36, 37, 38, 39, |
| 3745 |
0, 40, 41, 42, 0, 0, 43, 0, 0, 44, |
| 3746 |
45, 0, 261, 47, 48, 0, 0, 0, 0, 0, |
| 3747 |
0, 0, 0, 0, 0, 0, 0, 49, 50, 0, |
| 3748 |
0, 0, 0, 0, 211, 0, 0, 119, 53, 0, |
| 3749 |
54, 55, 0, 723, 0, 263, 264, 57, 0, 58, |
| 3750 |
59, 60, 0, 61, 62, 63, 0, 64, 0, 0, |
| 3751 |
0, 0, 0, 0, 5, 6, 7, 8, 9, 10, |
| 3752 |
11, 12, 13, 0, 0, 0, 0, 65, 265, 67, |
| 3753 |
15, 0, 108, 109, 18, 19, 0, 0, 0, 0, |
| 3754 |
0, 110, 111, 112, 23, 24, 25, 26, 0, 0, |
| 3755 |
113, 0, 0, 0, 0, 0, 0, 0, 0, 31, |
| 3756 |
32, 33, 260, 35, 36, 37, 38, 39, 0, 40, |
| 3757 |
41, 42, 0, 0, 43, 0, 0, 44, 45, 0, |
| 3758 |
261, 47, 48, 0, 0, 0, 0, 0, 0, 0, |
| 3759 |
0, 0, 0, 0, 0, 49, 854, 0, 0, 0, |
| 3760 |
0, 0, 211, 0, 0, 119, 53, 0, 54, 55, |
| 3761 |
0, 723, 0, 263, 264, 57, 0, 58, 59, 60, |
| 3762 |
0, 61, 62, 63, 0, 64, 0, 0, 0, 0, |
| 3763 |
0, 0, 5, 6, 7, 8, 9, 10, 11, 12, |
| 3764 |
13, 0, 0, 0, 0, 65, 265, 67, 15, 0, |
| 3765 |
108, 109, 18, 19, 0, 0, 0, 0, 0, 110, |
| 3766 |
111, 112, 23, 24, 25, 26, 0, 0, 113, 0, |
| 3767 |
0, 0, 0, 0, 0, 0, 0, 31, 32, 33, |
| 3768 |
260, 35, 36, 37, 38, 39, 0, 40, 41, 42, |
| 3769 |
0, 0, 43, 0, 0, 44, 45, 0, 261, 47, |
| 3770 |
48, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3771 |
0, 0, 0, 49, 50, 0, 0, 0, 0, 0, |
| 3772 |
211, 0, 0, 119, 53, 0, 54, 55, 0, 262, |
| 3773 |
0, 263, 0, 57, 0, 58, 59, 60, 0, 61, |
| 3774 |
62, 63, 0, 64, 0, 0, 0, 0, 0, 0, |
| 3775 |
5, 6, 7, 8, 9, 10, 11, 12, 13, 0, |
| 3776 |
0, 0, 0, 65, 265, 67, 15, 0, 108, 109, |
| 3777 |
18, 19, 0, 0, 0, 0, 0, 110, 111, 112, |
| 3778 |
23, 24, 25, 26, 0, 0, 113, 0, 0, 0, |
| 3779 |
0, 0, 0, 0, 0, 31, 32, 33, 260, 35, |
| 3780 |
36, 37, 38, 39, 0, 40, 41, 42, 0, 0, |
| 3781 |
43, 0, 0, 44, 45, 0, 261, 47, 48, 0, |
| 3782 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3783 |
0, 49, 50, 0, 0, 0, 0, 0, 211, 0, |
| 3784 |
0, 119, 53, 0, 54, 55, 0, 0, 0, 263, |
| 3785 |
264, 57, 0, 58, 59, 60, 0, 61, 62, 63, |
| 3786 |
0, 64, 0, 0, 0, 0, 0, 0, 5, 6, |
| 3787 |
7, 8, 9, 10, 11, 12, 13, 0, 0, 0, |
| 3788 |
0, 65, 265, 67, 15, 0, 108, 109, 18, 19, |
| 3789 |
0, 0, 0, 0, 0, 110, 111, 112, 23, 24, |
| 3790 |
25, 26, 0, 0, 113, 0, 0, 0, 0, 0, |
| 3791 |
0, 0, 0, 31, 32, 33, 260, 35, 36, 37, |
| 3792 |
38, 39, 0, 40, 41, 42, 0, 0, 43, 0, |
| 3793 |
0, 44, 45, 0, 261, 47, 48, 0, 0, 0, |
| 3794 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 49, |
| 3795 |
50, 0, 0, 0, 0, 0, 211, 0, 0, 119, |
| 3796 |
53, 0, 54, 55, 0, 723, 0, 263, 0, 57, |
| 3797 |
0, 58, 59, 60, 0, 61, 62, 63, 0, 64, |
| 3798 |
0, 0, 0, 0, 0, 0, 5, 6, 7, 8, |
| 3799 |
9, 10, 11, 12, 13, 0, 0, 0, 0, 65, |
| 3800 |
265, 67, 15, 0, 108, 109, 18, 19, 0, 0, |
| 3801 |
0, 0, 0, 110, 111, 112, 23, 24, 25, 26, |
| 3802 |
0, 0, 113, 0, 0, 0, 0, 0, 0, 0, |
| 3803 |
0, 31, 32, 33, 260, 35, 36, 37, 38, 39, |
| 3804 |
0, 40, 41, 42, 0, 0, 43, 0, 0, 44, |
| 3805 |
45, 0, 261, 47, 48, 0, 0, 0, 0, 0, |
| 3806 |
0, 0, 0, 0, 0, 0, 0, 49, 50, 0, |
| 3807 |
0, 0, 0, 0, 211, 0, 0, 119, 53, 0, |
| 3808 |
54, 55, 0, 0, 0, 263, 0, 57, 0, 58, |
| 3809 |
59, 60, 0, 61, 62, 63, 0, 64, 0, 0, |
| 3810 |
0, 0, 0, 0, 5, 6, 7, 8, 9, 10, |
| 3811 |
11, 12, 13, 0, 0, 0, 0, 65, 265, 67, |
| 3812 |
15, 0, 16, 17, 18, 19, 0, 0, 0, 0, |
| 3813 |
0, 20, 21, 22, 23, 24, 25, 26, 0, 0, |
| 3814 |
113, 0, 0, 0, 0, 0, 0, 0, 0, 31, |
| 3815 |
32, 33, 34, 35, 36, 37, 38, 39, 0, 40, |
| 3816 |
41, 42, 0, 0, 43, 0, 0, 44, 45, 0, |
| 3817 |
46, 47, 48, 0, 0, 0, 0, 0, 0, 0, |
| 3818 |
0, 0, 0, 0, 0, 49, 50, 0, 0, 0, |
| 3819 |
0, 0, 211, 0, 0, 119, 53, 0, 54, 55, |
| 3820 |
0, 605, 0, 0, 0, 57, 0, 58, 59, 60, |
| 3821 |
0, 61, 62, 63, 0, 64, 0, 0, 0, 0, |
| 3822 |
0, 0, 5, 6, 7, 8, 9, 10, 11, 12, |
| 3823 |
13, 0, 0, 0, 0, 65, 265, 67, 15, 0, |
| 3824 |
108, 109, 18, 19, 0, 0, 0, 0, 0, 110, |
| 3825 |
111, 112, 23, 24, 25, 26, 0, 0, 113, 0, |
| 3826 |
0, 0, 0, 0, 0, 0, 0, 31, 32, 33, |
| 3827 |
34, 35, 36, 37, 38, 39, 0, 40, 41, 42, |
| 3828 |
0, 0, 43, 0, 0, 44, 45, 0, 46, 47, |
| 3829 |
48, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3830 |
0, 0, 0, 49, 50, 0, 0, 0, 0, 0, |
| 3831 |
211, 0, 0, 119, 53, 0, 54, 55, 0, 262, |
| 3832 |
0, 0, 0, 57, 0, 58, 59, 60, 0, 61, |
| 3833 |
62, 63, 0, 64, 0, 0, 0, 0, 0, 0, |
| 3834 |
5, 6, 7, 8, 9, 10, 11, 12, 13, 0, |
| 3835 |
0, 0, 0, 65, 265, 67, 15, 0, 108, 109, |
| 3836 |
18, 19, 0, 0, 0, 0, 0, 110, 111, 112, |
| 3837 |
23, 24, 25, 26, 0, 0, 113, 0, 0, 0, |
| 3838 |
0, 0, 0, 0, 0, 31, 32, 33, 34, 35, |
| 3839 |
36, 37, 38, 39, 0, 40, 41, 42, 0, 0, |
| 3840 |
43, 0, 0, 44, 45, 0, 46, 47, 48, 0, |
| 3841 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3842 |
0, 49, 50, 0, 0, 0, 0, 0, 211, 0, |
| 3843 |
0, 119, 53, 0, 54, 55, 0, 605, 0, 0, |
| 3844 |
0, 57, 0, 58, 59, 60, 0, 61, 62, 63, |
| 3845 |
0, 64, 0, 0, 0, 0, 0, 0, 5, 6, |
| 3846 |
7, 8, 9, 10, 11, 12, 13, 0, 0, 0, |
| 3847 |
0, 65, 265, 67, 15, 0, 108, 109, 18, 19, |
| 3848 |
0, 0, 0, 0, 0, 110, 111, 112, 23, 24, |
| 3849 |
25, 26, 0, 0, 113, 0, 0, 0, 0, 0, |
| 3850 |
0, 0, 0, 31, 32, 33, 34, 35, 36, 37, |
| 3851 |
38, 39, 0, 40, 41, 42, 0, 0, 43, 0, |
| 3852 |
0, 44, 45, 0, 46, 47, 48, 0, 0, 0, |
| 3853 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 49, |
| 3854 |
50, 0, 0, 0, 0, 0, 211, 0, 0, 119, |
| 3855 |
53, 0, 54, 55, 0, 900, 0, 0, 0, 57, |
| 3856 |
0, 58, 59, 60, 0, 61, 62, 63, 0, 64, |
| 3857 |
0, 0, 0, 0, 0, 0, 5, 6, 7, 8, |
| 3858 |
9, 10, 11, 12, 13, 0, 0, 0, 0, 65, |
| 3859 |
265, 67, 15, 0, 108, 109, 18, 19, 0, 0, |
| 3860 |
0, 0, 0, 110, 111, 112, 23, 24, 25, 26, |
| 3861 |
0, 0, 113, 0, 0, 0, 0, 0, 0, 0, |
| 3862 |
0, 31, 32, 33, 34, 35, 36, 37, 38, 39, |
| 3863 |
0, 40, 41, 42, 0, 0, 43, 0, 0, 44, |
| 3864 |
45, 0, 46, 47, 48, 0, 0, 0, 0, 0, |
| 3865 |
0, 0, 0, 0, 0, 0, 0, 49, 50, 0, |
| 3866 |
0, 0, 0, 0, 211, 0, 0, 119, 53, 0, |
| 3867 |
54, 55, 0, 723, 0, 0, 0, 57, 0, 58, |
| 3868 |
59, 60, 0, 61, 62, 63, 0, 64, 0, 0, |
| 3869 |
0, 0, 0, 0, 5, 6, 7, 8, 9, 10, |
| 3870 |
11, 12, 13, 0, 0, 0, 0, 65, 265, 67, |
| 3871 |
15, 0, 16, 17, 18, 19, 0, 0, 0, 0, |
| 3872 |
0, 20, 21, 22, 23, 24, 25, 26, 0, 0, |
| 3873 |
27, 0, 0, 0, 0, 0, 0, 0, 0, 31, |
| 3874 |
32, 33, 34, 35, 36, 37, 38, 39, 0, 40, |
| 3875 |
41, 42, 0, 0, 43, 0, 0, 44, 45, 0, |
| 3876 |
46, 47, 48, 0, 0, 0, 0, 0, 0, 0, |
| 3877 |
0, 0, 0, 0, 0, 49, 50, 0, 0, 0, |
| 3878 |
0, 0, 211, 0, 0, 119, 53, 0, 54, 55, |
| 3879 |
0, 0, 0, 0, 0, 57, 0, 58, 59, 60, |
| 3880 |
0, 61, 62, 63, 0, 64, 0, 0, 0, 0, |
| 3881 |
0, 0, 5, 6, 7, 8, 9, 10, 11, 12, |
| 3882 |
13, 0, 0, 0, 0, 65, 66, 67, 15, 0, |
| 3883 |
108, 109, 18, 19, 0, 0, 0, 0, 0, 110, |
| 3884 |
111, 112, 23, 24, 25, 26, 0, 0, 113, 0, |
| 3885 |
0, 0, 0, 0, 0, 0, 0, 31, 32, 33, |
| 3886 |
34, 35, 36, 37, 38, 39, 0, 40, 41, 42, |
| 3887 |
0, 0, 43, 0, 0, 44, 45, 0, 46, 47, |
| 3888 |
48, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3889 |
0, 0, 0, 49, 50, 0, 0, 0, 0, 0, |
| 3890 |
211, 0, 0, 119, 53, 0, 54, 55, 0, 0, |
| 3891 |
0, 0, 0, 57, 0, 58, 59, 60, 0, 61, |
| 3892 |
62, 63, 0, 64, 0, 0, 0, 0, 0, 0, |
| 3893 |
5, 6, 7, 8, 9, 10, 11, 12, 13, 0, |
| 3894 |
0, 0, 0, 65, 265, 67, 15, 0, 16, 17, |
| 3895 |
18, 19, 0, 0, 0, 0, 0, 20, 21, 22, |
| 3896 |
23, 24, 25, 26, 0, 0, 113, 0, 0, 0, |
| 3897 |
0, 0, 0, 0, 0, 31, 32, 33, 34, 35, |
| 3898 |
36, 37, 38, 39, 0, 40, 41, 42, 0, 0, |
| 3899 |
43, 0, 0, 44, 45, 0, 46, 47, 48, 0, |
| 3900 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3901 |
0, 49, 50, 0, 0, 0, 0, 0, 211, 0, |
| 3902 |
0, 119, 53, 0, 54, 55, 0, 0, 0, 0, |
| 3903 |
0, 57, 0, 58, 59, 60, 0, 61, 62, 63, |
| 3904 |
0, 64, 0, 0, 0, 0, 0, 0, 5, 6, |
| 3905 |
7, 8, 9, 10, 11, 12, 13, 0, 0, 0, |
| 3906 |
0, 65, 265, 67, 15, 0, 108, 109, 18, 19, |
| 3907 |
0, 0, 0, 0, 0, 110, 111, 112, 23, 24, |
| 3908 |
25, 26, 0, 0, 113, 0, 0, 0, 0, 0, |
| 3909 |
0, 0, 0, 31, 32, 33, 114, 35, 36, 37, |
| 3910 |
115, 39, 0, 40, 41, 42, 0, 0, 43, 0, |
| 3911 |
0, 44, 45, 0, 116, 0, 0, 0, 0, 0, |
| 3912 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3913 |
0, 0, 0, 117, 0, 0, 118, 0, 0, 119, |
| 3914 |
53, 0, 54, 55, 0, 0, 0, 0, 0, 57, |
| 3915 |
0, 58, 59, 60, 0, 61, 62, 63, 0, 64, |
| 3916 |
0, 0, 5, 6, 7, 8, 9, 10, 11, 12, |
| 3917 |
13, 0, 0, 0, 0, 0, 0, 0, 15, 120, |
| 3918 |
108, 109, 18, 19, 0, 0, 0, 0, 0, 110, |
| 3919 |
111, 112, 23, 24, 25, 26, 0, 0, 113, 0, |
| 3920 |
0, 0, 0, 0, 0, 0, 0, 31, 32, 33, |
| 3921 |
34, 35, 36, 37, 38, 39, 0, 40, 41, 42, |
| 3922 |
0, 0, 43, 0, 0, 44, 45, 0, 225, 0, |
| 3923 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3924 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3925 |
226, 0, 0, 52, 53, 0, 54, 55, 0, 56, |
| 3926 |
0, 0, 0, 57, 0, 58, 59, 60, 0, 61, |
| 3927 |
62, 63, 0, 64, 0, 0, 5, 6, 7, 8, |
| 3928 |
9, 10, 11, 12, 13, 0, 0, 0, 0, 0, |
| 3929 |
0, 0, 15, 120, 108, 109, 18, 19, 0, 0, |
| 3930 |
0, 0, 0, 110, 111, 112, 23, 24, 25, 26, |
| 3931 |
0, 0, 113, 0, 0, 0, 0, 0, 0, 0, |
| 3932 |
0, 31, 32, 33, 34, 35, 36, 37, 38, 39, |
| 3933 |
0, 40, 41, 42, 0, 0, 43, 0, 0, 44, |
| 3934 |
45, 0, 116, 0, 0, 0, 0, 0, 0, 0, |
| 3935 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3936 |
0, 0, 0, 0, 313, 0, 0, 399, 53, 0, |
| 3937 |
54, 55, 0, 400, 0, 0, 0, 57, 0, 58, |
| 3938 |
59, 60, 0, 61, 62, 63, 0, 64, 0, 0, |
| 3939 |
5, 6, 7, 8, 9, 10, 11, 12, 13, 0, |
| 3940 |
0, 0, 0, 0, 0, 0, 15, 120, 108, 109, |
| 3941 |
18, 19, 0, 0, 0, 0, 0, 110, 111, 112, |
| 3942 |
23, 24, 25, 26, 0, 0, 113, 0, 0, 0, |
| 3943 |
0, 0, 0, 0, 0, 31, 32, 33, 114, 35, |
| 3944 |
36, 37, 115, 39, 0, 40, 41, 42, 0, 0, |
| 3945 |
43, 0, 0, 44, 45, 0, 116, 0, 0, 0, |
| 3946 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3947 |
0, 0, 0, 0, 0, 0, 0, 0, 118, 0, |
| 3948 |
0, 119, 53, 0, 54, 55, 0, 0, 0, 0, |
| 3949 |
0, 57, 0, 58, 59, 60, 0, 61, 62, 63, |
| 3950 |
0, 64, 0, 0, 5, 6, 7, 8, 9, 10, |
| 3951 |
11, 12, 13, 0, 0, 0, 0, 0, 0, 0, |
| 3952 |
15, 120, 108, 109, 18, 19, 0, 0, 0, 0, |
| 3953 |
0, 110, 111, 112, 23, 24, 25, 26, 0, 0, |
| 3954 |
113, 0, 0, 0, 0, 0, 0, 0, 0, 31, |
| 3955 |
32, 33, 34, 35, 36, 37, 38, 39, 0, 40, |
| 3956 |
41, 42, 0, 0, 43, 0, 0, 44, 45, 0, |
| 3957 |
116, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3958 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3959 |
0, 0, 313, 0, 0, 399, 53, 0, 54, 55, |
| 3960 |
0, 0, 0, 0, 0, 57, 0, 58, 59, 60, |
| 3961 |
0, 61, 62, 63, 0, 64, 0, 0, 5, 6, |
| 3962 |
7, 8, 9, 10, 11, 12, 13, 0, 0, 0, |
| 3963 |
0, 0, 0, 0, 15, 120, 108, 109, 18, 19, |
| 3964 |
0, 0, 0, 0, 0, 110, 111, 112, 23, 24, |
| 3965 |
25, 26, 0, 0, 113, 0, 0, 0, 0, 0, |
| 3966 |
0, 0, 0, 31, 32, 33, 34, 35, 36, 37, |
| 3967 |
38, 39, 0, 40, 41, 42, 0, 0, 43, 0, |
| 3968 |
0, 44, 45, 0, 116, 0, 0, 0, 0, 0, |
| 3969 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3970 |
0, 0, 0, 0, 0, 0, 967, 0, 0, 119, |
| 3971 |
53, 0, 54, 55, 0, 0, 0, 0, 0, 57, |
| 3972 |
0, 58, 59, 60, 0, 61, 62, 63, 0, 64, |
| 3973 |
0, 0, 5, 6, 7, 8, 9, 10, 11, 12, |
| 3974 |
13, 0, 0, 0, 0, 0, 0, 0, 15, 120, |
| 3975 |
108, 109, 18, 19, 0, 0, 0, 0, 0, 110, |
| 3976 |
111, 112, 23, 24, 25, 26, 0, 0, 113, 0, |
| 3977 |
0, 0, 0, 0, 0, 0, 0, 31, 32, 33, |
| 3978 |
34, 35, 36, 37, 38, 39, 0, 40, 41, 42, |
| 3979 |
0, 0, 43, 0, 0, 44, 45, 0, 225, 0, |
| 3980 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3981 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3982 |
990, 0, 0, 119, 53, 0, 54, 55, 0, 0, |
| 3983 |
659, 660, 0, 57, 661, 58, 59, 60, 0, 61, |
| 3984 |
62, 63, 0, 64, 0, 0, 0, 0, 0, 174, |
| 3985 |
175, 176, 177, 178, 179, 180, 181, 0, 0, 182, |
| 3986 |
183, 0, 0, 120, 0, 184, 185, 186, 187, 0, |
| 3987 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 188, |
| 3988 |
189, 190, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3989 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3990 |
0, 0, 0, 191, 192, 193, 194, 195, 196, 197, |
| 3991 |
198, 199, 200, 0, 201, 202, 680, 651, 0, 0, |
| 3992 |
681, 0, 203, 276, 0, 0, 0, 0, 0, 0, |
| 3993 |
0, 0, 0, 0, 0, 174, 175, 176, 177, 178, |
| 3994 |
179, 180, 181, 0, 0, 182, 183, 0, 0, 0, |
| 3995 |
0, 184, 185, 186, 187, 0, 0, 0, 0, 0, |
| 3996 |
0, 0, 0, 0, 0, 188, 189, 190, 0, 0, |
| 3997 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 3998 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 191, |
| 3999 |
192, 193, 194, 195, 196, 197, 198, 199, 200, 0, |
| 4000 |
201, 202, 665, 660, 0, 0, 666, 0, 203, 276, |
| 4001 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 4002 |
0, 174, 175, 176, 177, 178, 179, 180, 181, 0, |
| 4003 |
0, 182, 183, 0, 0, 0, 0, 184, 185, 186, |
| 4004 |
187, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 4005 |
0, 188, 189, 190, 0, 0, 0, 0, 0, 0, |
| 4006 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 4007 |
0, 0, 0, 0, 0, 191, 192, 193, 194, 195, |
| 4008 |
196, 197, 198, 199, 200, 0, 201, 202, 697, 651, |
| 4009 |
0, 0, 698, 0, 203, 276, 0, 0, 0, 0, |
| 4010 |
0, 0, 0, 0, 0, 0, 0, 174, 175, 176, |
| 4011 |
177, 178, 179, 180, 181, 0, 0, 182, 183, 0, |
| 4012 |
0, 0, 0, 184, 185, 186, 187, 0, 0, 0, |
| 4013 |
0, 0, 0, 0, 0, 0, 0, 188, 189, 190, |
| 4014 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 4015 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 4016 |
0, 191, 192, 193, 194, 195, 196, 197, 198, 199, |
| 4017 |
200, 0, 201, 202, 700, 660, 0, 0, 701, 0, |
| 4018 |
203, 276, 0, 0, 0, 0, 0, 0, 0, 0, |
| 4019 |
0, 0, 0, 174, 175, 176, 177, 178, 179, 180, |
| 4020 |
181, 0, 0, 182, 183, 0, 0, 0, 0, 184, |
| 4021 |
185, 186, 187, 0, 0, 0, 0, 0, 0, 0, |
| 4022 |
0, 0, 0, 188, 189, 190, 0, 0, 0, 0, |
| 4023 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 4024 |
0, 0, 0, 0, 0, 0, 0, 191, 192, 193, |
| 4025 |
194, 195, 196, 197, 198, 199, 200, 0, 201, 202, |
| 4026 |
707, 651, 0, 0, 708, 0, 203, 276, 0, 0, |
| 4027 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 174, |
| 4028 |
175, 176, 177, 178, 179, 180, 181, 0, 0, 182, |
| 4029 |
183, 0, 0, 0, 0, 184, 185, 186, 187, 0, |
| 4030 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 188, |
| 4031 |
189, 190, 0, 0, 0, 0, 0, 0, 0, 0, |
| 4032 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 4033 |
0, 0, 0, 191, 192, 193, 194, 195, 196, 197, |
| 4034 |
198, 199, 200, 0, 201, 202, 710, 660, 0, 0, |
| 4035 |
711, 0, 203, 276, 0, 0, 0, 0, 0, 0, |
| 4036 |
0, 0, 0, 0, 0, 174, 175, 176, 177, 178, |
| 4037 |
179, 180, 181, 0, 0, 182, 183, 0, 0, 0, |
| 4038 |
0, 184, 185, 186, 187, 0, 0, 0, 0, 0, |
| 4039 |
0, 0, 0, 0, 0, 188, 189, 190, 0, 0, |
| 4040 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 4041 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 191, |
| 4042 |
192, 193, 194, 195, 196, 197, 198, 199, 200, 0, |
| 4043 |
201, 202, 746, 651, 0, 0, 747, 0, 203, 276, |
| 4044 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 4045 |
0, 174, 175, 176, 177, 178, 179, 180, 181, 0, |
| 4046 |
0, 182, 183, 0, 0, 0, 0, 184, 185, 186, |
| 4047 |
187, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 4048 |
0, 188, 189, 190, 0, 0, 0, 0, 0, 0, |
| 4049 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 4050 |
0, 0, 0, 0, 0, 191, 192, 193, 194, 195, |
| 4051 |
196, 197, 198, 199, 200, 0, 201, 202, 749, 660, |
| 4052 |
0, 0, 750, 0, 203, 276, 0, 0, 0, 0, |
| 4053 |
0, 0, 0, 0, 0, 0, 0, 174, 175, 176, |
| 4054 |
177, 178, 179, 180, 181, 0, 0, 182, 183, 0, |
| 4055 |
0, 0, 0, 184, 185, 186, 187, 0, 0, 0, |
| 4056 |
0, 0, 0, 0, 0, 0, 0, 188, 189, 190, |
| 4057 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 4058 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 4059 |
0, 191, 192, 193, 194, 195, 196, 197, 198, 199, |
| 4060 |
200, 0, 201, 202, 905, 651, 0, 0, 906, 0, |
| 4061 |
203, 276, 0, 0, 0, 0, 0, 0, 0, 0, |
| 4062 |
0, 0, 0, 174, 175, 176, 177, 178, 179, 180, |
| 4063 |
181, 0, 0, 182, 183, 0, 0, 0, 0, 184, |
| 4064 |
185, 186, 187, 0, 0, 0, 0, 0, 0, 0, |
| 4065 |
0, 0, 0, 188, 189, 190, 0, 0, 0, 0, |
| 4066 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 4067 |
0, 0, 0, 0, 0, 0, 0, 191, 192, 193, |
| 4068 |
194, 195, 196, 197, 198, 199, 200, 0, 201, 202, |
| 4069 |
908, 660, 0, 0, 909, 0, 203, 276, 0, 0, |
| 4070 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 174, |
| 4071 |
175, 176, 177, 178, 179, 180, 181, 0, 0, 182, |
| 4072 |
183, 0, 0, 0, 0, 184, 185, 186, 187, 0, |
| 4073 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 188, |
| 4074 |
189, 190, 0, 0, 0, 0, 0, 0, 0, 0, |
| 4075 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 4076 |
0, 0, 0, 191, 192, 193, 194, 195, 196, 197, |
| 4077 |
198, 199, 200, 0, 201, 202, 1049, 651, 0, 0, |
| 4078 |
1050, 0, 203, 276, 0, 0, 0, 0, 0, 0, |
| 4079 |
0, 0, 0, 0, 0, 174, 175, 176, 177, 178, |
| 4080 |
179, 180, 181, 0, 0, 182, 183, 0, 0, 0, |
| 4081 |
0, 184, 185, 186, 187, 0, 0, 0, 0, 0, |
| 4082 |
0, 0, 0, 0, 0, 188, 189, 190, 0, 0, |
| 4083 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 4084 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 191, |
| 4085 |
192, 193, 194, 195, 196, 197, 198, 199, 200, 0, |
| 4086 |
201, 202, 1061, 651, 0, 0, 1062, 0, 203, 276, |
| 4087 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 4088 |
0, 174, 175, 176, 177, 178, 179, 180, 181, 0, |
| 4089 |
0, 182, 183, 0, 0, 0, 0, 184, 185, 186, |
| 4090 |
187, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 4091 |
0, 188, 189, 190, 0, 0, 0, 0, 0, 0, |
| 4092 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 4093 |
0, 0, 0, 0, 0, 191, 192, 193, 194, 195, |
| 4094 |
196, 197, 198, 199, 200, 0, 201, 202, 1064, 660, |
| 4095 |
0, 0, 1065, 0, 203, 276, 0, 0, 0, 0, |
| 4096 |
0, 0, 0, 0, 0, 0, 0, 174, 175, 176, |
| 4097 |
177, 178, 179, 180, 181, 0, 0, 182, 183, 0, |
| 4098 |
0, 0, 0, 184, 185, 186, 187, 0, 0, 0, |
| 4099 |
0, 0, 0, 0, 0, 0, 0, 188, 189, 190, |
| 4100 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 4101 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 4102 |
0, 191, 192, 193, 194, 195, 196, 197, 198, 199, |
| 4103 |
200, 0, 201, 202, 665, 660, 0, 0, 666, 0, |
| 4104 |
203, 276, 0, 0, 0, 0, 0, 0, 0, 0, |
| 4105 |
0, 0, 0, 174, 175, 176, 177, 178, 179, 180, |
| 4106 |
181, 0, 0, 182, 183, 0, 0, 0, 0, 184, |
| 4107 |
185, 186, 187, 0, 0, 0, 0, 0, 0, 0, |
| 4108 |
0, 0, 0, 188, 189, 190, 0, 0, 0, 0, |
| 4109 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 872, |
| 4110 |
0, 0, 0, 0, 0, 0, 0, 191, 192, 193, |
| 4111 |
194, 195, 196, 197, 198, 199, 200, 0, 201, 202, |
| 4112 |
0, 0, 0, 0, 0, 0, 203, 403, 404, 405, |
| 4113 |
406, 407, 408, 409, 410, 411, 412, 413, 414, 0, |
| 4114 |
0, 0, 0, 415, 416, 0, 0, 0, 0, 0, |
| 4115 |
0, 0, 0, 0, 0, 0, 418, 0, 0, 0, |
| 4116 |
0, 885, 0, 0, 0, 0, 0, 0, 0, 0, |
| 4117 |
0, 0, 0, 0, 0, 0, 0, 419, 0, 420, |
| 4118 |
421, 422, 423, 424, 425, 426, 427, 428, 429, 403, |
| 4119 |
404, 405, 406, 407, 408, 409, 410, 411, 412, 413, |
| 4120 |
414, 0, 0, 0, 0, 415, 416, 0, 0, 0, |
| 4121 |
0, 0, 0, 0, 0, 0, 0, 0, 418, 0, |
| 4122 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 4123 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 419, |
| 4124 |
0, 420, 421, 422, 423, 424, 425, 426, 427, 428, |
| 4125 |
429, 403, 404, 405, 406, 407, 408, 409, 410, 411, |
| 4126 |
412, 413, 414, 0, 0, 0, 0, 415, 416, 0, |
| 4127 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 4128 |
418, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 4129 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 4130 |
0, 419, 0, 420, 421, 422, 423, 424, 425, 426, |
| 4131 |
427, 428, 429, 0, 0, 0, 0, 0, 0, 0, |
| 4132 |
0, -277, 403, 404, 405, 406, 407, 408, 409, 410, |
| 4133 |
411, 412, 413, 414, 0, 0, 0, 0, 415, 416, |
| 4134 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 4135 |
0, 418, 0, 0, 0, 0, 0, 0, 0, 0, |
| 4136 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 4137 |
0, 0, 419, 0, 420, 421, 422, 423, 424, 425, |
| 4138 |
426, 427, 428, 429, 0, 0, 0, 0, 0, 0, |
| 4139 |
0, 0, -279, 403, 404, 405, 406, 407, 408, 409, |
| 4140 |
410, 411, 412, 413, 414, 0, 0, 0, 0, 415, |
| 4141 |
416, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 4142 |
0, 0, 418, 0, 0, 0, 0, 0, 0, 0, |
| 4143 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 4144 |
0, 0, 0, 419, 0, 420, 421, 422, 423, 424, |
| 4145 |
425, 426, 427, 428, 429, 0, 0, 0, 0, 0, |
| 4146 |
0, 0, 0, -280, 403, 404, 405, 406, 407, 408, |
| 4147 |
409, 410, 411, 412, 413, 414, 0, 0, 0, 0, |
| 4148 |
415, 416, 0, 0, 0, 0, 0, 0, 0, 0, |
| 4149 |
0, 0, 0, 418, 0, 0, 0, 0, 0, 0, |
| 4150 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 4151 |
0, 0, 0, 0, 419, 0, 420, 421, 422, 423, |
| 4152 |
424, 425, 426, 427, 428, 429, 0, 0, 0, 0, |
| 4153 |
0, 0, 0, 0, -282, 403, 404, 405, 406, 407, |
| 4154 |
408, 409, 410, 411, 412, 413, 414, 0, 0, 0, |
| 4155 |
0, 415, 416, 0, 0, 0, 417, 0, 0, 0, |
| 4156 |
0, 0, 0, 0, 418, 0, 0, 0, 0, 0, |
| 4157 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 4158 |
0, 0, 0, 0, 0, 419, 0, 420, 421, 422, |
| 4159 |
423, 424, 425, 426, 427, 428, 429, 403, 404, 405, |
| 4160 |
406, 407, 408, 409, 410, 411, 412, 413, 414, 0, |
| 4161 |
0, 0, 0, 415, 416, 0, 0, 0, 500, 0, |
| 4162 |
0, 0, 0, 0, 0, 0, 418, 0, 0, 0, |
| 4163 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 4164 |
0, 0, 0, 0, 0, 0, 0, 419, 0, 420, |
| 4165 |
421, 422, 423, 424, 425, 426, 427, 428, 429, 403, |
| 4166 |
404, 405, 406, 407, 408, 409, 410, 411, 412, 413, |
| 4167 |
414, 0, 0, 0, 0, 415, 416, 0, 0, 0, |
| 4168 |
0, 0, 0, 0, 0, 0, 0, 0, 418, 0, |
| 4169 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 4170 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 419, |
| 4171 |
0, 420, 421, 422, 423, 424, 425, 426, 427, 428, |
| 4172 |
429, 403, 404, 405, 406, 407, 408, 409, 410, 411, |
| 4173 |
412, -620, -620, 0, 0, 0, 0, 415, 416, 0, |
| 4174 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 4175 |
418, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 4176 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 4177 |
0, 0, 0, 420, 421, 422, 423, 424, 425, 426, |
| 4178 |
427, 428, 429 |
| 4179 |
}; |
| 4180 |
|
| 4181 |
static const yytype_int16 yycheck[] = |
| 4182 |
{ |
| 4183 |
2, 285, 16, 17, 69, 27, 20, 66, 89, 28, |
| 4184 |
2, 222, 4, 5, 6, 22, 14, 9, 10, 21, |
| 4185 |
480, 13, 15, 15, 16, 17, 7, 378, 20, 4, |
| 4186 |
28, 16, 17, 14, 118, 20, 7, 593, 489, 272, |
| 4187 |
87, 88, 402, 314, 2, 56, 4, 28, 75, 82, |
| 4188 |
442, 443, 54, 55, 307, 596, 52, 503, 311, 546, |
| 4189 |
52, 507, 5, 6, 56, 29, 789, 21, 22, 54, |
| 4190 |
13, 507, 74, 75, 66, 319, 69, 58, 16, 17, |
| 4191 |
593, 691, 20, 331, 476, 477, 270, 58, 272, 761, |
| 4192 |
82, 373, 702, 16, 10, 75, 668, 669, 105, 15, |
| 4193 |
430, 26, 538, 25, 434, 432, 296, 437, 975, 111, |
| 4194 |
25, 950, 394, 56, 26, 0, 54, 55, 60, 61, |
| 4195 |
62, 63, 306, 90, 611, 117, 370, 119, 458, 62, |
| 4196 |
457, 64, 65, 525, 16, 17, 26, 92, 20, 82, |
| 4197 |
92, 25, 122, 473, 79, 475, 25, 474, 402, 113, |
| 4198 |
57, 105, 58, 59, 484, 26, 483, 111, 112, 25, |
| 4199 |
25, 25, 144, 16, 17, 332, 121, 20, 335, 121, |
| 4200 |
337, 218, 339, 25, 341, 129, 138, 459, 90, 90, |
| 4201 |
147, 57, 229, 116, 117, 1052, 213, 214, 442, 443, |
| 4202 |
142, 126, 115, 105, 524, 118, 119, 753, 90, 90, |
| 4203 |
90, 54, 55, 664, 1043, 593, 667, 90, 596, 399, |
| 4204 |
766, 213, 214, 138, 121, 105, 92, 16, 210, 549, |
| 4205 |
142, 548, 16, 146, 685, 148, 138, 142, 140, 442, |
| 4206 |
443, 223, 224, 298, 214, 147, 147, 18, 91, 20, |
| 4207 |
753, 306, 307, 290, 90, 121, 311, 819, 138, 972, |
| 4208 |
140, 92, 975, 766, 144, 147, 147, 147, 142, 252, |
| 4209 |
144, 242, 276, 142, 147, 144, 280, 138, 270, 316, |
| 4210 |
272, 242, 55, 144, 276, 546, 142, 142, 142, 512, |
| 4211 |
121, 314, 90, 955, 276, 92, 732, 733, 280, 90, |
| 4212 |
142, 276, 284, 285, 121, 280, 288, 733, 90, 28, |
| 4213 |
296, 147, 92, 295, 296, 298, 550, 223, 224, 557, |
| 4214 |
797, 303, 92, 869, 121, 92, 115, 51, 90, 118, |
| 4215 |
119, 115, 314, 879, 118, 119, 142, 511, 512, 1052, |
| 4216 |
690, 121, 121, 105, 875, 69, 946, 295, 397, 147, |
| 4217 |
611, 121, 280, 402, 121, 303, 147, 146, 142, 148, |
| 4218 |
37, 38, 146, 142, 148, 147, 348, 349, 350, 351, |
| 4219 |
352, 353, 354, 355, 810, 753, 103, 101, 102, 103, |
| 4220 |
92, 314, 456, 348, 376, 147, 378, 92, 766, 808, |
| 4221 |
90, 373, 324, 442, 443, 814, 846, 144, 555, 400, |
| 4222 |
348, 128, 92, 121, 128, 353, 115, 679, 280, 118, |
| 4223 |
119, 789, 394, 399, 125, 397, 121, 399, 400, 55, |
| 4224 |
402, 51, 397, 805, 806, 55, 972, 402, 432, 811, |
| 4225 |
812, 121, 773, 276, 608, 92, 121, 280, 115, 148, |
| 4226 |
432, 118, 119, 349, 350, 351, 352, 147, 722, 92, |
| 4227 |
432, 60, 142, 457, 63, 837, 838, 92, 840, 841, |
| 4228 |
442, 443, 55, 434, 121, 457, 437, 400, 25, 146, |
| 4229 |
474, 148, 142, 465, 20, 457, 142, 459, 460, 483, |
| 4230 |
57, 801, 474, 803, 658, 802, 121, 458, 470, 501, |
| 4231 |
434, 483, 474, 16, 101, 57, 478, 875, 107, 1045, |
| 4232 |
743, 483, 101, 726, 475, 946, 488, 142, 92, 319, |
| 4233 |
1056, 520, 948, 484, 458, 138, 717, 492, 790, 511, |
| 4234 |
512, 544, 948, 546, 131, 132, 133, 510, 92, 521, |
| 4235 |
804, 475, 520, 145, 92, 917, 797, 121, 115, 521, |
| 4236 |
484, 118, 119, 717, 548, 817, 123, 121, 530, 520, |
| 4237 |
891, 892, 726, 524, 92, 799, 548, 121, 940, 141, |
| 4238 |
370, 805, 544, 121, 546, 55, 548, 811, 812, 74, |
| 4239 |
75, 148, 139, 521, 556, 503, 37, 38, 549, 583, |
| 4240 |
524, 142, 530, 121, 621, 58, 59, 861, 611, 432, |
| 4241 |
862, 101, 115, 101, 972, 118, 119, 975, 602, 17, |
| 4242 |
18, 583, 805, 57, 142, 549, 121, 535, 811, 812, |
| 4243 |
121, 544, 604, 546, 457, 142, 121, 122, 92, 215, |
| 4244 |
602, 887, 888, 146, 51, 148, 222, 639, 142, 611, |
| 4245 |
90, 474, 855, 121, 122, 142, 2, 51, 4, 142, |
| 4246 |
483, 142, 51, 9, 10, 105, 387, 121, 389, 15, |
| 4247 |
16, 17, 121, 51, 20, 142, 928, 27, 655, 99, |
| 4248 |
503, 15, 92, 259, 507, 13, 658, 664, 142, 121, |
| 4249 |
667, 121, 664, 917, 1052, 667, 668, 669, 611, 90, |
| 4250 |
140, 855, 26, 1024, 144, 16, 52, 147, 743, 63, |
| 4251 |
15, 121, 535, 685, 105, 538, 678, 679, 690, 691, |
| 4252 |
66, 145, 145, 695, 713, 548, 139, 142, 213, 214, |
| 4253 |
702, 655, 142, 142, 917, 690, 142, 688, 142, 1039, |
| 4254 |
664, 1038, 121, 667, 15, 713, 15, 688, 44, 140, |
| 4255 |
712, 932, 15, 26, 726, 141, 147, 938, 141, 683, |
| 4256 |
550, 685, 713, 18, 815, 115, 90, 141, 118, 119, |
| 4257 |
799, 117, 348, 119, 141, 52, 805, 806, 139, 15, |
| 4258 |
139, 105, 811, 812, 141, 44, 362, 139, 90, 579, |
| 4259 |
1044, 142, 678, 57, 797, 142, 146, 586, 148, 142, |
| 4260 |
142, 773, 142, 105, 380, 44, 596, 9, 10, 599, |
| 4261 |
789, 15, 93, 15, 138, 14, 140, 90, 802, 15, |
| 4262 |
144, 15, 145, 147, 732, 142, 712, 142, 790, 142, |
| 4263 |
802, 15, 105, 142, 319, 797, 798, 799, 140, 142, |
| 4264 |
802, 141, 119, 805, 806, 147, 139, 819, 15, 811, |
| 4265 |
812, 139, 803, 15, 15, 817, 818, 829, 15, 115, |
| 4266 |
832, 126, 118, 119, 210, 138, 142, 140, 126, 831, |
| 4267 |
798, 144, 834, 55, 147, 15, 90, 223, 224, 803, |
| 4268 |
55, 843, 844, 855, 797, 370, 142, 139, 917, 851, |
| 4269 |
146, 105, 148, 51, 142, 53, 54, 55, 56, 142, |
| 4270 |
862, 863, 810, 479, 480, 142, 9, 10, 142, 732, |
| 4271 |
733, 69, 15, 16, 17, 117, 26, 20, 142, 891, |
| 4272 |
892, 90, 142, 142, 15, 115, 140, 889, 118, 119, |
| 4273 |
276, 144, 894, 147, 280, 144, 105, 115, 284, 285, |
| 4274 |
118, 119, 288, 141, 47, 48, 49, 50, 834, 295, |
| 4275 |
296, 54, 55, 142, 530, 917, 146, 303, 148, 13, |
| 4276 |
26, 537, 521, 66, 67, 927, 928, 145, 146, 931, |
| 4277 |
148, 140, 6, 935, 946, 992, 889, 1041, 147, 802, |
| 4278 |
90, 894, 789, 1043, 142, 61, 90, 810, 64, 65, |
| 4279 |
969, 816, 1040, 972, 254, 105, 975, 7, 977, 789, |
| 4280 |
789, 105, 348, 349, 350, 351, 352, 353, 354, 355, |
| 4281 |
90, 288, 586, 1005, 117, 969, 972, -1, 931, 296, |
| 4282 |
-1, 223, 224, -1, 90, 105, -1, 373, 138, -1, |
| 4283 |
140, -1, -1, 995, 144, 997, 140, 147, 1000, 105, |
| 4284 |
116, 117, -1, 147, -1, -1, 1025, -1, 394, -1, |
| 4285 |
-1, 397, 1024, 399, 1038, -1, 402, 778, 779, 780, |
| 4286 |
140, 782, -1, 784, -1, 550, 1038, 147, 1040, 1041, |
| 4287 |
-1, -1, 138, 1052, 140, 1054, 1038, 1056, 144, 1058, |
| 4288 |
-1, 147, 284, 285, -1, 875, 432, 877, 1039, 115, |
| 4289 |
-1, 881, 118, 119, 90, -1, 442, 443, -1, 1078, |
| 4290 |
51, 677, 53, 54, 55, 56, -1, -1, 90, 105, |
| 4291 |
-1, 457, -1, 459, 460, 1039, -1, -1, 69, 90, |
| 4292 |
223, 224, 399, 105, 470, 948, 115, -1, 474, 118, |
| 4293 |
119, -1, 478, -1, 105, 115, 300, 483, 118, 119, |
| 4294 |
304, 717, 488, 62, 140, 64, 65, 349, 350, 351, |
| 4295 |
352, 147, 354, 355, -1, 90, 90, 90, 140, 262, |
| 4296 |
263, 264, 265, 953, 954, 147, 146, -1, 148, 140, |
| 4297 |
105, 105, 105, 276, 90, 521, 147, 280, -1, -1, |
| 4298 |
969, 284, 285, 972, 530, 975, 975, 977, 977, 105, |
| 4299 |
-1, 142, -1, 470, -1, -1, -1, 116, 117, 775, |
| 4300 |
-1, 478, 548, 90, -1, 140, 140, 140, -1, -1, |
| 4301 |
556, 488, 147, 147, 147, 1038, -1, 61, 105, -1, |
| 4302 |
64, 65, 1012, -1, 140, 1015, -1, 63, 64, 65, |
| 4303 |
-1, 147, 63, 64, 65, -1, 1025, 583, 959, 960, |
| 4304 |
961, 962, -1, -1, -1, 821, 349, 350, 351, 352, |
| 4305 |
-1, 354, 355, 140, -1, -1, 602, 1047, 460, -1, |
| 4306 |
147, -1, 1052, 1052, 1054, 1054, -1, 1056, 1058, 1058, |
| 4307 |
846, 374, 116, 117, 40, 41, 42, 43, 44, 556, |
| 4308 |
116, 117, 385, -1, -1, 116, 117, -1, 1078, 1078, |
| 4309 |
-1, 586, -1, -1, 397, 590, 63, 64, 65, 402, |
| 4310 |
403, 404, 405, 406, 407, 408, 409, 410, 411, 412, |
| 4311 |
413, 414, 415, 416, -1, 418, 419, 420, 421, 422, |
| 4312 |
423, 424, 425, 426, 427, 428, 429, 1048, -1, 432, |
| 4313 |
-1, -1, 678, 679, 63, 64, 65, -1, -1, 442, |
| 4314 |
443, 63, 64, 65, 508, 63, 64, 65, -1, 116, |
| 4315 |
117, 515, -1, -1, 457, -1, 932, 460, 63, 64, |
| 4316 |
65, -1, 938, 527, -1, -1, 712, -1, -1, 472, |
| 4317 |
-1, 474, -1, 476, 477, 2, -1, 4, 5, 6, |
| 4318 |
483, -1, -1, 63, 64, 65, 13, 116, 117, 492, |
| 4319 |
-1, -1, 495, 496, 116, 117, -1, 500, 116, 117, |
| 4320 |
503, -1, 505, -1, 507, 508, 88, 89, -1, -1, |
| 4321 |
101, 116, 117, -1, -1, -1, 580, 581, -1, 101, |
| 4322 |
-1, -1, 525, -1, -1, 52, -1, 896, 897, 56, |
| 4323 |
-1, -1, 535, -1, -1, 538, 116, 117, 129, 130, |
| 4324 |
131, 132, 133, -1, 790, 548, 610, 129, 130, 131, |
| 4325 |
132, 133, 798, 799, -1, 82, 802, -1, -1, 805, |
| 4326 |
806, -1, 565, 566, -1, 811, 812, -1, -1, -1, |
| 4327 |
-1, 817, 818, -1, -1, -1, 678, -1, -1, -1, |
| 4328 |
583, -1, -1, -1, -1, 831, -1, -1, 834, -1, |
| 4329 |
-1, -1, 119, -1, 789, 88, 89, 843, 844, 602, |
| 4330 |
-1, -1, 605, 972, -1, 851, -1, -1, 101, 51, |
| 4331 |
712, 53, 54, 55, 56, -1, 862, 863, -1, -1, |
| 4332 |
-1, -1, -1, 687, -1, -1, 51, 69, 53, 54, |
| 4333 |
55, 56, -1, 126, 127, 128, 129, 130, 131, 132, |
| 4334 |
133, 818, -1, -1, 69, 2, -1, 4, 5, 6, |
| 4335 |
-1, -1, 94, -1, 831, -1, 13, -1, 100, 1028, |
| 4336 |
1029, 1030, -1, 1032, 1033, -1, 843, 844, -1, 94, |
| 4337 |
-1, 917, -1, -1, 851, 678, -1, -1, 742, -1, |
| 4338 |
-1, 927, 928, 210, -1, -1, 863, 690, -1, 935, |
| 4339 |
693, 694, -1, -1, -1, 52, -1, -1, 762, 56, |
| 4340 |
-1, 88, 89, 1072, 1073, 1074, 1075, -1, -1, 712, |
| 4341 |
-1, -1, -1, 1082, 101, -1, -1, -1, -1, -1, |
| 4342 |
723, -1, -1, -1, -1, 82, -1, -1, -1, 732, |
| 4343 |
733, -1, 834, -1, -1, 51, -1, 53, 54, 55, |
| 4344 |
56, 128, 129, 130, 131, 132, 133, -1, -1, 995, |
| 4345 |
927, 997, -1, 69, 1000, -1, -1, -1, 935, -1, |
| 4346 |
-1, 288, 119, -1, -1, -1, -1, -1, 295, 296, |
| 4347 |
-1, -1, -1, -1, 969, -1, 303, 972, 94, -1, |
| 4348 |
975, -1, 977, -1, 100, -1, -1, 314, -1, -1, |
| 4349 |
854, 794, 1038, -1, -1, -1, 799, 800, -1, 802, |
| 4350 |
-1, -1, 805, 806, -1, -1, 870, 810, 811, 812, |
| 4351 |
51, -1, 53, 54, 55, 56, -1, -1, 995, -1, |
| 4352 |
997, 348, -1, 1000, -1, -1, 353, -1, 69, -1, |
| 4353 |
1025, 834, -1, -1, 837, 838, -1, 840, 841, -1, |
| 4354 |
-1, -1, -1, -1, -1, -1, 373, 850, -1, -1, |
| 4355 |
-1, 854, -1, 210, -1, -1, -1, 1052, -1, 1054, |
| 4356 |
-1, 1056, -1, 1058, -1, -1, -1, 394, 871, 872, |
| 4357 |
-1, -1, 399, 400, -1, 402, -1, -1, -1, -1, |
| 4358 |
-1, 884, 885, 1078, -1, -1, -1, -1, -1, -1, |
| 4359 |
-1, -1, -1, -1, -1, -1, -1, 900, -1, -1, |
| 4360 |
-1, -1, -1, -1, -1, -1, -1, 910, 911, 2, |
| 4361 |
-1, 4, 5, 6, 917, 442, 443, -1, -1, -1, |
| 4362 |
13, -1, 51, -1, 53, 54, 55, 56, -1, -1, |
| 4363 |
-1, 288, 459, -1, -1, -1, -1, 940, 295, 296, |
| 4364 |
69, -1, -1, 470, -1, 948, 303, -1, -1, -1, |
| 4365 |
-1, 478, -1, -1, 83, -1, -1, 314, -1, 52, |
| 4366 |
-1, 488, -1, 56, -1, 94, -1, -1, -1, -1, |
| 4367 |
-1, 100, 101, 102, 103, -1, -1, -1, -1, -1, |
| 4368 |
-1, -1, 51, -1, 53, 54, 55, 56, -1, 82, |
| 4369 |
-1, 348, 121, -1, 521, -1, 353, -1, -1, 128, |
| 4370 |
69, -1, 131, 530, -1, -1, -1, -1, -1, -1, |
| 4371 |
-1, -1, -1, -1, -1, 144, 373, 544, 51, 546, |
| 4372 |
53, 54, 55, 56, -1, 94, 119, -1, -1, 556, |
| 4373 |
-1, 100, 101, 102, 103, 1038, 69, 394, 0, -1, |
| 4374 |
-1, -1, 399, 400, -1, 402, -1, -1, -1, -1, |
| 4375 |
83, 13, 14, 15, 16, 17, 18, -1, 20, 128, |
| 4376 |
-1, 94, 131, -1, 26, 27, -1, 100, 101, 102, |
| 4377 |
103, -1, -1, 142, -1, 37, 38, -1, 40, 41, |
| 4378 |
42, 43, 44, -1, 611, 442, 443, -1, -1, -1, |
| 4379 |
-1, -1, -1, -1, -1, 128, -1, -1, 131, -1, |
| 4380 |
-1, -1, 459, -1, -1, -1, -1, -1, -1, -1, |
| 4381 |
-1, 144, -1, 470, -1, -1, -1, 210, -1, -1, |
| 4382 |
-1, 478, -1, -1, -1, 2, -1, 4, 90, -1, |
| 4383 |
-1, 488, -1, -1, -1, -1, 13, -1, -1, -1, |
| 4384 |
-1, -1, -1, 105, -1, -1, -1, -1, -1, -1, |
| 4385 |
-1, -1, 679, 115, -1, -1, 118, 119, -1, -1, |
| 4386 |
-1, -1, -1, 51, 521, 53, 54, 55, 56, -1, |
| 4387 |
-1, -1, -1, 530, -1, 52, 138, 139, -1, -1, |
| 4388 |
-1, 69, 144, 145, 146, 147, 148, 544, -1, 546, |
| 4389 |
-1, -1, -1, -1, -1, 288, -1, -1, -1, 556, |
| 4390 |
-1, -1, 295, 296, -1, -1, 94, -1, -1, -1, |
| 4391 |
303, -1, 100, 101, 102, 103, -1, -1, -1, -1, |
| 4392 |
-1, 314, -1, 51, -1, 53, 54, 55, 56, -1, |
| 4393 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 4394 |
128, 69, 119, 131, -1, -1, -1, -1, -1, -1, |
| 4395 |
-1, -1, -1, -1, 611, 348, 144, -1, -1, -1, |
| 4396 |
353, -1, -1, 790, -1, -1, 94, -1, -1, -1, |
| 4397 |
797, 798, 799, 101, 102, 103, -1, -1, 805, -1, |
| 4398 |
373, -1, -1, -1, 811, 812, -1, -1, -1, -1, |
| 4399 |
817, 818, -1, -1, 51, -1, 53, 54, 55, 56, |
| 4400 |
128, 394, -1, -1, 831, -1, 399, 400, -1, 402, |
| 4401 |
-1, -1, 69, -1, -1, -1, 843, 844, -1, -1, |
| 4402 |
-1, -1, 679, -1, 851, -1, -1, -1, 85, -1, |
| 4403 |
-1, -1, -1, 210, -1, 862, 863, 94, -1, -1, |
| 4404 |
-1, -1, -1, 100, 101, 102, 103, -1, -1, 442, |
| 4405 |
443, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 4406 |
-1, -1, 889, -1, -1, -1, 459, 894, -1, -1, |
| 4407 |
-1, 128, -1, -1, 131, -1, -1, 470, -1, -1, |
| 4408 |
-1, -1, -1, -1, -1, 478, -1, -1, -1, -1, |
| 4409 |
917, -1, -1, -1, -1, 488, -1, -1, -1, -1, |
| 4410 |
927, 928, -1, -1, 931, -1, -1, -1, 935, -1, |
| 4411 |
-1, 288, -1, -1, -1, -1, -1, -1, 295, 296, |
| 4412 |
-1, -1, -1, -1, -1, -1, 303, -1, 521, -1, |
| 4413 |
-1, -1, -1, 790, -1, -1, -1, 530, -1, -1, |
| 4414 |
797, 798, 799, -1, -1, -1, -1, -1, 805, -1, |
| 4415 |
-1, 544, -1, 546, 811, 812, -1, -1, -1, -1, |
| 4416 |
817, 818, -1, 556, -1, -1, -1, -1, 995, -1, |
| 4417 |
997, 348, -1, 1000, 831, -1, 353, -1, -1, 2, |
| 4418 |
-1, 4, 5, 6, 7, -1, 843, 844, -1, -1, |
| 4419 |
13, -1, -1, -1, 851, 51, 373, 53, 54, 55, |
| 4420 |
56, -1, -1, -1, -1, 862, 863, -1, -1, -1, |
| 4421 |
-1, -1, -1, 69, -1, -1, -1, 394, 611, -1, |
| 4422 |
-1, -1, 399, -1, -1, 402, -1, -1, -1, 52, |
| 4423 |
-1, -1, 889, 56, -1, -1, -1, 894, 94, -1, |
| 4424 |
-1, -1, -1, -1, 100, 101, 102, 103, -1, -1, |
| 4425 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, 82, |
| 4426 |
917, -1, -1, -1, -1, 442, 443, -1, -1, -1, |
| 4427 |
927, 928, 128, -1, 931, 131, -1, -1, 935, -1, |
| 4428 |
-1, -1, 459, -1, 44, -1, 679, -1, -1, -1, |
| 4429 |
-1, -1, -1, 470, -1, -1, 119, -1, -1, -1, |
| 4430 |
-1, 478, -1, -1, -1, -1, -1, -1, -1, -1, |
| 4431 |
-1, 488, 72, 73, 74, 75, 76, 77, 78, 79, |
| 4432 |
80, 81, 82, 83, -1, -1, -1, -1, 88, 89, |
| 4433 |
-1, -1, -1, -1, -1, -1, -1, -1, 995, -1, |
| 4434 |
997, 101, -1, 1000, 521, -1, -1, -1, -1, -1, |
| 4435 |
-1, -1, -1, 530, -1, -1, -1, -1, -1, -1, |
| 4436 |
-1, -1, 122, -1, 124, 125, 126, 127, 128, 129, |
| 4437 |
130, 131, 132, 133, -1, -1, -1, -1, -1, 556, |
| 4438 |
-1, -1, 142, -1, -1, -1, -1, 210, -1, -1, |
| 4439 |
2, -1, 4, -1, -1, -1, -1, 790, -1, -1, |
| 4440 |
-1, -1, -1, -1, 797, 798, 799, -1, -1, -1, |
| 4441 |
-1, -1, 805, -1, -1, -1, -1, -1, 811, 812, |
| 4442 |
-1, -1, -1, -1, 817, 818, -1, -1, -1, -1, |
| 4443 |
-1, -1, -1, -1, -1, -1, -1, -1, 831, -1, |
| 4444 |
52, -1, -1, 51, -1, 53, 54, 55, 56, -1, |
| 4445 |
843, 844, -1, -1, -1, -1, -1, -1, 851, -1, |
| 4446 |
-1, 69, -1, -1, -1, 288, -1, -1, -1, 862, |
| 4447 |
863, -1, 295, 296, -1, -1, -1, 85, -1, -1, |
| 4448 |
303, -1, -1, -1, -1, -1, 94, -1, -1, -1, |
| 4449 |
-1, 314, 100, 101, 102, 103, 889, -1, -1, -1, |
| 4450 |
-1, 894, 679, -1, -1, -1, -1, 119, -1, 51, |
| 4451 |
-1, 53, 54, 55, 56, -1, -1, -1, -1, -1, |
| 4452 |
128, -1, -1, 131, 917, 348, -1, 69, -1, -1, |
| 4453 |
353, -1, -1, -1, 927, 928, -1, -1, 931, -1, |
| 4454 |
-1, -1, 935, 85, -1, -1, -1, -1, -1, -1, |
| 4455 |
373, -1, 94, -1, -1, -1, -1, -1, 100, 101, |
| 4456 |
102, 103, -1, -1, -1, -1, -1, -1, -1, -1, |
| 4457 |
-1, 394, -1, -1, -1, -1, 399, 400, -1, -1, |
| 4458 |
-1, -1, -1, -1, -1, -1, 128, -1, -1, 131, |
| 4459 |
-1, -1, -1, -1, -1, -1, -1, -1, 210, -1, |
| 4460 |
-1, -1, 995, -1, 997, -1, -1, 1000, -1, -1, |
| 4461 |
-1, -1, -1, 790, -1, -1, -1, -1, -1, -1, |
| 4462 |
-1, 798, 799, -1, -1, -1, -1, -1, 805, -1, |
| 4463 |
-1, -1, -1, -1, 811, 812, 459, -1, -1, -1, |
| 4464 |
817, 818, -1, -1, -1, -1, -1, 470, -1, -1, |
| 4465 |
-1, -1, -1, -1, 831, 478, -1, -1, -1, -1, |
| 4466 |
-1, -1, -1, -1, -1, 488, 843, 844, -1, -1, |
| 4467 |
-1, -1, -1, -1, 851, -1, 288, -1, -1, -1, |
| 4468 |
-1, -1, -1, 295, 296, 862, 863, -1, -1, -1, |
| 4469 |
-1, 303, -1, -1, -1, -1, -1, -1, 521, -1, |
| 4470 |
-1, -1, -1, -1, -1, -1, -1, 530, -1, -1, |
| 4471 |
72, 73, 74, 75, 76, 77, 78, -1, 80, 81, |
| 4472 |
-1, 544, -1, 546, -1, -1, 88, 89, -1, -1, |
| 4473 |
-1, -1, -1, 556, -1, -1, 348, -1, -1, 101, |
| 4474 |
917, 353, -1, -1, -1, -1, -1, -1, -1, -1, |
| 4475 |
927, 928, -1, -1, 931, -1, -1, -1, 935, -1, |
| 4476 |
0, 373, 124, 125, 126, 127, 128, 129, 130, 131, |
| 4477 |
132, 133, -1, 13, 14, 15, -1, 17, 18, -1, |
| 4478 |
20, -1, 394, -1, -1, -1, 26, 399, 611, -1, |
| 4479 |
402, -1, -1, -1, -1, -1, -1, 37, 38, -1, |
| 4480 |
40, 41, 42, 43, 44, -1, -1, -1, -1, -1, |
| 4481 |
-1, -1, -1, -1, -1, -1, -1, -1, 995, -1, |
| 4482 |
997, -1, -1, 1000, -1, -1, -1, -1, -1, -1, |
| 4483 |
442, 443, 72, 73, 74, 75, 76, 77, 78, 79, |
| 4484 |
80, 81, 82, 83, -1, -1, -1, 459, 88, 89, |
| 4485 |
90, -1, 92, 93, -1, -1, 679, -1, 470, -1, |
| 4486 |
-1, 101, -1, -1, -1, 105, 478, -1, -1, -1, |
| 4487 |
-1, -1, -1, -1, -1, 115, 488, -1, 118, 119, |
| 4488 |
-1, 121, 122, -1, 124, 125, 126, 127, 128, 129, |
| 4489 |
130, 131, 132, 133, -1, -1, -1, -1, 138, 139, |
| 4490 |
140, 44, 142, -1, -1, 145, 146, 147, 148, 521, |
| 4491 |
-1, -1, -1, -1, -1, -1, -1, -1, 530, -1, |
| 4492 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, 72, |
| 4493 |
73, 74, 75, 76, 77, 78, 79, 80, 81, 82, |
| 4494 |
83, -1, -1, -1, 556, 88, 89, -1, -1, -1, |
| 4495 |
-1, -1, -1, -1, -1, -1, -1, -1, 101, -1, |
| 4496 |
-1, -1, -1, -1, -1, -1, -1, 790, -1, -1, |
| 4497 |
-1, -1, -1, -1, 797, 798, -1, -1, -1, 122, |
| 4498 |
-1, 124, 125, 126, 127, 128, 129, 130, 131, 132, |
| 4499 |
133, -1, -1, -1, 817, 818, -1, -1, -1, -1, |
| 4500 |
-1, -1, 72, 73, 74, 75, 76, 77, 831, 0, |
| 4501 |
80, 81, -1, -1, -1, -1, -1, -1, 88, 89, |
| 4502 |
843, 844, 13, 14, 15, -1, 17, 18, 851, 20, |
| 4503 |
-1, 101, -1, -1, -1, 26, -1, -1, -1, 862, |
| 4504 |
863, -1, -1, -1, -1, -1, 37, 38, -1, 40, |
| 4505 |
41, 42, 43, 44, 124, 125, 126, 127, 128, 129, |
| 4506 |
130, 131, 132, 133, -1, -1, 889, 679, -1, -1, |
| 4507 |
-1, 894, -1, -1, -1, -1, -1, -1, -1, -1, |
| 4508 |
-1, 72, 73, 74, 75, 76, 77, 78, 79, 80, |
| 4509 |
81, 82, 83, -1, -1, -1, -1, 88, 89, 90, |
| 4510 |
-1, 92, 93, -1, 927, 928, -1, -1, 931, -1, |
| 4511 |
101, -1, 935, -1, 105, -1, -1, -1, -1, -1, |
| 4512 |
-1, -1, -1, -1, 115, -1, -1, 118, 119, -1, |
| 4513 |
121, 122, -1, 124, 125, 126, 127, 128, 129, 130, |
| 4514 |
131, 132, 133, -1, -1, -1, -1, 138, 139, 140, |
| 4515 |
-1, 142, -1, -1, 145, 146, 147, 148, -1, -1, |
| 4516 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 4517 |
-1, -1, 995, -1, 997, -1, -1, 1000, 790, -1, |
| 4518 |
-1, -1, -1, -1, -1, -1, 798, 799, -1, -1, |
| 4519 |
-1, 51, 52, 805, -1, 55, -1, -1, -1, 811, |
| 4520 |
812, -1, -1, -1, -1, 817, 818, -1, -1, -1, |
| 4521 |
70, 71, 72, 73, 74, 75, 76, 77, -1, 831, |
| 4522 |
80, 81, -1, -1, -1, -1, 86, 87, 88, 89, |
| 4523 |
-1, 843, 844, -1, -1, -1, -1, -1, -1, 851, |
| 4524 |
100, 101, 102, -1, -1, -1, -1, -1, -1, -1, |
| 4525 |
862, 863, -1, -1, -1, -1, -1, -1, -1, -1, |
| 4526 |
-1, -1, -1, -1, 124, 125, 126, 127, 128, 129, |
| 4527 |
130, 131, 132, 133, -1, 135, 136, 72, 73, 74, |
| 4528 |
75, 76, 77, 143, 144, 80, 81, -1, -1, -1, |
| 4529 |
-1, -1, -1, 88, 89, -1, -1, -1, -1, -1, |
| 4530 |
-1, -1, -1, -1, -1, 917, 101, -1, -1, -1, |
| 4531 |
-1, -1, -1, -1, -1, 927, 928, -1, -1, -1, |
| 4532 |
-1, -1, -1, 935, -1, -1, -1, -1, -1, 124, |
| 4533 |
125, 126, 127, 128, 129, 130, 131, 132, 133, -1, |
| 4534 |
-1, -1, -1, -1, -1, 0, 1, -1, 3, 4, |
| 4535 |
5, 6, 7, 8, 9, 10, 11, 12, -1, -1, |
| 4536 |
-1, -1, -1, -1, 19, -1, 21, 22, 23, 24, |
| 4537 |
-1, -1, -1, -1, -1, 30, 31, 32, 33, 34, |
| 4538 |
35, 36, -1, 995, 39, 997, -1, -1, 1000, -1, |
| 4539 |
45, 46, 47, 48, 49, 50, 51, 52, 53, 54, |
| 4540 |
55, 56, -1, 58, 59, 60, -1, -1, 63, -1, |
| 4541 |
-1, 66, 67, -1, 69, 70, 71, -1, -1, -1, |
| 4542 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, 84, |
| 4543 |
85, -1, -1, -1, -1, -1, 91, -1, -1, 94, |
| 4544 |
95, -1, 97, 98, -1, 100, -1, -1, -1, 104, |
| 4545 |
-1, 106, 107, 108, -1, 110, 111, 112, 0, 114, |
| 4546 |
115, -1, -1, 118, 119, -1, -1, -1, -1, -1, |
| 4547 |
-1, 13, 14, 15, 16, 17, 18, -1, 20, 134, |
| 4548 |
135, 136, -1, -1, -1, 27, 28, 29, -1, -1, |
| 4549 |
-1, 146, -1, 148, -1, 37, 38, -1, 40, 41, |
| 4550 |
42, 43, 44, -1, -1, -1, -1, -1, -1, -1, |
| 4551 |
-1, -1, -1, -1, -1, 57, -1, -1, -1, -1, |
| 4552 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 4553 |
72, 73, 74, 75, 76, 77, 78, 79, 80, 81, |
| 4554 |
82, 83, -1, -1, -1, -1, 88, 89, 90, -1, |
| 4555 |
-1, 93, -1, -1, -1, -1, -1, 99, -1, 101, |
| 4556 |
-1, -1, -1, 105, -1, -1, -1, -1, -1, -1, |
| 4557 |
-1, 113, -1, 115, -1, -1, 118, 119, -1, -1, |
| 4558 |
122, 123, 124, 125, 126, 127, 128, 129, 130, 131, |
| 4559 |
132, 133, -1, -1, 0, -1, -1, 139, 140, 141, |
| 4560 |
142, -1, -1, 145, 146, 147, 148, 13, 14, 15, |
| 4561 |
16, 17, 18, -1, 20, -1, -1, -1, -1, -1, |
| 4562 |
26, 27, 28, -1, -1, -1, -1, -1, -1, -1, |
| 4563 |
-1, 37, 38, -1, 40, 41, 42, 43, 44, -1, |
| 4564 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 4565 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 4566 |
-1, -1, -1, -1, -1, -1, 72, 73, 74, 75, |
| 4567 |
76, 77, 78, 79, 80, 81, 82, 83, -1, -1, |
| 4568 |
-1, -1, 88, 89, 90, -1, -1, 93, -1, -1, |
| 4569 |
-1, -1, -1, 99, -1, 101, -1, -1, -1, 105, |
| 4570 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, 115, |
| 4571 |
-1, -1, 118, 119, -1, -1, 122, -1, 124, 125, |
| 4572 |
126, 127, 128, 129, 130, 131, 132, 133, -1, -1, |
| 4573 |
0, -1, 138, 139, 140, 141, 142, -1, 144, 145, |
| 4574 |
146, 147, 148, 13, 14, 15, 16, 17, 18, -1, |
| 4575 |
20, -1, -1, -1, -1, -1, -1, 27, 28, -1, |
| 4576 |
-1, -1, -1, -1, -1, -1, -1, 37, 38, -1, |
| 4577 |
40, 41, 42, 43, 44, -1, -1, -1, -1, -1, |
| 4578 |
-1, -1, -1, -1, -1, -1, -1, 57, -1, -1, |
| 4579 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 4580 |
-1, -1, 72, 73, 74, 75, 76, 77, 78, 79, |
| 4581 |
80, 81, 82, 83, -1, -1, -1, -1, 88, 89, |
| 4582 |
90, -1, 92, 93, -1, -1, -1, -1, -1, 99, |
| 4583 |
-1, 101, -1, -1, -1, 105, -1, -1, -1, -1, |
| 4584 |
-1, -1, -1, -1, -1, 115, -1, -1, 118, 119, |
| 4585 |
-1, 121, 122, -1, 124, 125, 126, 127, 128, 129, |
| 4586 |
130, 131, 132, 133, -1, -1, 0, -1, -1, 139, |
| 4587 |
140, 141, 142, -1, -1, 145, 146, 147, 148, 13, |
| 4588 |
14, 15, 16, 17, 18, -1, 20, -1, -1, -1, |
| 4589 |
-1, -1, 26, 27, 28, -1, -1, -1, -1, -1, |
| 4590 |
-1, -1, -1, 37, 38, -1, 40, 41, 42, 43, |
| 4591 |
44, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 4592 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 4593 |
-1, -1, -1, -1, -1, -1, -1, -1, 72, 73, |
| 4594 |
74, 75, 76, 77, 78, 79, 80, 81, 82, 83, |
| 4595 |
-1, -1, -1, -1, 88, 89, 90, -1, -1, 93, |
| 4596 |
-1, -1, -1, -1, -1, 99, -1, 101, -1, -1, |
| 4597 |
-1, 105, -1, -1, -1, -1, -1, -1, -1, -1, |
| 4598 |
-1, 115, -1, -1, 118, 119, -1, -1, 122, -1, |
| 4599 |
124, 125, 126, 127, 128, 129, 130, 131, 132, 133, |
| 4600 |
-1, -1, 0, -1, 138, 139, 140, 141, 142, -1, |
| 4601 |
144, 145, 146, 147, 148, 13, 14, 15, 16, 17, |
| 4602 |
18, -1, 20, -1, -1, -1, -1, -1, -1, 27, |
| 4603 |
28, -1, -1, -1, -1, -1, -1, -1, -1, 37, |
| 4604 |
38, -1, 40, 41, 42, 43, 44, -1, -1, -1, |
| 4605 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 4606 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 4607 |
-1, -1, -1, -1, 72, 73, 74, 75, 76, 77, |
| 4608 |
78, 79, 80, 81, 82, 83, -1, -1, -1, -1, |
| 4609 |
88, 89, 90, -1, -1, 93, -1, -1, -1, -1, |
| 4610 |
-1, 99, -1, 101, -1, -1, -1, 105, -1, -1, |
| 4611 |
-1, -1, -1, -1, -1, -1, -1, 115, -1, -1, |
| 4612 |
118, 119, -1, -1, 122, -1, 124, 125, 126, 127, |
| 4613 |
128, 129, 130, 131, 132, 133, -1, -1, 0, -1, |
| 4614 |
-1, 139, 140, 141, 142, -1, 144, 145, 146, 147, |
| 4615 |
148, 13, 14, 15, -1, 17, 18, -1, 20, -1, |
| 4616 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 4617 |
-1, -1, -1, -1, -1, 37, 38, -1, 40, 41, |
| 4618 |
42, 43, 44, -1, -1, -1, -1, -1, -1, -1, |
| 4619 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 4620 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 4621 |
72, 73, 74, 75, 76, 77, 78, 79, 80, 81, |
| 4622 |
82, 83, -1, -1, -1, -1, 88, 89, 90, -1, |
| 4623 |
92, 93, -1, -1, -1, -1, -1, -1, -1, 101, |
| 4624 |
-1, -1, -1, 105, -1, -1, -1, -1, -1, -1, |
| 4625 |
-1, -1, -1, 115, -1, -1, 118, 119, -1, 121, |
| 4626 |
122, -1, 124, 125, 126, 127, 128, 129, 130, 131, |
| 4627 |
132, 133, -1, -1, 0, -1, -1, 139, 140, -1, |
| 4628 |
142, -1, -1, 145, 146, 147, 148, 13, 14, 15, |
| 4629 |
-1, 17, 18, -1, 20, -1, -1, -1, -1, -1, |
| 4630 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 4631 |
-1, 37, 38, -1, 40, 41, 42, 43, 44, -1, |
| 4632 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 4633 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 4634 |
-1, -1, -1, -1, -1, -1, 72, 73, 74, 75, |
| 4635 |
76, 77, 78, 79, 80, 81, 82, 83, -1, -1, |
| 4636 |
-1, -1, 88, 89, 90, -1, 92, 93, -1, -1, |
| 4637 |
-1, -1, -1, -1, -1, 101, -1, -1, -1, 105, |
| 4638 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, 115, |
| 4639 |
-1, -1, 118, 119, -1, 121, 122, -1, 124, 125, |
| 4640 |
126, 127, 128, 129, 130, 131, 132, 133, -1, -1, |
| 4641 |
-1, -1, -1, 139, 140, -1, 142, -1, -1, 145, |
| 4642 |
146, 147, 148, 1, -1, 3, 4, 5, 6, 7, |
| 4643 |
8, 9, 10, 11, 12, 13, 14, 15, -1, -1, |
| 4644 |
18, 19, -1, 21, 22, 23, 24, -1, -1, -1, |
| 4645 |
-1, -1, 30, 31, 32, 33, 34, 35, 36, -1, |
| 4646 |
-1, 39, -1, -1, -1, -1, -1, 45, -1, 47, |
| 4647 |
48, 49, 50, 51, 52, 53, 54, 55, 56, -1, |
| 4648 |
58, 59, 60, -1, -1, 63, -1, -1, 66, 67, |
| 4649 |
-1, 69, 70, 71, -1, -1, -1, -1, -1, -1, |
| 4650 |
-1, -1, -1, -1, -1, -1, 84, 85, -1, -1, |
| 4651 |
-1, -1, -1, 91, -1, -1, 94, 95, -1, 97, |
| 4652 |
98, -1, 100, -1, -1, -1, 104, -1, 106, 107, |
| 4653 |
108, -1, 110, 111, 112, -1, 114, 115, -1, -1, |
| 4654 |
118, 119, -1, -1, -1, -1, -1, -1, -1, -1, |
| 4655 |
-1, -1, -1, -1, -1, -1, 134, 135, 136, -1, |
| 4656 |
-1, -1, -1, -1, -1, -1, -1, -1, 146, 1, |
| 4657 |
148, 3, 4, 5, 6, 7, 8, 9, 10, 11, |
| 4658 |
12, -1, -1, 15, -1, 17, 18, 19, -1, 21, |
| 4659 |
22, 23, 24, -1, -1, -1, -1, -1, 30, 31, |
| 4660 |
32, 33, 34, 35, 36, -1, -1, 39, -1, -1, |
| 4661 |
-1, -1, -1, 45, -1, 47, 48, 49, 50, 51, |
| 4662 |
52, 53, 54, 55, 56, -1, 58, 59, 60, -1, |
| 4663 |
-1, 63, -1, -1, 66, 67, -1, 69, 70, 71, |
| 4664 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 4665 |
-1, -1, 84, 85, -1, -1, -1, -1, -1, 91, |
| 4666 |
-1, -1, 94, 95, -1, 97, 98, -1, 100, -1, |
| 4667 |
-1, -1, 104, -1, 106, 107, 108, -1, 110, 111, |
| 4668 |
112, -1, 114, 115, -1, -1, 118, 119, -1, -1, |
| 4669 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 4670 |
-1, -1, 134, 135, 136, -1, -1, -1, -1, -1, |
| 4671 |
-1, -1, -1, -1, 146, 1, 148, 3, 4, 5, |
| 4672 |
6, 7, 8, 9, 10, 11, 12, -1, -1, 15, |
| 4673 |
-1, -1, 18, 19, 20, 21, 22, 23, 24, -1, |
| 4674 |
-1, -1, -1, -1, 30, 31, 32, 33, 34, 35, |
| 4675 |
36, -1, -1, 39, -1, -1, -1, -1, -1, 45, |
| 4676 |
-1, 47, 48, 49, 50, 51, 52, 53, 54, 55, |
| 4677 |
56, -1, 58, 59, 60, -1, -1, 63, -1, -1, |
| 4678 |
66, 67, -1, 69, 70, 71, -1, -1, -1, -1, |
| 4679 |
-1, -1, -1, -1, -1, -1, -1, -1, 84, 85, |
| 4680 |
-1, -1, -1, -1, -1, 91, -1, -1, 94, 95, |
| 4681 |
-1, 97, 98, -1, 100, -1, -1, -1, 104, -1, |
| 4682 |
106, 107, 108, -1, 110, 111, 112, -1, 114, 115, |
| 4683 |
-1, -1, 118, 119, -1, -1, -1, -1, -1, -1, |
| 4684 |
-1, -1, -1, -1, -1, -1, -1, -1, 134, 135, |
| 4685 |
136, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 4686 |
146, 1, 148, 3, 4, 5, 6, 7, 8, 9, |
| 4687 |
10, 11, 12, -1, -1, 15, -1, -1, 18, 19, |
| 4688 |
-1, 21, 22, 23, 24, -1, -1, -1, -1, -1, |
| 4689 |
30, 31, 32, 33, 34, 35, 36, -1, -1, 39, |
| 4690 |
-1, -1, -1, -1, -1, 45, -1, 47, 48, 49, |
| 4691 |
50, 51, 52, 53, 54, 55, 56, -1, 58, 59, |
| 4692 |
60, -1, -1, 63, -1, -1, 66, 67, -1, 69, |
| 4693 |
70, 71, -1, -1, -1, -1, -1, -1, -1, -1, |
| 4694 |
-1, -1, -1, -1, 84, 85, -1, -1, -1, -1, |
| 4695 |
-1, 91, -1, -1, 94, 95, -1, 97, 98, -1, |
| 4696 |
100, -1, -1, -1, 104, -1, 106, 107, 108, -1, |
| 4697 |
110, 111, 112, -1, 114, 115, -1, -1, 118, 119, |
| 4698 |
1, -1, 3, 4, 5, 6, 7, 8, 9, 10, |
| 4699 |
11, 12, -1, -1, 134, 135, 136, -1, 19, -1, |
| 4700 |
21, 22, 23, 24, -1, -1, 146, -1, 148, 30, |
| 4701 |
31, 32, 33, 34, 35, 36, -1, -1, 39, -1, |
| 4702 |
-1, -1, -1, -1, 45, 46, 47, 48, 49, 50, |
| 4703 |
51, 52, 53, 54, 55, 56, -1, 58, 59, 60, |
| 4704 |
-1, -1, 63, -1, -1, 66, 67, -1, 69, 70, |
| 4705 |
71, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 4706 |
-1, -1, -1, 84, 85, -1, -1, -1, -1, -1, |
| 4707 |
91, -1, -1, 94, 95, -1, 97, 98, -1, 100, |
| 4708 |
-1, -1, -1, 104, -1, 106, 107, 108, -1, 110, |
| 4709 |
111, 112, -1, 114, 115, -1, -1, 118, 119, -1, |
| 4710 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 4711 |
-1, -1, -1, 134, 135, 136, -1, -1, 139, -1, |
| 4712 |
-1, -1, -1, -1, -1, 146, 1, 148, 3, 4, |
| 4713 |
5, 6, 7, 8, 9, 10, 11, 12, -1, 14, |
| 4714 |
15, -1, -1, -1, 19, -1, 21, 22, 23, 24, |
| 4715 |
-1, -1, -1, -1, -1, 30, 31, 32, 33, 34, |
| 4716 |
35, 36, -1, -1, 39, -1, -1, -1, -1, -1, |
| 4717 |
45, -1, 47, 48, 49, 50, 51, 52, 53, 54, |
| 4718 |
55, 56, -1, 58, 59, 60, -1, -1, 63, -1, |
| 4719 |
-1, 66, 67, -1, 69, 70, 71, -1, -1, -1, |
| 4720 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, 84, |
| 4721 |
85, -1, -1, -1, -1, -1, 91, -1, -1, 94, |
| 4722 |
95, -1, 97, 98, -1, 100, -1, -1, -1, 104, |
| 4723 |
-1, 106, 107, 108, -1, 110, 111, 112, -1, 114, |
| 4724 |
115, -1, -1, 118, 119, 1, -1, 3, 4, 5, |
| 4725 |
6, 7, 8, 9, 10, 11, 12, -1, -1, 134, |
| 4726 |
135, 136, -1, 19, -1, 21, 22, 23, 24, -1, |
| 4727 |
-1, 146, -1, 148, 30, 31, 32, 33, 34, 35, |
| 4728 |
36, -1, -1, 39, -1, -1, -1, -1, -1, 45, |
| 4729 |
-1, 47, 48, 49, 50, 51, 52, 53, 54, 55, |
| 4730 |
56, -1, 58, 59, 60, -1, -1, 63, -1, -1, |
| 4731 |
66, 67, -1, 69, 70, 71, -1, -1, -1, -1, |
| 4732 |
-1, -1, -1, -1, -1, -1, -1, -1, 84, 85, |
| 4733 |
-1, -1, -1, -1, -1, 91, -1, -1, 94, 95, |
| 4734 |
-1, 97, 98, -1, 100, -1, -1, -1, 104, -1, |
| 4735 |
106, 107, 108, -1, 110, 111, 112, -1, 114, 115, |
| 4736 |
-1, -1, 118, 119, 1, -1, 3, 4, 5, 6, |
| 4737 |
7, 8, 9, 10, 11, 12, -1, -1, 134, 135, |
| 4738 |
136, -1, 19, -1, 21, 22, 23, 24, -1, 145, |
| 4739 |
146, -1, 148, 30, 31, 32, 33, 34, 35, 36, |
| 4740 |
-1, -1, 39, -1, -1, -1, -1, -1, 45, -1, |
| 4741 |
47, 48, 49, 50, 51, 52, 53, 54, 55, 56, |
| 4742 |
-1, 58, 59, 60, -1, -1, 63, -1, -1, 66, |
| 4743 |
67, -1, 69, 70, 71, -1, -1, -1, -1, -1, |
| 4744 |
-1, -1, -1, -1, -1, -1, -1, 84, 85, -1, |
| 4745 |
-1, -1, -1, -1, 91, -1, -1, 94, 95, -1, |
| 4746 |
97, 98, -1, 100, -1, -1, -1, 104, -1, 106, |
| 4747 |
107, 108, -1, 110, 111, 112, -1, 114, 115, -1, |
| 4748 |
-1, 118, 119, 1, -1, 3, 4, 5, 6, 7, |
| 4749 |
8, 9, 10, 11, 12, -1, -1, 134, 135, 136, |
| 4750 |
-1, 19, -1, 21, 22, 23, 24, -1, 145, 146, |
| 4751 |
-1, 148, 30, 31, 32, 33, 34, 35, 36, -1, |
| 4752 |
-1, 39, -1, -1, -1, -1, -1, 45, -1, 47, |
| 4753 |
48, 49, 50, 51, 52, 53, 54, 55, 56, -1, |
| 4754 |
58, 59, 60, -1, -1, 63, -1, -1, 66, 67, |
| 4755 |
-1, 69, 70, 71, -1, -1, -1, -1, -1, -1, |
| 4756 |
-1, -1, -1, -1, -1, -1, 84, 85, -1, -1, |
| 4757 |
-1, -1, -1, 91, -1, -1, 94, 95, -1, 97, |
| 4758 |
98, -1, 100, -1, -1, -1, 104, -1, 106, 107, |
| 4759 |
108, -1, 110, 111, 112, -1, 114, 115, -1, -1, |
| 4760 |
118, 119, -1, -1, -1, -1, -1, -1, -1, -1, |
| 4761 |
-1, -1, -1, -1, -1, -1, 134, 135, 136, -1, |
| 4762 |
-1, 139, -1, -1, -1, -1, -1, -1, 146, 1, |
| 4763 |
148, 3, 4, 5, 6, 7, 8, 9, 10, 11, |
| 4764 |
12, -1, -1, 15, -1, -1, -1, 19, -1, 21, |
| 4765 |
22, 23, 24, -1, -1, -1, -1, -1, 30, 31, |
| 4766 |
32, 33, 34, 35, 36, -1, -1, 39, -1, -1, |
| 4767 |
-1, -1, -1, 45, -1, 47, 48, 49, 50, 51, |
| 4768 |
52, 53, 54, 55, 56, -1, 58, 59, 60, -1, |
| 4769 |
-1, 63, -1, -1, 66, 67, -1, 69, 70, 71, |
| 4770 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 4771 |
-1, -1, 84, 85, -1, -1, -1, -1, -1, 91, |
| 4772 |
-1, -1, 94, 95, -1, 97, 98, -1, 100, -1, |
| 4773 |
-1, -1, 104, -1, 106, 107, 108, -1, 110, 111, |
| 4774 |
112, -1, 114, 115, -1, -1, 118, 119, -1, -1, |
| 4775 |
3, 4, 5, 6, 7, 8, 9, 10, 11, 12, |
| 4776 |
-1, -1, 134, 135, 136, -1, 19, -1, 21, 22, |
| 4777 |
23, 24, -1, -1, 146, -1, 148, 30, 31, 32, |
| 4778 |
33, 34, 35, 36, -1, -1, 39, -1, -1, -1, |
| 4779 |
-1, -1, 45, 46, 47, 48, 49, 50, 51, 52, |
| 4780 |
53, 54, 55, 56, -1, 58, 59, 60, -1, -1, |
| 4781 |
63, -1, -1, 66, 67, -1, 69, 70, 71, -1, |
| 4782 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 4783 |
-1, 84, 85, -1, -1, -1, -1, -1, 91, -1, |
| 4784 |
-1, 94, 95, -1, 97, 98, -1, 100, -1, -1, |
| 4785 |
-1, 104, -1, 106, 107, 108, -1, 110, 111, 112, |
| 4786 |
-1, 114, 115, -1, -1, 118, 119, -1, -1, 3, |
| 4787 |
4, 5, 6, 7, 8, 9, 10, 11, 12, -1, |
| 4788 |
-1, 134, 135, 136, -1, 19, -1, 21, 22, 23, |
| 4789 |
24, -1, -1, 146, -1, 148, 30, 31, 32, 33, |
| 4790 |
34, 35, 36, -1, -1, 39, -1, -1, -1, -1, |
| 4791 |
-1, 45, -1, 47, 48, 49, 50, 51, 52, 53, |
| 4792 |
54, 55, 56, -1, 58, 59, 60, -1, -1, 63, |
| 4793 |
-1, -1, 66, 67, -1, 69, 70, 71, -1, -1, |
| 4794 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 4795 |
84, 85, -1, -1, -1, -1, -1, 91, -1, -1, |
| 4796 |
94, 95, -1, 97, 98, -1, 100, -1, -1, -1, |
| 4797 |
104, -1, 106, 107, 108, -1, 110, 111, 112, -1, |
| 4798 |
114, 115, -1, -1, 118, 119, -1, -1, 3, 4, |
| 4799 |
5, 6, 7, 8, 9, 10, 11, -1, -1, -1, |
| 4800 |
134, 135, 136, -1, 19, -1, 21, 22, 23, 24, |
| 4801 |
-1, -1, 146, -1, 148, 30, 31, 32, 33, 34, |
| 4802 |
35, 36, -1, -1, 39, -1, -1, -1, -1, -1, |
| 4803 |
-1, -1, -1, 48, 49, 50, 51, 52, 53, 54, |
| 4804 |
55, 56, -1, 58, 59, 60, -1, -1, 63, -1, |
| 4805 |
-1, 66, 67, -1, 69, 70, 71, -1, -1, -1, |
| 4806 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, 84, |
| 4807 |
85, -1, -1, -1, -1, -1, 91, -1, -1, 94, |
| 4808 |
95, -1, 97, 98, -1, -1, -1, -1, -1, 104, |
| 4809 |
-1, 106, 107, 108, -1, 110, 111, 112, -1, 114, |
| 4810 |
115, -1, -1, 118, 119, -1, -1, 3, 4, 5, |
| 4811 |
6, 7, 8, 9, 10, 11, -1, -1, -1, 134, |
| 4812 |
135, 136, -1, 19, -1, 21, 22, 23, 24, -1, |
| 4813 |
-1, 146, -1, 148, 30, 31, 32, 33, 34, 35, |
| 4814 |
36, -1, -1, 39, -1, -1, -1, -1, -1, -1, |
| 4815 |
-1, -1, 48, 49, 50, 51, 52, 53, 54, 55, |
| 4816 |
56, -1, 58, 59, 60, -1, -1, 63, -1, -1, |
| 4817 |
66, 67, -1, 69, 70, 71, -1, -1, -1, -1, |
| 4818 |
-1, -1, -1, -1, -1, -1, -1, -1, 84, 85, |
| 4819 |
-1, -1, -1, -1, -1, 91, -1, -1, 94, 95, |
| 4820 |
-1, 97, 98, -1, -1, -1, -1, -1, 104, -1, |
| 4821 |
106, 107, 108, -1, 110, 111, 112, -1, 114, 115, |
| 4822 |
-1, -1, 118, 119, -1, -1, 3, 4, 5, 6, |
| 4823 |
7, 8, 9, 10, 11, -1, -1, -1, 134, 135, |
| 4824 |
136, -1, 19, -1, 21, 22, 23, 24, -1, -1, |
| 4825 |
146, -1, 148, 30, 31, 32, 33, 34, 35, 36, |
| 4826 |
-1, -1, 39, -1, -1, -1, -1, -1, -1, -1, |
| 4827 |
-1, 48, 49, 50, 51, 52, 53, 54, 55, 56, |
| 4828 |
-1, 58, 59, 60, -1, -1, 63, -1, -1, 66, |
| 4829 |
67, -1, 69, 70, 71, -1, -1, -1, -1, -1, |
| 4830 |
-1, -1, -1, -1, -1, -1, -1, 84, 85, -1, |
| 4831 |
-1, -1, -1, -1, 91, -1, -1, 94, 95, -1, |
| 4832 |
97, 98, -1, -1, -1, -1, -1, 104, -1, 106, |
| 4833 |
107, 108, -1, 110, 111, 112, -1, 114, 115, -1, |
| 4834 |
-1, 118, 119, -1, -1, -1, -1, -1, -1, -1, |
| 4835 |
-1, -1, -1, -1, -1, -1, -1, 134, 135, 136, |
| 4836 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 4837 |
-1, 148, 3, 4, 5, 6, 7, 8, 9, 10, |
| 4838 |
11, 12, 13, 14, 15, 16, 17, 18, 19, 20, |
| 4839 |
21, 22, 23, 24, 25, 26, -1, -1, -1, 30, |
| 4840 |
31, 32, 33, 34, 35, 36, 37, 38, 39, -1, |
| 4841 |
-1, -1, -1, -1, 45, 46, 47, 48, 49, 50, |
| 4842 |
51, 52, 53, 54, 55, 56, -1, -1, -1, -1, |
| 4843 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, 70, |
| 4844 |
71, 72, 73, 74, 75, 76, 77, -1, -1, 80, |
| 4845 |
81, -1, -1, -1, -1, 86, 87, 88, 89, -1, |
| 4846 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, 100, |
| 4847 |
101, 102, -1, -1, -1, -1, -1, -1, -1, -1, |
| 4848 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 4849 |
-1, -1, -1, 124, 125, 126, 127, 128, 129, 130, |
| 4850 |
131, 132, 133, -1, 135, 136, -1, -1, -1, -1, |
| 4851 |
-1, -1, 143, 144, 3, 4, 5, 6, 7, 8, |
| 4852 |
9, 10, 11, -1, -1, -1, -1, -1, -1, -1, |
| 4853 |
19, -1, 21, 22, 23, 24, -1, 26, -1, -1, |
| 4854 |
-1, 30, 31, 32, 33, 34, 35, 36, -1, -1, |
| 4855 |
39, -1, -1, -1, -1, -1, -1, -1, -1, 48, |
| 4856 |
49, 50, 51, 52, 53, 54, 55, 56, -1, 58, |
| 4857 |
59, 60, -1, -1, 63, -1, -1, 66, 67, -1, |
| 4858 |
69, 70, 71, -1, -1, -1, -1, -1, -1, -1, |
| 4859 |
-1, -1, -1, -1, -1, 84, 85, -1, -1, -1, |
| 4860 |
-1, -1, 91, -1, -1, 94, 95, -1, 97, 98, |
| 4861 |
-1, 100, -1, 102, 103, 104, -1, 106, 107, 108, |
| 4862 |
-1, 110, 111, 112, -1, 114, -1, -1, -1, -1, |
| 4863 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 4864 |
-1, -1, -1, -1, -1, 134, 135, 136, -1, 138, |
| 4865 |
-1, -1, -1, -1, -1, 144, 3, 4, 5, 6, |
| 4866 |
7, 8, 9, 10, 11, -1, -1, -1, -1, -1, |
| 4867 |
-1, -1, 19, -1, 21, 22, 23, 24, -1, 26, |
| 4868 |
-1, -1, -1, 30, 31, 32, 33, 34, 35, 36, |
| 4869 |
-1, -1, 39, -1, -1, -1, -1, -1, -1, -1, |
| 4870 |
-1, 48, 49, 50, 51, 52, 53, 54, 55, 56, |
| 4871 |
-1, 58, 59, 60, -1, -1, 63, -1, -1, 66, |
| 4872 |
67, -1, 69, 70, 71, -1, -1, -1, -1, -1, |
| 4873 |
-1, -1, -1, -1, -1, -1, -1, 84, 85, -1, |
| 4874 |
-1, -1, -1, -1, 91, -1, -1, 94, 95, -1, |
| 4875 |
97, 98, -1, 100, -1, 102, 103, 104, -1, 106, |
| 4876 |
107, 108, -1, 110, 111, 112, -1, 114, -1, -1, |
| 4877 |
-1, -1, -1, -1, 3, 4, 5, 6, 7, 8, |
| 4878 |
9, 10, 11, -1, -1, -1, -1, 134, 135, 136, |
| 4879 |
19, 138, 21, 22, 23, 24, -1, 144, -1, -1, |
| 4880 |
-1, 30, 31, 32, 33, 34, 35, 36, -1, -1, |
| 4881 |
39, -1, -1, -1, -1, -1, -1, -1, -1, 48, |
| 4882 |
49, 50, 51, 52, 53, 54, 55, 56, -1, 58, |
| 4883 |
59, 60, -1, -1, 63, -1, -1, 66, 67, -1, |
| 4884 |
69, 70, 71, -1, -1, -1, -1, -1, -1, -1, |
| 4885 |
-1, -1, -1, -1, -1, 84, 85, -1, -1, -1, |
| 4886 |
-1, -1, 91, 92, -1, 94, 95, -1, 97, 98, |
| 4887 |
-1, 100, -1, 102, 103, 104, -1, 106, 107, 108, |
| 4888 |
-1, 110, 111, 112, -1, 114, -1, -1, -1, -1, |
| 4889 |
-1, -1, 121, 3, 4, 5, 6, 7, 8, 9, |
| 4890 |
10, 11, -1, -1, -1, 134, 135, 136, -1, 19, |
| 4891 |
-1, 21, 22, 23, 24, 144, -1, -1, -1, -1, |
| 4892 |
30, 31, 32, 33, 34, 35, 36, -1, -1, 39, |
| 4893 |
-1, -1, -1, -1, -1, -1, -1, -1, 48, 49, |
| 4894 |
50, 51, 52, 53, 54, 55, 56, -1, 58, 59, |
| 4895 |
60, -1, -1, 63, -1, -1, 66, 67, -1, 69, |
| 4896 |
70, 71, -1, -1, -1, -1, -1, -1, -1, -1, |
| 4897 |
-1, -1, -1, -1, 84, 85, -1, -1, -1, -1, |
| 4898 |
-1, 91, 92, -1, 94, 95, -1, 97, 98, -1, |
| 4899 |
100, -1, 102, 103, 104, -1, 106, 107, 108, -1, |
| 4900 |
110, 111, 112, -1, 114, -1, -1, -1, -1, -1, |
| 4901 |
-1, 121, 3, 4, 5, 6, 7, 8, 9, 10, |
| 4902 |
11, -1, -1, -1, 134, 135, 136, -1, 19, -1, |
| 4903 |
21, 22, 23, 24, 144, -1, -1, -1, -1, 30, |
| 4904 |
31, 32, 33, 34, 35, 36, -1, -1, 39, -1, |
| 4905 |
-1, -1, -1, -1, -1, -1, -1, 48, 49, 50, |
| 4906 |
51, 52, 53, 54, 55, 56, -1, 58, 59, 60, |
| 4907 |
-1, -1, 63, -1, -1, 66, 67, -1, 69, 70, |
| 4908 |
71, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 4909 |
-1, -1, -1, 84, 85, -1, -1, -1, -1, -1, |
| 4910 |
91, -1, -1, 94, 95, -1, 97, 98, -1, 100, |
| 4911 |
-1, 102, 103, 104, -1, 106, 107, 108, -1, 110, |
| 4912 |
111, 112, -1, 114, -1, -1, -1, -1, -1, -1, |
| 4913 |
3, 4, 5, 6, 7, 8, 9, 10, 11, -1, |
| 4914 |
-1, -1, -1, 134, 135, 136, 19, -1, 21, 22, |
| 4915 |
23, 24, -1, 144, -1, -1, -1, 30, 31, 32, |
| 4916 |
33, 34, 35, 36, -1, -1, 39, -1, -1, -1, |
| 4917 |
-1, -1, -1, -1, -1, 48, 49, 50, 51, 52, |
| 4918 |
53, 54, 55, 56, -1, 58, 59, 60, -1, -1, |
| 4919 |
63, -1, -1, 66, 67, -1, 69, 70, 71, -1, |
| 4920 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 4921 |
-1, 84, 85, -1, -1, -1, -1, -1, 91, -1, |
| 4922 |
-1, 94, 95, -1, 97, 98, -1, 100, -1, 102, |
| 4923 |
103, 104, -1, 106, 107, 108, -1, 110, 111, 112, |
| 4924 |
-1, 114, -1, -1, -1, -1, -1, -1, -1, -1, |
| 4925 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 4926 |
-1, 134, 135, 136, -1, -1, -1, -1, -1, -1, |
| 4927 |
-1, 144, 3, 4, 5, 6, 7, 8, 9, 10, |
| 4928 |
11, 12, 13, 14, 15, 16, 17, 18, 19, 20, |
| 4929 |
21, 22, 23, 24, 25, 26, -1, -1, -1, 30, |
| 4930 |
31, 32, 33, 34, 35, 36, 37, 38, 39, -1, |
| 4931 |
-1, -1, -1, -1, 45, 46, 47, 48, 49, 50, |
| 4932 |
51, 52, 53, 54, 55, 56, -1, -1, -1, -1, |
| 4933 |
-1, -1, 63, -1, -1, -1, -1, -1, -1, 70, |
| 4934 |
71, 72, 73, 74, 75, 76, 77, -1, -1, 80, |
| 4935 |
81, -1, -1, -1, -1, 86, 87, 88, 89, -1, |
| 4936 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, 100, |
| 4937 |
101, 102, -1, -1, -1, -1, 107, -1, -1, -1, |
| 4938 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 4939 |
-1, -1, -1, 124, 125, 126, 127, 128, 129, 130, |
| 4940 |
131, 132, 133, -1, 135, 136, -1, -1, -1, -1, |
| 4941 |
-1, -1, 143, 3, 4, 5, 6, 7, 8, 9, |
| 4942 |
10, 11, 12, 13, 14, 15, 16, 17, 18, 19, |
| 4943 |
20, 21, 22, 23, 24, 25, 26, -1, -1, -1, |
| 4944 |
30, 31, 32, 33, 34, 35, 36, 37, 38, 39, |
| 4945 |
-1, -1, -1, -1, -1, 45, 46, 47, 48, 49, |
| 4946 |
50, 51, 52, 53, 54, 55, 56, -1, -1, -1, |
| 4947 |
-1, -1, -1, 63, -1, -1, -1, -1, -1, -1, |
| 4948 |
70, 71, 72, 73, 74, 75, 76, 77, -1, -1, |
| 4949 |
80, 81, -1, -1, -1, -1, 86, 87, 88, 89, |
| 4950 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 4951 |
100, 101, 102, -1, -1, -1, -1, 107, -1, -1, |
| 4952 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 4953 |
-1, -1, -1, -1, 124, 125, 126, 127, 128, 129, |
| 4954 |
130, 131, 132, 133, -1, 135, 136, -1, -1, -1, |
| 4955 |
-1, -1, -1, 143, 3, 4, 5, 6, 7, 8, |
| 4956 |
9, 10, 11, 12, 13, 14, 15, 16, 17, 18, |
| 4957 |
19, 20, 21, 22, 23, 24, 25, 26, -1, -1, |
| 4958 |
-1, 30, 31, 32, 33, 34, 35, 36, 37, 38, |
| 4959 |
39, -1, -1, -1, -1, -1, 45, 46, 47, 48, |
| 4960 |
49, 50, 51, 52, -1, -1, 55, -1, -1, -1, |
| 4961 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 4962 |
-1, 70, 71, 72, 73, 74, 75, 76, 77, -1, |
| 4963 |
-1, 80, 81, -1, -1, -1, -1, 86, 87, 88, |
| 4964 |
89, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 4965 |
-1, 100, 101, 102, -1, -1, -1, 106, -1, -1, |
| 4966 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 4967 |
-1, -1, -1, -1, -1, 124, 125, 126, 127, 128, |
| 4968 |
129, 130, 131, 132, 133, -1, 135, 136, -1, -1, |
| 4969 |
-1, -1, -1, -1, 143, 3, 4, 5, 6, 7, |
| 4970 |
8, 9, 10, 11, 12, 13, 14, 15, 16, 17, |
| 4971 |
18, 19, 20, 21, 22, 23, 24, 25, 26, -1, |
| 4972 |
-1, -1, 30, 31, 32, 33, 34, 35, 36, 37, |
| 4973 |
38, 39, -1, -1, -1, -1, -1, 45, 46, 47, |
| 4974 |
48, 49, 50, 51, 52, -1, -1, 55, -1, -1, |
| 4975 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 4976 |
-1, -1, 70, 71, 72, 73, 74, 75, 76, 77, |
| 4977 |
-1, -1, 80, 81, -1, -1, -1, -1, 86, 87, |
| 4978 |
88, 89, -1, -1, -1, -1, -1, -1, -1, -1, |
| 4979 |
-1, -1, 100, 101, 102, -1, -1, -1, -1, -1, |
| 4980 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 4981 |
-1, -1, -1, -1, -1, -1, 124, 125, 126, 127, |
| 4982 |
128, 129, 130, 131, 132, 133, -1, 135, 136, -1, |
| 4983 |
-1, -1, -1, -1, -1, 143, 3, 4, 5, 6, |
| 4984 |
7, 8, 9, 10, 11, -1, -1, -1, -1, -1, |
| 4985 |
-1, -1, 19, -1, 21, 22, 23, 24, -1, -1, |
| 4986 |
-1, -1, -1, 30, 31, 32, 33, 34, 35, 36, |
| 4987 |
-1, -1, 39, -1, -1, -1, -1, -1, -1, -1, |
| 4988 |
-1, 48, 49, 50, 51, 52, 53, 54, 55, 56, |
| 4989 |
-1, 58, 59, 60, -1, -1, 63, -1, -1, 66, |
| 4990 |
67, -1, 69, -1, -1, -1, -1, -1, -1, -1, |
| 4991 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 4992 |
-1, -1, -1, -1, 91, -1, -1, 94, 95, -1, |
| 4993 |
97, 98, -1, -1, -1, -1, -1, 104, -1, 106, |
| 4994 |
107, 108, -1, 110, 111, 112, -1, 114, -1, -1, |
| 4995 |
3, 4, 5, 6, 7, 8, 9, 10, 11, -1, |
| 4996 |
-1, -1, -1, -1, -1, -1, 19, 134, 21, 22, |
| 4997 |
23, 24, -1, -1, -1, 142, -1, 30, 31, 32, |
| 4998 |
33, 34, 35, 36, -1, -1, 39, -1, -1, -1, |
| 4999 |
-1, -1, -1, -1, -1, 48, 49, 50, 51, 52, |
| 5000 |
53, 54, 55, 56, -1, 58, 59, 60, -1, -1, |
| 5001 |
63, -1, -1, 66, 67, -1, 69, -1, -1, -1, |
| 5002 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5003 |
-1, -1, -1, -1, -1, -1, -1, -1, 91, -1, |
| 5004 |
-1, 94, 95, -1, 97, 98, -1, -1, -1, -1, |
| 5005 |
-1, 104, -1, 106, 107, 108, -1, 110, 111, 112, |
| 5006 |
-1, 114, -1, -1, 3, 4, 5, 6, 7, 8, |
| 5007 |
9, 10, 11, 12, -1, -1, -1, -1, -1, -1, |
| 5008 |
19, 134, 21, 22, 23, 24, -1, -1, -1, 142, |
| 5009 |
-1, 30, 31, 32, 33, 34, 35, 36, -1, -1, |
| 5010 |
39, -1, -1, -1, -1, -1, 45, 46, 47, 48, |
| 5011 |
49, 50, 51, 52, 53, 54, 55, 56, -1, 58, |
| 5012 |
59, 60, -1, -1, 63, -1, -1, 66, 67, -1, |
| 5013 |
69, 70, 71, -1, -1, -1, -1, -1, -1, -1, |
| 5014 |
-1, -1, -1, -1, -1, 84, 85, -1, -1, -1, |
| 5015 |
-1, -1, 91, -1, -1, 94, 95, -1, 97, 98, |
| 5016 |
-1, 100, -1, -1, -1, 104, -1, 106, 107, 108, |
| 5017 |
-1, 110, 111, 112, -1, 114, -1, -1, -1, -1, |
| 5018 |
-1, -1, 3, 4, 5, 6, 7, 8, 9, 10, |
| 5019 |
11, 12, -1, -1, -1, 134, 135, 136, 19, -1, |
| 5020 |
21, 22, 23, 24, -1, -1, -1, -1, -1, 30, |
| 5021 |
31, 32, 33, 34, 35, 36, -1, -1, 39, -1, |
| 5022 |
-1, -1, -1, -1, 45, -1, 47, 48, 49, 50, |
| 5023 |
51, 52, 53, 54, 55, 56, -1, 58, 59, 60, |
| 5024 |
-1, -1, 63, -1, -1, 66, 67, -1, 69, 70, |
| 5025 |
71, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5026 |
-1, -1, -1, 84, 85, -1, -1, -1, -1, -1, |
| 5027 |
91, -1, -1, 94, 95, -1, 97, 98, -1, 100, |
| 5028 |
-1, -1, -1, 104, -1, 106, 107, 108, -1, 110, |
| 5029 |
111, 112, -1, 114, -1, -1, -1, -1, -1, -1, |
| 5030 |
3, 4, 5, 6, 7, 8, 9, 10, 11, -1, |
| 5031 |
-1, -1, -1, 134, 135, 136, 19, -1, 21, 22, |
| 5032 |
23, 24, -1, -1, -1, -1, -1, 30, 31, 32, |
| 5033 |
33, 34, 35, 36, -1, -1, 39, -1, -1, -1, |
| 5034 |
-1, -1, -1, -1, -1, 48, 49, 50, 51, 52, |
| 5035 |
53, 54, 55, 56, -1, 58, 59, 60, -1, -1, |
| 5036 |
63, -1, -1, 66, 67, -1, 69, 70, 71, -1, |
| 5037 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5038 |
-1, 84, 85, -1, -1, -1, -1, -1, 91, -1, |
| 5039 |
-1, 94, 95, -1, 97, 98, -1, 100, -1, 102, |
| 5040 |
103, 104, -1, 106, 107, 108, -1, 110, 111, 112, |
| 5041 |
-1, 114, -1, -1, -1, -1, -1, -1, 3, 4, |
| 5042 |
5, 6, 7, 8, 9, 10, 11, -1, -1, -1, |
| 5043 |
-1, 134, 135, 136, 19, -1, 21, 22, 23, 24, |
| 5044 |
-1, -1, -1, -1, -1, 30, 31, 32, 33, 34, |
| 5045 |
35, 36, -1, -1, 39, -1, -1, -1, -1, -1, |
| 5046 |
-1, -1, -1, 48, 49, 50, 51, 52, 53, 54, |
| 5047 |
55, 56, -1, 58, 59, 60, -1, -1, 63, -1, |
| 5048 |
-1, 66, 67, -1, 69, 70, 71, -1, -1, -1, |
| 5049 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, 84, |
| 5050 |
85, -1, -1, -1, -1, -1, 91, -1, -1, 94, |
| 5051 |
95, -1, 97, 98, -1, 100, -1, 102, 103, 104, |
| 5052 |
-1, 106, 107, 108, -1, 110, 111, 112, -1, 114, |
| 5053 |
-1, -1, -1, -1, -1, -1, 3, 4, 5, 6, |
| 5054 |
7, 8, 9, 10, 11, -1, -1, -1, -1, 134, |
| 5055 |
135, 136, 19, -1, 21, 22, 23, 24, -1, -1, |
| 5056 |
-1, -1, -1, 30, 31, 32, 33, 34, 35, 36, |
| 5057 |
-1, -1, 39, -1, -1, -1, -1, -1, -1, -1, |
| 5058 |
-1, 48, 49, 50, 51, 52, 53, 54, 55, 56, |
| 5059 |
-1, 58, 59, 60, -1, -1, 63, -1, -1, 66, |
| 5060 |
67, -1, 69, 70, 71, -1, -1, -1, -1, -1, |
| 5061 |
-1, -1, -1, -1, -1, -1, -1, 84, 85, -1, |
| 5062 |
-1, -1, -1, -1, 91, -1, -1, 94, 95, -1, |
| 5063 |
97, 98, -1, 100, -1, 102, 103, 104, -1, 106, |
| 5064 |
107, 108, -1, 110, 111, 112, -1, 114, -1, -1, |
| 5065 |
-1, -1, -1, -1, 3, 4, 5, 6, 7, 8, |
| 5066 |
9, 10, 11, -1, -1, -1, -1, 134, 135, 136, |
| 5067 |
19, -1, 21, 22, 23, 24, -1, -1, -1, -1, |
| 5068 |
-1, 30, 31, 32, 33, 34, 35, 36, -1, -1, |
| 5069 |
39, -1, -1, -1, -1, -1, -1, -1, -1, 48, |
| 5070 |
49, 50, 51, 52, 53, 54, 55, 56, -1, 58, |
| 5071 |
59, 60, -1, -1, 63, -1, -1, 66, 67, -1, |
| 5072 |
69, 70, 71, -1, -1, -1, -1, -1, -1, -1, |
| 5073 |
-1, -1, -1, -1, -1, 84, 85, -1, -1, -1, |
| 5074 |
-1, -1, 91, -1, -1, 94, 95, -1, 97, 98, |
| 5075 |
-1, 100, -1, 102, 103, 104, -1, 106, 107, 108, |
| 5076 |
-1, 110, 111, 112, -1, 114, -1, -1, -1, -1, |
| 5077 |
-1, -1, 3, 4, 5, 6, 7, 8, 9, 10, |
| 5078 |
11, -1, -1, -1, -1, 134, 135, 136, 19, -1, |
| 5079 |
21, 22, 23, 24, -1, -1, -1, -1, -1, 30, |
| 5080 |
31, 32, 33, 34, 35, 36, -1, -1, 39, -1, |
| 5081 |
-1, -1, -1, -1, -1, -1, -1, 48, 49, 50, |
| 5082 |
51, 52, 53, 54, 55, 56, -1, 58, 59, 60, |
| 5083 |
-1, -1, 63, -1, -1, 66, 67, -1, 69, 70, |
| 5084 |
71, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5085 |
-1, -1, -1, 84, 85, -1, -1, -1, -1, -1, |
| 5086 |
91, -1, -1, 94, 95, -1, 97, 98, -1, 100, |
| 5087 |
-1, 102, -1, 104, -1, 106, 107, 108, -1, 110, |
| 5088 |
111, 112, -1, 114, -1, -1, -1, -1, -1, -1, |
| 5089 |
3, 4, 5, 6, 7, 8, 9, 10, 11, -1, |
| 5090 |
-1, -1, -1, 134, 135, 136, 19, -1, 21, 22, |
| 5091 |
23, 24, -1, -1, -1, -1, -1, 30, 31, 32, |
| 5092 |
33, 34, 35, 36, -1, -1, 39, -1, -1, -1, |
| 5093 |
-1, -1, -1, -1, -1, 48, 49, 50, 51, 52, |
| 5094 |
53, 54, 55, 56, -1, 58, 59, 60, -1, -1, |
| 5095 |
63, -1, -1, 66, 67, -1, 69, 70, 71, -1, |
| 5096 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5097 |
-1, 84, 85, -1, -1, -1, -1, -1, 91, -1, |
| 5098 |
-1, 94, 95, -1, 97, 98, -1, -1, -1, 102, |
| 5099 |
103, 104, -1, 106, 107, 108, -1, 110, 111, 112, |
| 5100 |
-1, 114, -1, -1, -1, -1, -1, -1, 3, 4, |
| 5101 |
5, 6, 7, 8, 9, 10, 11, -1, -1, -1, |
| 5102 |
-1, 134, 135, 136, 19, -1, 21, 22, 23, 24, |
| 5103 |
-1, -1, -1, -1, -1, 30, 31, 32, 33, 34, |
| 5104 |
35, 36, -1, -1, 39, -1, -1, -1, -1, -1, |
| 5105 |
-1, -1, -1, 48, 49, 50, 51, 52, 53, 54, |
| 5106 |
55, 56, -1, 58, 59, 60, -1, -1, 63, -1, |
| 5107 |
-1, 66, 67, -1, 69, 70, 71, -1, -1, -1, |
| 5108 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, 84, |
| 5109 |
85, -1, -1, -1, -1, -1, 91, -1, -1, 94, |
| 5110 |
95, -1, 97, 98, -1, 100, -1, 102, -1, 104, |
| 5111 |
-1, 106, 107, 108, -1, 110, 111, 112, -1, 114, |
| 5112 |
-1, -1, -1, -1, -1, -1, 3, 4, 5, 6, |
| 5113 |
7, 8, 9, 10, 11, -1, -1, -1, -1, 134, |
| 5114 |
135, 136, 19, -1, 21, 22, 23, 24, -1, -1, |
| 5115 |
-1, -1, -1, 30, 31, 32, 33, 34, 35, 36, |
| 5116 |
-1, -1, 39, -1, -1, -1, -1, -1, -1, -1, |
| 5117 |
-1, 48, 49, 50, 51, 52, 53, 54, 55, 56, |
| 5118 |
-1, 58, 59, 60, -1, -1, 63, -1, -1, 66, |
| 5119 |
67, -1, 69, 70, 71, -1, -1, -1, -1, -1, |
| 5120 |
-1, -1, -1, -1, -1, -1, -1, 84, 85, -1, |
| 5121 |
-1, -1, -1, -1, 91, -1, -1, 94, 95, -1, |
| 5122 |
97, 98, -1, -1, -1, 102, -1, 104, -1, 106, |
| 5123 |
107, 108, -1, 110, 111, 112, -1, 114, -1, -1, |
| 5124 |
-1, -1, -1, -1, 3, 4, 5, 6, 7, 8, |
| 5125 |
9, 10, 11, -1, -1, -1, -1, 134, 135, 136, |
| 5126 |
19, -1, 21, 22, 23, 24, -1, -1, -1, -1, |
| 5127 |
-1, 30, 31, 32, 33, 34, 35, 36, -1, -1, |
| 5128 |
39, -1, -1, -1, -1, -1, -1, -1, -1, 48, |
| 5129 |
49, 50, 51, 52, 53, 54, 55, 56, -1, 58, |
| 5130 |
59, 60, -1, -1, 63, -1, -1, 66, 67, -1, |
| 5131 |
69, 70, 71, -1, -1, -1, -1, -1, -1, -1, |
| 5132 |
-1, -1, -1, -1, -1, 84, 85, -1, -1, -1, |
| 5133 |
-1, -1, 91, -1, -1, 94, 95, -1, 97, 98, |
| 5134 |
-1, 100, -1, -1, -1, 104, -1, 106, 107, 108, |
| 5135 |
-1, 110, 111, 112, -1, 114, -1, -1, -1, -1, |
| 5136 |
-1, -1, 3, 4, 5, 6, 7, 8, 9, 10, |
| 5137 |
11, -1, -1, -1, -1, 134, 135, 136, 19, -1, |
| 5138 |
21, 22, 23, 24, -1, -1, -1, -1, -1, 30, |
| 5139 |
31, 32, 33, 34, 35, 36, -1, -1, 39, -1, |
| 5140 |
-1, -1, -1, -1, -1, -1, -1, 48, 49, 50, |
| 5141 |
51, 52, 53, 54, 55, 56, -1, 58, 59, 60, |
| 5142 |
-1, -1, 63, -1, -1, 66, 67, -1, 69, 70, |
| 5143 |
71, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5144 |
-1, -1, -1, 84, 85, -1, -1, -1, -1, -1, |
| 5145 |
91, -1, -1, 94, 95, -1, 97, 98, -1, 100, |
| 5146 |
-1, -1, -1, 104, -1, 106, 107, 108, -1, 110, |
| 5147 |
111, 112, -1, 114, -1, -1, -1, -1, -1, -1, |
| 5148 |
3, 4, 5, 6, 7, 8, 9, 10, 11, -1, |
| 5149 |
-1, -1, -1, 134, 135, 136, 19, -1, 21, 22, |
| 5150 |
23, 24, -1, -1, -1, -1, -1, 30, 31, 32, |
| 5151 |
33, 34, 35, 36, -1, -1, 39, -1, -1, -1, |
| 5152 |
-1, -1, -1, -1, -1, 48, 49, 50, 51, 52, |
| 5153 |
53, 54, 55, 56, -1, 58, 59, 60, -1, -1, |
| 5154 |
63, -1, -1, 66, 67, -1, 69, 70, 71, -1, |
| 5155 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5156 |
-1, 84, 85, -1, -1, -1, -1, -1, 91, -1, |
| 5157 |
-1, 94, 95, -1, 97, 98, -1, 100, -1, -1, |
| 5158 |
-1, 104, -1, 106, 107, 108, -1, 110, 111, 112, |
| 5159 |
-1, 114, -1, -1, -1, -1, -1, -1, 3, 4, |
| 5160 |
5, 6, 7, 8, 9, 10, 11, -1, -1, -1, |
| 5161 |
-1, 134, 135, 136, 19, -1, 21, 22, 23, 24, |
| 5162 |
-1, -1, -1, -1, -1, 30, 31, 32, 33, 34, |
| 5163 |
35, 36, -1, -1, 39, -1, -1, -1, -1, -1, |
| 5164 |
-1, -1, -1, 48, 49, 50, 51, 52, 53, 54, |
| 5165 |
55, 56, -1, 58, 59, 60, -1, -1, 63, -1, |
| 5166 |
-1, 66, 67, -1, 69, 70, 71, -1, -1, -1, |
| 5167 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, 84, |
| 5168 |
85, -1, -1, -1, -1, -1, 91, -1, -1, 94, |
| 5169 |
95, -1, 97, 98, -1, 100, -1, -1, -1, 104, |
| 5170 |
-1, 106, 107, 108, -1, 110, 111, 112, -1, 114, |
| 5171 |
-1, -1, -1, -1, -1, -1, 3, 4, 5, 6, |
| 5172 |
7, 8, 9, 10, 11, -1, -1, -1, -1, 134, |
| 5173 |
135, 136, 19, -1, 21, 22, 23, 24, -1, -1, |
| 5174 |
-1, -1, -1, 30, 31, 32, 33, 34, 35, 36, |
| 5175 |
-1, -1, 39, -1, -1, -1, -1, -1, -1, -1, |
| 5176 |
-1, 48, 49, 50, 51, 52, 53, 54, 55, 56, |
| 5177 |
-1, 58, 59, 60, -1, -1, 63, -1, -1, 66, |
| 5178 |
67, -1, 69, 70, 71, -1, -1, -1, -1, -1, |
| 5179 |
-1, -1, -1, -1, -1, -1, -1, 84, 85, -1, |
| 5180 |
-1, -1, -1, -1, 91, -1, -1, 94, 95, -1, |
| 5181 |
97, 98, -1, 100, -1, -1, -1, 104, -1, 106, |
| 5182 |
107, 108, -1, 110, 111, 112, -1, 114, -1, -1, |
| 5183 |
-1, -1, -1, -1, 3, 4, 5, 6, 7, 8, |
| 5184 |
9, 10, 11, -1, -1, -1, -1, 134, 135, 136, |
| 5185 |
19, -1, 21, 22, 23, 24, -1, -1, -1, -1, |
| 5186 |
-1, 30, 31, 32, 33, 34, 35, 36, -1, -1, |
| 5187 |
39, -1, -1, -1, -1, -1, -1, -1, -1, 48, |
| 5188 |
49, 50, 51, 52, 53, 54, 55, 56, -1, 58, |
| 5189 |
59, 60, -1, -1, 63, -1, -1, 66, 67, -1, |
| 5190 |
69, 70, 71, -1, -1, -1, -1, -1, -1, -1, |
| 5191 |
-1, -1, -1, -1, -1, 84, 85, -1, -1, -1, |
| 5192 |
-1, -1, 91, -1, -1, 94, 95, -1, 97, 98, |
| 5193 |
-1, -1, -1, -1, -1, 104, -1, 106, 107, 108, |
| 5194 |
-1, 110, 111, 112, -1, 114, -1, -1, -1, -1, |
| 5195 |
-1, -1, 3, 4, 5, 6, 7, 8, 9, 10, |
| 5196 |
11, -1, -1, -1, -1, 134, 135, 136, 19, -1, |
| 5197 |
21, 22, 23, 24, -1, -1, -1, -1, -1, 30, |
| 5198 |
31, 32, 33, 34, 35, 36, -1, -1, 39, -1, |
| 5199 |
-1, -1, -1, -1, -1, -1, -1, 48, 49, 50, |
| 5200 |
51, 52, 53, 54, 55, 56, -1, 58, 59, 60, |
| 5201 |
-1, -1, 63, -1, -1, 66, 67, -1, 69, 70, |
| 5202 |
71, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5203 |
-1, -1, -1, 84, 85, -1, -1, -1, -1, -1, |
| 5204 |
91, -1, -1, 94, 95, -1, 97, 98, -1, -1, |
| 5205 |
-1, -1, -1, 104, -1, 106, 107, 108, -1, 110, |
| 5206 |
111, 112, -1, 114, -1, -1, -1, -1, -1, -1, |
| 5207 |
3, 4, 5, 6, 7, 8, 9, 10, 11, -1, |
| 5208 |
-1, -1, -1, 134, 135, 136, 19, -1, 21, 22, |
| 5209 |
23, 24, -1, -1, -1, -1, -1, 30, 31, 32, |
| 5210 |
33, 34, 35, 36, -1, -1, 39, -1, -1, -1, |
| 5211 |
-1, -1, -1, -1, -1, 48, 49, 50, 51, 52, |
| 5212 |
53, 54, 55, 56, -1, 58, 59, 60, -1, -1, |
| 5213 |
63, -1, -1, 66, 67, -1, 69, 70, 71, -1, |
| 5214 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5215 |
-1, 84, 85, -1, -1, -1, -1, -1, 91, -1, |
| 5216 |
-1, 94, 95, -1, 97, 98, -1, -1, -1, -1, |
| 5217 |
-1, 104, -1, 106, 107, 108, -1, 110, 111, 112, |
| 5218 |
-1, 114, -1, -1, -1, -1, -1, -1, 3, 4, |
| 5219 |
5, 6, 7, 8, 9, 10, 11, -1, -1, -1, |
| 5220 |
-1, 134, 135, 136, 19, -1, 21, 22, 23, 24, |
| 5221 |
-1, -1, -1, -1, -1, 30, 31, 32, 33, 34, |
| 5222 |
35, 36, -1, -1, 39, -1, -1, -1, -1, -1, |
| 5223 |
-1, -1, -1, 48, 49, 50, 51, 52, 53, 54, |
| 5224 |
55, 56, -1, 58, 59, 60, -1, -1, 63, -1, |
| 5225 |
-1, 66, 67, -1, 69, -1, -1, -1, -1, -1, |
| 5226 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5227 |
-1, -1, -1, 88, -1, -1, 91, -1, -1, 94, |
| 5228 |
95, -1, 97, 98, -1, -1, -1, -1, -1, 104, |
| 5229 |
-1, 106, 107, 108, -1, 110, 111, 112, -1, 114, |
| 5230 |
-1, -1, 3, 4, 5, 6, 7, 8, 9, 10, |
| 5231 |
11, -1, -1, -1, -1, -1, -1, -1, 19, 134, |
| 5232 |
21, 22, 23, 24, -1, -1, -1, -1, -1, 30, |
| 5233 |
31, 32, 33, 34, 35, 36, -1, -1, 39, -1, |
| 5234 |
-1, -1, -1, -1, -1, -1, -1, 48, 49, 50, |
| 5235 |
51, 52, 53, 54, 55, 56, -1, 58, 59, 60, |
| 5236 |
-1, -1, 63, -1, -1, 66, 67, -1, 69, -1, |
| 5237 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5238 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5239 |
91, -1, -1, 94, 95, -1, 97, 98, -1, 100, |
| 5240 |
-1, -1, -1, 104, -1, 106, 107, 108, -1, 110, |
| 5241 |
111, 112, -1, 114, -1, -1, 3, 4, 5, 6, |
| 5242 |
7, 8, 9, 10, 11, -1, -1, -1, -1, -1, |
| 5243 |
-1, -1, 19, 134, 21, 22, 23, 24, -1, -1, |
| 5244 |
-1, -1, -1, 30, 31, 32, 33, 34, 35, 36, |
| 5245 |
-1, -1, 39, -1, -1, -1, -1, -1, -1, -1, |
| 5246 |
-1, 48, 49, 50, 51, 52, 53, 54, 55, 56, |
| 5247 |
-1, 58, 59, 60, -1, -1, 63, -1, -1, 66, |
| 5248 |
67, -1, 69, -1, -1, -1, -1, -1, -1, -1, |
| 5249 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5250 |
-1, -1, -1, -1, 91, -1, -1, 94, 95, -1, |
| 5251 |
97, 98, -1, 100, -1, -1, -1, 104, -1, 106, |
| 5252 |
107, 108, -1, 110, 111, 112, -1, 114, -1, -1, |
| 5253 |
3, 4, 5, 6, 7, 8, 9, 10, 11, -1, |
| 5254 |
-1, -1, -1, -1, -1, -1, 19, 134, 21, 22, |
| 5255 |
23, 24, -1, -1, -1, -1, -1, 30, 31, 32, |
| 5256 |
33, 34, 35, 36, -1, -1, 39, -1, -1, -1, |
| 5257 |
-1, -1, -1, -1, -1, 48, 49, 50, 51, 52, |
| 5258 |
53, 54, 55, 56, -1, 58, 59, 60, -1, -1, |
| 5259 |
63, -1, -1, 66, 67, -1, 69, -1, -1, -1, |
| 5260 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5261 |
-1, -1, -1, -1, -1, -1, -1, -1, 91, -1, |
| 5262 |
-1, 94, 95, -1, 97, 98, -1, -1, -1, -1, |
| 5263 |
-1, 104, -1, 106, 107, 108, -1, 110, 111, 112, |
| 5264 |
-1, 114, -1, -1, 3, 4, 5, 6, 7, 8, |
| 5265 |
9, 10, 11, -1, -1, -1, -1, -1, -1, -1, |
| 5266 |
19, 134, 21, 22, 23, 24, -1, -1, -1, -1, |
| 5267 |
-1, 30, 31, 32, 33, 34, 35, 36, -1, -1, |
| 5268 |
39, -1, -1, -1, -1, -1, -1, -1, -1, 48, |
| 5269 |
49, 50, 51, 52, 53, 54, 55, 56, -1, 58, |
| 5270 |
59, 60, -1, -1, 63, -1, -1, 66, 67, -1, |
| 5271 |
69, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5272 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5273 |
-1, -1, 91, -1, -1, 94, 95, -1, 97, 98, |
| 5274 |
-1, -1, -1, -1, -1, 104, -1, 106, 107, 108, |
| 5275 |
-1, 110, 111, 112, -1, 114, -1, -1, 3, 4, |
| 5276 |
5, 6, 7, 8, 9, 10, 11, -1, -1, -1, |
| 5277 |
-1, -1, -1, -1, 19, 134, 21, 22, 23, 24, |
| 5278 |
-1, -1, -1, -1, -1, 30, 31, 32, 33, 34, |
| 5279 |
35, 36, -1, -1, 39, -1, -1, -1, -1, -1, |
| 5280 |
-1, -1, -1, 48, 49, 50, 51, 52, 53, 54, |
| 5281 |
55, 56, -1, 58, 59, 60, -1, -1, 63, -1, |
| 5282 |
-1, 66, 67, -1, 69, -1, -1, -1, -1, -1, |
| 5283 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5284 |
-1, -1, -1, -1, -1, -1, 91, -1, -1, 94, |
| 5285 |
95, -1, 97, 98, -1, -1, -1, -1, -1, 104, |
| 5286 |
-1, 106, 107, 108, -1, 110, 111, 112, -1, 114, |
| 5287 |
-1, -1, 3, 4, 5, 6, 7, 8, 9, 10, |
| 5288 |
11, -1, -1, -1, -1, -1, -1, -1, 19, 134, |
| 5289 |
21, 22, 23, 24, -1, -1, -1, -1, -1, 30, |
| 5290 |
31, 32, 33, 34, 35, 36, -1, -1, 39, -1, |
| 5291 |
-1, -1, -1, -1, -1, -1, -1, 48, 49, 50, |
| 5292 |
51, 52, 53, 54, 55, 56, -1, 58, 59, 60, |
| 5293 |
-1, -1, 63, -1, -1, 66, 67, -1, 69, -1, |
| 5294 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5295 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5296 |
91, -1, -1, 94, 95, -1, 97, 98, -1, -1, |
| 5297 |
51, 52, -1, 104, 55, 106, 107, 108, -1, 110, |
| 5298 |
111, 112, -1, 114, -1, -1, -1, -1, -1, 70, |
| 5299 |
71, 72, 73, 74, 75, 76, 77, -1, -1, 80, |
| 5300 |
81, -1, -1, 134, -1, 86, 87, 88, 89, -1, |
| 5301 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, 100, |
| 5302 |
101, 102, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5303 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5304 |
-1, -1, -1, 124, 125, 126, 127, 128, 129, 130, |
| 5305 |
131, 132, 133, -1, 135, 136, 51, 52, -1, -1, |
| 5306 |
55, -1, 143, 144, -1, -1, -1, -1, -1, -1, |
| 5307 |
-1, -1, -1, -1, -1, 70, 71, 72, 73, 74, |
| 5308 |
75, 76, 77, -1, -1, 80, 81, -1, -1, -1, |
| 5309 |
-1, 86, 87, 88, 89, -1, -1, -1, -1, -1, |
| 5310 |
-1, -1, -1, -1, -1, 100, 101, 102, -1, -1, |
| 5311 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5312 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, 124, |
| 5313 |
125, 126, 127, 128, 129, 130, 131, 132, 133, -1, |
| 5314 |
135, 136, 51, 52, -1, -1, 55, -1, 143, 144, |
| 5315 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5316 |
-1, 70, 71, 72, 73, 74, 75, 76, 77, -1, |
| 5317 |
-1, 80, 81, -1, -1, -1, -1, 86, 87, 88, |
| 5318 |
89, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5319 |
-1, 100, 101, 102, -1, -1, -1, -1, -1, -1, |
| 5320 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5321 |
-1, -1, -1, -1, -1, 124, 125, 126, 127, 128, |
| 5322 |
129, 130, 131, 132, 133, -1, 135, 136, 51, 52, |
| 5323 |
-1, -1, 55, -1, 143, 144, -1, -1, -1, -1, |
| 5324 |
-1, -1, -1, -1, -1, -1, -1, 70, 71, 72, |
| 5325 |
73, 74, 75, 76, 77, -1, -1, 80, 81, -1, |
| 5326 |
-1, -1, -1, 86, 87, 88, 89, -1, -1, -1, |
| 5327 |
-1, -1, -1, -1, -1, -1, -1, 100, 101, 102, |
| 5328 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5329 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5330 |
-1, 124, 125, 126, 127, 128, 129, 130, 131, 132, |
| 5331 |
133, -1, 135, 136, 51, 52, -1, -1, 55, -1, |
| 5332 |
143, 144, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5333 |
-1, -1, -1, 70, 71, 72, 73, 74, 75, 76, |
| 5334 |
77, -1, -1, 80, 81, -1, -1, -1, -1, 86, |
| 5335 |
87, 88, 89, -1, -1, -1, -1, -1, -1, -1, |
| 5336 |
-1, -1, -1, 100, 101, 102, -1, -1, -1, -1, |
| 5337 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5338 |
-1, -1, -1, -1, -1, -1, -1, 124, 125, 126, |
| 5339 |
127, 128, 129, 130, 131, 132, 133, -1, 135, 136, |
| 5340 |
51, 52, -1, -1, 55, -1, 143, 144, -1, -1, |
| 5341 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, 70, |
| 5342 |
71, 72, 73, 74, 75, 76, 77, -1, -1, 80, |
| 5343 |
81, -1, -1, -1, -1, 86, 87, 88, 89, -1, |
| 5344 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, 100, |
| 5345 |
101, 102, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5346 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5347 |
-1, -1, -1, 124, 125, 126, 127, 128, 129, 130, |
| 5348 |
131, 132, 133, -1, 135, 136, 51, 52, -1, -1, |
| 5349 |
55, -1, 143, 144, -1, -1, -1, -1, -1, -1, |
| 5350 |
-1, -1, -1, -1, -1, 70, 71, 72, 73, 74, |
| 5351 |
75, 76, 77, -1, -1, 80, 81, -1, -1, -1, |
| 5352 |
-1, 86, 87, 88, 89, -1, -1, -1, -1, -1, |
| 5353 |
-1, -1, -1, -1, -1, 100, 101, 102, -1, -1, |
| 5354 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5355 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, 124, |
| 5356 |
125, 126, 127, 128, 129, 130, 131, 132, 133, -1, |
| 5357 |
135, 136, 51, 52, -1, -1, 55, -1, 143, 144, |
| 5358 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5359 |
-1, 70, 71, 72, 73, 74, 75, 76, 77, -1, |
| 5360 |
-1, 80, 81, -1, -1, -1, -1, 86, 87, 88, |
| 5361 |
89, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5362 |
-1, 100, 101, 102, -1, -1, -1, -1, -1, -1, |
| 5363 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5364 |
-1, -1, -1, -1, -1, 124, 125, 126, 127, 128, |
| 5365 |
129, 130, 131, 132, 133, -1, 135, 136, 51, 52, |
| 5366 |
-1, -1, 55, -1, 143, 144, -1, -1, -1, -1, |
| 5367 |
-1, -1, -1, -1, -1, -1, -1, 70, 71, 72, |
| 5368 |
73, 74, 75, 76, 77, -1, -1, 80, 81, -1, |
| 5369 |
-1, -1, -1, 86, 87, 88, 89, -1, -1, -1, |
| 5370 |
-1, -1, -1, -1, -1, -1, -1, 100, 101, 102, |
| 5371 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5372 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5373 |
-1, 124, 125, 126, 127, 128, 129, 130, 131, 132, |
| 5374 |
133, -1, 135, 136, 51, 52, -1, -1, 55, -1, |
| 5375 |
143, 144, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5376 |
-1, -1, -1, 70, 71, 72, 73, 74, 75, 76, |
| 5377 |
77, -1, -1, 80, 81, -1, -1, -1, -1, 86, |
| 5378 |
87, 88, 89, -1, -1, -1, -1, -1, -1, -1, |
| 5379 |
-1, -1, -1, 100, 101, 102, -1, -1, -1, -1, |
| 5380 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5381 |
-1, -1, -1, -1, -1, -1, -1, 124, 125, 126, |
| 5382 |
127, 128, 129, 130, 131, 132, 133, -1, 135, 136, |
| 5383 |
51, 52, -1, -1, 55, -1, 143, 144, -1, -1, |
| 5384 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, 70, |
| 5385 |
71, 72, 73, 74, 75, 76, 77, -1, -1, 80, |
| 5386 |
81, -1, -1, -1, -1, 86, 87, 88, 89, -1, |
| 5387 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, 100, |
| 5388 |
101, 102, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5389 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5390 |
-1, -1, -1, 124, 125, 126, 127, 128, 129, 130, |
| 5391 |
131, 132, 133, -1, 135, 136, 51, 52, -1, -1, |
| 5392 |
55, -1, 143, 144, -1, -1, -1, -1, -1, -1, |
| 5393 |
-1, -1, -1, -1, -1, 70, 71, 72, 73, 74, |
| 5394 |
75, 76, 77, -1, -1, 80, 81, -1, -1, -1, |
| 5395 |
-1, 86, 87, 88, 89, -1, -1, -1, -1, -1, |
| 5396 |
-1, -1, -1, -1, -1, 100, 101, 102, -1, -1, |
| 5397 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5398 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, 124, |
| 5399 |
125, 126, 127, 128, 129, 130, 131, 132, 133, -1, |
| 5400 |
135, 136, 51, 52, -1, -1, 55, -1, 143, 144, |
| 5401 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5402 |
-1, 70, 71, 72, 73, 74, 75, 76, 77, -1, |
| 5403 |
-1, 80, 81, -1, -1, -1, -1, 86, 87, 88, |
| 5404 |
89, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5405 |
-1, 100, 101, 102, -1, -1, -1, -1, -1, -1, |
| 5406 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5407 |
-1, -1, -1, -1, -1, 124, 125, 126, 127, 128, |
| 5408 |
129, 130, 131, 132, 133, -1, 135, 136, 51, 52, |
| 5409 |
-1, -1, 55, -1, 143, 144, -1, -1, -1, -1, |
| 5410 |
-1, -1, -1, -1, -1, -1, -1, 70, 71, 72, |
| 5411 |
73, 74, 75, 76, 77, -1, -1, 80, 81, -1, |
| 5412 |
-1, -1, -1, 86, 87, 88, 89, -1, -1, -1, |
| 5413 |
-1, -1, -1, -1, -1, -1, -1, 100, 101, 102, |
| 5414 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5415 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5416 |
-1, 124, 125, 126, 127, 128, 129, 130, 131, 132, |
| 5417 |
133, -1, 135, 136, 51, 52, -1, -1, 55, -1, |
| 5418 |
143, 144, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5419 |
-1, -1, -1, 70, 71, 72, 73, 74, 75, 76, |
| 5420 |
77, -1, -1, 80, 81, -1, -1, -1, -1, 86, |
| 5421 |
87, 88, 89, -1, -1, -1, -1, -1, -1, -1, |
| 5422 |
-1, -1, -1, 100, 101, 102, -1, -1, -1, -1, |
| 5423 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, 44, |
| 5424 |
-1, -1, -1, -1, -1, -1, -1, 124, 125, 126, |
| 5425 |
127, 128, 129, 130, 131, 132, 133, -1, 135, 136, |
| 5426 |
-1, -1, -1, -1, -1, -1, 143, 72, 73, 74, |
| 5427 |
75, 76, 77, 78, 79, 80, 81, 82, 83, -1, |
| 5428 |
-1, -1, -1, 88, 89, -1, -1, -1, -1, -1, |
| 5429 |
-1, -1, -1, -1, -1, -1, 101, -1, -1, -1, |
| 5430 |
-1, 44, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5431 |
-1, -1, -1, -1, -1, -1, -1, 122, -1, 124, |
| 5432 |
125, 126, 127, 128, 129, 130, 131, 132, 133, 72, |
| 5433 |
73, 74, 75, 76, 77, 78, 79, 80, 81, 82, |
| 5434 |
83, -1, -1, -1, -1, 88, 89, -1, -1, -1, |
| 5435 |
-1, -1, -1, -1, -1, -1, -1, -1, 101, -1, |
| 5436 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5437 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, 122, |
| 5438 |
-1, 124, 125, 126, 127, 128, 129, 130, 131, 132, |
| 5439 |
133, 72, 73, 74, 75, 76, 77, 78, 79, 80, |
| 5440 |
81, 82, 83, -1, -1, -1, -1, 88, 89, -1, |
| 5441 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5442 |
101, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5443 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5444 |
-1, 122, -1, 124, 125, 126, 127, 128, 129, 130, |
| 5445 |
131, 132, 133, -1, -1, -1, -1, -1, -1, -1, |
| 5446 |
-1, 142, 72, 73, 74, 75, 76, 77, 78, 79, |
| 5447 |
80, 81, 82, 83, -1, -1, -1, -1, 88, 89, |
| 5448 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5449 |
-1, 101, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5450 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5451 |
-1, -1, 122, -1, 124, 125, 126, 127, 128, 129, |
| 5452 |
130, 131, 132, 133, -1, -1, -1, -1, -1, -1, |
| 5453 |
-1, -1, 142, 72, 73, 74, 75, 76, 77, 78, |
| 5454 |
79, 80, 81, 82, 83, -1, -1, -1, -1, 88, |
| 5455 |
89, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5456 |
-1, -1, 101, -1, -1, -1, -1, -1, -1, -1, |
| 5457 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5458 |
-1, -1, -1, 122, -1, 124, 125, 126, 127, 128, |
| 5459 |
129, 130, 131, 132, 133, -1, -1, -1, -1, -1, |
| 5460 |
-1, -1, -1, 142, 72, 73, 74, 75, 76, 77, |
| 5461 |
78, 79, 80, 81, 82, 83, -1, -1, -1, -1, |
| 5462 |
88, 89, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5463 |
-1, -1, -1, 101, -1, -1, -1, -1, -1, -1, |
| 5464 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5465 |
-1, -1, -1, -1, 122, -1, 124, 125, 126, 127, |
| 5466 |
128, 129, 130, 131, 132, 133, -1, -1, -1, -1, |
| 5467 |
-1, -1, -1, -1, 142, 72, 73, 74, 75, 76, |
| 5468 |
77, 78, 79, 80, 81, 82, 83, -1, -1, -1, |
| 5469 |
-1, 88, 89, -1, -1, -1, 93, -1, -1, -1, |
| 5470 |
-1, -1, -1, -1, 101, -1, -1, -1, -1, -1, |
| 5471 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5472 |
-1, -1, -1, -1, -1, 122, -1, 124, 125, 126, |
| 5473 |
127, 128, 129, 130, 131, 132, 133, 72, 73, 74, |
| 5474 |
75, 76, 77, 78, 79, 80, 81, 82, 83, -1, |
| 5475 |
-1, -1, -1, 88, 89, -1, -1, -1, 93, -1, |
| 5476 |
-1, -1, -1, -1, -1, -1, 101, -1, -1, -1, |
| 5477 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5478 |
-1, -1, -1, -1, -1, -1, -1, 122, -1, 124, |
| 5479 |
125, 126, 127, 128, 129, 130, 131, 132, 133, 72, |
| 5480 |
73, 74, 75, 76, 77, 78, 79, 80, 81, 82, |
| 5481 |
83, -1, -1, -1, -1, 88, 89, -1, -1, -1, |
| 5482 |
-1, -1, -1, -1, -1, -1, -1, -1, 101, -1, |
| 5483 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5484 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, 122, |
| 5485 |
-1, 124, 125, 126, 127, 128, 129, 130, 131, 132, |
| 5486 |
133, 72, 73, 74, 75, 76, 77, 78, 79, 80, |
| 5487 |
81, 82, 83, -1, -1, -1, -1, 88, 89, -1, |
| 5488 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5489 |
101, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5490 |
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 5491 |
-1, -1, -1, 124, 125, 126, 127, 128, 129, 130, |
| 5492 |
131, 132, 133 |
| 5493 |
}; |
| 5494 |
|
| 5495 |
/* YYSTOS[STATE-NUM] -- The symbol kind of the accessing symbol of |
| 5496 |
state STATE-NUM. */ |
| 5497 |
static const yytype_int16 yystos[] = |
| 5498 |
{ |
| 5499 |
0, 150, 151, 0, 1, 3, 4, 5, 6, 7, |
| 5500 |
8, 9, 10, 11, 12, 19, 21, 22, 23, 24, |
| 5501 |
30, 31, 32, 33, 34, 35, 36, 39, 45, 46, |
| 5502 |
47, 48, 49, 50, 51, 52, 53, 54, 55, 56, |
| 5503 |
58, 59, 60, 63, 66, 67, 69, 70, 71, 84, |
| 5504 |
85, 91, 94, 95, 97, 98, 100, 104, 106, 107, |
| 5505 |
108, 110, 111, 112, 114, 134, 135, 136, 152, 153, |
| 5506 |
154, 159, 161, 163, 164, 165, 168, 169, 172, 173, |
| 5507 |
175, 176, 177, 179, 180, 189, 203, 220, 241, 242, |
| 5508 |
252, 253, 254, 258, 259, 260, 266, 267, 268, 270, |
| 5509 |
271, 272, 273, 274, 275, 311, 324, 154, 21, 22, |
| 5510 |
30, 31, 32, 39, 51, 55, 69, 88, 91, 94, |
| 5511 |
134, 164, 165, 181, 182, 203, 220, 272, 275, 311, |
| 5512 |
182, 3, 4, 5, 6, 7, 8, 9, 10, 11, |
| 5513 |
12, 13, 14, 15, 16, 17, 18, 19, 20, 21, |
| 5514 |
22, 23, 24, 25, 26, 30, 31, 32, 33, 34, |
| 5515 |
35, 36, 37, 38, 39, 45, 46, 47, 48, 49, |
| 5516 |
50, 51, 52, 55, 70, 71, 72, 73, 74, 75, |
| 5517 |
76, 77, 80, 81, 86, 87, 88, 89, 100, 101, |
| 5518 |
102, 124, 125, 126, 127, 128, 129, 130, 131, 132, |
| 5519 |
133, 135, 136, 143, 144, 183, 187, 188, 274, 306, |
| 5520 |
204, 91, 163, 164, 165, 167, 180, 189, 220, 272, |
| 5521 |
273, 275, 167, 210, 212, 69, 91, 173, 180, 220, |
| 5522 |
225, 272, 275, 33, 34, 35, 36, 48, 49, 50, |
| 5523 |
51, 55, 106, 183, 184, 185, 268, 115, 118, 119, |
| 5524 |
146, 148, 167, 262, 263, 264, 317, 321, 322, 323, |
| 5525 |
51, 69, 100, 102, 103, 135, 172, 189, 195, 198, |
| 5526 |
201, 254, 309, 310, 195, 195, 144, 192, 193, 196, |
| 5527 |
197, 324, 192, 196, 144, 318, 184, 155, 138, 189, |
| 5528 |
220, 189, 189, 189, 55, 1, 94, 157, 158, 159, |
| 5529 |
174, 175, 324, 205, 207, 190, 201, 309, 324, 189, |
| 5530 |
308, 309, 324, 91, 142, 179, 220, 272, 275, 208, |
| 5531 |
53, 54, 56, 63, 107, 183, 269, 63, 64, 65, |
| 5532 |
116, 117, 255, 256, 61, 255, 62, 255, 63, 255, |
| 5533 |
63, 255, 58, 59, 168, 189, 189, 317, 323, 40, |
| 5534 |
41, 42, 43, 44, 37, 38, 51, 53, 54, 55, |
| 5535 |
56, 69, 83, 94, 100, 101, 102, 103, 128, 131, |
| 5536 |
144, 278, 279, 280, 281, 282, 285, 286, 287, 288, |
| 5537 |
290, 291, 292, 293, 295, 296, 297, 300, 301, 302, |
| 5538 |
303, 304, 324, 278, 280, 28, 239, 121, 142, 94, |
| 5539 |
100, 176, 121, 72, 73, 74, 75, 76, 77, 78, |
| 5540 |
79, 80, 81, 82, 83, 88, 89, 93, 101, 122, |
| 5541 |
124, 125, 126, 127, 128, 129, 130, 131, 132, 133, |
| 5542 |
90, 105, 140, 147, 315, 90, 315, 316, 26, 138, |
| 5543 |
243, 254, 92, 92, 192, 196, 243, 163, 51, 55, |
| 5544 |
181, 58, 59, 279, 125, 276, 90, 140, 315, 219, |
| 5545 |
307, 90, 147, 314, 156, 157, 55, 278, 278, 16, |
| 5546 |
221, 321, 121, 90, 140, 315, 92, 92, 221, 167, |
| 5547 |
167, 55, 90, 140, 315, 25, 107, 142, 265, 317, |
| 5548 |
115, 264, 20, 246, 321, 57, 57, 189, 189, 189, |
| 5549 |
93, 142, 199, 200, 324, 57, 199, 200, 85, 194, |
| 5550 |
195, 201, 309, 324, 195, 163, 317, 319, 163, 322, |
| 5551 |
160, 138, 157, 90, 315, 92, 159, 174, 145, 317, |
| 5552 |
323, 319, 159, 319, 141, 200, 320, 323, 200, 320, |
| 5553 |
139, 320, 55, 176, 177, 178, 142, 90, 140, 315, |
| 5554 |
144, 237, 290, 295, 63, 255, 257, 261, 262, 63, |
| 5555 |
256, 61, 62, 63, 63, 101, 101, 154, 167, 167, |
| 5556 |
167, 167, 159, 163, 163, 57, 121, 57, 321, 294, |
| 5557 |
85, 290, 295, 121, 156, 189, 142, 305, 324, 51, |
| 5558 |
142, 305, 321, 142, 289, 189, 142, 289, 51, 142, |
| 5559 |
289, 51, 121, 156, 240, 100, 168, 189, 201, 202, |
| 5560 |
174, 142, 179, 142, 161, 162, 168, 180, 189, 191, |
| 5561 |
202, 220, 275, 189, 189, 189, 189, 189, 189, 189, |
| 5562 |
189, 189, 189, 189, 189, 189, 189, 51, 189, 189, |
| 5563 |
189, 189, 189, 189, 189, 189, 189, 189, 189, 189, |
| 5564 |
51, 52, 55, 187, 192, 312, 313, 194, 201, 51, |
| 5565 |
52, 55, 187, 192, 312, 51, 55, 312, 245, 244, |
| 5566 |
162, 189, 191, 162, 191, 99, 170, 217, 277, 216, |
| 5567 |
51, 55, 181, 312, 194, 312, 156, 163, 166, 15, |
| 5568 |
13, 248, 324, 121, 121, 157, 16, 51, 55, 194, |
| 5569 |
51, 55, 157, 27, 222, 321, 222, 51, 55, 194, |
| 5570 |
51, 55, 214, 186, 157, 246, 189, 201, 15, 189, |
| 5571 |
189, 189, 318, 100, 189, 198, 309, 189, 310, 319, |
| 5572 |
145, 317, 200, 200, 319, 145, 184, 152, 139, 191, |
| 5573 |
319, 159, 206, 309, 176, 178, 51, 55, 194, 51, |
| 5574 |
55, 290, 209, 142, 63, 157, 262, 189, 189, 51, |
| 5575 |
69, 100, 226, 295, 319, 319, 142, 172, 189, 15, |
| 5576 |
51, 69, 282, 287, 304, 85, 288, 293, 300, 302, |
| 5577 |
295, 297, 302, 51, 295, 172, 189, 15, 79, 126, |
| 5578 |
231, 232, 324, 189, 200, 319, 178, 142, 44, 121, |
| 5579 |
44, 90, 140, 315, 318, 92, 92, 192, 196, 141, |
| 5580 |
200, 92, 92, 193, 196, 193, 196, 231, 231, 171, |
| 5581 |
321, 167, 156, 141, 15, 319, 183, 189, 202, 249, |
| 5582 |
324, 18, 224, 324, 17, 223, 224, 92, 92, 141, |
| 5583 |
92, 92, 224, 211, 213, 141, 167, 184, 139, 15, |
| 5584 |
200, 221, 189, 199, 85, 309, 139, 319, 320, 141, |
| 5585 |
234, 318, 29, 113, 238, 139, 142, 292, 319, 142, |
| 5586 |
85, 44, 44, 305, 321, 142, 289, 142, 289, 142, |
| 5587 |
289, 142, 289, 289, 44, 44, 228, 230, 233, 281, |
| 5588 |
283, 284, 287, 295, 296, 298, 299, 302, 304, 156, |
| 5589 |
100, 189, 178, 159, 189, 51, 55, 194, 51, 55, |
| 5590 |
57, 123, 162, 191, 168, 191, 170, 92, 162, 191, |
| 5591 |
162, 191, 170, 243, 239, 156, 157, 231, 218, 321, |
| 5592 |
15, 93, 250, 324, 157, 14, 251, 324, 167, 15, |
| 5593 |
92, 15, 157, 157, 222, 189, 157, 319, 200, 145, |
| 5594 |
146, 156, 157, 227, 142, 100, 319, 189, 189, 295, |
| 5595 |
302, 295, 295, 189, 189, 234, 234, 91, 220, 142, |
| 5596 |
305, 305, 142, 229, 220, 142, 229, 142, 229, 15, |
| 5597 |
189, 141, 189, 189, 162, 191, 15, 139, 157, 156, |
| 5598 |
91, 180, 220, 272, 275, 221, 157, 221, 15, 15, |
| 5599 |
215, 224, 246, 247, 51, 235, 236, 291, 15, 139, |
| 5600 |
295, 295, 142, 292, 289, 142, 289, 289, 289, 126, |
| 5601 |
126, 55, 90, 283, 287, 142, 228, 229, 299, 302, |
| 5602 |
295, 298, 302, 295, 139, 15, 55, 90, 140, 315, |
| 5603 |
157, 157, 157, 142, 318, 142, 295, 142, 295, 51, |
| 5604 |
55, 305, 142, 229, 142, 229, 142, 229, 142, 229, |
| 5605 |
229, 51, 55, 194, 51, 55, 248, 223, 15, 236, |
| 5606 |
295, 289, 295, 302, 295, 295, 141, 229, 142, 229, |
| 5607 |
229, 229, 295, 229 |
| 5608 |
}; |
| 5609 |
|
| 5610 |
/* YYR1[RULE-NUM] -- Symbol kind of the left-hand side of rule RULE-NUM. */ |
| 5611 |
static const yytype_int16 yyr1[] = |
| 5612 |
{ |
| 5613 |
0, 149, 151, 150, 152, 153, 153, 153, 153, 154, |
| 5614 |
155, 154, 156, 157, 158, 158, 158, 158, 160, 159, |
| 5615 |
159, 159, 159, 159, 159, 159, 159, 159, 159, 159, |
| 5616 |
159, 159, 159, 159, 161, 161, 161, 161, 161, 161, |
| 5617 |
161, 161, 161, 161, 161, 161, 162, 162, 162, 163, |
| 5618 |
163, 163, 163, 163, 163, 164, 166, 165, 167, 168, |
| 5619 |
168, 169, 169, 171, 170, 172, 172, 172, 172, 172, |
| 5620 |
172, 172, 172, 172, 172, 172, 173, 173, 174, 174, |
| 5621 |
175, 175, 175, 175, 175, 175, 175, 175, 175, 175, |
| 5622 |
176, 176, 177, 177, 178, 178, 179, 179, 179, 179, |
| 5623 |
179, 179, 179, 179, 180, 180, 180, 180, 180, 180, |
| 5624 |
180, 180, 180, 181, 181, 182, 182, 182, 183, 183, |
| 5625 |
183, 183, 183, 184, 184, 185, 186, 185, 187, 187, |
| 5626 |
187, 187, 187, 187, 187, 187, 187, 187, 187, 187, |
| 5627 |
187, 187, 187, 187, 187, 187, 187, 187, 187, 187, |
| 5628 |
187, 187, 187, 187, 187, 187, 187, 187, 188, 188, |
| 5629 |
188, 188, 188, 188, 188, 188, 188, 188, 188, 188, |
| 5630 |
188, 188, 188, 188, 188, 188, 188, 188, 188, 188, |
| 5631 |
188, 188, 188, 188, 188, 188, 188, 188, 188, 188, |
| 5632 |
188, 188, 188, 188, 188, 188, 188, 188, 189, 189, |
| 5633 |
189, 189, 189, 189, 189, 189, 189, 189, 189, 189, |
| 5634 |
189, 189, 189, 189, 189, 189, 189, 189, 189, 189, |
| 5635 |
189, 189, 189, 189, 189, 189, 189, 189, 189, 189, |
| 5636 |
189, 189, 189, 189, 189, 189, 189, 189, 189, 189, |
| 5637 |
189, 189, 189, 189, 189, 189, 189, 189, 189, 190, |
| 5638 |
190, 190, 190, 191, 191, 192, 192, 192, 193, 193, |
| 5639 |
194, 194, 194, 194, 194, 195, 195, 195, 195, 195, |
| 5640 |
197, 196, 198, 198, 199, 199, 200, 201, 201, 201, |
| 5641 |
201, 201, 201, 202, 202, 202, 203, 203, 203, 203, |
| 5642 |
203, 203, 203, 203, 203, 204, 203, 205, 206, 203, |
| 5643 |
207, 203, 203, 203, 203, 203, 203, 203, 203, 203, |
| 5644 |
203, 203, 203, 203, 208, 209, 203, 203, 203, 210, |
| 5645 |
211, 203, 212, 213, 203, 203, 203, 214, 215, 203, |
| 5646 |
216, 203, 217, 218, 203, 219, 203, 203, 203, 203, |
| 5647 |
203, 203, 203, 220, 221, 221, 221, 222, 222, 223, |
| 5648 |
223, 224, 224, 225, 225, 226, 226, 226, 226, 226, |
| 5649 |
226, 226, 226, 227, 226, 228, 228, 228, 228, 229, |
| 5650 |
229, 230, 230, 230, 230, 230, 230, 230, 230, 230, |
| 5651 |
230, 230, 230, 230, 230, 230, 231, 231, 233, 232, |
| 5652 |
232, 232, 234, 234, 235, 235, 236, 236, 237, 237, |
| 5653 |
238, 238, 240, 239, 241, 241, 241, 241, 242, 242, |
| 5654 |
242, 242, 242, 242, 242, 242, 242, 244, 243, 245, |
| 5655 |
243, 246, 247, 247, 248, 248, 249, 249, 249, 250, |
| 5656 |
250, 251, 251, 252, 252, 252, 252, 253, 253, 254, |
| 5657 |
254, 254, 254, 255, 255, 256, 257, 256, 256, 256, |
| 5658 |
258, 258, 259, 259, 260, 261, 261, 262, 262, 263, |
| 5659 |
263, 264, 265, 264, 266, 266, 267, 267, 268, 269, |
| 5660 |
269, 269, 269, 269, 269, 270, 270, 271, 271, 271, |
| 5661 |
271, 272, 272, 272, 272, 272, 273, 273, 274, 274, |
| 5662 |
274, 274, 274, 274, 274, 274, 275, 275, 276, 277, |
| 5663 |
276, 278, 278, 279, 279, 279, 280, 280, 280, 280, |
| 5664 |
281, 281, 282, 282, 283, 283, 284, 284, 285, 285, |
| 5665 |
286, 286, 287, 287, 288, 288, 288, 288, 289, 289, |
| 5666 |
290, 290, 290, 290, 290, 290, 290, 290, 290, 290, |
| 5667 |
290, 290, 290, 290, 290, 291, 291, 291, 291, 291, |
| 5668 |
292, 292, 293, 294, 293, 295, 295, 296, 297, 298, |
| 5669 |
299, 299, 300, 300, 301, 301, 302, 302, 303, 303, |
| 5670 |
304, 304, 305, 305, 306, 307, 306, 308, 308, 309, |
| 5671 |
309, 310, 310, 310, 310, 310, 310, 310, 310, 311, |
| 5672 |
311, 311, 312, 312, 312, 312, 313, 313, 313, 314, |
| 5673 |
314, 315, 315, 316, 316, 317, 317, 318, 318, 319, |
| 5674 |
320, 320, 320, 321, 321, 322, 322, 323, 323, 324 |
| 5675 |
}; |
| 5676 |
|
| 5677 |
/* YYR2[RULE-NUM] -- Number of symbols on the right-hand side of rule RULE-NUM. */ |
| 5678 |
static const yytype_int8 yyr2[] = |
| 5679 |
{ |
| 5680 |
0, 2, 0, 2, 2, 1, 1, 3, 2, 1, |
| 5681 |
0, 5, 4, 2, 1, 1, 3, 2, 0, 4, |
| 5682 |
2, 3, 3, 3, 3, 3, 4, 1, 3, 3, |
| 5683 |
3, 3, 3, 1, 3, 3, 6, 5, 5, 5, |
| 5684 |
5, 4, 6, 4, 6, 3, 1, 3, 1, 1, |
| 5685 |
3, 3, 3, 2, 1, 2, 0, 5, 1, 1, |
| 5686 |
1, 1, 4, 0, 5, 2, 3, 4, 5, 4, |
| 5687 |
5, 2, 2, 2, 2, 2, 1, 3, 1, 3, |
| 5688 |
1, 2, 3, 5, 2, 4, 2, 4, 1, 3, |
| 5689 |
1, 3, 2, 3, 1, 2, 1, 4, 3, 3, |
| 5690 |
3, 3, 2, 1, 1, 4, 3, 3, 3, 3, |
| 5691 |
2, 1, 1, 1, 1, 2, 1, 3, 1, 1, |
| 5692 |
1, 1, 1, 1, 1, 1, 0, 4, 1, 1, |
| 5693 |
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 5694 |
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 5695 |
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 5696 |
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 5697 |
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 5698 |
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 5699 |
1, 1, 1, 1, 1, 1, 1, 1, 3, 3, |
| 5700 |
6, 5, 5, 5, 5, 4, 3, 3, 2, 2, |
| 5701 |
3, 2, 2, 3, 3, 3, 3, 3, 3, 4, |
| 5702 |
4, 2, 2, 3, 3, 3, 3, 3, 3, 3, |
| 5703 |
3, 3, 3, 3, 3, 3, 2, 2, 3, 3, |
| 5704 |
3, 3, 6, 6, 4, 6, 4, 6, 1, 1, |
| 5705 |
2, 4, 2, 1, 3, 3, 5, 3, 1, 1, |
| 5706 |
1, 2, 2, 4, 2, 1, 2, 2, 4, 1, |
| 5707 |
0, 2, 2, 1, 2, 1, 2, 1, 1, 2, |
| 5708 |
3, 3, 4, 3, 4, 2, 1, 1, 1, 1, |
| 5709 |
1, 1, 1, 1, 1, 0, 4, 0, 0, 5, |
| 5710 |
0, 3, 3, 3, 2, 3, 3, 1, 2, 4, |
| 5711 |
3, 2, 1, 2, 0, 0, 5, 6, 6, 0, |
| 5712 |
0, 7, 0, 0, 7, 5, 4, 0, 0, 9, |
| 5713 |
0, 6, 0, 0, 8, 0, 5, 4, 4, 1, |
| 5714 |
1, 1, 1, 1, 1, 1, 2, 1, 1, 1, |
| 5715 |
5, 1, 2, 1, 1, 1, 4, 6, 3, 5, |
| 5716 |
2, 4, 1, 0, 4, 4, 2, 2, 1, 2, |
| 5717 |
0, 6, 8, 4, 6, 4, 3, 6, 2, 4, |
| 5718 |
6, 2, 4, 2, 4, 1, 1, 1, 0, 4, |
| 5719 |
1, 4, 1, 4, 1, 3, 1, 1, 4, 1, |
| 5720 |
3, 3, 0, 5, 2, 4, 5, 5, 2, 4, |
| 5721 |
4, 3, 3, 3, 2, 1, 4, 0, 5, 0, |
| 5722 |
5, 5, 1, 1, 6, 1, 1, 1, 1, 2, |
| 5723 |
1, 2, 1, 1, 1, 1, 1, 1, 2, 1, |
| 5724 |
1, 2, 3, 1, 2, 1, 0, 4, 1, 2, |
| 5725 |
2, 3, 2, 3, 1, 1, 2, 1, 2, 1, |
| 5726 |
2, 1, 0, 4, 2, 3, 1, 4, 2, 1, |
| 5727 |
1, 1, 1, 1, 2, 2, 3, 1, 1, 2, |
| 5728 |
2, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 5729 |
1, 1, 1, 1, 1, 1, 1, 1, 0, 0, |
| 5730 |
4, 1, 1, 3, 5, 3, 1, 2, 4, 2, |
| 5731 |
2, 2, 2, 1, 2, 1, 1, 3, 1, 3, |
| 5732 |
1, 1, 2, 1, 4, 2, 2, 1, 2, 0, |
| 5733 |
6, 8, 4, 6, 4, 6, 2, 4, 6, 2, |
| 5734 |
4, 2, 4, 1, 0, 1, 1, 1, 1, 1, |
| 5735 |
1, 1, 1, 0, 4, 1, 3, 2, 2, 2, |
| 5736 |
1, 3, 1, 3, 1, 1, 2, 1, 1, 1, |
| 5737 |
2, 1, 2, 1, 1, 0, 4, 1, 2, 1, |
| 5738 |
3, 3, 3, 2, 2, 3, 3, 2, 1, 1, |
| 5739 |
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 5740 |
1, 1, 1, 1, 1, 0, 1, 0, 2, 2, |
| 5741 |
0, 1, 1, 1, 1, 1, 1, 1, 2, 0 |
| 5742 |
}; |
| 5743 |
|
| 5744 |
|
| 5745 |
enum { YYENOMEM = -2 }; |
| 5746 |
|
| 5747 |
#define yyerrok (yyerrstatus = 0) |
| 5748 |
#define yyclearin (yychar = YYEMPTY) |
| 5749 |
|
| 5750 |
#define YYACCEPT goto yyacceptlab |
| 5751 |
#define YYABORT goto yyabortlab |
| 5752 |
#define YYERROR goto yyerrorlab |
| 5753 |
#define YYNOMEM goto yyexhaustedlab |
| 5754 |
|
| 5755 |
|
| 5756 |
#define YYRECOVERING() (!!yyerrstatus) |
| 5757 |
|
| 5758 |
#define YYBACKUP(Token, Value) \ |
| 5759 |
do \ |
| 5760 |
if (yychar == YYEMPTY) \ |
| 5761 |
{ \ |
| 5762 |
yychar = (Token); \ |
| 5763 |
yylval = (Value); \ |
| 5764 |
YYPOPSTACK (yylen); \ |
| 5765 |
yystate = *yyssp; \ |
| 5766 |
goto yybackup; \ |
| 5767 |
} \ |
| 5768 |
else \ |
| 5769 |
{ \ |
| 5770 |
yyerror (p, YY_("syntax error: cannot back up")); \ |
| 5771 |
YYERROR; \ |
| 5772 |
} \ |
| 5773 |
while (0) |
| 5774 |
|
| 5775 |
/* Backward compatibility with an undocumented macro. |
| 5776 |
Use YYerror or YYUNDEF. */ |
| 5777 |
#define YYERRCODE YYUNDEF |
| 5778 |
|
| 5779 |
|
| 5780 |
/* Enable debugging if requested. */ |
| 5781 |
#if YYDEBUG |
| 5782 |
|
| 5783 |
# ifndef YYFPRINTF |
| 5784 |
# include <stdio.h> /* INFRINGES ON USER NAME SPACE */ |
| 5785 |
# define YYFPRINTF fprintf |
| 5786 |
# endif |
| 5787 |
|
| 5788 |
# define YYDPRINTF(Args) \ |
| 5789 |
do { \ |
| 5790 |
if (yydebug) \ |
| 5791 |
YYFPRINTF Args; \ |
| 5792 |
} while (0) |
| 5793 |
|
| 5794 |
|
| 5795 |
|
| 5796 |
|
| 5797 |
# define YY_SYMBOL_PRINT(Title, Kind, Value, Location) \ |
| 5798 |
do { \ |
| 5799 |
if (yydebug) \ |
| 5800 |
{ \ |
| 5801 |
YYFPRINTF (stderr, "%s ", Title); \ |
| 5802 |
yy_symbol_print (stderr, \ |
| 5803 |
Kind, Value, p); \ |
| 5804 |
YYFPRINTF (stderr, "\n"); \ |
| 5805 |
} \ |
| 5806 |
} while (0) |
| 5807 |
|
| 5808 |
|
| 5809 |
/*-----------------------------------. |
| 5810 |
| Print this symbol's value on YYO. | |
| 5811 |
`-----------------------------------*/ |
| 5812 |
|
| 5813 |
static void |
| 5814 |
yy_symbol_value_print (FILE *yyo, |
| 5815 |
yysymbol_kind_t yykind, YYSTYPE const * const yyvaluep, parser_state *p) |
| 5816 |
{ |
| 5817 |
FILE *yyoutput = yyo; |
| 5818 |
YY_USE (yyoutput); |
| 5819 |
YY_USE (p); |
| 5820 |
if (!yyvaluep) |
| 5821 |
return; |
| 5822 |
YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
| 5823 |
YY_USE (yykind); |
| 5824 |
YY_IGNORE_MAYBE_UNINITIALIZED_END |
| 5825 |
} |
| 5826 |
|
| 5827 |
|
| 5828 |
/*---------------------------. |
| 5829 |
| Print this symbol on YYO. | |
| 5830 |
`---------------------------*/ |
| 5831 |
|
| 5832 |
static void |
| 5833 |
yy_symbol_print (FILE *yyo, |
| 5834 |
yysymbol_kind_t yykind, YYSTYPE const * const yyvaluep, parser_state *p) |
| 5835 |
{ |
| 5836 |
YYFPRINTF (yyo, "%s %s (", |
| 5837 |
yykind < YYNTOKENS ? "token" : "nterm", yysymbol_name (yykind)); |
| 5838 |
|
| 5839 |
yy_symbol_value_print (yyo, yykind, yyvaluep, p); |
| 5840 |
YYFPRINTF (yyo, ")"); |
| 5841 |
} |
| 5842 |
|
| 5843 |
/*------------------------------------------------------------------. |
| 5844 |
| yy_stack_print -- Print the state stack from its BOTTOM up to its | |
| 5845 |
| TOP (included). | |
| 5846 |
`------------------------------------------------------------------*/ |
| 5847 |
|
| 5848 |
static void |
| 5849 |
yy_stack_print (yy_state_t *yybottom, yy_state_t *yytop) |
| 5850 |
{ |
| 5851 |
YYFPRINTF (stderr, "Stack now"); |
| 5852 |
for (; yybottom <= yytop; yybottom++) |
| 5853 |
{ |
| 5854 |
int yybot = *yybottom; |
| 5855 |
YYFPRINTF (stderr, " %d", yybot); |
| 5856 |
} |
| 5857 |
YYFPRINTF (stderr, "\n"); |
| 5858 |
} |
| 5859 |
|
| 5860 |
# define YY_STACK_PRINT(Bottom, Top) \ |
| 5861 |
do { \ |
| 5862 |
if (yydebug) \ |
| 5863 |
yy_stack_print ((Bottom), (Top)); \ |
| 5864 |
} while (0) |
| 5865 |
|
| 5866 |
|
| 5867 |
/*------------------------------------------------. |
| 5868 |
| Report that the YYRULE is going to be reduced. | |
| 5869 |
`------------------------------------------------*/ |
| 5870 |
|
| 5871 |
static void |
| 5872 |
yy_reduce_print (yy_state_t *yyssp, YYSTYPE *yyvsp, |
| 5873 |
int yyrule, parser_state *p) |
| 5874 |
{ |
| 5875 |
int yylno = yyrline[yyrule]; |
| 5876 |
int yynrhs = yyr2[yyrule]; |
| 5877 |
int yyi; |
| 5878 |
YYFPRINTF (stderr, "Reducing stack by rule %d (line %d):\n", |
| 5879 |
yyrule - 1, yylno); |
| 5880 |
/* The symbols being reduced. */ |
| 5881 |
for (yyi = 0; yyi < yynrhs; yyi++) |
| 5882 |
{ |
| 5883 |
YYFPRINTF (stderr, " $%d = ", yyi + 1); |
| 5884 |
yy_symbol_print (stderr, |
| 5885 |
YY_ACCESSING_SYMBOL (+yyssp[yyi + 1 - yynrhs]), |
| 5886 |
&yyvsp[(yyi + 1) - (yynrhs)], p); |
| 5887 |
YYFPRINTF (stderr, "\n"); |
| 5888 |
} |
| 5889 |
} |
| 5890 |
|
| 5891 |
# define YY_REDUCE_PRINT(Rule) \ |
| 5892 |
do { \ |
| 5893 |
if (yydebug) \ |
| 5894 |
yy_reduce_print (yyssp, yyvsp, Rule, p); \ |
| 5895 |
} while (0) |
| 5896 |
|
| 5897 |
/* Nonzero means print parse trace. It is left uninitialized so that |
| 5898 |
multiple parsers can coexist. */ |
| 5899 |
int yydebug; |
| 5900 |
#else /* !YYDEBUG */ |
| 5901 |
# define YYDPRINTF(Args) ((void) 0) |
| 5902 |
# define YY_SYMBOL_PRINT(Title, Kind, Value, Location) |
| 5903 |
# define YY_STACK_PRINT(Bottom, Top) |
| 5904 |
# define YY_REDUCE_PRINT(Rule) |
| 5905 |
#endif /* !YYDEBUG */ |
| 5906 |
|
| 5907 |
|
| 5908 |
/* YYINITDEPTH -- initial size of the parser's stacks. */ |
| 5909 |
#ifndef YYINITDEPTH |
| 5910 |
# define YYINITDEPTH 200 |
| 5911 |
#endif |
| 5912 |
|
| 5913 |
/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only |
| 5914 |
if the built-in stack extension method is used). |
| 5915 |
|
| 5916 |
Do not make this value too large; the results are undefined if |
| 5917 |
YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH) |
| 5918 |
evaluated with infinite-precision integer arithmetic. */ |
| 5919 |
|
| 5920 |
#ifndef YYMAXDEPTH |
| 5921 |
# define YYMAXDEPTH 10000 |
| 5922 |
#endif |
| 5923 |
|
| 5924 |
|
| 5925 |
/* Context of a parse error. */ |
| 5926 |
typedef struct |
| 5927 |
{ |
| 5928 |
yy_state_t *yyssp; |
| 5929 |
yysymbol_kind_t yytoken; |
| 5930 |
} yypcontext_t; |
| 5931 |
|
| 5932 |
/* Put in YYARG at most YYARGN of the expected tokens given the |
| 5933 |
current YYCTX, and return the number of tokens stored in YYARG. If |
| 5934 |
YYARG is null, return the number of expected tokens (guaranteed to |
| 5935 |
be less than YYNTOKENS). Return YYENOMEM on memory exhaustion. |
| 5936 |
Return 0 if there are more than YYARGN expected tokens, yet fill |
| 5937 |
YYARG up to YYARGN. */ |
| 5938 |
static int |
| 5939 |
yypcontext_expected_tokens (const yypcontext_t *yyctx, |
| 5940 |
yysymbol_kind_t yyarg[], int yyargn) |
| 5941 |
{ |
| 5942 |
/* Actual size of YYARG. */ |
| 5943 |
int yycount = 0; |
| 5944 |
int yyn = yypact[+*yyctx->yyssp]; |
| 5945 |
if (!yypact_value_is_default (yyn)) |
| 5946 |
{ |
| 5947 |
/* Start YYX at -YYN if negative to avoid negative indexes in |
| 5948 |
YYCHECK. In other words, skip the first -YYN actions for |
| 5949 |
this state because they are default actions. */ |
| 5950 |
int yyxbegin = yyn < 0 ? -yyn : 0; |
| 5951 |
/* Stay within bounds of both yycheck and yytname. */ |
| 5952 |
int yychecklim = YYLAST - yyn + 1; |
| 5953 |
int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; |
| 5954 |
int yyx; |
| 5955 |
for (yyx = yyxbegin; yyx < yyxend; ++yyx) |
| 5956 |
if (yycheck[yyx + yyn] == yyx && yyx != YYSYMBOL_YYerror |
| 5957 |
&& !yytable_value_is_error (yytable[yyx + yyn])) |
| 5958 |
{ |
| 5959 |
if (!yyarg) |
| 5960 |
++yycount; |
| 5961 |
else if (yycount == yyargn) |
| 5962 |
return 0; |
| 5963 |
else |
| 5964 |
yyarg[yycount++] = YY_CAST (yysymbol_kind_t, yyx); |
| 5965 |
} |
| 5966 |
} |
| 5967 |
if (yyarg && yycount == 0 && 0 < yyargn) |
| 5968 |
yyarg[0] = YYSYMBOL_YYEMPTY; |
| 5969 |
return yycount; |
| 5970 |
} |
| 5971 |
|
| 5972 |
|
| 5973 |
|
| 5974 |
|
| 5975 |
#ifndef yystrlen |
| 5976 |
# if defined __GLIBC__ && defined _STRING_H |
| 5977 |
# define yystrlen(S) (YY_CAST (YYPTRDIFF_T, strlen (S))) |
| 5978 |
# else |
| 5979 |
/* Return the length of YYSTR. */ |
| 5980 |
static YYPTRDIFF_T |
| 5981 |
yystrlen (const char *yystr) |
| 5982 |
{ |
| 5983 |
YYPTRDIFF_T yylen; |
| 5984 |
for (yylen = 0; yystr[yylen]; yylen++) |
| 5985 |
continue; |
| 5986 |
return yylen; |
| 5987 |
} |
| 5988 |
# endif |
| 5989 |
#endif |
| 5990 |
|
| 5991 |
#ifndef yystpcpy |
| 5992 |
# if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE |
| 5993 |
# define yystpcpy stpcpy |
| 5994 |
# else |
| 5995 |
/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in |
| 5996 |
YYDEST. */ |
| 5997 |
static char * |
| 5998 |
yystpcpy (char *yydest, const char *yysrc) |
| 5999 |
{ |
| 6000 |
char *yyd = yydest; |
| 6001 |
const char *yys = yysrc; |
| 6002 |
|
| 6003 |
while ((*yyd++ = *yys++) != '\0') |
| 6004 |
continue; |
| 6005 |
|
| 6006 |
return yyd - 1; |
| 6007 |
} |
| 6008 |
# endif |
| 6009 |
#endif |
| 6010 |
|
| 6011 |
#ifndef yytnamerr |
| 6012 |
/* Copy to YYRES the contents of YYSTR after stripping away unnecessary |
| 6013 |
quotes and backslashes, so that it's suitable for yyerror. The |
| 6014 |
heuristic is that double-quoting is unnecessary unless the string |
| 6015 |
contains an apostrophe, a comma, or backslash (other than |
| 6016 |
backslash-backslash). YYSTR is taken from yytname. If YYRES is |
| 6017 |
null, do not copy; instead, return the length of what the result |
| 6018 |
would have been. */ |
| 6019 |
static YYPTRDIFF_T |
| 6020 |
yytnamerr (char *yyres, const char *yystr) |
| 6021 |
{ |
| 6022 |
if (*yystr == '"') |
| 6023 |
{ |
| 6024 |
YYPTRDIFF_T yyn = 0; |
| 6025 |
char const *yyp = yystr; |
| 6026 |
for (;;) |
| 6027 |
switch (*++yyp) |
| 6028 |
{ |
| 6029 |
case '\'': |
| 6030 |
case ',': |
| 6031 |
goto do_not_strip_quotes; |
| 6032 |
|
| 6033 |
case '\\': |
| 6034 |
if (*++yyp != '\\') |
| 6035 |
goto do_not_strip_quotes; |
| 6036 |
else |
| 6037 |
goto append; |
| 6038 |
|
| 6039 |
append: |
| 6040 |
default: |
| 6041 |
if (yyres) |
| 6042 |
yyres[yyn] = *yyp; |
| 6043 |
yyn++; |
| 6044 |
break; |
| 6045 |
|
| 6046 |
case '"': |
| 6047 |
if (yyres) |
| 6048 |
yyres[yyn] = '\0'; |
| 6049 |
return yyn; |
| 6050 |
} |
| 6051 |
do_not_strip_quotes: ; |
| 6052 |
} |
| 6053 |
|
| 6054 |
if (yyres) |
| 6055 |
return yystpcpy (yyres, yystr) - yyres; |
| 6056 |
else |
| 6057 |
return yystrlen (yystr); |
| 6058 |
} |
| 6059 |
#endif |
| 6060 |
|
| 6061 |
|
| 6062 |
static int |
| 6063 |
yy_syntax_error_arguments (const yypcontext_t *yyctx, |
| 6064 |
yysymbol_kind_t yyarg[], int yyargn) |
| 6065 |
{ |
| 6066 |
/* Actual size of YYARG. */ |
| 6067 |
int yycount = 0; |
| 6068 |
/* There are many possibilities here to consider: |
| 6069 |
- If this state is a consistent state with a default action, then |
| 6070 |
the only way this function was invoked is if the default action |
| 6071 |
is an error action. In that case, don't check for expected |
| 6072 |
tokens because there are none. |
| 6073 |
- The only way there can be no lookahead present (in yychar) is if |
| 6074 |
this state is a consistent state with a default action. Thus, |
| 6075 |
detecting the absence of a lookahead is sufficient to determine |
| 6076 |
that there is no unexpected or expected token to report. In that |
| 6077 |
case, just report a simple "syntax error". |
| 6078 |
- Don't assume there isn't a lookahead just because this state is a |
| 6079 |
consistent state with a default action. There might have been a |
| 6080 |
previous inconsistent state, consistent state with a non-default |
| 6081 |
action, or user semantic action that manipulated yychar. |
| 6082 |
- Of course, the expected token list depends on states to have |
| 6083 |
correct lookahead information, and it depends on the parser not |
| 6084 |
to perform extra reductions after fetching a lookahead from the |
| 6085 |
scanner and before detecting a syntax error. Thus, state merging |
| 6086 |
(from LALR or IELR) and default reductions corrupt the expected |
| 6087 |
token list. However, the list is correct for canonical LR with |
| 6088 |
one exception: it will still contain any token that will not be |
| 6089 |
accepted due to an error action in a later state. |
| 6090 |
*/ |
| 6091 |
if (yyctx->yytoken != YYSYMBOL_YYEMPTY) |
| 6092 |
{ |
| 6093 |
int yyn; |
| 6094 |
if (yyarg) |
| 6095 |
yyarg[yycount] = yyctx->yytoken; |
| 6096 |
++yycount; |
| 6097 |
yyn = yypcontext_expected_tokens (yyctx, |
| 6098 |
yyarg ? yyarg + 1 : yyarg, yyargn - 1); |
| 6099 |
if (yyn == YYENOMEM) |
| 6100 |
return YYENOMEM; |
| 6101 |
else |
| 6102 |
yycount += yyn; |
| 6103 |
} |
| 6104 |
return yycount; |
| 6105 |
} |
| 6106 |
|
| 6107 |
/* Copy into *YYMSG, which is of size *YYMSG_ALLOC, an error message |
| 6108 |
about the unexpected token YYTOKEN for the state stack whose top is |
| 6109 |
YYSSP. |
| 6110 |
|
| 6111 |
Return 0 if *YYMSG was successfully written. Return -1 if *YYMSG is |
| 6112 |
not large enough to hold the message. In that case, also set |
| 6113 |
*YYMSG_ALLOC to the required number of bytes. Return YYENOMEM if the |
| 6114 |
required number of bytes is too large to store. */ |
| 6115 |
static int |
| 6116 |
yysyntax_error (YYPTRDIFF_T *yymsg_alloc, char **yymsg, |
| 6117 |
const yypcontext_t *yyctx) |
| 6118 |
{ |
| 6119 |
enum { YYARGS_MAX = 5 }; |
| 6120 |
/* Internationalized format string. */ |
| 6121 |
const char *yyformat = YY_NULLPTR; |
| 6122 |
/* Arguments of yyformat: reported tokens (one for the "unexpected", |
| 6123 |
one per "expected"). */ |
| 6124 |
yysymbol_kind_t yyarg[YYARGS_MAX]; |
| 6125 |
/* Cumulated lengths of YYARG. */ |
| 6126 |
YYPTRDIFF_T yysize = 0; |
| 6127 |
|
| 6128 |
/* Actual size of YYARG. */ |
| 6129 |
int yycount = yy_syntax_error_arguments (yyctx, yyarg, YYARGS_MAX); |
| 6130 |
if (yycount == YYENOMEM) |
| 6131 |
return YYENOMEM; |
| 6132 |
|
| 6133 |
switch (yycount) |
| 6134 |
{ |
| 6135 |
#define YYCASE_(N, S) \ |
| 6136 |
case N: \ |
| 6137 |
yyformat = S; \ |
| 6138 |
break |
| 6139 |
default: /* Avoid compiler warnings. */ |
| 6140 |
YYCASE_(0, YY_("syntax error")); |
| 6141 |
YYCASE_(1, YY_("syntax error, unexpected %s")); |
| 6142 |
YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s")); |
| 6143 |
YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s")); |
| 6144 |
YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s")); |
| 6145 |
YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s")); |
| 6146 |
#undef YYCASE_ |
| 6147 |
} |
| 6148 |
|
| 6149 |
/* Compute error message size. Don't count the "%s"s, but reserve |
| 6150 |
room for the terminator. */ |
| 6151 |
yysize = yystrlen (yyformat) - 2 * yycount + 1; |
| 6152 |
{ |
| 6153 |
int yyi; |
| 6154 |
for (yyi = 0; yyi < yycount; ++yyi) |
| 6155 |
{ |
| 6156 |
YYPTRDIFF_T yysize1 |
| 6157 |
= yysize + yytnamerr (YY_NULLPTR, yytname[yyarg[yyi]]); |
| 6158 |
if (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM) |
| 6159 |
yysize = yysize1; |
| 6160 |
else |
| 6161 |
return YYENOMEM; |
| 6162 |
} |
| 6163 |
} |
| 6164 |
|
| 6165 |
if (*yymsg_alloc < yysize) |
| 6166 |
{ |
| 6167 |
*yymsg_alloc = 2 * yysize; |
| 6168 |
if (! (yysize <= *yymsg_alloc |
| 6169 |
&& *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM)) |
| 6170 |
*yymsg_alloc = YYSTACK_ALLOC_MAXIMUM; |
| 6171 |
return -1; |
| 6172 |
} |
| 6173 |
|
| 6174 |
/* Avoid sprintf, as that infringes on the user's name space. |
| 6175 |
Don't have undefined behavior even if the translation |
| 6176 |
produced a string with the wrong number of "%s"s. */ |
| 6177 |
{ |
| 6178 |
char *yyp = *yymsg; |
| 6179 |
int yyi = 0; |
| 6180 |
while ((*yyp = *yyformat) != '\0') |
| 6181 |
if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount) |
| 6182 |
{ |
| 6183 |
yyp += yytnamerr (yyp, yytname[yyarg[yyi++]]); |
| 6184 |
yyformat += 2; |
| 6185 |
} |
| 6186 |
else |
| 6187 |
{ |
| 6188 |
++yyp; |
| 6189 |
++yyformat; |
| 6190 |
} |
| 6191 |
} |
| 6192 |
return 0; |
| 6193 |
} |
| 6194 |
|
| 6195 |
|
| 6196 |
/*-----------------------------------------------. |
| 6197 |
| Release the memory associated to this symbol. | |
| 6198 |
`-----------------------------------------------*/ |
| 6199 |
|
| 6200 |
static void |
| 6201 |
yydestruct (const char *yymsg, |
| 6202 |
yysymbol_kind_t yykind, YYSTYPE *yyvaluep, parser_state *p) |
| 6203 |
{ |
| 6204 |
YY_USE (yyvaluep); |
| 6205 |
YY_USE (p); |
| 6206 |
if (!yymsg) |
| 6207 |
yymsg = "Deleting"; |
| 6208 |
YY_SYMBOL_PRINT (yymsg, yykind, yyvaluep, yylocationp); |
| 6209 |
|
| 6210 |
YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
| 6211 |
YY_USE (yykind); |
| 6212 |
YY_IGNORE_MAYBE_UNINITIALIZED_END |
| 6213 |
} |
| 6214 |
|
| 6215 |
|
| 6216 |
|
| 6217 |
|
| 6218 |
|
| 6219 |
|
| 6220 |
/*----------. |
| 6221 |
| yyparse. | |
| 6222 |
`----------*/ |
| 6223 |
|
| 6224 |
int |
| 6225 |
yyparse (parser_state *p) |
| 6226 |
{ |
| 6227 |
/* Lookahead token kind. */ |
| 6228 |
int yychar; |
| 6229 |
|
| 6230 |
|
| 6231 |
/* The semantic value of the lookahead symbol. */ |
| 6232 |
/* Default value used for initialization, for pacifying older GCCs |
| 6233 |
or non-GCC compilers. */ |
| 6234 |
YY_INITIAL_VALUE (static YYSTYPE yyval_default;) |
| 6235 |
YYSTYPE yylval YY_INITIAL_VALUE (= yyval_default); |
| 6236 |
|
| 6237 |
/* Number of syntax errors so far. */ |
| 6238 |
int yynerrs = 0; |
| 6239 |
|
| 6240 |
yy_state_fast_t yystate = 0; |
| 6241 |
/* Number of tokens to shift before error messages enabled. */ |
| 6242 |
int yyerrstatus = 0; |
| 6243 |
|
| 6244 |
/* Refer to the stacks through separate pointers, to allow yyoverflow |
| 6245 |
to reallocate them elsewhere. */ |
| 6246 |
|
| 6247 |
/* Their size. */ |
| 6248 |
YYPTRDIFF_T yystacksize = YYINITDEPTH; |
| 6249 |
|
| 6250 |
/* The state stack: array, bottom, top. */ |
| 6251 |
yy_state_t yyssa[YYINITDEPTH]; |
| 6252 |
yy_state_t *yyss = yyssa; |
| 6253 |
yy_state_t *yyssp = yyss; |
| 6254 |
|
| 6255 |
/* The semantic value stack: array, bottom, top. */ |
| 6256 |
YYSTYPE yyvsa[YYINITDEPTH]; |
| 6257 |
YYSTYPE *yyvs = yyvsa; |
| 6258 |
YYSTYPE *yyvsp = yyvs; |
| 6259 |
|
| 6260 |
int yyn; |
| 6261 |
/* The return value of yyparse. */ |
| 6262 |
int yyresult; |
| 6263 |
/* Lookahead symbol kind. */ |
| 6264 |
yysymbol_kind_t yytoken = YYSYMBOL_YYEMPTY; |
| 6265 |
/* The variables used to return semantic value and location from the |
| 6266 |
action routines. */ |
| 6267 |
YYSTYPE yyval; |
| 6268 |
|
| 6269 |
/* Buffer for error messages, and its allocated size. */ |
| 6270 |
char yymsgbuf[128]; |
| 6271 |
char *yymsg = yymsgbuf; |
| 6272 |
YYPTRDIFF_T yymsg_alloc = sizeof yymsgbuf; |
| 6273 |
|
| 6274 |
#define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) |
| 6275 |
|
| 6276 |
/* The number of symbols on the RHS of the reduced rule. |
| 6277 |
Keep to zero when no symbol should be popped. */ |
| 6278 |
int yylen = 0; |
| 6279 |
|
| 6280 |
YYDPRINTF ((stderr, "Starting parse\n")); |
| 6281 |
|
| 6282 |
yychar = YYEMPTY; /* Cause a token to be read. */ |
| 6283 |
|
| 6284 |
goto yysetstate; |
| 6285 |
|
| 6286 |
|
| 6287 |
/*------------------------------------------------------------. |
| 6288 |
| yynewstate -- push a new state, which is found in yystate. | |
| 6289 |
`------------------------------------------------------------*/ |
| 6290 |
yynewstate: |
| 6291 |
/* In all cases, when you get here, the value and location stacks |
| 6292 |
have just been pushed. So pushing a state here evens the stacks. */ |
| 6293 |
yyssp++; |
| 6294 |
|
| 6295 |
|
| 6296 |
/*--------------------------------------------------------------------. |
| 6297 |
| yysetstate -- set current state (the top of the stack) to yystate. | |
| 6298 |
`--------------------------------------------------------------------*/ |
| 6299 |
yysetstate: |
| 6300 |
YYDPRINTF ((stderr, "Entering state %d\n", yystate)); |
| 6301 |
YY_ASSERT (0 <= yystate && yystate < YYNSTATES); |
| 6302 |
YY_IGNORE_USELESS_CAST_BEGIN |
| 6303 |
*yyssp = YY_CAST (yy_state_t, yystate); |
| 6304 |
YY_IGNORE_USELESS_CAST_END |
| 6305 |
YY_STACK_PRINT (yyss, yyssp); |
| 6306 |
|
| 6307 |
if (yyss + yystacksize - 1 <= yyssp) |
| 6308 |
#if !defined yyoverflow && !defined YYSTACK_RELOCATE |
| 6309 |
YYNOMEM; |
| 6310 |
#else |
| 6311 |
{ |
| 6312 |
/* Get the current used size of the three stacks, in elements. */ |
| 6313 |
YYPTRDIFF_T yysize = yyssp - yyss + 1; |
| 6314 |
|
| 6315 |
# if defined yyoverflow |
| 6316 |
{ |
| 6317 |
/* Give user a chance to reallocate the stack. Use copies of |
| 6318 |
these so that the &'s don't force the real ones into |
| 6319 |
memory. */ |
| 6320 |
yy_state_t *yyss1 = yyss; |
| 6321 |
YYSTYPE *yyvs1 = yyvs; |
| 6322 |
|
| 6323 |
/* Each stack pointer address is followed by the size of the |
| 6324 |
data in use in that stack, in bytes. This used to be a |
| 6325 |
conditional around just the two extra args, but that might |
| 6326 |
be undefined if yyoverflow is a macro. */ |
| 6327 |
yyoverflow (YY_("memory exhausted"), |
| 6328 |
&yyss1, yysize * YYSIZEOF (*yyssp), |
| 6329 |
&yyvs1, yysize * YYSIZEOF (*yyvsp), |
| 6330 |
&yystacksize); |
| 6331 |
yyss = yyss1; |
| 6332 |
yyvs = yyvs1; |
| 6333 |
} |
| 6334 |
# else /* defined YYSTACK_RELOCATE */ |
| 6335 |
/* Extend the stack our own way. */ |
| 6336 |
if (YYMAXDEPTH <= yystacksize) |
| 6337 |
YYNOMEM; |
| 6338 |
yystacksize *= 2; |
| 6339 |
if (YYMAXDEPTH < yystacksize) |
| 6340 |
yystacksize = YYMAXDEPTH; |
| 6341 |
|
| 6342 |
{ |
| 6343 |
yy_state_t *yyss1 = yyss; |
| 6344 |
union yyalloc *yyptr = |
| 6345 |
YY_CAST (union yyalloc *, |
| 6346 |
YYSTACK_ALLOC (YY_CAST (YYSIZE_T, YYSTACK_BYTES (yystacksize)))); |
| 6347 |
if (! yyptr) |
| 6348 |
YYNOMEM; |
| 6349 |
YYSTACK_RELOCATE (yyss_alloc, yyss); |
| 6350 |
YYSTACK_RELOCATE (yyvs_alloc, yyvs); |
| 6351 |
# undef YYSTACK_RELOCATE |
| 6352 |
if (yyss1 != yyssa) |
| 6353 |
YYSTACK_FREE (yyss1); |
| 6354 |
} |
| 6355 |
# endif |
| 6356 |
|
| 6357 |
yyssp = yyss + yysize - 1; |
| 6358 |
yyvsp = yyvs + yysize - 1; |
| 6359 |
|
| 6360 |
YY_IGNORE_USELESS_CAST_BEGIN |
| 6361 |
YYDPRINTF ((stderr, "Stack size increased to %ld\n", |
| 6362 |
YY_CAST (long, yystacksize))); |
| 6363 |
YY_IGNORE_USELESS_CAST_END |
| 6364 |
|
| 6365 |
if (yyss + yystacksize - 1 <= yyssp) |
| 6366 |
YYABORT; |
| 6367 |
} |
| 6368 |
#endif /* !defined yyoverflow && !defined YYSTACK_RELOCATE */ |
| 6369 |
|
| 6370 |
|
| 6371 |
if (yystate == YYFINAL) |
| 6372 |
YYACCEPT; |
| 6373 |
|
| 6374 |
goto yybackup; |
| 6375 |
|
| 6376 |
|
| 6377 |
/*-----------. |
| 6378 |
| yybackup. | |
| 6379 |
`-----------*/ |
| 6380 |
yybackup: |
| 6381 |
/* Do appropriate processing given the current state. Read a |
| 6382 |
lookahead token if we need one and don't already have one. */ |
| 6383 |
|
| 6384 |
/* First try to decide what to do without reference to lookahead token. */ |
| 6385 |
yyn = yypact[yystate]; |
| 6386 |
if (yypact_value_is_default (yyn)) |
| 6387 |
goto yydefault; |
| 6388 |
|
| 6389 |
/* Not known => get a lookahead token if don't already have one. */ |
| 6390 |
|
| 6391 |
/* YYCHAR is either empty, or end-of-input, or a valid lookahead. */ |
| 6392 |
if (yychar == YYEMPTY) |
| 6393 |
{ |
| 6394 |
YYDPRINTF ((stderr, "Reading a token\n")); |
| 6395 |
yychar = yylex (&yylval, p); |
| 6396 |
} |
| 6397 |
|
| 6398 |
if (yychar <= YYEOF) |
| 6399 |
{ |
| 6400 |
yychar = YYEOF; |
| 6401 |
yytoken = YYSYMBOL_YYEOF; |
| 6402 |
YYDPRINTF ((stderr, "Now at end of input.\n")); |
| 6403 |
} |
| 6404 |
else if (yychar == YYerror) |
| 6405 |
{ |
| 6406 |
/* The scanner already issued an error message, process directly |
| 6407 |
to error recovery. But do not keep the error token as |
| 6408 |
lookahead, it is too special and may lead us to an endless |
| 6409 |
loop in error recovery. */ |
| 6410 |
yychar = YYUNDEF; |
| 6411 |
yytoken = YYSYMBOL_YYerror; |
| 6412 |
goto yyerrlab1; |
| 6413 |
} |
| 6414 |
else |
| 6415 |
{ |
| 6416 |
yytoken = YYTRANSLATE (yychar); |
| 6417 |
YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc); |
| 6418 |
} |
| 6419 |
|
| 6420 |
/* If the proper action on seeing token YYTOKEN is to reduce or to |
| 6421 |
detect an error, take that action. */ |
| 6422 |
yyn += yytoken; |
| 6423 |
if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) |
| 6424 |
goto yydefault; |
| 6425 |
yyn = yytable[yyn]; |
| 6426 |
if (yyn <= 0) |
| 6427 |
{ |
| 6428 |
if (yytable_value_is_error (yyn)) |
| 6429 |
goto yyerrlab; |
| 6430 |
yyn = -yyn; |
| 6431 |
goto yyreduce; |
| 6432 |
} |
| 6433 |
|
| 6434 |
/* Count tokens shifted since error; after three, turn off error |
| 6435 |
status. */ |
| 6436 |
if (yyerrstatus) |
| 6437 |
yyerrstatus--; |
| 6438 |
|
| 6439 |
/* Shift the lookahead token. */ |
| 6440 |
YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc); |
| 6441 |
yystate = yyn; |
| 6442 |
YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
| 6443 |
*++yyvsp = yylval; |
| 6444 |
YY_IGNORE_MAYBE_UNINITIALIZED_END |
| 6445 |
|
| 6446 |
/* Discard the shifted token. */ |
| 6447 |
yychar = YYEMPTY; |
| 6448 |
goto yynewstate; |
| 6449 |
|
| 6450 |
|
| 6451 |
/*-----------------------------------------------------------. |
| 6452 |
| yydefault -- do the default action for the current state. | |
| 6453 |
`-----------------------------------------------------------*/ |
| 6454 |
yydefault: |
| 6455 |
yyn = yydefact[yystate]; |
| 6456 |
if (yyn == 0) |
| 6457 |
goto yyerrlab; |
| 6458 |
goto yyreduce; |
| 6459 |
|
| 6460 |
|
| 6461 |
/*-----------------------------. |
| 6462 |
| yyreduce -- do a reduction. | |
| 6463 |
`-----------------------------*/ |
| 6464 |
yyreduce: |
| 6465 |
/* yyn is the number of a rule to reduce with. */ |
| 6466 |
yylen = yyr2[yyn]; |
| 6467 |
|
| 6468 |
/* If YYLEN is nonzero, implement the default value of the action: |
| 6469 |
'$$ = $1'. |
| 6470 |
|
| 6471 |
Otherwise, the following line sets YYVAL to garbage. |
| 6472 |
This behavior is undocumented and Bison |
| 6473 |
users should not rely upon it. Assigning to YYVAL |
| 6474 |
unconditionally makes the parser a bit smaller, and it avoids a |
| 6475 |
GCC warning that YYVAL may be used uninitialized. */ |
| 6476 |
yyval = yyvsp[1-yylen]; |
| 6477 |
|
| 6478 |
|
| 6479 |
YY_REDUCE_PRINT (yyn); |
| 6480 |
switch (yyn) |
| 6481 |
{ |
| 6482 |
case 2: /* $@1: %empty */ |
| 6483 |
#line 1625 "mrbgems/mruby-compiler/core/parse.y" |
| 6484 |
{ |
| 6485 |
p->lstate = EXPR_BEG; |
| 6486 |
if (!p->locals) p->locals = cons(0,0); |
| 6487 |
} |
| 6488 |
#line 6489 "mrbgems/mruby-compiler/core/y.tab.c" |
| 6489 |
break; |
| 6490 |
|
| 6491 |
case 3: /* program: $@1 top_compstmt */ |
| 6492 |
#line 1630 "mrbgems/mruby-compiler/core/parse.y" |
| 6493 |
{ |
| 6494 |
p->tree = new_scope(p, (yyvsp[0].nd)); |
| 6495 |
NODE_LINENO(p->tree, (yyvsp[0].nd)); |
| 6496 |
} |
| 6497 |
#line 6498 "mrbgems/mruby-compiler/core/y.tab.c" |
| 6498 |
break; |
| 6499 |
|
| 6500 |
case 4: /* top_compstmt: top_stmts opt_terms */ |
| 6501 |
#line 1637 "mrbgems/mruby-compiler/core/parse.y" |
| 6502 |
{ |
| 6503 |
(yyval.nd) = (yyvsp[-1].nd); |
| 6504 |
} |
| 6505 |
#line 6506 "mrbgems/mruby-compiler/core/y.tab.c" |
| 6506 |
break; |
| 6507 |
|
| 6508 |
case 5: /* top_stmts: none */ |
| 6509 |
#line 1643 "mrbgems/mruby-compiler/core/parse.y" |
| 6510 |
{ |
| 6511 |
(yyval.nd) = new_begin(p, 0); |
| 6512 |
} |
| 6513 |
#line 6514 "mrbgems/mruby-compiler/core/y.tab.c" |
| 6514 |
break; |
| 6515 |
|
| 6516 |
case 6: /* top_stmts: top_stmt */ |
| 6517 |
#line 1647 "mrbgems/mruby-compiler/core/parse.y" |
| 6518 |
{ |
| 6519 |
(yyval.nd) = new_begin(p, (yyvsp[0].nd)); |
| 6520 |
NODE_LINENO((yyval.nd), (yyvsp[0].nd)); |
| 6521 |
} |
| 6522 |
#line 6523 "mrbgems/mruby-compiler/core/y.tab.c" |
| 6523 |
break; |
| 6524 |
|
| 6525 |
case 7: /* top_stmts: top_stmts terms top_stmt */ |
| 6526 |
#line 1652 "mrbgems/mruby-compiler/core/parse.y" |
| 6527 |
{ |
| 6528 |
(yyval.nd) = push((yyvsp[-2].nd), newline_node((yyvsp[0].nd))); |
| 6529 |
} |
| 6530 |
#line 6531 "mrbgems/mruby-compiler/core/y.tab.c" |
| 6531 |
break; |
| 6532 |
|
| 6533 |
case 8: /* top_stmts: error top_stmt */ |
| 6534 |
#line 1656 "mrbgems/mruby-compiler/core/parse.y" |
| 6535 |
{ |
| 6536 |
(yyval.nd) = new_begin(p, 0); |
| 6537 |
} |
| 6538 |
#line 6539 "mrbgems/mruby-compiler/core/y.tab.c" |
| 6539 |
break; |
| 6540 |
|
| 6541 |
case 10: /* @2: %empty */ |
| 6542 |
#line 1663 "mrbgems/mruby-compiler/core/parse.y" |
| 6543 |
{ |
| 6544 |
(yyval.nd) = local_switch(p); |
| 6545 |
nvars_block(p); |
| 6546 |
} |
| 6547 |
#line 6548 "mrbgems/mruby-compiler/core/y.tab.c" |
| 6548 |
break; |
| 6549 |
|
| 6550 |
case 11: /* top_stmt: "'BEGIN'" @2 '{' top_compstmt '}' */ |
| 6551 |
#line 1668 "mrbgems/mruby-compiler/core/parse.y" |
| 6552 |
{ |
| 6553 |
yyerror(p, "BEGIN not supported"); |
| 6554 |
local_resume(p, (yyvsp[-3].nd)); |
| 6555 |
nvars_unnest(p); |
| 6556 |
(yyval.nd) = 0; |
| 6557 |
} |
| 6558 |
#line 6559 "mrbgems/mruby-compiler/core/y.tab.c" |
| 6559 |
break; |
| 6560 |
|
| 6561 |
case 12: /* bodystmt: compstmt opt_rescue opt_else opt_ensure */ |
| 6562 |
#line 1680 "mrbgems/mruby-compiler/core/parse.y" |
| 6563 |
{ |
| 6564 |
if ((yyvsp[-2].nd)) { |
| 6565 |
(yyval.nd) = new_rescue(p, (yyvsp[-3].nd), (yyvsp[-2].nd), (yyvsp[-1].nd)); |
| 6566 |
NODE_LINENO((yyval.nd), (yyvsp[-3].nd)); |
| 6567 |
} |
| 6568 |
else if ((yyvsp[-1].nd)) { |
| 6569 |
yywarning(p, "else without rescue is useless"); |
| 6570 |
(yyval.nd) = push((yyvsp[-3].nd), (yyvsp[-1].nd)); |
| 6571 |
} |
| 6572 |
else { |
| 6573 |
(yyval.nd) = (yyvsp[-3].nd); |
| 6574 |
} |
| 6575 |
if ((yyvsp[0].nd)) { |
| 6576 |
if ((yyval.nd)) { |
| 6577 |
(yyval.nd) = new_ensure(p, (yyval.nd), (yyvsp[0].nd)); |
| 6578 |
} |
| 6579 |
else { |
| 6580 |
(yyval.nd) = push((yyvsp[0].nd), new_nil(p)); |
| 6581 |
} |
| 6582 |
} |
| 6583 |
} |
| 6584 |
#line 6585 "mrbgems/mruby-compiler/core/y.tab.c" |
| 6585 |
break; |
| 6586 |
|
| 6587 |
case 13: /* compstmt: stmts opt_terms */ |
| 6588 |
#line 1704 "mrbgems/mruby-compiler/core/parse.y" |
| 6589 |
{ |
| 6590 |
(yyval.nd) = (yyvsp[-1].nd); |
| 6591 |
} |
| 6592 |
#line 6593 "mrbgems/mruby-compiler/core/y.tab.c" |
| 6593 |
break; |
| 6594 |
|
| 6595 |
case 14: /* stmts: none */ |
| 6596 |
#line 1710 "mrbgems/mruby-compiler/core/parse.y" |
| 6597 |
{ |
| 6598 |
(yyval.nd) = new_begin(p, 0); |
| 6599 |
} |
| 6600 |
#line 6601 "mrbgems/mruby-compiler/core/y.tab.c" |
| 6601 |
break; |
| 6602 |
|
| 6603 |
case 15: /* stmts: stmt */ |
| 6604 |
#line 1714 "mrbgems/mruby-compiler/core/parse.y" |
| 6605 |
{ |
| 6606 |
(yyval.nd) = new_begin(p, (yyvsp[0].nd)); |
| 6607 |
NODE_LINENO((yyval.nd), (yyvsp[0].nd)); |
| 6608 |
} |
| 6609 |
#line 6610 "mrbgems/mruby-compiler/core/y.tab.c" |
| 6610 |
break; |
| 6611 |
|
| 6612 |
case 16: /* stmts: stmts terms stmt */ |
| 6613 |
#line 1719 "mrbgems/mruby-compiler/core/parse.y" |
| 6614 |
{ |
| 6615 |
(yyval.nd) = push((yyvsp[-2].nd), newline_node((yyvsp[0].nd))); |
| 6616 |
} |
| 6617 |
#line 6618 "mrbgems/mruby-compiler/core/y.tab.c" |
| 6618 |
break; |
| 6619 |
|
| 6620 |
case 17: /* stmts: error stmt */ |
| 6621 |
#line 1723 "mrbgems/mruby-compiler/core/parse.y" |
| 6622 |
{ |
| 6623 |
(yyval.nd) = new_begin(p, (yyvsp[0].nd)); |
| 6624 |
} |
| 6625 |
#line 6626 "mrbgems/mruby-compiler/core/y.tab.c" |
| 6626 |
break; |
| 6627 |
|
| 6628 |
case 18: /* $@3: %empty */ |
| 6629 |
#line 1728 "mrbgems/mruby-compiler/core/parse.y" |
| 6630 |
{p->lstate = EXPR_FNAME;} |
| 6631 |
#line 6632 "mrbgems/mruby-compiler/core/y.tab.c" |
| 6632 |
break; |
| 6633 |
|
| 6634 |
case 19: /* stmt: "'alis'" fsym $@3 fsym */ |
| 6635 |
#line 1729 "mrbgems/mruby-compiler/core/parse.y" |
| 6636 |
{ |
| 6637 |
(yyval.nd) = new_alias(p, (yyvsp[-2].id), (yyvsp[0].id)); |
| 6638 |
} |
| 6639 |
#line 6640 "mrbgems/mruby-compiler/core/y.tab.c" |
| 6640 |
break; |
| 6641 |
|
| 6642 |
case 20: /* stmt: "'undef'" undef_list */ |
| 6643 |
#line 1733 "mrbgems/mruby-compiler/core/parse.y" |
| 6644 |
{ |
| 6645 |
(yyval.nd) = (yyvsp[0].nd); |
| 6646 |
} |
| 6647 |
#line 6648 "mrbgems/mruby-compiler/core/y.tab.c" |
| 6648 |
break; |
| 6649 |
|
| 6650 |
case 21: /* stmt: stmt "'if' modifier" expr_value */ |
| 6651 |
#line 1737 "mrbgems/mruby-compiler/core/parse.y" |
| 6652 |
{ |
| 6653 |
(yyval.nd) = new_if(p, cond((yyvsp[0].nd)), (yyvsp[-2].nd), 0); |
| 6654 |
} |
| 6655 |
#line 6656 "mrbgems/mruby-compiler/core/y.tab.c" |
| 6656 |
break; |
| 6657 |
|
| 6658 |
case 22: /* stmt: stmt "'unless' modifier" expr_value */ |
| 6659 |
#line 1741 "mrbgems/mruby-compiler/core/parse.y" |
| 6660 |
{ |
| 6661 |
(yyval.nd) = new_unless(p, cond((yyvsp[0].nd)), (yyvsp[-2].nd), 0); |
| 6662 |
} |
| 6663 |
#line 6664 "mrbgems/mruby-compiler/core/y.tab.c" |
| 6664 |
break; |
| 6665 |
|
| 6666 |
case 23: /* stmt: stmt "'while' modifier" expr_value */ |
| 6667 |
#line 1745 "mrbgems/mruby-compiler/core/parse.y" |
| 6668 |
{ |
| 6669 |
(yyval.nd) = new_while(p, cond((yyvsp[0].nd)), (yyvsp[-2].nd)); |
| 6670 |
} |
| 6671 |
#line 6672 "mrbgems/mruby-compiler/core/y.tab.c" |
| 6672 |
break; |
| 6673 |
|
| 6674 |
case 24: /* stmt: stmt "'until' modifier" expr_value */ |
| 6675 |
#line 1749 "mrbgems/mruby-compiler/core/parse.y" |
| 6676 |
{ |
| 6677 |
(yyval.nd) = new_until(p, cond((yyvsp[0].nd)), (yyvsp[-2].nd)); |
| 6678 |
} |
| 6679 |
#line 6680 "mrbgems/mruby-compiler/core/y.tab.c" |
| 6680 |
break; |
| 6681 |
|
| 6682 |
case 25: /* stmt: stmt "'rescue' modifier" stmt */ |
| 6683 |
#line 1753 "mrbgems/mruby-compiler/core/parse.y" |
| 6684 |
{ |
| 6685 |
(yyval.nd) = new_mod_rescue(p, (yyvsp[-2].nd), (yyvsp[0].nd)); |
| 6686 |
} |
| 6687 |
#line 6688 "mrbgems/mruby-compiler/core/y.tab.c" |
| 6688 |
break; |
| 6689 |
|
| 6690 |
case 26: /* stmt: "'END'" '{' compstmt '}' */ |
| 6691 |
#line 1757 "mrbgems/mruby-compiler/core/parse.y" |
| 6692 |
{ |
| 6693 |
yyerror(p, "END not supported"); |
| 6694 |
(yyval.nd) = new_postexe(p, (yyvsp[-1].nd)); |
| 6695 |
} |
| 6696 |
#line 6697 "mrbgems/mruby-compiler/core/y.tab.c" |
| 6697 |
break; |
| 6698 |
|
| 6699 |
case 28: /* stmt: mlhs '=' command_call */ |
| 6700 |
#line 1763 "mrbgems/mruby-compiler/core/parse.y" |
| 6701 |
{ |
| 6702 |
(yyval.nd) = new_masgn(p, (yyvsp[-2].nd), (yyvsp[0].nd)); |
| 6703 |
} |
| 6704 |
#line 6705 "mrbgems/mruby-compiler/core/y.tab.c" |
| 6705 |
break; |
| 6706 |
|
| 6707 |
case 29: /* stmt: lhs '=' mrhs */ |
| 6708 |
#line 1767 "mrbgems/mruby-compiler/core/parse.y" |
| 6709 |
{ |
| 6710 |
(yyval.nd) = new_asgn(p, (yyvsp[-2].nd), new_array(p, (yyvsp[0].nd))); |
| 6711 |
} |
| 6712 |
#line 6713 "mrbgems/mruby-compiler/core/y.tab.c" |
| 6713 |
break; |
| 6714 |
|
| 6715 |
case 30: /* stmt: mlhs '=' arg */ |
| 6716 |
#line 1771 "mrbgems/mruby-compiler/core/parse.y" |
| 6717 |
{ |
| 6718 |
(yyval.nd) = new_masgn(p, (yyvsp[-2].nd), (yyvsp[0].nd)); |
| 6719 |
} |
| 6720 |
#line 6721 "mrbgems/mruby-compiler/core/y.tab.c" |
| 6721 |
break; |
| 6722 |
|
| 6723 |
case 31: /* stmt: mlhs '=' mrhs */ |
| 6724 |
#line 1775 "mrbgems/mruby-compiler/core/parse.y" |
| 6725 |
{ |
| 6726 |
(yyval.nd) = new_masgn(p, (yyvsp[-2].nd), new_array(p, (yyvsp[0].nd))); |
| 6727 |
} |
| 6728 |
#line 6729 "mrbgems/mruby-compiler/core/y.tab.c" |
| 6729 |
break; |
| 6730 |
|
| 6731 |
case 32: /* stmt: arg "=>" "local variable or method" */ |
| 6732 |
#line 1779 "mrbgems/mruby-compiler/core/parse.y" |
| 6733 |
{ |
| 6734 |
node *lhs = new_lvar(p, (yyvsp[0].id)); |
| 6735 |
assignable(p, lhs); |
| 6736 |
(yyval.nd) = new_asgn(p, lhs, (yyvsp[-2].nd)); |
| 6737 |
} |
| 6738 |
#line 6739 "mrbgems/mruby-compiler/core/y.tab.c" |
| 6739 |
break; |
| 6740 |
|
| 6741 |
case 34: /* command_asgn: lhs '=' command_rhs */ |
| 6742 |
#line 1788 "mrbgems/mruby-compiler/core/parse.y" |
| 6743 |
{ |
| 6744 |
(yyval.nd) = new_asgn(p, (yyvsp[-2].nd), (yyvsp[0].nd)); |
| 6745 |
} |
| 6746 |
#line 6747 "mrbgems/mruby-compiler/core/y.tab.c" |
| 6747 |
break; |
| 6748 |
|
| 6749 |
case 35: /* command_asgn: var_lhs tOP_ASGN command_rhs */ |
| 6750 |
#line 1792 "mrbgems/mruby-compiler/core/parse.y" |
| 6751 |
{ |
| 6752 |
(yyval.nd) = new_op_asgn(p, (yyvsp[-2].nd), (yyvsp[-1].id), (yyvsp[0].nd)); |
| 6753 |
} |
| 6754 |
#line 6755 "mrbgems/mruby-compiler/core/y.tab.c" |
| 6755 |
break; |
| 6756 |
|
| 6757 |
case 36: /* command_asgn: primary_value '[' opt_call_args ']' tOP_ASGN command_rhs */ |
| 6758 |
#line 1796 "mrbgems/mruby-compiler/core/parse.y" |
| 6759 |
{ |
| 6760 |
(yyval.nd) = new_op_asgn(p, new_call(p, (yyvsp[-5].nd), intern_op(aref), (yyvsp[-3].nd), '.'), (yyvsp[-1].id), (yyvsp[0].nd)); |
| 6761 |
} |
| 6762 |
#line 6763 "mrbgems/mruby-compiler/core/y.tab.c" |
| 6763 |
break; |
| 6764 |
|
| 6765 |
case 37: /* command_asgn: primary_value call_op "local variable or method" tOP_ASGN command_rhs */ |
| 6766 |
#line 1800 "mrbgems/mruby-compiler/core/parse.y" |
| 6767 |
{ |
| 6768 |
(yyval.nd) = new_op_asgn(p, new_call(p, (yyvsp[-4].nd), (yyvsp[-2].id), 0, (yyvsp[-3].num)), (yyvsp[-1].id), (yyvsp[0].nd)); |
| 6769 |
} |
| 6770 |
#line 6771 "mrbgems/mruby-compiler/core/y.tab.c" |
| 6771 |
break; |
| 6772 |
|
| 6773 |
case 38: /* command_asgn: primary_value call_op "constant" tOP_ASGN command_rhs */ |
| 6774 |
#line 1804 "mrbgems/mruby-compiler/core/parse.y" |
| 6775 |
{ |
| 6776 |
(yyval.nd) = new_op_asgn(p, new_call(p, (yyvsp[-4].nd), (yyvsp[-2].id), 0, (yyvsp[-3].num)), (yyvsp[-1].id), (yyvsp[0].nd)); |
| 6777 |
} |
| 6778 |
#line 6779 "mrbgems/mruby-compiler/core/y.tab.c" |
| 6779 |
break; |
| 6780 |
|
| 6781 |
case 39: /* command_asgn: primary_value "::" "constant" tOP_ASGN command_call */ |
| 6782 |
#line 1808 "mrbgems/mruby-compiler/core/parse.y" |
| 6783 |
{ |
| 6784 |
yyerror(p, "constant re-assignment"); |
| 6785 |
(yyval.nd) = 0; |
| 6786 |
} |
| 6787 |
#line 6788 "mrbgems/mruby-compiler/core/y.tab.c" |
| 6788 |
break; |
| 6789 |
|
| 6790 |
case 40: /* command_asgn: primary_value "::" "local variable or method" tOP_ASGN command_rhs */ |
| 6791 |
#line 1813 "mrbgems/mruby-compiler/core/parse.y" |
| 6792 |
{ |
| 6793 |
(yyval.nd) = new_op_asgn(p, new_call(p, (yyvsp[-4].nd), (yyvsp[-2].id), 0, tCOLON2), (yyvsp[-1].id), (yyvsp[0].nd)); |
| 6794 |
} |
| 6795 |
#line 6796 "mrbgems/mruby-compiler/core/y.tab.c" |
| 6796 |
break; |
| 6797 |
|
| 6798 |
case 41: /* command_asgn: defn_head f_opt_arglist_paren '=' command */ |
| 6799 |
#line 1817 "mrbgems/mruby-compiler/core/parse.y" |
| 6800 |
{ |
| 6801 |
(yyval.nd) = (yyvsp[-3].nd); |
| 6802 |
endless_method_name(p, (yyvsp[-3].nd)); |
| 6803 |
void_expr_error(p, (yyvsp[0].nd)); |
| 6804 |
defn_setup(p, (yyval.nd), (yyvsp[-2].nd), (yyvsp[0].nd)); |
| 6805 |
nvars_unnest(p); |
| 6806 |
p->in_def--; |
| 6807 |
} |
| 6808 |
#line 6809 "mrbgems/mruby-compiler/core/y.tab.c" |
| 6809 |
break; |
| 6810 |
|
| 6811 |
case 42: /* command_asgn: defn_head f_opt_arglist_paren '=' command "'rescue' modifier" arg */ |
| 6812 |
#line 1826 "mrbgems/mruby-compiler/core/parse.y" |
| 6813 |
{ |
| 6814 |
(yyval.nd) = (yyvsp[-5].nd); |
| 6815 |
endless_method_name(p, (yyvsp[-5].nd)); |
| 6816 |
void_expr_error(p, (yyvsp[-2].nd)); |
| 6817 |
defn_setup(p, (yyval.nd), (yyvsp[-4].nd), new_mod_rescue(p, (yyvsp[-2].nd), (yyvsp[0].nd))); |
| 6818 |
nvars_unnest(p); |
| 6819 |
p->in_def--; |
| 6820 |
} |
| 6821 |
#line 6822 "mrbgems/mruby-compiler/core/y.tab.c" |
| 6822 |
break; |
| 6823 |
|
| 6824 |
case 43: /* command_asgn: defs_head f_opt_arglist_paren '=' command */ |
| 6825 |
#line 1835 "mrbgems/mruby-compiler/core/parse.y" |
| 6826 |
{ |
| 6827 |
(yyval.nd) = (yyvsp[-3].nd); |
| 6828 |
void_expr_error(p, (yyvsp[0].nd)); |
| 6829 |
defs_setup(p, (yyval.nd), (yyvsp[-2].nd), (yyvsp[0].nd)); |
| 6830 |
nvars_unnest(p); |
| 6831 |
p->in_def--; |
| 6832 |
p->in_single--; |
| 6833 |
} |
| 6834 |
#line 6835 "mrbgems/mruby-compiler/core/y.tab.c" |
| 6835 |
break; |
| 6836 |
|
| 6837 |
case 44: /* command_asgn: defs_head f_opt_arglist_paren '=' command "'rescue' modifier" arg */ |
| 6838 |
#line 1844 "mrbgems/mruby-compiler/core/parse.y" |
| 6839 |
{ |
| 6840 |
(yyval.nd) = (yyvsp[-5].nd); |
| 6841 |
void_expr_error(p, (yyvsp[-2].nd)); |
| 6842 |
defs_setup(p, (yyval.nd), (yyvsp[-4].nd), new_mod_rescue(p, (yyvsp[-2].nd), (yyvsp[0].nd))); |
| 6843 |
nvars_unnest(p); |
| 6844 |
p->in_def--; |
| 6845 |
p->in_single--; |
| 6846 |
} |
| 6847 |
#line 6848 "mrbgems/mruby-compiler/core/y.tab.c" |
| 6848 |
break; |
| 6849 |
|
| 6850 |
case 45: /* command_asgn: backref tOP_ASGN command_rhs */ |
| 6851 |
#line 1853 "mrbgems/mruby-compiler/core/parse.y" |
| 6852 |
{ |
| 6853 |
backref_error(p, (yyvsp[-2].nd)); |
| 6854 |
(yyval.nd) = new_begin(p, 0); |
| 6855 |
} |
| 6856 |
#line 6857 "mrbgems/mruby-compiler/core/y.tab.c" |
| 6857 |
break; |
| 6858 |
|
| 6859 |
case 47: /* command_rhs: command_call "'rescue' modifier" stmt */ |
| 6860 |
#line 1861 "mrbgems/mruby-compiler/core/parse.y" |
| 6861 |
{ |
| 6862 |
(yyval.nd) = new_mod_rescue(p, (yyvsp[-2].nd), (yyvsp[0].nd)); |
| 6863 |
} |
| 6864 |
#line 6865 "mrbgems/mruby-compiler/core/y.tab.c" |
| 6865 |
break; |
| 6866 |
|
| 6867 |
case 50: /* expr: expr "'and'" expr */ |
| 6868 |
#line 1870 "mrbgems/mruby-compiler/core/parse.y" |
| 6869 |
{ |
| 6870 |
(yyval.nd) = new_and(p, (yyvsp[-2].nd), (yyvsp[0].nd)); |
| 6871 |
} |
| 6872 |
#line 6873 "mrbgems/mruby-compiler/core/y.tab.c" |
| 6873 |
break; |
| 6874 |
|
| 6875 |
case 51: /* expr: expr "'or'" expr */ |
| 6876 |
#line 1874 "mrbgems/mruby-compiler/core/parse.y" |
| 6877 |
{ |
| 6878 |
(yyval.nd) = new_or(p, (yyvsp[-2].nd), (yyvsp[0].nd)); |
| 6879 |
} |
| 6880 |
#line 6881 "mrbgems/mruby-compiler/core/y.tab.c" |
| 6881 |
break; |
| 6882 |
|
| 6883 |
case 52: /* expr: "'not'" opt_nl expr */ |
| 6884 |
#line 1878 "mrbgems/mruby-compiler/core/parse.y" |
| 6885 |
{ |
| 6886 |
(yyval.nd) = call_uni_op(p, cond((yyvsp[0].nd)), "!"); |
| 6887 |
} |
| 6888 |
#line 6889 "mrbgems/mruby-compiler/core/y.tab.c" |
| 6889 |
break; |
| 6890 |
|
| 6891 |
case 53: /* expr: '!' command_call */ |
| 6892 |
#line 1882 "mrbgems/mruby-compiler/core/parse.y" |
| 6893 |
{ |
| 6894 |
(yyval.nd) = call_uni_op(p, cond((yyvsp[0].nd)), "!"); |
| 6895 |
} |
| 6896 |
#line 6897 "mrbgems/mruby-compiler/core/y.tab.c" |
| 6897 |
break; |
| 6898 |
|
| 6899 |
case 55: /* defn_head: "'def'" fname */ |
| 6900 |
#line 1890 "mrbgems/mruby-compiler/core/parse.y" |
| 6901 |
{ |
| 6902 |
(yyval.nd) = new_def(p, (yyvsp[0].id), nint(p->cmdarg_stack), local_switch(p)); |
| 6903 |
p->cmdarg_stack = 0; |
| 6904 |
p->in_def++; |
| 6905 |
nvars_block(p); |
| 6906 |
} |
| 6907 |
#line 6908 "mrbgems/mruby-compiler/core/y.tab.c" |
| 6908 |
break; |
| 6909 |
|
| 6910 |
case 56: /* $@4: %empty */ |
| 6911 |
#line 1899 "mrbgems/mruby-compiler/core/parse.y" |
| 6912 |
{ |
| 6913 |
p->lstate = EXPR_FNAME; |
| 6914 |
} |
| 6915 |
#line 6916 "mrbgems/mruby-compiler/core/y.tab.c" |
| 6916 |
break; |
| 6917 |
|
| 6918 |
case 57: /* defs_head: "'def'" singleton dot_or_colon $@4 fname */ |
| 6919 |
#line 1903 "mrbgems/mruby-compiler/core/parse.y" |
| 6920 |
{ |
| 6921 |
(yyval.nd) = new_sdef(p, (yyvsp[-3].nd), (yyvsp[0].id), nint(p->cmdarg_stack), local_switch(p)); |
| 6922 |
p->cmdarg_stack = 0; |
| 6923 |
p->in_def++; |
| 6924 |
p->in_single++; |
| 6925 |
nvars_block(p); |
| 6926 |
p->lstate = EXPR_ENDFN; /* force for args */ |
| 6927 |
} |
| 6928 |
#line 6929 "mrbgems/mruby-compiler/core/y.tab.c" |
| 6929 |
break; |
| 6930 |
|
| 6931 |
case 58: /* expr_value: expr */ |
| 6932 |
#line 1914 "mrbgems/mruby-compiler/core/parse.y" |
| 6933 |
{ |
| 6934 |
if (!(yyvsp[0].nd)) (yyval.nd) = new_nil(p); |
| 6935 |
else { |
| 6936 |
(yyval.nd) = (yyvsp[0].nd); |
| 6937 |
} |
| 6938 |
} |
| 6939 |
#line 6940 "mrbgems/mruby-compiler/core/y.tab.c" |
| 6940 |
break; |
| 6941 |
|
| 6942 |
case 62: /* block_command: block_call call_op2 operation2 command_args */ |
| 6943 |
#line 1928 "mrbgems/mruby-compiler/core/parse.y" |
| 6944 |
{ |
| 6945 |
(yyval.nd) = new_call(p, (yyvsp[-3].nd), (yyvsp[-1].id), (yyvsp[0].nd), (yyvsp[-2].num)); |
| 6946 |
} |
| 6947 |
#line 6948 "mrbgems/mruby-compiler/core/y.tab.c" |
| 6948 |
break; |
| 6949 |
|
| 6950 |
case 63: /* $@5: %empty */ |
| 6951 |
#line 1934 "mrbgems/mruby-compiler/core/parse.y" |
| 6952 |
{ |
| 6953 |
local_nest(p); |
| 6954 |
nvars_nest(p); |
| 6955 |
} |
| 6956 |
#line 6957 "mrbgems/mruby-compiler/core/y.tab.c" |
| 6957 |
break; |
| 6958 |
|
| 6959 |
case 64: /* cmd_brace_block: "{" $@5 opt_block_param compstmt '}' */ |
| 6960 |
#line 1941 "mrbgems/mruby-compiler/core/parse.y" |
| 6961 |
{ |
| 6962 |
(yyval.nd) = new_block(p, (yyvsp[-2].nd), (yyvsp[-1].nd)); |
| 6963 |
local_unnest(p); |
| 6964 |
nvars_unnest(p); |
| 6965 |
} |
| 6966 |
#line 6967 "mrbgems/mruby-compiler/core/y.tab.c" |
| 6967 |
break; |
| 6968 |
|
| 6969 |
case 65: /* command: operation command_args */ |
| 6970 |
#line 1949 "mrbgems/mruby-compiler/core/parse.y" |
| 6971 |
{ |
| 6972 |
(yyval.nd) = new_fcall(p, (yyvsp[-1].id), (yyvsp[0].nd)); |
| 6973 |
} |
| 6974 |
#line 6975 "mrbgems/mruby-compiler/core/y.tab.c" |
| 6975 |
break; |
| 6976 |
|
| 6977 |
case 66: /* command: operation command_args cmd_brace_block */ |
| 6978 |
#line 1953 "mrbgems/mruby-compiler/core/parse.y" |
| 6979 |
{ |
| 6980 |
args_with_block(p, (yyvsp[-1].nd), (yyvsp[0].nd)); |
| 6981 |
(yyval.nd) = new_fcall(p, (yyvsp[-2].id), (yyvsp[-1].nd)); |
| 6982 |
} |
| 6983 |
#line 6984 "mrbgems/mruby-compiler/core/y.tab.c" |
| 6984 |
break; |
| 6985 |
|
| 6986 |
case 67: /* command: primary_value call_op operation2 command_args */ |
| 6987 |
#line 1958 "mrbgems/mruby-compiler/core/parse.y" |
| 6988 |
{ |
| 6989 |
(yyval.nd) = new_call(p, (yyvsp[-3].nd), (yyvsp[-1].id), (yyvsp[0].nd), (yyvsp[-2].num)); |
| 6990 |
} |
| 6991 |
#line 6992 "mrbgems/mruby-compiler/core/y.tab.c" |
| 6992 |
break; |
| 6993 |
|
| 6994 |
case 68: /* command: primary_value call_op operation2 command_args cmd_brace_block */ |
| 6995 |
#line 1962 "mrbgems/mruby-compiler/core/parse.y" |
| 6996 |
{ |
| 6997 |
args_with_block(p, (yyvsp[-1].nd), (yyvsp[0].nd)); |
| 6998 |
(yyval.nd) = new_call(p, (yyvsp[-4].nd), (yyvsp[-2].id), (yyvsp[-1].nd), (yyvsp[-3].num)); |
| 6999 |
} |
| 7000 |
#line 7001 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7001 |
break; |
| 7002 |
|
| 7003 |
case 69: /* command: primary_value "::" operation2 command_args */ |
| 7004 |
#line 1967 "mrbgems/mruby-compiler/core/parse.y" |
| 7005 |
{ |
| 7006 |
(yyval.nd) = new_call(p, (yyvsp[-3].nd), (yyvsp[-1].id), (yyvsp[0].nd), tCOLON2); |
| 7007 |
} |
| 7008 |
#line 7009 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7009 |
break; |
| 7010 |
|
| 7011 |
case 70: /* command: primary_value "::" operation2 command_args cmd_brace_block */ |
| 7012 |
#line 1971 "mrbgems/mruby-compiler/core/parse.y" |
| 7013 |
{ |
| 7014 |
args_with_block(p, (yyvsp[-1].nd), (yyvsp[0].nd)); |
| 7015 |
(yyval.nd) = new_call(p, (yyvsp[-4].nd), (yyvsp[-2].id), (yyvsp[-1].nd), tCOLON2); |
| 7016 |
} |
| 7017 |
#line 7018 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7018 |
break; |
| 7019 |
|
| 7020 |
case 71: /* command: "'super'" command_args */ |
| 7021 |
#line 1976 "mrbgems/mruby-compiler/core/parse.y" |
| 7022 |
{ |
| 7023 |
(yyval.nd) = new_super(p, (yyvsp[0].nd)); |
| 7024 |
} |
| 7025 |
#line 7026 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7026 |
break; |
| 7027 |
|
| 7028 |
case 72: /* command: "'yield'" command_args */ |
| 7029 |
#line 1980 "mrbgems/mruby-compiler/core/parse.y" |
| 7030 |
{ |
| 7031 |
(yyval.nd) = new_yield(p, (yyvsp[0].nd)); |
| 7032 |
} |
| 7033 |
#line 7034 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7034 |
break; |
| 7035 |
|
| 7036 |
case 73: /* command: "'return'" call_args */ |
| 7037 |
#line 1984 "mrbgems/mruby-compiler/core/parse.y" |
| 7038 |
{ |
| 7039 |
(yyval.nd) = new_return(p, ret_args(p, (yyvsp[0].nd))); |
| 7040 |
} |
| 7041 |
#line 7042 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7042 |
break; |
| 7043 |
|
| 7044 |
case 74: /* command: "'break'" call_args */ |
| 7045 |
#line 1988 "mrbgems/mruby-compiler/core/parse.y" |
| 7046 |
{ |
| 7047 |
(yyval.nd) = new_break(p, ret_args(p, (yyvsp[0].nd))); |
| 7048 |
} |
| 7049 |
#line 7050 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7050 |
break; |
| 7051 |
|
| 7052 |
case 75: /* command: "'next'" call_args */ |
| 7053 |
#line 1992 "mrbgems/mruby-compiler/core/parse.y" |
| 7054 |
{ |
| 7055 |
(yyval.nd) = new_next(p, ret_args(p, (yyvsp[0].nd))); |
| 7056 |
} |
| 7057 |
#line 7058 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7058 |
break; |
| 7059 |
|
| 7060 |
case 76: /* mlhs: mlhs_basic */ |
| 7061 |
#line 1998 "mrbgems/mruby-compiler/core/parse.y" |
| 7062 |
{ |
| 7063 |
(yyval.nd) = (yyvsp[0].nd); |
| 7064 |
} |
| 7065 |
#line 7066 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7066 |
break; |
| 7067 |
|
| 7068 |
case 77: /* mlhs: tLPAREN mlhs_inner rparen */ |
| 7069 |
#line 2002 "mrbgems/mruby-compiler/core/parse.y" |
| 7070 |
{ |
| 7071 |
(yyval.nd) = (yyvsp[-1].nd); |
| 7072 |
} |
| 7073 |
#line 7074 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7074 |
break; |
| 7075 |
|
| 7076 |
case 79: /* mlhs_inner: tLPAREN mlhs_inner rparen */ |
| 7077 |
#line 2009 "mrbgems/mruby-compiler/core/parse.y" |
| 7078 |
{ |
| 7079 |
(yyval.nd) = (yyvsp[-1].nd); |
| 7080 |
} |
| 7081 |
#line 7082 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7082 |
break; |
| 7083 |
|
| 7084 |
case 80: /* mlhs_basic: mlhs_list */ |
| 7085 |
#line 2015 "mrbgems/mruby-compiler/core/parse.y" |
| 7086 |
{ |
| 7087 |
(yyval.nd) = list1((yyvsp[0].nd)); |
| 7088 |
} |
| 7089 |
#line 7090 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7090 |
break; |
| 7091 |
|
| 7092 |
case 81: /* mlhs_basic: mlhs_list mlhs_item */ |
| 7093 |
#line 2019 "mrbgems/mruby-compiler/core/parse.y" |
| 7094 |
{ |
| 7095 |
(yyval.nd) = list1(push((yyvsp[-1].nd),(yyvsp[0].nd))); |
| 7096 |
} |
| 7097 |
#line 7098 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7098 |
break; |
| 7099 |
|
| 7100 |
case 82: /* mlhs_basic: mlhs_list "*" mlhs_node */ |
| 7101 |
#line 2023 "mrbgems/mruby-compiler/core/parse.y" |
| 7102 |
{ |
| 7103 |
(yyval.nd) = list2((yyvsp[-2].nd), (yyvsp[0].nd)); |
| 7104 |
} |
| 7105 |
#line 7106 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7106 |
break; |
| 7107 |
|
| 7108 |
case 83: /* mlhs_basic: mlhs_list "*" mlhs_node ',' mlhs_post */ |
| 7109 |
#line 2027 "mrbgems/mruby-compiler/core/parse.y" |
| 7110 |
{ |
| 7111 |
(yyval.nd) = list3((yyvsp[-4].nd), (yyvsp[-2].nd), (yyvsp[0].nd)); |
| 7112 |
} |
| 7113 |
#line 7114 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7114 |
break; |
| 7115 |
|
| 7116 |
case 84: /* mlhs_basic: mlhs_list "*" */ |
| 7117 |
#line 2031 "mrbgems/mruby-compiler/core/parse.y" |
| 7118 |
{ |
| 7119 |
(yyval.nd) = list2((yyvsp[-1].nd), new_nil(p)); |
| 7120 |
} |
| 7121 |
#line 7122 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7122 |
break; |
| 7123 |
|
| 7124 |
case 85: /* mlhs_basic: mlhs_list "*" ',' mlhs_post */ |
| 7125 |
#line 2035 "mrbgems/mruby-compiler/core/parse.y" |
| 7126 |
{ |
| 7127 |
(yyval.nd) = list3((yyvsp[-3].nd), new_nil(p), (yyvsp[0].nd)); |
| 7128 |
} |
| 7129 |
#line 7130 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7130 |
break; |
| 7131 |
|
| 7132 |
case 86: /* mlhs_basic: "*" mlhs_node */ |
| 7133 |
#line 2039 "mrbgems/mruby-compiler/core/parse.y" |
| 7134 |
{ |
| 7135 |
(yyval.nd) = list2(0, (yyvsp[0].nd)); |
| 7136 |
} |
| 7137 |
#line 7138 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7138 |
break; |
| 7139 |
|
| 7140 |
case 87: /* mlhs_basic: "*" mlhs_node ',' mlhs_post */ |
| 7141 |
#line 2043 "mrbgems/mruby-compiler/core/parse.y" |
| 7142 |
{ |
| 7143 |
(yyval.nd) = list3(0, (yyvsp[-2].nd), (yyvsp[0].nd)); |
| 7144 |
} |
| 7145 |
#line 7146 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7146 |
break; |
| 7147 |
|
| 7148 |
case 88: /* mlhs_basic: "*" */ |
| 7149 |
#line 2047 "mrbgems/mruby-compiler/core/parse.y" |
| 7150 |
{ |
| 7151 |
(yyval.nd) = list2(0, new_nil(p)); |
| 7152 |
} |
| 7153 |
#line 7154 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7154 |
break; |
| 7155 |
|
| 7156 |
case 89: /* mlhs_basic: "*" ',' mlhs_post */ |
| 7157 |
#line 2051 "mrbgems/mruby-compiler/core/parse.y" |
| 7158 |
{ |
| 7159 |
(yyval.nd) = list3(0, new_nil(p), (yyvsp[0].nd)); |
| 7160 |
} |
| 7161 |
#line 7162 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7162 |
break; |
| 7163 |
|
| 7164 |
case 91: /* mlhs_item: tLPAREN mlhs_inner rparen */ |
| 7165 |
#line 2058 "mrbgems/mruby-compiler/core/parse.y" |
| 7166 |
{ |
| 7167 |
(yyval.nd) = new_masgn(p, (yyvsp[-1].nd), NULL); |
| 7168 |
} |
| 7169 |
#line 7170 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7170 |
break; |
| 7171 |
|
| 7172 |
case 92: /* mlhs_list: mlhs_item ',' */ |
| 7173 |
#line 2064 "mrbgems/mruby-compiler/core/parse.y" |
| 7174 |
{ |
| 7175 |
(yyval.nd) = list1((yyvsp[-1].nd)); |
| 7176 |
} |
| 7177 |
#line 7178 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7178 |
break; |
| 7179 |
|
| 7180 |
case 93: /* mlhs_list: mlhs_list mlhs_item ',' */ |
| 7181 |
#line 2068 "mrbgems/mruby-compiler/core/parse.y" |
| 7182 |
{ |
| 7183 |
(yyval.nd) = push((yyvsp[-2].nd), (yyvsp[-1].nd)); |
| 7184 |
} |
| 7185 |
#line 7186 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7186 |
break; |
| 7187 |
|
| 7188 |
case 94: /* mlhs_post: mlhs_item */ |
| 7189 |
#line 2074 "mrbgems/mruby-compiler/core/parse.y" |
| 7190 |
{ |
| 7191 |
(yyval.nd) = list1((yyvsp[0].nd)); |
| 7192 |
} |
| 7193 |
#line 7194 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7194 |
break; |
| 7195 |
|
| 7196 |
case 95: /* mlhs_post: mlhs_list mlhs_item */ |
| 7197 |
#line 2078 "mrbgems/mruby-compiler/core/parse.y" |
| 7198 |
{ |
| 7199 |
(yyval.nd) = push((yyvsp[-1].nd), (yyvsp[0].nd)); |
| 7200 |
} |
| 7201 |
#line 7202 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7202 |
break; |
| 7203 |
|
| 7204 |
case 96: /* mlhs_node: variable */ |
| 7205 |
#line 2084 "mrbgems/mruby-compiler/core/parse.y" |
| 7206 |
{ |
| 7207 |
assignable(p, (yyvsp[0].nd)); |
| 7208 |
} |
| 7209 |
#line 7210 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7210 |
break; |
| 7211 |
|
| 7212 |
case 97: /* mlhs_node: primary_value '[' opt_call_args ']' */ |
| 7213 |
#line 2088 "mrbgems/mruby-compiler/core/parse.y" |
| 7214 |
{ |
| 7215 |
(yyval.nd) = new_call(p, (yyvsp[-3].nd), intern_op(aref), (yyvsp[-1].nd), '.'); |
| 7216 |
} |
| 7217 |
#line 7218 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7218 |
break; |
| 7219 |
|
| 7220 |
case 98: /* mlhs_node: primary_value call_op "local variable or method" */ |
| 7221 |
#line 2092 "mrbgems/mruby-compiler/core/parse.y" |
| 7222 |
{ |
| 7223 |
(yyval.nd) = new_call(p, (yyvsp[-2].nd), (yyvsp[0].id), 0, (yyvsp[-1].num)); |
| 7224 |
} |
| 7225 |
#line 7226 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7226 |
break; |
| 7227 |
|
| 7228 |
case 99: /* mlhs_node: primary_value "::" "local variable or method" */ |
| 7229 |
#line 2096 "mrbgems/mruby-compiler/core/parse.y" |
| 7230 |
{ |
| 7231 |
(yyval.nd) = new_call(p, (yyvsp[-2].nd), (yyvsp[0].id), 0, tCOLON2); |
| 7232 |
} |
| 7233 |
#line 7234 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7234 |
break; |
| 7235 |
|
| 7236 |
case 100: /* mlhs_node: primary_value call_op "constant" */ |
| 7237 |
#line 2100 "mrbgems/mruby-compiler/core/parse.y" |
| 7238 |
{ |
| 7239 |
(yyval.nd) = new_call(p, (yyvsp[-2].nd), (yyvsp[0].id), 0, (yyvsp[-1].num)); |
| 7240 |
} |
| 7241 |
#line 7242 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7242 |
break; |
| 7243 |
|
| 7244 |
case 101: /* mlhs_node: primary_value "::" "constant" */ |
| 7245 |
#line 2104 "mrbgems/mruby-compiler/core/parse.y" |
| 7246 |
{ |
| 7247 |
if (p->in_def || p->in_single) |
| 7248 |
yyerror(p, "dynamic constant assignment"); |
| 7249 |
(yyval.nd) = new_colon2(p, (yyvsp[-2].nd), (yyvsp[0].id)); |
| 7250 |
} |
| 7251 |
#line 7252 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7252 |
break; |
| 7253 |
|
| 7254 |
case 102: /* mlhs_node: tCOLON3 "constant" */ |
| 7255 |
#line 2110 "mrbgems/mruby-compiler/core/parse.y" |
| 7256 |
{ |
| 7257 |
if (p->in_def || p->in_single) |
| 7258 |
yyerror(p, "dynamic constant assignment"); |
| 7259 |
(yyval.nd) = new_colon3(p, (yyvsp[0].id)); |
| 7260 |
} |
| 7261 |
#line 7262 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7262 |
break; |
| 7263 |
|
| 7264 |
case 103: /* mlhs_node: backref */ |
| 7265 |
#line 2116 "mrbgems/mruby-compiler/core/parse.y" |
| 7266 |
{ |
| 7267 |
backref_error(p, (yyvsp[0].nd)); |
| 7268 |
(yyval.nd) = 0; |
| 7269 |
} |
| 7270 |
#line 7271 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7271 |
break; |
| 7272 |
|
| 7273 |
case 104: /* lhs: variable */ |
| 7274 |
#line 2123 "mrbgems/mruby-compiler/core/parse.y" |
| 7275 |
{ |
| 7276 |
assignable(p, (yyvsp[0].nd)); |
| 7277 |
} |
| 7278 |
#line 7279 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7279 |
break; |
| 7280 |
|
| 7281 |
case 105: /* lhs: primary_value '[' opt_call_args ']' */ |
| 7282 |
#line 2127 "mrbgems/mruby-compiler/core/parse.y" |
| 7283 |
{ |
| 7284 |
(yyval.nd) = new_call(p, (yyvsp[-3].nd), intern_op(aref), (yyvsp[-1].nd), '.'); |
| 7285 |
} |
| 7286 |
#line 7287 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7287 |
break; |
| 7288 |
|
| 7289 |
case 106: /* lhs: primary_value call_op "local variable or method" */ |
| 7290 |
#line 2131 "mrbgems/mruby-compiler/core/parse.y" |
| 7291 |
{ |
| 7292 |
(yyval.nd) = new_call(p, (yyvsp[-2].nd), (yyvsp[0].id), 0, (yyvsp[-1].num)); |
| 7293 |
} |
| 7294 |
#line 7295 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7295 |
break; |
| 7296 |
|
| 7297 |
case 107: /* lhs: primary_value "::" "local variable or method" */ |
| 7298 |
#line 2135 "mrbgems/mruby-compiler/core/parse.y" |
| 7299 |
{ |
| 7300 |
(yyval.nd) = new_call(p, (yyvsp[-2].nd), (yyvsp[0].id), 0, tCOLON2); |
| 7301 |
} |
| 7302 |
#line 7303 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7303 |
break; |
| 7304 |
|
| 7305 |
case 108: /* lhs: primary_value call_op "constant" */ |
| 7306 |
#line 2139 "mrbgems/mruby-compiler/core/parse.y" |
| 7307 |
{ |
| 7308 |
(yyval.nd) = new_call(p, (yyvsp[-2].nd), (yyvsp[0].id), 0, (yyvsp[-1].num)); |
| 7309 |
} |
| 7310 |
#line 7311 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7311 |
break; |
| 7312 |
|
| 7313 |
case 109: /* lhs: primary_value "::" "constant" */ |
| 7314 |
#line 2143 "mrbgems/mruby-compiler/core/parse.y" |
| 7315 |
{ |
| 7316 |
if (p->in_def || p->in_single) |
| 7317 |
yyerror(p, "dynamic constant assignment"); |
| 7318 |
(yyval.nd) = new_colon2(p, (yyvsp[-2].nd), (yyvsp[0].id)); |
| 7319 |
} |
| 7320 |
#line 7321 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7321 |
break; |
| 7322 |
|
| 7323 |
case 110: /* lhs: tCOLON3 "constant" */ |
| 7324 |
#line 2149 "mrbgems/mruby-compiler/core/parse.y" |
| 7325 |
{ |
| 7326 |
if (p->in_def || p->in_single) |
| 7327 |
yyerror(p, "dynamic constant assignment"); |
| 7328 |
(yyval.nd) = new_colon3(p, (yyvsp[0].id)); |
| 7329 |
} |
| 7330 |
#line 7331 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7331 |
break; |
| 7332 |
|
| 7333 |
case 111: /* lhs: backref */ |
| 7334 |
#line 2155 "mrbgems/mruby-compiler/core/parse.y" |
| 7335 |
{ |
| 7336 |
backref_error(p, (yyvsp[0].nd)); |
| 7337 |
(yyval.nd) = 0; |
| 7338 |
} |
| 7339 |
#line 7340 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7340 |
break; |
| 7341 |
|
| 7342 |
case 112: /* lhs: "numbered parameter" */ |
| 7343 |
#line 2160 "mrbgems/mruby-compiler/core/parse.y" |
| 7344 |
{ |
| 7345 |
yyerror(p, "can't assign to numbered parameter"); |
| 7346 |
} |
| 7347 |
#line 7348 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7348 |
break; |
| 7349 |
|
| 7350 |
case 113: /* cname: "local variable or method" */ |
| 7351 |
#line 2166 "mrbgems/mruby-compiler/core/parse.y" |
| 7352 |
{ |
| 7353 |
yyerror(p, "class/module name must be CONSTANT"); |
| 7354 |
} |
| 7355 |
#line 7356 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7356 |
break; |
| 7357 |
|
| 7358 |
case 115: /* cpath: tCOLON3 cname */ |
| 7359 |
#line 2173 "mrbgems/mruby-compiler/core/parse.y" |
| 7360 |
{ |
| 7361 |
(yyval.nd) = cons(nint(1), nsym((yyvsp[0].id))); |
| 7362 |
} |
| 7363 |
#line 7364 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7364 |
break; |
| 7365 |
|
| 7366 |
case 116: /* cpath: cname */ |
| 7367 |
#line 2177 "mrbgems/mruby-compiler/core/parse.y" |
| 7368 |
{ |
| 7369 |
(yyval.nd) = cons(nint(0), nsym((yyvsp[0].id))); |
| 7370 |
} |
| 7371 |
#line 7372 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7372 |
break; |
| 7373 |
|
| 7374 |
case 117: /* cpath: primary_value "::" cname */ |
| 7375 |
#line 2181 "mrbgems/mruby-compiler/core/parse.y" |
| 7376 |
{ |
| 7377 |
void_expr_error(p, (yyvsp[-2].nd)); |
| 7378 |
(yyval.nd) = cons((yyvsp[-2].nd), nsym((yyvsp[0].id))); |
| 7379 |
} |
| 7380 |
#line 7381 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7381 |
break; |
| 7382 |
|
| 7383 |
case 121: /* fname: op */ |
| 7384 |
#line 2191 "mrbgems/mruby-compiler/core/parse.y" |
| 7385 |
{ |
| 7386 |
p->lstate = EXPR_ENDFN; |
| 7387 |
(yyval.id) = (yyvsp[0].id); |
| 7388 |
} |
| 7389 |
#line 7390 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7390 |
break; |
| 7391 |
|
| 7392 |
case 122: /* fname: reswords */ |
| 7393 |
#line 2196 "mrbgems/mruby-compiler/core/parse.y" |
| 7394 |
{ |
| 7395 |
p->lstate = EXPR_ENDFN; |
| 7396 |
(yyval.id) = (yyvsp[0].id); |
| 7397 |
} |
| 7398 |
#line 7399 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7399 |
break; |
| 7400 |
|
| 7401 |
case 125: /* undef_list: fsym */ |
| 7402 |
#line 2207 "mrbgems/mruby-compiler/core/parse.y" |
| 7403 |
{ |
| 7404 |
(yyval.nd) = new_undef(p, (yyvsp[0].id)); |
| 7405 |
} |
| 7406 |
#line 7407 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7407 |
break; |
| 7408 |
|
| 7409 |
case 126: /* $@6: %empty */ |
| 7410 |
#line 2210 "mrbgems/mruby-compiler/core/parse.y" |
| 7411 |
{p->lstate = EXPR_FNAME;} |
| 7412 |
#line 7413 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7413 |
break; |
| 7414 |
|
| 7415 |
case 127: /* undef_list: undef_list ',' $@6 fsym */ |
| 7416 |
#line 2211 "mrbgems/mruby-compiler/core/parse.y" |
| 7417 |
{ |
| 7418 |
(yyval.nd) = push((yyvsp[-3].nd), nsym((yyvsp[0].id))); |
| 7419 |
} |
| 7420 |
#line 7421 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7421 |
break; |
| 7422 |
|
| 7423 |
case 128: /* op: '|' */ |
| 7424 |
#line 2216 "mrbgems/mruby-compiler/core/parse.y" |
| 7425 |
{ (yyval.id) = intern_op(or); } |
| 7426 |
#line 7427 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7427 |
break; |
| 7428 |
|
| 7429 |
case 129: /* op: '^' */ |
| 7430 |
#line 2217 "mrbgems/mruby-compiler/core/parse.y" |
| 7431 |
{ (yyval.id) = intern_op(xor); } |
| 7432 |
#line 7433 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7433 |
break; |
| 7434 |
|
| 7435 |
case 130: /* op: '&' */ |
| 7436 |
#line 2218 "mrbgems/mruby-compiler/core/parse.y" |
| 7437 |
{ (yyval.id) = intern_op(and); } |
| 7438 |
#line 7439 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7439 |
break; |
| 7440 |
|
| 7441 |
case 131: /* op: "<=>" */ |
| 7442 |
#line 2219 "mrbgems/mruby-compiler/core/parse.y" |
| 7443 |
{ (yyval.id) = intern_op(cmp); } |
| 7444 |
#line 7445 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7445 |
break; |
| 7446 |
|
| 7447 |
case 132: /* op: "==" */ |
| 7448 |
#line 2220 "mrbgems/mruby-compiler/core/parse.y" |
| 7449 |
{ (yyval.id) = intern_op(eq); } |
| 7450 |
#line 7451 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7451 |
break; |
| 7452 |
|
| 7453 |
case 133: /* op: "===" */ |
| 7454 |
#line 2221 "mrbgems/mruby-compiler/core/parse.y" |
| 7455 |
{ (yyval.id) = intern_op(eqq); } |
| 7456 |
#line 7457 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7457 |
break; |
| 7458 |
|
| 7459 |
case 134: /* op: "=~" */ |
| 7460 |
#line 2222 "mrbgems/mruby-compiler/core/parse.y" |
| 7461 |
{ (yyval.id) = intern_op(match); } |
| 7462 |
#line 7463 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7463 |
break; |
| 7464 |
|
| 7465 |
case 135: /* op: "!~" */ |
| 7466 |
#line 2223 "mrbgems/mruby-compiler/core/parse.y" |
| 7467 |
{ (yyval.id) = intern_op(nmatch); } |
| 7468 |
#line 7469 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7469 |
break; |
| 7470 |
|
| 7471 |
case 136: /* op: '>' */ |
| 7472 |
#line 2224 "mrbgems/mruby-compiler/core/parse.y" |
| 7473 |
{ (yyval.id) = intern_op(gt); } |
| 7474 |
#line 7475 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7475 |
break; |
| 7476 |
|
| 7477 |
case 137: /* op: ">=" */ |
| 7478 |
#line 2225 "mrbgems/mruby-compiler/core/parse.y" |
| 7479 |
{ (yyval.id) = intern_op(ge); } |
| 7480 |
#line 7481 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7481 |
break; |
| 7482 |
|
| 7483 |
case 138: /* op: '<' */ |
| 7484 |
#line 2226 "mrbgems/mruby-compiler/core/parse.y" |
| 7485 |
{ (yyval.id) = intern_op(lt); } |
| 7486 |
#line 7487 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7487 |
break; |
| 7488 |
|
| 7489 |
case 139: /* op: "<=" */ |
| 7490 |
#line 2227 "mrbgems/mruby-compiler/core/parse.y" |
| 7491 |
{ (yyval.id) = intern_op(le); } |
| 7492 |
#line 7493 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7493 |
break; |
| 7494 |
|
| 7495 |
case 140: /* op: "!=" */ |
| 7496 |
#line 2228 "mrbgems/mruby-compiler/core/parse.y" |
| 7497 |
{ (yyval.id) = intern_op(neq); } |
| 7498 |
#line 7499 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7499 |
break; |
| 7500 |
|
| 7501 |
case 141: /* op: "<<" */ |
| 7502 |
#line 2229 "mrbgems/mruby-compiler/core/parse.y" |
| 7503 |
{ (yyval.id) = intern_op(lshift); } |
| 7504 |
#line 7505 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7505 |
break; |
| 7506 |
|
| 7507 |
case 142: /* op: ">>" */ |
| 7508 |
#line 2230 "mrbgems/mruby-compiler/core/parse.y" |
| 7509 |
{ (yyval.id) = intern_op(rshift); } |
| 7510 |
#line 7511 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7511 |
break; |
| 7512 |
|
| 7513 |
case 143: /* op: '+' */ |
| 7514 |
#line 2231 "mrbgems/mruby-compiler/core/parse.y" |
| 7515 |
{ (yyval.id) = intern_op(add); } |
| 7516 |
#line 7517 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7517 |
break; |
| 7518 |
|
| 7519 |
case 144: /* op: '-' */ |
| 7520 |
#line 2232 "mrbgems/mruby-compiler/core/parse.y" |
| 7521 |
{ (yyval.id) = intern_op(sub); } |
| 7522 |
#line 7523 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7523 |
break; |
| 7524 |
|
| 7525 |
case 145: /* op: '*' */ |
| 7526 |
#line 2233 "mrbgems/mruby-compiler/core/parse.y" |
| 7527 |
{ (yyval.id) = intern_op(mul); } |
| 7528 |
#line 7529 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7529 |
break; |
| 7530 |
|
| 7531 |
case 146: /* op: "*" */ |
| 7532 |
#line 2234 "mrbgems/mruby-compiler/core/parse.y" |
| 7533 |
{ (yyval.id) = intern_op(mul); } |
| 7534 |
#line 7535 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7535 |
break; |
| 7536 |
|
| 7537 |
case 147: /* op: '/' */ |
| 7538 |
#line 2235 "mrbgems/mruby-compiler/core/parse.y" |
| 7539 |
{ (yyval.id) = intern_op(div); } |
| 7540 |
#line 7541 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7541 |
break; |
| 7542 |
|
| 7543 |
case 148: /* op: '%' */ |
| 7544 |
#line 2236 "mrbgems/mruby-compiler/core/parse.y" |
| 7545 |
{ (yyval.id) = intern_op(mod); } |
| 7546 |
#line 7547 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7547 |
break; |
| 7548 |
|
| 7549 |
case 149: /* op: tPOW */ |
| 7550 |
#line 2237 "mrbgems/mruby-compiler/core/parse.y" |
| 7551 |
{ (yyval.id) = intern_op(pow); } |
| 7552 |
#line 7553 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7553 |
break; |
| 7554 |
|
| 7555 |
case 150: /* op: "**" */ |
| 7556 |
#line 2238 "mrbgems/mruby-compiler/core/parse.y" |
| 7557 |
{ (yyval.id) = intern_op(pow); } |
| 7558 |
#line 7559 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7559 |
break; |
| 7560 |
|
| 7561 |
case 151: /* op: '!' */ |
| 7562 |
#line 2239 "mrbgems/mruby-compiler/core/parse.y" |
| 7563 |
{ (yyval.id) = intern_op(not); } |
| 7564 |
#line 7565 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7565 |
break; |
| 7566 |
|
| 7567 |
case 152: /* op: '~' */ |
| 7568 |
#line 2240 "mrbgems/mruby-compiler/core/parse.y" |
| 7569 |
{ (yyval.id) = intern_op(neg); } |
| 7570 |
#line 7571 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7571 |
break; |
| 7572 |
|
| 7573 |
case 153: /* op: "unary plus" */ |
| 7574 |
#line 2241 "mrbgems/mruby-compiler/core/parse.y" |
| 7575 |
{ (yyval.id) = intern_op(plus); } |
| 7576 |
#line 7577 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7577 |
break; |
| 7578 |
|
| 7579 |
case 154: /* op: "unary minus" */ |
| 7580 |
#line 2242 "mrbgems/mruby-compiler/core/parse.y" |
| 7581 |
{ (yyval.id) = intern_op(minus); } |
| 7582 |
#line 7583 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7583 |
break; |
| 7584 |
|
| 7585 |
case 155: /* op: tAREF */ |
| 7586 |
#line 2243 "mrbgems/mruby-compiler/core/parse.y" |
| 7587 |
{ (yyval.id) = intern_op(aref); } |
| 7588 |
#line 7589 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7589 |
break; |
| 7590 |
|
| 7591 |
case 156: /* op: tASET */ |
| 7592 |
#line 2244 "mrbgems/mruby-compiler/core/parse.y" |
| 7593 |
{ (yyval.id) = intern_op(aset); } |
| 7594 |
#line 7595 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7595 |
break; |
| 7596 |
|
| 7597 |
case 157: /* op: '`' */ |
| 7598 |
#line 2245 "mrbgems/mruby-compiler/core/parse.y" |
| 7599 |
{ (yyval.id) = intern_op(tick); } |
| 7600 |
#line 7601 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7601 |
break; |
| 7602 |
|
| 7603 |
case 198: /* arg: lhs '=' arg_rhs */ |
| 7604 |
#line 2263 "mrbgems/mruby-compiler/core/parse.y" |
| 7605 |
{ |
| 7606 |
(yyval.nd) = new_asgn(p, (yyvsp[-2].nd), (yyvsp[0].nd)); |
| 7607 |
} |
| 7608 |
#line 7609 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7609 |
break; |
| 7610 |
|
| 7611 |
case 199: /* arg: var_lhs tOP_ASGN arg_rhs */ |
| 7612 |
#line 2267 "mrbgems/mruby-compiler/core/parse.y" |
| 7613 |
{ |
| 7614 |
(yyval.nd) = new_op_asgn(p, (yyvsp[-2].nd), (yyvsp[-1].id), (yyvsp[0].nd)); |
| 7615 |
} |
| 7616 |
#line 7617 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7617 |
break; |
| 7618 |
|
| 7619 |
case 200: /* arg: primary_value '[' opt_call_args ']' tOP_ASGN arg_rhs */ |
| 7620 |
#line 2271 "mrbgems/mruby-compiler/core/parse.y" |
| 7621 |
{ |
| 7622 |
(yyval.nd) = new_op_asgn(p, new_call(p, (yyvsp[-5].nd), intern_op(aref), (yyvsp[-3].nd), '.'), (yyvsp[-1].id), (yyvsp[0].nd)); |
| 7623 |
} |
| 7624 |
#line 7625 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7625 |
break; |
| 7626 |
|
| 7627 |
case 201: /* arg: primary_value call_op "local variable or method" tOP_ASGN arg_rhs */ |
| 7628 |
#line 2275 "mrbgems/mruby-compiler/core/parse.y" |
| 7629 |
{ |
| 7630 |
(yyval.nd) = new_op_asgn(p, new_call(p, (yyvsp[-4].nd), (yyvsp[-2].id), 0, (yyvsp[-3].num)), (yyvsp[-1].id), (yyvsp[0].nd)); |
| 7631 |
} |
| 7632 |
#line 7633 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7633 |
break; |
| 7634 |
|
| 7635 |
case 202: /* arg: primary_value call_op "constant" tOP_ASGN arg_rhs */ |
| 7636 |
#line 2279 "mrbgems/mruby-compiler/core/parse.y" |
| 7637 |
{ |
| 7638 |
(yyval.nd) = new_op_asgn(p, new_call(p, (yyvsp[-4].nd), (yyvsp[-2].id), 0, (yyvsp[-3].num)), (yyvsp[-1].id), (yyvsp[0].nd)); |
| 7639 |
} |
| 7640 |
#line 7641 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7641 |
break; |
| 7642 |
|
| 7643 |
case 203: /* arg: primary_value "::" "local variable or method" tOP_ASGN arg_rhs */ |
| 7644 |
#line 2283 "mrbgems/mruby-compiler/core/parse.y" |
| 7645 |
{ |
| 7646 |
(yyval.nd) = new_op_asgn(p, new_call(p, (yyvsp[-4].nd), (yyvsp[-2].id), 0, tCOLON2), (yyvsp[-1].id), (yyvsp[0].nd)); |
| 7647 |
} |
| 7648 |
#line 7649 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7649 |
break; |
| 7650 |
|
| 7651 |
case 204: /* arg: primary_value "::" "constant" tOP_ASGN arg_rhs */ |
| 7652 |
#line 2287 "mrbgems/mruby-compiler/core/parse.y" |
| 7653 |
{ |
| 7654 |
yyerror(p, "constant re-assignment"); |
| 7655 |
(yyval.nd) = new_begin(p, 0); |
| 7656 |
} |
| 7657 |
#line 7658 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7658 |
break; |
| 7659 |
|
| 7660 |
case 205: /* arg: tCOLON3 "constant" tOP_ASGN arg_rhs */ |
| 7661 |
#line 2292 "mrbgems/mruby-compiler/core/parse.y" |
| 7662 |
{ |
| 7663 |
yyerror(p, "constant re-assignment"); |
| 7664 |
(yyval.nd) = new_begin(p, 0); |
| 7665 |
} |
| 7666 |
#line 7667 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7667 |
break; |
| 7668 |
|
| 7669 |
case 206: /* arg: backref tOP_ASGN arg_rhs */ |
| 7670 |
#line 2297 "mrbgems/mruby-compiler/core/parse.y" |
| 7671 |
{ |
| 7672 |
backref_error(p, (yyvsp[-2].nd)); |
| 7673 |
(yyval.nd) = new_begin(p, 0); |
| 7674 |
} |
| 7675 |
#line 7676 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7676 |
break; |
| 7677 |
|
| 7678 |
case 207: /* arg: arg ".." arg */ |
| 7679 |
#line 2302 "mrbgems/mruby-compiler/core/parse.y" |
| 7680 |
{ |
| 7681 |
(yyval.nd) = new_dot2(p, (yyvsp[-2].nd), (yyvsp[0].nd)); |
| 7682 |
} |
| 7683 |
#line 7684 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7684 |
break; |
| 7685 |
|
| 7686 |
case 208: /* arg: arg ".." */ |
| 7687 |
#line 2306 "mrbgems/mruby-compiler/core/parse.y" |
| 7688 |
{ |
| 7689 |
(yyval.nd) = new_dot2(p, (yyvsp[-1].nd), new_nil(p)); |
| 7690 |
} |
| 7691 |
#line 7692 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7692 |
break; |
| 7693 |
|
| 7694 |
case 209: /* arg: tBDOT2 arg */ |
| 7695 |
#line 2310 "mrbgems/mruby-compiler/core/parse.y" |
| 7696 |
{ |
| 7697 |
(yyval.nd) = new_dot2(p, new_nil(p), (yyvsp[0].nd)); |
| 7698 |
} |
| 7699 |
#line 7700 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7700 |
break; |
| 7701 |
|
| 7702 |
case 210: /* arg: arg "..." arg */ |
| 7703 |
#line 2314 "mrbgems/mruby-compiler/core/parse.y" |
| 7704 |
{ |
| 7705 |
(yyval.nd) = new_dot3(p, (yyvsp[-2].nd), (yyvsp[0].nd)); |
| 7706 |
} |
| 7707 |
#line 7708 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7708 |
break; |
| 7709 |
|
| 7710 |
case 211: /* arg: arg "..." */ |
| 7711 |
#line 2318 "mrbgems/mruby-compiler/core/parse.y" |
| 7712 |
{ |
| 7713 |
(yyval.nd) = new_dot3(p, (yyvsp[-1].nd), new_nil(p)); |
| 7714 |
} |
| 7715 |
#line 7716 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7716 |
break; |
| 7717 |
|
| 7718 |
case 212: /* arg: tBDOT3 arg */ |
| 7719 |
#line 2322 "mrbgems/mruby-compiler/core/parse.y" |
| 7720 |
{ |
| 7721 |
(yyval.nd) = new_dot3(p, new_nil(p), (yyvsp[0].nd)); |
| 7722 |
} |
| 7723 |
#line 7724 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7724 |
break; |
| 7725 |
|
| 7726 |
case 213: /* arg: arg '+' arg */ |
| 7727 |
#line 2326 "mrbgems/mruby-compiler/core/parse.y" |
| 7728 |
{ |
| 7729 |
(yyval.nd) = call_bin_op(p, (yyvsp[-2].nd), "+", (yyvsp[0].nd)); |
| 7730 |
} |
| 7731 |
#line 7732 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7732 |
break; |
| 7733 |
|
| 7734 |
case 214: /* arg: arg '-' arg */ |
| 7735 |
#line 2330 "mrbgems/mruby-compiler/core/parse.y" |
| 7736 |
{ |
| 7737 |
(yyval.nd) = call_bin_op(p, (yyvsp[-2].nd), "-", (yyvsp[0].nd)); |
| 7738 |
} |
| 7739 |
#line 7740 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7740 |
break; |
| 7741 |
|
| 7742 |
case 215: /* arg: arg '*' arg */ |
| 7743 |
#line 2334 "mrbgems/mruby-compiler/core/parse.y" |
| 7744 |
{ |
| 7745 |
(yyval.nd) = call_bin_op(p, (yyvsp[-2].nd), "*", (yyvsp[0].nd)); |
| 7746 |
} |
| 7747 |
#line 7748 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7748 |
break; |
| 7749 |
|
| 7750 |
case 216: /* arg: arg '/' arg */ |
| 7751 |
#line 2338 "mrbgems/mruby-compiler/core/parse.y" |
| 7752 |
{ |
| 7753 |
(yyval.nd) = call_bin_op(p, (yyvsp[-2].nd), "/", (yyvsp[0].nd)); |
| 7754 |
} |
| 7755 |
#line 7756 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7756 |
break; |
| 7757 |
|
| 7758 |
case 217: /* arg: arg '%' arg */ |
| 7759 |
#line 2342 "mrbgems/mruby-compiler/core/parse.y" |
| 7760 |
{ |
| 7761 |
(yyval.nd) = call_bin_op(p, (yyvsp[-2].nd), "%", (yyvsp[0].nd)); |
| 7762 |
} |
| 7763 |
#line 7764 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7764 |
break; |
| 7765 |
|
| 7766 |
case 218: /* arg: arg tPOW arg */ |
| 7767 |
#line 2346 "mrbgems/mruby-compiler/core/parse.y" |
| 7768 |
{ |
| 7769 |
(yyval.nd) = call_bin_op(p, (yyvsp[-2].nd), "**", (yyvsp[0].nd)); |
| 7770 |
} |
| 7771 |
#line 7772 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7772 |
break; |
| 7773 |
|
| 7774 |
case 219: /* arg: tUMINUS_NUM "integer literal" tPOW arg */ |
| 7775 |
#line 2350 "mrbgems/mruby-compiler/core/parse.y" |
| 7776 |
{ |
| 7777 |
(yyval.nd) = new_negate(p, call_bin_op(p, (yyvsp[-2].nd), "**", (yyvsp[0].nd))); |
| 7778 |
} |
| 7779 |
#line 7780 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7780 |
break; |
| 7781 |
|
| 7782 |
case 220: /* arg: tUMINUS_NUM "float literal" tPOW arg */ |
| 7783 |
#line 2354 "mrbgems/mruby-compiler/core/parse.y" |
| 7784 |
{ |
| 7785 |
(yyval.nd) = new_negate(p, call_bin_op(p, (yyvsp[-2].nd), "**", (yyvsp[0].nd))); |
| 7786 |
} |
| 7787 |
#line 7788 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7788 |
break; |
| 7789 |
|
| 7790 |
case 221: /* arg: "unary plus" arg */ |
| 7791 |
#line 2358 "mrbgems/mruby-compiler/core/parse.y" |
| 7792 |
{ |
| 7793 |
(yyval.nd) = call_uni_op(p, (yyvsp[0].nd), "+@"); |
| 7794 |
} |
| 7795 |
#line 7796 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7796 |
break; |
| 7797 |
|
| 7798 |
case 222: /* arg: "unary minus" arg */ |
| 7799 |
#line 2362 "mrbgems/mruby-compiler/core/parse.y" |
| 7800 |
{ |
| 7801 |
(yyval.nd) = new_negate(p, (yyvsp[0].nd)); |
| 7802 |
} |
| 7803 |
#line 7804 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7804 |
break; |
| 7805 |
|
| 7806 |
case 223: /* arg: arg '|' arg */ |
| 7807 |
#line 2366 "mrbgems/mruby-compiler/core/parse.y" |
| 7808 |
{ |
| 7809 |
(yyval.nd) = call_bin_op(p, (yyvsp[-2].nd), "|", (yyvsp[0].nd)); |
| 7810 |
} |
| 7811 |
#line 7812 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7812 |
break; |
| 7813 |
|
| 7814 |
case 224: /* arg: arg '^' arg */ |
| 7815 |
#line 2370 "mrbgems/mruby-compiler/core/parse.y" |
| 7816 |
{ |
| 7817 |
(yyval.nd) = call_bin_op(p, (yyvsp[-2].nd), "^", (yyvsp[0].nd)); |
| 7818 |
} |
| 7819 |
#line 7820 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7820 |
break; |
| 7821 |
|
| 7822 |
case 225: /* arg: arg '&' arg */ |
| 7823 |
#line 2374 "mrbgems/mruby-compiler/core/parse.y" |
| 7824 |
{ |
| 7825 |
(yyval.nd) = call_bin_op(p, (yyvsp[-2].nd), "&", (yyvsp[0].nd)); |
| 7826 |
} |
| 7827 |
#line 7828 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7828 |
break; |
| 7829 |
|
| 7830 |
case 226: /* arg: arg "<=>" arg */ |
| 7831 |
#line 2378 "mrbgems/mruby-compiler/core/parse.y" |
| 7832 |
{ |
| 7833 |
(yyval.nd) = call_bin_op(p, (yyvsp[-2].nd), "<=>", (yyvsp[0].nd)); |
| 7834 |
} |
| 7835 |
#line 7836 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7836 |
break; |
| 7837 |
|
| 7838 |
case 227: /* arg: arg '>' arg */ |
| 7839 |
#line 2382 "mrbgems/mruby-compiler/core/parse.y" |
| 7840 |
{ |
| 7841 |
(yyval.nd) = call_bin_op(p, (yyvsp[-2].nd), ">", (yyvsp[0].nd)); |
| 7842 |
} |
| 7843 |
#line 7844 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7844 |
break; |
| 7845 |
|
| 7846 |
case 228: /* arg: arg ">=" arg */ |
| 7847 |
#line 2386 "mrbgems/mruby-compiler/core/parse.y" |
| 7848 |
{ |
| 7849 |
(yyval.nd) = call_bin_op(p, (yyvsp[-2].nd), ">=", (yyvsp[0].nd)); |
| 7850 |
} |
| 7851 |
#line 7852 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7852 |
break; |
| 7853 |
|
| 7854 |
case 229: /* arg: arg '<' arg */ |
| 7855 |
#line 2390 "mrbgems/mruby-compiler/core/parse.y" |
| 7856 |
{ |
| 7857 |
(yyval.nd) = call_bin_op(p, (yyvsp[-2].nd), "<", (yyvsp[0].nd)); |
| 7858 |
} |
| 7859 |
#line 7860 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7860 |
break; |
| 7861 |
|
| 7862 |
case 230: /* arg: arg "<=" arg */ |
| 7863 |
#line 2394 "mrbgems/mruby-compiler/core/parse.y" |
| 7864 |
{ |
| 7865 |
(yyval.nd) = call_bin_op(p, (yyvsp[-2].nd), "<=", (yyvsp[0].nd)); |
| 7866 |
} |
| 7867 |
#line 7868 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7868 |
break; |
| 7869 |
|
| 7870 |
case 231: /* arg: arg "==" arg */ |
| 7871 |
#line 2398 "mrbgems/mruby-compiler/core/parse.y" |
| 7872 |
{ |
| 7873 |
(yyval.nd) = call_bin_op(p, (yyvsp[-2].nd), "==", (yyvsp[0].nd)); |
| 7874 |
} |
| 7875 |
#line 7876 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7876 |
break; |
| 7877 |
|
| 7878 |
case 232: /* arg: arg "===" arg */ |
| 7879 |
#line 2402 "mrbgems/mruby-compiler/core/parse.y" |
| 7880 |
{ |
| 7881 |
(yyval.nd) = call_bin_op(p, (yyvsp[-2].nd), "===", (yyvsp[0].nd)); |
| 7882 |
} |
| 7883 |
#line 7884 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7884 |
break; |
| 7885 |
|
| 7886 |
case 233: /* arg: arg "!=" arg */ |
| 7887 |
#line 2406 "mrbgems/mruby-compiler/core/parse.y" |
| 7888 |
{ |
| 7889 |
(yyval.nd) = call_bin_op(p, (yyvsp[-2].nd), "!=", (yyvsp[0].nd)); |
| 7890 |
} |
| 7891 |
#line 7892 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7892 |
break; |
| 7893 |
|
| 7894 |
case 234: /* arg: arg "=~" arg */ |
| 7895 |
#line 2410 "mrbgems/mruby-compiler/core/parse.y" |
| 7896 |
{ |
| 7897 |
(yyval.nd) = call_bin_op(p, (yyvsp[-2].nd), "=~", (yyvsp[0].nd)); |
| 7898 |
} |
| 7899 |
#line 7900 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7900 |
break; |
| 7901 |
|
| 7902 |
case 235: /* arg: arg "!~" arg */ |
| 7903 |
#line 2414 "mrbgems/mruby-compiler/core/parse.y" |
| 7904 |
{ |
| 7905 |
(yyval.nd) = call_bin_op(p, (yyvsp[-2].nd), "!~", (yyvsp[0].nd)); |
| 7906 |
} |
| 7907 |
#line 7908 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7908 |
break; |
| 7909 |
|
| 7910 |
case 236: /* arg: '!' arg */ |
| 7911 |
#line 2418 "mrbgems/mruby-compiler/core/parse.y" |
| 7912 |
{ |
| 7913 |
(yyval.nd) = call_uni_op(p, cond((yyvsp[0].nd)), "!"); |
| 7914 |
} |
| 7915 |
#line 7916 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7916 |
break; |
| 7917 |
|
| 7918 |
case 237: /* arg: '~' arg */ |
| 7919 |
#line 2422 "mrbgems/mruby-compiler/core/parse.y" |
| 7920 |
{ |
| 7921 |
(yyval.nd) = call_uni_op(p, cond((yyvsp[0].nd)), "~"); |
| 7922 |
} |
| 7923 |
#line 7924 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7924 |
break; |
| 7925 |
|
| 7926 |
case 238: /* arg: arg "<<" arg */ |
| 7927 |
#line 2426 "mrbgems/mruby-compiler/core/parse.y" |
| 7928 |
{ |
| 7929 |
(yyval.nd) = call_bin_op(p, (yyvsp[-2].nd), "<<", (yyvsp[0].nd)); |
| 7930 |
} |
| 7931 |
#line 7932 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7932 |
break; |
| 7933 |
|
| 7934 |
case 239: /* arg: arg ">>" arg */ |
| 7935 |
#line 2430 "mrbgems/mruby-compiler/core/parse.y" |
| 7936 |
{ |
| 7937 |
(yyval.nd) = call_bin_op(p, (yyvsp[-2].nd), ">>", (yyvsp[0].nd)); |
| 7938 |
} |
| 7939 |
#line 7940 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7940 |
break; |
| 7941 |
|
| 7942 |
case 240: /* arg: arg "&&" arg */ |
| 7943 |
#line 2434 "mrbgems/mruby-compiler/core/parse.y" |
| 7944 |
{ |
| 7945 |
(yyval.nd) = new_and(p, (yyvsp[-2].nd), (yyvsp[0].nd)); |
| 7946 |
} |
| 7947 |
#line 7948 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7948 |
break; |
| 7949 |
|
| 7950 |
case 241: /* arg: arg "||" arg */ |
| 7951 |
#line 2438 "mrbgems/mruby-compiler/core/parse.y" |
| 7952 |
{ |
| 7953 |
(yyval.nd) = new_or(p, (yyvsp[-2].nd), (yyvsp[0].nd)); |
| 7954 |
} |
| 7955 |
#line 7956 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7956 |
break; |
| 7957 |
|
| 7958 |
case 242: /* arg: arg '?' arg opt_nl ':' arg */ |
| 7959 |
#line 2442 "mrbgems/mruby-compiler/core/parse.y" |
| 7960 |
{ |
| 7961 |
(yyval.nd) = new_if(p, cond((yyvsp[-5].nd)), (yyvsp[-3].nd), (yyvsp[0].nd)); |
| 7962 |
} |
| 7963 |
#line 7964 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7964 |
break; |
| 7965 |
|
| 7966 |
case 243: /* arg: arg '?' arg opt_nl "label" arg */ |
| 7967 |
#line 2446 "mrbgems/mruby-compiler/core/parse.y" |
| 7968 |
{ |
| 7969 |
(yyval.nd) = new_if(p, cond((yyvsp[-5].nd)), (yyvsp[-3].nd), (yyvsp[0].nd)); |
| 7970 |
} |
| 7971 |
#line 7972 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7972 |
break; |
| 7973 |
|
| 7974 |
case 244: /* arg: defn_head f_opt_arglist_paren '=' arg */ |
| 7975 |
#line 2450 "mrbgems/mruby-compiler/core/parse.y" |
| 7976 |
{ |
| 7977 |
(yyval.nd) = (yyvsp[-3].nd); |
| 7978 |
endless_method_name(p, (yyvsp[-3].nd)); |
| 7979 |
void_expr_error(p, (yyvsp[0].nd)); |
| 7980 |
defn_setup(p, (yyval.nd), (yyvsp[-2].nd), (yyvsp[0].nd)); |
| 7981 |
nvars_unnest(p); |
| 7982 |
p->in_def--; |
| 7983 |
} |
| 7984 |
#line 7985 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7985 |
break; |
| 7986 |
|
| 7987 |
case 245: /* arg: defn_head f_opt_arglist_paren '=' arg "'rescue' modifier" arg */ |
| 7988 |
#line 2459 "mrbgems/mruby-compiler/core/parse.y" |
| 7989 |
{ |
| 7990 |
(yyval.nd) = (yyvsp[-5].nd); |
| 7991 |
endless_method_name(p, (yyvsp[-5].nd)); |
| 7992 |
void_expr_error(p, (yyvsp[-2].nd)); |
| 7993 |
defn_setup(p, (yyval.nd), (yyvsp[-4].nd), new_mod_rescue(p, (yyvsp[-2].nd), (yyvsp[0].nd))); |
| 7994 |
nvars_unnest(p); |
| 7995 |
p->in_def--; |
| 7996 |
} |
| 7997 |
#line 7998 "mrbgems/mruby-compiler/core/y.tab.c" |
| 7998 |
break; |
| 7999 |
|
| 8000 |
case 246: /* arg: defs_head f_opt_arglist_paren '=' arg */ |
| 8001 |
#line 2468 "mrbgems/mruby-compiler/core/parse.y" |
| 8002 |
{ |
| 8003 |
(yyval.nd) = (yyvsp[-3].nd); |
| 8004 |
void_expr_error(p, (yyvsp[0].nd)); |
| 8005 |
defs_setup(p, (yyval.nd), (yyvsp[-2].nd), (yyvsp[0].nd)); |
| 8006 |
nvars_unnest(p); |
| 8007 |
p->in_def--; |
| 8008 |
p->in_single--; |
| 8009 |
} |
| 8010 |
#line 8011 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8011 |
break; |
| 8012 |
|
| 8013 |
case 247: /* arg: defs_head f_opt_arglist_paren '=' arg "'rescue' modifier" arg */ |
| 8014 |
#line 2477 "mrbgems/mruby-compiler/core/parse.y" |
| 8015 |
{ |
| 8016 |
(yyval.nd) = (yyvsp[-5].nd); |
| 8017 |
void_expr_error(p, (yyvsp[-2].nd)); |
| 8018 |
defs_setup(p, (yyval.nd), (yyvsp[-4].nd), new_mod_rescue(p, (yyvsp[-2].nd), (yyvsp[0].nd))); |
| 8019 |
nvars_unnest(p); |
| 8020 |
p->in_def--; |
| 8021 |
p->in_single--; |
| 8022 |
} |
| 8023 |
#line 8024 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8024 |
break; |
| 8025 |
|
| 8026 |
case 248: /* arg: primary */ |
| 8027 |
#line 2486 "mrbgems/mruby-compiler/core/parse.y" |
| 8028 |
{ |
| 8029 |
(yyval.nd) = (yyvsp[0].nd); |
| 8030 |
} |
| 8031 |
#line 8032 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8032 |
break; |
| 8033 |
|
| 8034 |
case 250: /* aref_args: args trailer */ |
| 8035 |
#line 2493 "mrbgems/mruby-compiler/core/parse.y" |
| 8036 |
{ |
| 8037 |
(yyval.nd) = (yyvsp[-1].nd); |
| 8038 |
NODE_LINENO((yyval.nd), (yyvsp[-1].nd)); |
| 8039 |
} |
| 8040 |
#line 8041 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8041 |
break; |
| 8042 |
|
| 8043 |
case 251: /* aref_args: args comma assocs trailer */ |
| 8044 |
#line 2498 "mrbgems/mruby-compiler/core/parse.y" |
| 8045 |
{ |
| 8046 |
(yyval.nd) = push((yyvsp[-3].nd), new_hash(p, (yyvsp[-1].nd))); |
| 8047 |
} |
| 8048 |
#line 8049 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8049 |
break; |
| 8050 |
|
| 8051 |
case 252: /* aref_args: assocs trailer */ |
| 8052 |
#line 2502 "mrbgems/mruby-compiler/core/parse.y" |
| 8053 |
{ |
| 8054 |
(yyval.nd) = cons(new_kw_hash(p, (yyvsp[-1].nd)), 0); |
| 8055 |
NODE_LINENO((yyval.nd), (yyvsp[-1].nd)); |
| 8056 |
} |
| 8057 |
#line 8058 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8058 |
break; |
| 8059 |
|
| 8060 |
case 253: /* arg_rhs: arg */ |
| 8061 |
#line 2509 "mrbgems/mruby-compiler/core/parse.y" |
| 8062 |
{ |
| 8063 |
(yyval.nd) = (yyvsp[0].nd); |
| 8064 |
} |
| 8065 |
#line 8066 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8066 |
break; |
| 8067 |
|
| 8068 |
case 254: /* arg_rhs: arg "'rescue' modifier" arg */ |
| 8069 |
#line 2513 "mrbgems/mruby-compiler/core/parse.y" |
| 8070 |
{ |
| 8071 |
void_expr_error(p, (yyvsp[-2].nd)); |
| 8072 |
(yyval.nd) = new_mod_rescue(p, (yyvsp[-2].nd), (yyvsp[0].nd)); |
| 8073 |
} |
| 8074 |
#line 8075 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8075 |
break; |
| 8076 |
|
| 8077 |
case 255: /* paren_args: '(' opt_call_args ')' */ |
| 8078 |
#line 2520 "mrbgems/mruby-compiler/core/parse.y" |
| 8079 |
{ |
| 8080 |
(yyval.nd) = (yyvsp[-1].nd); |
| 8081 |
} |
| 8082 |
#line 8083 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8083 |
break; |
| 8084 |
|
| 8085 |
case 256: /* paren_args: '(' args comma tBDOT3 rparen */ |
| 8086 |
#line 2524 "mrbgems/mruby-compiler/core/parse.y" |
| 8087 |
{ |
| 8088 |
mrb_sym r = intern_op(mul); |
| 8089 |
mrb_sym k = intern_op(pow); |
| 8090 |
mrb_sym b = intern_op(and); |
| 8091 |
(yyval.nd) = new_callargs(p, push((yyvsp[-3].nd), new_splat(p, new_lvar(p, r))), |
| 8092 |
new_kw_hash(p, list1(cons(new_kw_rest_args(p, 0), new_lvar(p, k)))), |
| 8093 |
new_block_arg(p, new_lvar(p, b))); |
| 8094 |
} |
| 8095 |
#line 8096 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8096 |
break; |
| 8097 |
|
| 8098 |
case 257: /* paren_args: '(' tBDOT3 rparen */ |
| 8099 |
#line 2533 "mrbgems/mruby-compiler/core/parse.y" |
| 8100 |
{ |
| 8101 |
mrb_sym r = intern_op(mul); |
| 8102 |
mrb_sym k = intern_op(pow); |
| 8103 |
mrb_sym b = intern_op(and); |
| 8104 |
if (local_var_p(p, r) && local_var_p(p, k) && local_var_p(p, b)) { |
| 8105 |
(yyval.nd) = new_callargs(p, list1(new_splat(p, new_lvar(p, r))), |
| 8106 |
new_kw_hash(p, list1(cons(new_kw_rest_args(p, 0), new_lvar(p, k)))), |
| 8107 |
new_block_arg(p, new_lvar(p, b))); |
| 8108 |
} |
| 8109 |
else { |
| 8110 |
yyerror(p, "unexpected argument forwarding ..."); |
| 8111 |
(yyval.nd) = 0; |
| 8112 |
} |
| 8113 |
} |
| 8114 |
#line 8115 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8115 |
break; |
| 8116 |
|
| 8117 |
case 262: /* opt_call_args: args comma */ |
| 8118 |
#line 2556 "mrbgems/mruby-compiler/core/parse.y" |
| 8119 |
{ |
| 8120 |
(yyval.nd) = new_callargs(p,(yyvsp[-1].nd),0,0); |
| 8121 |
NODE_LINENO((yyval.nd), (yyvsp[-1].nd)); |
| 8122 |
} |
| 8123 |
#line 8124 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8124 |
break; |
| 8125 |
|
| 8126 |
case 263: /* opt_call_args: args comma assocs comma */ |
| 8127 |
#line 2561 "mrbgems/mruby-compiler/core/parse.y" |
| 8128 |
{ |
| 8129 |
(yyval.nd) = new_callargs(p,(yyvsp[-3].nd),new_kw_hash(p,(yyvsp[-1].nd)),0); |
| 8130 |
NODE_LINENO((yyval.nd), (yyvsp[-3].nd)); |
| 8131 |
} |
| 8132 |
#line 8133 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8133 |
break; |
| 8134 |
|
| 8135 |
case 264: /* opt_call_args: assocs comma */ |
| 8136 |
#line 2566 "mrbgems/mruby-compiler/core/parse.y" |
| 8137 |
{ |
| 8138 |
(yyval.nd) = new_callargs(p,0,new_kw_hash(p,(yyvsp[-1].nd)),0); |
| 8139 |
NODE_LINENO((yyval.nd), (yyvsp[-1].nd)); |
| 8140 |
} |
| 8141 |
#line 8142 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8142 |
break; |
| 8143 |
|
| 8144 |
case 265: /* call_args: command */ |
| 8145 |
#line 2573 "mrbgems/mruby-compiler/core/parse.y" |
| 8146 |
{ |
| 8147 |
void_expr_error(p, (yyvsp[0].nd)); |
| 8148 |
(yyval.nd) = new_callargs(p, list1((yyvsp[0].nd)), 0, 0); |
| 8149 |
NODE_LINENO((yyval.nd), (yyvsp[0].nd)); |
| 8150 |
} |
| 8151 |
#line 8152 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8152 |
break; |
| 8153 |
|
| 8154 |
case 266: /* call_args: args opt_block_arg */ |
| 8155 |
#line 2579 "mrbgems/mruby-compiler/core/parse.y" |
| 8156 |
{ |
| 8157 |
(yyval.nd) = new_callargs(p, (yyvsp[-1].nd), 0, (yyvsp[0].nd)); |
| 8158 |
NODE_LINENO((yyval.nd), (yyvsp[-1].nd)); |
| 8159 |
} |
| 8160 |
#line 8161 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8161 |
break; |
| 8162 |
|
| 8163 |
case 267: /* call_args: assocs opt_block_arg */ |
| 8164 |
#line 2584 "mrbgems/mruby-compiler/core/parse.y" |
| 8165 |
{ |
| 8166 |
(yyval.nd) = new_callargs(p, 0, new_kw_hash(p, (yyvsp[-1].nd)), (yyvsp[0].nd)); |
| 8167 |
NODE_LINENO((yyval.nd), (yyvsp[-1].nd)); |
| 8168 |
} |
| 8169 |
#line 8170 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8170 |
break; |
| 8171 |
|
| 8172 |
case 268: /* call_args: args comma assocs opt_block_arg */ |
| 8173 |
#line 2589 "mrbgems/mruby-compiler/core/parse.y" |
| 8174 |
{ |
| 8175 |
(yyval.nd) = new_callargs(p, (yyvsp[-3].nd), new_kw_hash(p, (yyvsp[-1].nd)), (yyvsp[0].nd)); |
| 8176 |
NODE_LINENO((yyval.nd), (yyvsp[-3].nd)); |
| 8177 |
} |
| 8178 |
#line 8179 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8179 |
break; |
| 8180 |
|
| 8181 |
case 269: /* call_args: block_arg */ |
| 8182 |
#line 2594 "mrbgems/mruby-compiler/core/parse.y" |
| 8183 |
{ |
| 8184 |
(yyval.nd) = new_callargs(p, 0, 0, (yyvsp[0].nd)); |
| 8185 |
NODE_LINENO((yyval.nd), (yyvsp[0].nd)); |
| 8186 |
} |
| 8187 |
#line 8188 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8188 |
break; |
| 8189 |
|
| 8190 |
case 270: /* @7: %empty */ |
| 8191 |
#line 2600 "mrbgems/mruby-compiler/core/parse.y" |
| 8192 |
{ |
| 8193 |
(yyval.stack) = p->cmdarg_stack; |
| 8194 |
CMDARG_PUSH(1); |
| 8195 |
} |
| 8196 |
#line 8197 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8197 |
break; |
| 8198 |
|
| 8199 |
case 271: /* command_args: @7 call_args */ |
| 8200 |
#line 2605 "mrbgems/mruby-compiler/core/parse.y" |
| 8201 |
{ |
| 8202 |
p->cmdarg_stack = (yyvsp[-1].stack); |
| 8203 |
(yyval.nd) = (yyvsp[0].nd); |
| 8204 |
} |
| 8205 |
#line 8206 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8206 |
break; |
| 8207 |
|
| 8208 |
case 272: /* block_arg: "&" arg */ |
| 8209 |
#line 2612 "mrbgems/mruby-compiler/core/parse.y" |
| 8210 |
{ |
| 8211 |
(yyval.nd) = new_block_arg(p, (yyvsp[0].nd)); |
| 8212 |
} |
| 8213 |
#line 8214 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8214 |
break; |
| 8215 |
|
| 8216 |
case 273: /* block_arg: "&" */ |
| 8217 |
#line 2616 "mrbgems/mruby-compiler/core/parse.y" |
| 8218 |
{ |
| 8219 |
(yyval.nd) = new_block_arg(p, 0); |
| 8220 |
} |
| 8221 |
#line 8222 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8222 |
break; |
| 8223 |
|
| 8224 |
case 274: /* opt_block_arg: comma block_arg */ |
| 8225 |
#line 2622 "mrbgems/mruby-compiler/core/parse.y" |
| 8226 |
{ |
| 8227 |
(yyval.nd) = (yyvsp[0].nd); |
| 8228 |
} |
| 8229 |
#line 8230 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8230 |
break; |
| 8231 |
|
| 8232 |
case 275: /* opt_block_arg: none */ |
| 8233 |
#line 2626 "mrbgems/mruby-compiler/core/parse.y" |
| 8234 |
{ |
| 8235 |
(yyval.nd) = 0; |
| 8236 |
} |
| 8237 |
#line 8238 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8238 |
break; |
| 8239 |
|
| 8240 |
case 277: /* args: arg */ |
| 8241 |
#line 2635 "mrbgems/mruby-compiler/core/parse.y" |
| 8242 |
{ |
| 8243 |
void_expr_error(p, (yyvsp[0].nd)); |
| 8244 |
(yyval.nd) = list1((yyvsp[0].nd)); |
| 8245 |
NODE_LINENO((yyval.nd), (yyvsp[0].nd)); |
| 8246 |
} |
| 8247 |
#line 8248 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8248 |
break; |
| 8249 |
|
| 8250 |
case 278: /* args: "*" */ |
| 8251 |
#line 2641 "mrbgems/mruby-compiler/core/parse.y" |
| 8252 |
{ |
| 8253 |
(yyval.nd) = list1(new_splat(p, new_lvar(p, intern_op(mul)))); |
| 8254 |
} |
| 8255 |
#line 8256 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8256 |
break; |
| 8257 |
|
| 8258 |
case 279: /* args: "*" arg */ |
| 8259 |
#line 2645 "mrbgems/mruby-compiler/core/parse.y" |
| 8260 |
{ |
| 8261 |
(yyval.nd) = list1(new_splat(p, (yyvsp[0].nd))); |
| 8262 |
NODE_LINENO((yyval.nd), (yyvsp[0].nd)); |
| 8263 |
} |
| 8264 |
#line 8265 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8265 |
break; |
| 8266 |
|
| 8267 |
case 280: /* args: args comma arg */ |
| 8268 |
#line 2650 "mrbgems/mruby-compiler/core/parse.y" |
| 8269 |
{ |
| 8270 |
void_expr_error(p, (yyvsp[0].nd)); |
| 8271 |
(yyval.nd) = push((yyvsp[-2].nd), (yyvsp[0].nd)); |
| 8272 |
} |
| 8273 |
#line 8274 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8274 |
break; |
| 8275 |
|
| 8276 |
case 281: /* args: args comma "*" */ |
| 8277 |
#line 2655 "mrbgems/mruby-compiler/core/parse.y" |
| 8278 |
{ |
| 8279 |
(yyval.nd) = push((yyvsp[-2].nd), new_splat(p, new_lvar(p, intern_op(mul)))); |
| 8280 |
} |
| 8281 |
#line 8282 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8282 |
break; |
| 8283 |
|
| 8284 |
case 282: /* args: args comma "*" arg */ |
| 8285 |
#line 2659 "mrbgems/mruby-compiler/core/parse.y" |
| 8286 |
{ |
| 8287 |
(yyval.nd) = push((yyvsp[-3].nd), new_splat(p, (yyvsp[0].nd))); |
| 8288 |
} |
| 8289 |
#line 8290 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8290 |
break; |
| 8291 |
|
| 8292 |
case 283: /* mrhs: args comma arg */ |
| 8293 |
#line 2665 "mrbgems/mruby-compiler/core/parse.y" |
| 8294 |
{ |
| 8295 |
void_expr_error(p, (yyvsp[0].nd)); |
| 8296 |
(yyval.nd) = push((yyvsp[-2].nd), (yyvsp[0].nd)); |
| 8297 |
} |
| 8298 |
#line 8299 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8299 |
break; |
| 8300 |
|
| 8301 |
case 284: /* mrhs: args comma "*" arg */ |
| 8302 |
#line 2670 "mrbgems/mruby-compiler/core/parse.y" |
| 8303 |
{ |
| 8304 |
(yyval.nd) = push((yyvsp[-3].nd), new_splat(p, (yyvsp[0].nd))); |
| 8305 |
} |
| 8306 |
#line 8307 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8307 |
break; |
| 8308 |
|
| 8309 |
case 285: /* mrhs: "*" arg */ |
| 8310 |
#line 2674 "mrbgems/mruby-compiler/core/parse.y" |
| 8311 |
{ |
| 8312 |
(yyval.nd) = list1(new_splat(p, (yyvsp[0].nd))); |
| 8313 |
} |
| 8314 |
#line 8315 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8315 |
break; |
| 8316 |
|
| 8317 |
case 293: /* primary: "numbered parameter" */ |
| 8318 |
#line 2687 "mrbgems/mruby-compiler/core/parse.y" |
| 8319 |
{ |
| 8320 |
(yyval.nd) = new_nvar(p, (yyvsp[0].num)); |
| 8321 |
} |
| 8322 |
#line 8323 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8323 |
break; |
| 8324 |
|
| 8325 |
case 294: /* primary: "method" */ |
| 8326 |
#line 2691 "mrbgems/mruby-compiler/core/parse.y" |
| 8327 |
{ |
| 8328 |
(yyval.nd) = new_fcall(p, (yyvsp[0].id), 0); |
| 8329 |
} |
| 8330 |
#line 8331 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8331 |
break; |
| 8332 |
|
| 8333 |
case 295: /* @8: %empty */ |
| 8334 |
#line 2695 "mrbgems/mruby-compiler/core/parse.y" |
| 8335 |
{ |
| 8336 |
(yyval.stack) = p->cmdarg_stack; |
| 8337 |
p->cmdarg_stack = 0; |
| 8338 |
} |
| 8339 |
#line 8340 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8340 |
break; |
| 8341 |
|
| 8342 |
case 296: /* primary: "'begin'" @8 bodystmt "'end'" */ |
| 8343 |
#line 2701 "mrbgems/mruby-compiler/core/parse.y" |
| 8344 |
{ |
| 8345 |
p->cmdarg_stack = (yyvsp[-2].stack); |
| 8346 |
(yyval.nd) = (yyvsp[-1].nd); |
| 8347 |
} |
| 8348 |
#line 8349 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8349 |
break; |
| 8350 |
|
| 8351 |
case 297: /* @9: %empty */ |
| 8352 |
#line 2706 "mrbgems/mruby-compiler/core/parse.y" |
| 8353 |
{ |
| 8354 |
(yyval.stack) = p->cmdarg_stack; |
| 8355 |
p->cmdarg_stack = 0; |
| 8356 |
} |
| 8357 |
#line 8358 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8358 |
break; |
| 8359 |
|
| 8360 |
case 298: /* $@10: %empty */ |
| 8361 |
#line 2710 "mrbgems/mruby-compiler/core/parse.y" |
| 8362 |
{p->lstate = EXPR_ENDARG;} |
| 8363 |
#line 8364 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8364 |
break; |
| 8365 |
|
| 8366 |
case 299: /* primary: "(" @9 stmt $@10 rparen */ |
| 8367 |
#line 2711 "mrbgems/mruby-compiler/core/parse.y" |
| 8368 |
{ |
| 8369 |
p->cmdarg_stack = (yyvsp[-3].stack); |
| 8370 |
(yyval.nd) = (yyvsp[-2].nd); |
| 8371 |
} |
| 8372 |
#line 8373 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8373 |
break; |
| 8374 |
|
| 8375 |
case 300: /* $@11: %empty */ |
| 8376 |
#line 2715 "mrbgems/mruby-compiler/core/parse.y" |
| 8377 |
{p->lstate = EXPR_ENDARG;} |
| 8378 |
#line 8379 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8379 |
break; |
| 8380 |
|
| 8381 |
case 301: /* primary: "(" $@11 rparen */ |
| 8382 |
#line 2716 "mrbgems/mruby-compiler/core/parse.y" |
| 8383 |
{ |
| 8384 |
(yyval.nd) = new_nil(p); |
| 8385 |
} |
| 8386 |
#line 8387 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8387 |
break; |
| 8388 |
|
| 8389 |
case 302: /* primary: tLPAREN compstmt ')' */ |
| 8390 |
#line 2720 "mrbgems/mruby-compiler/core/parse.y" |
| 8391 |
{ |
| 8392 |
(yyval.nd) = (yyvsp[-1].nd); |
| 8393 |
} |
| 8394 |
#line 8395 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8395 |
break; |
| 8396 |
|
| 8397 |
case 303: /* primary: primary_value "::" "constant" */ |
| 8398 |
#line 2724 "mrbgems/mruby-compiler/core/parse.y" |
| 8399 |
{ |
| 8400 |
(yyval.nd) = new_colon2(p, (yyvsp[-2].nd), (yyvsp[0].id)); |
| 8401 |
} |
| 8402 |
#line 8403 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8403 |
break; |
| 8404 |
|
| 8405 |
case 304: /* primary: tCOLON3 "constant" */ |
| 8406 |
#line 2728 "mrbgems/mruby-compiler/core/parse.y" |
| 8407 |
{ |
| 8408 |
(yyval.nd) = new_colon3(p, (yyvsp[0].id)); |
| 8409 |
} |
| 8410 |
#line 8411 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8411 |
break; |
| 8412 |
|
| 8413 |
case 305: /* primary: "[" aref_args ']' */ |
| 8414 |
#line 2732 "mrbgems/mruby-compiler/core/parse.y" |
| 8415 |
{ |
| 8416 |
(yyval.nd) = new_array(p, (yyvsp[-1].nd)); |
| 8417 |
NODE_LINENO((yyval.nd), (yyvsp[-1].nd)); |
| 8418 |
} |
| 8419 |
#line 8420 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8420 |
break; |
| 8421 |
|
| 8422 |
case 306: /* primary: tLBRACE assoc_list '}' */ |
| 8423 |
#line 2737 "mrbgems/mruby-compiler/core/parse.y" |
| 8424 |
{ |
| 8425 |
(yyval.nd) = new_hash(p, (yyvsp[-1].nd)); |
| 8426 |
NODE_LINENO((yyval.nd), (yyvsp[-1].nd)); |
| 8427 |
} |
| 8428 |
#line 8429 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8429 |
break; |
| 8430 |
|
| 8431 |
case 307: /* primary: "'return'" */ |
| 8432 |
#line 2742 "mrbgems/mruby-compiler/core/parse.y" |
| 8433 |
{ |
| 8434 |
(yyval.nd) = new_return(p, 0); |
| 8435 |
} |
| 8436 |
#line 8437 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8437 |
break; |
| 8438 |
|
| 8439 |
case 308: /* primary: "'yield'" opt_paren_args */ |
| 8440 |
#line 2746 "mrbgems/mruby-compiler/core/parse.y" |
| 8441 |
{ |
| 8442 |
(yyval.nd) = new_yield(p, (yyvsp[0].nd)); |
| 8443 |
} |
| 8444 |
#line 8445 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8445 |
break; |
| 8446 |
|
| 8447 |
case 309: /* primary: "'not'" '(' expr rparen */ |
| 8448 |
#line 2750 "mrbgems/mruby-compiler/core/parse.y" |
| 8449 |
{ |
| 8450 |
(yyval.nd) = call_uni_op(p, cond((yyvsp[-1].nd)), "!"); |
| 8451 |
} |
| 8452 |
#line 8453 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8453 |
break; |
| 8454 |
|
| 8455 |
case 310: /* primary: "'not'" '(' rparen */ |
| 8456 |
#line 2754 "mrbgems/mruby-compiler/core/parse.y" |
| 8457 |
{ |
| 8458 |
(yyval.nd) = call_uni_op(p, new_nil(p), "!"); |
| 8459 |
} |
| 8460 |
#line 8461 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8461 |
break; |
| 8462 |
|
| 8463 |
case 311: /* primary: operation brace_block */ |
| 8464 |
#line 2758 "mrbgems/mruby-compiler/core/parse.y" |
| 8465 |
{ |
| 8466 |
(yyval.nd) = new_fcall(p, (yyvsp[-1].id), new_callargs(p, 0, 0, (yyvsp[0].nd))); |
| 8467 |
} |
| 8468 |
#line 8469 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8469 |
break; |
| 8470 |
|
| 8471 |
case 313: /* primary: method_call brace_block */ |
| 8472 |
#line 2763 "mrbgems/mruby-compiler/core/parse.y" |
| 8473 |
{ |
| 8474 |
call_with_block(p, (yyvsp[-1].nd), (yyvsp[0].nd)); |
| 8475 |
(yyval.nd) = (yyvsp[-1].nd); |
| 8476 |
} |
| 8477 |
#line 8478 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8478 |
break; |
| 8479 |
|
| 8480 |
case 314: /* @12: %empty */ |
| 8481 |
#line 2768 "mrbgems/mruby-compiler/core/parse.y" |
| 8482 |
{ |
| 8483 |
local_nest(p); |
| 8484 |
nvars_nest(p); |
| 8485 |
(yyval.num) = p->lpar_beg; |
| 8486 |
p->lpar_beg = ++p->paren_nest; |
| 8487 |
} |
| 8488 |
#line 8489 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8489 |
break; |
| 8490 |
|
| 8491 |
case 315: /* @13: %empty */ |
| 8492 |
#line 2775 "mrbgems/mruby-compiler/core/parse.y" |
| 8493 |
{ |
| 8494 |
(yyval.stack) = p->cmdarg_stack; |
| 8495 |
p->cmdarg_stack = 0; |
| 8496 |
} |
| 8497 |
#line 8498 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8498 |
break; |
| 8499 |
|
| 8500 |
case 316: /* primary: "->" @12 f_larglist @13 lambda_body */ |
| 8501 |
#line 2780 "mrbgems/mruby-compiler/core/parse.y" |
| 8502 |
{ |
| 8503 |
p->lpar_beg = (yyvsp[-3].num); |
| 8504 |
(yyval.nd) = new_lambda(p, (yyvsp[-2].nd), (yyvsp[0].nd)); |
| 8505 |
local_unnest(p); |
| 8506 |
nvars_unnest(p); |
| 8507 |
p->cmdarg_stack = (yyvsp[-1].stack); |
| 8508 |
CMDARG_LEXPOP(); |
| 8509 |
} |
| 8510 |
#line 8511 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8511 |
break; |
| 8512 |
|
| 8513 |
case 317: /* primary: "'if'" expr_value then compstmt if_tail "'end'" */ |
| 8514 |
#line 2792 "mrbgems/mruby-compiler/core/parse.y" |
| 8515 |
{ |
| 8516 |
(yyval.nd) = new_if(p, cond((yyvsp[-4].nd)), (yyvsp[-2].nd), (yyvsp[-1].nd)); |
| 8517 |
SET_LINENO((yyval.nd), (yyvsp[-5].num)); |
| 8518 |
} |
| 8519 |
#line 8520 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8520 |
break; |
| 8521 |
|
| 8522 |
case 318: /* primary: "'unless'" expr_value then compstmt opt_else "'end'" */ |
| 8523 |
#line 2800 "mrbgems/mruby-compiler/core/parse.y" |
| 8524 |
{ |
| 8525 |
(yyval.nd) = new_unless(p, cond((yyvsp[-4].nd)), (yyvsp[-2].nd), (yyvsp[-1].nd)); |
| 8526 |
SET_LINENO((yyval.nd), (yyvsp[-5].num)); |
| 8527 |
} |
| 8528 |
#line 8529 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8529 |
break; |
| 8530 |
|
| 8531 |
case 319: /* $@14: %empty */ |
| 8532 |
#line 2804 "mrbgems/mruby-compiler/core/parse.y" |
| 8533 |
{COND_PUSH(1);} |
| 8534 |
#line 8535 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8535 |
break; |
| 8536 |
|
| 8537 |
case 320: /* $@15: %empty */ |
| 8538 |
#line 2804 "mrbgems/mruby-compiler/core/parse.y" |
| 8539 |
{COND_POP();} |
| 8540 |
#line 8541 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8541 |
break; |
| 8542 |
|
| 8543 |
case 321: /* primary: "'while'" $@14 expr_value do $@15 compstmt "'end'" */ |
| 8544 |
#line 2807 "mrbgems/mruby-compiler/core/parse.y" |
| 8545 |
{ |
| 8546 |
(yyval.nd) = new_while(p, cond((yyvsp[-4].nd)), (yyvsp[-1].nd)); |
| 8547 |
SET_LINENO((yyval.nd), (yyvsp[-6].num)); |
| 8548 |
} |
| 8549 |
#line 8550 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8550 |
break; |
| 8551 |
|
| 8552 |
case 322: /* $@16: %empty */ |
| 8553 |
#line 2811 "mrbgems/mruby-compiler/core/parse.y" |
| 8554 |
{COND_PUSH(1);} |
| 8555 |
#line 8556 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8556 |
break; |
| 8557 |
|
| 8558 |
case 323: /* $@17: %empty */ |
| 8559 |
#line 2811 "mrbgems/mruby-compiler/core/parse.y" |
| 8560 |
{COND_POP();} |
| 8561 |
#line 8562 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8562 |
break; |
| 8563 |
|
| 8564 |
case 324: /* primary: "'until'" $@16 expr_value do $@17 compstmt "'end'" */ |
| 8565 |
#line 2814 "mrbgems/mruby-compiler/core/parse.y" |
| 8566 |
{ |
| 8567 |
(yyval.nd) = new_until(p, cond((yyvsp[-4].nd)), (yyvsp[-1].nd)); |
| 8568 |
SET_LINENO((yyval.nd), (yyvsp[-6].num)); |
| 8569 |
} |
| 8570 |
#line 8571 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8571 |
break; |
| 8572 |
|
| 8573 |
case 325: /* primary: "'case'" expr_value opt_terms case_body "'end'" */ |
| 8574 |
#line 2821 "mrbgems/mruby-compiler/core/parse.y" |
| 8575 |
{ |
| 8576 |
(yyval.nd) = new_case(p, (yyvsp[-3].nd), (yyvsp[-1].nd)); |
| 8577 |
} |
| 8578 |
#line 8579 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8579 |
break; |
| 8580 |
|
| 8581 |
case 326: /* primary: "'case'" opt_terms case_body "'end'" */ |
| 8582 |
#line 2825 "mrbgems/mruby-compiler/core/parse.y" |
| 8583 |
{ |
| 8584 |
(yyval.nd) = new_case(p, 0, (yyvsp[-1].nd)); |
| 8585 |
} |
| 8586 |
#line 8587 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8587 |
break; |
| 8588 |
|
| 8589 |
case 327: /* $@18: %empty */ |
| 8590 |
#line 2829 "mrbgems/mruby-compiler/core/parse.y" |
| 8591 |
{COND_PUSH(1);} |
| 8592 |
#line 8593 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8593 |
break; |
| 8594 |
|
| 8595 |
case 328: /* $@19: %empty */ |
| 8596 |
#line 2831 "mrbgems/mruby-compiler/core/parse.y" |
| 8597 |
{COND_POP();} |
| 8598 |
#line 8599 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8599 |
break; |
| 8600 |
|
| 8601 |
case 329: /* primary: "'for'" for_var "'in'" $@18 expr_value do $@19 compstmt "'end'" */ |
| 8602 |
#line 2834 "mrbgems/mruby-compiler/core/parse.y" |
| 8603 |
{ |
| 8604 |
(yyval.nd) = new_for(p, (yyvsp[-7].nd), (yyvsp[-4].nd), (yyvsp[-1].nd)); |
| 8605 |
SET_LINENO((yyval.nd), (yyvsp[-8].num)); |
| 8606 |
} |
| 8607 |
#line 8608 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8608 |
break; |
| 8609 |
|
| 8610 |
case 330: /* @20: %empty */ |
| 8611 |
#line 2840 "mrbgems/mruby-compiler/core/parse.y" |
| 8612 |
{ |
| 8613 |
if (p->in_def || p->in_single) |
| 8614 |
yyerror(p, "class definition in method body"); |
| 8615 |
(yyval.nd) = local_switch(p); |
| 8616 |
nvars_block(p); |
| 8617 |
} |
| 8618 |
#line 8619 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8619 |
break; |
| 8620 |
|
| 8621 |
case 331: /* primary: "'class'" cpath superclass @20 bodystmt "'end'" */ |
| 8622 |
#line 2848 "mrbgems/mruby-compiler/core/parse.y" |
| 8623 |
{ |
| 8624 |
(yyval.nd) = new_class(p, (yyvsp[-4].nd), (yyvsp[-3].nd), (yyvsp[-1].nd)); |
| 8625 |
SET_LINENO((yyval.nd), (yyvsp[-5].num)); |
| 8626 |
local_resume(p, (yyvsp[-2].nd)); |
| 8627 |
nvars_unnest(p); |
| 8628 |
} |
| 8629 |
#line 8630 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8630 |
break; |
| 8631 |
|
| 8632 |
case 332: /* @21: %empty */ |
| 8633 |
#line 2856 "mrbgems/mruby-compiler/core/parse.y" |
| 8634 |
{ |
| 8635 |
(yyval.num) = p->in_def; |
| 8636 |
p->in_def = 0; |
| 8637 |
} |
| 8638 |
#line 8639 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8639 |
break; |
| 8640 |
|
| 8641 |
case 333: /* @22: %empty */ |
| 8642 |
#line 2861 "mrbgems/mruby-compiler/core/parse.y" |
| 8643 |
{ |
| 8644 |
(yyval.nd) = cons(local_switch(p), nint(p->in_single)); |
| 8645 |
nvars_block(p); |
| 8646 |
p->in_single = 0; |
| 8647 |
} |
| 8648 |
#line 8649 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8649 |
break; |
| 8650 |
|
| 8651 |
case 334: /* primary: "'class'" "<<" expr @21 term @22 bodystmt "'end'" */ |
| 8652 |
#line 2868 "mrbgems/mruby-compiler/core/parse.y" |
| 8653 |
{ |
| 8654 |
(yyval.nd) = new_sclass(p, (yyvsp[-5].nd), (yyvsp[-1].nd)); |
| 8655 |
SET_LINENO((yyval.nd), (yyvsp[-7].num)); |
| 8656 |
local_resume(p, (yyvsp[-2].nd)->car); |
| 8657 |
nvars_unnest(p); |
| 8658 |
p->in_def = (yyvsp[-4].num); |
| 8659 |
p->in_single = intn((yyvsp[-2].nd)->cdr); |
| 8660 |
} |
| 8661 |
#line 8662 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8662 |
break; |
| 8663 |
|
| 8664 |
case 335: /* @23: %empty */ |
| 8665 |
#line 2878 "mrbgems/mruby-compiler/core/parse.y" |
| 8666 |
{ |
| 8667 |
if (p->in_def || p->in_single) |
| 8668 |
yyerror(p, "module definition in method body"); |
| 8669 |
(yyval.nd) = local_switch(p); |
| 8670 |
nvars_block(p); |
| 8671 |
} |
| 8672 |
#line 8673 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8673 |
break; |
| 8674 |
|
| 8675 |
case 336: /* primary: "'module'" cpath @23 bodystmt "'end'" */ |
| 8676 |
#line 2886 "mrbgems/mruby-compiler/core/parse.y" |
| 8677 |
{ |
| 8678 |
(yyval.nd) = new_module(p, (yyvsp[-3].nd), (yyvsp[-1].nd)); |
| 8679 |
SET_LINENO((yyval.nd), (yyvsp[-4].num)); |
| 8680 |
local_resume(p, (yyvsp[-2].nd)); |
| 8681 |
nvars_unnest(p); |
| 8682 |
} |
| 8683 |
#line 8684 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8684 |
break; |
| 8685 |
|
| 8686 |
case 337: /* primary: defn_head f_arglist bodystmt "'end'" */ |
| 8687 |
#line 2896 "mrbgems/mruby-compiler/core/parse.y" |
| 8688 |
{ |
| 8689 |
(yyval.nd) = (yyvsp[-3].nd); |
| 8690 |
defn_setup(p, (yyval.nd), (yyvsp[-2].nd), (yyvsp[-1].nd)); |
| 8691 |
nvars_unnest(p); |
| 8692 |
p->in_def--; |
| 8693 |
} |
| 8694 |
#line 8695 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8695 |
break; |
| 8696 |
|
| 8697 |
case 338: /* primary: defs_head f_arglist bodystmt "'end'" */ |
| 8698 |
#line 2906 "mrbgems/mruby-compiler/core/parse.y" |
| 8699 |
{ |
| 8700 |
(yyval.nd) = (yyvsp[-3].nd); |
| 8701 |
defs_setup(p, (yyval.nd), (yyvsp[-2].nd), (yyvsp[-1].nd)); |
| 8702 |
nvars_unnest(p); |
| 8703 |
p->in_def--; |
| 8704 |
p->in_single--; |
| 8705 |
} |
| 8706 |
#line 8707 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8707 |
break; |
| 8708 |
|
| 8709 |
case 339: /* primary: "'break'" */ |
| 8710 |
#line 2914 "mrbgems/mruby-compiler/core/parse.y" |
| 8711 |
{ |
| 8712 |
(yyval.nd) = new_break(p, 0); |
| 8713 |
} |
| 8714 |
#line 8715 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8715 |
break; |
| 8716 |
|
| 8717 |
case 340: /* primary: "'next'" */ |
| 8718 |
#line 2918 "mrbgems/mruby-compiler/core/parse.y" |
| 8719 |
{ |
| 8720 |
(yyval.nd) = new_next(p, 0); |
| 8721 |
} |
| 8722 |
#line 8723 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8723 |
break; |
| 8724 |
|
| 8725 |
case 341: /* primary: "'redo'" */ |
| 8726 |
#line 2922 "mrbgems/mruby-compiler/core/parse.y" |
| 8727 |
{ |
| 8728 |
(yyval.nd) = new_redo(p); |
| 8729 |
} |
| 8730 |
#line 8731 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8731 |
break; |
| 8732 |
|
| 8733 |
case 342: /* primary: "'retry'" */ |
| 8734 |
#line 2926 "mrbgems/mruby-compiler/core/parse.y" |
| 8735 |
{ |
| 8736 |
(yyval.nd) = new_retry(p); |
| 8737 |
} |
| 8738 |
#line 8739 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8739 |
break; |
| 8740 |
|
| 8741 |
case 343: /* primary_value: primary */ |
| 8742 |
#line 2932 "mrbgems/mruby-compiler/core/parse.y" |
| 8743 |
{ |
| 8744 |
(yyval.nd) = (yyvsp[0].nd); |
| 8745 |
if (!(yyval.nd)) (yyval.nd) = new_nil(p); |
| 8746 |
} |
| 8747 |
#line 8748 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8748 |
break; |
| 8749 |
|
| 8750 |
case 350: /* if_tail: "'elsif'" expr_value then compstmt if_tail */ |
| 8751 |
#line 2951 "mrbgems/mruby-compiler/core/parse.y" |
| 8752 |
{ |
| 8753 |
(yyval.nd) = new_if(p, cond((yyvsp[-3].nd)), (yyvsp[-1].nd), (yyvsp[0].nd)); |
| 8754 |
} |
| 8755 |
#line 8756 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8756 |
break; |
| 8757 |
|
| 8758 |
case 352: /* opt_else: "'else'" compstmt */ |
| 8759 |
#line 2958 "mrbgems/mruby-compiler/core/parse.y" |
| 8760 |
{ |
| 8761 |
(yyval.nd) = (yyvsp[0].nd); |
| 8762 |
} |
| 8763 |
#line 8764 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8764 |
break; |
| 8765 |
|
| 8766 |
case 353: /* for_var: lhs */ |
| 8767 |
#line 2964 "mrbgems/mruby-compiler/core/parse.y" |
| 8768 |
{ |
| 8769 |
(yyval.nd) = list1(list1((yyvsp[0].nd))); |
| 8770 |
} |
| 8771 |
#line 8772 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8772 |
break; |
| 8773 |
|
| 8774 |
case 355: /* f_margs: f_arg */ |
| 8775 |
#line 2971 "mrbgems/mruby-compiler/core/parse.y" |
| 8776 |
{ |
| 8777 |
(yyval.nd) = list3((yyvsp[0].nd),0,0); |
| 8778 |
} |
| 8779 |
#line 8780 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8780 |
break; |
| 8781 |
|
| 8782 |
case 356: /* f_margs: f_arg ',' "*" f_norm_arg */ |
| 8783 |
#line 2975 "mrbgems/mruby-compiler/core/parse.y" |
| 8784 |
{ |
| 8785 |
(yyval.nd) = list3((yyvsp[-3].nd), new_arg(p, (yyvsp[0].id)), 0); |
| 8786 |
} |
| 8787 |
#line 8788 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8788 |
break; |
| 8789 |
|
| 8790 |
case 357: /* f_margs: f_arg ',' "*" f_norm_arg ',' f_arg */ |
| 8791 |
#line 2979 "mrbgems/mruby-compiler/core/parse.y" |
| 8792 |
{ |
| 8793 |
(yyval.nd) = list3((yyvsp[-5].nd), new_arg(p, (yyvsp[-2].id)), (yyvsp[0].nd)); |
| 8794 |
} |
| 8795 |
#line 8796 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8796 |
break; |
| 8797 |
|
| 8798 |
case 358: /* f_margs: f_arg ',' "*" */ |
| 8799 |
#line 2983 "mrbgems/mruby-compiler/core/parse.y" |
| 8800 |
{ |
| 8801 |
local_add_f(p, intern_op(mul)); |
| 8802 |
(yyval.nd) = list3((yyvsp[-2].nd), nint(-1), 0); |
| 8803 |
} |
| 8804 |
#line 8805 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8805 |
break; |
| 8806 |
|
| 8807 |
case 359: /* f_margs: f_arg ',' "*" ',' f_arg */ |
| 8808 |
#line 2988 "mrbgems/mruby-compiler/core/parse.y" |
| 8809 |
{ |
| 8810 |
(yyval.nd) = list3((yyvsp[-4].nd), nint(-1), (yyvsp[0].nd)); |
| 8811 |
} |
| 8812 |
#line 8813 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8813 |
break; |
| 8814 |
|
| 8815 |
case 360: /* f_margs: "*" f_norm_arg */ |
| 8816 |
#line 2992 "mrbgems/mruby-compiler/core/parse.y" |
| 8817 |
{ |
| 8818 |
(yyval.nd) = list3(0, new_arg(p, (yyvsp[0].id)), 0); |
| 8819 |
} |
| 8820 |
#line 8821 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8821 |
break; |
| 8822 |
|
| 8823 |
case 361: /* f_margs: "*" f_norm_arg ',' f_arg */ |
| 8824 |
#line 2996 "mrbgems/mruby-compiler/core/parse.y" |
| 8825 |
{ |
| 8826 |
(yyval.nd) = list3(0, new_arg(p, (yyvsp[-2].id)), (yyvsp[0].nd)); |
| 8827 |
} |
| 8828 |
#line 8829 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8829 |
break; |
| 8830 |
|
| 8831 |
case 362: /* f_margs: "*" */ |
| 8832 |
#line 3000 "mrbgems/mruby-compiler/core/parse.y" |
| 8833 |
{ |
| 8834 |
local_add_f(p, intern_op(mul)); |
| 8835 |
(yyval.nd) = list3(0, nint(-1), 0); |
| 8836 |
} |
| 8837 |
#line 8838 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8838 |
break; |
| 8839 |
|
| 8840 |
case 363: /* $@24: %empty */ |
| 8841 |
#line 3005 "mrbgems/mruby-compiler/core/parse.y" |
| 8842 |
{ |
| 8843 |
local_add_f(p, intern_op(mul)); |
| 8844 |
} |
| 8845 |
#line 8846 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8846 |
break; |
| 8847 |
|
| 8848 |
case 364: /* f_margs: "*" ',' $@24 f_arg */ |
| 8849 |
#line 3009 "mrbgems/mruby-compiler/core/parse.y" |
| 8850 |
{ |
| 8851 |
(yyval.nd) = list3(0, nint(-1), (yyvsp[0].nd)); |
| 8852 |
} |
| 8853 |
#line 8854 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8854 |
break; |
| 8855 |
|
| 8856 |
case 365: /* block_args_tail: f_block_kwarg ',' f_kwrest opt_f_block_arg */ |
| 8857 |
#line 3015 "mrbgems/mruby-compiler/core/parse.y" |
| 8858 |
{ |
| 8859 |
(yyval.nd) = new_args_tail(p, (yyvsp[-3].nd), (yyvsp[-1].nd), (yyvsp[0].id)); |
| 8860 |
} |
| 8861 |
#line 8862 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8862 |
break; |
| 8863 |
|
| 8864 |
case 366: /* block_args_tail: f_block_kwarg opt_f_block_arg */ |
| 8865 |
#line 3019 "mrbgems/mruby-compiler/core/parse.y" |
| 8866 |
{ |
| 8867 |
(yyval.nd) = new_args_tail(p, (yyvsp[-1].nd), 0, (yyvsp[0].id)); |
| 8868 |
} |
| 8869 |
#line 8870 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8870 |
break; |
| 8871 |
|
| 8872 |
case 367: /* block_args_tail: f_kwrest opt_f_block_arg */ |
| 8873 |
#line 3023 "mrbgems/mruby-compiler/core/parse.y" |
| 8874 |
{ |
| 8875 |
(yyval.nd) = new_args_tail(p, 0, (yyvsp[-1].nd), (yyvsp[0].id)); |
| 8876 |
} |
| 8877 |
#line 8878 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8878 |
break; |
| 8879 |
|
| 8880 |
case 368: /* block_args_tail: f_block_arg */ |
| 8881 |
#line 3027 "mrbgems/mruby-compiler/core/parse.y" |
| 8882 |
{ |
| 8883 |
(yyval.nd) = new_args_tail(p, 0, 0, (yyvsp[0].id)); |
| 8884 |
} |
| 8885 |
#line 8886 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8886 |
break; |
| 8887 |
|
| 8888 |
case 369: /* opt_block_args_tail: ',' block_args_tail */ |
| 8889 |
#line 3033 "mrbgems/mruby-compiler/core/parse.y" |
| 8890 |
{ |
| 8891 |
(yyval.nd) = (yyvsp[0].nd); |
| 8892 |
} |
| 8893 |
#line 8894 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8894 |
break; |
| 8895 |
|
| 8896 |
case 370: /* opt_block_args_tail: %empty */ |
| 8897 |
#line 3037 "mrbgems/mruby-compiler/core/parse.y" |
| 8898 |
{ |
| 8899 |
(yyval.nd) = new_args_tail(p, 0, 0, 0); |
| 8900 |
} |
| 8901 |
#line 8902 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8902 |
break; |
| 8903 |
|
| 8904 |
case 371: /* block_param: f_arg ',' f_block_optarg ',' f_rest_arg opt_block_args_tail */ |
| 8905 |
#line 3043 "mrbgems/mruby-compiler/core/parse.y" |
| 8906 |
{ |
| 8907 |
(yyval.nd) = new_args(p, (yyvsp[-5].nd), (yyvsp[-3].nd), (yyvsp[-1].id), 0, (yyvsp[0].nd)); |
| 8908 |
} |
| 8909 |
#line 8910 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8910 |
break; |
| 8911 |
|
| 8912 |
case 372: /* block_param: f_arg ',' f_block_optarg ',' f_rest_arg ',' f_arg opt_block_args_tail */ |
| 8913 |
#line 3047 "mrbgems/mruby-compiler/core/parse.y" |
| 8914 |
{ |
| 8915 |
(yyval.nd) = new_args(p, (yyvsp[-7].nd), (yyvsp[-5].nd), (yyvsp[-3].id), (yyvsp[-1].nd), (yyvsp[0].nd)); |
| 8916 |
} |
| 8917 |
#line 8918 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8918 |
break; |
| 8919 |
|
| 8920 |
case 373: /* block_param: f_arg ',' f_block_optarg opt_block_args_tail */ |
| 8921 |
#line 3051 "mrbgems/mruby-compiler/core/parse.y" |
| 8922 |
{ |
| 8923 |
(yyval.nd) = new_args(p, (yyvsp[-3].nd), (yyvsp[-1].nd), 0, 0, (yyvsp[0].nd)); |
| 8924 |
} |
| 8925 |
#line 8926 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8926 |
break; |
| 8927 |
|
| 8928 |
case 374: /* block_param: f_arg ',' f_block_optarg ',' f_arg opt_block_args_tail */ |
| 8929 |
#line 3055 "mrbgems/mruby-compiler/core/parse.y" |
| 8930 |
{ |
| 8931 |
(yyval.nd) = new_args(p, (yyvsp[-5].nd), (yyvsp[-3].nd), 0, (yyvsp[-1].nd), (yyvsp[0].nd)); |
| 8932 |
} |
| 8933 |
#line 8934 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8934 |
break; |
| 8935 |
|
| 8936 |
case 375: /* block_param: f_arg ',' f_rest_arg opt_block_args_tail */ |
| 8937 |
#line 3059 "mrbgems/mruby-compiler/core/parse.y" |
| 8938 |
{ |
| 8939 |
(yyval.nd) = new_args(p, (yyvsp[-3].nd), 0, (yyvsp[-1].id), 0, (yyvsp[0].nd)); |
| 8940 |
} |
| 8941 |
#line 8942 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8942 |
break; |
| 8943 |
|
| 8944 |
case 376: /* block_param: f_arg ',' opt_block_args_tail */ |
| 8945 |
#line 3063 "mrbgems/mruby-compiler/core/parse.y" |
| 8946 |
{ |
| 8947 |
(yyval.nd) = new_args(p, (yyvsp[-2].nd), 0, 0, 0, (yyvsp[0].nd)); |
| 8948 |
} |
| 8949 |
#line 8950 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8950 |
break; |
| 8951 |
|
| 8952 |
case 377: /* block_param: f_arg ',' f_rest_arg ',' f_arg opt_block_args_tail */ |
| 8953 |
#line 3067 "mrbgems/mruby-compiler/core/parse.y" |
| 8954 |
{ |
| 8955 |
(yyval.nd) = new_args(p, (yyvsp[-5].nd), 0, (yyvsp[-3].id), (yyvsp[-1].nd), (yyvsp[0].nd)); |
| 8956 |
} |
| 8957 |
#line 8958 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8958 |
break; |
| 8959 |
|
| 8960 |
case 378: /* block_param: f_arg opt_block_args_tail */ |
| 8961 |
#line 3071 "mrbgems/mruby-compiler/core/parse.y" |
| 8962 |
{ |
| 8963 |
(yyval.nd) = new_args(p, (yyvsp[-1].nd), 0, 0, 0, (yyvsp[0].nd)); |
| 8964 |
} |
| 8965 |
#line 8966 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8966 |
break; |
| 8967 |
|
| 8968 |
case 379: /* block_param: f_block_optarg ',' f_rest_arg opt_block_args_tail */ |
| 8969 |
#line 3075 "mrbgems/mruby-compiler/core/parse.y" |
| 8970 |
{ |
| 8971 |
(yyval.nd) = new_args(p, 0, (yyvsp[-3].nd), (yyvsp[-1].id), 0, (yyvsp[0].nd)); |
| 8972 |
} |
| 8973 |
#line 8974 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8974 |
break; |
| 8975 |
|
| 8976 |
case 380: /* block_param: f_block_optarg ',' f_rest_arg ',' f_arg opt_block_args_tail */ |
| 8977 |
#line 3079 "mrbgems/mruby-compiler/core/parse.y" |
| 8978 |
{ |
| 8979 |
(yyval.nd) = new_args(p, 0, (yyvsp[-5].nd), (yyvsp[-3].id), (yyvsp[-1].nd), (yyvsp[0].nd)); |
| 8980 |
} |
| 8981 |
#line 8982 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8982 |
break; |
| 8983 |
|
| 8984 |
case 381: /* block_param: f_block_optarg opt_block_args_tail */ |
| 8985 |
#line 3083 "mrbgems/mruby-compiler/core/parse.y" |
| 8986 |
{ |
| 8987 |
(yyval.nd) = new_args(p, 0, (yyvsp[-1].nd), 0, 0, (yyvsp[0].nd)); |
| 8988 |
} |
| 8989 |
#line 8990 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8990 |
break; |
| 8991 |
|
| 8992 |
case 382: /* block_param: f_block_optarg ',' f_arg opt_block_args_tail */ |
| 8993 |
#line 3087 "mrbgems/mruby-compiler/core/parse.y" |
| 8994 |
{ |
| 8995 |
(yyval.nd) = new_args(p, 0, (yyvsp[-3].nd), 0, (yyvsp[-1].nd), (yyvsp[0].nd)); |
| 8996 |
} |
| 8997 |
#line 8998 "mrbgems/mruby-compiler/core/y.tab.c" |
| 8998 |
break; |
| 8999 |
|
| 9000 |
case 383: /* block_param: f_rest_arg opt_block_args_tail */ |
| 9001 |
#line 3091 "mrbgems/mruby-compiler/core/parse.y" |
| 9002 |
{ |
| 9003 |
(yyval.nd) = new_args(p, 0, 0, (yyvsp[-1].id), 0, (yyvsp[0].nd)); |
| 9004 |
} |
| 9005 |
#line 9006 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9006 |
break; |
| 9007 |
|
| 9008 |
case 384: /* block_param: f_rest_arg ',' f_arg opt_block_args_tail */ |
| 9009 |
#line 3095 "mrbgems/mruby-compiler/core/parse.y" |
| 9010 |
{ |
| 9011 |
(yyval.nd) = new_args(p, 0, 0, (yyvsp[-3].id), (yyvsp[-1].nd), (yyvsp[0].nd)); |
| 9012 |
} |
| 9013 |
#line 9014 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9014 |
break; |
| 9015 |
|
| 9016 |
case 385: /* block_param: block_args_tail */ |
| 9017 |
#line 3099 "mrbgems/mruby-compiler/core/parse.y" |
| 9018 |
{ |
| 9019 |
(yyval.nd) = new_args(p, 0, 0, 0, 0, (yyvsp[0].nd)); |
| 9020 |
} |
| 9021 |
#line 9022 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9022 |
break; |
| 9023 |
|
| 9024 |
case 386: /* opt_block_param: none */ |
| 9025 |
#line 3105 "mrbgems/mruby-compiler/core/parse.y" |
| 9026 |
{ |
| 9027 |
local_add_blk(p, 0); |
| 9028 |
(yyval.nd) = 0; |
| 9029 |
} |
| 9030 |
#line 9031 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9031 |
break; |
| 9032 |
|
| 9033 |
case 387: /* opt_block_param: block_param_def */ |
| 9034 |
#line 3110 "mrbgems/mruby-compiler/core/parse.y" |
| 9035 |
{ |
| 9036 |
p->cmd_start = TRUE; |
| 9037 |
(yyval.nd) = (yyvsp[0].nd); |
| 9038 |
} |
| 9039 |
#line 9040 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9040 |
break; |
| 9041 |
|
| 9042 |
case 388: /* $@25: %empty */ |
| 9043 |
#line 3116 "mrbgems/mruby-compiler/core/parse.y" |
| 9044 |
{local_add_blk(p, 0);} |
| 9045 |
#line 9046 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9046 |
break; |
| 9047 |
|
| 9048 |
case 389: /* block_param_def: '|' $@25 opt_bv_decl '|' */ |
| 9049 |
#line 3117 "mrbgems/mruby-compiler/core/parse.y" |
| 9050 |
{ |
| 9051 |
(yyval.nd) = 0; |
| 9052 |
} |
| 9053 |
#line 9054 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9054 |
break; |
| 9055 |
|
| 9056 |
case 390: /* block_param_def: "||" */ |
| 9057 |
#line 3121 "mrbgems/mruby-compiler/core/parse.y" |
| 9058 |
{ |
| 9059 |
local_add_blk(p, 0); |
| 9060 |
(yyval.nd) = 0; |
| 9061 |
} |
| 9062 |
#line 9063 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9063 |
break; |
| 9064 |
|
| 9065 |
case 391: /* block_param_def: '|' block_param opt_bv_decl '|' */ |
| 9066 |
#line 3126 "mrbgems/mruby-compiler/core/parse.y" |
| 9067 |
{ |
| 9068 |
(yyval.nd) = (yyvsp[-2].nd); |
| 9069 |
} |
| 9070 |
#line 9071 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9071 |
break; |
| 9072 |
|
| 9073 |
case 392: /* opt_bv_decl: opt_nl */ |
| 9074 |
#line 3133 "mrbgems/mruby-compiler/core/parse.y" |
| 9075 |
{ |
| 9076 |
(yyval.nd) = 0; |
| 9077 |
} |
| 9078 |
#line 9079 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9079 |
break; |
| 9080 |
|
| 9081 |
case 393: /* opt_bv_decl: opt_nl ';' bv_decls opt_nl */ |
| 9082 |
#line 3137 "mrbgems/mruby-compiler/core/parse.y" |
| 9083 |
{ |
| 9084 |
(yyval.nd) = 0; |
| 9085 |
} |
| 9086 |
#line 9087 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9087 |
break; |
| 9088 |
|
| 9089 |
case 396: /* bvar: "local variable or method" */ |
| 9090 |
#line 3147 "mrbgems/mruby-compiler/core/parse.y" |
| 9091 |
{ |
| 9092 |
local_add_f(p, (yyvsp[0].id)); |
| 9093 |
new_bv(p, (yyvsp[0].id)); |
| 9094 |
} |
| 9095 |
#line 9096 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9096 |
break; |
| 9097 |
|
| 9098 |
case 398: /* f_larglist: '(' f_args opt_bv_decl ')' */ |
| 9099 |
#line 3155 "mrbgems/mruby-compiler/core/parse.y" |
| 9100 |
{ |
| 9101 |
(yyval.nd) = (yyvsp[-2].nd); |
| 9102 |
} |
| 9103 |
#line 9104 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9104 |
break; |
| 9105 |
|
| 9106 |
case 399: /* f_larglist: f_args */ |
| 9107 |
#line 3159 "mrbgems/mruby-compiler/core/parse.y" |
| 9108 |
{ |
| 9109 |
(yyval.nd) = (yyvsp[0].nd); |
| 9110 |
} |
| 9111 |
#line 9112 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9112 |
break; |
| 9113 |
|
| 9114 |
case 400: /* lambda_body: tLAMBEG compstmt '}' */ |
| 9115 |
#line 3165 "mrbgems/mruby-compiler/core/parse.y" |
| 9116 |
{ |
| 9117 |
(yyval.nd) = (yyvsp[-1].nd); |
| 9118 |
} |
| 9119 |
#line 9120 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9120 |
break; |
| 9121 |
|
| 9122 |
case 401: /* lambda_body: "'do' for lambda" bodystmt "'end'" */ |
| 9123 |
#line 3169 "mrbgems/mruby-compiler/core/parse.y" |
| 9124 |
{ |
| 9125 |
(yyval.nd) = (yyvsp[-1].nd); |
| 9126 |
} |
| 9127 |
#line 9128 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9128 |
break; |
| 9129 |
|
| 9130 |
case 402: /* @26: %empty */ |
| 9131 |
#line 3175 "mrbgems/mruby-compiler/core/parse.y" |
| 9132 |
{ |
| 9133 |
local_nest(p); |
| 9134 |
nvars_nest(p); |
| 9135 |
(yyval.num) = p->lineno; |
| 9136 |
} |
| 9137 |
#line 9138 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9138 |
break; |
| 9139 |
|
| 9140 |
case 403: /* do_block: "'do' for block" @26 opt_block_param bodystmt "'end'" */ |
| 9141 |
#line 3183 "mrbgems/mruby-compiler/core/parse.y" |
| 9142 |
{ |
| 9143 |
(yyval.nd) = new_block(p,(yyvsp[-2].nd),(yyvsp[-1].nd)); |
| 9144 |
SET_LINENO((yyval.nd), (yyvsp[-3].num)); |
| 9145 |
local_unnest(p); |
| 9146 |
nvars_unnest(p); |
| 9147 |
} |
| 9148 |
#line 9149 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9149 |
break; |
| 9150 |
|
| 9151 |
case 404: /* block_call: command do_block */ |
| 9152 |
#line 3192 "mrbgems/mruby-compiler/core/parse.y" |
| 9153 |
{ |
| 9154 |
if (typen((yyvsp[-1].nd)->car) == NODE_YIELD) { |
| 9155 |
yyerror(p, "block given to yield"); |
| 9156 |
} |
| 9157 |
else { |
| 9158 |
call_with_block(p, (yyvsp[-1].nd), (yyvsp[0].nd)); |
| 9159 |
} |
| 9160 |
(yyval.nd) = (yyvsp[-1].nd); |
| 9161 |
} |
| 9162 |
#line 9163 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9163 |
break; |
| 9164 |
|
| 9165 |
case 405: /* block_call: block_call call_op2 operation2 opt_paren_args */ |
| 9166 |
#line 3202 "mrbgems/mruby-compiler/core/parse.y" |
| 9167 |
{ |
| 9168 |
(yyval.nd) = new_call(p, (yyvsp[-3].nd), (yyvsp[-1].id), (yyvsp[0].nd), (yyvsp[-2].num)); |
| 9169 |
} |
| 9170 |
#line 9171 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9171 |
break; |
| 9172 |
|
| 9173 |
case 406: /* block_call: block_call call_op2 operation2 opt_paren_args brace_block */ |
| 9174 |
#line 3206 "mrbgems/mruby-compiler/core/parse.y" |
| 9175 |
{ |
| 9176 |
(yyval.nd) = new_call(p, (yyvsp[-4].nd), (yyvsp[-2].id), (yyvsp[-1].nd), (yyvsp[-3].num)); |
| 9177 |
call_with_block(p, (yyval.nd), (yyvsp[0].nd)); |
| 9178 |
} |
| 9179 |
#line 9180 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9180 |
break; |
| 9181 |
|
| 9182 |
case 407: /* block_call: block_call call_op2 operation2 command_args do_block */ |
| 9183 |
#line 3211 "mrbgems/mruby-compiler/core/parse.y" |
| 9184 |
{ |
| 9185 |
(yyval.nd) = new_call(p, (yyvsp[-4].nd), (yyvsp[-2].id), (yyvsp[-1].nd), (yyvsp[-3].num)); |
| 9186 |
call_with_block(p, (yyval.nd), (yyvsp[0].nd)); |
| 9187 |
} |
| 9188 |
#line 9189 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9189 |
break; |
| 9190 |
|
| 9191 |
case 408: /* method_call: operation paren_args */ |
| 9192 |
#line 3218 "mrbgems/mruby-compiler/core/parse.y" |
| 9193 |
{ |
| 9194 |
(yyval.nd) = new_fcall(p, (yyvsp[-1].id), (yyvsp[0].nd)); |
| 9195 |
} |
| 9196 |
#line 9197 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9197 |
break; |
| 9198 |
|
| 9199 |
case 409: /* method_call: primary_value call_op operation2 opt_paren_args */ |
| 9200 |
#line 3222 "mrbgems/mruby-compiler/core/parse.y" |
| 9201 |
{ |
| 9202 |
(yyval.nd) = new_call(p, (yyvsp[-3].nd), (yyvsp[-1].id), (yyvsp[0].nd), (yyvsp[-2].num)); |
| 9203 |
} |
| 9204 |
#line 9205 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9205 |
break; |
| 9206 |
|
| 9207 |
case 410: /* method_call: primary_value "::" operation2 paren_args */ |
| 9208 |
#line 3226 "mrbgems/mruby-compiler/core/parse.y" |
| 9209 |
{ |
| 9210 |
(yyval.nd) = new_call(p, (yyvsp[-3].nd), (yyvsp[-1].id), (yyvsp[0].nd), tCOLON2); |
| 9211 |
} |
| 9212 |
#line 9213 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9213 |
break; |
| 9214 |
|
| 9215 |
case 411: /* method_call: primary_value "::" operation3 */ |
| 9216 |
#line 3230 "mrbgems/mruby-compiler/core/parse.y" |
| 9217 |
{ |
| 9218 |
(yyval.nd) = new_call(p, (yyvsp[-2].nd), (yyvsp[0].id), 0, tCOLON2); |
| 9219 |
} |
| 9220 |
#line 9221 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9221 |
break; |
| 9222 |
|
| 9223 |
case 412: /* method_call: primary_value call_op paren_args */ |
| 9224 |
#line 3234 "mrbgems/mruby-compiler/core/parse.y" |
| 9225 |
{ |
| 9226 |
(yyval.nd) = new_call(p, (yyvsp[-2].nd), MRB_SYM_2(p->mrb, call), (yyvsp[0].nd), (yyvsp[-1].num)); |
| 9227 |
} |
| 9228 |
#line 9229 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9229 |
break; |
| 9230 |
|
| 9231 |
case 413: /* method_call: primary_value "::" paren_args */ |
| 9232 |
#line 3238 "mrbgems/mruby-compiler/core/parse.y" |
| 9233 |
{ |
| 9234 |
(yyval.nd) = new_call(p, (yyvsp[-2].nd), MRB_SYM_2(p->mrb, call), (yyvsp[0].nd), tCOLON2); |
| 9235 |
} |
| 9236 |
#line 9237 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9237 |
break; |
| 9238 |
|
| 9239 |
case 414: /* method_call: "'super'" paren_args */ |
| 9240 |
#line 3242 "mrbgems/mruby-compiler/core/parse.y" |
| 9241 |
{ |
| 9242 |
(yyval.nd) = new_super(p, (yyvsp[0].nd)); |
| 9243 |
} |
| 9244 |
#line 9245 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9245 |
break; |
| 9246 |
|
| 9247 |
case 415: /* method_call: "'super'" */ |
| 9248 |
#line 3246 "mrbgems/mruby-compiler/core/parse.y" |
| 9249 |
{ |
| 9250 |
(yyval.nd) = new_zsuper(p); |
| 9251 |
} |
| 9252 |
#line 9253 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9253 |
break; |
| 9254 |
|
| 9255 |
case 416: /* method_call: primary_value '[' opt_call_args ']' */ |
| 9256 |
#line 3250 "mrbgems/mruby-compiler/core/parse.y" |
| 9257 |
{ |
| 9258 |
(yyval.nd) = new_call(p, (yyvsp[-3].nd), intern_op(aref), (yyvsp[-1].nd), '.'); |
| 9259 |
} |
| 9260 |
#line 9261 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9261 |
break; |
| 9262 |
|
| 9263 |
case 417: /* @27: %empty */ |
| 9264 |
#line 3256 "mrbgems/mruby-compiler/core/parse.y" |
| 9265 |
{ |
| 9266 |
local_nest(p); |
| 9267 |
nvars_nest(p); |
| 9268 |
(yyval.num) = p->lineno; |
| 9269 |
} |
| 9270 |
#line 9271 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9271 |
break; |
| 9272 |
|
| 9273 |
case 418: /* brace_block: '{' @27 opt_block_param compstmt '}' */ |
| 9274 |
#line 3263 "mrbgems/mruby-compiler/core/parse.y" |
| 9275 |
{ |
| 9276 |
(yyval.nd) = new_block(p,(yyvsp[-2].nd),(yyvsp[-1].nd)); |
| 9277 |
SET_LINENO((yyval.nd), (yyvsp[-3].num)); |
| 9278 |
local_unnest(p); |
| 9279 |
nvars_unnest(p); |
| 9280 |
} |
| 9281 |
#line 9282 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9282 |
break; |
| 9283 |
|
| 9284 |
case 419: /* @28: %empty */ |
| 9285 |
#line 3270 "mrbgems/mruby-compiler/core/parse.y" |
| 9286 |
{ |
| 9287 |
local_nest(p); |
| 9288 |
nvars_nest(p); |
| 9289 |
(yyval.num) = p->lineno; |
| 9290 |
} |
| 9291 |
#line 9292 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9292 |
break; |
| 9293 |
|
| 9294 |
case 420: /* brace_block: "'do'" @28 opt_block_param bodystmt "'end'" */ |
| 9295 |
#line 3277 "mrbgems/mruby-compiler/core/parse.y" |
| 9296 |
{ |
| 9297 |
(yyval.nd) = new_block(p,(yyvsp[-2].nd),(yyvsp[-1].nd)); |
| 9298 |
SET_LINENO((yyval.nd), (yyvsp[-3].num)); |
| 9299 |
local_unnest(p); |
| 9300 |
nvars_unnest(p); |
| 9301 |
} |
| 9302 |
#line 9303 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9303 |
break; |
| 9304 |
|
| 9305 |
case 421: /* case_body: "'when'" args then compstmt cases */ |
| 9306 |
#line 3288 "mrbgems/mruby-compiler/core/parse.y" |
| 9307 |
{ |
| 9308 |
(yyval.nd) = cons(cons((yyvsp[-3].nd), (yyvsp[-1].nd)), (yyvsp[0].nd)); |
| 9309 |
} |
| 9310 |
#line 9311 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9311 |
break; |
| 9312 |
|
| 9313 |
case 422: /* cases: opt_else */ |
| 9314 |
#line 3294 "mrbgems/mruby-compiler/core/parse.y" |
| 9315 |
{ |
| 9316 |
if ((yyvsp[0].nd)) { |
| 9317 |
(yyval.nd) = cons(cons(0, (yyvsp[0].nd)), 0); |
| 9318 |
} |
| 9319 |
else { |
| 9320 |
(yyval.nd) = 0; |
| 9321 |
} |
| 9322 |
} |
| 9323 |
#line 9324 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9324 |
break; |
| 9325 |
|
| 9326 |
case 424: /* opt_rescue: "'rescue'" exc_list exc_var then compstmt opt_rescue */ |
| 9327 |
#line 3308 "mrbgems/mruby-compiler/core/parse.y" |
| 9328 |
{ |
| 9329 |
(yyval.nd) = list1(list3((yyvsp[-4].nd), (yyvsp[-3].nd), (yyvsp[-1].nd))); |
| 9330 |
if ((yyvsp[0].nd)) (yyval.nd) = append((yyval.nd), (yyvsp[0].nd)); |
| 9331 |
} |
| 9332 |
#line 9333 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9333 |
break; |
| 9334 |
|
| 9335 |
case 426: /* exc_list: arg */ |
| 9336 |
#line 3316 "mrbgems/mruby-compiler/core/parse.y" |
| 9337 |
{ |
| 9338 |
(yyval.nd) = list1((yyvsp[0].nd)); |
| 9339 |
} |
| 9340 |
#line 9341 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9341 |
break; |
| 9342 |
|
| 9343 |
case 429: /* exc_var: "=>" lhs */ |
| 9344 |
#line 3324 "mrbgems/mruby-compiler/core/parse.y" |
| 9345 |
{ |
| 9346 |
(yyval.nd) = (yyvsp[0].nd); |
| 9347 |
} |
| 9348 |
#line 9349 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9349 |
break; |
| 9350 |
|
| 9351 |
case 431: /* opt_ensure: "'ensure'" compstmt */ |
| 9352 |
#line 3331 "mrbgems/mruby-compiler/core/parse.y" |
| 9353 |
{ |
| 9354 |
(yyval.nd) = (yyvsp[0].nd); |
| 9355 |
} |
| 9356 |
#line 9357 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9357 |
break; |
| 9358 |
|
| 9359 |
case 438: /* string: string string_fragment */ |
| 9360 |
#line 3345 "mrbgems/mruby-compiler/core/parse.y" |
| 9361 |
{ |
| 9362 |
(yyval.nd) = concat_string(p, (yyvsp[-1].nd), (yyvsp[0].nd)); |
| 9363 |
} |
| 9364 |
#line 9365 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9365 |
break; |
| 9366 |
|
| 9367 |
case 441: /* string_fragment: "string literal" tSTRING */ |
| 9368 |
#line 3353 "mrbgems/mruby-compiler/core/parse.y" |
| 9369 |
{ |
| 9370 |
(yyval.nd) = (yyvsp[0].nd); |
| 9371 |
} |
| 9372 |
#line 9373 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9373 |
break; |
| 9374 |
|
| 9375 |
case 442: /* string_fragment: "string literal" string_rep tSTRING */ |
| 9376 |
#line 3357 "mrbgems/mruby-compiler/core/parse.y" |
| 9377 |
{ |
| 9378 |
node *n = (yyvsp[-1].nd); |
| 9379 |
if (intn((yyvsp[0].nd)->cdr->cdr) > 0) { |
| 9380 |
n = push(n, (yyvsp[0].nd)); |
| 9381 |
} |
| 9382 |
else { |
| 9383 |
cons_free((yyvsp[0].nd)); |
| 9384 |
} |
| 9385 |
(yyval.nd) = new_dstr(p, n); |
| 9386 |
} |
| 9387 |
#line 9388 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9388 |
break; |
| 9389 |
|
| 9390 |
case 444: /* string_rep: string_rep string_interp */ |
| 9391 |
#line 3371 "mrbgems/mruby-compiler/core/parse.y" |
| 9392 |
{ |
| 9393 |
(yyval.nd) = append((yyvsp[-1].nd), (yyvsp[0].nd)); |
| 9394 |
} |
| 9395 |
#line 9396 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9396 |
break; |
| 9397 |
|
| 9398 |
case 445: /* string_interp: tSTRING_MID */ |
| 9399 |
#line 3377 "mrbgems/mruby-compiler/core/parse.y" |
| 9400 |
{ |
| 9401 |
(yyval.nd) = list1((yyvsp[0].nd)); |
| 9402 |
} |
| 9403 |
#line 9404 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9404 |
break; |
| 9405 |
|
| 9406 |
case 446: /* @29: %empty */ |
| 9407 |
#line 3381 "mrbgems/mruby-compiler/core/parse.y" |
| 9408 |
{ |
| 9409 |
(yyval.nd) = push_strterm(p); |
| 9410 |
} |
| 9411 |
#line 9412 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9412 |
break; |
| 9413 |
|
| 9414 |
case 447: /* string_interp: tSTRING_PART @29 compstmt '}' */ |
| 9415 |
#line 3386 "mrbgems/mruby-compiler/core/parse.y" |
| 9416 |
{ |
| 9417 |
pop_strterm(p,(yyvsp[-2].nd)); |
| 9418 |
(yyval.nd) = list2((yyvsp[-3].nd), (yyvsp[-1].nd)); |
| 9419 |
} |
| 9420 |
#line 9421 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9421 |
break; |
| 9422 |
|
| 9423 |
case 448: /* string_interp: tLITERAL_DELIM */ |
| 9424 |
#line 3391 "mrbgems/mruby-compiler/core/parse.y" |
| 9425 |
{ |
| 9426 |
(yyval.nd) = list1(new_literal_delim(p)); |
| 9427 |
} |
| 9428 |
#line 9429 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9429 |
break; |
| 9430 |
|
| 9431 |
case 449: /* string_interp: tHD_LITERAL_DELIM heredoc_bodies */ |
| 9432 |
#line 3395 "mrbgems/mruby-compiler/core/parse.y" |
| 9433 |
{ |
| 9434 |
(yyval.nd) = list1(new_literal_delim(p)); |
| 9435 |
} |
| 9436 |
#line 9437 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9437 |
break; |
| 9438 |
|
| 9439 |
case 450: /* xstring: tXSTRING_BEG tXSTRING */ |
| 9440 |
#line 3401 "mrbgems/mruby-compiler/core/parse.y" |
| 9441 |
{ |
| 9442 |
(yyval.nd) = (yyvsp[0].nd); |
| 9443 |
} |
| 9444 |
#line 9445 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9445 |
break; |
| 9446 |
|
| 9447 |
case 451: /* xstring: tXSTRING_BEG string_rep tXSTRING */ |
| 9448 |
#line 3405 "mrbgems/mruby-compiler/core/parse.y" |
| 9449 |
{ |
| 9450 |
node *n = (yyvsp[-1].nd); |
| 9451 |
if (intn((yyvsp[0].nd)->cdr->cdr) > 0) { |
| 9452 |
n = push(n, (yyvsp[0].nd)); |
| 9453 |
} |
| 9454 |
else { |
| 9455 |
cons_free((yyvsp[0].nd)); |
| 9456 |
} |
| 9457 |
(yyval.nd) = new_dxstr(p, n); |
| 9458 |
} |
| 9459 |
#line 9460 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9460 |
break; |
| 9461 |
|
| 9462 |
case 452: /* regexp: tREGEXP_BEG tREGEXP */ |
| 9463 |
#line 3418 "mrbgems/mruby-compiler/core/parse.y" |
| 9464 |
{ |
| 9465 |
(yyval.nd) = (yyvsp[0].nd); |
| 9466 |
} |
| 9467 |
#line 9468 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9468 |
break; |
| 9469 |
|
| 9470 |
case 453: /* regexp: tREGEXP_BEG string_rep tREGEXP */ |
| 9471 |
#line 3422 "mrbgems/mruby-compiler/core/parse.y" |
| 9472 |
{ |
| 9473 |
(yyval.nd) = new_dregx(p, (yyvsp[-1].nd), (yyvsp[0].nd)); |
| 9474 |
} |
| 9475 |
#line 9476 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9476 |
break; |
| 9477 |
|
| 9478 |
case 457: /* heredoc_body: tHEREDOC_END */ |
| 9479 |
#line 3435 "mrbgems/mruby-compiler/core/parse.y" |
| 9480 |
{ |
| 9481 |
parser_heredoc_info *info = parsing_heredoc_info(p); |
| 9482 |
info->doc = push(info->doc, new_str(p, "", 0)); |
| 9483 |
heredoc_end(p); |
| 9484 |
} |
| 9485 |
#line 9486 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9486 |
break; |
| 9487 |
|
| 9488 |
case 458: /* heredoc_body: heredoc_string_rep tHEREDOC_END */ |
| 9489 |
#line 3441 "mrbgems/mruby-compiler/core/parse.y" |
| 9490 |
{ |
| 9491 |
heredoc_end(p); |
| 9492 |
} |
| 9493 |
#line 9494 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9494 |
break; |
| 9495 |
|
| 9496 |
case 461: /* heredoc_string_interp: tHD_STRING_MID */ |
| 9497 |
#line 3451 "mrbgems/mruby-compiler/core/parse.y" |
| 9498 |
{ |
| 9499 |
parser_heredoc_info *info = parsing_heredoc_info(p); |
| 9500 |
info->doc = push(info->doc, (yyvsp[0].nd)); |
| 9501 |
heredoc_treat_nextline(p); |
| 9502 |
} |
| 9503 |
#line 9504 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9504 |
break; |
| 9505 |
|
| 9506 |
case 462: /* @30: %empty */ |
| 9507 |
#line 3457 "mrbgems/mruby-compiler/core/parse.y" |
| 9508 |
{ |
| 9509 |
(yyval.nd) = push_strterm(p); |
| 9510 |
} |
| 9511 |
#line 9512 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9512 |
break; |
| 9513 |
|
| 9514 |
case 463: /* heredoc_string_interp: tHD_STRING_PART @30 compstmt '}' */ |
| 9515 |
#line 3462 "mrbgems/mruby-compiler/core/parse.y" |
| 9516 |
{ |
| 9517 |
pop_strterm(p, (yyvsp[-2].nd)); |
| 9518 |
parser_heredoc_info *info = parsing_heredoc_info(p); |
| 9519 |
info->doc = push(push(info->doc, (yyvsp[-3].nd)), (yyvsp[-1].nd)); |
| 9520 |
} |
| 9521 |
#line 9522 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9522 |
break; |
| 9523 |
|
| 9524 |
case 464: /* words: tWORDS_BEG tSTRING */ |
| 9525 |
#line 3470 "mrbgems/mruby-compiler/core/parse.y" |
| 9526 |
{ |
| 9527 |
(yyval.nd) = new_words(p, list1((yyvsp[0].nd))); |
| 9528 |
} |
| 9529 |
#line 9530 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9530 |
break; |
| 9531 |
|
| 9532 |
case 465: /* words: tWORDS_BEG string_rep tSTRING */ |
| 9533 |
#line 3474 "mrbgems/mruby-compiler/core/parse.y" |
| 9534 |
{ |
| 9535 |
node *n = (yyvsp[-1].nd); |
| 9536 |
if (intn((yyvsp[0].nd)->cdr->cdr) > 0) { |
| 9537 |
n = push(n, (yyvsp[0].nd)); |
| 9538 |
} |
| 9539 |
else { |
| 9540 |
cons_free((yyvsp[0].nd)); |
| 9541 |
} |
| 9542 |
(yyval.nd) = new_words(p, n); |
| 9543 |
} |
| 9544 |
#line 9545 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9545 |
break; |
| 9546 |
|
| 9547 |
case 466: /* symbol: basic_symbol */ |
| 9548 |
#line 3488 "mrbgems/mruby-compiler/core/parse.y" |
| 9549 |
{ |
| 9550 |
p->lstate = EXPR_ENDARG; |
| 9551 |
(yyval.nd) = new_sym(p, (yyvsp[0].id)); |
| 9552 |
} |
| 9553 |
#line 9554 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9554 |
break; |
| 9555 |
|
| 9556 |
case 467: /* symbol: "symbol" "string literal" string_rep tSTRING */ |
| 9557 |
#line 3493 "mrbgems/mruby-compiler/core/parse.y" |
| 9558 |
{ |
| 9559 |
node *n = (yyvsp[-1].nd); |
| 9560 |
p->lstate = EXPR_ENDARG; |
| 9561 |
if (intn((yyvsp[0].nd)->cdr->cdr) > 0) { |
| 9562 |
n = push(n, (yyvsp[0].nd)); |
| 9563 |
} |
| 9564 |
else { |
| 9565 |
cons_free((yyvsp[0].nd)); |
| 9566 |
} |
| 9567 |
(yyval.nd) = new_dsym(p, new_dstr(p, n)); |
| 9568 |
} |
| 9569 |
#line 9570 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9570 |
break; |
| 9571 |
|
| 9572 |
case 468: /* basic_symbol: "symbol" sym */ |
| 9573 |
#line 3507 "mrbgems/mruby-compiler/core/parse.y" |
| 9574 |
{ |
| 9575 |
(yyval.id) = (yyvsp[0].id); |
| 9576 |
} |
| 9577 |
#line 9578 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9578 |
break; |
| 9579 |
|
| 9580 |
case 473: /* sym: tSTRING */ |
| 9581 |
#line 3517 "mrbgems/mruby-compiler/core/parse.y" |
| 9582 |
{ |
| 9583 |
(yyval.id) = new_strsym(p, (yyvsp[0].nd)); |
| 9584 |
} |
| 9585 |
#line 9586 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9586 |
break; |
| 9587 |
|
| 9588 |
case 474: /* sym: "string literal" tSTRING */ |
| 9589 |
#line 3521 "mrbgems/mruby-compiler/core/parse.y" |
| 9590 |
{ |
| 9591 |
(yyval.id) = new_strsym(p, (yyvsp[0].nd)); |
| 9592 |
} |
| 9593 |
#line 9594 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9594 |
break; |
| 9595 |
|
| 9596 |
case 475: /* symbols: tSYMBOLS_BEG tSTRING */ |
| 9597 |
#line 3527 "mrbgems/mruby-compiler/core/parse.y" |
| 9598 |
{ |
| 9599 |
(yyval.nd) = new_symbols(p, list1((yyvsp[0].nd))); |
| 9600 |
} |
| 9601 |
#line 9602 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9602 |
break; |
| 9603 |
|
| 9604 |
case 476: /* symbols: tSYMBOLS_BEG string_rep tSTRING */ |
| 9605 |
#line 3531 "mrbgems/mruby-compiler/core/parse.y" |
| 9606 |
{ |
| 9607 |
node *n = (yyvsp[-1].nd); |
| 9608 |
if (intn((yyvsp[0].nd)->cdr->cdr) > 0) { |
| 9609 |
n = push(n, (yyvsp[0].nd)); |
| 9610 |
} |
| 9611 |
(yyval.nd) = new_symbols(p, n); |
| 9612 |
} |
| 9613 |
#line 9614 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9614 |
break; |
| 9615 |
|
| 9616 |
case 479: /* numeric: tUMINUS_NUM "integer literal" */ |
| 9617 |
#line 3543 "mrbgems/mruby-compiler/core/parse.y" |
| 9618 |
{ |
| 9619 |
(yyval.nd) = new_negate(p, (yyvsp[0].nd)); |
| 9620 |
} |
| 9621 |
#line 9622 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9622 |
break; |
| 9623 |
|
| 9624 |
case 480: /* numeric: tUMINUS_NUM "float literal" */ |
| 9625 |
#line 3547 "mrbgems/mruby-compiler/core/parse.y" |
| 9626 |
{ |
| 9627 |
(yyval.nd) = new_negate(p, (yyvsp[0].nd)); |
| 9628 |
} |
| 9629 |
#line 9630 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9630 |
break; |
| 9631 |
|
| 9632 |
case 481: /* variable: "local variable or method" */ |
| 9633 |
#line 3553 "mrbgems/mruby-compiler/core/parse.y" |
| 9634 |
{ |
| 9635 |
(yyval.nd) = new_lvar(p, (yyvsp[0].id)); |
| 9636 |
} |
| 9637 |
#line 9638 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9638 |
break; |
| 9639 |
|
| 9640 |
case 482: /* variable: "instance variable" */ |
| 9641 |
#line 3557 "mrbgems/mruby-compiler/core/parse.y" |
| 9642 |
{ |
| 9643 |
(yyval.nd) = new_ivar(p, (yyvsp[0].id)); |
| 9644 |
} |
| 9645 |
#line 9646 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9646 |
break; |
| 9647 |
|
| 9648 |
case 483: /* variable: "global variable" */ |
| 9649 |
#line 3561 "mrbgems/mruby-compiler/core/parse.y" |
| 9650 |
{ |
| 9651 |
(yyval.nd) = new_gvar(p, (yyvsp[0].id)); |
| 9652 |
} |
| 9653 |
#line 9654 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9654 |
break; |
| 9655 |
|
| 9656 |
case 484: /* variable: "class variable" */ |
| 9657 |
#line 3565 "mrbgems/mruby-compiler/core/parse.y" |
| 9658 |
{ |
| 9659 |
(yyval.nd) = new_cvar(p, (yyvsp[0].id)); |
| 9660 |
} |
| 9661 |
#line 9662 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9662 |
break; |
| 9663 |
|
| 9664 |
case 485: /* variable: "constant" */ |
| 9665 |
#line 3569 "mrbgems/mruby-compiler/core/parse.y" |
| 9666 |
{ |
| 9667 |
(yyval.nd) = new_const(p, (yyvsp[0].id)); |
| 9668 |
} |
| 9669 |
#line 9670 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9670 |
break; |
| 9671 |
|
| 9672 |
case 486: /* var_lhs: variable */ |
| 9673 |
#line 3575 "mrbgems/mruby-compiler/core/parse.y" |
| 9674 |
{ |
| 9675 |
assignable(p, (yyvsp[0].nd)); |
| 9676 |
} |
| 9677 |
#line 9678 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9678 |
break; |
| 9679 |
|
| 9680 |
case 487: /* var_lhs: "numbered parameter" */ |
| 9681 |
#line 3579 "mrbgems/mruby-compiler/core/parse.y" |
| 9682 |
{ |
| 9683 |
yyerror(p, "can't assign to numbered parameter"); |
| 9684 |
} |
| 9685 |
#line 9686 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9686 |
break; |
| 9687 |
|
| 9688 |
case 488: /* var_ref: variable */ |
| 9689 |
#line 3585 "mrbgems/mruby-compiler/core/parse.y" |
| 9690 |
{ |
| 9691 |
(yyval.nd) = var_reference(p, (yyvsp[0].nd)); |
| 9692 |
} |
| 9693 |
#line 9694 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9694 |
break; |
| 9695 |
|
| 9696 |
case 489: /* var_ref: "'nil'" */ |
| 9697 |
#line 3589 "mrbgems/mruby-compiler/core/parse.y" |
| 9698 |
{ |
| 9699 |
(yyval.nd) = new_nil(p); |
| 9700 |
} |
| 9701 |
#line 9702 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9702 |
break; |
| 9703 |
|
| 9704 |
case 490: /* var_ref: "'self'" */ |
| 9705 |
#line 3593 "mrbgems/mruby-compiler/core/parse.y" |
| 9706 |
{ |
| 9707 |
(yyval.nd) = new_self(p); |
| 9708 |
} |
| 9709 |
#line 9710 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9710 |
break; |
| 9711 |
|
| 9712 |
case 491: /* var_ref: "'true'" */ |
| 9713 |
#line 3597 "mrbgems/mruby-compiler/core/parse.y" |
| 9714 |
{ |
| 9715 |
(yyval.nd) = new_true(p); |
| 9716 |
} |
| 9717 |
#line 9718 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9718 |
break; |
| 9719 |
|
| 9720 |
case 492: /* var_ref: "'false'" */ |
| 9721 |
#line 3601 "mrbgems/mruby-compiler/core/parse.y" |
| 9722 |
{ |
| 9723 |
(yyval.nd) = new_false(p); |
| 9724 |
} |
| 9725 |
#line 9726 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9726 |
break; |
| 9727 |
|
| 9728 |
case 493: /* var_ref: "'__FILE__'" */ |
| 9729 |
#line 3605 "mrbgems/mruby-compiler/core/parse.y" |
| 9730 |
{ |
| 9731 |
const char *fn = mrb_sym_name_len(p->mrb, p->filename_sym, NULL); |
| 9732 |
if (!fn) { |
| 9733 |
fn = "(null)"; |
| 9734 |
} |
| 9735 |
(yyval.nd) = new_str(p, fn, strlen(fn)); |
| 9736 |
} |
| 9737 |
#line 9738 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9738 |
break; |
| 9739 |
|
| 9740 |
case 494: /* var_ref: "'__LINE__'" */ |
| 9741 |
#line 3613 "mrbgems/mruby-compiler/core/parse.y" |
| 9742 |
{ |
| 9743 |
char buf[16]; |
| 9744 |
|
| 9745 |
dump_int(p->lineno, buf); |
| 9746 |
(yyval.nd) = new_int(p, buf, 10, 0); |
| 9747 |
} |
| 9748 |
#line 9749 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9749 |
break; |
| 9750 |
|
| 9751 |
case 495: /* var_ref: "'__ENCODING__'" */ |
| 9752 |
#line 3620 "mrbgems/mruby-compiler/core/parse.y" |
| 9753 |
{ |
| 9754 |
(yyval.nd) = new_fcall(p, MRB_SYM_2(p->mrb, __ENCODING__), 0); |
| 9755 |
} |
| 9756 |
#line 9757 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9757 |
break; |
| 9758 |
|
| 9759 |
case 498: /* superclass: %empty */ |
| 9760 |
#line 3630 "mrbgems/mruby-compiler/core/parse.y" |
| 9761 |
{ |
| 9762 |
(yyval.nd) = 0; |
| 9763 |
} |
| 9764 |
#line 9765 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9765 |
break; |
| 9766 |
|
| 9767 |
case 499: /* $@31: %empty */ |
| 9768 |
#line 3634 "mrbgems/mruby-compiler/core/parse.y" |
| 9769 |
{ |
| 9770 |
p->lstate = EXPR_BEG; |
| 9771 |
p->cmd_start = TRUE; |
| 9772 |
} |
| 9773 |
#line 9774 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9774 |
break; |
| 9775 |
|
| 9776 |
case 500: /* superclass: '<' $@31 expr_value term */ |
| 9777 |
#line 3639 "mrbgems/mruby-compiler/core/parse.y" |
| 9778 |
{ |
| 9779 |
(yyval.nd) = (yyvsp[-1].nd); |
| 9780 |
} |
| 9781 |
#line 9782 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9782 |
break; |
| 9783 |
|
| 9784 |
case 503: /* f_arglist_paren: '(' f_args rparen */ |
| 9785 |
#line 3655 "mrbgems/mruby-compiler/core/parse.y" |
| 9786 |
{ |
| 9787 |
(yyval.nd) = (yyvsp[-1].nd); |
| 9788 |
p->lstate = EXPR_BEG; |
| 9789 |
p->cmd_start = TRUE; |
| 9790 |
} |
| 9791 |
#line 9792 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9792 |
break; |
| 9793 |
|
| 9794 |
case 504: /* f_arglist_paren: '(' f_arg ',' tBDOT3 rparen */ |
| 9795 |
#line 3661 "mrbgems/mruby-compiler/core/parse.y" |
| 9796 |
{ |
| 9797 |
(yyval.nd) = new_args_dots(p, (yyvsp[-3].nd)); |
| 9798 |
} |
| 9799 |
#line 9800 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9800 |
break; |
| 9801 |
|
| 9802 |
case 505: /* f_arglist_paren: '(' tBDOT3 rparen */ |
| 9803 |
#line 3665 "mrbgems/mruby-compiler/core/parse.y" |
| 9804 |
{ |
| 9805 |
(yyval.nd) = new_args_dots(p, 0); |
| 9806 |
} |
| 9807 |
#line 9808 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9808 |
break; |
| 9809 |
|
| 9810 |
case 507: /* f_arglist: f_args term */ |
| 9811 |
#line 3672 "mrbgems/mruby-compiler/core/parse.y" |
| 9812 |
{ |
| 9813 |
(yyval.nd) = (yyvsp[-1].nd); |
| 9814 |
} |
| 9815 |
#line 9816 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9816 |
break; |
| 9817 |
|
| 9818 |
case 508: /* f_arglist: f_arg ',' tBDOT3 term */ |
| 9819 |
#line 3676 "mrbgems/mruby-compiler/core/parse.y" |
| 9820 |
{ |
| 9821 |
(yyval.nd) = new_args_dots(p, (yyvsp[-3].nd)); |
| 9822 |
} |
| 9823 |
#line 9824 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9824 |
break; |
| 9825 |
|
| 9826 |
case 509: /* f_arglist: "..." term */ |
| 9827 |
#line 3680 "mrbgems/mruby-compiler/core/parse.y" |
| 9828 |
{ |
| 9829 |
(yyval.nd) = new_args_dots(p, 0); |
| 9830 |
} |
| 9831 |
#line 9832 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9832 |
break; |
| 9833 |
|
| 9834 |
case 510: /* f_label: "local variable or method" "label" */ |
| 9835 |
#line 3686 "mrbgems/mruby-compiler/core/parse.y" |
| 9836 |
{ |
| 9837 |
local_nest(p); |
| 9838 |
} |
| 9839 |
#line 9840 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9840 |
break; |
| 9841 |
|
| 9842 |
case 511: /* f_label: "numbered parameter" "label" */ |
| 9843 |
#line 3690 "mrbgems/mruby-compiler/core/parse.y" |
| 9844 |
{ |
| 9845 |
local_nest(p); |
| 9846 |
} |
| 9847 |
#line 9848 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9848 |
break; |
| 9849 |
|
| 9850 |
case 512: /* f_kw: f_label arg */ |
| 9851 |
#line 3696 "mrbgems/mruby-compiler/core/parse.y" |
| 9852 |
{ |
| 9853 |
void_expr_error(p, (yyvsp[0].nd)); |
| 9854 |
(yyval.nd) = new_kw_arg(p, (yyvsp[-1].id), cons((yyvsp[0].nd), locals_node(p))); |
| 9855 |
local_unnest(p); |
| 9856 |
} |
| 9857 |
#line 9858 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9858 |
break; |
| 9859 |
|
| 9860 |
case 513: /* f_kw: f_label */ |
| 9861 |
#line 3702 "mrbgems/mruby-compiler/core/parse.y" |
| 9862 |
{ |
| 9863 |
(yyval.nd) = new_kw_arg(p, (yyvsp[0].id), 0); |
| 9864 |
local_unnest(p); |
| 9865 |
} |
| 9866 |
#line 9867 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9867 |
break; |
| 9868 |
|
| 9869 |
case 514: /* f_block_kw: f_label primary_value */ |
| 9870 |
#line 3709 "mrbgems/mruby-compiler/core/parse.y" |
| 9871 |
{ |
| 9872 |
void_expr_error(p, (yyvsp[0].nd)); |
| 9873 |
(yyval.nd) = new_kw_arg(p, (yyvsp[-1].id), cons((yyvsp[0].nd), locals_node(p))); |
| 9874 |
local_unnest(p); |
| 9875 |
} |
| 9876 |
#line 9877 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9877 |
break; |
| 9878 |
|
| 9879 |
case 515: /* f_block_kw: f_label */ |
| 9880 |
#line 3715 "mrbgems/mruby-compiler/core/parse.y" |
| 9881 |
{ |
| 9882 |
(yyval.nd) = new_kw_arg(p, (yyvsp[0].id), 0); |
| 9883 |
local_unnest(p); |
| 9884 |
} |
| 9885 |
#line 9886 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9886 |
break; |
| 9887 |
|
| 9888 |
case 516: /* f_block_kwarg: f_block_kw */ |
| 9889 |
#line 3722 "mrbgems/mruby-compiler/core/parse.y" |
| 9890 |
{ |
| 9891 |
(yyval.nd) = list1((yyvsp[0].nd)); |
| 9892 |
} |
| 9893 |
#line 9894 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9894 |
break; |
| 9895 |
|
| 9896 |
case 517: /* f_block_kwarg: f_block_kwarg ',' f_block_kw */ |
| 9897 |
#line 3726 "mrbgems/mruby-compiler/core/parse.y" |
| 9898 |
{ |
| 9899 |
(yyval.nd) = push((yyvsp[-2].nd), (yyvsp[0].nd)); |
| 9900 |
} |
| 9901 |
#line 9902 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9902 |
break; |
| 9903 |
|
| 9904 |
case 518: /* f_kwarg: f_kw */ |
| 9905 |
#line 3732 "mrbgems/mruby-compiler/core/parse.y" |
| 9906 |
{ |
| 9907 |
(yyval.nd) = list1((yyvsp[0].nd)); |
| 9908 |
} |
| 9909 |
#line 9910 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9910 |
break; |
| 9911 |
|
| 9912 |
case 519: /* f_kwarg: f_kwarg ',' f_kw */ |
| 9913 |
#line 3736 "mrbgems/mruby-compiler/core/parse.y" |
| 9914 |
{ |
| 9915 |
(yyval.nd) = push((yyvsp[-2].nd), (yyvsp[0].nd)); |
| 9916 |
} |
| 9917 |
#line 9918 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9918 |
break; |
| 9919 |
|
| 9920 |
case 522: /* f_kwrest: kwrest_mark "local variable or method" */ |
| 9921 |
#line 3746 "mrbgems/mruby-compiler/core/parse.y" |
| 9922 |
{ |
| 9923 |
(yyval.nd) = new_kw_rest_args(p, (yyvsp[0].id)); |
| 9924 |
} |
| 9925 |
#line 9926 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9926 |
break; |
| 9927 |
|
| 9928 |
case 523: /* f_kwrest: kwrest_mark */ |
| 9929 |
#line 3750 "mrbgems/mruby-compiler/core/parse.y" |
| 9930 |
{ |
| 9931 |
(yyval.nd) = new_kw_rest_args(p, 0); |
| 9932 |
} |
| 9933 |
#line 9934 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9934 |
break; |
| 9935 |
|
| 9936 |
case 524: /* args_tail: f_kwarg ',' f_kwrest opt_f_block_arg */ |
| 9937 |
#line 3756 "mrbgems/mruby-compiler/core/parse.y" |
| 9938 |
{ |
| 9939 |
(yyval.nd) = new_args_tail(p, (yyvsp[-3].nd), (yyvsp[-1].nd), (yyvsp[0].id)); |
| 9940 |
} |
| 9941 |
#line 9942 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9942 |
break; |
| 9943 |
|
| 9944 |
case 525: /* args_tail: f_kwarg opt_f_block_arg */ |
| 9945 |
#line 3760 "mrbgems/mruby-compiler/core/parse.y" |
| 9946 |
{ |
| 9947 |
(yyval.nd) = new_args_tail(p, (yyvsp[-1].nd), 0, (yyvsp[0].id)); |
| 9948 |
} |
| 9949 |
#line 9950 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9950 |
break; |
| 9951 |
|
| 9952 |
case 526: /* args_tail: f_kwrest opt_f_block_arg */ |
| 9953 |
#line 3764 "mrbgems/mruby-compiler/core/parse.y" |
| 9954 |
{ |
| 9955 |
(yyval.nd) = new_args_tail(p, 0, (yyvsp[-1].nd), (yyvsp[0].id)); |
| 9956 |
} |
| 9957 |
#line 9958 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9958 |
break; |
| 9959 |
|
| 9960 |
case 527: /* args_tail: f_block_arg */ |
| 9961 |
#line 3768 "mrbgems/mruby-compiler/core/parse.y" |
| 9962 |
{ |
| 9963 |
(yyval.nd) = new_args_tail(p, 0, 0, (yyvsp[0].id)); |
| 9964 |
} |
| 9965 |
#line 9966 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9966 |
break; |
| 9967 |
|
| 9968 |
case 528: /* opt_args_tail: ',' args_tail */ |
| 9969 |
#line 3774 "mrbgems/mruby-compiler/core/parse.y" |
| 9970 |
{ |
| 9971 |
(yyval.nd) = (yyvsp[0].nd); |
| 9972 |
} |
| 9973 |
#line 9974 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9974 |
break; |
| 9975 |
|
| 9976 |
case 529: /* opt_args_tail: %empty */ |
| 9977 |
#line 3778 "mrbgems/mruby-compiler/core/parse.y" |
| 9978 |
{ |
| 9979 |
(yyval.nd) = new_args_tail(p, 0, 0, 0); |
| 9980 |
} |
| 9981 |
#line 9982 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9982 |
break; |
| 9983 |
|
| 9984 |
case 530: /* f_args: f_arg ',' f_optarg ',' f_rest_arg opt_args_tail */ |
| 9985 |
#line 3784 "mrbgems/mruby-compiler/core/parse.y" |
| 9986 |
{ |
| 9987 |
(yyval.nd) = new_args(p, (yyvsp[-5].nd), (yyvsp[-3].nd), (yyvsp[-1].id), 0, (yyvsp[0].nd)); |
| 9988 |
} |
| 9989 |
#line 9990 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9990 |
break; |
| 9991 |
|
| 9992 |
case 531: /* f_args: f_arg ',' f_optarg ',' f_rest_arg ',' f_arg opt_args_tail */ |
| 9993 |
#line 3788 "mrbgems/mruby-compiler/core/parse.y" |
| 9994 |
{ |
| 9995 |
(yyval.nd) = new_args(p, (yyvsp[-7].nd), (yyvsp[-5].nd), (yyvsp[-3].id), (yyvsp[-1].nd), (yyvsp[0].nd)); |
| 9996 |
} |
| 9997 |
#line 9998 "mrbgems/mruby-compiler/core/y.tab.c" |
| 9998 |
break; |
| 9999 |
|
| 10000 |
case 532: /* f_args: f_arg ',' f_optarg opt_args_tail */ |
| 10001 |
#line 3792 "mrbgems/mruby-compiler/core/parse.y" |
| 10002 |
{ |
| 10003 |
(yyval.nd) = new_args(p, (yyvsp[-3].nd), (yyvsp[-1].nd), 0, 0, (yyvsp[0].nd)); |
| 10004 |
} |
| 10005 |
#line 10006 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10006 |
break; |
| 10007 |
|
| 10008 |
case 533: /* f_args: f_arg ',' f_optarg ',' f_arg opt_args_tail */ |
| 10009 |
#line 3796 "mrbgems/mruby-compiler/core/parse.y" |
| 10010 |
{ |
| 10011 |
(yyval.nd) = new_args(p, (yyvsp[-5].nd), (yyvsp[-3].nd), 0, (yyvsp[-1].nd), (yyvsp[0].nd)); |
| 10012 |
} |
| 10013 |
#line 10014 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10014 |
break; |
| 10015 |
|
| 10016 |
case 534: /* f_args: f_arg ',' f_rest_arg opt_args_tail */ |
| 10017 |
#line 3800 "mrbgems/mruby-compiler/core/parse.y" |
| 10018 |
{ |
| 10019 |
(yyval.nd) = new_args(p, (yyvsp[-3].nd), 0, (yyvsp[-1].id), 0, (yyvsp[0].nd)); |
| 10020 |
} |
| 10021 |
#line 10022 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10022 |
break; |
| 10023 |
|
| 10024 |
case 535: /* f_args: f_arg ',' f_rest_arg ',' f_arg opt_args_tail */ |
| 10025 |
#line 3804 "mrbgems/mruby-compiler/core/parse.y" |
| 10026 |
{ |
| 10027 |
(yyval.nd) = new_args(p, (yyvsp[-5].nd), 0, (yyvsp[-3].id), (yyvsp[-1].nd), (yyvsp[0].nd)); |
| 10028 |
} |
| 10029 |
#line 10030 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10030 |
break; |
| 10031 |
|
| 10032 |
case 536: /* f_args: f_arg opt_args_tail */ |
| 10033 |
#line 3808 "mrbgems/mruby-compiler/core/parse.y" |
| 10034 |
{ |
| 10035 |
(yyval.nd) = new_args(p, (yyvsp[-1].nd), 0, 0, 0, (yyvsp[0].nd)); |
| 10036 |
} |
| 10037 |
#line 10038 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10038 |
break; |
| 10039 |
|
| 10040 |
case 537: /* f_args: f_optarg ',' f_rest_arg opt_args_tail */ |
| 10041 |
#line 3812 "mrbgems/mruby-compiler/core/parse.y" |
| 10042 |
{ |
| 10043 |
(yyval.nd) = new_args(p, 0, (yyvsp[-3].nd), (yyvsp[-1].id), 0, (yyvsp[0].nd)); |
| 10044 |
} |
| 10045 |
#line 10046 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10046 |
break; |
| 10047 |
|
| 10048 |
case 538: /* f_args: f_optarg ',' f_rest_arg ',' f_arg opt_args_tail */ |
| 10049 |
#line 3816 "mrbgems/mruby-compiler/core/parse.y" |
| 10050 |
{ |
| 10051 |
(yyval.nd) = new_args(p, 0, (yyvsp[-5].nd), (yyvsp[-3].id), (yyvsp[-1].nd), (yyvsp[0].nd)); |
| 10052 |
} |
| 10053 |
#line 10054 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10054 |
break; |
| 10055 |
|
| 10056 |
case 539: /* f_args: f_optarg opt_args_tail */ |
| 10057 |
#line 3820 "mrbgems/mruby-compiler/core/parse.y" |
| 10058 |
{ |
| 10059 |
(yyval.nd) = new_args(p, 0, (yyvsp[-1].nd), 0, 0, (yyvsp[0].nd)); |
| 10060 |
} |
| 10061 |
#line 10062 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10062 |
break; |
| 10063 |
|
| 10064 |
case 540: /* f_args: f_optarg ',' f_arg opt_args_tail */ |
| 10065 |
#line 3824 "mrbgems/mruby-compiler/core/parse.y" |
| 10066 |
{ |
| 10067 |
(yyval.nd) = new_args(p, 0, (yyvsp[-3].nd), 0, (yyvsp[-1].nd), (yyvsp[0].nd)); |
| 10068 |
} |
| 10069 |
#line 10070 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10070 |
break; |
| 10071 |
|
| 10072 |
case 541: /* f_args: f_rest_arg opt_args_tail */ |
| 10073 |
#line 3828 "mrbgems/mruby-compiler/core/parse.y" |
| 10074 |
{ |
| 10075 |
(yyval.nd) = new_args(p, 0, 0, (yyvsp[-1].id), 0, (yyvsp[0].nd)); |
| 10076 |
} |
| 10077 |
#line 10078 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10078 |
break; |
| 10079 |
|
| 10080 |
case 542: /* f_args: f_rest_arg ',' f_arg opt_args_tail */ |
| 10081 |
#line 3832 "mrbgems/mruby-compiler/core/parse.y" |
| 10082 |
{ |
| 10083 |
(yyval.nd) = new_args(p, 0, 0, (yyvsp[-3].id), (yyvsp[-1].nd), (yyvsp[0].nd)); |
| 10084 |
} |
| 10085 |
#line 10086 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10086 |
break; |
| 10087 |
|
| 10088 |
case 543: /* f_args: args_tail */ |
| 10089 |
#line 3836 "mrbgems/mruby-compiler/core/parse.y" |
| 10090 |
{ |
| 10091 |
(yyval.nd) = new_args(p, 0, 0, 0, 0, (yyvsp[0].nd)); |
| 10092 |
} |
| 10093 |
#line 10094 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10094 |
break; |
| 10095 |
|
| 10096 |
case 544: /* f_args: %empty */ |
| 10097 |
#line 3840 "mrbgems/mruby-compiler/core/parse.y" |
| 10098 |
{ |
| 10099 |
local_add_f(p, 0); |
| 10100 |
(yyval.nd) = new_args(p, 0, 0, 0, 0, 0); |
| 10101 |
} |
| 10102 |
#line 10103 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10103 |
break; |
| 10104 |
|
| 10105 |
case 545: /* f_bad_arg: "constant" */ |
| 10106 |
#line 3847 "mrbgems/mruby-compiler/core/parse.y" |
| 10107 |
{ |
| 10108 |
yyerror(p, "formal argument cannot be a constant"); |
| 10109 |
(yyval.nd) = 0; |
| 10110 |
} |
| 10111 |
#line 10112 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10112 |
break; |
| 10113 |
|
| 10114 |
case 546: /* f_bad_arg: "instance variable" */ |
| 10115 |
#line 3852 "mrbgems/mruby-compiler/core/parse.y" |
| 10116 |
{ |
| 10117 |
yyerror(p, "formal argument cannot be an instance variable"); |
| 10118 |
(yyval.nd) = 0; |
| 10119 |
} |
| 10120 |
#line 10121 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10121 |
break; |
| 10122 |
|
| 10123 |
case 547: /* f_bad_arg: "global variable" */ |
| 10124 |
#line 3857 "mrbgems/mruby-compiler/core/parse.y" |
| 10125 |
{ |
| 10126 |
yyerror(p, "formal argument cannot be a global variable"); |
| 10127 |
(yyval.nd) = 0; |
| 10128 |
} |
| 10129 |
#line 10130 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10130 |
break; |
| 10131 |
|
| 10132 |
case 548: /* f_bad_arg: "class variable" */ |
| 10133 |
#line 3862 "mrbgems/mruby-compiler/core/parse.y" |
| 10134 |
{ |
| 10135 |
yyerror(p, "formal argument cannot be a class variable"); |
| 10136 |
(yyval.nd) = 0; |
| 10137 |
} |
| 10138 |
#line 10139 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10139 |
break; |
| 10140 |
|
| 10141 |
case 549: /* f_bad_arg: "numbered parameter" */ |
| 10142 |
#line 3867 "mrbgems/mruby-compiler/core/parse.y" |
| 10143 |
{ |
| 10144 |
yyerror(p, "formal argument cannot be a numbered parameter"); |
| 10145 |
(yyval.nd) = 0; |
| 10146 |
} |
| 10147 |
#line 10148 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10148 |
break; |
| 10149 |
|
| 10150 |
case 550: /* f_norm_arg: f_bad_arg */ |
| 10151 |
#line 3874 "mrbgems/mruby-compiler/core/parse.y" |
| 10152 |
{ |
| 10153 |
(yyval.id) = 0; |
| 10154 |
} |
| 10155 |
#line 10156 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10156 |
break; |
| 10157 |
|
| 10158 |
case 551: /* f_norm_arg: "local variable or method" */ |
| 10159 |
#line 3878 "mrbgems/mruby-compiler/core/parse.y" |
| 10160 |
{ |
| 10161 |
local_add_f(p, (yyvsp[0].id)); |
| 10162 |
(yyval.id) = (yyvsp[0].id); |
| 10163 |
} |
| 10164 |
#line 10165 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10165 |
break; |
| 10166 |
|
| 10167 |
case 552: /* f_arg_item: f_norm_arg */ |
| 10168 |
#line 3885 "mrbgems/mruby-compiler/core/parse.y" |
| 10169 |
{ |
| 10170 |
(yyval.nd) = new_arg(p, (yyvsp[0].id)); |
| 10171 |
} |
| 10172 |
#line 10173 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10173 |
break; |
| 10174 |
|
| 10175 |
case 553: /* @32: %empty */ |
| 10176 |
#line 3889 "mrbgems/mruby-compiler/core/parse.y" |
| 10177 |
{ |
| 10178 |
(yyval.nd) = local_switch(p); |
| 10179 |
} |
| 10180 |
#line 10181 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10181 |
break; |
| 10182 |
|
| 10183 |
case 554: /* f_arg_item: tLPAREN @32 f_margs rparen */ |
| 10184 |
#line 3893 "mrbgems/mruby-compiler/core/parse.y" |
| 10185 |
{ |
| 10186 |
(yyval.nd) = new_masgn_param(p, (yyvsp[-1].nd), p->locals->car); |
| 10187 |
local_resume(p, (yyvsp[-2].nd)); |
| 10188 |
local_add_f(p, 0); |
| 10189 |
} |
| 10190 |
#line 10191 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10191 |
break; |
| 10192 |
|
| 10193 |
case 555: /* f_arg: f_arg_item */ |
| 10194 |
#line 3901 "mrbgems/mruby-compiler/core/parse.y" |
| 10195 |
{ |
| 10196 |
(yyval.nd) = list1((yyvsp[0].nd)); |
| 10197 |
} |
| 10198 |
#line 10199 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10199 |
break; |
| 10200 |
|
| 10201 |
case 556: /* f_arg: f_arg ',' f_arg_item */ |
| 10202 |
#line 3905 "mrbgems/mruby-compiler/core/parse.y" |
| 10203 |
{ |
| 10204 |
(yyval.nd) = push((yyvsp[-2].nd), (yyvsp[0].nd)); |
| 10205 |
} |
| 10206 |
#line 10207 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10207 |
break; |
| 10208 |
|
| 10209 |
case 557: /* f_opt_asgn: "local variable or method" '=' */ |
| 10210 |
#line 3911 "mrbgems/mruby-compiler/core/parse.y" |
| 10211 |
{ |
| 10212 |
local_add_f(p, (yyvsp[-1].id)); |
| 10213 |
local_nest(p); |
| 10214 |
(yyval.id) = (yyvsp[-1].id); |
| 10215 |
} |
| 10216 |
#line 10217 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10217 |
break; |
| 10218 |
|
| 10219 |
case 558: /* f_opt: f_opt_asgn arg */ |
| 10220 |
#line 3919 "mrbgems/mruby-compiler/core/parse.y" |
| 10221 |
{ |
| 10222 |
void_expr_error(p, (yyvsp[0].nd)); |
| 10223 |
(yyval.nd) = cons(nsym((yyvsp[-1].id)), cons((yyvsp[0].nd), locals_node(p))); |
| 10224 |
local_unnest(p); |
| 10225 |
} |
| 10226 |
#line 10227 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10227 |
break; |
| 10228 |
|
| 10229 |
case 559: /* f_block_opt: f_opt_asgn primary_value */ |
| 10230 |
#line 3927 "mrbgems/mruby-compiler/core/parse.y" |
| 10231 |
{ |
| 10232 |
void_expr_error(p, (yyvsp[0].nd)); |
| 10233 |
(yyval.nd) = cons(nsym((yyvsp[-1].id)), cons((yyvsp[0].nd), locals_node(p))); |
| 10234 |
local_unnest(p); |
| 10235 |
} |
| 10236 |
#line 10237 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10237 |
break; |
| 10238 |
|
| 10239 |
case 560: /* f_block_optarg: f_block_opt */ |
| 10240 |
#line 3935 "mrbgems/mruby-compiler/core/parse.y" |
| 10241 |
{ |
| 10242 |
(yyval.nd) = list1((yyvsp[0].nd)); |
| 10243 |
} |
| 10244 |
#line 10245 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10245 |
break; |
| 10246 |
|
| 10247 |
case 561: /* f_block_optarg: f_block_optarg ',' f_block_opt */ |
| 10248 |
#line 3939 "mrbgems/mruby-compiler/core/parse.y" |
| 10249 |
{ |
| 10250 |
(yyval.nd) = push((yyvsp[-2].nd), (yyvsp[0].nd)); |
| 10251 |
} |
| 10252 |
#line 10253 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10253 |
break; |
| 10254 |
|
| 10255 |
case 562: /* f_optarg: f_opt */ |
| 10256 |
#line 3945 "mrbgems/mruby-compiler/core/parse.y" |
| 10257 |
{ |
| 10258 |
(yyval.nd) = list1((yyvsp[0].nd)); |
| 10259 |
} |
| 10260 |
#line 10261 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10261 |
break; |
| 10262 |
|
| 10263 |
case 563: /* f_optarg: f_optarg ',' f_opt */ |
| 10264 |
#line 3949 "mrbgems/mruby-compiler/core/parse.y" |
| 10265 |
{ |
| 10266 |
(yyval.nd) = push((yyvsp[-2].nd), (yyvsp[0].nd)); |
| 10267 |
} |
| 10268 |
#line 10269 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10269 |
break; |
| 10270 |
|
| 10271 |
case 566: /* f_rest_arg: restarg_mark "local variable or method" */ |
| 10272 |
#line 3959 "mrbgems/mruby-compiler/core/parse.y" |
| 10273 |
{ |
| 10274 |
local_add_f(p, (yyvsp[0].id)); |
| 10275 |
(yyval.id) = (yyvsp[0].id); |
| 10276 |
} |
| 10277 |
#line 10278 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10278 |
break; |
| 10279 |
|
| 10280 |
case 567: /* f_rest_arg: restarg_mark */ |
| 10281 |
#line 3964 "mrbgems/mruby-compiler/core/parse.y" |
| 10282 |
{ |
| 10283 |
(yyval.id) = intern_op(mul); |
| 10284 |
local_add_f(p, (yyval.id)); |
| 10285 |
} |
| 10286 |
#line 10287 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10287 |
break; |
| 10288 |
|
| 10289 |
case 570: /* f_block_arg: blkarg_mark "local variable or method" */ |
| 10290 |
#line 3975 "mrbgems/mruby-compiler/core/parse.y" |
| 10291 |
{ |
| 10292 |
(yyval.id) = (yyvsp[0].id); |
| 10293 |
} |
| 10294 |
#line 10295 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10295 |
break; |
| 10296 |
|
| 10297 |
case 571: /* f_block_arg: blkarg_mark */ |
| 10298 |
#line 3979 "mrbgems/mruby-compiler/core/parse.y" |
| 10299 |
{ |
| 10300 |
(yyval.id) = intern_op(and); |
| 10301 |
} |
| 10302 |
#line 10303 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10303 |
break; |
| 10304 |
|
| 10305 |
case 572: /* opt_f_block_arg: ',' f_block_arg */ |
| 10306 |
#line 3985 "mrbgems/mruby-compiler/core/parse.y" |
| 10307 |
{ |
| 10308 |
(yyval.id) = (yyvsp[0].id); |
| 10309 |
} |
| 10310 |
#line 10311 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10311 |
break; |
| 10312 |
|
| 10313 |
case 573: /* opt_f_block_arg: none */ |
| 10314 |
#line 3989 "mrbgems/mruby-compiler/core/parse.y" |
| 10315 |
{ |
| 10316 |
(yyval.id) = 0; |
| 10317 |
} |
| 10318 |
#line 10319 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10319 |
break; |
| 10320 |
|
| 10321 |
case 574: /* singleton: var_ref */ |
| 10322 |
#line 3995 "mrbgems/mruby-compiler/core/parse.y" |
| 10323 |
{ |
| 10324 |
(yyval.nd) = (yyvsp[0].nd); |
| 10325 |
if (!(yyval.nd)) (yyval.nd) = new_nil(p); |
| 10326 |
} |
| 10327 |
#line 10328 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10328 |
break; |
| 10329 |
|
| 10330 |
case 575: /* $@33: %empty */ |
| 10331 |
#line 3999 "mrbgems/mruby-compiler/core/parse.y" |
| 10332 |
{p->lstate = EXPR_BEG;} |
| 10333 |
#line 10334 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10334 |
break; |
| 10335 |
|
| 10336 |
case 576: /* singleton: '(' $@33 expr rparen */ |
| 10337 |
#line 4000 "mrbgems/mruby-compiler/core/parse.y" |
| 10338 |
{ |
| 10339 |
if ((yyvsp[-1].nd) == 0) { |
| 10340 |
yyerror(p, "can't define singleton method for ()."); |
| 10341 |
} |
| 10342 |
else { |
| 10343 |
switch (typen((yyvsp[-1].nd)->car)) { |
| 10344 |
case NODE_STR: |
| 10345 |
case NODE_DSTR: |
| 10346 |
case NODE_XSTR: |
| 10347 |
case NODE_DXSTR: |
| 10348 |
case NODE_DREGX: |
| 10349 |
case NODE_MATCH: |
| 10350 |
case NODE_FLOAT: |
| 10351 |
case NODE_ARRAY: |
| 10352 |
case NODE_HEREDOC: |
| 10353 |
yyerror(p, "can't define singleton method for literals"); |
| 10354 |
default: |
| 10355 |
break; |
| 10356 |
} |
| 10357 |
} |
| 10358 |
(yyval.nd) = (yyvsp[-1].nd); |
| 10359 |
} |
| 10360 |
#line 10361 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10361 |
break; |
| 10362 |
|
| 10363 |
case 578: /* assoc_list: assocs trailer */ |
| 10364 |
#line 4026 "mrbgems/mruby-compiler/core/parse.y" |
| 10365 |
{ |
| 10366 |
(yyval.nd) = (yyvsp[-1].nd); |
| 10367 |
} |
| 10368 |
#line 10369 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10369 |
break; |
| 10370 |
|
| 10371 |
case 579: /* assocs: assoc */ |
| 10372 |
#line 4032 "mrbgems/mruby-compiler/core/parse.y" |
| 10373 |
{ |
| 10374 |
(yyval.nd) = list1((yyvsp[0].nd)); |
| 10375 |
NODE_LINENO((yyval.nd), (yyvsp[0].nd)); |
| 10376 |
} |
| 10377 |
#line 10378 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10378 |
break; |
| 10379 |
|
| 10380 |
case 580: /* assocs: assocs comma assoc */ |
| 10381 |
#line 4037 "mrbgems/mruby-compiler/core/parse.y" |
| 10382 |
{ |
| 10383 |
(yyval.nd) = push((yyvsp[-2].nd), (yyvsp[0].nd)); |
| 10384 |
} |
| 10385 |
#line 10386 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10386 |
break; |
| 10387 |
|
| 10388 |
case 581: /* assoc: arg "=>" arg */ |
| 10389 |
#line 4043 "mrbgems/mruby-compiler/core/parse.y" |
| 10390 |
{ |
| 10391 |
void_expr_error(p, (yyvsp[-2].nd)); |
| 10392 |
void_expr_error(p, (yyvsp[0].nd)); |
| 10393 |
(yyval.nd) = cons((yyvsp[-2].nd), (yyvsp[0].nd)); |
| 10394 |
} |
| 10395 |
#line 10396 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10396 |
break; |
| 10397 |
|
| 10398 |
case 582: /* assoc: "local variable or method" "label" arg */ |
| 10399 |
#line 4049 "mrbgems/mruby-compiler/core/parse.y" |
| 10400 |
{ |
| 10401 |
void_expr_error(p, (yyvsp[0].nd)); |
| 10402 |
(yyval.nd) = cons(new_sym(p, (yyvsp[-2].id)), (yyvsp[0].nd)); |
| 10403 |
} |
| 10404 |
#line 10405 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10405 |
break; |
| 10406 |
|
| 10407 |
case 583: /* assoc: "local variable or method" "label" */ |
| 10408 |
#line 4054 "mrbgems/mruby-compiler/core/parse.y" |
| 10409 |
{ |
| 10410 |
(yyval.nd) = cons(new_sym(p, (yyvsp[-1].id)), label_reference(p, (yyvsp[-1].id))); |
| 10411 |
} |
| 10412 |
#line 10413 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10413 |
break; |
| 10414 |
|
| 10415 |
case 584: /* assoc: "numbered parameter" "label" */ |
| 10416 |
#line 4058 "mrbgems/mruby-compiler/core/parse.y" |
| 10417 |
{ |
| 10418 |
mrb_sym sym = intern_numparam((yyvsp[-1].num)); |
| 10419 |
(yyval.nd) = cons(new_sym(p, sym), label_reference(p, sym)); |
| 10420 |
} |
| 10421 |
#line 10422 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10422 |
break; |
| 10423 |
|
| 10424 |
case 585: /* assoc: "numbered parameter" "label" arg */ |
| 10425 |
#line 4063 "mrbgems/mruby-compiler/core/parse.y" |
| 10426 |
{ |
| 10427 |
void_expr_error(p, (yyvsp[0].nd)); |
| 10428 |
(yyval.nd) = cons(new_sym(p, intern_numparam((yyvsp[-2].num))), (yyvsp[0].nd)); |
| 10429 |
} |
| 10430 |
#line 10431 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10431 |
break; |
| 10432 |
|
| 10433 |
case 586: /* assoc: string_fragment "label" arg */ |
| 10434 |
#line 4068 "mrbgems/mruby-compiler/core/parse.y" |
| 10435 |
{ |
| 10436 |
void_expr_error(p, (yyvsp[0].nd)); |
| 10437 |
if (typen((yyvsp[-2].nd)->car) == NODE_DSTR) { |
| 10438 |
(yyval.nd) = cons(new_dsym(p, (yyvsp[-2].nd)), (yyvsp[0].nd)); |
| 10439 |
} |
| 10440 |
else { |
| 10441 |
(yyval.nd) = cons(new_sym(p, new_strsym(p, (yyvsp[-2].nd))), (yyvsp[0].nd)); |
| 10442 |
} |
| 10443 |
} |
| 10444 |
#line 10445 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10445 |
break; |
| 10446 |
|
| 10447 |
case 587: /* assoc: "**" arg */ |
| 10448 |
#line 4078 "mrbgems/mruby-compiler/core/parse.y" |
| 10449 |
{ |
| 10450 |
void_expr_error(p, (yyvsp[0].nd)); |
| 10451 |
(yyval.nd) = cons(new_kw_rest_args(p, 0), (yyvsp[0].nd)); |
| 10452 |
} |
| 10453 |
#line 10454 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10454 |
break; |
| 10455 |
|
| 10456 |
case 588: /* assoc: "**" */ |
| 10457 |
#line 4083 "mrbgems/mruby-compiler/core/parse.y" |
| 10458 |
{ |
| 10459 |
(yyval.nd) = cons(new_kw_rest_args(p, 0), new_lvar(p, intern_op(pow))); |
| 10460 |
} |
| 10461 |
#line 10462 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10462 |
break; |
| 10463 |
|
| 10464 |
case 601: /* call_op: '.' */ |
| 10465 |
#line 4109 "mrbgems/mruby-compiler/core/parse.y" |
| 10466 |
{ |
| 10467 |
(yyval.num) = '.'; |
| 10468 |
} |
| 10469 |
#line 10470 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10470 |
break; |
| 10471 |
|
| 10472 |
case 602: /* call_op: "&." */ |
| 10473 |
#line 4113 "mrbgems/mruby-compiler/core/parse.y" |
| 10474 |
{ |
| 10475 |
(yyval.num) = 0; |
| 10476 |
} |
| 10477 |
#line 10478 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10478 |
break; |
| 10479 |
|
| 10480 |
case 604: /* call_op2: "::" */ |
| 10481 |
#line 4120 "mrbgems/mruby-compiler/core/parse.y" |
| 10482 |
{ |
| 10483 |
(yyval.num) = tCOLON2; |
| 10484 |
} |
| 10485 |
#line 10486 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10486 |
break; |
| 10487 |
|
| 10488 |
case 613: /* term: ';' */ |
| 10489 |
#line 4141 "mrbgems/mruby-compiler/core/parse.y" |
| 10490 |
{yyerrok;} |
| 10491 |
#line 10492 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10492 |
break; |
| 10493 |
|
| 10494 |
case 615: /* nl: '\n' */ |
| 10495 |
#line 4146 "mrbgems/mruby-compiler/core/parse.y" |
| 10496 |
{ |
| 10497 |
p->lineno += (yyvsp[0].num); |
| 10498 |
p->column = 0; |
| 10499 |
} |
| 10500 |
#line 10501 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10501 |
break; |
| 10502 |
|
| 10503 |
case 619: /* none: %empty */ |
| 10504 |
#line 4158 "mrbgems/mruby-compiler/core/parse.y" |
| 10505 |
{ |
| 10506 |
(yyval.nd) = 0; |
| 10507 |
} |
| 10508 |
#line 10509 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10509 |
break; |
| 10510 |
|
| 10511 |
|
| 10512 |
#line 10513 "mrbgems/mruby-compiler/core/y.tab.c" |
| 10513 |
|
| 10514 |
default: break; |
| 10515 |
} |
| 10516 |
/* User semantic actions sometimes alter yychar, and that requires |
| 10517 |
that yytoken be updated with the new translation. We take the |
| 10518 |
approach of translating immediately before every use of yytoken. |
| 10519 |
One alternative is translating here after every semantic action, |
| 10520 |
but that translation would be missed if the semantic action invokes |
| 10521 |
YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or |
| 10522 |
if it invokes YYBACKUP. In the case of YYABORT or YYACCEPT, an |
| 10523 |
incorrect destructor might then be invoked immediately. In the |
| 10524 |
case of YYERROR or YYBACKUP, subsequent parser actions might lead |
| 10525 |
to an incorrect destructor call or verbose syntax error message |
| 10526 |
before the lookahead is translated. */ |
| 10527 |
YY_SYMBOL_PRINT ("-> $$ =", YY_CAST (yysymbol_kind_t, yyr1[yyn]), &yyval, &yyloc); |
| 10528 |
|
| 10529 |
YYPOPSTACK (yylen); |
| 10530 |
yylen = 0; |
| 10531 |
|
| 10532 |
*++yyvsp = yyval; |
| 10533 |
|
| 10534 |
/* Now 'shift' the result of the reduction. Determine what state |
| 10535 |
that goes to, based on the state we popped back to and the rule |
| 10536 |
number reduced by. */ |
| 10537 |
{ |
| 10538 |
const int yylhs = yyr1[yyn] - YYNTOKENS; |
| 10539 |
const int yyi = yypgoto[yylhs] + *yyssp; |
| 10540 |
yystate = (0 <= yyi && yyi <= YYLAST && yycheck[yyi] == *yyssp |
| 10541 |
? yytable[yyi] |
| 10542 |
: yydefgoto[yylhs]); |
| 10543 |
} |
| 10544 |
|
| 10545 |
goto yynewstate; |
| 10546 |
|
| 10547 |
|
| 10548 |
/*--------------------------------------. |
| 10549 |
| yyerrlab -- here on detecting error. | |
| 10550 |
`--------------------------------------*/ |
| 10551 |
yyerrlab: |
| 10552 |
/* Make sure we have latest lookahead translation. See comments at |
| 10553 |
user semantic actions for why this is necessary. */ |
| 10554 |
yytoken = yychar == YYEMPTY ? YYSYMBOL_YYEMPTY : YYTRANSLATE (yychar); |
| 10555 |
/* If not already recovering from an error, report this error. */ |
| 10556 |
if (!yyerrstatus) |
| 10557 |
{ |
| 10558 |
++yynerrs; |
| 10559 |
{ |
| 10560 |
yypcontext_t yyctx |
| 10561 |
= {yyssp, yytoken}; |
| 10562 |
char const *yymsgp = YY_("syntax error"); |
| 10563 |
int yysyntax_error_status; |
| 10564 |
yysyntax_error_status = yysyntax_error (&yymsg_alloc, &yymsg, &yyctx); |
| 10565 |
if (yysyntax_error_status == 0) |
| 10566 |
yymsgp = yymsg; |
| 10567 |
else if (yysyntax_error_status == -1) |
| 10568 |
{ |
| 10569 |
if (yymsg != yymsgbuf) |
| 10570 |
YYSTACK_FREE (yymsg); |
| 10571 |
yymsg = YY_CAST (char *, |
| 10572 |
YYSTACK_ALLOC (YY_CAST (YYSIZE_T, yymsg_alloc))); |
| 10573 |
if (yymsg) |
| 10574 |
{ |
| 10575 |
yysyntax_error_status |
| 10576 |
= yysyntax_error (&yymsg_alloc, &yymsg, &yyctx); |
| 10577 |
yymsgp = yymsg; |
| 10578 |
} |
| 10579 |
else |
| 10580 |
{ |
| 10581 |
yymsg = yymsgbuf; |
| 10582 |
yymsg_alloc = sizeof yymsgbuf; |
| 10583 |
yysyntax_error_status = YYENOMEM; |
| 10584 |
} |
| 10585 |
} |
| 10586 |
yyerror (p, yymsgp); |
| 10587 |
if (yysyntax_error_status == YYENOMEM) |
| 10588 |
YYNOMEM; |
| 10589 |
} |
| 10590 |
} |
| 10591 |
|
| 10592 |
if (yyerrstatus == 3) |
| 10593 |
{ |
| 10594 |
/* If just tried and failed to reuse lookahead token after an |
| 10595 |
error, discard it. */ |
| 10596 |
|
| 10597 |
if (yychar <= YYEOF) |
| 10598 |
{ |
| 10599 |
/* Return failure if at end of input. */ |
| 10600 |
if (yychar == YYEOF) |
| 10601 |
YYABORT; |
| 10602 |
} |
| 10603 |
else |
| 10604 |
{ |
| 10605 |
yydestruct ("Error: discarding", |
| 10606 |
yytoken, &yylval, p); |
| 10607 |
yychar = YYEMPTY; |
| 10608 |
} |
| 10609 |
} |
| 10610 |
|
| 10611 |
/* Else will try to reuse lookahead token after shifting the error |
| 10612 |
token. */ |
| 10613 |
goto yyerrlab1; |
| 10614 |
|
| 10615 |
|
| 10616 |
/*---------------------------------------------------. |
| 10617 |
| yyerrorlab -- error raised explicitly by YYERROR. | |
| 10618 |
`---------------------------------------------------*/ |
| 10619 |
yyerrorlab: |
| 10620 |
/* Pacify compilers when the user code never invokes YYERROR and the |
| 10621 |
label yyerrorlab therefore never appears in user code. */ |
| 10622 |
if (0) |
| 10623 |
YYERROR; |
| 10624 |
++yynerrs; |
| 10625 |
|
| 10626 |
/* Do not reclaim the symbols of the rule whose action triggered |
| 10627 |
this YYERROR. */ |
| 10628 |
YYPOPSTACK (yylen); |
| 10629 |
yylen = 0; |
| 10630 |
YY_STACK_PRINT (yyss, yyssp); |
| 10631 |
yystate = *yyssp; |
| 10632 |
goto yyerrlab1; |
| 10633 |
|
| 10634 |
|
| 10635 |
/*-------------------------------------------------------------. |
| 10636 |
| yyerrlab1 -- common code for both syntax error and YYERROR. | |
| 10637 |
`-------------------------------------------------------------*/ |
| 10638 |
yyerrlab1: |
| 10639 |
yyerrstatus = 3; /* Each real token shifted decrements this. */ |
| 10640 |
|
| 10641 |
/* Pop stack until we find a state that shifts the error token. */ |
| 10642 |
for (;;) |
| 10643 |
{ |
| 10644 |
yyn = yypact[yystate]; |
| 10645 |
if (!yypact_value_is_default (yyn)) |
| 10646 |
{ |
| 10647 |
yyn += YYSYMBOL_YYerror; |
| 10648 |
if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) |
| 10649 |
{ |
| 10650 |
yyn = yytable[yyn]; |
| 10651 |
if (0 < yyn) |
| 10652 |
break; |
| 10653 |
} |
| 10654 |
} |
| 10655 |
|
| 10656 |
/* Pop the current state because it cannot handle the error token. */ |
| 10657 |
if (yyssp == yyss) |
| 10658 |
YYABORT; |
| 10659 |
|
| 10660 |
|
| 10661 |
yydestruct ("Error: popping", |
| 10662 |
YY_ACCESSING_SYMBOL (yystate), yyvsp, p); |
| 10663 |
YYPOPSTACK (1); |
| 10664 |
yystate = *yyssp; |
| 10665 |
YY_STACK_PRINT (yyss, yyssp); |
| 10666 |
} |
| 10667 |
|
| 10668 |
YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
| 10669 |
*++yyvsp = yylval; |
| 10670 |
YY_IGNORE_MAYBE_UNINITIALIZED_END |
| 10671 |
|
| 10672 |
|
| 10673 |
/* Shift the error token. */ |
| 10674 |
YY_SYMBOL_PRINT ("Shifting", YY_ACCESSING_SYMBOL (yyn), yyvsp, yylsp); |
| 10675 |
|
| 10676 |
yystate = yyn; |
| 10677 |
goto yynewstate; |
| 10678 |
|
| 10679 |
|
| 10680 |
/*-------------------------------------. |
| 10681 |
| yyacceptlab -- YYACCEPT comes here. | |
| 10682 |
`-------------------------------------*/ |
| 10683 |
yyacceptlab: |
| 10684 |
yyresult = 0; |
| 10685 |
goto yyreturnlab; |
| 10686 |
|
| 10687 |
|
| 10688 |
/*-----------------------------------. |
| 10689 |
| yyabortlab -- YYABORT comes here. | |
| 10690 |
`-----------------------------------*/ |
| 10691 |
yyabortlab: |
| 10692 |
yyresult = 1; |
| 10693 |
goto yyreturnlab; |
| 10694 |
|
| 10695 |
|
| 10696 |
/*-----------------------------------------------------------. |
| 10697 |
| yyexhaustedlab -- YYNOMEM (memory exhaustion) comes here. | |
| 10698 |
`-----------------------------------------------------------*/ |
| 10699 |
yyexhaustedlab: |
| 10700 |
yyerror (p, YY_("memory exhausted")); |
| 10701 |
yyresult = 2; |
| 10702 |
goto yyreturnlab; |
| 10703 |
|
| 10704 |
|
| 10705 |
/*----------------------------------------------------------. |
| 10706 |
| yyreturnlab -- parsing is finished, clean up and return. | |
| 10707 |
`----------------------------------------------------------*/ |
| 10708 |
yyreturnlab: |
| 10709 |
if (yychar != YYEMPTY) |
| 10710 |
{ |
| 10711 |
/* Make sure we have latest lookahead translation. See comments at |
| 10712 |
user semantic actions for why this is necessary. */ |
| 10713 |
yytoken = YYTRANSLATE (yychar); |
| 10714 |
yydestruct ("Cleanup: discarding lookahead", |
| 10715 |
yytoken, &yylval, p); |
| 10716 |
} |
| 10717 |
/* Do not reclaim the symbols of the rule whose action triggered |
| 10718 |
this YYABORT or YYACCEPT. */ |
| 10719 |
YYPOPSTACK (yylen); |
| 10720 |
YY_STACK_PRINT (yyss, yyssp); |
| 10721 |
while (yyssp != yyss) |
| 10722 |
{ |
| 10723 |
yydestruct ("Cleanup: popping", |
| 10724 |
YY_ACCESSING_SYMBOL (+*yyssp), yyvsp, p); |
| 10725 |
YYPOPSTACK (1); |
| 10726 |
} |
| 10727 |
#ifndef yyoverflow |
| 10728 |
if (yyss != yyssa) |
| 10729 |
YYSTACK_FREE (yyss); |
| 10730 |
#endif |
| 10731 |
if (yymsg != yymsgbuf) |
| 10732 |
YYSTACK_FREE (yymsg); |
| 10733 |
return yyresult; |
| 10734 |
} |
| 10735 |
|
| 10736 |
#line 4162 "mrbgems/mruby-compiler/core/parse.y" |
| 10737 |
|
| 10738 |
#define pylval (*((YYSTYPE*)(p->ylval))) |
| 10739 |
|
| 10740 |
static void |
| 10741 |
yyerror(parser_state *p, const char *s) |
| 10742 |
{ |
| 10743 |
char* c; |
| 10744 |
size_t n; |
| 10745 |
|
| 10746 |
if (! p->capture_errors) { |
| 10747 |
#ifndef MRB_NO_STDIO |
| 10748 |
if (p->filename_sym) { |
| 10749 |
const char *filename = mrb_sym_name_len(p->mrb, p->filename_sym, NULL); |
| 10750 |
fprintf(stderr, "%s:%d:%d: %s\n", filename, p->lineno, p->column, s); |
| 10751 |
} |
| 10752 |
else { |
| 10753 |
fprintf(stderr, "line %d:%d: %s\n", p->lineno, p->column, s); |
| 10754 |
} |
| 10755 |
#endif |
| 10756 |
} |
| 10757 |
else if (p->nerr < sizeof(p->error_buffer) / sizeof(p->error_buffer[0])) { |
| 10758 |
n = strlen(s); |
| 10759 |
c = (char*)parser_palloc(p, n + 1); |
| 10760 |
memcpy(c, s, n + 1); |
| 10761 |
p->error_buffer[p->nerr].message = c; |
| 10762 |
p->error_buffer[p->nerr].lineno = p->lineno; |
| 10763 |
p->error_buffer[p->nerr].column = p->column; |
| 10764 |
} |
| 10765 |
p->nerr++; |
| 10766 |
} |
| 10767 |
|
| 10768 |
static void |
| 10769 |
yyerror_c(parser_state *p, const char *msg, char c) |
| 10770 |
{ |
| 10771 |
char buf[256]; |
| 10772 |
|
| 10773 |
strncpy(buf, msg, sizeof(buf) - 2); |
| 10774 |
buf[sizeof(buf) - 2] = '\0'; |
| 10775 |
strncat(buf, &c, 1); |
| 10776 |
yyerror(p, buf); |
| 10777 |
} |
| 10778 |
|
| 10779 |
static void |
| 10780 |
yywarning(parser_state *p, const char *s) |
| 10781 |
{ |
| 10782 |
char* c; |
| 10783 |
size_t n; |
| 10784 |
|
| 10785 |
if (! p->capture_errors) { |
| 10786 |
#ifndef MRB_NO_STDIO |
| 10787 |
if (p->filename_sym) { |
| 10788 |
const char *filename = mrb_sym_name_len(p->mrb, p->filename_sym, NULL); |
| 10789 |
fprintf(stderr, "%s:%d:%d: warning: %s\n", filename, p->lineno, p->column, s); |
| 10790 |
} |
| 10791 |
else { |
| 10792 |
fprintf(stderr, "line %d:%d: warning: %s\n", p->lineno, p->column, s); |
| 10793 |
} |
| 10794 |
#endif |
| 10795 |
} |
| 10796 |
else if (p->nwarn < sizeof(p->warn_buffer) / sizeof(p->warn_buffer[0])) { |
| 10797 |
n = strlen(s); |
| 10798 |
c = (char*)parser_palloc(p, n + 1); |
| 10799 |
memcpy(c, s, n + 1); |
| 10800 |
p->warn_buffer[p->nwarn].message = c; |
| 10801 |
p->warn_buffer[p->nwarn].lineno = p->lineno; |
| 10802 |
p->warn_buffer[p->nwarn].column = p->column; |
| 10803 |
} |
| 10804 |
p->nwarn++; |
| 10805 |
} |
| 10806 |
|
| 10807 |
static void |
| 10808 |
yywarning_s(parser_state *p, const char *msg, const char *s) |
| 10809 |
{ |
| 10810 |
char buf[256]; |
| 10811 |
|
| 10812 |
strncpy(buf, msg, sizeof(buf) - 1); |
| 10813 |
buf[sizeof(buf) - 1] = '\0'; |
| 10814 |
strncat(buf, ": ", sizeof(buf) - strlen(buf) - 1); |
| 10815 |
strncat(buf, s, sizeof(buf) - strlen(buf) - 1); |
| 10816 |
yywarning(p, buf); |
| 10817 |
} |
| 10818 |
|
| 10819 |
static void |
| 10820 |
backref_error(parser_state *p, node *n) |
| 10821 |
{ |
| 10822 |
int c; |
| 10823 |
|
| 10824 |
c = intn(n->car); |
| 10825 |
|
| 10826 |
if (c == NODE_NTH_REF) { |
| 10827 |
yyerror_c(p, "can't set variable $", (char)intn(n->cdr)+'0'); |
| 10828 |
} |
| 10829 |
else if (c == NODE_BACK_REF) { |
| 10830 |
yyerror_c(p, "can't set variable $", (char)intn(n->cdr)); |
| 10831 |
} |
| 10832 |
else { |
| 10833 |
yyerror(p, "Internal error in backref_error()"); |
| 10834 |
} |
| 10835 |
} |
| 10836 |
|
| 10837 |
static void |
| 10838 |
void_expr_error(parser_state *p, node *n) |
| 10839 |
{ |
| 10840 |
int c; |
| 10841 |
|
| 10842 |
if (n == NULL) return; |
| 10843 |
c = intn(n->car); |
| 10844 |
switch (c) { |
| 10845 |
case NODE_BREAK: |
| 10846 |
case NODE_RETURN: |
| 10847 |
case NODE_NEXT: |
| 10848 |
case NODE_REDO: |
| 10849 |
case NODE_RETRY: |
| 10850 |
yyerror(p, "void value expression"); |
| 10851 |
break; |
| 10852 |
case NODE_AND: |
| 10853 |
case NODE_OR: |
| 10854 |
if (n->cdr) { |
| 10855 |
void_expr_error(p, n->cdr->car); |
| 10856 |
void_expr_error(p, n->cdr->cdr); |
| 10857 |
} |
| 10858 |
break; |
| 10859 |
case NODE_BEGIN: |
| 10860 |
if (n->cdr) { |
| 10861 |
while (n->cdr) { |
| 10862 |
n = n->cdr; |
| 10863 |
} |
| 10864 |
void_expr_error(p, n->car); |
| 10865 |
} |
| 10866 |
break; |
| 10867 |
default: |
| 10868 |
break; |
| 10869 |
} |
| 10870 |
} |
| 10871 |
|
| 10872 |
static void pushback(parser_state *p, int c); |
| 10873 |
static mrb_bool peeks(parser_state *p, const char *s); |
| 10874 |
static mrb_bool skips(parser_state *p, const char *s); |
| 10875 |
|
| 10876 |
static inline int |
| 10877 |
nextc0(parser_state *p) |
| 10878 |
{ |
| 10879 |
if (p->s && p->s < p->send) { |
| 10880 |
return (unsigned char)*p->s++; |
| 10881 |
} |
| 10882 |
else { |
| 10883 |
#ifndef MRB_NO_STDIO |
| 10884 |
int c; |
| 10885 |
|
| 10886 |
if (p->f) { |
| 10887 |
c = fgetc(p->f); |
| 10888 |
if (!feof(p->f)) return c; |
| 10889 |
} |
| 10890 |
#endif |
| 10891 |
return -1; |
| 10892 |
} |
| 10893 |
} |
| 10894 |
|
| 10895 |
static inline int |
| 10896 |
nextc(parser_state *p) |
| 10897 |
{ |
| 10898 |
int c; |
| 10899 |
|
| 10900 |
if (p->pb) { |
| 10901 |
node *tmp; |
| 10902 |
|
| 10903 |
c = intn(p->pb->car); |
| 10904 |
tmp = p->pb; |
| 10905 |
p->pb = p->pb->cdr; |
| 10906 |
cons_free(tmp); |
| 10907 |
} |
| 10908 |
else { |
| 10909 |
c = nextc0(p); |
| 10910 |
if (c < 0) goto eof; |
| 10911 |
} |
| 10912 |
if (c >= 0) { |
| 10913 |
p->column++; |
| 10914 |
} |
| 10915 |
if (c == '\r') { |
| 10916 |
const int lf = nextc0(p); |
| 10917 |
if (lf == '\n') { |
| 10918 |
return '\n'; |
| 10919 |
} |
| 10920 |
if (lf > 0) pushback(p, lf); |
| 10921 |
} |
| 10922 |
return c; |
| 10923 |
|
| 10924 |
eof: |
| 10925 |
if (!p->cxt) return -1; |
| 10926 |
else { |
| 10927 |
if (p->cxt->partial_hook(p) < 0) |
| 10928 |
return -1; /* end of program(s) */ |
| 10929 |
return -2; /* end of a file in the program files */ |
| 10930 |
} |
| 10931 |
} |
| 10932 |
|
| 10933 |
static void |
| 10934 |
pushback(parser_state *p, int c) |
| 10935 |
{ |
| 10936 |
if (c >= 0) { |
| 10937 |
p->column--; |
| 10938 |
} |
| 10939 |
p->pb = cons(nint(c), p->pb); |
| 10940 |
} |
| 10941 |
|
| 10942 |
static void |
| 10943 |
skip(parser_state *p, char term) |
| 10944 |
{ |
| 10945 |
int c; |
| 10946 |
|
| 10947 |
for (;;) { |
| 10948 |
c = nextc(p); |
| 10949 |
if (c < 0) break; |
| 10950 |
if (c == term) break; |
| 10951 |
} |
| 10952 |
} |
| 10953 |
|
| 10954 |
static int |
| 10955 |
peekc_n(parser_state *p, int n) |
| 10956 |
{ |
| 10957 |
node *list = 0; |
| 10958 |
int c0; |
| 10959 |
|
| 10960 |
do { |
| 10961 |
c0 = nextc(p); |
| 10962 |
if (c0 == -1) return c0; /* do not skip partial EOF */ |
| 10963 |
if (c0 >= 0) --p->column; |
| 10964 |
list = push(list, nint(c0)); |
| 10965 |
} while(n--); |
| 10966 |
if (p->pb) { |
| 10967 |
p->pb = append(list, p->pb); |
| 10968 |
} |
| 10969 |
else { |
| 10970 |
p->pb = list; |
| 10971 |
} |
| 10972 |
return c0; |
| 10973 |
} |
| 10974 |
|
| 10975 |
static mrb_bool |
| 10976 |
peek_n(parser_state *p, int c, int n) |
| 10977 |
{ |
| 10978 |
return peekc_n(p, n) == c && c >= 0; |
| 10979 |
} |
| 10980 |
#define peek(p,c) peek_n((p), (c), 0) |
| 10981 |
|
| 10982 |
static mrb_bool |
| 10983 |
peeks(parser_state *p, const char *s) |
| 10984 |
{ |
| 10985 |
size_t len = strlen(s); |
| 10986 |
|
| 10987 |
#ifndef MRB_NO_STDIO |
| 10988 |
if (p->f) { |
| 10989 |
int n = 0; |
| 10990 |
while (*s) { |
| 10991 |
if (!peek_n(p, *s++, n++)) return FALSE; |
| 10992 |
} |
| 10993 |
return TRUE; |
| 10994 |
} |
| 10995 |
else |
| 10996 |
#endif |
| 10997 |
if (p->s && p->s + len <= p->send) { |
| 10998 |
if (memcmp(p->s, s, len) == 0) return TRUE; |
| 10999 |
} |
| 11000 |
return FALSE; |
| 11001 |
} |
| 11002 |
|
| 11003 |
static mrb_bool |
| 11004 |
skips(parser_state *p, const char *s) |
| 11005 |
{ |
| 11006 |
int c; |
| 11007 |
|
| 11008 |
for (;;) { |
| 11009 |
/* skip until first char */ |
| 11010 |
for (;;) { |
| 11011 |
c = nextc(p); |
| 11012 |
if (c < 0) return FALSE; |
| 11013 |
if (c == '\n') { |
| 11014 |
p->lineno++; |
| 11015 |
p->column = 0; |
| 11016 |
} |
| 11017 |
if (c == *s) break; |
| 11018 |
} |
| 11019 |
s++; |
| 11020 |
if (peeks(p, s)) { |
| 11021 |
size_t len = strlen(s); |
| 11022 |
|
| 11023 |
while (len--) { |
| 11024 |
if (nextc(p) == '\n') { |
| 11025 |
p->lineno++; |
| 11026 |
p->column = 0; |
| 11027 |
} |
| 11028 |
} |
| 11029 |
return TRUE; |
| 11030 |
} |
| 11031 |
else{ |
| 11032 |
s--; |
| 11033 |
} |
| 11034 |
} |
| 11035 |
return FALSE; |
| 11036 |
} |
| 11037 |
|
| 11038 |
|
| 11039 |
static int |
| 11040 |
newtok(parser_state *p) |
| 11041 |
{ |
| 11042 |
if (p->tokbuf != p->buf) { |
| 11043 |
mrb_free(p->mrb, p->tokbuf); |
| 11044 |
p->tokbuf = p->buf; |
| 11045 |
p->tsiz = MRB_PARSER_TOKBUF_SIZE; |
| 11046 |
} |
| 11047 |
p->tidx = 0; |
| 11048 |
return p->column - 1; |
| 11049 |
} |
| 11050 |
|
| 11051 |
static void |
| 11052 |
tokadd(parser_state *p, int32_t c) |
| 11053 |
{ |
| 11054 |
char utf8[4]; |
| 11055 |
int i, len; |
| 11056 |
|
| 11057 |
/* mrb_assert(-0x10FFFF <= c && c <= 0xFF); */ |
| 11058 |
if (c >= 0) { |
| 11059 |
/* Single byte from source or non-Unicode escape */ |
| 11060 |
utf8[0] = (char)c; |
| 11061 |
len = 1; |
| 11062 |
} |
| 11063 |
else { |
| 11064 |
/* Unicode character */ |
| 11065 |
c = -c; |
| 11066 |
if (c < 0x80) { |
| 11067 |
utf8[0] = (char)c; |
| 11068 |
len = 1; |
| 11069 |
} |
| 11070 |
else if (c < 0x800) { |
| 11071 |
utf8[0] = (char)(0xC0 | (c >> 6)); |
| 11072 |
utf8[1] = (char)(0x80 | (c & 0x3F)); |
| 11073 |
len = 2; |
| 11074 |
} |
| 11075 |
else if (c < 0x10000) { |
| 11076 |
utf8[0] = (char)(0xE0 | (c >> 12) ); |
| 11077 |
utf8[1] = (char)(0x80 | ((c >> 6) & 0x3F)); |
| 11078 |
utf8[2] = (char)(0x80 | ( c & 0x3F)); |
| 11079 |
len = 3; |
| 11080 |
} |
| 11081 |
else { |
| 11082 |
utf8[0] = (char)(0xF0 | (c >> 18) ); |
| 11083 |
utf8[1] = (char)(0x80 | ((c >> 12) & 0x3F)); |
| 11084 |
utf8[2] = (char)(0x80 | ((c >> 6) & 0x3F)); |
| 11085 |
utf8[3] = (char)(0x80 | ( c & 0x3F)); |
| 11086 |
len = 4; |
| 11087 |
} |
| 11088 |
} |
| 11089 |
if (p->tidx+len >= p->tsiz) { |
| 11090 |
if (p->tsiz >= MRB_PARSER_TOKBUF_MAX) { |
| 11091 |
p->tidx += len; |
| 11092 |
return; |
| 11093 |
} |
| 11094 |
p->tsiz *= 2; |
| 11095 |
if (p->tokbuf == p->buf) { |
| 11096 |
p->tokbuf = (char*)mrb_malloc(p->mrb, p->tsiz); |
| 11097 |
memcpy(p->tokbuf, p->buf, MRB_PARSER_TOKBUF_SIZE); |
| 11098 |
} |
| 11099 |
else { |
| 11100 |
p->tokbuf = (char*)mrb_realloc(p->mrb, p->tokbuf, p->tsiz); |
| 11101 |
} |
| 11102 |
} |
| 11103 |
for (i = 0; i < len; i++) { |
| 11104 |
p->tokbuf[p->tidx++] = utf8[i]; |
| 11105 |
} |
| 11106 |
} |
| 11107 |
|
| 11108 |
static int |
| 11109 |
toklast(parser_state *p) |
| 11110 |
{ |
| 11111 |
return p->tokbuf[p->tidx-1]; |
| 11112 |
} |
| 11113 |
|
| 11114 |
static void |
| 11115 |
tokfix(parser_state *p) |
| 11116 |
{ |
| 11117 |
if (p->tidx >= MRB_PARSER_TOKBUF_MAX) { |
| 11118 |
p->tidx = MRB_PARSER_TOKBUF_MAX-1; |
| 11119 |
yyerror(p, "string too long (truncated)"); |
| 11120 |
} |
| 11121 |
p->tokbuf[p->tidx] = '\0'; |
| 11122 |
} |
| 11123 |
|
| 11124 |
static const char* |
| 11125 |
tok(parser_state *p) |
| 11126 |
{ |
| 11127 |
return p->tokbuf; |
| 11128 |
} |
| 11129 |
|
| 11130 |
static int |
| 11131 |
toklen(parser_state *p) |
| 11132 |
{ |
| 11133 |
return p->tidx; |
| 11134 |
} |
| 11135 |
|
| 11136 |
#define IS_ARG() (p->lstate == EXPR_ARG || p->lstate == EXPR_CMDARG) |
| 11137 |
#define IS_END() (p->lstate == EXPR_END || p->lstate == EXPR_ENDARG || p->lstate == EXPR_ENDFN) |
| 11138 |
#define IS_BEG() (p->lstate == EXPR_BEG || p->lstate == EXPR_MID || p->lstate == EXPR_VALUE || p->lstate == EXPR_CLASS) |
| 11139 |
#define IS_SPCARG(c) (IS_ARG() && space_seen && !ISSPACE(c)) |
| 11140 |
#define IS_LABEL_POSSIBLE() ((p->lstate == EXPR_BEG && !cmd_state) || IS_ARG()) |
| 11141 |
#define IS_LABEL_SUFFIX(n) (peek_n(p, ':',(n)) && !peek_n(p, ':', (n)+1)) |
| 11142 |
|
| 11143 |
static int32_t |
| 11144 |
scan_oct(const int *start, int len, int *retlen) |
| 11145 |
{ |
| 11146 |
const int *s = start; |
| 11147 |
int32_t retval = 0; |
| 11148 |
|
| 11149 |
/* mrb_assert(len <= 3) */ |
| 11150 |
while (len-- && *s >= '0' && *s <= '7') { |
| 11151 |
retval <<= 3; |
| 11152 |
retval |= *s++ - '0'; |
| 11153 |
} |
| 11154 |
*retlen = (int)(s - start); |
| 11155 |
|
| 11156 |
return retval; |
| 11157 |
} |
| 11158 |
|
| 11159 |
static int32_t |
| 11160 |
scan_hex(parser_state *p, const int *start, int len, int *retlen) |
| 11161 |
{ |
| 11162 |
static const char hexdigit[] = "0123456789abcdef0123456789ABCDEF"; |
| 11163 |
const int *s = start; |
| 11164 |
uint32_t retval = 0; |
| 11165 |
char *tmp; |
| 11166 |
|
| 11167 |
/* mrb_assert(len <= 8) */ |
| 11168 |
while (len-- && *s && (tmp = (char*)strchr(hexdigit, *s))) { |
| 11169 |
retval <<= 4; |
| 11170 |
retval |= (tmp - hexdigit) & 15; |
| 11171 |
s++; |
| 11172 |
} |
| 11173 |
*retlen = (int)(s - start); |
| 11174 |
|
| 11175 |
return (int32_t)retval; |
| 11176 |
} |
| 11177 |
|
| 11178 |
static int32_t |
| 11179 |
read_escape_unicode(parser_state *p, int limit) |
| 11180 |
{ |
| 11181 |
int buf[9]; |
| 11182 |
int i; |
| 11183 |
int32_t hex; |
| 11184 |
|
| 11185 |
/* Look for opening brace */ |
| 11186 |
i = 0; |
| 11187 |
buf[0] = nextc(p); |
| 11188 |
if (buf[0] < 0) { |
| 11189 |
eof: |
| 11190 |
yyerror(p, "invalid escape character syntax"); |
| 11191 |
return -1; |
| 11192 |
} |
| 11193 |
if (ISXDIGIT(buf[0])) { |
| 11194 |
/* \uxxxx form */ |
| 11195 |
for (i=1; i<limit; i++) { |
| 11196 |
buf[i] = nextc(p); |
| 11197 |
if (buf[i] < 0) goto eof; |
| 11198 |
if (!ISXDIGIT(buf[i])) { |
| 11199 |
pushback(p, buf[i]); |
| 11200 |
break; |
| 11201 |
} |
| 11202 |
} |
| 11203 |
} |
| 11204 |
else { |
| 11205 |
pushback(p, buf[0]); |
| 11206 |
} |
| 11207 |
hex = scan_hex(p, buf, i, &i); |
| 11208 |
if (i == 0 || hex > 0x10FFFF || (hex & 0xFFFFF800) == 0xD800) { |
| 11209 |
yyerror(p, "invalid Unicode code point"); |
| 11210 |
return -1; |
| 11211 |
} |
| 11212 |
return hex; |
| 11213 |
} |
| 11214 |
|
| 11215 |
/* Return negative to indicate Unicode code point */ |
| 11216 |
static int32_t |
| 11217 |
read_escape(parser_state *p) |
| 11218 |
{ |
| 11219 |
int32_t c; |
| 11220 |
|
| 11221 |
switch (c = nextc(p)) { |
| 11222 |
case '\\':/* Backslash */ |
| 11223 |
return c; |
| 11224 |
|
| 11225 |
case 'n':/* newline */ |
| 11226 |
return '\n'; |
| 11227 |
|
| 11228 |
case 't':/* horizontal tab */ |
| 11229 |
return '\t'; |
| 11230 |
|
| 11231 |
case 'r':/* carriage-return */ |
| 11232 |
return '\r'; |
| 11233 |
|
| 11234 |
case 'f':/* form-feed */ |
| 11235 |
return '\f'; |
| 11236 |
|
| 11237 |
case 'v':/* vertical tab */ |
| 11238 |
return '\13'; |
| 11239 |
|
| 11240 |
case 'a':/* alarm(bell) */ |
| 11241 |
return '\007'; |
| 11242 |
|
| 11243 |
case 'e':/* escape */ |
| 11244 |
return 033; |
| 11245 |
|
| 11246 |
case '0': case '1': case '2': case '3': /* octal constant */ |
| 11247 |
case '4': case '5': case '6': case '7': |
| 11248 |
{ |
| 11249 |
int buf[3]; |
| 11250 |
int i; |
| 11251 |
|
| 11252 |
buf[0] = c; |
| 11253 |
for (i=1; i<3; i++) { |
| 11254 |
buf[i] = nextc(p); |
| 11255 |
if (buf[i] < 0) goto eof; |
| 11256 |
if (buf[i] < '0' || '7' < buf[i]) { |
| 11257 |
pushback(p, buf[i]); |
| 11258 |
break; |
| 11259 |
} |
| 11260 |
} |
| 11261 |
c = scan_oct(buf, i, &i); |
| 11262 |
} |
| 11263 |
return c; |
| 11264 |
|
| 11265 |
case 'x': /* hex constant */ |
| 11266 |
{ |
| 11267 |
int buf[2]; |
| 11268 |
int i; |
| 11269 |
|
| 11270 |
for (i=0; i<2; i++) { |
| 11271 |
buf[i] = nextc(p); |
| 11272 |
if (buf[i] < 0) goto eof; |
| 11273 |
if (!ISXDIGIT(buf[i])) { |
| 11274 |
pushback(p, buf[i]); |
| 11275 |
break; |
| 11276 |
} |
| 11277 |
} |
| 11278 |
if (i == 0) { |
| 11279 |
yyerror(p, "invalid hex escape"); |
| 11280 |
return -1; |
| 11281 |
} |
| 11282 |
return scan_hex(p, buf, i, &i); |
| 11283 |
} |
| 11284 |
|
| 11285 |
case 'u': /* Unicode */ |
| 11286 |
if (peek(p, '{')) { |
| 11287 |
/* \u{xxxxxxxx} form */ |
| 11288 |
nextc(p); |
| 11289 |
c = read_escape_unicode(p, 8); |
| 11290 |
if (c < 0) return 0; |
| 11291 |
if (nextc(p) != '}') goto eof; |
| 11292 |
} |
| 11293 |
else { |
| 11294 |
c = read_escape_unicode(p, 4); |
| 11295 |
if (c < 0) return 0; |
| 11296 |
} |
| 11297 |
return -c; |
| 11298 |
|
| 11299 |
case 'b':/* backspace */ |
| 11300 |
return '\010'; |
| 11301 |
|
| 11302 |
case 's':/* space */ |
| 11303 |
return ' '; |
| 11304 |
|
| 11305 |
case 'M': |
| 11306 |
if ((c = nextc(p)) != '-') { |
| 11307 |
yyerror(p, "Invalid escape character syntax"); |
| 11308 |
pushback(p, c); |
| 11309 |
return '\0'; |
| 11310 |
} |
| 11311 |
if ((c = nextc(p)) == '\\') { |
| 11312 |
return read_escape(p) | 0x80; |
| 11313 |
} |
| 11314 |
else if (c < 0) goto eof; |
| 11315 |
else { |
| 11316 |
return ((c & 0xff) | 0x80); |
| 11317 |
} |
| 11318 |
|
| 11319 |
case 'C': |
| 11320 |
if ((c = nextc(p)) != '-') { |
| 11321 |
yyerror(p, "Invalid escape character syntax"); |
| 11322 |
pushback(p, c); |
| 11323 |
return '\0'; |
| 11324 |
} |
| 11325 |
case 'c': |
| 11326 |
if ((c = nextc(p))== '\\') { |
| 11327 |
c = read_escape(p); |
| 11328 |
} |
| 11329 |
else if (c == '?') |
| 11330 |
return 0177; |
| 11331 |
else if (c < 0) goto eof; |
| 11332 |
return c & 0x9f; |
| 11333 |
|
| 11334 |
eof: |
| 11335 |
case -1: |
| 11336 |
case -2: /* end of a file */ |
| 11337 |
yyerror(p, "Invalid escape character syntax"); |
| 11338 |
return '\0'; |
| 11339 |
|
| 11340 |
default: |
| 11341 |
return c; |
| 11342 |
} |
| 11343 |
} |
| 11344 |
|
| 11345 |
static void |
| 11346 |
heredoc_count_indent(parser_heredoc_info *hinfo, const char *str, size_t len, size_t spaces, size_t *offset) |
| 11347 |
{ |
| 11348 |
size_t indent = 0; |
| 11349 |
*offset = 0; |
| 11350 |
for (size_t i = 0; i < len; i++) { |
| 11351 |
size_t size; |
| 11352 |
if (str[i] == '\n') |
| 11353 |
break; |
| 11354 |
else if (str[i] == '\t') |
| 11355 |
size = 8; |
| 11356 |
else if (ISSPACE(str[i])) |
| 11357 |
size = 1; |
| 11358 |
else |
| 11359 |
break; |
| 11360 |
size_t nindent = indent + size; |
| 11361 |
if (nindent > spaces || nindent > hinfo->indent) |
| 11362 |
break; |
| 11363 |
indent = nindent; |
| 11364 |
*offset += 1; |
| 11365 |
} |
| 11366 |
} |
| 11367 |
|
| 11368 |
static void |
| 11369 |
heredoc_remove_indent(parser_state *p, parser_heredoc_info *hinfo) |
| 11370 |
{ |
| 11371 |
if (!hinfo->remove_indent || hinfo->indent == 0) |
| 11372 |
return; |
| 11373 |
node *indented, *n, *pair, *escaped, *nspaces; |
| 11374 |
const char *str; |
| 11375 |
size_t len, spaces, offset, start, end; |
| 11376 |
indented = hinfo->indented; |
| 11377 |
while (indented) { |
| 11378 |
n = indented->car; |
| 11379 |
pair = n->car; |
| 11380 |
str = (char*)pair->car; |
| 11381 |
len = (size_t)pair->cdr; |
| 11382 |
escaped = n->cdr->car; |
| 11383 |
nspaces = n->cdr->cdr; |
| 11384 |
if (escaped) { |
| 11385 |
char *newstr = strndup(str, len); |
| 11386 |
size_t newlen = 0; |
| 11387 |
start = 0; |
| 11388 |
while (start < len) { |
| 11389 |
end = escaped ? (size_t)escaped->car : len; |
| 11390 |
if (end > len) end = len; |
| 11391 |
spaces = (size_t)nspaces->car; |
| 11392 |
size_t esclen = end - start; |
| 11393 |
heredoc_count_indent(hinfo, str + start, esclen, spaces, &offset); |
| 11394 |
esclen -= offset; |
| 11395 |
memcpy(newstr + newlen, str + start + offset, esclen); |
| 11396 |
newlen += esclen; |
| 11397 |
start = end; |
| 11398 |
if (escaped) |
| 11399 |
escaped = escaped->cdr; |
| 11400 |
nspaces = nspaces->cdr; |
| 11401 |
} |
| 11402 |
if (newlen < len) |
| 11403 |
newstr[newlen] = '\0'; |
| 11404 |
pair->car = (node*)newstr; |
| 11405 |
pair->cdr = (node*)newlen; |
| 11406 |
} |
| 11407 |
else { |
| 11408 |
spaces = (size_t)nspaces->car; |
| 11409 |
heredoc_count_indent(hinfo, str, len, spaces, &offset); |
| 11410 |
pair->car = (node*)(str + offset); |
| 11411 |
pair->cdr = (node*)(len - offset); |
| 11412 |
} |
| 11413 |
indented = indented->cdr; |
| 11414 |
} |
| 11415 |
} |
| 11416 |
|
| 11417 |
static void |
| 11418 |
heredoc_push_indented(parser_state *p, parser_heredoc_info *hinfo, node *pair, node *escaped, node *nspaces, mrb_bool empty_line) |
| 11419 |
{ |
| 11420 |
hinfo->indented = push(hinfo->indented, cons(pair, cons(escaped, nspaces))); |
| 11421 |
while (nspaces) { |
| 11422 |
size_t tspaces = (size_t)nspaces->car; |
| 11423 |
if ((hinfo->indent == ~0U || tspaces < hinfo->indent) && !empty_line) |
| 11424 |
hinfo->indent = tspaces; |
| 11425 |
nspaces = nspaces->cdr; |
| 11426 |
} |
| 11427 |
} |
| 11428 |
|
| 11429 |
static int |
| 11430 |
parse_string(parser_state *p) |
| 11431 |
{ |
| 11432 |
int c; |
| 11433 |
string_type type = (string_type)p->lex_strterm->type; |
| 11434 |
int nest_level = p->lex_strterm->level; |
| 11435 |
int beg = p->lex_strterm->paren; |
| 11436 |
int end = p->lex_strterm->term; |
| 11437 |
parser_heredoc_info *hinfo = (type & STR_FUNC_HEREDOC) ? parsing_heredoc_info(p) : NULL; |
| 11438 |
|
| 11439 |
mrb_bool unindent = hinfo && hinfo->remove_indent; |
| 11440 |
mrb_bool head = hinfo && hinfo->line_head; |
| 11441 |
mrb_bool empty = TRUE; |
| 11442 |
size_t spaces = 0; |
| 11443 |
size_t pos = -1; |
| 11444 |
node *escaped = NULL; |
| 11445 |
node *nspaces = NULL; |
| 11446 |
|
| 11447 |
if (beg == 0) beg = -3; /* should never happen */ |
| 11448 |
if (end == 0) end = -3; |
| 11449 |
newtok(p); |
| 11450 |
while ((c = nextc(p)) != end || nest_level != 0) { |
| 11451 |
pos++; |
| 11452 |
if (hinfo && (c == '\n' || c < 0)) { |
| 11453 |
mrb_bool line_head; |
| 11454 |
tokadd(p, '\n'); |
| 11455 |
tokfix(p); |
| 11456 |
p->lineno++; |
| 11457 |
p->column = 0; |
| 11458 |
line_head = hinfo->line_head; |
| 11459 |
hinfo->line_head = TRUE; |
| 11460 |
if (line_head) { |
| 11461 |
/* check whether end of heredoc */ |
| 11462 |
const char *s = tok(p); |
| 11463 |
int len = toklen(p); |
| 11464 |
if (hinfo->allow_indent) { |
| 11465 |
while (ISSPACE(*s) && len > 0) { |
| 11466 |
s++; |
| 11467 |
len--; |
| 11468 |
} |
| 11469 |
} |
| 11470 |
if (hinfo->term_len > 0 && len-1 == hinfo->term_len && strncmp(s, hinfo->term, len-1) == 0) { |
| 11471 |
heredoc_remove_indent(p, hinfo); |
| 11472 |
return tHEREDOC_END; |
| 11473 |
} |
| 11474 |
} |
| 11475 |
if (c < 0) { |
| 11476 |
char buf[256]; |
| 11477 |
const char s1[] = "can't find heredoc delimiter \""; |
| 11478 |
const char s2[] = "\" anywhere before EOF"; |
| 11479 |
|
| 11480 |
if (sizeof(s1)+sizeof(s2)+strlen(hinfo->term)+1 >= sizeof(buf)) { |
| 11481 |
yyerror(p, "can't find heredoc delimiter anywhere before EOF"); |
| 11482 |
} |
| 11483 |
else { |
| 11484 |
strcpy(buf, s1); |
| 11485 |
strcat(buf, hinfo->term); |
| 11486 |
strcat(buf, s2); |
| 11487 |
yyerror(p, buf); |
| 11488 |
} |
| 11489 |
return 0; |
| 11490 |
} |
| 11491 |
node *nd = new_str(p, tok(p), toklen(p)); |
| 11492 |
pylval.nd = nd; |
| 11493 |
if (unindent && head) { |
| 11494 |
nspaces = push(nspaces, nint(spaces)); |
| 11495 |
heredoc_push_indented(p, hinfo, nd->cdr, escaped, nspaces, empty && line_head); |
| 11496 |
} |
| 11497 |
return tHD_STRING_MID; |
| 11498 |
} |
| 11499 |
if (unindent && empty) { |
| 11500 |
if (c == '\t') |
| 11501 |
spaces += 8; |
| 11502 |
else if (ISSPACE(c)) |
| 11503 |
spaces++; |
| 11504 |
else |
| 11505 |
empty = FALSE; |
| 11506 |
} |
| 11507 |
if (c < 0) { |
| 11508 |
yyerror(p, "unterminated string meets end of file"); |
| 11509 |
return 0; |
| 11510 |
} |
| 11511 |
else if (c == beg) { |
| 11512 |
nest_level++; |
| 11513 |
p->lex_strterm->level = nest_level; |
| 11514 |
} |
| 11515 |
else if (c == end) { |
| 11516 |
nest_level--; |
| 11517 |
p->lex_strterm->level = nest_level; |
| 11518 |
} |
| 11519 |
else if (c == '\\') { |
| 11520 |
c = nextc(p); |
| 11521 |
if (type & STR_FUNC_EXPAND) { |
| 11522 |
if (c == end || c == beg) { |
| 11523 |
tokadd(p, c); |
| 11524 |
} |
| 11525 |
else if (c == '\n') { |
| 11526 |
p->lineno++; |
| 11527 |
p->column = 0; |
| 11528 |
if (unindent) { |
| 11529 |
nspaces = push(nspaces, nint(spaces)); |
| 11530 |
escaped = push(escaped, nint(pos)); |
| 11531 |
pos--; |
| 11532 |
empty = TRUE; |
| 11533 |
spaces = 0; |
| 11534 |
} |
| 11535 |
if (type & STR_FUNC_ARRAY) { |
| 11536 |
tokadd(p, '\n'); |
| 11537 |
} |
| 11538 |
} |
| 11539 |
else if (type & STR_FUNC_REGEXP) { |
| 11540 |
tokadd(p, '\\'); |
| 11541 |
tokadd(p, c); |
| 11542 |
} |
| 11543 |
else if (c == 'u' && peek(p, '{')) { |
| 11544 |
/* \u{xxxx xxxx xxxx} form */ |
| 11545 |
nextc(p); |
| 11546 |
while (1) { |
| 11547 |
do c = nextc(p); while (ISSPACE(c)); |
| 11548 |
if (c == '}') break; |
| 11549 |
pushback(p, c); |
| 11550 |
c = read_escape_unicode(p, 8); |
| 11551 |
if (c < 0) break; |
| 11552 |
tokadd(p, -c); |
| 11553 |
} |
| 11554 |
if (hinfo) |
| 11555 |
hinfo->line_head = FALSE; |
| 11556 |
} |
| 11557 |
else { |
| 11558 |
pushback(p, c); |
| 11559 |
tokadd(p, read_escape(p)); |
| 11560 |
if (hinfo) |
| 11561 |
hinfo->line_head = FALSE; |
| 11562 |
} |
| 11563 |
} |
| 11564 |
else { |
| 11565 |
if (c != beg && c != end) { |
| 11566 |
if (c == '\n') { |
| 11567 |
p->lineno++; |
| 11568 |
p->column = 0; |
| 11569 |
} |
| 11570 |
if (!(c == '\\' || ((type & STR_FUNC_ARRAY) && ISSPACE(c)))) { |
| 11571 |
tokadd(p, '\\'); |
| 11572 |
} |
| 11573 |
} |
| 11574 |
tokadd(p, c); |
| 11575 |
} |
| 11576 |
continue; |
| 11577 |
} |
| 11578 |
else if ((c == '#') && (type & STR_FUNC_EXPAND)) { |
| 11579 |
c = nextc(p); |
| 11580 |
if (c == '{') { |
| 11581 |
tokfix(p); |
| 11582 |
p->lstate = EXPR_BEG; |
| 11583 |
p->cmd_start = TRUE; |
| 11584 |
node *nd = new_str(p, tok(p), toklen(p)); |
| 11585 |
pylval.nd = nd; |
| 11586 |
if (hinfo) { |
| 11587 |
if (unindent && head) { |
| 11588 |
nspaces = push(nspaces, nint(spaces)); |
| 11589 |
heredoc_push_indented(p, hinfo, nd->cdr, escaped, nspaces, FALSE); |
| 11590 |
} |
| 11591 |
hinfo->line_head = FALSE; |
| 11592 |
return tHD_STRING_PART; |
| 11593 |
} |
| 11594 |
return tSTRING_PART; |
| 11595 |
} |
| 11596 |
tokadd(p, '#'); |
| 11597 |
pushback(p, c); |
| 11598 |
continue; |
| 11599 |
} |
| 11600 |
if ((type & STR_FUNC_ARRAY) && ISSPACE(c)) { |
| 11601 |
if (toklen(p) == 0) { |
| 11602 |
do { |
| 11603 |
if (c == '\n') { |
| 11604 |
p->lineno++; |
| 11605 |
p->column = 0; |
| 11606 |
heredoc_treat_nextline(p); |
| 11607 |
if (p->parsing_heredoc != NULL) { |
| 11608 |
return tHD_LITERAL_DELIM; |
| 11609 |
} |
| 11610 |
} |
| 11611 |
c = nextc(p); |
| 11612 |
} while (ISSPACE(c)); |
| 11613 |
pushback(p, c); |
| 11614 |
return tLITERAL_DELIM; |
| 11615 |
} |
| 11616 |
else { |
| 11617 |
pushback(p, c); |
| 11618 |
tokfix(p); |
| 11619 |
pylval.nd = new_str(p, tok(p), toklen(p)); |
| 11620 |
return tSTRING_MID; |
| 11621 |
} |
| 11622 |
} |
| 11623 |
if (c == '\n') { |
| 11624 |
p->lineno++; |
| 11625 |
p->column = 0; |
| 11626 |
} |
| 11627 |
tokadd(p, c); |
| 11628 |
} |
| 11629 |
|
| 11630 |
tokfix(p); |
| 11631 |
p->lstate = EXPR_ENDARG; |
| 11632 |
end_strterm(p); |
| 11633 |
|
| 11634 |
if (type & STR_FUNC_XQUOTE) { |
| 11635 |
pylval.nd = new_xstr(p, tok(p), toklen(p)); |
| 11636 |
return tXSTRING; |
| 11637 |
} |
| 11638 |
|
| 11639 |
if (type & STR_FUNC_REGEXP) { |
| 11640 |
int f = 0; |
| 11641 |
int re_opt; |
| 11642 |
char *s = strndup(tok(p), toklen(p)); |
| 11643 |
char flags[3]; |
| 11644 |
char *flag = flags; |
| 11645 |
char enc = '\0'; |
| 11646 |
char *encp; |
| 11647 |
char *dup; |
| 11648 |
|
| 11649 |
newtok(p); |
| 11650 |
while (re_opt = nextc(p), re_opt >= 0 && ISALPHA(re_opt)) { |
| 11651 |
switch (re_opt) { |
| 11652 |
case 'i': f |= 1; break; |
| 11653 |
case 'x': f |= 2; break; |
| 11654 |
case 'm': f |= 4; break; |
| 11655 |
case 'u': f |= 16; break; |
| 11656 |
case 'n': f |= 32; break; |
| 11657 |
case 'o': break; |
| 11658 |
default: tokadd(p, re_opt); break; |
| 11659 |
} |
| 11660 |
} |
| 11661 |
pushback(p, re_opt); |
| 11662 |
if (toklen(p)) { |
| 11663 |
char msg[128]; |
| 11664 |
|
| 11665 |
strcpy(msg, "unknown regexp option"); |
| 11666 |
tokfix(p); |
| 11667 |
if (toklen(p) > 1) { |
| 11668 |
strcat(msg, "s"); |
| 11669 |
} |
| 11670 |
strcat(msg, " - "); |
| 11671 |
strncat(msg, tok(p), sizeof(msg) - strlen(msg) - 1); |
| 11672 |
yyerror(p, msg); |
| 11673 |
} |
| 11674 |
if (f != 0) { |
| 11675 |
if (f & 1) *flag++ = 'i'; |
| 11676 |
if (f & 2) *flag++ = 'x'; |
| 11677 |
if (f & 4) *flag++ = 'm'; |
| 11678 |
if (f & 16) enc = 'u'; |
| 11679 |
if (f & 32) enc = 'n'; |
| 11680 |
} |
| 11681 |
if (flag > flags) { |
| 11682 |
dup = strndup(flags, (size_t)(flag - flags)); |
| 11683 |
} |
| 11684 |
else { |
| 11685 |
dup = NULL; |
| 11686 |
} |
| 11687 |
if (enc) { |
| 11688 |
encp = strndup(&enc, 1); |
| 11689 |
} |
| 11690 |
else { |
| 11691 |
encp = NULL; |
| 11692 |
} |
| 11693 |
pylval.nd = new_regx(p, s, dup, encp); |
| 11694 |
|
| 11695 |
return tREGEXP; |
| 11696 |
} |
| 11697 |
pylval.nd = new_str(p, tok(p), toklen(p)); |
| 11698 |
|
| 11699 |
return tSTRING; |
| 11700 |
} |
| 11701 |
|
| 11702 |
static int |
| 11703 |
number_literal_suffix(parser_state *p) |
| 11704 |
{ |
| 11705 |
int c, result = 0; |
| 11706 |
node *list = 0; |
| 11707 |
int column = p->column; |
| 11708 |
int mask = NUM_SUFFIX_R|NUM_SUFFIX_I; |
| 11709 |
|
| 11710 |
while ((c = nextc(p)) != -1) { |
| 11711 |
list = push(list, nint(c)); |
| 11712 |
|
| 11713 |
if ((mask & NUM_SUFFIX_I) && c == 'i') { |
| 11714 |
result |= (mask & NUM_SUFFIX_I); |
| 11715 |
mask &= ~NUM_SUFFIX_I; |
| 11716 |
/* r after i, rational of complex is disallowed */ |
| 11717 |
mask &= ~NUM_SUFFIX_R; |
| 11718 |
continue; |
| 11719 |
} |
| 11720 |
if ((mask & NUM_SUFFIX_R) && c == 'r') { |
| 11721 |
result |= (mask & NUM_SUFFIX_R); |
| 11722 |
mask &= ~NUM_SUFFIX_R; |
| 11723 |
continue; |
| 11724 |
} |
| 11725 |
if (!ISASCII(c) || ISALPHA(c) || c == '_') { |
| 11726 |
p->column = column; |
| 11727 |
if (p->pb) { |
| 11728 |
p->pb = append(list, p->pb); |
| 11729 |
} |
| 11730 |
else { |
| 11731 |
p->pb = list; |
| 11732 |
} |
| 11733 |
return 0; |
| 11734 |
} |
| 11735 |
pushback(p, c); |
| 11736 |
break; |
| 11737 |
} |
| 11738 |
return result; |
| 11739 |
} |
| 11740 |
|
| 11741 |
static int |
| 11742 |
heredoc_identifier(parser_state *p) |
| 11743 |
{ |
| 11744 |
int c; |
| 11745 |
int type = str_heredoc; |
| 11746 |
mrb_bool indent = FALSE; |
| 11747 |
mrb_bool squiggly = FALSE; |
| 11748 |
mrb_bool quote = FALSE; |
| 11749 |
node *newnode; |
| 11750 |
parser_heredoc_info *info; |
| 11751 |
|
| 11752 |
c = nextc(p); |
| 11753 |
if (ISSPACE(c) || c == '=') { |
| 11754 |
pushback(p, c); |
| 11755 |
return 0; |
| 11756 |
} |
| 11757 |
if (c == '-' || c == '~') { |
| 11758 |
if (c == '-') |
| 11759 |
indent = TRUE; |
| 11760 |
if (c == '~') |
| 11761 |
squiggly = TRUE; |
| 11762 |
c = nextc(p); |
| 11763 |
} |
| 11764 |
if (c == '\'' || c == '"') { |
| 11765 |
int term = c; |
| 11766 |
if (c == '\'') |
| 11767 |
quote = TRUE; |
| 11768 |
newtok(p); |
| 11769 |
while ((c = nextc(p)) >= 0 && c != term) { |
| 11770 |
if (c == '\n') { |
| 11771 |
c = -1; |
| 11772 |
break; |
| 11773 |
} |
| 11774 |
tokadd(p, c); |
| 11775 |
} |
| 11776 |
if (c < 0) { |
| 11777 |
yyerror(p, "unterminated here document identifier"); |
| 11778 |
return 0; |
| 11779 |
} |
| 11780 |
} |
| 11781 |
else { |
| 11782 |
if (c < 0) { |
| 11783 |
return 0; /* missing here document identifier */ |
| 11784 |
} |
| 11785 |
if (! identchar(c)) { |
| 11786 |
pushback(p, c); |
| 11787 |
if (indent) pushback(p, '-'); |
| 11788 |
if (squiggly) pushback(p, '~'); |
| 11789 |
return 0; |
| 11790 |
} |
| 11791 |
newtok(p); |
| 11792 |
do { |
| 11793 |
tokadd(p, c); |
| 11794 |
} while ((c = nextc(p)) >= 0 && identchar(c)); |
| 11795 |
pushback(p, c); |
| 11796 |
} |
| 11797 |
tokfix(p); |
| 11798 |
newnode = new_heredoc(p); |
| 11799 |
info = (parser_heredoc_info*)newnode->cdr; |
| 11800 |
info->term = strndup(tok(p), toklen(p)); |
| 11801 |
info->term_len = toklen(p); |
| 11802 |
if (! quote) |
| 11803 |
type |= STR_FUNC_EXPAND; |
| 11804 |
info->type = (string_type)type; |
| 11805 |
info->allow_indent = indent || squiggly; |
| 11806 |
info->remove_indent = squiggly; |
| 11807 |
info->indent = ~0U; |
| 11808 |
info->indented = NULL; |
| 11809 |
info->line_head = TRUE; |
| 11810 |
info->doc = NULL; |
| 11811 |
p->heredocs_from_nextline = push(p->heredocs_from_nextline, newnode); |
| 11812 |
p->lstate = EXPR_END; |
| 11813 |
|
| 11814 |
pylval.nd = newnode; |
| 11815 |
return tHEREDOC_BEG; |
| 11816 |
} |
| 11817 |
|
| 11818 |
static int |
| 11819 |
arg_ambiguous(parser_state *p) |
| 11820 |
{ |
| 11821 |
yywarning(p, "ambiguous first argument; put parentheses or even spaces"); |
| 11822 |
return 1; |
| 11823 |
} |
| 11824 |
|
| 11825 |
#include "lex.def" |
| 11826 |
|
| 11827 |
static int |
| 11828 |
parser_yylex(parser_state *p) |
| 11829 |
{ |
| 11830 |
int32_t c; |
| 11831 |
int nlines = 1; |
| 11832 |
int space_seen = 0; |
| 11833 |
int cmd_state; |
| 11834 |
enum mrb_lex_state_enum last_state; |
| 11835 |
int token_column; |
| 11836 |
|
| 11837 |
if (p->lex_strterm) { |
| 11838 |
if (is_strterm_type(p, STR_FUNC_HEREDOC)) { |
| 11839 |
if (p->parsing_heredoc != NULL) |
| 11840 |
return parse_string(p); |
| 11841 |
} |
| 11842 |
else |
| 11843 |
return parse_string(p); |
| 11844 |
} |
| 11845 |
cmd_state = p->cmd_start; |
| 11846 |
p->cmd_start = FALSE; |
| 11847 |
retry: |
| 11848 |
last_state = p->lstate; |
| 11849 |
switch (c = nextc(p)) { |
| 11850 |
case '\004': /* ^D */ |
| 11851 |
case '\032': /* ^Z */ |
| 11852 |
case '\0': /* NUL */ |
| 11853 |
case -1: /* end of script. */ |
| 11854 |
if (p->heredocs_from_nextline) |
| 11855 |
goto maybe_heredoc; |
| 11856 |
return 0; |
| 11857 |
|
| 11858 |
/* white spaces */ |
| 11859 |
case ' ': case '\t': case '\f': case '\r': |
| 11860 |
case '\13': /* '\v' */ |
| 11861 |
space_seen = 1; |
| 11862 |
goto retry; |
| 11863 |
|
| 11864 |
case '#': /* it's a comment */ |
| 11865 |
skip(p, '\n'); |
| 11866 |
/* fall through */ |
| 11867 |
case -2: /* end of a file */ |
| 11868 |
case '\n': |
| 11869 |
maybe_heredoc: |
| 11870 |
heredoc_treat_nextline(p); |
| 11871 |
p->column = 0; |
| 11872 |
switch (p->lstate) { |
| 11873 |
case EXPR_BEG: |
| 11874 |
case EXPR_FNAME: |
| 11875 |
case EXPR_DOT: |
| 11876 |
case EXPR_CLASS: |
| 11877 |
case EXPR_VALUE: |
| 11878 |
p->lineno++; |
| 11879 |
if (p->parsing_heredoc != NULL) { |
| 11880 |
if (p->lex_strterm) { |
| 11881 |
return parse_string(p); |
| 11882 |
} |
| 11883 |
} |
| 11884 |
goto retry; |
| 11885 |
default: |
| 11886 |
break; |
| 11887 |
} |
| 11888 |
if (p->parsing_heredoc != NULL) { |
| 11889 |
pylval.num = nlines; |
| 11890 |
return '\n'; |
| 11891 |
} |
| 11892 |
while ((c = nextc(p))) { |
| 11893 |
switch (c) { |
| 11894 |
case ' ': case '\t': case '\f': case '\r': |
| 11895 |
case '\13': /* '\v' */ |
| 11896 |
space_seen = 1; |
| 11897 |
break; |
| 11898 |
case '#': /* comment as a whitespace */ |
| 11899 |
skip(p, '\n'); |
| 11900 |
nlines++; |
| 11901 |
break; |
| 11902 |
case '.': |
| 11903 |
if (!peek(p, '.')) { |
| 11904 |
pushback(p, '.'); |
| 11905 |
p->lineno+=nlines; nlines=1; |
| 11906 |
goto retry; |
| 11907 |
} |
| 11908 |
pushback(p, c); |
| 11909 |
goto normal_newline; |
| 11910 |
case '&': |
| 11911 |
if (peek(p, '.')) { |
| 11912 |
pushback(p, '&'); |
| 11913 |
p->lineno+=nlines; nlines=1; |
| 11914 |
goto retry; |
| 11915 |
} |
| 11916 |
pushback(p, c); |
| 11917 |
goto normal_newline; |
| 11918 |
case -1: /* EOF */ |
| 11919 |
case -2: /* end of a file */ |
| 11920 |
goto normal_newline; |
| 11921 |
default: |
| 11922 |
pushback(p, c); |
| 11923 |
goto normal_newline; |
| 11924 |
} |
| 11925 |
} |
| 11926 |
normal_newline: |
| 11927 |
p->cmd_start = TRUE; |
| 11928 |
p->lstate = EXPR_BEG; |
| 11929 |
pylval.num = nlines; |
| 11930 |
return '\n'; |
| 11931 |
|
| 11932 |
case '*': |
| 11933 |
if ((c = nextc(p)) == '*') { |
| 11934 |
if ((c = nextc(p)) == '=') { |
| 11935 |
pylval.id = intern_op(pow); |
| 11936 |
p->lstate = EXPR_BEG; |
| 11937 |
return tOP_ASGN; |
| 11938 |
} |
| 11939 |
pushback(p, c); |
| 11940 |
if (IS_SPCARG(c)) { |
| 11941 |
yywarning(p, "'**' interpreted as argument prefix"); |
| 11942 |
c = tDSTAR; |
| 11943 |
} |
| 11944 |
else if (IS_BEG()) { |
| 11945 |
c = tDSTAR; |
| 11946 |
} |
| 11947 |
else { |
| 11948 |
c = tPOW; /* "**", "argument prefix" */ |
| 11949 |
} |
| 11950 |
} |
| 11951 |
else { |
| 11952 |
if (c == '=') { |
| 11953 |
pylval.id = intern_op(mul); |
| 11954 |
p->lstate = EXPR_BEG; |
| 11955 |
return tOP_ASGN; |
| 11956 |
} |
| 11957 |
pushback(p, c); |
| 11958 |
if (IS_SPCARG(c)) { |
| 11959 |
yywarning(p, "'*' interpreted as argument prefix"); |
| 11960 |
c = tSTAR; |
| 11961 |
} |
| 11962 |
else if (IS_BEG()) { |
| 11963 |
c = tSTAR; |
| 11964 |
} |
| 11965 |
else { |
| 11966 |
c = '*'; |
| 11967 |
} |
| 11968 |
} |
| 11969 |
if (p->lstate == EXPR_FNAME || p->lstate == EXPR_DOT) { |
| 11970 |
p->lstate = EXPR_ARG; |
| 11971 |
} |
| 11972 |
else { |
| 11973 |
p->lstate = EXPR_BEG; |
| 11974 |
} |
| 11975 |
return c; |
| 11976 |
|
| 11977 |
case '!': |
| 11978 |
c = nextc(p); |
| 11979 |
if (p->lstate == EXPR_FNAME || p->lstate == EXPR_DOT) { |
| 11980 |
p->lstate = EXPR_ARG; |
| 11981 |
if (c == '@') { |
| 11982 |
return '!'; |
| 11983 |
} |
| 11984 |
} |
| 11985 |
else { |
| 11986 |
p->lstate = EXPR_BEG; |
| 11987 |
} |
| 11988 |
if (c == '=') { |
| 11989 |
return tNEQ; |
| 11990 |
} |
| 11991 |
if (c == '~') { |
| 11992 |
return tNMATCH; |
| 11993 |
} |
| 11994 |
pushback(p, c); |
| 11995 |
return '!'; |
| 11996 |
|
| 11997 |
case '=': |
| 11998 |
if (p->column == 1) { |
| 11999 |
static const char begin[] = "begin"; |
| 12000 |
static const char end[] = "\n=end"; |
| 12001 |
if (peeks(p, begin)) { |
| 12002 |
c = peekc_n(p, sizeof(begin)-1); |
| 12003 |
if (c < 0 || ISSPACE(c)) { |
| 12004 |
do { |
| 12005 |
if (!skips(p, end)) { |
| 12006 |
yyerror(p, "embedded document meets end of file"); |
| 12007 |
return 0; |
| 12008 |
} |
| 12009 |
c = nextc(p); |
| 12010 |
} while (!(c < 0 || ISSPACE(c))); |
| 12011 |
if (c != '\n') skip(p, '\n'); |
| 12012 |
p->lineno+=nlines; nlines=1; |
| 12013 |
p->column = 0; |
| 12014 |
goto retry; |
| 12015 |
} |
| 12016 |
} |
| 12017 |
} |
| 12018 |
if (p->lstate == EXPR_FNAME || p->lstate == EXPR_DOT) { |
| 12019 |
p->lstate = EXPR_ARG; |
| 12020 |
} |
| 12021 |
else { |
| 12022 |
p->lstate = EXPR_BEG; |
| 12023 |
} |
| 12024 |
if ((c = nextc(p)) == '=') { |
| 12025 |
if ((c = nextc(p)) == '=') { |
| 12026 |
return tEQQ; |
| 12027 |
} |
| 12028 |
pushback(p, c); |
| 12029 |
return tEQ; |
| 12030 |
} |
| 12031 |
if (c == '~') { |
| 12032 |
return tMATCH; |
| 12033 |
} |
| 12034 |
else if (c == '>') { |
| 12035 |
return tASSOC; |
| 12036 |
} |
| 12037 |
pushback(p, c); |
| 12038 |
return '='; |
| 12039 |
|
| 12040 |
case '<': |
| 12041 |
c = nextc(p); |
| 12042 |
if (c == '<' && |
| 12043 |
p->lstate != EXPR_DOT && |
| 12044 |
p->lstate != EXPR_CLASS && |
| 12045 |
!IS_END() && |
| 12046 |
(!IS_ARG() || space_seen)) { |
| 12047 |
int token = heredoc_identifier(p); |
| 12048 |
if (token) |
| 12049 |
return token; |
| 12050 |
} |
| 12051 |
if (p->lstate == EXPR_FNAME || p->lstate == EXPR_DOT) { |
| 12052 |
p->lstate = EXPR_ARG; |
| 12053 |
} |
| 12054 |
else { |
| 12055 |
p->lstate = EXPR_BEG; |
| 12056 |
if (p->lstate == EXPR_CLASS) { |
| 12057 |
p->cmd_start = TRUE; |
| 12058 |
} |
| 12059 |
} |
| 12060 |
if (c == '=') { |
| 12061 |
if ((c = nextc(p)) == '>') { |
| 12062 |
return tCMP; |
| 12063 |
} |
| 12064 |
pushback(p, c); |
| 12065 |
return tLEQ; |
| 12066 |
} |
| 12067 |
if (c == '<') { |
| 12068 |
if ((c = nextc(p)) == '=') { |
| 12069 |
pylval.id = intern_op(lshift); |
| 12070 |
p->lstate = EXPR_BEG; |
| 12071 |
return tOP_ASGN; |
| 12072 |
} |
| 12073 |
pushback(p, c); |
| 12074 |
return tLSHFT; |
| 12075 |
} |
| 12076 |
pushback(p, c); |
| 12077 |
return '<'; |
| 12078 |
|
| 12079 |
case '>': |
| 12080 |
if (p->lstate == EXPR_FNAME || p->lstate == EXPR_DOT) { |
| 12081 |
p->lstate = EXPR_ARG; |
| 12082 |
} |
| 12083 |
else { |
| 12084 |
p->lstate = EXPR_BEG; |
| 12085 |
} |
| 12086 |
if ((c = nextc(p)) == '=') { |
| 12087 |
return tGEQ; |
| 12088 |
} |
| 12089 |
if (c == '>') { |
| 12090 |
if ((c = nextc(p)) == '=') { |
| 12091 |
pylval.id = intern_op(rshift); |
| 12092 |
p->lstate = EXPR_BEG; |
| 12093 |
return tOP_ASGN; |
| 12094 |
} |
| 12095 |
pushback(p, c); |
| 12096 |
return tRSHFT; |
| 12097 |
} |
| 12098 |
pushback(p, c); |
| 12099 |
return '>'; |
| 12100 |
|
| 12101 |
case '"': |
| 12102 |
p->lex_strterm = new_strterm(p, str_dquote, '"', 0); |
| 12103 |
return tSTRING_BEG; |
| 12104 |
|
| 12105 |
case '\'': |
| 12106 |
p->lex_strterm = new_strterm(p, str_squote, '\'', 0); |
| 12107 |
return parse_string(p); |
| 12108 |
|
| 12109 |
case '`': |
| 12110 |
if (p->lstate == EXPR_FNAME) { |
| 12111 |
p->lstate = EXPR_ENDFN; |
| 12112 |
return '`'; |
| 12113 |
} |
| 12114 |
if (p->lstate == EXPR_DOT) { |
| 12115 |
if (cmd_state) |
| 12116 |
p->lstate = EXPR_CMDARG; |
| 12117 |
else |
| 12118 |
p->lstate = EXPR_ARG; |
| 12119 |
return '`'; |
| 12120 |
} |
| 12121 |
p->lex_strterm = new_strterm(p, str_xquote, '`', 0); |
| 12122 |
return tXSTRING_BEG; |
| 12123 |
|
| 12124 |
case '?': |
| 12125 |
if (IS_END()) { |
| 12126 |
p->lstate = EXPR_VALUE; |
| 12127 |
return '?'; |
| 12128 |
} |
| 12129 |
c = nextc(p); |
| 12130 |
if (c < 0) { |
| 12131 |
yyerror(p, "incomplete character syntax"); |
| 12132 |
return 0; |
| 12133 |
} |
| 12134 |
if (ISSPACE(c)) { |
| 12135 |
if (!IS_ARG()) { |
| 12136 |
int c2; |
| 12137 |
switch (c) { |
| 12138 |
case ' ': |
| 12139 |
c2 = 's'; |
| 12140 |
break; |
| 12141 |
case '\n': |
| 12142 |
c2 = 'n'; |
| 12143 |
break; |
| 12144 |
case '\t': |
| 12145 |
c2 = 't'; |
| 12146 |
break; |
| 12147 |
case '\v': |
| 12148 |
c2 = 'v'; |
| 12149 |
break; |
| 12150 |
case '\r': |
| 12151 |
c2 = 'r'; |
| 12152 |
break; |
| 12153 |
case '\f': |
| 12154 |
c2 = 'f'; |
| 12155 |
break; |
| 12156 |
default: |
| 12157 |
c2 = 0; |
| 12158 |
break; |
| 12159 |
} |
| 12160 |
if (c2) { |
| 12161 |
char buf[256]; |
| 12162 |
char cc[] = { (char)c2, '\0' }; |
| 12163 |
|
| 12164 |
strcpy(buf, "invalid character syntax; use ?\\"); |
| 12165 |
strncat(buf, cc, 2); |
| 12166 |
yyerror(p, buf); |
| 12167 |
} |
| 12168 |
} |
| 12169 |
ternary: |
| 12170 |
pushback(p, c); |
| 12171 |
p->lstate = EXPR_VALUE; |
| 12172 |
return '?'; |
| 12173 |
} |
| 12174 |
newtok(p); |
| 12175 |
/* need support UTF-8 if configured */ |
| 12176 |
if ((ISALNUM(c) || c == '_')) { |
| 12177 |
int c2 = nextc(p); |
| 12178 |
pushback(p, c2); |
| 12179 |
if ((ISALNUM(c2) || c2 == '_')) { |
| 12180 |
goto ternary; |
| 12181 |
} |
| 12182 |
} |
| 12183 |
if (c == '\\') { |
| 12184 |
c = read_escape(p); |
| 12185 |
tokadd(p, c); |
| 12186 |
} |
| 12187 |
else { |
| 12188 |
tokadd(p, c); |
| 12189 |
} |
| 12190 |
tokfix(p); |
| 12191 |
pylval.nd = new_str(p, tok(p), toklen(p)); |
| 12192 |
p->lstate = EXPR_ENDARG; |
| 12193 |
return tCHAR; |
| 12194 |
|
| 12195 |
case '&': |
| 12196 |
if ((c = nextc(p)) == '&') { |
| 12197 |
p->lstate = EXPR_BEG; |
| 12198 |
if ((c = nextc(p)) == '=') { |
| 12199 |
pylval.id = intern_op(andand); |
| 12200 |
p->lstate = EXPR_BEG; |
| 12201 |
return tOP_ASGN; |
| 12202 |
} |
| 12203 |
pushback(p, c); |
| 12204 |
return tANDOP; |
| 12205 |
} |
| 12206 |
else if (c == '.') { |
| 12207 |
p->lstate = EXPR_DOT; |
| 12208 |
return tANDDOT; |
| 12209 |
} |
| 12210 |
else if (c == '=') { |
| 12211 |
pylval.id = intern_op(and); |
| 12212 |
p->lstate = EXPR_BEG; |
| 12213 |
return tOP_ASGN; |
| 12214 |
} |
| 12215 |
pushback(p, c); |
| 12216 |
if (IS_SPCARG(c)) { |
| 12217 |
yywarning(p, "'&' interpreted as argument prefix"); |
| 12218 |
c = tAMPER; |
| 12219 |
} |
| 12220 |
else if (IS_BEG()) { |
| 12221 |
c = tAMPER; |
| 12222 |
} |
| 12223 |
else { |
| 12224 |
c = '&'; |
| 12225 |
} |
| 12226 |
if (p->lstate == EXPR_FNAME || p->lstate == EXPR_DOT) { |
| 12227 |
p->lstate = EXPR_ARG; |
| 12228 |
} |
| 12229 |
else { |
| 12230 |
p->lstate = EXPR_BEG; |
| 12231 |
} |
| 12232 |
return c; |
| 12233 |
|
| 12234 |
case '|': |
| 12235 |
if ((c = nextc(p)) == '|') { |
| 12236 |
p->lstate = EXPR_BEG; |
| 12237 |
if ((c = nextc(p)) == '=') { |
| 12238 |
pylval.id = intern_op(oror); |
| 12239 |
p->lstate = EXPR_BEG; |
| 12240 |
return tOP_ASGN; |
| 12241 |
} |
| 12242 |
pushback(p, c); |
| 12243 |
return tOROP; |
| 12244 |
} |
| 12245 |
if (c == '=') { |
| 12246 |
pylval.id = intern_op(or); |
| 12247 |
p->lstate = EXPR_BEG; |
| 12248 |
return tOP_ASGN; |
| 12249 |
} |
| 12250 |
if (p->lstate == EXPR_FNAME || p->lstate == EXPR_DOT) { |
| 12251 |
p->lstate = EXPR_ARG; |
| 12252 |
} |
| 12253 |
else { |
| 12254 |
p->lstate = EXPR_BEG; |
| 12255 |
} |
| 12256 |
pushback(p, c); |
| 12257 |
return '|'; |
| 12258 |
|
| 12259 |
case '+': |
| 12260 |
c = nextc(p); |
| 12261 |
if (p->lstate == EXPR_FNAME || p->lstate == EXPR_DOT) { |
| 12262 |
p->lstate = EXPR_ARG; |
| 12263 |
if (c == '@') { |
| 12264 |
return tUPLUS; |
| 12265 |
} |
| 12266 |
pushback(p, c); |
| 12267 |
return '+'; |
| 12268 |
} |
| 12269 |
if (c == '=') { |
| 12270 |
pylval.id = intern_op(add); |
| 12271 |
p->lstate = EXPR_BEG; |
| 12272 |
return tOP_ASGN; |
| 12273 |
} |
| 12274 |
if (IS_BEG() || (IS_SPCARG(c) && arg_ambiguous(p))) { |
| 12275 |
p->lstate = EXPR_BEG; |
| 12276 |
pushback(p, c); |
| 12277 |
if (c >= 0 && ISDIGIT(c)) { |
| 12278 |
c = '+'; |
| 12279 |
goto start_num; |
| 12280 |
} |
| 12281 |
return tUPLUS; |
| 12282 |
} |
| 12283 |
p->lstate = EXPR_BEG; |
| 12284 |
pushback(p, c); |
| 12285 |
return '+'; |
| 12286 |
|
| 12287 |
case '-': |
| 12288 |
c = nextc(p); |
| 12289 |
if (p->lstate == EXPR_FNAME || p->lstate == EXPR_DOT) { |
| 12290 |
p->lstate = EXPR_ARG; |
| 12291 |
if (c == '@') { |
| 12292 |
return tUMINUS; |
| 12293 |
} |
| 12294 |
pushback(p, c); |
| 12295 |
return '-'; |
| 12296 |
} |
| 12297 |
if (c == '=') { |
| 12298 |
pylval.id = intern_op(sub); |
| 12299 |
p->lstate = EXPR_BEG; |
| 12300 |
return tOP_ASGN; |
| 12301 |
} |
| 12302 |
if (c == '>') { |
| 12303 |
p->lstate = EXPR_ENDFN; |
| 12304 |
return tLAMBDA; |
| 12305 |
} |
| 12306 |
if (IS_BEG() || (IS_SPCARG(c) && arg_ambiguous(p))) { |
| 12307 |
p->lstate = EXPR_BEG; |
| 12308 |
pushback(p, c); |
| 12309 |
if (c >= 0 && ISDIGIT(c)) { |
| 12310 |
return tUMINUS_NUM; |
| 12311 |
} |
| 12312 |
return tUMINUS; |
| 12313 |
} |
| 12314 |
p->lstate = EXPR_BEG; |
| 12315 |
pushback(p, c); |
| 12316 |
return '-'; |
| 12317 |
|
| 12318 |
case '.': |
| 12319 |
{ |
| 12320 |
int is_beg = IS_BEG(); |
| 12321 |
p->lstate = EXPR_MID; |
| 12322 |
if ((c = nextc(p)) == '.') { |
| 12323 |
if ((c = nextc(p)) == '.') { |
| 12324 |
return is_beg ? tBDOT3 : tDOT3; |
| 12325 |
} |
| 12326 |
pushback(p, c); |
| 12327 |
return is_beg ? tBDOT2 : tDOT2; |
| 12328 |
} |
| 12329 |
pushback(p, c); |
| 12330 |
p->lstate = EXPR_BEG; |
| 12331 |
if (c >= 0 && ISDIGIT(c)) { |
| 12332 |
yyerror(p, "no .<digit> floating literal anymore; put 0 before dot"); |
| 12333 |
} |
| 12334 |
p->lstate = EXPR_DOT; |
| 12335 |
return '.'; |
| 12336 |
} |
| 12337 |
|
| 12338 |
start_num: |
| 12339 |
case '0': case '1': case '2': case '3': case '4': |
| 12340 |
case '5': case '6': case '7': case '8': case '9': |
| 12341 |
{ |
| 12342 |
int is_float, seen_point, seen_e, nondigit; |
| 12343 |
int suffix = 0; |
| 12344 |
|
| 12345 |
is_float = seen_point = seen_e = nondigit = 0; |
| 12346 |
p->lstate = EXPR_ENDARG; |
| 12347 |
newtok(p); |
| 12348 |
if (c == '-' || c == '+') { |
| 12349 |
tokadd(p, c); |
| 12350 |
c = nextc(p); |
| 12351 |
} |
| 12352 |
if (c == '0') { |
| 12353 |
#define no_digits() do {yyerror(p,"numeric literal without digits"); return 0;} while (0) |
| 12354 |
int start = toklen(p); |
| 12355 |
c = nextc(p); |
| 12356 |
if (c == 'x' || c == 'X') { |
| 12357 |
/* hexadecimal */ |
| 12358 |
c = nextc(p); |
| 12359 |
if (c >= 0 && ISXDIGIT(c)) { |
| 12360 |
do { |
| 12361 |
if (c == '_') { |
| 12362 |
if (nondigit) break; |
| 12363 |
nondigit = c; |
| 12364 |
continue; |
| 12365 |
} |
| 12366 |
if (!ISXDIGIT(c)) break; |
| 12367 |
nondigit = 0; |
| 12368 |
tokadd(p, tolower(c)); |
| 12369 |
} while ((c = nextc(p)) >= 0); |
| 12370 |
} |
| 12371 |
pushback(p, c); |
| 12372 |
tokfix(p); |
| 12373 |
if (toklen(p) == start) { |
| 12374 |
no_digits(); |
| 12375 |
} |
| 12376 |
else if (nondigit) goto trailing_uc; |
| 12377 |
suffix = number_literal_suffix(p); |
| 12378 |
pylval.nd = new_int(p, tok(p), 16, suffix); |
| 12379 |
return tINTEGER; |
| 12380 |
} |
| 12381 |
if (c == 'b' || c == 'B') { |
| 12382 |
/* binary */ |
| 12383 |
c = nextc(p); |
| 12384 |
if (c == '0' || c == '1') { |
| 12385 |
do { |
| 12386 |
if (c == '_') { |
| 12387 |
if (nondigit) break; |
| 12388 |
nondigit = c; |
| 12389 |
continue; |
| 12390 |
} |
| 12391 |
if (c != '0' && c != '1') break; |
| 12392 |
nondigit = 0; |
| 12393 |
tokadd(p, c); |
| 12394 |
} while ((c = nextc(p)) >= 0); |
| 12395 |
} |
| 12396 |
pushback(p, c); |
| 12397 |
tokfix(p); |
| 12398 |
if (toklen(p) == start) { |
| 12399 |
no_digits(); |
| 12400 |
} |
| 12401 |
else if (nondigit) goto trailing_uc; |
| 12402 |
suffix = number_literal_suffix(p); |
| 12403 |
pylval.nd = new_int(p, tok(p), 2, suffix); |
| 12404 |
return tINTEGER; |
| 12405 |
} |
| 12406 |
if (c == 'd' || c == 'D') { |
| 12407 |
/* decimal */ |
| 12408 |
c = nextc(p); |
| 12409 |
if (c >= 0 && ISDIGIT(c)) { |
| 12410 |
do { |
| 12411 |
if (c == '_') { |
| 12412 |
if (nondigit) break; |
| 12413 |
nondigit = c; |
| 12414 |
continue; |
| 12415 |
} |
| 12416 |
if (!ISDIGIT(c)) break; |
| 12417 |
nondigit = 0; |
| 12418 |
tokadd(p, c); |
| 12419 |
} while ((c = nextc(p)) >= 0); |
| 12420 |
} |
| 12421 |
pushback(p, c); |
| 12422 |
tokfix(p); |
| 12423 |
if (toklen(p) == start) { |
| 12424 |
no_digits(); |
| 12425 |
} |
| 12426 |
else if (nondigit) goto trailing_uc; |
| 12427 |
suffix = number_literal_suffix(p); |
| 12428 |
pylval.nd = new_int(p, tok(p), 10, suffix); |
| 12429 |
return tINTEGER; |
| 12430 |
} |
| 12431 |
if (c == '_') { |
| 12432 |
/* 0_0 */ |
| 12433 |
goto octal_number; |
| 12434 |
} |
| 12435 |
if (c == 'o' || c == 'O') { |
| 12436 |
/* prefixed octal */ |
| 12437 |
c = nextc(p); |
| 12438 |
if (c < 0 || c == '_' || !ISDIGIT(c)) { |
| 12439 |
no_digits(); |
| 12440 |
} |
| 12441 |
} |
| 12442 |
if (c >= '0' && c <= '7') { |
| 12443 |
/* octal */ |
| 12444 |
octal_number: |
| 12445 |
do { |
| 12446 |
if (c == '_') { |
| 12447 |
if (nondigit) break; |
| 12448 |
nondigit = c; |
| 12449 |
continue; |
| 12450 |
} |
| 12451 |
if (c < '0' || c > '9') break; |
| 12452 |
if (c > '7') goto invalid_octal; |
| 12453 |
nondigit = 0; |
| 12454 |
tokadd(p, c); |
| 12455 |
} while ((c = nextc(p)) >= 0); |
| 12456 |
|
| 12457 |
if (toklen(p) > start) { |
| 12458 |
pushback(p, c); |
| 12459 |
tokfix(p); |
| 12460 |
if (nondigit) goto trailing_uc; |
| 12461 |
suffix = number_literal_suffix(p); |
| 12462 |
pylval.nd = new_int(p, tok(p), 8, suffix); |
| 12463 |
return tINTEGER; |
| 12464 |
} |
| 12465 |
if (nondigit) { |
| 12466 |
pushback(p, c); |
| 12467 |
goto trailing_uc; |
| 12468 |
} |
| 12469 |
} |
| 12470 |
if (c > '7' && c <= '9') { |
| 12471 |
invalid_octal: |
| 12472 |
yyerror(p, "Invalid octal digit"); |
| 12473 |
} |
| 12474 |
else if (c == '.' || c == 'e' || c == 'E') { |
| 12475 |
tokadd(p, '0'); |
| 12476 |
} |
| 12477 |
else { |
| 12478 |
pushback(p, c); |
| 12479 |
suffix = number_literal_suffix(p); |
| 12480 |
pylval.nd = new_int(p, "0", 10, suffix); |
| 12481 |
return tINTEGER; |
| 12482 |
} |
| 12483 |
} |
| 12484 |
|
| 12485 |
for (;;) { |
| 12486 |
switch (c) { |
| 12487 |
case '0': case '1': case '2': case '3': case '4': |
| 12488 |
case '5': case '6': case '7': case '8': case '9': |
| 12489 |
nondigit = 0; |
| 12490 |
tokadd(p, c); |
| 12491 |
break; |
| 12492 |
|
| 12493 |
case '.': |
| 12494 |
if (nondigit) goto trailing_uc; |
| 12495 |
if (seen_point || seen_e) { |
| 12496 |
goto decode_num; |
| 12497 |
} |
| 12498 |
else { |
| 12499 |
int c0 = nextc(p); |
| 12500 |
if (c0 < 0 || !ISDIGIT(c0)) { |
| 12501 |
pushback(p, c0); |
| 12502 |
goto decode_num; |
| 12503 |
} |
| 12504 |
c = c0; |
| 12505 |
} |
| 12506 |
tokadd(p, '.'); |
| 12507 |
tokadd(p, c); |
| 12508 |
is_float++; |
| 12509 |
seen_point++; |
| 12510 |
nondigit = 0; |
| 12511 |
break; |
| 12512 |
|
| 12513 |
case 'e': |
| 12514 |
case 'E': |
| 12515 |
if (nondigit) { |
| 12516 |
pushback(p, c); |
| 12517 |
c = nondigit; |
| 12518 |
goto decode_num; |
| 12519 |
} |
| 12520 |
if (seen_e) { |
| 12521 |
goto decode_num; |
| 12522 |
} |
| 12523 |
tokadd(p, c); |
| 12524 |
seen_e++; |
| 12525 |
is_float++; |
| 12526 |
nondigit = c; |
| 12527 |
c = nextc(p); |
| 12528 |
if (c != '-' && c != '+') continue; |
| 12529 |
tokadd(p, c); |
| 12530 |
nondigit = c; |
| 12531 |
break; |
| 12532 |
|
| 12533 |
case '_': /* '_' in number just ignored */ |
| 12534 |
if (nondigit) goto decode_num; |
| 12535 |
nondigit = c; |
| 12536 |
break; |
| 12537 |
|
| 12538 |
default: |
| 12539 |
goto decode_num; |
| 12540 |
} |
| 12541 |
c = nextc(p); |
| 12542 |
} |
| 12543 |
|
| 12544 |
decode_num: |
| 12545 |
pushback(p, c); |
| 12546 |
if (nondigit) { |
| 12547 |
trailing_uc: |
| 12548 |
yyerror_c(p, "trailing non digit in number: ", (char)nondigit); |
| 12549 |
} |
| 12550 |
tokfix(p); |
| 12551 |
if (is_float) { |
| 12552 |
#ifdef MRB_NO_FLOAT |
| 12553 |
yywarning_s(p, "floating-point numbers are not supported", tok(p)); |
| 12554 |
pylval.nd = new_int(p, "0", 10, 0); |
| 12555 |
return tINTEGER; |
| 12556 |
#else |
| 12557 |
double d; |
| 12558 |
|
| 12559 |
if (!mrb_read_float(tok(p), NULL, &d)) { |
| 12560 |
yywarning_s(p, "corrupted float value", tok(p)); |
| 12561 |
} |
| 12562 |
suffix = number_literal_suffix(p); |
| 12563 |
if (seen_e && (suffix & NUM_SUFFIX_R)) { |
| 12564 |
pushback(p, 'r'); |
| 12565 |
suffix &= ~NUM_SUFFIX_R; |
| 12566 |
} |
| 12567 |
pylval.nd = new_float(p, tok(p), suffix); |
| 12568 |
return tFLOAT; |
| 12569 |
#endif |
| 12570 |
} |
| 12571 |
suffix = number_literal_suffix(p); |
| 12572 |
pylval.nd = new_int(p, tok(p), 10, suffix); |
| 12573 |
return tINTEGER; |
| 12574 |
} |
| 12575 |
|
| 12576 |
case ')': |
| 12577 |
case ']': |
| 12578 |
p->paren_nest--; |
| 12579 |
/* fall through */ |
| 12580 |
case '}': |
| 12581 |
COND_LEXPOP(); |
| 12582 |
CMDARG_LEXPOP(); |
| 12583 |
if (c == ')') |
| 12584 |
p->lstate = EXPR_ENDFN; |
| 12585 |
else |
| 12586 |
p->lstate = EXPR_END; |
| 12587 |
return c; |
| 12588 |
|
| 12589 |
case ':': |
| 12590 |
c = nextc(p); |
| 12591 |
if (c == ':') { |
| 12592 |
if (IS_BEG() || p->lstate == EXPR_CLASS || IS_SPCARG(-1)) { |
| 12593 |
p->lstate = EXPR_BEG; |
| 12594 |
return tCOLON3; |
| 12595 |
} |
| 12596 |
p->lstate = EXPR_DOT; |
| 12597 |
return tCOLON2; |
| 12598 |
} |
| 12599 |
if (!space_seen && IS_END()) { |
| 12600 |
pushback(p, c); |
| 12601 |
p->lstate = EXPR_BEG; |
| 12602 |
return tLABEL_TAG; |
| 12603 |
} |
| 12604 |
if (IS_END() || ISSPACE(c) || c == '#') { |
| 12605 |
pushback(p, c); |
| 12606 |
p->lstate = EXPR_BEG; |
| 12607 |
return ':'; |
| 12608 |
} |
| 12609 |
pushback(p, c); |
| 12610 |
p->lstate = EXPR_FNAME; |
| 12611 |
return tSYMBEG; |
| 12612 |
|
| 12613 |
case '/': |
| 12614 |
if (IS_BEG()) { |
| 12615 |
p->lex_strterm = new_strterm(p, str_regexp, '/', 0); |
| 12616 |
return tREGEXP_BEG; |
| 12617 |
} |
| 12618 |
if ((c = nextc(p)) == '=') { |
| 12619 |
pylval.id = intern_op(div); |
| 12620 |
p->lstate = EXPR_BEG; |
| 12621 |
return tOP_ASGN; |
| 12622 |
} |
| 12623 |
pushback(p, c); |
| 12624 |
if (IS_SPCARG(c)) { |
| 12625 |
p->lex_strterm = new_strterm(p, str_regexp, '/', 0); |
| 12626 |
return tREGEXP_BEG; |
| 12627 |
} |
| 12628 |
if (p->lstate == EXPR_FNAME || p->lstate == EXPR_DOT) { |
| 12629 |
p->lstate = EXPR_ARG; |
| 12630 |
} |
| 12631 |
else { |
| 12632 |
p->lstate = EXPR_BEG; |
| 12633 |
} |
| 12634 |
return '/'; |
| 12635 |
|
| 12636 |
case '^': |
| 12637 |
if ((c = nextc(p)) == '=') { |
| 12638 |
pylval.id = intern_op(xor); |
| 12639 |
p->lstate = EXPR_BEG; |
| 12640 |
return tOP_ASGN; |
| 12641 |
} |
| 12642 |
if (p->lstate == EXPR_FNAME || p->lstate == EXPR_DOT) { |
| 12643 |
p->lstate = EXPR_ARG; |
| 12644 |
} |
| 12645 |
else { |
| 12646 |
p->lstate = EXPR_BEG; |
| 12647 |
} |
| 12648 |
pushback(p, c); |
| 12649 |
return '^'; |
| 12650 |
|
| 12651 |
case ';': |
| 12652 |
p->lstate = EXPR_BEG; |
| 12653 |
return ';'; |
| 12654 |
|
| 12655 |
case ',': |
| 12656 |
p->lstate = EXPR_BEG; |
| 12657 |
return ','; |
| 12658 |
|
| 12659 |
case '~': |
| 12660 |
if (p->lstate == EXPR_FNAME || p->lstate == EXPR_DOT) { |
| 12661 |
if ((c = nextc(p)) != '@') { |
| 12662 |
pushback(p, c); |
| 12663 |
} |
| 12664 |
p->lstate = EXPR_ARG; |
| 12665 |
} |
| 12666 |
else { |
| 12667 |
p->lstate = EXPR_BEG; |
| 12668 |
} |
| 12669 |
return '~'; |
| 12670 |
|
| 12671 |
case '(': |
| 12672 |
if (IS_BEG()) { |
| 12673 |
c = tLPAREN; |
| 12674 |
} |
| 12675 |
else if (IS_SPCARG(-1)) { |
| 12676 |
c = tLPAREN_ARG; |
| 12677 |
} |
| 12678 |
else if (p->lstate == EXPR_END && space_seen) { |
| 12679 |
c = tLPAREN_ARG; |
| 12680 |
} |
| 12681 |
p->paren_nest++; |
| 12682 |
COND_PUSH(0); |
| 12683 |
CMDARG_PUSH(0); |
| 12684 |
p->lstate = EXPR_BEG; |
| 12685 |
return c; |
| 12686 |
|
| 12687 |
case '[': |
| 12688 |
p->paren_nest++; |
| 12689 |
if (p->lstate == EXPR_FNAME || p->lstate == EXPR_DOT) { |
| 12690 |
p->lstate = EXPR_ARG; |
| 12691 |
p->paren_nest--; |
| 12692 |
if ((c = nextc(p)) == ']') { |
| 12693 |
if ((c = nextc(p)) == '=') { |
| 12694 |
return tASET; |
| 12695 |
} |
| 12696 |
pushback(p, c); |
| 12697 |
return tAREF; |
| 12698 |
} |
| 12699 |
pushback(p, c); |
| 12700 |
return '['; |
| 12701 |
} |
| 12702 |
else if (IS_BEG()) { |
| 12703 |
c = tLBRACK; |
| 12704 |
} |
| 12705 |
else if (IS_ARG() && space_seen) { |
| 12706 |
c = tLBRACK; |
| 12707 |
} |
| 12708 |
p->lstate = EXPR_BEG; |
| 12709 |
COND_PUSH(0); |
| 12710 |
CMDARG_PUSH(0); |
| 12711 |
return c; |
| 12712 |
|
| 12713 |
case '{': |
| 12714 |
if (p->lpar_beg && p->lpar_beg == p->paren_nest) { |
| 12715 |
p->lstate = EXPR_BEG; |
| 12716 |
p->lpar_beg = 0; |
| 12717 |
p->paren_nest--; |
| 12718 |
COND_PUSH(0); |
| 12719 |
CMDARG_PUSH(0); |
| 12720 |
return tLAMBEG; |
| 12721 |
} |
| 12722 |
if (IS_ARG() || p->lstate == EXPR_END || p->lstate == EXPR_ENDFN) |
| 12723 |
c = '{'; /* block (primary) */ |
| 12724 |
else if (p->lstate == EXPR_ENDARG) |
| 12725 |
c = tLBRACE_ARG; /* block (expr) */ |
| 12726 |
else |
| 12727 |
c = tLBRACE; /* hash */ |
| 12728 |
COND_PUSH(0); |
| 12729 |
CMDARG_PUSH(0); |
| 12730 |
p->lstate = EXPR_BEG; |
| 12731 |
return c; |
| 12732 |
|
| 12733 |
case '\\': |
| 12734 |
c = nextc(p); |
| 12735 |
if (c == '\n') { |
| 12736 |
p->lineno+=nlines; nlines=1; |
| 12737 |
p->column = 0; |
| 12738 |
space_seen = 1; |
| 12739 |
goto retry; /* skip \\n */ |
| 12740 |
} |
| 12741 |
pushback(p, c); |
| 12742 |
return '\\'; |
| 12743 |
|
| 12744 |
case '%': |
| 12745 |
if (IS_BEG()) { |
| 12746 |
int term; |
| 12747 |
int paren; |
| 12748 |
|
| 12749 |
c = nextc(p); |
| 12750 |
quotation: |
| 12751 |
if (c < 0 || !ISALNUM(c)) { |
| 12752 |
term = c; |
| 12753 |
c = 'Q'; |
| 12754 |
} |
| 12755 |
else { |
| 12756 |
term = nextc(p); |
| 12757 |
if (ISALNUM(term)) { |
| 12758 |
yyerror(p, "unknown type of %string"); |
| 12759 |
return 0; |
| 12760 |
} |
| 12761 |
} |
| 12762 |
if (c < 0 || term < 0) { |
| 12763 |
yyerror(p, "unterminated quoted string meets end of file"); |
| 12764 |
return 0; |
| 12765 |
} |
| 12766 |
paren = term; |
| 12767 |
if (term == '(') term = ')'; |
| 12768 |
else if (term == '[') term = ']'; |
| 12769 |
else if (term == '{') term = '}'; |
| 12770 |
else if (term == '<') term = '>'; |
| 12771 |
else paren = 0; |
| 12772 |
|
| 12773 |
switch (c) { |
| 12774 |
case 'Q': |
| 12775 |
p->lex_strterm = new_strterm(p, str_dquote, term, paren); |
| 12776 |
return tSTRING_BEG; |
| 12777 |
|
| 12778 |
case 'q': |
| 12779 |
p->lex_strterm = new_strterm(p, str_squote, term, paren); |
| 12780 |
return parse_string(p); |
| 12781 |
|
| 12782 |
case 'W': |
| 12783 |
p->lex_strterm = new_strterm(p, str_dword, term, paren); |
| 12784 |
return tWORDS_BEG; |
| 12785 |
|
| 12786 |
case 'w': |
| 12787 |
p->lex_strterm = new_strterm(p, str_sword, term, paren); |
| 12788 |
return tWORDS_BEG; |
| 12789 |
|
| 12790 |
case 'x': |
| 12791 |
p->lex_strterm = new_strterm(p, str_xquote, term, paren); |
| 12792 |
return tXSTRING_BEG; |
| 12793 |
|
| 12794 |
case 'r': |
| 12795 |
p->lex_strterm = new_strterm(p, str_regexp, term, paren); |
| 12796 |
return tREGEXP_BEG; |
| 12797 |
|
| 12798 |
case 's': |
| 12799 |
p->lex_strterm = new_strterm(p, str_ssym, term, paren); |
| 12800 |
return tSYMBEG; |
| 12801 |
|
| 12802 |
case 'I': |
| 12803 |
p->lex_strterm = new_strterm(p, str_dsymbols, term, paren); |
| 12804 |
return tSYMBOLS_BEG; |
| 12805 |
|
| 12806 |
case 'i': |
| 12807 |
p->lex_strterm = new_strterm(p, str_ssymbols, term, paren); |
| 12808 |
return tSYMBOLS_BEG; |
| 12809 |
|
| 12810 |
default: |
| 12811 |
yyerror(p, "unknown type of %string"); |
| 12812 |
return 0; |
| 12813 |
} |
| 12814 |
} |
| 12815 |
if ((c = nextc(p)) == '=') { |
| 12816 |
pylval.id = intern_op(mod); |
| 12817 |
p->lstate = EXPR_BEG; |
| 12818 |
return tOP_ASGN; |
| 12819 |
} |
| 12820 |
if (IS_SPCARG(c)) { |
| 12821 |
goto quotation; |
| 12822 |
} |
| 12823 |
if (p->lstate == EXPR_FNAME || p->lstate == EXPR_DOT) { |
| 12824 |
p->lstate = EXPR_ARG; |
| 12825 |
} |
| 12826 |
else { |
| 12827 |
p->lstate = EXPR_BEG; |
| 12828 |
} |
| 12829 |
pushback(p, c); |
| 12830 |
return '%'; |
| 12831 |
|
| 12832 |
case '$': |
| 12833 |
p->lstate = EXPR_END; |
| 12834 |
token_column = newtok(p); |
| 12835 |
c = nextc(p); |
| 12836 |
if (c < 0) { |
| 12837 |
yyerror(p, "incomplete global variable syntax"); |
| 12838 |
return 0; |
| 12839 |
} |
| 12840 |
switch (c) { |
| 12841 |
case '_': /* $_: last read line string */ |
| 12842 |
c = nextc(p); |
| 12843 |
if (c >= 0 && identchar(c)) { /* if there is more after _ it is a variable */ |
| 12844 |
tokadd(p, '$'); |
| 12845 |
tokadd(p, c); |
| 12846 |
break; |
| 12847 |
} |
| 12848 |
pushback(p, c); |
| 12849 |
c = '_'; |
| 12850 |
/* fall through */ |
| 12851 |
case '~': /* $~: match-data */ |
| 12852 |
case '*': /* $*: argv */ |
| 12853 |
case '$': /* $$: pid */ |
| 12854 |
case '?': /* $?: last status */ |
| 12855 |
case '!': /* $!: error string */ |
| 12856 |
case '@': /* $@: error position */ |
| 12857 |
case '/': /* $/: input record separator */ |
| 12858 |
case '\\': /* $\: output record separator */ |
| 12859 |
case ';': /* $;: field separator */ |
| 12860 |
case ',': /* $,: output field separator */ |
| 12861 |
case '.': /* $.: last read line number */ |
| 12862 |
case '=': /* $=: ignorecase */ |
| 12863 |
case ':': /* $:: load path */ |
| 12864 |
case '<': /* $<: reading filename */ |
| 12865 |
case '>': /* $>: default output handle */ |
| 12866 |
case '\"': /* $": already loaded files */ |
| 12867 |
tokadd(p, '$'); |
| 12868 |
tokadd(p, c); |
| 12869 |
tokfix(p); |
| 12870 |
pylval.id = intern(tok(p), toklen(p)); |
| 12871 |
return tGVAR; |
| 12872 |
|
| 12873 |
case '-': |
| 12874 |
tokadd(p, '$'); |
| 12875 |
tokadd(p, c); |
| 12876 |
c = nextc(p); |
| 12877 |
pushback(p, c); |
| 12878 |
gvar: |
| 12879 |
tokfix(p); |
| 12880 |
pylval.id = intern(tok(p), toklen(p)); |
| 12881 |
return tGVAR; |
| 12882 |
|
| 12883 |
case '&': /* $&: last match */ |
| 12884 |
case '`': /* $`: string before last match */ |
| 12885 |
case '\'': /* $': string after last match */ |
| 12886 |
case '+': /* $+: string matches last pattern */ |
| 12887 |
if (last_state == EXPR_FNAME) { |
| 12888 |
tokadd(p, '$'); |
| 12889 |
tokadd(p, c); |
| 12890 |
goto gvar; |
| 12891 |
} |
| 12892 |
pylval.nd = new_back_ref(p, c); |
| 12893 |
return tBACK_REF; |
| 12894 |
|
| 12895 |
case '1': case '2': case '3': |
| 12896 |
case '4': case '5': case '6': |
| 12897 |
case '7': case '8': case '9': |
| 12898 |
do { |
| 12899 |
tokadd(p, c); |
| 12900 |
c = nextc(p); |
| 12901 |
} while (c >= 0 && ISDIGIT(c)); |
| 12902 |
pushback(p, c); |
| 12903 |
if (last_state == EXPR_FNAME) goto gvar; |
| 12904 |
tokfix(p); |
| 12905 |
{ |
| 12906 |
mrb_int n; |
| 12907 |
if (!mrb_read_int(tok(p), NULL, NULL, &n)) { |
| 12908 |
yywarning(p, "capture group index too big; always nil"); |
| 12909 |
return keyword_nil; |
| 12910 |
} |
| 12911 |
pylval.nd = new_nth_ref(p, (int)n); |
| 12912 |
} |
| 12913 |
return tNTH_REF; |
| 12914 |
|
| 12915 |
default: |
| 12916 |
if (!identchar(c)) { |
| 12917 |
pushback(p, c); |
| 12918 |
return '$'; |
| 12919 |
} |
| 12920 |
/* fall through */ |
| 12921 |
case '0': |
| 12922 |
tokadd(p, '$'); |
| 12923 |
} |
| 12924 |
break; |
| 12925 |
|
| 12926 |
case '@': |
| 12927 |
c = nextc(p); |
| 12928 |
token_column = newtok(p); |
| 12929 |
tokadd(p, '@'); |
| 12930 |
if (c == '@') { |
| 12931 |
tokadd(p, '@'); |
| 12932 |
c = nextc(p); |
| 12933 |
} |
| 12934 |
if (c < 0) { |
| 12935 |
if (p->tidx == 1) { |
| 12936 |
yyerror(p, "incomplete instance variable syntax"); |
| 12937 |
} |
| 12938 |
else { |
| 12939 |
yyerror(p, "incomplete class variable syntax"); |
| 12940 |
} |
| 12941 |
return 0; |
| 12942 |
} |
| 12943 |
else if (ISDIGIT(c)) { |
| 12944 |
if (p->tidx == 1) { |
| 12945 |
yyerror_c(p, "wrong instance variable name: @", c); |
| 12946 |
} |
| 12947 |
else { |
| 12948 |
yyerror_c(p, "wrong class variable name: @@", c); |
| 12949 |
} |
| 12950 |
return 0; |
| 12951 |
} |
| 12952 |
if (!identchar(c)) { |
| 12953 |
pushback(p, c); |
| 12954 |
return '@'; |
| 12955 |
} |
| 12956 |
break; |
| 12957 |
|
| 12958 |
case '_': |
| 12959 |
token_column = newtok(p); |
| 12960 |
break; |
| 12961 |
|
| 12962 |
default: |
| 12963 |
if (!identchar(c)) { |
| 12964 |
char buf[36]; |
| 12965 |
const char s[] = "Invalid char in expression: 0x"; |
| 12966 |
const char hexdigits[] = "0123456789ABCDEF"; |
| 12967 |
|
| 12968 |
strcpy(buf, s); |
| 12969 |
buf[sizeof(s)-1] = hexdigits[(c & 0xf0) >> 4]; |
| 12970 |
buf[sizeof(s)] = hexdigits[(c & 0x0f)]; |
| 12971 |
buf[sizeof(s)+1] = 0; |
| 12972 |
yyerror(p, buf); |
| 12973 |
goto retry; |
| 12974 |
} |
| 12975 |
|
| 12976 |
token_column = newtok(p); |
| 12977 |
break; |
| 12978 |
} |
| 12979 |
|
| 12980 |
do { |
| 12981 |
tokadd(p, c); |
| 12982 |
c = nextc(p); |
| 12983 |
if (c < 0) break; |
| 12984 |
} while (identchar(c)); |
| 12985 |
if (token_column == 0 && toklen(p) == 7 && (c < 0 || c == '\n') && |
| 12986 |
strncmp(tok(p), "__END__", toklen(p)) == 0) |
| 12987 |
return -1; |
| 12988 |
|
| 12989 |
switch (tok(p)[0]) { |
| 12990 |
case '@': case '$': |
| 12991 |
pushback(p, c); |
| 12992 |
break; |
| 12993 |
default: |
| 12994 |
if ((c == '!' || c == '?') && !peek(p, '=')) { |
| 12995 |
tokadd(p, c); |
| 12996 |
} |
| 12997 |
else { |
| 12998 |
pushback(p, c); |
| 12999 |
} |
| 13000 |
} |
| 13001 |
tokfix(p); |
| 13002 |
{ |
| 13003 |
int result = 0; |
| 13004 |
|
| 13005 |
switch (tok(p)[0]) { |
| 13006 |
case '$': |
| 13007 |
p->lstate = EXPR_END; |
| 13008 |
result = tGVAR; |
| 13009 |
break; |
| 13010 |
case '@': |
| 13011 |
p->lstate = EXPR_END; |
| 13012 |
if (tok(p)[1] == '@') |
| 13013 |
result = tCVAR; |
| 13014 |
else |
| 13015 |
result = tIVAR; |
| 13016 |
break; |
| 13017 |
|
| 13018 |
case '_': |
| 13019 |
if (p->lstate != EXPR_FNAME && toklen(p) == 2 && ISDIGIT(tok(p)[1]) && p->nvars) { |
| 13020 |
int n = tok(p)[1] - '0'; |
| 13021 |
int nvar; |
| 13022 |
|
| 13023 |
if (n > 0) { |
| 13024 |
node *nvars = p->nvars->cdr; |
| 13025 |
|
| 13026 |
while (nvars) { |
| 13027 |
nvar = intn(nvars->car); |
| 13028 |
if (nvar == -2) break; /* top of the scope */ |
| 13029 |
if (nvar > 0) { |
| 13030 |
yywarning(p, "numbered parameter used in outer block"); |
| 13031 |
break; |
| 13032 |
} |
| 13033 |
nvars->car = nint(-1); |
| 13034 |
nvars = nvars->cdr; |
| 13035 |
} |
| 13036 |
nvar = intn(p->nvars->car); |
| 13037 |
if (nvar != -2) { /* numbered parameters never appear on toplevel */ |
| 13038 |
if (nvar == -1) { |
| 13039 |
yywarning(p, "numbered parameter used in inner block"); |
| 13040 |
} |
| 13041 |
else { |
| 13042 |
p->nvars->car = nint(nvar > n ? nvar : n); |
| 13043 |
} |
| 13044 |
pylval.num = n; |
| 13045 |
p->lstate = EXPR_END; |
| 13046 |
return tNUMPARAM; |
| 13047 |
} |
| 13048 |
} |
| 13049 |
} |
| 13050 |
/* fall through */ |
| 13051 |
default: |
| 13052 |
if (toklast(p) == '!' || toklast(p) == '?') { |
| 13053 |
result = tFID; |
| 13054 |
} |
| 13055 |
else { |
| 13056 |
if (p->lstate == EXPR_FNAME) { |
| 13057 |
if ((c = nextc(p)) == '=' && !peek(p, '~') && !peek(p, '>') && |
| 13058 |
(!peek(p, '=') || (peek_n(p, '>', 1)))) { |
| 13059 |
result = tIDENTIFIER; |
| 13060 |
tokadd(p, c); |
| 13061 |
tokfix(p); |
| 13062 |
} |
| 13063 |
else { |
| 13064 |
pushback(p, c); |
| 13065 |
} |
| 13066 |
if ((c = nextc(p)) == '=' && !peek(p, '~') && !peek(p, '>') && |
| 13067 |
(!peek(p, '=') || (peek_n(p, '>', 1)))) { |
| 13068 |
result = tIDENTIFIER; |
| 13069 |
tokadd(p, c); |
| 13070 |
tokfix(p); |
| 13071 |
} |
| 13072 |
else { |
| 13073 |
pushback(p, c); |
| 13074 |
} |
| 13075 |
} |
| 13076 |
if (result == 0 && ISUPPER(tok(p)[0])) { |
| 13077 |
result = tCONSTANT; |
| 13078 |
} |
| 13079 |
else { |
| 13080 |
result = tIDENTIFIER; |
| 13081 |
} |
| 13082 |
} |
| 13083 |
|
| 13084 |
if (IS_LABEL_POSSIBLE()) { |
| 13085 |
if (IS_LABEL_SUFFIX(0)) { |
| 13086 |
p->lstate = EXPR_END; |
| 13087 |
tokfix(p); |
| 13088 |
pylval.id = intern(tok(p), toklen(p)); |
| 13089 |
return tIDENTIFIER; |
| 13090 |
} |
| 13091 |
} |
| 13092 |
if (p->lstate != EXPR_DOT) { |
| 13093 |
const struct kwtable *kw; |
| 13094 |
|
| 13095 |
/* See if it is a reserved word. */ |
| 13096 |
kw = mrb_reserved_word(tok(p), toklen(p)); |
| 13097 |
if (kw) { |
| 13098 |
enum mrb_lex_state_enum state = p->lstate; |
| 13099 |
pylval.num = p->lineno; |
| 13100 |
p->lstate = kw->state; |
| 13101 |
if (state == EXPR_FNAME) { |
| 13102 |
pylval.id = intern_cstr(kw->name); |
| 13103 |
return kw->id[0]; |
| 13104 |
} |
| 13105 |
if (p->lstate == EXPR_BEG) { |
| 13106 |
p->cmd_start = TRUE; |
| 13107 |
} |
| 13108 |
if (kw->id[0] == keyword_do) { |
| 13109 |
if (p->lpar_beg && p->lpar_beg == p->paren_nest) { |
| 13110 |
p->lpar_beg = 0; |
| 13111 |
p->paren_nest--; |
| 13112 |
return keyword_do_LAMBDA; |
| 13113 |
} |
| 13114 |
if (COND_P()) return keyword_do_cond; |
| 13115 |
if (CMDARG_P() && state != EXPR_CMDARG) |
| 13116 |
return keyword_do_block; |
| 13117 |
if (state == EXPR_ENDARG || state == EXPR_BEG) |
| 13118 |
return keyword_do_block; |
| 13119 |
return keyword_do; |
| 13120 |
} |
| 13121 |
if (state == EXPR_BEG || state == EXPR_VALUE || state == EXPR_CLASS) |
| 13122 |
return kw->id[0]; |
| 13123 |
else { |
| 13124 |
if (kw->id[0] != kw->id[1]) |
| 13125 |
p->lstate = EXPR_BEG; |
| 13126 |
return kw->id[1]; |
| 13127 |
} |
| 13128 |
} |
| 13129 |
} |
| 13130 |
|
| 13131 |
if (IS_BEG() || p->lstate == EXPR_DOT || IS_ARG()) { |
| 13132 |
if (cmd_state) { |
| 13133 |
p->lstate = EXPR_CMDARG; |
| 13134 |
} |
| 13135 |
else { |
| 13136 |
p->lstate = EXPR_ARG; |
| 13137 |
} |
| 13138 |
} |
| 13139 |
else if (p->lstate == EXPR_FNAME) { |
| 13140 |
p->lstate = EXPR_ENDFN; |
| 13141 |
} |
| 13142 |
else { |
| 13143 |
p->lstate = EXPR_END; |
| 13144 |
} |
| 13145 |
} |
| 13146 |
{ |
| 13147 |
mrb_sym ident = intern(tok(p), toklen(p)); |
| 13148 |
|
| 13149 |
pylval.id = ident; |
| 13150 |
if (last_state != EXPR_DOT && ISLOWER(tok(p)[0]) && local_var_p(p, ident)) { |
| 13151 |
p->lstate = EXPR_END; |
| 13152 |
} |
| 13153 |
} |
| 13154 |
return result; |
| 13155 |
} |
| 13156 |
} |
| 13157 |
|
| 13158 |
static int |
| 13159 |
yylex(void *lval, parser_state *p) |
| 13160 |
{ |
| 13161 |
p->ylval = lval; |
| 13162 |
return parser_yylex(p); |
| 13163 |
} |
| 13164 |
|
| 13165 |
static void |
| 13166 |
parser_init_cxt(parser_state *p, mrbc_context *cxt) |
| 13167 |
{ |
| 13168 |
if (!cxt) return; |
| 13169 |
if (cxt->filename) mrb_parser_set_filename(p, cxt->filename); |
| 13170 |
if (cxt->lineno) p->lineno = cxt->lineno; |
| 13171 |
if (cxt->syms) { |
| 13172 |
int i; |
| 13173 |
|
| 13174 |
p->locals = cons(0,0); |
| 13175 |
for (i=0; i<cxt->slen; i++) { |
| 13176 |
local_add_f(p, cxt->syms[i]); |
| 13177 |
} |
| 13178 |
} |
| 13179 |
p->capture_errors = cxt->capture_errors; |
| 13180 |
p->no_optimize = cxt->no_optimize; |
| 13181 |
p->no_ext_ops = cxt->no_ext_ops; |
| 13182 |
p->upper = cxt->upper; |
| 13183 |
if (cxt->partial_hook) { |
| 13184 |
p->cxt = cxt; |
| 13185 |
} |
| 13186 |
} |
| 13187 |
|
| 13188 |
static void |
| 13189 |
parser_update_cxt(parser_state *p, mrbc_context *cxt) |
| 13190 |
{ |
| 13191 |
node *n, *n0; |
| 13192 |
int i = 0; |
| 13193 |
|
| 13194 |
if (!cxt) return; |
| 13195 |
if (!p->tree) return; |
| 13196 |
if (intn(p->tree->car) != NODE_SCOPE) return; |
| 13197 |
n0 = n = p->tree->cdr->car; |
| 13198 |
while (n) { |
| 13199 |
i++; |
| 13200 |
n = n->cdr; |
| 13201 |
} |
| 13202 |
cxt->syms = (mrb_sym*)mrb_realloc(p->mrb, cxt->syms, i*sizeof(mrb_sym)); |
| 13203 |
cxt->slen = i; |
| 13204 |
for (i=0, n=n0; n; i++,n=n->cdr) { |
| 13205 |
cxt->syms[i] = sym(n->car); |
| 13206 |
} |
| 13207 |
} |
| 13208 |
|
| 13209 |
void mrb_parser_dump(mrb_state *mrb, node *tree, int offset); |
| 13210 |
|
| 13211 |
MRB_API void |
| 13212 |
mrb_parser_parse(parser_state *p, mrbc_context *c) |
| 13213 |
{ |
| 13214 |
struct mrb_jmpbuf buf1; |
| 13215 |
struct mrb_jmpbuf *prev = p->mrb->jmp; |
| 13216 |
p->mrb->jmp = &buf1; |
| 13217 |
|
| 13218 |
MRB_TRY(p->mrb->jmp) { |
| 13219 |
int n = 1; |
| 13220 |
|
| 13221 |
p->cmd_start = TRUE; |
| 13222 |
p->in_def = p->in_single = 0; |
| 13223 |
p->nerr = p->nwarn = 0; |
| 13224 |
p->lex_strterm = NULL; |
| 13225 |
parser_init_cxt(p, c); |
| 13226 |
|
| 13227 |
n = yyparse(p); |
| 13228 |
if (n != 0 || p->nerr > 0) { |
| 13229 |
p->tree = 0; |
| 13230 |
p->mrb->jmp = prev; |
| 13231 |
return; |
| 13232 |
} |
| 13233 |
parser_update_cxt(p, c); |
| 13234 |
if (c && c->dump_result) { |
| 13235 |
mrb_parser_dump(p->mrb, p->tree, 0); |
| 13236 |
} |
| 13237 |
} |
| 13238 |
MRB_CATCH(p->mrb->jmp) { |
| 13239 |
p->nerr++; |
| 13240 |
if (p->mrb->exc == NULL) { |
| 13241 |
yyerror(p, "memory allocation error"); |
| 13242 |
p->nerr++; |
| 13243 |
p->tree = 0; |
| 13244 |
} |
| 13245 |
} |
| 13246 |
MRB_END_EXC(p->jmp); |
| 13247 |
p->mrb->jmp = prev; |
| 13248 |
} |
| 13249 |
|
| 13250 |
MRB_API parser_state* |
| 13251 |
mrb_parser_new(mrb_state *mrb) |
| 13252 |
{ |
| 13253 |
mrb_pool *pool; |
| 13254 |
parser_state *p; |
| 13255 |
static const parser_state parser_state_zero = { 0 }; |
| 13256 |
|
| 13257 |
pool = mrb_pool_open(mrb); |
| 13258 |
if (!pool) return NULL; |
| 13259 |
p = (parser_state*)mrb_pool_alloc(pool, sizeof(parser_state)); |
| 13260 |
if (!p) return NULL; |
| 13261 |
|
| 13262 |
*p = parser_state_zero; |
| 13263 |
p->mrb = mrb; |
| 13264 |
p->pool = pool; |
| 13265 |
|
| 13266 |
p->s = p->send = NULL; |
| 13267 |
#ifndef MRB_NO_STDIO |
| 13268 |
p->f = NULL; |
| 13269 |
#endif |
| 13270 |
|
| 13271 |
p->cmd_start = TRUE; |
| 13272 |
p->in_def = p->in_single = 0; |
| 13273 |
|
| 13274 |
p->capture_errors = FALSE; |
| 13275 |
p->lineno = 1; |
| 13276 |
p->column = 0; |
| 13277 |
#if defined(PARSER_TEST) || defined(PARSER_DEBUG) |
| 13278 |
yydebug = 1; |
| 13279 |
#endif |
| 13280 |
p->tsiz = MRB_PARSER_TOKBUF_SIZE; |
| 13281 |
p->tokbuf = p->buf; |
| 13282 |
|
| 13283 |
p->lex_strterm = NULL; |
| 13284 |
|
| 13285 |
p->current_filename_index = -1; |
| 13286 |
p->filename_table = NULL; |
| 13287 |
p->filename_table_length = 0; |
| 13288 |
|
| 13289 |
return p; |
| 13290 |
} |
| 13291 |
|
| 13292 |
MRB_API void |
| 13293 |
mrb_parser_free(parser_state *p) { |
| 13294 |
if (p->tokbuf != p->buf) { |
| 13295 |
mrb_free(p->mrb, p->tokbuf); |
| 13296 |
} |
| 13297 |
mrb_pool_close(p->pool); |
| 13298 |
} |
| 13299 |
|
| 13300 |
MRB_API mrbc_context* |
| 13301 |
mrbc_context_new(mrb_state *mrb) |
| 13302 |
{ |
| 13303 |
return (mrbc_context*)mrb_calloc(mrb, 1, sizeof(mrbc_context)); |
| 13304 |
} |
| 13305 |
|
| 13306 |
MRB_API void |
| 13307 |
mrbc_context_free(mrb_state *mrb, mrbc_context *cxt) |
| 13308 |
{ |
| 13309 |
mrb_free(mrb, cxt->filename); |
| 13310 |
mrb_free(mrb, cxt->syms); |
| 13311 |
mrb_free(mrb, cxt); |
| 13312 |
} |
| 13313 |
|
| 13314 |
MRB_API const char* |
| 13315 |
mrbc_filename(mrb_state *mrb, mrbc_context *c, const char *s) |
| 13316 |
{ |
| 13317 |
if (s) { |
| 13318 |
size_t len = strlen(s); |
| 13319 |
char *p = (char*)mrb_malloc_simple(mrb, len + 1); |
| 13320 |
|
| 13321 |
if (p == NULL) return NULL; |
| 13322 |
memcpy(p, s, len + 1); |
| 13323 |
if (c->filename) { |
| 13324 |
mrb_free(mrb, c->filename); |
| 13325 |
} |
| 13326 |
c->filename = p; |
| 13327 |
} |
| 13328 |
return c->filename; |
| 13329 |
} |
| 13330 |
|
| 13331 |
MRB_API void |
| 13332 |
mrbc_partial_hook(mrb_state *mrb, mrbc_context *c, int (*func)(struct mrb_parser_state*), void *data) |
| 13333 |
{ |
| 13334 |
c->partial_hook = func; |
| 13335 |
c->partial_data = data; |
| 13336 |
} |
| 13337 |
|
| 13338 |
MRB_API void |
| 13339 |
mrbc_cleanup_local_variables(mrb_state *mrb, mrbc_context *c) |
| 13340 |
{ |
| 13341 |
if (c->syms) { |
| 13342 |
mrb_free(mrb, c->syms); |
| 13343 |
c->syms = NULL; |
| 13344 |
c->slen = 0; |
| 13345 |
} |
| 13346 |
c->keep_lv = FALSE; |
| 13347 |
} |
| 13348 |
|
| 13349 |
MRB_API void |
| 13350 |
mrb_parser_set_filename(struct mrb_parser_state *p, const char *f) |
| 13351 |
{ |
| 13352 |
mrb_sym sym; |
| 13353 |
uint16_t i; |
| 13354 |
mrb_sym* new_table; |
| 13355 |
|
| 13356 |
sym = mrb_intern_cstr(p->mrb, f); |
| 13357 |
p->filename_sym = sym; |
| 13358 |
p->lineno = (p->filename_table_length > 0)? 0 : 1; |
| 13359 |
|
| 13360 |
for (i = 0; i < p->filename_table_length; i++) { |
| 13361 |
if (p->filename_table[i] == sym) { |
| 13362 |
p->current_filename_index = i; |
| 13363 |
return; |
| 13364 |
} |
| 13365 |
} |
| 13366 |
|
| 13367 |
if (p->filename_table_length == UINT16_MAX) { |
| 13368 |
yyerror(p, "too many files to compile"); |
| 13369 |
return; |
| 13370 |
} |
| 13371 |
p->current_filename_index = p->filename_table_length++; |
| 13372 |
|
| 13373 |
new_table = (mrb_sym*)parser_palloc(p, sizeof(mrb_sym) * p->filename_table_length); |
| 13374 |
if (p->filename_table) { |
| 13375 |
memmove(new_table, p->filename_table, sizeof(mrb_sym) * p->current_filename_index); |
| 13376 |
} |
| 13377 |
p->filename_table = new_table; |
| 13378 |
p->filename_table[p->filename_table_length - 1] = sym; |
| 13379 |
} |
| 13380 |
|
| 13381 |
MRB_API mrb_sym |
| 13382 |
mrb_parser_get_filename(struct mrb_parser_state* p, uint16_t idx) { |
| 13383 |
if (idx >= p->filename_table_length) return 0; |
| 13384 |
else { |
| 13385 |
return p->filename_table[idx]; |
| 13386 |
} |
| 13387 |
} |
| 13388 |
|
| 13389 |
#ifndef MRB_NO_STDIO |
| 13390 |
static struct mrb_parser_state * |
| 13391 |
mrb_parse_file_continue(mrb_state *mrb, FILE *f, const void *prebuf, size_t prebufsize, mrbc_context *c) |
| 13392 |
{ |
| 13393 |
parser_state *p; |
| 13394 |
|
| 13395 |
p = mrb_parser_new(mrb); |
| 13396 |
if (!p) return NULL; |
| 13397 |
if (prebuf) { |
| 13398 |
p->s = (const char*)prebuf; |
| 13399 |
p->send = (const char*)prebuf + prebufsize; |
| 13400 |
} |
| 13401 |
else { |
| 13402 |
p->s = p->send = NULL; |
| 13403 |
} |
| 13404 |
p->f = f; |
| 13405 |
|
| 13406 |
mrb_parser_parse(p, c); |
| 13407 |
return p; |
| 13408 |
} |
| 13409 |
|
| 13410 |
MRB_API parser_state* |
| 13411 |
mrb_parse_file(mrb_state *mrb, FILE *f, mrbc_context *c) |
| 13412 |
{ |
| 13413 |
return mrb_parse_file_continue(mrb, f, NULL, 0, c); |
| 13414 |
} |
| 13415 |
#endif |
| 13416 |
|
| 13417 |
MRB_API parser_state* |
| 13418 |
mrb_parse_nstring(mrb_state *mrb, const char *s, size_t len, mrbc_context *c) |
| 13419 |
{ |
| 13420 |
parser_state *p; |
| 13421 |
|
| 13422 |
p = mrb_parser_new(mrb); |
| 13423 |
if (!p) return NULL; |
| 13424 |
p->s = s; |
| 13425 |
p->send = s + len; |
| 13426 |
|
| 13427 |
mrb_parser_parse(p, c); |
| 13428 |
return p; |
| 13429 |
} |
| 13430 |
|
| 13431 |
MRB_API parser_state* |
| 13432 |
mrb_parse_string(mrb_state *mrb, const char *s, mrbc_context *c) |
| 13433 |
{ |
| 13434 |
return mrb_parse_nstring(mrb, s, strlen(s), c); |
| 13435 |
} |
| 13436 |
|
| 13437 |
MRB_API mrb_value |
| 13438 |
mrb_load_exec(mrb_state *mrb, struct mrb_parser_state *p, mrbc_context *c) |
| 13439 |
{ |
| 13440 |
struct RClass *target = mrb->object_class; |
| 13441 |
struct RProc *proc; |
| 13442 |
mrb_value v; |
| 13443 |
mrb_int keep = 0; |
| 13444 |
|
| 13445 |
if (!p) { |
| 13446 |
return mrb_undef_value(); |
| 13447 |
} |
| 13448 |
if (!p->tree || p->nerr) { |
| 13449 |
if (c) c->parser_nerr = p->nerr; |
| 13450 |
if (p->capture_errors) { |
| 13451 |
char buf[256]; |
| 13452 |
|
| 13453 |
strcpy(buf, "line "); |
| 13454 |
dump_int(p->error_buffer[0].lineno, buf+5); |
| 13455 |
strcat(buf, ": "); |
| 13456 |
strncat(buf, p->error_buffer[0].message, sizeof(buf) - strlen(buf) - 1); |
| 13457 |
mrb->exc = mrb_obj_ptr(mrb_exc_new(mrb, E_SYNTAX_ERROR, buf, strlen(buf))); |
| 13458 |
mrb_parser_free(p); |
| 13459 |
return mrb_undef_value(); |
| 13460 |
} |
| 13461 |
else { |
| 13462 |
if (mrb->exc == NULL) { |
| 13463 |
mrb->exc = mrb_obj_ptr(mrb_exc_new_lit(mrb, E_SYNTAX_ERROR, "syntax error")); |
| 13464 |
} |
| 13465 |
mrb_parser_free(p); |
| 13466 |
return mrb_undef_value(); |
| 13467 |
} |
| 13468 |
} |
| 13469 |
proc = mrb_generate_code(mrb, p); |
| 13470 |
mrb_parser_free(p); |
| 13471 |
if (proc == NULL) { |
| 13472 |
if (mrb->exc == NULL) { |
| 13473 |
mrb->exc = mrb_obj_ptr(mrb_exc_new_lit(mrb, E_SCRIPT_ERROR, "codegen error")); |
| 13474 |
} |
| 13475 |
return mrb_undef_value(); |
| 13476 |
} |
| 13477 |
if (c) { |
| 13478 |
if (c->dump_result) mrb_codedump_all(mrb, proc); |
| 13479 |
if (c->no_exec) return mrb_obj_value(proc); |
| 13480 |
if (c->target_class) { |
| 13481 |
target = c->target_class; |
| 13482 |
} |
| 13483 |
if (c->keep_lv) { |
| 13484 |
keep = c->slen + 1; |
| 13485 |
} |
| 13486 |
else { |
| 13487 |
c->keep_lv = TRUE; |
| 13488 |
} |
| 13489 |
} |
| 13490 |
MRB_PROC_SET_TARGET_CLASS(proc, target); |
| 13491 |
if (mrb->c->ci) { |
| 13492 |
mrb_vm_ci_target_class_set(mrb->c->ci, target); |
| 13493 |
} |
| 13494 |
v = mrb_top_run(mrb, proc, mrb_top_self(mrb), keep); |
| 13495 |
if (mrb->exc) return mrb_nil_value(); |
| 13496 |
return v; |
| 13497 |
} |
| 13498 |
|
| 13499 |
#ifndef MRB_NO_STDIO |
| 13500 |
MRB_API mrb_value |
| 13501 |
mrb_load_file_cxt(mrb_state *mrb, FILE *f, mrbc_context *c) |
| 13502 |
{ |
| 13503 |
return mrb_load_exec(mrb, mrb_parse_file(mrb, f, c), c); |
| 13504 |
} |
| 13505 |
|
| 13506 |
MRB_API mrb_value |
| 13507 |
mrb_load_file(mrb_state *mrb, FILE *f) |
| 13508 |
{ |
| 13509 |
return mrb_load_file_cxt(mrb, f, NULL); |
| 13510 |
} |
| 13511 |
|
| 13512 |
#define DETECT_SIZE 64 |
| 13513 |
|
| 13514 |
/* |
| 13515 |
* In order to be recognized as a `.mrb` file, the following three points must be satisfied: |
| 13516 |
* - File starts with "RITE" |
| 13517 |
* - At least `sizeof(struct rite_binary_header)` bytes can be read |
| 13518 |
* - `NUL` is included in the first 64 bytes of the file |
| 13519 |
*/ |
| 13520 |
MRB_API mrb_value |
| 13521 |
mrb_load_detect_file_cxt(mrb_state *mrb, FILE *fp, mrbc_context *c) |
| 13522 |
{ |
| 13523 |
union { |
| 13524 |
char b[DETECT_SIZE]; |
| 13525 |
struct rite_binary_header h; |
| 13526 |
} leading; |
| 13527 |
size_t bufsize; |
| 13528 |
|
| 13529 |
if (mrb == NULL || fp == NULL) { |
| 13530 |
return mrb_nil_value(); |
| 13531 |
} |
| 13532 |
|
| 13533 |
bufsize = fread(leading.b, sizeof(char), sizeof(leading), fp); |
| 13534 |
if (bufsize < sizeof(leading.h) || |
| 13535 |
memcmp(leading.h.binary_ident, RITE_BINARY_IDENT, sizeof(leading.h.binary_ident)) != 0 || |
| 13536 |
memchr(leading.b, '\0', bufsize) == NULL) { |
| 13537 |
return mrb_load_exec(mrb, mrb_parse_file_continue(mrb, fp, leading.b, bufsize, c), c); |
| 13538 |
} |
| 13539 |
else { |
| 13540 |
mrb_int binsize; |
| 13541 |
uint8_t *bin; |
| 13542 |
mrb_value bin_obj = mrb_nil_value(); /* temporary string object */ |
| 13543 |
mrb_value result; |
| 13544 |
|
| 13545 |
binsize = bin_to_uint32(leading.h.binary_size); |
| 13546 |
bin_obj = mrb_str_new(mrb, NULL, binsize); |
| 13547 |
bin = (uint8_t*)RSTRING_PTR(bin_obj); |
| 13548 |
if ((size_t)binsize > bufsize) { |
| 13549 |
memcpy(bin, leading.b, bufsize); |
| 13550 |
if (fread(bin + bufsize, binsize - bufsize, 1, fp) == 0) { |
| 13551 |
binsize = bufsize; |
| 13552 |
/* The error is reported by mrb_load_irep_buf_cxt() */ |
| 13553 |
} |
| 13554 |
} |
| 13555 |
|
| 13556 |
result = mrb_load_irep_buf_cxt(mrb, bin, binsize, c); |
| 13557 |
if (mrb_string_p(bin_obj)) mrb_str_resize(mrb, bin_obj, 0); |
| 13558 |
return result; |
| 13559 |
} |
| 13560 |
} |
| 13561 |
#endif |
| 13562 |
|
| 13563 |
MRB_API mrb_value |
| 13564 |
mrb_load_nstring_cxt(mrb_state *mrb, const char *s, size_t len, mrbc_context *c) |
| 13565 |
{ |
| 13566 |
return mrb_load_exec(mrb, mrb_parse_nstring(mrb, s, len, c), c); |
| 13567 |
} |
| 13568 |
|
| 13569 |
MRB_API mrb_value |
| 13570 |
mrb_load_nstring(mrb_state *mrb, const char *s, size_t len) |
| 13571 |
{ |
| 13572 |
return mrb_load_nstring_cxt(mrb, s, len, NULL); |
| 13573 |
} |
| 13574 |
|
| 13575 |
MRB_API mrb_value |
| 13576 |
mrb_load_string_cxt(mrb_state *mrb, const char *s, mrbc_context *c) |
| 13577 |
{ |
| 13578 |
return mrb_load_nstring_cxt(mrb, s, strlen(s), c); |
| 13579 |
} |
| 13580 |
|
| 13581 |
MRB_API mrb_value |
| 13582 |
mrb_load_string(mrb_state *mrb, const char *s) |
| 13583 |
{ |
| 13584 |
return mrb_load_string_cxt(mrb, s, NULL); |
| 13585 |
} |
| 13586 |
|
| 13587 |
#ifndef MRB_NO_STDIO |
| 13588 |
|
| 13589 |
static void |
| 13590 |
dump_prefix(node *tree, int offset) |
| 13591 |
{ |
| 13592 |
printf("%05d ", tree->lineno); |
| 13593 |
while (offset--) { |
| 13594 |
putc(' ', stdout); |
| 13595 |
putc(' ', stdout); |
| 13596 |
} |
| 13597 |
} |
| 13598 |
|
| 13599 |
static void |
| 13600 |
dump_recur(mrb_state *mrb, node *tree, int offset) |
| 13601 |
{ |
| 13602 |
while (tree) { |
| 13603 |
mrb_parser_dump(mrb, tree->car, offset); |
| 13604 |
tree = tree->cdr; |
| 13605 |
} |
| 13606 |
} |
| 13607 |
|
| 13608 |
static void |
| 13609 |
dump_args(mrb_state *mrb, node *n, int offset) |
| 13610 |
{ |
| 13611 |
if (n->car) { |
| 13612 |
dump_prefix(n, offset+1); |
| 13613 |
printf("mandatory args:\n"); |
| 13614 |
dump_recur(mrb, n->car, offset+2); |
| 13615 |
} |
| 13616 |
n = n->cdr; |
| 13617 |
if (n->car) { |
| 13618 |
dump_prefix(n, offset+1); |
| 13619 |
printf("optional args:\n"); |
| 13620 |
{ |
| 13621 |
node *n2 = n->car; |
| 13622 |
|
| 13623 |
while (n2) { |
| 13624 |
dump_prefix(n2, offset+2); |
| 13625 |
printf("%s=\n", mrb_sym_name(mrb, sym(n2->car->car))); |
| 13626 |
mrb_parser_dump(mrb, n2->car->cdr, offset+3); |
| 13627 |
n2 = n2->cdr; |
| 13628 |
} |
| 13629 |
} |
| 13630 |
} |
| 13631 |
n = n->cdr; |
| 13632 |
if (n->car) { |
| 13633 |
mrb_sym rest = sym(n->car); |
| 13634 |
|
| 13635 |
dump_prefix(n, offset+1); |
| 13636 |
if (rest == MRB_OPSYM(mul)) |
| 13637 |
printf("rest=*\n"); |
| 13638 |
else |
| 13639 |
printf("rest=*%s\n", mrb_sym_name(mrb, rest)); |
| 13640 |
} |
| 13641 |
n = n->cdr; |
| 13642 |
if (n->car) { |
| 13643 |
dump_prefix(n, offset+1); |
| 13644 |
printf("post mandatory args:\n"); |
| 13645 |
dump_recur(mrb, n->car, offset+2); |
| 13646 |
} |
| 13647 |
|
| 13648 |
n = n->cdr; |
| 13649 |
if (n) { |
| 13650 |
mrb_assert(intn(n->car) == NODE_ARGS_TAIL); |
| 13651 |
mrb_parser_dump(mrb, n, offset); |
| 13652 |
} |
| 13653 |
} |
| 13654 |
|
| 13655 |
/* |
| 13656 |
* This function restores the GC arena on return. |
| 13657 |
* For this reason, if a process that further generates an object is |
| 13658 |
* performed at the caller, the string pointer returned as the return |
| 13659 |
* value may become invalid. |
| 13660 |
*/ |
| 13661 |
static const char* |
| 13662 |
str_dump(mrb_state *mrb, const char *str, int len) |
| 13663 |
{ |
| 13664 |
int ai = mrb_gc_arena_save(mrb); |
| 13665 |
mrb_value s; |
| 13666 |
# if INT_MAX > MRB_INT_MAX / 4 |
| 13667 |
/* check maximum length with "\xNN" character */ |
| 13668 |
if (len > MRB_INT_MAX / 4) { |
| 13669 |
len = MRB_INT_MAX / 4; |
| 13670 |
} |
| 13671 |
# endif |
| 13672 |
s = mrb_str_new(mrb, str, (mrb_int)len); |
| 13673 |
s = mrb_str_dump(mrb, s); |
| 13674 |
mrb_gc_arena_restore(mrb, ai); |
| 13675 |
return RSTRING_PTR(s); |
| 13676 |
} |
| 13677 |
#endif |
| 13678 |
|
| 13679 |
void |
| 13680 |
mrb_parser_dump(mrb_state *mrb, node *tree, int offset) |
| 13681 |
{ |
| 13682 |
#ifndef MRB_NO_STDIO |
| 13683 |
int nodetype; |
| 13684 |
|
| 13685 |
if (!tree) return; |
| 13686 |
again: |
| 13687 |
dump_prefix(tree, offset); |
| 13688 |
nodetype = intn(tree->car); |
| 13689 |
tree = tree->cdr; |
| 13690 |
switch (nodetype) { |
| 13691 |
case NODE_BEGIN: |
| 13692 |
printf("NODE_BEGIN:\n"); |
| 13693 |
dump_recur(mrb, tree, offset+1); |
| 13694 |
break; |
| 13695 |
|
| 13696 |
case NODE_RESCUE: |
| 13697 |
printf("NODE_RESCUE:\n"); |
| 13698 |
if (tree->car) { |
| 13699 |
dump_prefix(tree, offset+1); |
| 13700 |
printf("body:\n"); |
| 13701 |
mrb_parser_dump(mrb, tree->car, offset+2); |
| 13702 |
} |
| 13703 |
tree = tree->cdr; |
| 13704 |
if (tree->car) { |
| 13705 |
node *n2 = tree->car; |
| 13706 |
|
| 13707 |
dump_prefix(n2, offset+1); |
| 13708 |
printf("rescue:\n"); |
| 13709 |
while (n2) { |
| 13710 |
node *n3 = n2->car; |
| 13711 |
if (n3->car) { |
| 13712 |
dump_prefix(n2, offset+2); |
| 13713 |
printf("handle classes:\n"); |
| 13714 |
dump_recur(mrb, n3->car, offset+3); |
| 13715 |
} |
| 13716 |
if (n3->cdr->car) { |
| 13717 |
dump_prefix(n3, offset+2); |
| 13718 |
printf("exc_var:\n"); |
| 13719 |
mrb_parser_dump(mrb, n3->cdr->car, offset+3); |
| 13720 |
} |
| 13721 |
if (n3->cdr->cdr->car) { |
| 13722 |
dump_prefix(n3, offset+2); |
| 13723 |
printf("rescue body:\n"); |
| 13724 |
mrb_parser_dump(mrb, n3->cdr->cdr->car, offset+3); |
| 13725 |
} |
| 13726 |
n2 = n2->cdr; |
| 13727 |
} |
| 13728 |
} |
| 13729 |
tree = tree->cdr; |
| 13730 |
if (tree->car) { |
| 13731 |
dump_prefix(tree, offset+1); |
| 13732 |
printf("else:\n"); |
| 13733 |
mrb_parser_dump(mrb, tree->car, offset+2); |
| 13734 |
} |
| 13735 |
break; |
| 13736 |
|
| 13737 |
case NODE_ENSURE: |
| 13738 |
printf("NODE_ENSURE:\n"); |
| 13739 |
dump_prefix(tree, offset+1); |
| 13740 |
printf("body:\n"); |
| 13741 |
mrb_parser_dump(mrb, tree->car, offset+2); |
| 13742 |
dump_prefix(tree, offset+1); |
| 13743 |
printf("ensure:\n"); |
| 13744 |
mrb_parser_dump(mrb, tree->cdr->cdr, offset+2); |
| 13745 |
break; |
| 13746 |
|
| 13747 |
case NODE_LAMBDA: |
| 13748 |
printf("NODE_LAMBDA:\n"); |
| 13749 |
dump_prefix(tree, offset); |
| 13750 |
goto block; |
| 13751 |
|
| 13752 |
case NODE_BLOCK: |
| 13753 |
block: |
| 13754 |
printf("NODE_BLOCK:\n"); |
| 13755 |
tree = tree->cdr; |
| 13756 |
if (tree->car) { |
| 13757 |
dump_args(mrb, tree->car, offset+1); |
| 13758 |
} |
| 13759 |
dump_prefix(tree, offset+1); |
| 13760 |
printf("body:\n"); |
| 13761 |
mrb_parser_dump(mrb, tree->cdr->car, offset+2); |
| 13762 |
break; |
| 13763 |
|
| 13764 |
case NODE_IF: |
| 13765 |
printf("NODE_IF:\n"); |
| 13766 |
dump_prefix(tree, offset+1); |
| 13767 |
printf("cond:\n"); |
| 13768 |
mrb_parser_dump(mrb, tree->car, offset+2); |
| 13769 |
dump_prefix(tree, offset+1); |
| 13770 |
printf("then:\n"); |
| 13771 |
mrb_parser_dump(mrb, tree->cdr->car, offset+2); |
| 13772 |
if (tree->cdr->cdr->car) { |
| 13773 |
dump_prefix(tree, offset+1); |
| 13774 |
printf("else:\n"); |
| 13775 |
mrb_parser_dump(mrb, tree->cdr->cdr->car, offset+2); |
| 13776 |
} |
| 13777 |
break; |
| 13778 |
|
| 13779 |
case NODE_AND: |
| 13780 |
printf("NODE_AND:\n"); |
| 13781 |
mrb_parser_dump(mrb, tree->car, offset+1); |
| 13782 |
mrb_parser_dump(mrb, tree->cdr, offset+1); |
| 13783 |
break; |
| 13784 |
|
| 13785 |
case NODE_OR: |
| 13786 |
printf("NODE_OR:\n"); |
| 13787 |
mrb_parser_dump(mrb, tree->car, offset+1); |
| 13788 |
mrb_parser_dump(mrb, tree->cdr, offset+1); |
| 13789 |
break; |
| 13790 |
|
| 13791 |
case NODE_CASE: |
| 13792 |
printf("NODE_CASE:\n"); |
| 13793 |
if (tree->car) { |
| 13794 |
mrb_parser_dump(mrb, tree->car, offset+1); |
| 13795 |
} |
| 13796 |
tree = tree->cdr; |
| 13797 |
while (tree) { |
| 13798 |
dump_prefix(tree, offset+1); |
| 13799 |
printf("case:\n"); |
| 13800 |
dump_recur(mrb, tree->car->car, offset+2); |
| 13801 |
dump_prefix(tree, offset+1); |
| 13802 |
printf("body:\n"); |
| 13803 |
mrb_parser_dump(mrb, tree->car->cdr, offset+2); |
| 13804 |
tree = tree->cdr; |
| 13805 |
} |
| 13806 |
break; |
| 13807 |
|
| 13808 |
case NODE_WHILE: |
| 13809 |
printf("NODE_WHILE:\n"); |
| 13810 |
dump_prefix(tree, offset+1); |
| 13811 |
printf("cond:\n"); |
| 13812 |
mrb_parser_dump(mrb, tree->car, offset+2); |
| 13813 |
dump_prefix(tree, offset+1); |
| 13814 |
printf("body:\n"); |
| 13815 |
mrb_parser_dump(mrb, tree->cdr, offset+2); |
| 13816 |
break; |
| 13817 |
|
| 13818 |
case NODE_UNTIL: |
| 13819 |
printf("NODE_UNTIL:\n"); |
| 13820 |
dump_prefix(tree, offset+1); |
| 13821 |
printf("cond:\n"); |
| 13822 |
mrb_parser_dump(mrb, tree->car, offset+2); |
| 13823 |
dump_prefix(tree, offset+1); |
| 13824 |
printf("body:\n"); |
| 13825 |
mrb_parser_dump(mrb, tree->cdr, offset+2); |
| 13826 |
break; |
| 13827 |
|
| 13828 |
case NODE_FOR: |
| 13829 |
printf("NODE_FOR:\n"); |
| 13830 |
dump_prefix(tree, offset+1); |
| 13831 |
printf("var:\n"); |
| 13832 |
{ |
| 13833 |
node *n2 = tree->car; |
| 13834 |
|
| 13835 |
if (n2->car) { |
| 13836 |
dump_prefix(n2, offset+2); |
| 13837 |
printf("pre:\n"); |
| 13838 |
dump_recur(mrb, n2->car, offset+3); |
| 13839 |
} |
| 13840 |
n2 = n2->cdr; |
| 13841 |
if (n2) { |
| 13842 |
if (n2->car) { |
| 13843 |
dump_prefix(n2, offset+2); |
| 13844 |
printf("rest:\n"); |
| 13845 |
mrb_parser_dump(mrb, n2->car, offset+3); |
| 13846 |
} |
| 13847 |
n2 = n2->cdr; |
| 13848 |
if (n2) { |
| 13849 |
if (n2->car) { |
| 13850 |
dump_prefix(n2, offset+2); |
| 13851 |
printf("post:\n"); |
| 13852 |
dump_recur(mrb, n2->car, offset+3); |
| 13853 |
} |
| 13854 |
} |
| 13855 |
} |
| 13856 |
} |
| 13857 |
tree = tree->cdr; |
| 13858 |
dump_prefix(tree, offset+1); |
| 13859 |
printf("in:\n"); |
| 13860 |
mrb_parser_dump(mrb, tree->car, offset+2); |
| 13861 |
tree = tree->cdr; |
| 13862 |
dump_prefix(tree, offset+1); |
| 13863 |
printf("do:\n"); |
| 13864 |
mrb_parser_dump(mrb, tree->car, offset+2); |
| 13865 |
break; |
| 13866 |
|
| 13867 |
case NODE_SCOPE: |
| 13868 |
printf("NODE_SCOPE:\n"); |
| 13869 |
{ |
| 13870 |
node *n2 = tree->car; |
| 13871 |
mrb_bool first_lval = TRUE; |
| 13872 |
|
| 13873 |
if (n2 && (n2->car || n2->cdr)) { |
| 13874 |
dump_prefix(n2, offset+1); |
| 13875 |
printf("local variables:\n"); |
| 13876 |
dump_prefix(n2, offset+2); |
| 13877 |
while (n2) { |
| 13878 |
if (n2->car) { |
| 13879 |
if (!first_lval) printf(", "); |
| 13880 |
printf("%s", mrb_sym_name(mrb, sym(n2->car))); |
| 13881 |
first_lval = FALSE; |
| 13882 |
} |
| 13883 |
n2 = n2->cdr; |
| 13884 |
} |
| 13885 |
printf("\n"); |
| 13886 |
} |
| 13887 |
} |
| 13888 |
tree = tree->cdr; |
| 13889 |
offset++; |
| 13890 |
goto again; |
| 13891 |
|
| 13892 |
case NODE_FCALL: |
| 13893 |
case NODE_CALL: |
| 13894 |
case NODE_SCALL: |
| 13895 |
switch (nodetype) { |
| 13896 |
case NODE_FCALL: |
| 13897 |
printf("NODE_FCALL:\n"); break; |
| 13898 |
case NODE_CALL: |
| 13899 |
printf("NODE_CALL(.):\n"); break; |
| 13900 |
case NODE_SCALL: |
| 13901 |
printf("NODE_SCALL(&.):\n"); break; |
| 13902 |
default: |
| 13903 |
break; |
| 13904 |
} |
| 13905 |
mrb_parser_dump(mrb, tree->car, offset+1); |
| 13906 |
dump_prefix(tree, offset+1); |
| 13907 |
printf("method='%s' (%d)\n", |
| 13908 |
mrb_sym_dump(mrb, sym(tree->cdr->car)), |
| 13909 |
intn(tree->cdr->car)); |
| 13910 |
tree = tree->cdr->cdr->car; |
| 13911 |
if (tree) { |
| 13912 |
dump_prefix(tree, offset+1); |
| 13913 |
printf("args:\n"); |
| 13914 |
dump_recur(mrb, tree->car, offset+2); |
| 13915 |
if (tree->cdr) { |
| 13916 |
if (tree->cdr->car) { |
| 13917 |
dump_prefix(tree, offset+1); |
| 13918 |
printf("kwargs:\n"); |
| 13919 |
mrb_parser_dump(mrb, tree->cdr->car, offset+2); |
| 13920 |
} |
| 13921 |
if (tree->cdr->cdr) { |
| 13922 |
dump_prefix(tree, offset+1); |
| 13923 |
printf("block:\n"); |
| 13924 |
mrb_parser_dump(mrb, tree->cdr->cdr, offset+2); |
| 13925 |
} |
| 13926 |
} |
| 13927 |
} |
| 13928 |
break; |
| 13929 |
|
| 13930 |
case NODE_DOT2: |
| 13931 |
printf("NODE_DOT2:\n"); |
| 13932 |
mrb_parser_dump(mrb, tree->car, offset+1); |
| 13933 |
mrb_parser_dump(mrb, tree->cdr, offset+1); |
| 13934 |
break; |
| 13935 |
|
| 13936 |
case NODE_DOT3: |
| 13937 |
printf("NODE_DOT3:\n"); |
| 13938 |
mrb_parser_dump(mrb, tree->car, offset+1); |
| 13939 |
mrb_parser_dump(mrb, tree->cdr, offset+1); |
| 13940 |
break; |
| 13941 |
|
| 13942 |
case NODE_COLON2: |
| 13943 |
printf("NODE_COLON2:\n"); |
| 13944 |
mrb_parser_dump(mrb, tree->car, offset+1); |
| 13945 |
dump_prefix(tree, offset+1); |
| 13946 |
printf("::%s\n", mrb_sym_name(mrb, sym(tree->cdr))); |
| 13947 |
break; |
| 13948 |
|
| 13949 |
case NODE_COLON3: |
| 13950 |
printf("NODE_COLON3: ::%s\n", mrb_sym_name(mrb, sym(tree))); |
| 13951 |
break; |
| 13952 |
|
| 13953 |
case NODE_ARRAY: |
| 13954 |
printf("NODE_ARRAY:\n"); |
| 13955 |
dump_recur(mrb, tree, offset+1); |
| 13956 |
break; |
| 13957 |
|
| 13958 |
case NODE_HASH: |
| 13959 |
printf("NODE_HASH:\n"); |
| 13960 |
while (tree) { |
| 13961 |
dump_prefix(tree, offset+1); |
| 13962 |
printf("key:\n"); |
| 13963 |
mrb_parser_dump(mrb, tree->car->car, offset+2); |
| 13964 |
dump_prefix(tree, offset+1); |
| 13965 |
printf("value:\n"); |
| 13966 |
mrb_parser_dump(mrb, tree->car->cdr, offset+2); |
| 13967 |
tree = tree->cdr; |
| 13968 |
} |
| 13969 |
break; |
| 13970 |
|
| 13971 |
case NODE_KW_HASH: |
| 13972 |
printf("NODE_KW_HASH:\n"); |
| 13973 |
while (tree) { |
| 13974 |
dump_prefix(tree, offset+1); |
| 13975 |
printf("key:\n"); |
| 13976 |
mrb_parser_dump(mrb, tree->car->car, offset+2); |
| 13977 |
dump_prefix(tree, offset+1); |
| 13978 |
printf("value:\n"); |
| 13979 |
mrb_parser_dump(mrb, tree->car->cdr, offset+2); |
| 13980 |
tree = tree->cdr; |
| 13981 |
} |
| 13982 |
break; |
| 13983 |
|
| 13984 |
case NODE_SPLAT: |
| 13985 |
printf("NODE_SPLAT:\n"); |
| 13986 |
mrb_parser_dump(mrb, tree, offset+1); |
| 13987 |
break; |
| 13988 |
|
| 13989 |
case NODE_ASGN: |
| 13990 |
printf("NODE_ASGN:\n"); |
| 13991 |
dump_prefix(tree, offset+1); |
| 13992 |
printf("lhs:\n"); |
| 13993 |
mrb_parser_dump(mrb, tree->car, offset+2); |
| 13994 |
dump_prefix(tree, offset+1); |
| 13995 |
printf("rhs:\n"); |
| 13996 |
mrb_parser_dump(mrb, tree->cdr, offset+2); |
| 13997 |
break; |
| 13998 |
|
| 13999 |
case NODE_MASGN: |
| 14000 |
printf("NODE_MASGN:\n"); |
| 14001 |
dump_prefix(tree, offset+1); |
| 14002 |
printf("mlhs:\n"); |
| 14003 |
{ |
| 14004 |
node *n2 = tree->car; |
| 14005 |
|
| 14006 |
if (n2->car) { |
| 14007 |
dump_prefix(tree, offset+2); |
| 14008 |
printf("pre:\n"); |
| 14009 |
dump_recur(mrb, n2->car, offset+3); |
| 14010 |
} |
| 14011 |
n2 = n2->cdr; |
| 14012 |
if (n2) { |
| 14013 |
if (n2->car) { |
| 14014 |
dump_prefix(n2, offset+2); |
| 14015 |
printf("rest:\n"); |
| 14016 |
if (n2->car == nint(-1)) { |
| 14017 |
dump_prefix(n2, offset+2); |
| 14018 |
printf("(empty)\n"); |
| 14019 |
} |
| 14020 |
else { |
| 14021 |
mrb_parser_dump(mrb, n2->car, offset+3); |
| 14022 |
} |
| 14023 |
} |
| 14024 |
n2 = n2->cdr; |
| 14025 |
if (n2 && n2->car) { |
| 14026 |
dump_prefix(n2, offset+2); |
| 14027 |
printf("post:\n"); |
| 14028 |
dump_recur(mrb, n2->car, offset+3); |
| 14029 |
} |
| 14030 |
} |
| 14031 |
} |
| 14032 |
dump_prefix(tree, offset+1); |
| 14033 |
printf("rhs:\n"); |
| 14034 |
mrb_parser_dump(mrb, tree->cdr, offset+2); |
| 14035 |
break; |
| 14036 |
|
| 14037 |
case NODE_OP_ASGN: |
| 14038 |
printf("NODE_OP_ASGN:\n"); |
| 14039 |
dump_prefix(tree, offset+1); |
| 14040 |
printf("lhs:\n"); |
| 14041 |
mrb_parser_dump(mrb, tree->car, offset+2); |
| 14042 |
tree = tree->cdr; |
| 14043 |
dump_prefix(tree, offset+1); |
| 14044 |
printf("op='%s' (%d)\n", mrb_sym_name(mrb, sym(tree->car)), intn(tree->car)); |
| 14045 |
tree = tree->cdr; |
| 14046 |
mrb_parser_dump(mrb, tree->car, offset+1); |
| 14047 |
break; |
| 14048 |
|
| 14049 |
case NODE_SUPER: |
| 14050 |
printf("NODE_SUPER:\n"); |
| 14051 |
if (tree) { |
| 14052 |
dump_prefix(tree, offset+1); |
| 14053 |
printf("args:\n"); |
| 14054 |
dump_recur(mrb, tree->car, offset+2); |
| 14055 |
if (tree->cdr) { |
| 14056 |
dump_prefix(tree, offset+1); |
| 14057 |
printf("block:\n"); |
| 14058 |
mrb_parser_dump(mrb, tree->cdr, offset+2); |
| 14059 |
} |
| 14060 |
} |
| 14061 |
break; |
| 14062 |
|
| 14063 |
case NODE_ZSUPER: |
| 14064 |
printf("NODE_ZSUPER:\n"); |
| 14065 |
if (tree) { |
| 14066 |
dump_prefix(tree, offset+1); |
| 14067 |
printf("args:\n"); |
| 14068 |
dump_recur(mrb, tree->car, offset+2); |
| 14069 |
if (tree->cdr) { |
| 14070 |
dump_prefix(tree, offset+1); |
| 14071 |
printf("block:\n"); |
| 14072 |
mrb_parser_dump(mrb, tree->cdr, offset+2); |
| 14073 |
} |
| 14074 |
} |
| 14075 |
break; |
| 14076 |
|
| 14077 |
case NODE_RETURN: |
| 14078 |
printf("NODE_RETURN:\n"); |
| 14079 |
mrb_parser_dump(mrb, tree, offset+1); |
| 14080 |
break; |
| 14081 |
|
| 14082 |
case NODE_YIELD: |
| 14083 |
printf("NODE_YIELD:\n"); |
| 14084 |
dump_recur(mrb, tree, offset+1); |
| 14085 |
break; |
| 14086 |
|
| 14087 |
case NODE_BREAK: |
| 14088 |
printf("NODE_BREAK:\n"); |
| 14089 |
mrb_parser_dump(mrb, tree, offset+1); |
| 14090 |
break; |
| 14091 |
|
| 14092 |
case NODE_NEXT: |
| 14093 |
printf("NODE_NEXT:\n"); |
| 14094 |
mrb_parser_dump(mrb, tree, offset+1); |
| 14095 |
break; |
| 14096 |
|
| 14097 |
case NODE_REDO: |
| 14098 |
printf("NODE_REDO\n"); |
| 14099 |
break; |
| 14100 |
|
| 14101 |
case NODE_RETRY: |
| 14102 |
printf("NODE_RETRY\n"); |
| 14103 |
break; |
| 14104 |
|
| 14105 |
case NODE_LVAR: |
| 14106 |
printf("NODE_LVAR %s\n", mrb_sym_name(mrb, sym(tree))); |
| 14107 |
break; |
| 14108 |
|
| 14109 |
case NODE_GVAR: |
| 14110 |
printf("NODE_GVAR %s\n", mrb_sym_name(mrb, sym(tree))); |
| 14111 |
break; |
| 14112 |
|
| 14113 |
case NODE_IVAR: |
| 14114 |
printf("NODE_IVAR %s\n", mrb_sym_name(mrb, sym(tree))); |
| 14115 |
break; |
| 14116 |
|
| 14117 |
case NODE_CVAR: |
| 14118 |
printf("NODE_CVAR %s\n", mrb_sym_name(mrb, sym(tree))); |
| 14119 |
break; |
| 14120 |
|
| 14121 |
case NODE_NVAR: |
| 14122 |
printf("NODE_NVAR %d\n", intn(tree)); |
| 14123 |
break; |
| 14124 |
|
| 14125 |
case NODE_CONST: |
| 14126 |
printf("NODE_CONST %s\n", mrb_sym_name(mrb, sym(tree))); |
| 14127 |
break; |
| 14128 |
|
| 14129 |
case NODE_MATCH: |
| 14130 |
printf("NODE_MATCH:\n"); |
| 14131 |
dump_prefix(tree, offset + 1); |
| 14132 |
printf("lhs:\n"); |
| 14133 |
mrb_parser_dump(mrb, tree->car, offset + 2); |
| 14134 |
dump_prefix(tree, offset + 1); |
| 14135 |
printf("rhs:\n"); |
| 14136 |
mrb_parser_dump(mrb, tree->cdr, offset + 2); |
| 14137 |
break; |
| 14138 |
|
| 14139 |
case NODE_BACK_REF: |
| 14140 |
printf("NODE_BACK_REF: $%c\n", intn(tree)); |
| 14141 |
break; |
| 14142 |
|
| 14143 |
case NODE_NTH_REF: |
| 14144 |
printf("NODE_NTH_REF: $%d\n", intn(tree)); |
| 14145 |
break; |
| 14146 |
|
| 14147 |
case NODE_ARG: |
| 14148 |
printf("NODE_ARG %s\n", mrb_sym_name(mrb, sym(tree))); |
| 14149 |
break; |
| 14150 |
|
| 14151 |
case NODE_BLOCK_ARG: |
| 14152 |
printf("NODE_BLOCK_ARG:\n"); |
| 14153 |
mrb_parser_dump(mrb, tree, offset+1); |
| 14154 |
break; |
| 14155 |
|
| 14156 |
case NODE_INT: |
| 14157 |
printf("NODE_INT %s base %d\n", (char*)tree->car, intn(tree->cdr->car)); |
| 14158 |
break; |
| 14159 |
|
| 14160 |
case NODE_FLOAT: |
| 14161 |
printf("NODE_FLOAT %s\n", (char*)tree); |
| 14162 |
break; |
| 14163 |
|
| 14164 |
case NODE_NEGATE: |
| 14165 |
printf("NODE_NEGATE:\n"); |
| 14166 |
mrb_parser_dump(mrb, tree, offset+1); |
| 14167 |
break; |
| 14168 |
|
| 14169 |
case NODE_STR: |
| 14170 |
printf("NODE_STR %s len %d\n", str_dump(mrb, (char*)tree->car, intn(tree->cdr)), intn(tree->cdr)); |
| 14171 |
break; |
| 14172 |
|
| 14173 |
case NODE_DSTR: |
| 14174 |
printf("NODE_DSTR:\n"); |
| 14175 |
dump_recur(mrb, tree, offset+1); |
| 14176 |
break; |
| 14177 |
|
| 14178 |
case NODE_XSTR: |
| 14179 |
printf("NODE_XSTR %s len %d\n", str_dump(mrb, (char*)tree->car, intn(tree->cdr)), intn(tree->cdr)); |
| 14180 |
break; |
| 14181 |
|
| 14182 |
case NODE_DXSTR: |
| 14183 |
printf("NODE_DXSTR:\n"); |
| 14184 |
dump_recur(mrb, tree, offset+1); |
| 14185 |
break; |
| 14186 |
|
| 14187 |
case NODE_REGX: |
| 14188 |
printf("NODE_REGX /%s/\n", (char*)tree->car); |
| 14189 |
if (tree->cdr->car) { |
| 14190 |
dump_prefix(tree, offset+1); |
| 14191 |
printf("opt: %s\n", (char*)tree->cdr->car); |
| 14192 |
} |
| 14193 |
if (tree->cdr->cdr) { |
| 14194 |
dump_prefix(tree, offset+1); |
| 14195 |
printf("enc: %s\n", (char*)tree->cdr->cdr); |
| 14196 |
} |
| 14197 |
break; |
| 14198 |
|
| 14199 |
case NODE_DREGX: |
| 14200 |
printf("NODE_DREGX:\n"); |
| 14201 |
dump_recur(mrb, tree->car, offset+1); |
| 14202 |
dump_prefix(tree, offset+1); |
| 14203 |
printf("tail: %s\n", (char*)tree->cdr->cdr->car); |
| 14204 |
if (tree->cdr->cdr->cdr->car) { |
| 14205 |
dump_prefix(tree, offset+1); |
| 14206 |
printf("opt: %s\n", (char*)tree->cdr->cdr->cdr->car); |
| 14207 |
} |
| 14208 |
if (tree->cdr->cdr->cdr->cdr) { |
| 14209 |
dump_prefix(tree, offset+1); |
| 14210 |
printf("enc: %s\n", (char*)tree->cdr->cdr->cdr->cdr); |
| 14211 |
} |
| 14212 |
break; |
| 14213 |
|
| 14214 |
case NODE_SYM: |
| 14215 |
printf("NODE_SYM :%s (%d)\n", mrb_sym_dump(mrb, sym(tree)), |
| 14216 |
intn(tree)); |
| 14217 |
break; |
| 14218 |
|
| 14219 |
case NODE_DSYM: |
| 14220 |
printf("NODE_DSYM:\n"); |
| 14221 |
mrb_parser_dump(mrb, tree, offset+1); |
| 14222 |
break; |
| 14223 |
|
| 14224 |
case NODE_WORDS: |
| 14225 |
printf("NODE_WORDS:\n"); |
| 14226 |
dump_recur(mrb, tree, offset+1); |
| 14227 |
break; |
| 14228 |
|
| 14229 |
case NODE_SYMBOLS: |
| 14230 |
printf("NODE_SYMBOLS:\n"); |
| 14231 |
dump_recur(mrb, tree, offset+1); |
| 14232 |
break; |
| 14233 |
|
| 14234 |
case NODE_LITERAL_DELIM: |
| 14235 |
printf("NODE_LITERAL_DELIM\n"); |
| 14236 |
break; |
| 14237 |
|
| 14238 |
case NODE_SELF: |
| 14239 |
printf("NODE_SELF\n"); |
| 14240 |
break; |
| 14241 |
|
| 14242 |
case NODE_NIL: |
| 14243 |
printf("NODE_NIL\n"); |
| 14244 |
break; |
| 14245 |
|
| 14246 |
case NODE_TRUE: |
| 14247 |
printf("NODE_TRUE\n"); |
| 14248 |
break; |
| 14249 |
|
| 14250 |
case NODE_FALSE: |
| 14251 |
printf("NODE_FALSE\n"); |
| 14252 |
break; |
| 14253 |
|
| 14254 |
case NODE_ALIAS: |
| 14255 |
printf("NODE_ALIAS %s %s:\n", |
| 14256 |
mrb_sym_dump(mrb, sym(tree->car)), |
| 14257 |
mrb_sym_dump(mrb, sym(tree->cdr))); |
| 14258 |
break; |
| 14259 |
|
| 14260 |
case NODE_UNDEF: |
| 14261 |
printf("NODE_UNDEF"); |
| 14262 |
{ |
| 14263 |
node *t = tree; |
| 14264 |
while (t) { |
| 14265 |
printf(" %s", mrb_sym_dump(mrb, sym(t->car))); |
| 14266 |
t = t->cdr; |
| 14267 |
} |
| 14268 |
} |
| 14269 |
printf(":\n"); |
| 14270 |
break; |
| 14271 |
|
| 14272 |
case NODE_CLASS: |
| 14273 |
printf("NODE_CLASS:\n"); |
| 14274 |
if (tree->car->car == nint(0)) { |
| 14275 |
dump_prefix(tree, offset+1); |
| 14276 |
printf(":%s\n", mrb_sym_name(mrb, sym(tree->car->cdr))); |
| 14277 |
} |
| 14278 |
else if (tree->car->car == nint(1)) { |
| 14279 |
dump_prefix(tree, offset+1); |
| 14280 |
printf("::%s\n", mrb_sym_name(mrb, sym(tree->car->cdr))); |
| 14281 |
} |
| 14282 |
else { |
| 14283 |
mrb_parser_dump(mrb, tree->car->car, offset+1); |
| 14284 |
dump_prefix(tree, offset+1); |
| 14285 |
printf("::%s\n", mrb_sym_name(mrb, sym(tree->car->cdr))); |
| 14286 |
} |
| 14287 |
if (tree->cdr->car) { |
| 14288 |
dump_prefix(tree, offset+1); |
| 14289 |
printf("super:\n"); |
| 14290 |
mrb_parser_dump(mrb, tree->cdr->car, offset+2); |
| 14291 |
} |
| 14292 |
dump_prefix(tree, offset+1); |
| 14293 |
printf("body:\n"); |
| 14294 |
mrb_parser_dump(mrb, tree->cdr->cdr->car->cdr, offset+2); |
| 14295 |
break; |
| 14296 |
|
| 14297 |
case NODE_MODULE: |
| 14298 |
printf("NODE_MODULE:\n"); |
| 14299 |
if (tree->car->car == nint(0)) { |
| 14300 |
dump_prefix(tree, offset+1); |
| 14301 |
printf(":%s\n", mrb_sym_name(mrb, sym(tree->car->cdr))); |
| 14302 |
} |
| 14303 |
else if (tree->car->car == nint(1)) { |
| 14304 |
dump_prefix(tree, offset+1); |
| 14305 |
printf("::%s\n", mrb_sym_name(mrb, sym(tree->car->cdr))); |
| 14306 |
} |
| 14307 |
else { |
| 14308 |
mrb_parser_dump(mrb, tree->car->car, offset+1); |
| 14309 |
dump_prefix(tree, offset+1); |
| 14310 |
printf("::%s\n", mrb_sym_name(mrb, sym(tree->car->cdr))); |
| 14311 |
} |
| 14312 |
dump_prefix(tree, offset+1); |
| 14313 |
printf("body:\n"); |
| 14314 |
mrb_parser_dump(mrb, tree->cdr->car->cdr, offset+2); |
| 14315 |
break; |
| 14316 |
|
| 14317 |
case NODE_SCLASS: |
| 14318 |
printf("NODE_SCLASS:\n"); |
| 14319 |
mrb_parser_dump(mrb, tree->car, offset+1); |
| 14320 |
dump_prefix(tree, offset+1); |
| 14321 |
printf("body:\n"); |
| 14322 |
mrb_parser_dump(mrb, tree->cdr->car->cdr, offset+2); |
| 14323 |
break; |
| 14324 |
|
| 14325 |
case NODE_DEF: |
| 14326 |
printf("NODE_DEF:\n"); |
| 14327 |
dump_prefix(tree, offset+1); |
| 14328 |
printf("%s\n", mrb_sym_dump(mrb, sym(tree->car))); |
| 14329 |
tree = tree->cdr; |
| 14330 |
{ |
| 14331 |
node *n2 = tree->car; |
| 14332 |
mrb_bool first_lval = TRUE; |
| 14333 |
|
| 14334 |
if (n2 && (n2->car || n2->cdr)) { |
| 14335 |
dump_prefix(n2, offset+1); |
| 14336 |
printf("local variables:\n"); |
| 14337 |
dump_prefix(n2, offset+2); |
| 14338 |
while (n2) { |
| 14339 |
if (n2->car) { |
| 14340 |
if (!first_lval) printf(", "); |
| 14341 |
printf("%s", mrb_sym_name(mrb, sym(n2->car))); |
| 14342 |
first_lval = FALSE; |
| 14343 |
} |
| 14344 |
n2 = n2->cdr; |
| 14345 |
} |
| 14346 |
printf("\n"); |
| 14347 |
} |
| 14348 |
} |
| 14349 |
tree = tree->cdr; |
| 14350 |
if (tree->car) { |
| 14351 |
dump_args(mrb, tree->car, offset); |
| 14352 |
} |
| 14353 |
mrb_parser_dump(mrb, tree->cdr->car, offset+1); |
| 14354 |
break; |
| 14355 |
|
| 14356 |
case NODE_SDEF: |
| 14357 |
printf("NODE_SDEF:\n"); |
| 14358 |
mrb_parser_dump(mrb, tree->car, offset+1); |
| 14359 |
tree = tree->cdr; |
| 14360 |
dump_prefix(tree, offset+1); |
| 14361 |
printf(":%s\n", mrb_sym_dump(mrb, sym(tree->car))); |
| 14362 |
tree = tree->cdr->cdr; |
| 14363 |
if (tree->car) { |
| 14364 |
dump_args(mrb, tree->car, offset+1); |
| 14365 |
} |
| 14366 |
tree = tree->cdr; |
| 14367 |
mrb_parser_dump(mrb, tree->car, offset+1); |
| 14368 |
break; |
| 14369 |
|
| 14370 |
case NODE_POSTEXE: |
| 14371 |
printf("NODE_POSTEXE:\n"); |
| 14372 |
mrb_parser_dump(mrb, tree, offset+1); |
| 14373 |
break; |
| 14374 |
|
| 14375 |
case NODE_HEREDOC: |
| 14376 |
printf("NODE_HEREDOC (<<%s):\n", ((parser_heredoc_info*)tree)->term); |
| 14377 |
dump_recur(mrb, ((parser_heredoc_info*)tree)->doc, offset+1); |
| 14378 |
break; |
| 14379 |
|
| 14380 |
case NODE_ARGS_TAIL: |
| 14381 |
printf("NODE_ARGS_TAIL:\n"); |
| 14382 |
{ |
| 14383 |
node *kws = tree->car; |
| 14384 |
|
| 14385 |
while (kws) { |
| 14386 |
mrb_parser_dump(mrb, kws->car, offset+1); |
| 14387 |
kws = kws->cdr; |
| 14388 |
} |
| 14389 |
} |
| 14390 |
tree = tree->cdr; |
| 14391 |
if (tree->car) { |
| 14392 |
mrb_assert(intn(tree->car->car) == NODE_KW_REST_ARGS); |
| 14393 |
mrb_parser_dump(mrb, tree->car, offset+1); |
| 14394 |
} |
| 14395 |
tree = tree->cdr; |
| 14396 |
if (tree->car) { |
| 14397 |
dump_prefix(tree, offset+1); |
| 14398 |
printf("block='%s'\n", mrb_sym_name(mrb, sym(tree->car))); |
| 14399 |
} |
| 14400 |
break; |
| 14401 |
|
| 14402 |
case NODE_KW_ARG: |
| 14403 |
printf("NODE_KW_ARG %s:\n", mrb_sym_name(mrb, sym(tree->car))); |
| 14404 |
mrb_parser_dump(mrb, tree->cdr->car, offset + 1); |
| 14405 |
break; |
| 14406 |
|
| 14407 |
case NODE_KW_REST_ARGS: |
| 14408 |
if (tree) |
| 14409 |
printf("NODE_KW_REST_ARGS %s\n", mrb_sym_name(mrb, sym(tree))); |
| 14410 |
else |
| 14411 |
printf("NODE_KW_REST_ARGS\n"); |
| 14412 |
break; |
| 14413 |
|
| 14414 |
default: |
| 14415 |
printf("node type: %d (0x%x)\n", nodetype, (unsigned)nodetype); |
| 14416 |
break; |
| 14417 |
} |
| 14418 |
#endif |
| 14419 |
} |
| 14420 |
|
| 14421 |
typedef mrb_bool mrb_parser_foreach_top_variable_func(mrb_state *mrb, mrb_sym sym, void *user); |
| 14422 |
void mrb_parser_foreach_top_variable(mrb_state *mrb, struct mrb_parser_state *p, mrb_parser_foreach_top_variable_func *func, void *user); |
| 14423 |
|
| 14424 |
void |
| 14425 |
mrb_parser_foreach_top_variable(mrb_state *mrb, struct mrb_parser_state *p, mrb_parser_foreach_top_variable_func *func, void *user) |
| 14426 |
{ |
| 14427 |
const mrb_ast_node *n = p->tree; |
| 14428 |
if ((intptr_t)n->car == NODE_SCOPE) { |
| 14429 |
n = n->cdr->car; |
| 14430 |
for (; n; n = n->cdr) { |
| 14431 |
mrb_sym sym = sym(n->car); |
| 14432 |
if (sym && !func(mrb, sym, user)) break; |
| 14433 |
} |
| 14434 |
} |
| 14435 |
} |