Files
mruby-mruby/mrbgems/mruby-compiler/core/y.tab.c
T
Yukihiro "Matz" Matsumoto 613b03ac18 mruby-compiler: add no_return_value context flag for script optimization
when running scripts via mruby -e or file, return values are unused.
this adds a no_return_value flag to skip generating unnecessary code.

for parallel assignment like a,b = 1,2:
- before: 18 bytes, 5 registers, creates temporary array
- after: 5 bytes, 3 registers, direct register assignment, no RETURN

the flag is set only for the main program, not for libraries loaded
with -r option. eval() and mirb continue returning values correctly.

Co-authored-by: Claude <noreply@anthropic.com>
2025-12-21 17:26:49 +09:00

16134 lines
596 KiB
C

/* A Bison parser, made by GNU Bison 3.8.2. */
/* Bison implementation for Yacc-like parsers in C
Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2021 Free Software Foundation,
Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>. */
/* As a special exception, you may create a larger work that contains
part or all of the Bison parser skeleton and distribute that work
under terms of your choice, so long as that work isn't itself a
parser generator using the skeleton or a modified version thereof
as a parser skeleton. Alternatively, if you modify or redistribute
the parser skeleton itself, you may (at your option) remove this
special exception, which will cause the skeleton and the resulting
Bison output files to be licensed under the GNU General Public
License without this special exception.
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
/* C LALR(1) parser skeleton written by Richard Stallman, by
simplifying the original so-called "semantic" parser. */
/* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual,
especially those whose name start with YY_ or yy_. They are
private implementation details that can be changed or removed. */
/* All symbols defined below should begin with yy or YY, to avoid
infringing on user name space. This should be done even for local
variables, as they might otherwise be expanded by user macros.
There are some unavoidable exceptions within include files to
define necessary library symbols; they are noted "INFRINGES ON
USER NAME SPACE" below. */
/* Identify Bison output, and Bison version. */
#define YYBISON 30802
/* Bison version string. */
#define YYBISON_VERSION "3.8.2"
/* Skeleton name. */
#define YYSKELETON_NAME "yacc.c"
/* Pure parsers. */
#define YYPURE 1
/* Push parsers. */
#define YYPUSH 0
/* Pull parsers. */
#define YYPULL 1
/* First part of user prologue. */
#line 7 "parse.y"
#undef PARSER_DEBUG
#ifdef PARSER_DEBUG
# define YYDEBUG 1
#endif
#define YYSTACK_USE_ALLOCA 1
#include <ctype.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <mruby.h>
#include <mruby/compile.h>
#include <mruby/proc.h>
#include <mruby/error.h>
#include <mruby/throw.h>
#include <mruby/string.h>
#include <mruby/dump.h>
#include <mruby/internal.h>
#include <mruby/presym.h>
#include "node.h"
#define YYLEX_PARAM p
#define mrbc_malloc(s) mrb_basic_alloc_func(NULL,(s))
#define mrbc_realloc(p,s) mrb_basic_alloc_func((p),(s))
#define mrbc_free(p) mrb_basic_alloc_func((p),0)
typedef mrb_ast_node node;
typedef struct mrb_parser_state parser_state;
typedef struct mrb_parser_heredoc_info parser_heredoc_info;
static int yyparse(parser_state *p);
static int yylex(void *lval, void *lp, parser_state *p);
static void yyerror(void *lp, parser_state *p, const char *s);
static void yywarning(parser_state *p, const char *s);
static void backref_error(parser_state *p, node *n);
static void void_expr_error(parser_state *p, node *n);
static void tokadd(parser_state *p, int32_t c);
static const char* tok(parser_state *p);
static int toklen(parser_state *p);
/* Forward declarations for variable-sized simple node functions */
/* Forward declarations for variable-sized advanced node functions */
/* Helper function to check node type for both traditional and variable-sized nodes */
static mrb_bool node_type_p(node *n, enum node_type type);
#define identchar(c) (ISALNUM(c) || (c) == '_' || !ISASCII(c))
typedef unsigned int stack_type;
#define BITSTACK_PUSH(stack, n) ((stack) = ((stack)<<1)|((n)&1))
#define BITSTACK_POP(stack) ((stack) = (stack) >> 1)
#define BITSTACK_LEXPOP(stack) ((stack) = ((stack) >> 1) | ((stack) & 1))
#define BITSTACK_SET_P(stack) ((stack)&1)
#define COND_PUSH(n) BITSTACK_PUSH(p->cond_stack, (n))
#define COND_POP() BITSTACK_POP(p->cond_stack)
#define COND_LEXPOP() BITSTACK_LEXPOP(p->cond_stack)
#define COND_P() BITSTACK_SET_P(p->cond_stack)
#define CMDARG_PUSH(n) BITSTACK_PUSH(p->cmdarg_stack, (n))
#define CMDARG_POP() BITSTACK_POP(p->cmdarg_stack)
#define CMDARG_LEXPOP() BITSTACK_LEXPOP(p->cmdarg_stack)
#define CMDARG_P() BITSTACK_SET_P(p->cmdarg_stack)
#define SET_LINENO(c,n) (((struct mrb_ast_var_header*)(c))->lineno = (n))
#define NUM_SUFFIX_R (1<<0)
#define NUM_SUFFIX_I (1<<1)
static inline mrb_sym
intern_cstr_gen(parser_state *p, const char *s)
{
return mrb_intern_cstr(p->mrb, s);
}
#define intern_cstr(s) intern_cstr_gen(p,(s))
static inline mrb_sym
intern_gen(parser_state *p, const char *s, size_t len)
{
return mrb_intern(p->mrb, s, len);
}
#define intern(s,len) intern_gen(p,(s),(len))
#define intern_op(op) MRB_OPSYM_2(p->mrb, op)
static mrb_sym
intern_numparam_gen(parser_state *p, int num)
{
char buf[3];
buf[0] = '_'; buf[1] = '0'+num; buf[2] = '\0';
return intern(buf, 2);
}
#define intern_numparam(n) intern_numparam_gen(p,(n))
static void
cons_free_gen(parser_state *p, node *cons)
{
cons->cdr = p->cells;
p->cells = cons;
}
#define cons_free(c) cons_free_gen(p, (c))
static void*
parser_palloc(parser_state *p, size_t size)
{
void *m = mempool_alloc(p->pool, size);
if (!m) {
MRB_THROW(p->mrb->jmp);
}
return m;
}
#define parser_pfree(ptr) do { if (sizeof(node) <= sizeof(*(ptr))) cons_free((node*)ptr);} while (0)
static node*
cons_gen(parser_state *p, node *car, node *cdr)
{
struct mrb_ast_node *c;
/* Try to reuse from free list first - only for 16-byte nodes */
if (p->cells) {
c = (struct mrb_ast_node*)p->cells;
p->cells = p->cells->cdr;
}
else {
c = (struct mrb_ast_node*)parser_palloc(p, sizeof(struct mrb_ast_node));
}
c->car = car;
c->cdr = cdr;
/* Don't initialize location fields for structure nodes - saves CPU */
return (node*)c;
}
/* Head-only location optimization: separate functions for head vs structure nodes */
#define cons(a,b) cons_gen(p,(a),(b)) /* Structure nodes - no location */
/* Initialize variable node header */
static void
init_var_header(struct mrb_ast_var_header *header, parser_state *p, enum node_type type)
{
header->lineno = p->lineno;
header->filename_index = p->current_filename_index;
header->node_type = (uint8_t)type;
/* Handle file boundary edge case */
if (p->lineno == 0 && p->current_filename_index > 0) {
header->filename_index--;
}
}
/* Combined allocate + init header helper */
static inline void*
new_node(parser_state *p, size_t size, enum node_type type)
{
void *n = parser_palloc(p, size);
init_var_header((struct mrb_ast_var_header*)n, p, type);
return n;
}
/* Type-safe macro wrapper for node allocation */
#define NEW_NODE(type_name, node_type) \
(struct mrb_ast_##type_name##_node*)new_node(p, sizeof(struct mrb_ast_##type_name##_node), node_type)
static node*
list1_gen(parser_state *p, node *a)
{
return cons(a, 0);
}
#define list1(a) list1_gen(p, (a))
static node*
list2_gen(parser_state *p, node *a, node *b)
{
return cons(a, cons(b, 0));
}
#define list2(a,b) list2_gen(p, (a),(b))
static node*
list3_gen(parser_state *p, node *a, node *b, node *c)
{
return cons(a, cons(b, cons(c, 0)));
}
#define list3(a,b,c) list3_gen(p, (a),(b),(c))
static node*
append_gen(parser_state *p, node *a, node *b)
{
node *c = a;
if (!a) return b;
if (!b) return a;
while (c->cdr) {
c = c->cdr;
}
c->cdr = b;
return a;
}
#define append(a,b) append_gen(p,(a),(b))
#define push(a,b) append_gen(p,(a),list1(b))
static char*
parser_strndup(parser_state *p, const char *s, size_t len)
{
char *b = (char*)parser_palloc(p, len+1);
memcpy(b, s, len);
b[len] = '\0';
return b;
}
#undef strndup
#define strndup(s,len) parser_strndup(p, s, len)
static char*
parser_strdup(parser_state *p, const char *s)
{
return parser_strndup(p, s, strlen(s));
}
#undef strdup
#define strdup(s) parser_strdup(p, s)
static void
dump_int(uint16_t i, char *s)
{
char *p = s;
char *t = s;
while (i > 0) {
*p++ = (i % 10)+'0';
i /= 10;
}
if (p == s) *p++ = '0';
*p = 0;
p--; /* point the last char */
while (t < p) {
char c = *t;
*t++ = *p;
*p-- = c;
}
}
/* xxx ----------------------------- */
static node*
local_switch(parser_state *p)
{
node *prev = p->locals;
p->locals = cons(0, 0);
return prev;
}
static void
local_resume(parser_state *p, node *prev)
{
p->locals = prev;
}
static void
local_nest(parser_state *p)
{
p->locals = cons(0, p->locals);
}
static void
local_unnest(parser_state *p)
{
if (p->locals) {
p->locals = p->locals->cdr;
}
}
static mrb_bool
local_var_p(parser_state *p, mrb_sym sym)
{
const struct RProc *u;
node *l = p->locals;
while (l) {
node *n = l->car;
while (n) {
if (node_to_sym(n->car) == sym) return TRUE;
n = n->cdr;
}
l = l->cdr;
}
u = p->upper;
while (u && !MRB_PROC_CFUNC_P(u)) {
const struct mrb_irep *ir = u->body.irep;
const mrb_sym *v = ir->lv;
int i;
if (v) {
for (i=0; i+1 < ir->nlocals; i++) {
if (v[i] == sym) return TRUE;
}
}
if (MRB_PROC_SCOPE_P(u)) break;
u = u->upper;
}
return FALSE;
}
static void
local_add_f(parser_state *p, mrb_sym sym)
{
if (p->locals) {
node *n = p->locals->car;
while (n) {
if (node_to_sym(n->car) == sym) {
mrb_int len;
const char* name = mrb_sym_name_len(p->mrb, sym, &len);
if (len > 0 && name[0] != '_') {
yyerror(NULL, p, "duplicated argument name");
return;
}
}
n = n->cdr;
}
p->locals->car = push(p->locals->car, sym_to_node(sym));
}
}
static void
local_add(parser_state *p, mrb_sym sym)
{
if (!local_var_p(p, sym)) {
local_add_f(p, sym);
}
}
/* allocate register for block */
#define local_add_blk(p) local_add_f(p, 0)
static void
local_add_kw(parser_state *p, mrb_sym kwd)
{
/* allocate register for keywords hash */
local_add_f(p, kwd ? kwd : intern_op(pow));
}
static node*
locals_node(parser_state *p)
{
return p->locals ? p->locals->car : NULL;
}
/* Helper function to check node type for both traditional and variable-sized nodes */
static mrb_bool
node_type_p(node *n, enum node_type type)
{
if (!n) return FALSE;
/* Check if this is a variable-sized node */
struct mrb_ast_var_header *header = (struct mrb_ast_var_header*)n;
return ((enum node_type)header->node_type == type);
}
/* Helper functions for variable-sized node detection */
static enum node_type
get_node_type(node *n)
{
if (!n) return (enum node_type)0;
/* Try to interpret as variable-sized node */
struct mrb_ast_var_header *header = (struct mrb_ast_var_header*)n;
enum node_type type = (enum node_type)header->node_type;
/* Validate that the node type is within valid range for variable-sized nodes */
if (type >= NODE_SCOPE && type < NODE_LAST) {
return type;
}
/* If node type is invalid, this is likely a cons-list node */
/* Return a special sentinel value to indicate cons-list fallback */
return NODE_LAST; /* Use NODE_LAST as sentinel for cons-list nodes */
}
static void
nvars_nest(parser_state *p)
{
p->nvars = cons(int_to_node(0), p->nvars);
}
static void
nvars_block(parser_state *p)
{
p->nvars = cons(int_to_node(-2), p->nvars);
}
static void
nvars_unnest(parser_state *p)
{
p->nvars = p->nvars->cdr;
}
/* struct: scope_node(locals, body) */
static node*
new_scope(parser_state *p, node *body)
{
struct mrb_ast_scope_node *scope_node = NEW_NODE(scope, NODE_SCOPE);
scope_node->locals = locals_node(p);
scope_node->body = body;
return (node*)scope_node;
}
/* struct: stmts_node(stmts) - uses cons list */
static node*
new_stmts(parser_state *p, node *body)
{
struct mrb_ast_stmts_node *n = NEW_NODE(stmts, NODE_STMTS);
n->stmts = body ? list1(body) : 0; /* Wrap single statement in cons-list */
return (node*)n;
}
/* Helper: push statement to stmts node */
static node*
stmts_push(parser_state *p, node *stmts, node *stmt)
{
struct mrb_ast_stmts_node *n = stmts_node(stmts);
n->stmts = push(n->stmts, stmt);
return stmts;
}
/* struct: begin_node(body) */
static node*
new_begin(parser_state *p, node *body)
{
struct mrb_ast_begin_node *begin_node = NEW_NODE(begin, NODE_BEGIN);
begin_node->body = body;
return (node*)begin_node;
}
#define newline_node(n) (n)
/* struct: rescue_node(body, rescue_clauses, else_clause) */
static node*
new_rescue(parser_state *p, node *body, node *resq, node *els)
{
struct mrb_ast_rescue_node *n = NEW_NODE(rescue, NODE_RESCUE);
n->body = body;
n->rescue_clauses = resq;
n->else_clause = els;
return (node*)n;
}
static node*
new_mod_rescue(parser_state *p, node *body, node *resq)
{
return new_rescue(p, body, list1(list3(0, 0, resq)), 0);
}
/* struct: ensure_node(body, ensure_clause) */
static node*
new_ensure(parser_state *p, node *a, node *b)
{
struct mrb_ast_ensure_node *ensure_node = NEW_NODE(ensure, NODE_ENSURE);
ensure_node->body = a;
ensure_node->ensure_clause = b;
return (node*)ensure_node;
}
/* struct: nil_node() */
static node*
new_nil(parser_state *p)
{
struct mrb_ast_nil_node *n = NEW_NODE(nil, NODE_NIL);
return (node*)n;
}
/* struct: true_node() */
static node*
new_true(parser_state *p)
{
struct mrb_ast_true_node *n = NEW_NODE(true, NODE_TRUE);
return (node*)n;
}
/* struct: false_node() */
static node*
new_false(parser_state *p)
{
struct mrb_ast_false_node *n = NEW_NODE(false, NODE_FALSE);
return (node*)n;
}
/* struct: alias_node(new_name, old_name) */
static node*
new_alias(parser_state *p, mrb_sym a, mrb_sym b)
{
struct mrb_ast_alias_node *alias_node = NEW_NODE(alias, NODE_ALIAS);
alias_node->new_name = a;
alias_node->old_name = b;
return (node*)alias_node;
}
/* struct: if_node(cond, then_body, else_body) */
static node*
new_if(parser_state *p, node *condition, node *then_body, node *else_body)
{
void_expr_error(p, condition);
struct mrb_ast_if_node *n = NEW_NODE(if, NODE_IF);
n->condition = condition;
n->then_body = then_body;
n->else_body = else_body;
return (node*)n;
}
/* struct: while_node(cond, body) */
static node*
new_while(parser_state *p, node *condition, node *body)
{
void_expr_error(p, condition);
struct mrb_ast_while_node *n = NEW_NODE(while, NODE_WHILE);
n->condition = condition;
n->body = body;
return (node*)n;
}
/* struct: until_node(cond, body) */
static node*
new_until(parser_state *p, node *condition, node *body)
{
void_expr_error(p, condition);
struct mrb_ast_until_node *n = NEW_NODE(until, NODE_UNTIL);
n->condition = condition;
n->body = body;
return (node*)n;
}
/* struct: while_node(cond, body) */
static node*
new_while_mod(parser_state *p, node *condition, node *body)
{
node *while_node = new_while(p, condition, body);
struct mrb_ast_while_node *n = (struct mrb_ast_while_node*)while_node;
n->header.node_type = NODE_WHILE_MOD;
return while_node;
}
/* struct: until_node(cond, body) */
static node*
new_until_mod(parser_state *p, node *a, node *b)
{
node *until_node = new_until(p, a, b);
struct mrb_ast_until_node *n = (struct mrb_ast_until_node*)until_node;
n->header.node_type = NODE_UNTIL_MOD;
return until_node;
}
/* struct: for_node(var, obj, body) */
static node*
new_for(parser_state *p, node *v, node *o, node *b)
{
void_expr_error(p, o);
struct mrb_ast_for_node *n = NEW_NODE(for, NODE_FOR);
n->var = v;
n->iterable = o;
n->body = b;
return (node*)n;
}
/* struct: case_node(expr, when_clauses) - uses cons list */
static node*
new_case(parser_state *p, node *a, node *b)
{
void_expr_error(p, a);
struct mrb_ast_case_node *n = NEW_NODE(case, NODE_CASE);
n->value = a;
n->body = b;
return (node*)n;
}
/* Pattern matching case/in expression */
static node*
new_case_match(parser_state *p, node *val, node *in_clauses)
{
void_expr_error(p, val);
struct mrb_ast_case_match_node *n = NEW_NODE(case_match, NODE_CASE_MATCH);
n->value = val;
n->in_clauses = in_clauses;
return (node*)n;
}
/* Create value pattern node */
static node*
new_pat_value(parser_state *p, node *val)
{
struct mrb_ast_pat_value_node *n = NEW_NODE(pat_value, NODE_PAT_VALUE);
n->value = val;
return (node*)n;
}
/* Create variable pattern node */
static node*
new_pat_var(parser_state *p, mrb_sym name)
{
struct mrb_ast_pat_var_node *n = NEW_NODE(pat_var, NODE_PAT_VAR);
n->name = name;
/* Register as local variable if not wildcard */
if (name) {
local_add(p, name);
}
return (node*)n;
}
/* Create pin pattern node (^var) */
static node*
new_pat_pin(parser_state *p, mrb_sym name)
{
struct mrb_ast_pat_pin_node *n = NEW_NODE(pat_pin, NODE_PAT_PIN);
n->name = name;
/* Pin operator references existing variable, does not create new binding */
return (node*)n;
}
/* Create as pattern node (pattern => var) */
static node*
new_pat_as(parser_state *p, node *pattern, mrb_sym name)
{
struct mrb_ast_pat_as_node *n = NEW_NODE(pat_as, NODE_PAT_AS);
n->pattern = pattern;
n->name = name;
local_add(p, name);
return (node*)n;
}
/* Create alternative pattern node (pat1 | pat2) */
static node*
new_pat_alt(parser_state *p, node *left, node *right)
{
struct mrb_ast_pat_alt_node *n = NEW_NODE(pat_alt, NODE_PAT_ALT);
n->left = left;
n->right = right;
return (node*)n;
}
/* Create array pattern node [a, b, *rest, c] */
static node*
new_pat_array(parser_state *p, node *pre, node *rest, node *post)
{
struct mrb_ast_pat_array_node *n = NEW_NODE(pat_array, NODE_PAT_ARRAY);
n->pre = pre;
n->rest = rest;
n->post = post;
return (node*)n;
}
/* Create find pattern node [*pre, elems, *post] */
static node*
new_pat_find(parser_state *p, node *pre, node *elems, node *post)
{
struct mrb_ast_pat_find_node *n = NEW_NODE(pat_find, NODE_PAT_FIND);
n->pre = pre;
n->elems = elems;
n->post = post;
return (node*)n;
}
/* Create hash pattern node {a:, b: x, **rest} */
static node*
new_pat_hash(parser_state *p, node *pairs, node *rest)
{
struct mrb_ast_pat_hash_node *n = NEW_NODE(pat_hash, NODE_PAT_HASH);
n->pairs = pairs;
n->rest = rest;
return (node*)n;
}
/* Create one-line pattern matching node (expr in pattern / expr => pattern) */
static node*
new_match_pat(parser_state *p, node *value, node *pattern, mrb_bool raise_on_fail)
{
struct mrb_ast_match_pat_node *n = NEW_NODE(match_pat, NODE_MATCH_PAT);
n->value = value;
n->pattern = pattern;
n->raise_on_fail = raise_on_fail;
return (node*)n;
}
/* Create in-clause node for case/in */
static node*
new_in(parser_state *p, node *pattern, node *guard, node *body, mrb_bool guard_is_unless)
{
struct mrb_ast_in_node *n = NEW_NODE(in, NODE_IN);
n->pattern = pattern;
n->guard = guard;
n->body = body;
n->guard_is_unless = guard_is_unless;
return (node*)n;
}
/* struct: postexe_node(body) */
static node*
new_postexe(parser_state *p, node *a)
{
struct mrb_ast_postexe_node *postexe_node = NEW_NODE(postexe, NODE_POSTEXE);
postexe_node->body = a;
return (node*)postexe_node;
}
/* struct: self_node() */
static node*
new_self(parser_state *p)
{
struct mrb_ast_self_node *n = NEW_NODE(self, NODE_SELF);
return (node*)n;
}
/* struct: call_node(receiver, method, args) */
static node*
new_call(parser_state *p, node *receiver, mrb_sym method, node *args, int pass)
{
/* Calculate size needed (fixed size now) */ struct mrb_ast_call_node *n = NEW_NODE(call, NODE_CALL);
n->receiver = receiver;
n->method_name = method;
n->safe_call = (pass == 0); /* pass == 0 means safe call (&.) */
/* Store args pointer directly - no need to unpack and repack */
n->args = args;
void_expr_error(p, receiver);
return (node*)n;
}
/* struct: fcall_node(method, args) */
static node*
new_fcall(parser_state *p, mrb_sym b, node *c)
{
return new_call(p, NULL, b, c, '.');
}
/* (a b . c) */
static node*
new_callargs(parser_state *p, node *a, node *b, node *c)
{
/* Allocate struct mrb_ast_callargs (fixed size, like new_args) */
struct mrb_ast_callargs *callargs = (struct mrb_ast_callargs*)parser_palloc(p, sizeof(struct mrb_ast_callargs));
/* Initialize members directly */
callargs->regular_args = a; /* Cons list of regular arguments (preserves splat compatibility) */
callargs->keyword_args = b; /* Keyword arguments hash node */
callargs->block_arg = c; /* Block argument node */
/* Return direct cast to node (like new_args) */
return (node*)callargs;
}
/* struct: super_node(args) */
static node*
new_super(parser_state *p, node *c)
{
struct mrb_ast_super_node *n = NEW_NODE(super, NODE_SUPER);
n->args = c;
return (node*)n;
}
/* struct: zsuper_node() */
static node*
new_zsuper(parser_state *p)
{
struct mrb_ast_super_node *n = NEW_NODE(super, NODE_ZSUPER);
n->args = NULL; /* zsuper initially has no args, but may be added by call_with_block */
return (node*)n;
}
/* struct: yield_node(args) */
static node*
new_yield(parser_state *p, node *c)
{
/* Handle callargs structure - direct casting like new_args() */
if (c) {
struct mrb_ast_callargs *callargs = (struct mrb_ast_callargs*)c;
if (callargs->block_arg) {
yyerror(NULL, p, "both block arg and actual block given");
}
} struct mrb_ast_yield_node *n = NEW_NODE(yield, NODE_YIELD);
n->args = c;
return (node*)n;
}
/* struct: return_node(value) */
static node*
new_return(parser_state *p, node *c)
{
struct mrb_ast_return_node *n = NEW_NODE(return, NODE_RETURN);
n->args = c;
return (node*)n;
}
/* struct: break_node(value) */
static node*
new_break(parser_state *p, node *c)
{
struct mrb_ast_break_node *n = NEW_NODE(break, NODE_BREAK);
n->value = c;
return (node*)n;
}
/* struct: next_node(value) */
static node*
new_next(parser_state *p, node *c)
{
struct mrb_ast_next_node *n = NEW_NODE(next, NODE_NEXT);
n->value = c;
return (node*)n;
}
/* struct: redo_node() */
static node*
new_redo(parser_state *p)
{
struct mrb_ast_redo_node *n = NEW_NODE(redo, NODE_REDO);
return (node*)n;
}
/* struct: retry_node() */
static node*
new_retry(parser_state *p)
{
struct mrb_ast_retry_node *n = NEW_NODE(retry, NODE_RETRY);
return (node*)n;
}
/* struct: dot2_node(beg, end) */
static node*
new_dot2(parser_state *p, node *a, node *b)
{
struct mrb_ast_dot2_node *n = NEW_NODE(dot2, NODE_DOT2);
n->left = a;
n->right = b;
return (node*)n;
}
/* struct: dot3_node(beg, end) */
static node*
new_dot3(parser_state *p, node *a, node *b)
{
struct mrb_ast_dot3_node *n = NEW_NODE(dot3, NODE_DOT3);
n->left = a;
n->right = b;
return (node*)n;
}
/* struct: colon2_node(base, name) */
static node*
new_colon2(parser_state *p, node *b, mrb_sym c)
{
void_expr_error(p, b);
struct mrb_ast_colon2_node *colon2_node = NEW_NODE(colon2, NODE_COLON2);
colon2_node->base = b;
colon2_node->name = c;
return (node*)colon2_node;
}
/* struct: colon3_node(name) */
static node*
new_colon3(parser_state *p, mrb_sym c)
{
struct mrb_ast_colon3_node *colon3_node = NEW_NODE(colon3, NODE_COLON3);
colon3_node->name = c;
return (node*)colon3_node;
}
/* struct: and_node(left, right) */
static node*
new_and(parser_state *p, node *a, node *b)
{
void_expr_error(p, a);
struct mrb_ast_and_node *n = NEW_NODE(and, NODE_AND);
n->left = a;
n->right = b;
return (node*)n;
}
/* struct: or_node(left, right) */
static node*
new_or(parser_state *p, node *a, node *b)
{
void_expr_error(p, a);
struct mrb_ast_or_node *n = NEW_NODE(or, NODE_OR);
n->left = a;
n->right = b;
return (node*)n;
}
/* struct: array_node(elements) - uses cons list */
static node*
new_array(parser_state *p, node *a)
{
struct mrb_ast_array_node *n = NEW_NODE(array, NODE_ARRAY);
n->elements = a;
return (node*)n;
}
/* struct: splat_node(value) */
static node*
new_splat(parser_state *p, node *a)
{
void_expr_error(p, a);
struct mrb_ast_splat_node *splat_node = NEW_NODE(splat, NODE_SPLAT);
splat_node->value = a;
return (node*)splat_node;
}
/* struct: hash_node(pairs) - uses cons list */
static node*
new_hash(parser_state *p, node *a)
{
struct mrb_ast_hash_node *n = NEW_NODE(hash, NODE_HASH);
n->pairs = a;
return (node*)n;
}
/* (:sym . a) */
/* Symbol node creation - supports both variable and legacy modes */
static node*
new_sym(parser_state *p, mrb_sym sym)
{
struct mrb_ast_sym_node *n = NEW_NODE(sym, NODE_SYM);
n->symbol = sym;
return (node*)n;
}
static node*
new_xvar(parser_state *p, mrb_sym sym, enum node_type type)
{
struct mrb_ast_var_node *n = NEW_NODE(var, type);
n->symbol = sym;
return (node*)n;
}
#define new_lvar(p, sym) new_xvar(p, sym, NODE_LVAR)
#define new_ivar(p, sym) new_xvar(p, sym, NODE_IVAR)
#define new_gvar(p, sym) new_xvar(p, sym, NODE_GVAR)
#define new_cvar(p, sym) new_xvar(p, sym, NODE_CVAR)
static mrb_sym
new_strsym(parser_state *p, node* str)
{
size_t len = (size_t)str->car;
const char *s = (const char*)str->cdr;
return mrb_intern(p->mrb, s, len);
}
/* (:nvar . a) */
static node*
new_nvar(parser_state *p, int num)
{
int nvar;
node *nvars = p->nvars->cdr;
while (nvars) {
nvar = node_to_int(nvars->car);
if (nvar == -2) break; /* top of the scope */
if (nvar > 0) {
yyerror(NULL, p, "numbered parameter used in outer block");
break;
}
nvars->car = int_to_node(-1);
nvars = nvars->cdr;
}
nvar = node_to_int(p->nvars->car);
if (nvar == -1) {
yyerror(NULL, p, "numbered parameter used in inner block");
}
else {
p->nvars->car = int_to_node(nvar > num ? nvar : num);
}
struct mrb_ast_nvar_node *n = NEW_NODE(nvar, NODE_NVAR);
n->num = num;
return (node*)n;
}
/* struct: const_node(name) */
static node*
new_const(parser_state *p, mrb_sym sym)
{
struct mrb_ast_const_node *n = NEW_NODE(const, NODE_CONST);
n->symbol = sym;
return (node*)n;
}
/* struct: undef_node(syms) - uses cons list */
static node*
new_undef(parser_state *p, node *syms)
{
struct mrb_ast_undef_node *undef_node = NEW_NODE(undef, NODE_UNDEF);
undef_node->syms = syms;
return (node*)undef_node;
}
/* struct: class_node(path, super, body) */
static node*
new_class(parser_state *p, node *c, node *s, node *b)
{
void_expr_error(p, s);
struct mrb_ast_class_node *n = NEW_NODE(class, NODE_CLASS);
n->name = c;
n->superclass = s;
n->body = cons(locals_node(p), b);
return (node*)n;
}
/* struct: sclass_node(obj, body) */
static node*
new_sclass(parser_state *p, node *o, node *b)
{
void_expr_error(p, o);
struct mrb_ast_sclass_node *n = NEW_NODE(sclass, NODE_SCLASS);
n->obj = o;
n->body = cons(locals_node(p), b);
return (node*)n;
}
/* struct: module_node(path, body) */
static node*
new_module(parser_state *p, node *m, node *b)
{
struct mrb_ast_module_node *n = NEW_NODE(module, NODE_MODULE);
n->name = m;
n->body = cons(locals_node(p), b);
return (node*)n;
}
/* struct: def_node(name, args, body) */
static node*
new_def(parser_state *p, mrb_sym name)
{
struct mrb_ast_def_node *n = NEW_NODE(def, NODE_DEF);
n->name = name;
n->args = (struct mrb_ast_args *)int_to_node(p->cmdarg_stack);
n->locals = local_switch(p);
n->body = NULL;
return (node*)n;
}
static void
defn_setup(parser_state *p, node *d, node *a, node *b)
{
struct mrb_ast_def_node *n = def_node(d);
node *locals = n->locals;
n->locals = locals_node(p);
p->cmdarg_stack = node_to_int(n->args);
n->args = (struct mrb_ast_args *)a;
n->body = b;
local_resume(p, locals);
}
/* struct: sdef_node(obj, name, args, body) */
static node*
new_sdef(parser_state *p, node *o, mrb_sym name)
{
void_expr_error(p, o);
struct mrb_ast_sdef_node *sdef_node = NEW_NODE(sdef, NODE_SDEF);
sdef_node->obj = o;
sdef_node->name = name;
sdef_node->args = (struct mrb_ast_args *)int_to_node(p->cmdarg_stack);
sdef_node->locals = local_switch(p);
sdef_node->body = NULL;
return (node*)sdef_node;
}
static void
local_add_margs(parser_state *p, node *n)
{
while (n) {
if (get_node_type(n->car) == NODE_MARG) {
struct mrb_ast_masgn_node *masgn_n = (struct mrb_ast_masgn_node*)n->car;
node *rhs = masgn_n->rhs;
/* For parameter destructuring, rhs contains the locals */
if (rhs) {
node *t = rhs;
while (t) {
local_add_f(p, node_to_sym(t->car));
t = t->cdr;
}
/* Clear cons list RHS immediately after use */
masgn_n->rhs = NULL;
}
/* Process nested destructuring in lhs components */
if (masgn_n->pre) {
local_add_margs(p, masgn_n->pre);
}
if (masgn_n->post) {
local_add_margs(p, masgn_n->post);
}
}
n = n->cdr;
}
}
static void
local_add_lv(parser_state *p, node *lv)
{
while (lv) {
local_add_f(p, node_to_sym(lv->car));
lv = lv->cdr;
}
}
/* (m o r m2 tail) */
/* m: (a b c) */
/* o: ((a . e1) (b . e2)) */
/* r: a */
/* m2: (a b c) */
/* b: a */
static node*
new_args(parser_state *p, node *m, node *opt, mrb_sym rest, node *m2, node *tail)
{
local_add_margs(p, m);
local_add_margs(p, m2);
/* Save original optional arguments before processing */
node *orig_opt = opt;
/* Process optional arguments (keep original side effects) */
while (opt) {
/* opt: (sym . (opt . lv)) -> (sym . opt) */
local_add_lv(p, opt->car->cdr->cdr);
opt->car->cdr = opt->car->cdr->car;
opt = opt->cdr;
}
/* Allocate struct mrb_ast_args (no hdr) */
struct mrb_ast_args *args = (struct mrb_ast_args*)parser_palloc(p, sizeof(struct mrb_ast_args));
/* Initialize members */
args->mandatory_args = m;
args->optional_args = orig_opt;
args->rest_arg = rest;
args->post_mandatory_args = m2;
/* Deconstruct tail cons list: (kws . (kwrest . blk)) */
if (tail) {
args->keyword_args = (node*)tail->car; /* kws */
args->kwrest_arg = (mrb_sym)(intptr_t)tail->cdr->car; /* kwrest */
args->block_arg = (mrb_sym)(intptr_t)tail->cdr->cdr; /* blk */
cons_free(tail->cdr);
cons_free(tail);
}
else {
args->keyword_args = NULL;
args->kwrest_arg = 0;
args->block_arg = 0;
}
return (node*)args;
}
/* struct: args_tail_node(kwargs, kwrest, block) */
static node*
new_args_tail(parser_state *p, node *kws, mrb_sym kwrest, mrb_sym blk)
{
node *k;
if (kws || kwrest) {
local_add_kw(p, kwrest);
}
local_add_blk(p);
if (blk) local_add_f(p, blk);
/* allocate register for keywords arguments */
/* order is for Proc#parameters */
for (k = kws; k; k = k->cdr) {
if (!k->car->cdr) { /* allocate required keywords - simplified structure: (key . NULL) */
local_add_f(p, node_to_sym(k->car->car));
}
}
for (k = kws; k; k = k->cdr) {
if (k->car->cdr) { /* allocate keywords with default - simplified structure: (key . value) */
local_add_lv(p, k->car->cdr->cdr); /* value->cdr for default args */
k->car->cdr = k->car->cdr->car; /* value->car for default args */
local_add_f(p, node_to_sym(k->car->car));
}
}
/* Return cons list: (keyword . (kwrest . blk)) */
return cons(kws, cons(sym_to_node(kwrest), sym_to_node(blk)));
}
/* (kw_sym . def_arg) - simplified from NODE_KW_ARG wrapper */
static node*
new_kw_arg(parser_state *p, mrb_sym kw, node *def_arg)
{
mrb_assert(kw);
return cons(sym_to_node(kw), def_arg);
}
/* (:kw_rest_args . a) */
static node*
new_kw_rest_args(parser_state *p, mrb_sym sym)
{
return sym_to_node(intern_op(pow)); /* Use ** symbol as direct marker */
}
static node*
new_args_dots(parser_state *p, node *m)
{
mrb_sym r = intern_op(mul);
mrb_sym k = intern_op(pow);
mrb_sym b = intern_op(and);
local_add_f(p, r);
return new_args(p, m, 0, r, 0, new_args_tail(p, NULL, k, b));
}
/* struct: block_arg_node(value) */
static node*
new_block_arg(parser_state *p, node *a)
{
struct mrb_ast_block_arg_node *block_arg_node = NEW_NODE(block_arg, NODE_BLOCK_ARG);
block_arg_node->value = a;
return (node*)block_arg_node;
}
static node*
setup_numparams(parser_state *p, node *a)
{
int nvars = node_to_int(p->nvars->car);
if (nvars > 0) {
int i;
mrb_sym sym;
// Check if any arguments are already defined
struct mrb_ast_args *args = (struct mrb_ast_args *)a;
if (a && (args->mandatory_args || args->optional_args || args->rest_arg ||
args->post_mandatory_args || args->keyword_args || args->kwrest_arg)) {
yyerror(NULL, p, "ordinary parameter is defined");
}
else if (p->locals) {
/* p->locals should not be NULL unless error happens before the point */
node* args = 0;
for (i = nvars; i > 0; i--) {
char buf[3];
buf[0] = '_';
buf[1] = i+'0';
buf[2] = '\0';
sym = intern_cstr(buf);
args = cons(new_lvar(p, sym), args);
p->locals->car = cons(sym_to_node(sym), p->locals->car);
}
a = new_args(p, args, 0, 0, 0, 0);
}
}
return a;
}
/* struct: block_node(args, body) */
static node*
new_block(parser_state *p, node *a, node *b)
{
a = setup_numparams(p, a); struct mrb_ast_block_node *n = NEW_NODE(block, NODE_BLOCK);
n->locals = locals_node(p);
n->args = (struct mrb_ast_args *)a;
n->body = b;
return (node*)n;
}
/* struct: lambda_node(args, body) */
static node*
new_lambda(parser_state *p, node *a, node *b)
{
a = setup_numparams(p, a); struct mrb_ast_lambda_node *lambda_node = NEW_NODE(lambda, NODE_LAMBDA);
lambda_node->locals = locals_node(p);
lambda_node->args = (struct mrb_ast_args *)a;
lambda_node->body = b;
return (node*)lambda_node;
}
/* struct: asgn_node(lhs, rhs) */
static node*
new_asgn(parser_state *p, node *a, node *b)
{
void_expr_error(p, b);
struct mrb_ast_asgn_node *n = NEW_NODE(asgn, NODE_ASGN);
n->lhs = a;
n->rhs = b;
return (node*)n;
}
/* Helper function to create MASGN/MARG nodes */
static node*
new_masgn_helper(parser_state *p, node *a, node *b, enum node_type node_type)
{
struct mrb_ast_masgn_node *n = NEW_NODE(masgn, node_type);
/* Extract pre, rest, post from cons list structure (a b c) */
if (a) {
n->pre = a->car; /* Pre-splat variables */
if (a->cdr) {
n->rest = a->cdr->car; /* Splat variable (or -1 for anonymous) */
if (a->cdr->cdr) {
n->post = a->cdr->cdr->car; /* Post-splat variables */
cons_free(a->cdr->cdr);
}
else {
n->post = NULL;
}
cons_free(a->cdr);
}
else {
n->rest = NULL;
n->post = NULL;
}
cons_free(a);
}
else {
n->pre = NULL;
n->rest = NULL;
n->post = NULL;
}
n->rhs = b;
return (node*)n;
}
/* struct: masgn_node(lhs, rhs) */
static node*
new_masgn(parser_state *p, node *a, node *b)
{
void_expr_error(p, b);
return new_masgn_helper(p, a, b, NODE_MASGN);
}
/* (:marg mlhs mrhs) no check - for parameter destructuring */
static node*
new_marg(parser_state *p, node *a)
{
return new_masgn_helper(p, a, p->locals->car, NODE_MARG);
}
/* struct: op_asgn_node(lhs, op, rhs) */
static node*
new_op_asgn(parser_state *p, node *a, mrb_sym op, node *b)
{
void_expr_error(p, b);
struct mrb_ast_op_asgn_node *n = NEW_NODE(op_asgn, NODE_OP_ASGN);
n->lhs = a;
n->op = op;
n->rhs = b;
return (node*)n;
}
static node*
new_int_n(parser_state *p, int32_t val)
{
struct mrb_ast_int_node *n = NEW_NODE(int, NODE_INT);
n->value = val;
return (node*)n;
}
static node*
new_imaginary(parser_state *p, node *imaginary)
{
return new_fcall(p, MRB_SYM_2(p->mrb, Complex),
new_callargs(p, list2(new_int_n(p, 0), imaginary), 0, 0));
}
static node*
new_rational(parser_state *p, node *rational)
{
return new_fcall(p, MRB_SYM_2(p->mrb, Rational), new_callargs(p, list1(rational), 0, 0));
}
/* Read integer into int32_t with overflow detection */
static mrb_bool
read_int32(const char *p, int base, int32_t *result)
{
const char *e = p + strlen(p);
int32_t value = 0;
mrb_bool neg = FALSE;
if (base < 2 || base > 16) {
return FALSE;
}
if (*p == '+') {
p++;
}
else if (*p == '-') {
neg = TRUE;
p++;
}
while (p < e) {
int n;
char c = *p;
/* Skip underscores */
if (c == '_') {
p++;
continue;
}
/* Parse digit */
if (c >= '0' && c <= '9') {
n = c - '0';
}
else if (c >= 'a' && c <= 'f') {
n = c - 'a' + 10;
}
else if (c >= 'A' && c <= 'F') {
n = c - 'A' + 10;
}
else {
/* Invalid character */
return FALSE;
}
if (n >= base) {
/* Digit not valid for this base */
return FALSE;
}
/* Check for multiplication overflow */
if (value > INT32_MAX / base) {
return FALSE;
}
value *= base;
/* Check for addition overflow */
if (value > INT32_MAX - n) {
/* Special case: -INT32_MIN is valid */
if (neg && value == (INT32_MAX - n + 1) && p + 1 == e) {
*result = INT32_MIN;
return TRUE;
}
return FALSE;
}
value += n;
p++;
}
*result = neg ? -value : value;
return TRUE;
}
static node*
new_int(parser_state *p, const char *s, int base, int suffix)
{
int32_t val;
node* result;
/* Try to parse as int32_t first */
if (read_int32(s, base, &val)) {
result = new_int_n(p, val);
}
else {
/* Big integer - create NODE_BIGINT */
struct mrb_ast_bigint_node *n = NEW_NODE(bigint, NODE_BIGINT);
n->string = strdup(s);
n->base = base;
result = (node*)n;
}
/* Handle suffix modifiers */
if (suffix & NUM_SUFFIX_R) {
result = new_rational(p, result);
}
if (suffix & NUM_SUFFIX_I) {
result = new_imaginary(p, result);
}
return result;
}
#ifndef MRB_NO_FLOAT
/* struct: float_node(value) */
static node*
new_float(parser_state *p, const char *s, int suffix)
{
struct mrb_ast_float_node *n = NEW_NODE(float, NODE_FLOAT);
n->value = strdup(s);
node* result = (node*)n;
if (suffix & NUM_SUFFIX_R) {
result = new_rational(p, result);
}
if (suffix & NUM_SUFFIX_I) {
result = new_imaginary(p, result);
}
return result;
}
#endif
/* Create string node from cons list */
/* struct: str_node(str) */
static node*
new_str(parser_state *p, node *a)
{
struct mrb_ast_str_node *n = NEW_NODE(str, NODE_STR);
n->list = a;
return (node*)n;
}
/* struct: xstr_node(str) */
static node*
new_xstr(parser_state *p, node *a)
{
struct mrb_ast_xstr_node *n = NEW_NODE(xstr, NODE_XSTR);
n->list = a;
return (node*)n;
}
/* struct: dsym_node(parts) - uses cons list */
static node*
new_dsym(parser_state *p, node *a)
{
struct mrb_ast_str_node *n = NEW_NODE(str, NODE_DSYM);
n->list = a;
return (node*)n;
}
/* struct: regx_node(pattern, flags, encoding) */
static node*
new_regx(parser_state *p, node *list, const char *flags, const char *encoding)
{
struct mrb_ast_regx_node *n = NEW_NODE(regx, NODE_REGX);
n->list = list;
n->flags = flags;
n->encoding = encoding;
return (node*)n;
}
/* struct: back_ref_node(n) */
static node*
new_back_ref(parser_state *p, int n)
{
struct mrb_ast_back_ref_node *backref_node = NEW_NODE(back_ref, NODE_BACK_REF);
backref_node->type = n;
return (node*)backref_node;
}
/* struct: nth_ref_node(n) */
static node*
new_nth_ref(parser_state *p, int n)
{
struct mrb_ast_nth_ref_node *nthref_node = NEW_NODE(nth_ref, NODE_NTH_REF);
nthref_node->nth = n;
return (node*)nthref_node;
}
/* struct: heredoc_node(str) */
static node*
new_heredoc(parser_state *p, struct mrb_parser_heredoc_info **infop)
{
struct mrb_ast_heredoc_node *n = NEW_NODE(heredoc, NODE_HEREDOC);
/* Initialize embedded heredoc info struct */
n->info.allow_indent = FALSE;
n->info.remove_indent = FALSE;
n->info.line_head = FALSE;
n->info.indent = 0;
n->info.indented = NULL;
n->info.type = str_not_parsing; // Will be set by heredoc processing
n->info.term = NULL; // Will be set by heredoc processing
n->info.term_len = 0;
n->info.doc = NULL;
/* Return pointer to embedded info if requested */
*infop = &n->info;
return (node*)n;
}
static void
new_bv(parser_state *p, mrb_sym id)
{
}
static node*
new_literal_delim(parser_state *p)
{
return cons((node*)0, (node*)0);
}
/* Helper for creating string representation cons (length . string_ptr) */
static node*
new_str_rep(parser_state *p, const char *str, int len)
{
return cons(int_to_node(len), (node*)strndup(str, len));
}
/* Helper for creating string representation from current token */
static node*
new_str_tok(parser_state *p)
{
return new_str_rep(p, tok(p), toklen(p));
}
/* Helper for creating empty string representation */
static node*
new_str_empty(parser_state *p)
{
return new_str_rep(p, "", 0);
}
/* (:words . a) */
static node*
new_words(parser_state *p, node *a)
{
struct mrb_ast_words_node *words_node = NEW_NODE(words, NODE_WORDS);
words_node->args = a;
return (node*)words_node;
}
/* (:symbols . a) */
static node*
new_symbols(parser_state *p, node *a)
{
struct mrb_ast_symbols_node *symbols_node = NEW_NODE(symbols, NODE_SYMBOLS);
symbols_node->args = a;
return (node*)symbols_node;
}
/* xxx ----------------------------- */
/* (:call a op) */
static node*
call_uni_op(parser_state *p, node *recv, const char *m)
{
void_expr_error(p, recv);
return new_call(p, recv, intern_cstr(m), 0, '.');
}
/* (:call a op b) */
static node*
call_bin_op(parser_state *p, node *recv, const char *m, node *arg1)
{
return new_call(p, recv, intern_cstr(m), new_callargs(p, list1(arg1), 0, 0), '.');
}
static void
args_with_block(parser_state *p, node *a, node *b)
{
if (b) {
/* Handle callargs structure - direct casting like new_args() */
struct mrb_ast_callargs *callargs = (struct mrb_ast_callargs*)a;
if (callargs->block_arg) {
yyerror(NULL, p, "both block arg and actual block given");
}
callargs->block_arg = b;
}
}
static void
endless_method_name(parser_state *p, node *defn)
{
struct mrb_ast_def_node *def = (struct mrb_ast_def_node*)defn;
mrb_sym sym = def->name;
mrb_int len;
const char *name = mrb_sym_name_len(p->mrb, sym, &len);
if (len > 1 && name[len-1] == '=') {
for (int i=0; i<len-1; i++) {
if (!identchar(name[i])) return;
}
yyerror(NULL, p, "setter method cannot be defined by endless method definition");
}
}
static void
call_with_block(parser_state *p, node *a, node *b)
{
if (!a) return;
/* Handle direct variable-sized nodes */
struct mrb_ast_var_header *header = (struct mrb_ast_var_header*)a;
enum node_type var_type = (enum node_type)header->node_type;
switch (var_type) {
case NODE_SUPER:
case NODE_ZSUPER:
/* For variable-sized super/zsuper nodes, update the args field directly */
{
struct mrb_ast_super_node *super_n = super_node(a);
if (!super_n->args) {
super_n->args = new_callargs(p, 0, 0, b);
}
else {
args_with_block(p, super_n->args, b);
}
}
break;
case NODE_YIELD:
/* Variable-sized yield nodes should generate an error when given a block */
yyerror(NULL, p, "block given to yield");
break;
case NODE_RETURN:
/* Variable-sized return nodes - recursively call with args */
{
struct mrb_ast_return_node *return_n = return_node(a);
if (return_n->args != NULL) {
call_with_block(p, return_n->args, b);
}
}
break;
case NODE_BREAK:
/* Variable-sized break nodes - recursively call with value */
{
struct mrb_ast_break_node *break_n = (struct mrb_ast_break_node*)a;
if (break_n->value != NULL) {
call_with_block(p, break_n->value, b);
}
}
break;
case NODE_NEXT:
/* Variable-sized next nodes - recursively call with value */
{
struct mrb_ast_next_node *next_n = (struct mrb_ast_next_node*)a;
if (next_n->value != NULL) {
call_with_block(p, next_n->value, b);
}
}
break;
case NODE_CALL:
/* Variable-sized call nodes - add block to existing args */
{
struct mrb_ast_call_node *call = call_node(a);
if (call->args && callargs_node(call->args)->block_arg) {
yyerror(NULL, p, "both block arg and actual block given");
return;
}
/* Use existing args and add block */
if (call->args) {
/* Modify existing callargs structure to add block */
args_with_block(p, call->args, b);
}
else {
/* Create new callargs with just the block */
call->args = new_callargs(p, NULL, NULL, b);
}
}
break;
default:
/* For other variable-sized nodes, do nothing */
break;
}
}
static node*
new_negate(parser_state *p, node *n)
{
struct mrb_ast_negate_node *negate_node = NEW_NODE(negate, NODE_NEGATE);
negate_node->operand = n;
return (node*)negate_node;
}
static node*
cond(node *n)
{
return n;
}
static node*
ret_args(parser_state *p, node *n)
{
/* Handle callargs structure - direct casting like new_args() */
struct mrb_ast_callargs *callargs = (struct mrb_ast_callargs*)n;
if (callargs->block_arg) {
yyerror(NULL, p, "block argument should not be given");
return NULL;
}
if (!callargs->regular_args) return NULL;
if (!callargs->regular_args->cdr) return callargs->regular_args->car;
return new_array(p, callargs->regular_args);
}
static void
assignable(parser_state *p, node *lhs)
{
switch (get_node_type(lhs)) {
case NODE_LVAR:
local_add(p, var_node(lhs)->symbol);
break;
case NODE_CONST:
if (p->in_def)
yyerror(NULL, p, "dynamic constant assignment");
break;
default:
/* Other node types don't need special handling in assignable */
break;
}
}
static node*
var_reference(parser_state *p, node *lhs)
{
/* Check if this is a variable-sized node */
if (node_type_p(lhs, NODE_LVAR)) {
mrb_sym sym = var_node(lhs)->symbol;
if (!local_var_p(p, sym)) {
node *n = new_fcall(p, sym, 0);
/* Don't free variable-sized nodes - they're managed by the parser allocator */
return n;
}
}
return lhs;
}
static node*
label_reference(parser_state *p, mrb_sym sym)
{
const char *name = mrb_sym_name(p->mrb, sym);
if (local_var_p(p, sym)) {
return new_lvar(p, sym);
}
else if (ISUPPER(name[0])) {
return new_const(p, sym);
}
else {
return new_fcall(p, sym, 0);
}
}
typedef enum mrb_string_type string_type;
typedef struct parser_lex_strterm {
int type;
int level;
int term;
int paren;
struct parser_lex_strterm *prev;
} parser_lex_strterm;
static parser_lex_strterm*
new_strterm(parser_state *p, string_type type, int term, int paren)
{
parser_lex_strterm *lex = (parser_lex_strterm*)parser_palloc(p, sizeof(parser_lex_strterm));
lex->type = type;
lex->level = 0;
lex->term = term;
lex->paren = paren;
lex->prev = p->lex_strterm;
return lex;
}
static void
end_strterm(parser_state *p)
{
parser_lex_strterm *term = p->lex_strterm->prev;
parser_pfree(p->lex_strterm);
p->lex_strterm = term;
}
static node*
push_strterm(parser_state *p)
{
node *n = cons((node*)p->lex_strterm, p->parsing_heredoc);
p->lex_strterm = NULL;
return n;
}
static void
pop_strterm(parser_state *p, node *n)
{
p->lex_strterm = (parser_lex_strterm*)n->car;
p->parsing_heredoc = n->cdr;
cons_free(n);
}
static parser_heredoc_info *
parsing_heredoc_info(parser_state *p)
{
node *nd = p->parsing_heredoc;
if (nd == NULL) return NULL;
/* mrb_assert(nd->car->car == NODE_HEREDOC); */
if (get_node_type(nd->car) == NODE_HEREDOC) {
/* Variable-sized heredoc node - return address of embedded info struct */
struct mrb_ast_heredoc_node *heredoc = (struct mrb_ast_heredoc_node*)nd->car;
return &heredoc->info;
}
return (parser_heredoc_info*)nd->car->cdr;
}
static void
heredoc_treat_nextline(parser_state *p)
{
if (p->heredocs_from_nextline == NULL) return;
if (p->parsing_heredoc && p->lex_strterm) {
append(p->heredocs_from_nextline, p->parsing_heredoc);
}
p->parsing_heredoc = p->heredocs_from_nextline;
p->lex_strterm = new_strterm(p, parsing_heredoc_info(p)->type, 0, 0);
p->heredocs_from_nextline = NULL;
}
static void
heredoc_end(parser_state *p)
{
p->parsing_heredoc = p->parsing_heredoc->cdr;
if (p->parsing_heredoc == NULL) {
p->lstate = EXPR_BEG;
end_strterm(p);
}
else {
/* next heredoc */
p->lex_strterm->type = parsing_heredoc_info(p)->type;
}
}
#define is_strterm_type(p,str_func) ((p)->lex_strterm->type & (str_func))
static void
prohibit_literals(parser_state *p, node *n)
{
if (n == 0) {
yyerror(NULL, p, "can't define singleton method for ().");
}
else {
enum node_type nt = get_node_type(n);
switch (nt) {
case NODE_INT:
case NODE_STR:
case NODE_XSTR:
case NODE_REGX:
case NODE_FLOAT:
case NODE_ARRAY:
case NODE_HEREDOC:
yyerror(NULL, p, "can't define singleton method for literals");
default:
break;
}
}
}
/* xxx ----------------------------- */
#line 2064 "y.tab.c"
# ifndef YY_CAST
# ifdef __cplusplus
# define YY_CAST(Type, Val) static_cast<Type> (Val)
# define YY_REINTERPRET_CAST(Type, Val) reinterpret_cast<Type> (Val)
# else
# define YY_CAST(Type, Val) ((Type) (Val))
# define YY_REINTERPRET_CAST(Type, Val) ((Type) (Val))
# endif
# endif
# ifndef YY_NULLPTR
# if defined __cplusplus
# if 201103L <= __cplusplus
# define YY_NULLPTR nullptr
# else
# define YY_NULLPTR 0
# endif
# else
# define YY_NULLPTR ((void*)0)
# endif
# endif
/* Debug traces. */
#ifndef YYDEBUG
# define YYDEBUG 0
#endif
#if YYDEBUG
extern int yydebug;
#endif
/* Token kinds. */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
enum yytokentype
{
YYEMPTY = -2,
YYEOF = 0, /* "end of file" */
YYerror = 256, /* error */
YYUNDEF = 257, /* "invalid token" */
keyword_class = 258, /* "'class'" */
keyword_module = 259, /* "'module'" */
keyword_def = 260, /* "'def'" */
keyword_begin = 261, /* "'begin'" */
keyword_if = 262, /* "'if'" */
keyword_unless = 263, /* "'unless'" */
keyword_while = 264, /* "'while'" */
keyword_until = 265, /* "'until'" */
keyword_for = 266, /* "'for'" */
keyword_undef = 267, /* "'undef'" */
keyword_rescue = 268, /* "'rescue'" */
keyword_ensure = 269, /* "'ensure'" */
keyword_end = 270, /* "'end'" */
keyword_then = 271, /* "'then'" */
keyword_elsif = 272, /* "'elsif'" */
keyword_else = 273, /* "'else'" */
keyword_case = 274, /* "'case'" */
keyword_when = 275, /* "'when'" */
keyword_break = 276, /* "'break'" */
keyword_next = 277, /* "'next'" */
keyword_redo = 278, /* "'redo'" */
keyword_retry = 279, /* "'retry'" */
keyword_in = 280, /* "'in'" */
keyword_do = 281, /* "'do'" */
keyword_do_cond = 282, /* "'do' for condition" */
keyword_do_block = 283, /* "'do' for block" */
keyword_do_LAMBDA = 284, /* "'do' for lambda" */
keyword_return = 285, /* "'return'" */
keyword_yield = 286, /* "'yield'" */
keyword_super = 287, /* "'super'" */
keyword_self = 288, /* "'self'" */
keyword_nil = 289, /* "'nil'" */
keyword_true = 290, /* "'true'" */
keyword_false = 291, /* "'false'" */
keyword_and = 292, /* "'and'" */
keyword_or = 293, /* "'or'" */
keyword_not = 294, /* "'not'" */
modifier_if = 295, /* "'if' modifier" */
modifier_unless = 296, /* "'unless' modifier" */
modifier_while = 297, /* "'while' modifier" */
modifier_until = 298, /* "'until' modifier" */
modifier_rescue = 299, /* "'rescue' modifier" */
keyword_alias = 300, /* "'alias'" */
keyword_BEGIN = 301, /* "'BEGIN'" */
keyword_END = 302, /* "'END'" */
keyword__LINE__ = 303, /* "'__LINE__'" */
keyword__FILE__ = 304, /* "'__FILE__'" */
keyword__ENCODING__ = 305, /* "'__ENCODING__'" */
tIDENTIFIER = 306, /* "local variable or method" */
tFID = 307, /* "method" */
tGVAR = 308, /* "global variable" */
tIVAR = 309, /* "instance variable" */
tCONSTANT = 310, /* "constant" */
tCVAR = 311, /* "class variable" */
tLABEL_TAG = 312, /* "label" */
tINTEGER = 313, /* "integer literal" */
tFLOAT = 314, /* "float literal" */
tCHAR = 315, /* "character literal" */
tXSTRING = 316, /* tXSTRING */
tREGEXP = 317, /* tREGEXP */
tSTRING = 318, /* tSTRING */
tSTRING_PART = 319, /* tSTRING_PART */
tSTRING_MID = 320, /* tSTRING_MID */
tNTH_REF = 321, /* tNTH_REF */
tBACK_REF = 322, /* tBACK_REF */
tREGEXP_END = 323, /* tREGEXP_END */
tNUMPARAM = 324, /* "numbered parameter" */
tUPLUS = 325, /* "unary plus" */
tUMINUS = 326, /* "unary minus" */
tCMP = 327, /* "<=>" */
tEQ = 328, /* "==" */
tEQQ = 329, /* "===" */
tNEQ = 330, /* "!=" */
tGEQ = 331, /* ">=" */
tLEQ = 332, /* "<=" */
tANDOP = 333, /* "&&" */
tOROP = 334, /* "||" */
tMATCH = 335, /* "=~" */
tNMATCH = 336, /* "!~" */
tDOT2 = 337, /* ".." */
tDOT3 = 338, /* "..." */
tBDOT2 = 339, /* tBDOT2 */
tBDOT3 = 340, /* tBDOT3 */
tAREF = 341, /* tAREF */
tASET = 342, /* tASET */
tLSHFT = 343, /* "<<" */
tRSHFT = 344, /* ">>" */
tCOLON2 = 345, /* "::" */
tCOLON3 = 346, /* tCOLON3 */
tOP_ASGN = 347, /* tOP_ASGN */
tASSOC = 348, /* "=>" */
tLPAREN = 349, /* tLPAREN */
tLPAREN_ARG = 350, /* "(" */
tRPAREN = 351, /* ")" */
tLBRACK = 352, /* "[" */
tLBRACE = 353, /* tLBRACE */
tLBRACE_ARG = 354, /* "{" */
tSTAR = 355, /* "*" */
tPOW = 356, /* tPOW */
tDSTAR = 357, /* "**" */
tAMPER = 358, /* "&" */
tLAMBDA = 359, /* "->" */
tANDDOT = 360, /* "&." */
tSYMBEG = 361, /* "symbol" */
tSTRING_BEG = 362, /* "string literal" */
tXSTRING_BEG = 363, /* tXSTRING_BEG */
tSTRING_DVAR = 364, /* tSTRING_DVAR */
tREGEXP_BEG = 365, /* tREGEXP_BEG */
tWORDS_BEG = 366, /* tWORDS_BEG */
tSYMBOLS_BEG = 367, /* tSYMBOLS_BEG */
tLAMBEG = 368, /* tLAMBEG */
tHEREDOC_BEG = 369, /* "here document" */
tHEREDOC_END = 370, /* tHEREDOC_END */
tLITERAL_DELIM = 371, /* tLITERAL_DELIM */
tHD_LITERAL_DELIM = 372, /* tHD_LITERAL_DELIM */
tHD_STRING_PART = 373, /* tHD_STRING_PART */
tHD_STRING_MID = 374, /* tHD_STRING_MID */
tLOWEST = 375, /* tLOWEST */
tUMINUS_NUM = 376, /* tUMINUS_NUM */
tLAST_TOKEN = 377 /* tLAST_TOKEN */
};
typedef enum yytokentype yytoken_kind_t;
#endif
/* Value type. */
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
union YYSTYPE
{
#line 2005 "parse.y"
node *nd;
mrb_sym id;
int num;
stack_type stack;
const struct vtable *vars;
#line 2241 "y.tab.c"
};
typedef union YYSTYPE YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
# define YYSTYPE_IS_DECLARED 1
#endif
/* Location type. */
#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
typedef struct YYLTYPE YYLTYPE;
struct YYLTYPE
{
int first_line;
int first_column;
int last_line;
int last_column;
};
# define YYLTYPE_IS_DECLARED 1
# define YYLTYPE_IS_TRIVIAL 1
#endif
int yyparse (parser_state *p);
/* Symbol kind. */
enum yysymbol_kind_t
{
YYSYMBOL_YYEMPTY = -2,
YYSYMBOL_YYEOF = 0, /* "end of file" */
YYSYMBOL_YYerror = 1, /* error */
YYSYMBOL_YYUNDEF = 2, /* "invalid token" */
YYSYMBOL_keyword_class = 3, /* "'class'" */
YYSYMBOL_keyword_module = 4, /* "'module'" */
YYSYMBOL_keyword_def = 5, /* "'def'" */
YYSYMBOL_keyword_begin = 6, /* "'begin'" */
YYSYMBOL_keyword_if = 7, /* "'if'" */
YYSYMBOL_keyword_unless = 8, /* "'unless'" */
YYSYMBOL_keyword_while = 9, /* "'while'" */
YYSYMBOL_keyword_until = 10, /* "'until'" */
YYSYMBOL_keyword_for = 11, /* "'for'" */
YYSYMBOL_keyword_undef = 12, /* "'undef'" */
YYSYMBOL_keyword_rescue = 13, /* "'rescue'" */
YYSYMBOL_keyword_ensure = 14, /* "'ensure'" */
YYSYMBOL_keyword_end = 15, /* "'end'" */
YYSYMBOL_keyword_then = 16, /* "'then'" */
YYSYMBOL_keyword_elsif = 17, /* "'elsif'" */
YYSYMBOL_keyword_else = 18, /* "'else'" */
YYSYMBOL_keyword_case = 19, /* "'case'" */
YYSYMBOL_keyword_when = 20, /* "'when'" */
YYSYMBOL_keyword_break = 21, /* "'break'" */
YYSYMBOL_keyword_next = 22, /* "'next'" */
YYSYMBOL_keyword_redo = 23, /* "'redo'" */
YYSYMBOL_keyword_retry = 24, /* "'retry'" */
YYSYMBOL_keyword_in = 25, /* "'in'" */
YYSYMBOL_keyword_do = 26, /* "'do'" */
YYSYMBOL_keyword_do_cond = 27, /* "'do' for condition" */
YYSYMBOL_keyword_do_block = 28, /* "'do' for block" */
YYSYMBOL_keyword_do_LAMBDA = 29, /* "'do' for lambda" */
YYSYMBOL_keyword_return = 30, /* "'return'" */
YYSYMBOL_keyword_yield = 31, /* "'yield'" */
YYSYMBOL_keyword_super = 32, /* "'super'" */
YYSYMBOL_keyword_self = 33, /* "'self'" */
YYSYMBOL_keyword_nil = 34, /* "'nil'" */
YYSYMBOL_keyword_true = 35, /* "'true'" */
YYSYMBOL_keyword_false = 36, /* "'false'" */
YYSYMBOL_keyword_and = 37, /* "'and'" */
YYSYMBOL_keyword_or = 38, /* "'or'" */
YYSYMBOL_keyword_not = 39, /* "'not'" */
YYSYMBOL_modifier_if = 40, /* "'if' modifier" */
YYSYMBOL_modifier_unless = 41, /* "'unless' modifier" */
YYSYMBOL_modifier_while = 42, /* "'while' modifier" */
YYSYMBOL_modifier_until = 43, /* "'until' modifier" */
YYSYMBOL_modifier_rescue = 44, /* "'rescue' modifier" */
YYSYMBOL_keyword_alias = 45, /* "'alias'" */
YYSYMBOL_keyword_BEGIN = 46, /* "'BEGIN'" */
YYSYMBOL_keyword_END = 47, /* "'END'" */
YYSYMBOL_keyword__LINE__ = 48, /* "'__LINE__'" */
YYSYMBOL_keyword__FILE__ = 49, /* "'__FILE__'" */
YYSYMBOL_keyword__ENCODING__ = 50, /* "'__ENCODING__'" */
YYSYMBOL_tIDENTIFIER = 51, /* "local variable or method" */
YYSYMBOL_tFID = 52, /* "method" */
YYSYMBOL_tGVAR = 53, /* "global variable" */
YYSYMBOL_tIVAR = 54, /* "instance variable" */
YYSYMBOL_tCONSTANT = 55, /* "constant" */
YYSYMBOL_tCVAR = 56, /* "class variable" */
YYSYMBOL_tLABEL_TAG = 57, /* "label" */
YYSYMBOL_tINTEGER = 58, /* "integer literal" */
YYSYMBOL_tFLOAT = 59, /* "float literal" */
YYSYMBOL_tCHAR = 60, /* "character literal" */
YYSYMBOL_tXSTRING = 61, /* tXSTRING */
YYSYMBOL_tREGEXP = 62, /* tREGEXP */
YYSYMBOL_tSTRING = 63, /* tSTRING */
YYSYMBOL_tSTRING_PART = 64, /* tSTRING_PART */
YYSYMBOL_tSTRING_MID = 65, /* tSTRING_MID */
YYSYMBOL_tNTH_REF = 66, /* tNTH_REF */
YYSYMBOL_tBACK_REF = 67, /* tBACK_REF */
YYSYMBOL_tREGEXP_END = 68, /* tREGEXP_END */
YYSYMBOL_tNUMPARAM = 69, /* "numbered parameter" */
YYSYMBOL_tUPLUS = 70, /* "unary plus" */
YYSYMBOL_tUMINUS = 71, /* "unary minus" */
YYSYMBOL_tCMP = 72, /* "<=>" */
YYSYMBOL_tEQ = 73, /* "==" */
YYSYMBOL_tEQQ = 74, /* "===" */
YYSYMBOL_tNEQ = 75, /* "!=" */
YYSYMBOL_tGEQ = 76, /* ">=" */
YYSYMBOL_tLEQ = 77, /* "<=" */
YYSYMBOL_tANDOP = 78, /* "&&" */
YYSYMBOL_tOROP = 79, /* "||" */
YYSYMBOL_tMATCH = 80, /* "=~" */
YYSYMBOL_tNMATCH = 81, /* "!~" */
YYSYMBOL_tDOT2 = 82, /* ".." */
YYSYMBOL_tDOT3 = 83, /* "..." */
YYSYMBOL_tBDOT2 = 84, /* tBDOT2 */
YYSYMBOL_tBDOT3 = 85, /* tBDOT3 */
YYSYMBOL_tAREF = 86, /* tAREF */
YYSYMBOL_tASET = 87, /* tASET */
YYSYMBOL_tLSHFT = 88, /* "<<" */
YYSYMBOL_tRSHFT = 89, /* ">>" */
YYSYMBOL_tCOLON2 = 90, /* "::" */
YYSYMBOL_tCOLON3 = 91, /* tCOLON3 */
YYSYMBOL_tOP_ASGN = 92, /* tOP_ASGN */
YYSYMBOL_tASSOC = 93, /* "=>" */
YYSYMBOL_tLPAREN = 94, /* tLPAREN */
YYSYMBOL_tLPAREN_ARG = 95, /* "(" */
YYSYMBOL_tRPAREN = 96, /* ")" */
YYSYMBOL_tLBRACK = 97, /* "[" */
YYSYMBOL_tLBRACE = 98, /* tLBRACE */
YYSYMBOL_tLBRACE_ARG = 99, /* "{" */
YYSYMBOL_tSTAR = 100, /* "*" */
YYSYMBOL_tPOW = 101, /* tPOW */
YYSYMBOL_tDSTAR = 102, /* "**" */
YYSYMBOL_tAMPER = 103, /* "&" */
YYSYMBOL_tLAMBDA = 104, /* "->" */
YYSYMBOL_tANDDOT = 105, /* "&." */
YYSYMBOL_tSYMBEG = 106, /* "symbol" */
YYSYMBOL_tSTRING_BEG = 107, /* "string literal" */
YYSYMBOL_tXSTRING_BEG = 108, /* tXSTRING_BEG */
YYSYMBOL_tSTRING_DVAR = 109, /* tSTRING_DVAR */
YYSYMBOL_tREGEXP_BEG = 110, /* tREGEXP_BEG */
YYSYMBOL_tWORDS_BEG = 111, /* tWORDS_BEG */
YYSYMBOL_tSYMBOLS_BEG = 112, /* tSYMBOLS_BEG */
YYSYMBOL_tLAMBEG = 113, /* tLAMBEG */
YYSYMBOL_tHEREDOC_BEG = 114, /* "here document" */
YYSYMBOL_tHEREDOC_END = 115, /* tHEREDOC_END */
YYSYMBOL_tLITERAL_DELIM = 116, /* tLITERAL_DELIM */
YYSYMBOL_tHD_LITERAL_DELIM = 117, /* tHD_LITERAL_DELIM */
YYSYMBOL_tHD_STRING_PART = 118, /* tHD_STRING_PART */
YYSYMBOL_tHD_STRING_MID = 119, /* tHD_STRING_MID */
YYSYMBOL_tLOWEST = 120, /* tLOWEST */
YYSYMBOL_121_ = 121, /* '=' */
YYSYMBOL_122_ = 122, /* '?' */
YYSYMBOL_123_ = 123, /* ':' */
YYSYMBOL_124_ = 124, /* '>' */
YYSYMBOL_125_ = 125, /* '<' */
YYSYMBOL_126_ = 126, /* '|' */
YYSYMBOL_127_ = 127, /* '^' */
YYSYMBOL_128_ = 128, /* '&' */
YYSYMBOL_129_ = 129, /* '+' */
YYSYMBOL_130_ = 130, /* '-' */
YYSYMBOL_131_ = 131, /* '*' */
YYSYMBOL_132_ = 132, /* '/' */
YYSYMBOL_133_ = 133, /* '%' */
YYSYMBOL_tUMINUS_NUM = 134, /* tUMINUS_NUM */
YYSYMBOL_135_ = 135, /* '!' */
YYSYMBOL_136_ = 136, /* '~' */
YYSYMBOL_tLAST_TOKEN = 137, /* tLAST_TOKEN */
YYSYMBOL_138_ = 138, /* '{' */
YYSYMBOL_139_ = 139, /* '}' */
YYSYMBOL_140_ = 140, /* '[' */
YYSYMBOL_141_ = 141, /* ']' */
YYSYMBOL_142_ = 142, /* ',' */
YYSYMBOL_143_ = 143, /* '`' */
YYSYMBOL_144_ = 144, /* '(' */
YYSYMBOL_145_ = 145, /* ')' */
YYSYMBOL_146_ = 146, /* ';' */
YYSYMBOL_147_ = 147, /* '.' */
YYSYMBOL_148_n_ = 148, /* '\n' */
YYSYMBOL_YYACCEPT = 149, /* $accept */
YYSYMBOL_program = 150, /* program */
YYSYMBOL_151_1 = 151, /* $@1 */
YYSYMBOL_top_compstmt = 152, /* top_compstmt */
YYSYMBOL_top_stmts = 153, /* top_stmts */
YYSYMBOL_top_stmt = 154, /* top_stmt */
YYSYMBOL_155_2 = 155, /* @2 */
YYSYMBOL_bodystmt = 156, /* bodystmt */
YYSYMBOL_compstmt = 157, /* compstmt */
YYSYMBOL_stmts = 158, /* stmts */
YYSYMBOL_stmt = 159, /* stmt */
YYSYMBOL_160_3 = 160, /* $@3 */
YYSYMBOL_command_asgn = 161, /* command_asgn */
YYSYMBOL_command_rhs = 162, /* command_rhs */
YYSYMBOL_expr = 163, /* expr */
YYSYMBOL_164_4 = 164, /* $@4 */
YYSYMBOL_165_5 = 165, /* $@5 */
YYSYMBOL_defn_head = 166, /* defn_head */
YYSYMBOL_defs_head = 167, /* defs_head */
YYSYMBOL_168_6 = 168, /* $@6 */
YYSYMBOL_expr_value = 169, /* expr_value */
YYSYMBOL_command_call = 170, /* command_call */
YYSYMBOL_block_command = 171, /* block_command */
YYSYMBOL_cmd_brace_block = 172, /* cmd_brace_block */
YYSYMBOL_173_7 = 173, /* $@7 */
YYSYMBOL_command = 174, /* command */
YYSYMBOL_mlhs = 175, /* mlhs */
YYSYMBOL_mlhs_inner = 176, /* mlhs_inner */
YYSYMBOL_mlhs_basic = 177, /* mlhs_basic */
YYSYMBOL_mlhs_item = 178, /* mlhs_item */
YYSYMBOL_mlhs_list = 179, /* mlhs_list */
YYSYMBOL_mlhs_post = 180, /* mlhs_post */
YYSYMBOL_mlhs_node = 181, /* mlhs_node */
YYSYMBOL_lhs = 182, /* lhs */
YYSYMBOL_cname = 183, /* cname */
YYSYMBOL_cpath = 184, /* cpath */
YYSYMBOL_fname = 185, /* fname */
YYSYMBOL_fsym = 186, /* fsym */
YYSYMBOL_undef_list = 187, /* undef_list */
YYSYMBOL_188_8 = 188, /* $@8 */
YYSYMBOL_op = 189, /* op */
YYSYMBOL_reswords = 190, /* reswords */
YYSYMBOL_arg = 191, /* arg */
YYSYMBOL_aref_args = 192, /* aref_args */
YYSYMBOL_arg_rhs = 193, /* arg_rhs */
YYSYMBOL_paren_args = 194, /* paren_args */
YYSYMBOL_opt_paren_args = 195, /* opt_paren_args */
YYSYMBOL_opt_call_args = 196, /* opt_call_args */
YYSYMBOL_call_args = 197, /* call_args */
YYSYMBOL_command_args = 198, /* command_args */
YYSYMBOL_199_9 = 199, /* @9 */
YYSYMBOL_block_arg = 200, /* block_arg */
YYSYMBOL_opt_block_arg = 201, /* opt_block_arg */
YYSYMBOL_comma = 202, /* comma */
YYSYMBOL_args = 203, /* args */
YYSYMBOL_mrhs = 204, /* mrhs */
YYSYMBOL_primary = 205, /* primary */
YYSYMBOL_206_10 = 206, /* @10 */
YYSYMBOL_207_11 = 207, /* @11 */
YYSYMBOL_208_12 = 208, /* $@12 */
YYSYMBOL_209_13 = 209, /* $@13 */
YYSYMBOL_210_14 = 210, /* @14 */
YYSYMBOL_211_15 = 211, /* @15 */
YYSYMBOL_212_16 = 212, /* $@16 */
YYSYMBOL_213_17 = 213, /* $@17 */
YYSYMBOL_214_18 = 214, /* $@18 */
YYSYMBOL_215_19 = 215, /* $@19 */
YYSYMBOL_216_20 = 216, /* $@20 */
YYSYMBOL_217_21 = 217, /* $@21 */
YYSYMBOL_218_22 = 218, /* @22 */
YYSYMBOL_219_23 = 219, /* @23 */
YYSYMBOL_220_24 = 220, /* @24 */
YYSYMBOL_221_25 = 221, /* @25 */
YYSYMBOL_primary_value = 222, /* primary_value */
YYSYMBOL_then = 223, /* then */
YYSYMBOL_do = 224, /* do */
YYSYMBOL_if_tail = 225, /* if_tail */
YYSYMBOL_opt_else = 226, /* opt_else */
YYSYMBOL_for_var = 227, /* for_var */
YYSYMBOL_f_margs = 228, /* f_margs */
YYSYMBOL_229_26 = 229, /* $@26 */
YYSYMBOL_block_args_tail = 230, /* block_args_tail */
YYSYMBOL_opt_block_args_tail = 231, /* opt_block_args_tail */
YYSYMBOL_block_param = 232, /* block_param */
YYSYMBOL_opt_block_param = 233, /* opt_block_param */
YYSYMBOL_block_param_def = 234, /* block_param_def */
YYSYMBOL_235_27 = 235, /* $@27 */
YYSYMBOL_opt_bv_decl = 236, /* opt_bv_decl */
YYSYMBOL_bv_decls = 237, /* bv_decls */
YYSYMBOL_bvar = 238, /* bvar */
YYSYMBOL_f_larglist = 239, /* f_larglist */
YYSYMBOL_lambda_body = 240, /* lambda_body */
YYSYMBOL_do_block = 241, /* do_block */
YYSYMBOL_242_28 = 242, /* @28 */
YYSYMBOL_block_call = 243, /* block_call */
YYSYMBOL_method_call = 244, /* method_call */
YYSYMBOL_brace_block = 245, /* brace_block */
YYSYMBOL_246_29 = 246, /* @29 */
YYSYMBOL_247_30 = 247, /* @30 */
YYSYMBOL_case_body = 248, /* case_body */
YYSYMBOL_cases = 249, /* cases */
YYSYMBOL_in_clauses = 250, /* in_clauses */
YYSYMBOL_251_31 = 251, /* $@31 */
YYSYMBOL_252_32 = 252, /* $@32 */
YYSYMBOL_253_33 = 253, /* $@33 */
YYSYMBOL_p_expr = 254, /* p_expr */
YYSYMBOL_p_args_head = 255, /* p_args_head */
YYSYMBOL_p_args_post = 256, /* p_args_post */
YYSYMBOL_p_as = 257, /* p_as */
YYSYMBOL_p_alt = 258, /* p_alt */
YYSYMBOL_p_value = 259, /* p_value */
YYSYMBOL_p_array = 260, /* p_array */
YYSYMBOL_p_array_body = 261, /* p_array_body */
YYSYMBOL_p_array_elems = 262, /* p_array_elems */
YYSYMBOL_p_rest = 263, /* p_rest */
YYSYMBOL_p_const = 264, /* p_const */
YYSYMBOL_p_hash = 265, /* p_hash */
YYSYMBOL_p_hash_body = 266, /* p_hash_body */
YYSYMBOL_p_hash_elems = 267, /* p_hash_elems */
YYSYMBOL_p_hash_elem = 268, /* p_hash_elem */
YYSYMBOL_p_kwrest = 269, /* p_kwrest */
YYSYMBOL_p_var = 270, /* p_var */
YYSYMBOL_opt_rescue = 271, /* opt_rescue */
YYSYMBOL_exc_list = 272, /* exc_list */
YYSYMBOL_exc_var = 273, /* exc_var */
YYSYMBOL_opt_ensure = 274, /* opt_ensure */
YYSYMBOL_literal = 275, /* literal */
YYSYMBOL_string = 276, /* string */
YYSYMBOL_string_fragment = 277, /* string_fragment */
YYSYMBOL_string_rep = 278, /* string_rep */
YYSYMBOL_string_interp = 279, /* string_interp */
YYSYMBOL_280_34 = 280, /* @34 */
YYSYMBOL_xstring = 281, /* xstring */
YYSYMBOL_regexp = 282, /* regexp */
YYSYMBOL_heredoc = 283, /* heredoc */
YYSYMBOL_heredoc_bodies = 284, /* heredoc_bodies */
YYSYMBOL_heredoc_body = 285, /* heredoc_body */
YYSYMBOL_heredoc_string_rep = 286, /* heredoc_string_rep */
YYSYMBOL_heredoc_string_interp = 287, /* heredoc_string_interp */
YYSYMBOL_288_35 = 288, /* @35 */
YYSYMBOL_words = 289, /* words */
YYSYMBOL_symbol = 290, /* symbol */
YYSYMBOL_basic_symbol = 291, /* basic_symbol */
YYSYMBOL_sym = 292, /* sym */
YYSYMBOL_symbols = 293, /* symbols */
YYSYMBOL_numeric = 294, /* numeric */
YYSYMBOL_variable = 295, /* variable */
YYSYMBOL_var_lhs = 296, /* var_lhs */
YYSYMBOL_var_ref = 297, /* var_ref */
YYSYMBOL_backref = 298, /* backref */
YYSYMBOL_superclass = 299, /* superclass */
YYSYMBOL_300_36 = 300, /* $@36 */
YYSYMBOL_f_opt_arglist_paren = 301, /* f_opt_arglist_paren */
YYSYMBOL_f_arglist_paren = 302, /* f_arglist_paren */
YYSYMBOL_f_arglist = 303, /* f_arglist */
YYSYMBOL_f_label = 304, /* f_label */
YYSYMBOL_f_kw = 305, /* f_kw */
YYSYMBOL_f_block_kw = 306, /* f_block_kw */
YYSYMBOL_f_block_kwarg = 307, /* f_block_kwarg */
YYSYMBOL_f_kwarg = 308, /* f_kwarg */
YYSYMBOL_kwrest_mark = 309, /* kwrest_mark */
YYSYMBOL_f_kwrest = 310, /* f_kwrest */
YYSYMBOL_args_tail = 311, /* args_tail */
YYSYMBOL_opt_args_tail = 312, /* opt_args_tail */
YYSYMBOL_f_args = 313, /* f_args */
YYSYMBOL_f_bad_arg = 314, /* f_bad_arg */
YYSYMBOL_f_norm_arg = 315, /* f_norm_arg */
YYSYMBOL_f_arg_item = 316, /* f_arg_item */
YYSYMBOL_317_37 = 317, /* @37 */
YYSYMBOL_f_arg = 318, /* f_arg */
YYSYMBOL_f_opt_asgn = 319, /* f_opt_asgn */
YYSYMBOL_f_opt = 320, /* f_opt */
YYSYMBOL_f_block_opt = 321, /* f_block_opt */
YYSYMBOL_f_block_optarg = 322, /* f_block_optarg */
YYSYMBOL_f_optarg = 323, /* f_optarg */
YYSYMBOL_restarg_mark = 324, /* restarg_mark */
YYSYMBOL_f_rest_arg = 325, /* f_rest_arg */
YYSYMBOL_blkarg_mark = 326, /* blkarg_mark */
YYSYMBOL_f_block_arg = 327, /* f_block_arg */
YYSYMBOL_opt_f_block_arg = 328, /* opt_f_block_arg */
YYSYMBOL_singleton = 329, /* singleton */
YYSYMBOL_330_38 = 330, /* $@38 */
YYSYMBOL_assoc_list = 331, /* assoc_list */
YYSYMBOL_assocs = 332, /* assocs */
YYSYMBOL_assoc = 333, /* assoc */
YYSYMBOL_operation = 334, /* operation */
YYSYMBOL_operation2 = 335, /* operation2 */
YYSYMBOL_operation3 = 336, /* operation3 */
YYSYMBOL_dot_or_colon = 337, /* dot_or_colon */
YYSYMBOL_call_op = 338, /* call_op */
YYSYMBOL_call_op2 = 339, /* call_op2 */
YYSYMBOL_opt_terms = 340, /* opt_terms */
YYSYMBOL_opt_nl = 341, /* opt_nl */
YYSYMBOL_rparen = 342, /* rparen */
YYSYMBOL_trailer = 343, /* trailer */
YYSYMBOL_term = 344, /* term */
YYSYMBOL_nl = 345, /* nl */
YYSYMBOL_terms = 346, /* terms */
YYSYMBOL_none = 347 /* none */
};
typedef enum yysymbol_kind_t yysymbol_kind_t;
#ifdef short
# undef short
#endif
/* On compilers that do not define __PTRDIFF_MAX__ etc., make sure
<limits.h> and (if available) <stdint.h> are included
so that the code can choose integer types of a good width. */
#ifndef __PTRDIFF_MAX__
# include <limits.h> /* INFRINGES ON USER NAME SPACE */
# if defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__
# include <stdint.h> /* INFRINGES ON USER NAME SPACE */
# define YY_STDINT_H
# endif
#endif
/* Narrow types that promote to a signed type and that can represent a
signed or unsigned integer of at least N bits. In tables they can
save space and decrease cache pressure. Promoting to a signed type
helps avoid bugs in integer arithmetic. */
#ifdef __INT_LEAST8_MAX__
typedef __INT_LEAST8_TYPE__ yytype_int8;
#elif defined YY_STDINT_H
typedef int_least8_t yytype_int8;
#else
typedef signed char yytype_int8;
#endif
#ifdef __INT_LEAST16_MAX__
typedef __INT_LEAST16_TYPE__ yytype_int16;
#elif defined YY_STDINT_H
typedef int_least16_t yytype_int16;
#else
typedef short yytype_int16;
#endif
/* Work around bug in HP-UX 11.23, which defines these macros
incorrectly for preprocessor constants. This workaround can likely
be removed in 2023, as HPE has promised support for HP-UX 11.23
(aka HP-UX 11i v2) only through the end of 2022; see Table 2 of
<https://h20195.www2.hpe.com/V2/getpdf.aspx/4AA4-7673ENW.pdf>. */
#ifdef __hpux
# undef UINT_LEAST8_MAX
# undef UINT_LEAST16_MAX
# define UINT_LEAST8_MAX 255
# define UINT_LEAST16_MAX 65535
#endif
#if defined __UINT_LEAST8_MAX__ && __UINT_LEAST8_MAX__ <= __INT_MAX__
typedef __UINT_LEAST8_TYPE__ yytype_uint8;
#elif (!defined __UINT_LEAST8_MAX__ && defined YY_STDINT_H \
&& UINT_LEAST8_MAX <= INT_MAX)
typedef uint_least8_t yytype_uint8;
#elif !defined __UINT_LEAST8_MAX__ && UCHAR_MAX <= INT_MAX
typedef unsigned char yytype_uint8;
#else
typedef short yytype_uint8;
#endif
#if defined __UINT_LEAST16_MAX__ && __UINT_LEAST16_MAX__ <= __INT_MAX__
typedef __UINT_LEAST16_TYPE__ yytype_uint16;
#elif (!defined __UINT_LEAST16_MAX__ && defined YY_STDINT_H \
&& UINT_LEAST16_MAX <= INT_MAX)
typedef uint_least16_t yytype_uint16;
#elif !defined __UINT_LEAST16_MAX__ && USHRT_MAX <= INT_MAX
typedef unsigned short yytype_uint16;
#else
typedef int yytype_uint16;
#endif
#ifndef YYPTRDIFF_T
# if defined __PTRDIFF_TYPE__ && defined __PTRDIFF_MAX__
# define YYPTRDIFF_T __PTRDIFF_TYPE__
# define YYPTRDIFF_MAXIMUM __PTRDIFF_MAX__
# elif defined PTRDIFF_MAX
# ifndef ptrdiff_t
# include <stddef.h> /* INFRINGES ON USER NAME SPACE */
# endif
# define YYPTRDIFF_T ptrdiff_t
# define YYPTRDIFF_MAXIMUM PTRDIFF_MAX
# else
# define YYPTRDIFF_T long
# define YYPTRDIFF_MAXIMUM LONG_MAX
# endif
#endif
#ifndef YYSIZE_T
# ifdef __SIZE_TYPE__
# define YYSIZE_T __SIZE_TYPE__
# elif defined size_t
# define YYSIZE_T size_t
# elif defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__
# include <stddef.h> /* INFRINGES ON USER NAME SPACE */
# define YYSIZE_T size_t
# else
# define YYSIZE_T unsigned
# endif
#endif
#define YYSIZE_MAXIMUM \
YY_CAST (YYPTRDIFF_T, \
(YYPTRDIFF_MAXIMUM < YY_CAST (YYSIZE_T, -1) \
? YYPTRDIFF_MAXIMUM \
: YY_CAST (YYSIZE_T, -1)))
#define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X))
/* Stored state numbers (used for stacks). */
typedef yytype_int16 yy_state_t;
/* State numbers in computations. */
typedef int yy_state_fast_t;
#ifndef YY_
# if defined YYENABLE_NLS && YYENABLE_NLS
# if ENABLE_NLS
# include <libintl.h> /* INFRINGES ON USER NAME SPACE */
# define YY_(Msgid) dgettext ("bison-runtime", Msgid)
# endif
# endif
# ifndef YY_
# define YY_(Msgid) Msgid
# endif
#endif
#ifndef YY_ATTRIBUTE_PURE
# if defined __GNUC__ && 2 < __GNUC__ + (96 <= __GNUC_MINOR__)
# define YY_ATTRIBUTE_PURE __attribute__ ((__pure__))
# else
# define YY_ATTRIBUTE_PURE
# endif
#endif
#ifndef YY_ATTRIBUTE_UNUSED
# if defined __GNUC__ && 2 < __GNUC__ + (7 <= __GNUC_MINOR__)
# define YY_ATTRIBUTE_UNUSED __attribute__ ((__unused__))
# else
# define YY_ATTRIBUTE_UNUSED
# endif
#endif
/* Suppress unused-variable warnings by "using" E. */
#if ! defined lint || defined __GNUC__
# define YY_USE(E) ((void) (E))
#else
# define YY_USE(E) /* empty */
#endif
/* Suppress an incorrect diagnostic about yylval being uninitialized. */
#if defined __GNUC__ && ! defined __ICC && 406 <= __GNUC__ * 100 + __GNUC_MINOR__
# if __GNUC__ * 100 + __GNUC_MINOR__ < 407
# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
_Pragma ("GCC diagnostic push") \
_Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")
# else
# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
_Pragma ("GCC diagnostic push") \
_Pragma ("GCC diagnostic ignored \"-Wuninitialized\"") \
_Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
# endif
# define YY_IGNORE_MAYBE_UNINITIALIZED_END \
_Pragma ("GCC diagnostic pop")
#else
# define YY_INITIAL_VALUE(Value) Value
#endif
#ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
# define YY_IGNORE_MAYBE_UNINITIALIZED_END
#endif
#ifndef YY_INITIAL_VALUE
# define YY_INITIAL_VALUE(Value) /* Nothing. */
#endif
#if defined __cplusplus && defined __GNUC__ && ! defined __ICC && 6 <= __GNUC__
# define YY_IGNORE_USELESS_CAST_BEGIN \
_Pragma ("GCC diagnostic push") \
_Pragma ("GCC diagnostic ignored \"-Wuseless-cast\"")
# define YY_IGNORE_USELESS_CAST_END \
_Pragma ("GCC diagnostic pop")
#endif
#ifndef YY_IGNORE_USELESS_CAST_BEGIN
# define YY_IGNORE_USELESS_CAST_BEGIN
# define YY_IGNORE_USELESS_CAST_END
#endif
#define YY_ASSERT(E) ((void) (0 && (E)))
#if 1
/* The parser invokes alloca or malloc; define the necessary symbols. */
# ifdef YYSTACK_USE_ALLOCA
# if YYSTACK_USE_ALLOCA
# ifdef __GNUC__
# define YYSTACK_ALLOC __builtin_alloca
# elif defined __BUILTIN_VA_ARG_INCR
# include <alloca.h> /* INFRINGES ON USER NAME SPACE */
# elif defined _AIX
# define YYSTACK_ALLOC __alloca
# elif defined _MSC_VER
# include <malloc.h> /* INFRINGES ON USER NAME SPACE */
# define alloca _alloca
# else
# define YYSTACK_ALLOC alloca
# if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
/* Use EXIT_SUCCESS as a witness for stdlib.h. */
# ifndef EXIT_SUCCESS
# define EXIT_SUCCESS 0
# endif
# endif
# endif
# endif
# endif
# ifdef YYSTACK_ALLOC
/* Pacify GCC's 'empty if-body' warning. */
# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
# ifndef YYSTACK_ALLOC_MAXIMUM
/* The OS might guarantee only one guard page at the bottom of the stack,
and a page size can be as small as 4096 bytes. So we cannot safely
invoke alloca (N) if N exceeds 4096. Use a slightly smaller number
to allow for a few compiler-allocated temporary stack slots. */
# define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
# endif
# else
# define YYSTACK_ALLOC YYMALLOC
# define YYSTACK_FREE YYFREE
# ifndef YYSTACK_ALLOC_MAXIMUM
# define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
# endif
# if (defined __cplusplus && ! defined EXIT_SUCCESS \
&& ! ((defined YYMALLOC || defined malloc) \
&& (defined YYFREE || defined free)))
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
# ifndef EXIT_SUCCESS
# define EXIT_SUCCESS 0
# endif
# endif
# ifndef YYMALLOC
# define YYMALLOC malloc
# if ! defined malloc && ! defined EXIT_SUCCESS
void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
# endif
# endif
# ifndef YYFREE
# define YYFREE free
# if ! defined free && ! defined EXIT_SUCCESS
void free (void *); /* INFRINGES ON USER NAME SPACE */
# endif
# endif
# endif
#endif /* 1 */
#if (! defined yyoverflow \
&& (! defined __cplusplus \
|| (defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL \
&& defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
/* A type that is properly aligned for any stack member. */
union yyalloc
{
yy_state_t yyss_alloc;
YYSTYPE yyvs_alloc;
YYLTYPE yyls_alloc;
};
/* The size of the maximum gap between one aligned stack and the next. */
# define YYSTACK_GAP_MAXIMUM (YYSIZEOF (union yyalloc) - 1)
/* The size of an array large to enough to hold all stacks, each with
N elements. */
# define YYSTACK_BYTES(N) \
((N) * (YYSIZEOF (yy_state_t) + YYSIZEOF (YYSTYPE) \
+ YYSIZEOF (YYLTYPE)) \
+ 2 * YYSTACK_GAP_MAXIMUM)
# define YYCOPY_NEEDED 1
/* Relocate STACK from its old location to the new one. The
local variables YYSIZE and YYSTACKSIZE give the old and new number of
elements in the stack, and YYPTR gives the new location of the
stack. Advance YYPTR to a properly aligned location for the next
stack. */
# define YYSTACK_RELOCATE(Stack_alloc, Stack) \
do \
{ \
YYPTRDIFF_T yynewbytes; \
YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
Stack = &yyptr->Stack_alloc; \
yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \
yyptr += yynewbytes / YYSIZEOF (*yyptr); \
} \
while (0)
#endif
#if defined YYCOPY_NEEDED && YYCOPY_NEEDED
/* Copy COUNT objects from SRC to DST. The source and destination do
not overlap. */
# ifndef YYCOPY
# if defined __GNUC__ && 1 < __GNUC__
# define YYCOPY(Dst, Src, Count) \
__builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
# else
# define YYCOPY(Dst, Src, Count) \
do \
{ \
YYPTRDIFF_T yyi; \
for (yyi = 0; yyi < (Count); yyi++) \
(Dst)[yyi] = (Src)[yyi]; \
} \
while (0)
# endif
# endif
#endif /* !YYCOPY_NEEDED */
/* YYFINAL -- State number of the termination state. */
#define YYFINAL 3
/* YYLAST -- Last index in YYTABLE. */
#define YYLAST 13855
/* YYNTOKENS -- Number of terminals. */
#define YYNTOKENS 149
/* YYNNTS -- Number of nonterminals. */
#define YYNNTS 199
/* YYNRULES -- Number of rules. */
#define YYNRULES 690
/* YYNSTATES -- Number of states. */
#define YYNSTATES 1207
/* YYMAXUTOK -- Last valid token kind. */
#define YYMAXUTOK 377
/* YYTRANSLATE(TOKEN-NUM) -- Symbol number corresponding to TOKEN-NUM
as returned by yylex, with out-of-bounds checking. */
#define YYTRANSLATE(YYX) \
(0 <= (YYX) && (YYX) <= YYMAXUTOK \
? YY_CAST (yysymbol_kind_t, yytranslate[YYX]) \
: YYSYMBOL_YYUNDEF)
/* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM
as returned by yylex. */
static const yytype_uint8 yytranslate[] =
{
0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
148, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 135, 2, 2, 2, 133, 128, 2,
144, 145, 131, 129, 142, 130, 147, 132, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 123, 146,
125, 121, 124, 122, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 140, 2, 141, 127, 2, 143, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 138, 126, 139, 136, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
45, 46, 47, 48, 49, 50, 51, 52, 53, 54,
55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
75, 76, 77, 78, 79, 80, 81, 82, 83, 84,
85, 86, 87, 88, 89, 90, 91, 92, 93, 94,
95, 96, 97, 98, 99, 100, 101, 102, 103, 104,
105, 106, 107, 108, 109, 110, 111, 112, 113, 114,
115, 116, 117, 118, 119, 120, 134, 137
};
#if YYDEBUG
/* YYRLINE[YYN] -- Source line where rule number YYN was defined. */
static const yytype_int16 yyrline[] =
{
0, 2179, 2179, 2179, 2189, 2195, 2199, 2203, 2207, 2213,
2215, 2214, 2228, 2254, 2260, 2264, 2268, 2272, 2278, 2278,
2282, 2286, 2290, 2294, 2303, 2312, 2316, 2321, 2322, 2326,
2330, 2334, 2338, 2341, 2345, 2349, 2353, 2357, 2361, 2366,
2370, 2379, 2388, 2397, 2406, 2413, 2414, 2418, 2421, 2422,
2426, 2430, 2434, 2438, 2438, 2444, 2444, 2450, 2453, 2463,
2462, 2477, 2486, 2487, 2490, 2491, 2498, 2497, 2512, 2516,
2521, 2525, 2530, 2534, 2539, 2543, 2547, 2551, 2555, 2561,
2565, 2571, 2572, 2578, 2582, 2586, 2590, 2594, 2598, 2602,
2606, 2610, 2614, 2620, 2621, 2627, 2631, 2637, 2641, 2647,
2651, 2655, 2659, 2663, 2667, 2673, 2679, 2686, 2690, 2694,
2698, 2702, 2706, 2712, 2718, 2723, 2729, 2733, 2736, 2740,
2744, 2751, 2752, 2753, 2754, 2759, 2766, 2767, 2770, 2774,
2774, 2780, 2781, 2782, 2783, 2784, 2785, 2786, 2787, 2788,
2789, 2790, 2791, 2792, 2793, 2794, 2795, 2796, 2797, 2798,
2799, 2800, 2801, 2802, 2803, 2804, 2805, 2806, 2807, 2808,
2809, 2812, 2812, 2812, 2813, 2813, 2814, 2814, 2814, 2815,
2815, 2815, 2815, 2816, 2816, 2816, 2817, 2817, 2817, 2818,
2818, 2818, 2818, 2819, 2819, 2819, 2819, 2820, 2820, 2820,
2820, 2821, 2821, 2821, 2821, 2822, 2822, 2822, 2822, 2823,
2823, 2826, 2830, 2834, 2838, 2842, 2846, 2850, 2855, 2860,
2865, 2869, 2873, 2877, 2881, 2885, 2889, 2893, 2897, 2901,
2905, 2909, 2913, 2917, 2921, 2925, 2929, 2933, 2937, 2941,
2945, 2949, 2953, 2957, 2961, 2965, 2969, 2973, 2977, 2981,
2985, 2989, 2993, 2997, 3001, 3005, 3009, 3013, 3022, 3031,
3040, 3049, 3055, 3056, 3060, 3064, 3070, 3074, 3081, 3085,
3094, 3111, 3112, 3115, 3116, 3117, 3121, 3125, 3131, 3136,
3140, 3144, 3148, 3154, 3154, 3165, 3169, 3175, 3179, 3185,
3188, 3193, 3197, 3201, 3206, 3210, 3216, 3221, 3225, 3231,
3232, 3236, 3240, 3241, 3242, 3243, 3244, 3249, 3248, 3260,
3264, 3259, 3269, 3269, 3273, 3277, 3281, 3285, 3289, 3293,
3297, 3301, 3305, 3309, 3313, 3314, 3320, 3327, 3319, 3340,
3348, 3356, 3356, 3356, 3363, 3363, 3363, 3370, 3376, 3380,
3389, 3398, 3408, 3410, 3407, 3419, 3417, 3435, 3440, 3433,
3457, 3455, 3471, 3481, 3492, 3496, 3500, 3504, 3510, 3517,
3518, 3519, 3522, 3523, 3526, 3527, 3535, 3536, 3542, 3546,
3549, 3553, 3557, 3561, 3566, 3570, 3574, 3578, 3584, 3583,
3593, 3597, 3601, 3605, 3611, 3616, 3621, 3625, 3629, 3633,
3637, 3641, 3645, 3649, 3653, 3657, 3661, 3665, 3669, 3673,
3677, 3683, 3688, 3695, 3695, 3699, 3704, 3710, 3714, 3720,
3721, 3724, 3729, 3732, 3736, 3742, 3746, 3753, 3752, 3769,
3774, 3778, 3783, 3790, 3794, 3798, 3802, 3806, 3810, 3814,
3818, 3822, 3829, 3828, 3843, 3842, 3858, 3866, 3875, 3880,
3884, 3884, 3889, 3889, 3894, 3894, 3904, 3905, 3909, 3913,
3917, 3921, 3925, 3930, 3935, 3943, 3947, 3954, 3958, 3964,
3965, 3971, 3972, 3978, 3979, 3983, 3987, 3991, 3995, 3999,
4003, 4007, 4008, 4009, 4016, 4020, 4027, 4032, 4037, 4042,
4047, 4052, 4060, 4064, 4071, 4075, 4083, 4087, 4091, 4098,
4102, 4109, 4113, 4117, 4124, 4128, 4136, 4141, 4146, 4154,
4158, 4163, 4170, 4176, 4183, 4186, 4190, 4191, 4194, 4198,
4201, 4205, 4208, 4209, 4210, 4211, 4214, 4215, 4221, 4226,
4231, 4236, 4242, 4243, 4249, 4255, 4254, 4266, 4270, 4276,
4280, 4286, 4295, 4306, 4309, 4310, 4313, 4319, 4325, 4326,
4329, 4336, 4335, 4350, 4354, 4362, 4366, 4378, 4385, 4392,
4393, 4394, 4395, 4396, 4400, 4406, 4410, 4418, 4419, 4420,
4424, 4430, 4434, 4438, 4442, 4446, 4452, 4456, 4462, 4466,
4470, 4474, 4478, 4482, 4486, 4494, 4501, 4507, 4508, 4512,
4516, 4515, 4532, 4533, 4536, 4542, 4546, 4552, 4553, 4557,
4561, 4567, 4571, 4577, 4583, 4590, 4596, 4603, 4607, 4613,
4617, 4623, 4624, 4627, 4631, 4637, 4641, 4645, 4649, 4655,
4660, 4665, 4669, 4673, 4677, 4681, 4685, 4689, 4693, 4697,
4701, 4705, 4709, 4713, 4717, 4722, 4728, 4733, 4738, 4743,
4748, 4755, 4759, 4766, 4771, 4770, 4782, 4786, 4792, 4800,
4808, 4816, 4820, 4826, 4830, 4836, 4837, 4840, 4845, 4852,
4853, 4856, 4860, 4866, 4870, 4876, 4882, 4882, 4889, 4890,
4896, 4900, 4906, 4912, 4917, 4921, 4926, 4931, 4947, 4952,
4958, 4959, 4960, 4963, 4964, 4965, 4966, 4969, 4970, 4971,
4974, 4975, 4978, 4982, 4988, 4989, 4995, 4996, 4999, 5000,
5003, 5006, 5007, 5008, 5011, 5012, 5015, 5020, 5023, 5024,
5028
};
#endif
/** Accessing symbol of state STATE. */
#define YY_ACCESSING_SYMBOL(State) YY_CAST (yysymbol_kind_t, yystos[State])
#if 1
/* The user-facing name of the symbol whose (internal) number is
YYSYMBOL. No bounds checking. */
static const char *yysymbol_name (yysymbol_kind_t yysymbol) YY_ATTRIBUTE_UNUSED;
/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
First, the terminals, then, starting at YYNTOKENS, nonterminals. */
static const char *const yytname[] =
{
"\"end of file\"", "error", "\"invalid token\"", "\"'class'\"",
"\"'module'\"", "\"'def'\"", "\"'begin'\"", "\"'if'\"", "\"'unless'\"",
"\"'while'\"", "\"'until'\"", "\"'for'\"", "\"'undef'\"", "\"'rescue'\"",
"\"'ensure'\"", "\"'end'\"", "\"'then'\"", "\"'elsif'\"", "\"'else'\"",
"\"'case'\"", "\"'when'\"", "\"'break'\"", "\"'next'\"", "\"'redo'\"",
"\"'retry'\"", "\"'in'\"", "\"'do'\"", "\"'do' for condition\"",
"\"'do' for block\"", "\"'do' for lambda\"", "\"'return'\"",
"\"'yield'\"", "\"'super'\"", "\"'self'\"", "\"'nil'\"", "\"'true'\"",
"\"'false'\"", "\"'and'\"", "\"'or'\"", "\"'not'\"", "\"'if' modifier\"",
"\"'unless' modifier\"", "\"'while' modifier\"", "\"'until' modifier\"",
"\"'rescue' modifier\"", "\"'alias'\"", "\"'BEGIN'\"", "\"'END'\"",
"\"'__LINE__'\"", "\"'__FILE__'\"", "\"'__ENCODING__'\"",
"\"local variable or method\"", "\"method\"", "\"global variable\"",
"\"instance variable\"", "\"constant\"", "\"class variable\"",
"\"label\"", "\"integer literal\"", "\"float literal\"",
"\"character literal\"", "tXSTRING", "tREGEXP", "tSTRING",
"tSTRING_PART", "tSTRING_MID", "tNTH_REF", "tBACK_REF", "tREGEXP_END",
"\"numbered parameter\"", "\"unary plus\"", "\"unary minus\"", "\"<=>\"",
"\"==\"", "\"===\"", "\"!=\"", "\">=\"", "\"<=\"", "\"&&\"", "\"||\"",
"\"=~\"", "\"!~\"", "\"..\"", "\"...\"", "tBDOT2", "tBDOT3", "tAREF",
"tASET", "\"<<\"", "\">>\"", "\"::\"", "tCOLON3", "tOP_ASGN", "\"=>\"",
"tLPAREN", "\"(\"", "\")\"", "\"[\"", "tLBRACE", "\"{\"", "\"*\"",
"tPOW", "\"**\"", "\"&\"", "\"->\"", "\"&.\"", "\"symbol\"",
"\"string literal\"", "tXSTRING_BEG", "tSTRING_DVAR", "tREGEXP_BEG",
"tWORDS_BEG", "tSYMBOLS_BEG", "tLAMBEG", "\"here document\"",
"tHEREDOC_END", "tLITERAL_DELIM", "tHD_LITERAL_DELIM", "tHD_STRING_PART",
"tHD_STRING_MID", "tLOWEST", "'='", "'?'", "':'", "'>'", "'<'", "'|'",
"'^'", "'&'", "'+'", "'-'", "'*'", "'/'", "'%'", "tUMINUS_NUM", "'!'",
"'~'", "tLAST_TOKEN", "'{'", "'}'", "'['", "']'", "','", "'`'", "'('",
"')'", "';'", "'.'", "'\\n'", "$accept", "program", "$@1",
"top_compstmt", "top_stmts", "top_stmt", "@2", "bodystmt", "compstmt",
"stmts", "stmt", "$@3", "command_asgn", "command_rhs", "expr", "$@4",
"$@5", "defn_head", "defs_head", "$@6", "expr_value", "command_call",
"block_command", "cmd_brace_block", "$@7", "command", "mlhs",
"mlhs_inner", "mlhs_basic", "mlhs_item", "mlhs_list", "mlhs_post",
"mlhs_node", "lhs", "cname", "cpath", "fname", "fsym", "undef_list",
"$@8", "op", "reswords", "arg", "aref_args", "arg_rhs", "paren_args",
"opt_paren_args", "opt_call_args", "call_args", "command_args", "@9",
"block_arg", "opt_block_arg", "comma", "args", "mrhs", "primary", "@10",
"@11", "$@12", "$@13", "@14", "@15", "$@16", "$@17", "$@18", "$@19",
"$@20", "$@21", "@22", "@23", "@24", "@25", "primary_value", "then",
"do", "if_tail", "opt_else", "for_var", "f_margs", "$@26",
"block_args_tail", "opt_block_args_tail", "block_param",
"opt_block_param", "block_param_def", "$@27", "opt_bv_decl", "bv_decls",
"bvar", "f_larglist", "lambda_body", "do_block", "@28", "block_call",
"method_call", "brace_block", "@29", "@30", "case_body", "cases",
"in_clauses", "$@31", "$@32", "$@33", "p_expr", "p_args_head",
"p_args_post", "p_as", "p_alt", "p_value", "p_array", "p_array_body",
"p_array_elems", "p_rest", "p_const", "p_hash", "p_hash_body",
"p_hash_elems", "p_hash_elem", "p_kwrest", "p_var", "opt_rescue",
"exc_list", "exc_var", "opt_ensure", "literal", "string",
"string_fragment", "string_rep", "string_interp", "@34", "xstring",
"regexp", "heredoc", "heredoc_bodies", "heredoc_body",
"heredoc_string_rep", "heredoc_string_interp", "@35", "words", "symbol",
"basic_symbol", "sym", "symbols", "numeric", "variable", "var_lhs",
"var_ref", "backref", "superclass", "$@36", "f_opt_arglist_paren",
"f_arglist_paren", "f_arglist", "f_label", "f_kw", "f_block_kw",
"f_block_kwarg", "f_kwarg", "kwrest_mark", "f_kwrest", "args_tail",
"opt_args_tail", "f_args", "f_bad_arg", "f_norm_arg", "f_arg_item",
"@37", "f_arg", "f_opt_asgn", "f_opt", "f_block_opt", "f_block_optarg",
"f_optarg", "restarg_mark", "f_rest_arg", "blkarg_mark", "f_block_arg",
"opt_f_block_arg", "singleton", "$@38", "assoc_list", "assocs", "assoc",
"operation", "operation2", "operation3", "dot_or_colon", "call_op",
"call_op2", "opt_terms", "opt_nl", "rparen", "trailer", "term", "nl",
"terms", "none", YY_NULLPTR
};
static const char *
yysymbol_name (yysymbol_kind_t yysymbol)
{
return yytname[yysymbol];
}
#endif
#define YYPACT_NINF (-980)
#define yypact_value_is_default(Yyn) \
((Yyn) == YYPACT_NINF)
#define YYTABLE_NINF (-691)
#define yytable_value_is_error(Yyn) \
((Yyn) == YYTABLE_NINF)
/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
STATE-NUM. */
static const yytype_int16 yypact[] =
{
-980, 171, 3726, -980, 8945, 11069, 11411, 7367, -980, 10715,
10715, -980, -980, 11183, 8549, 6983, 9181, 9181, -980, -980,
9181, 4582, 4174, -980, -980, -980, -980, 76, 8549, -980,
72, -980, -980, -980, 7509, 4025, -980, -980, 7651, -980,
-980, -980, -980, -980, -980, -980, 49, 10833, 10833, 10833,
10833, 195, 6242, 1226, 9653, 10007, 3007, -980, 8267, 862,
1241, 751, 1174, 1325, -980, 437, 10951, 10833, -980, 1472,
-980, 1340, -980, 465, 1648, 1648, -980, -980, 240, 160,
-980, 142, 11297, -980, 211, 3803, 62, 167, 60, 68,
-980, 342, -980, -980, -980, -980, -980, -980, -980, -980,
-980, 269, 200, -980, 344, 30, -980, -980, -980, -980,
-980, 190, 190, 76, 504, 893, -980, 10715, 81, 6361,
449, 2087, 2087, -980, 241, -980, 186, -980, -980, 30,
-980, -980, -980, -980, -980, -980, -980, -980, -980, -980,
-980, -980, -980, -980, -980, -980, -980, -980, -980, -980,
-980, -980, -980, -980, -980, -980, -980, -980, 56, 66,
67, 114, -980, -980, -980, -980, -980, -980, 115, 158,
168, 209, -980, 237, -980, -980, -980, -980, -980, -980,
-980, -980, -980, -980, -980, -980, -980, -980, -980, -980,
-980, -980, -980, -980, -980, -980, -980, -980, -980, -980,
-980, -980, -980, -980, -980, -980, -980, -980, -980, 278,
5274, 307, 465, 1648, 1648, 647, 252, 230, 57, 286,
59, 647, 10715, 10715, 290, 333, -980, -980, 414, 381,
73, 77, -980, -980, -980, -980, -980, -980, -980, -980,
-980, 8408, -980, -980, 266, -980, -980, -980, -980, -980,
-980, 1472, -980, 472, -980, 374, -980, -980, 1472, 4310,
80, 10833, 10833, 10833, 10833, -980, 13580, -980, -980, 274,
363, 274, -980, -980, -980, 9299, -980, -980, -980, 9181,
-980, -980, -980, 6983, 7221, -980, 284, 6480, -980, 691,
327, 13704, 13704, 489, 9063, 6242, 297, 1472, 1340, 1472,
317, -980, 9063, 1472, 312, 1447, 1447, -980, 13580, 316,
1447, -980, 403, 11525, 319, 803, 824, 892, 1836, -980,
-980, -980, -980, -980, 1417, -980, -980, -980, -980, -980,
-980, 858, 1424, -980, -980, 1314, -980, 869, -980, 1431,
-980, 1458, 388, 417, -980, -980, -980, -980, 6745, 10715,
10715, 10715, 10715, 9063, 10715, 10715, 87, -980, -980, -980,
-980, 418, 1472, -980, -980, -980, -980, -980, -980, -980,
2290, 413, 423, 5274, 10833, -980, 406, 499, 411, -980,
1472, -980, -980, -980, 424, 10833, -980, 426, 505, 436,
508, -980, -980, 492, 5274, -980, -980, 10125, -980, 6242,
8831, 444, 10125, -980, 10833, 10833, 10833, 10833, 10833, 10833,
10833, 10833, 10833, 10833, 10833, 10833, 10833, 10833, -980, 10833,
10833, 10833, 10833, 10833, 10833, 10833, 10833, 10833, 10833, 10833,
10833, 3350, -980, 9181, -980, 11834, -980, -980, 13038, -980,
-980, -980, -980, 10951, 10951, -980, 494, -980, 465, -980,
903, -980, -980, -980, -980, -980, -980, 11920, 9181, 12006,
5274, 10715, -980, -980, -980, 585, 605, 71, 525, 526,
-980, 5420, 609, 10833, 12092, 9181, 12178, 10833, 10833, 5858,
627, 627, 83, 12264, 9181, 12350, -980, 587, -980, 6480,
239, -980, -980, 10243, 641, -980, 10833, 10833, 13642, 13642,
13642, 10833, -980, -980, 9417, -980, 10833, -980, 9771, 7102,
515, 1472, 274, 274, -980, -980, 1286, 516, -980, -980,
-980, 8549, 5977, 531, 12092, 12178, 10833, 1340, 1472, -980,
-980, 6864, 530, 1340, -980, -980, 9889, -980, 1472, 10007,
-980, -980, -980, 903, 142, 11525, -980, 11525, 12436, 9181,
12522, 2307, -980, -980, 535, -980, 1493, 6480, 858, -980,
-980, -980, -980, -980, -980, -980, 10833, 10833, -980, -980,
-980, -980, -980, -980, -980, -980, -980, -980, -980, -980,
1517, 1472, 1472, 542, 10951, 673, 13642, 495, -980, -980,
-980, 324, -980, -980, 2454, -980, 13642, 2307, -980, -980,
1416, -980, -980, 10951, 674, 238, 10833, -980, 13296, 274,
-980, 1472, 11525, 550, -980, -980, -980, 659, 584, 11751,
-980, -980, 961, 95, 1525, 3561, 3561, 3561, 3561, 1880,
1880, 13722, 2785, 3561, 3561, 13704, 13704, 1236, 1236, 1525,
327, 13642, 1880, 1880, 1796, 1796, 1904, 723, 723, 327,
327, 327, 4718, 8007, 4990, 8125, -980, 190, -980, 567,
274, 557, -980, 565, -980, -980, 4446, -980, -980, 2599,
238, 238, -980, 13110, -980, -980, -980, -980, -980, 1472,
10715, 5274, 916, 614, -980, 190, 574, 190, 701, 1286,
8690, -980, 10361, 700, -980, 10833, 10833, 496, -980, 7769,
7888, 583, 203, 251, 700, -980, -980, -980, -980, 156,
164, 595, 94, 98, 10715, 8549, 589, 1525, 717, 13642,
622, -980, 13642, 13642, 13642, 833, 10833, 13580, -980, 274,
13642, -980, -980, -980, -980, 9535, 9771, -980, -980, -980,
608, -980, -980, 198, 1340, 1472, 1447, 444, -980, 916,
614, 607, 948, 1172, -980, 84, 2307, -980, 611, -980,
327, 327, -980, -980, 1180, 1472, 610, -980, -980, 2625,
711, 13172, -980, 706, 418, -980, 411, -980, 1472, -980,
-980, 630, 635, 638, -980, 652, 706, 638, 739, 13234,
-980, -980, 2307, 5274, -980, -980, 13367, 10479, -980, -980,
11525, 9063, 10951, 10833, 12608, 9181, 12694, -980, -980, -980,
732, -980, -980, 744, 1401, 236, 754, 126, 759, -980,
1754, 660, 29, -980, -980, 669, 736, -980, 685, -980,
-980, -980, 753, -980, -980, 954, 10951, 10951, -980, 494,
686, 9417, 10951, 10951, -980, 494, 68, 240, 5274, 6480,
238, -980, 1472, 822, -980, -980, -980, -980, 13296, -980,
760, -980, 6123, 845, -980, 10715, 851, -980, 10833, 10833,
348, 10833, 10833, 857, 6626, 6626, 105, 627, -980, -980,
792, -980, 10597, 5566, 13642, -980, 7102, 274, -980, -980,
-980, 591, 729, 1542, 5274, 6480, -980, -980, -980, 740,
-980, 1585, 1472, 10833, 10833, -980, -980, 2307, -980, 1416,
-980, 1416, -980, 1416, -980, -980, 10833, 10833, -980, -980,
-980, 11639, -980, 741, 411, 742, 11639, -980, 747, 748,
-980, 877, 10833, 13438, -980, -980, 13642, 4854, 5126, 755,
356, 358, 1860, -980, -980, -980, -980, 757, 752, 762,
-980, 732, -980, 766, 770, -980, 753, -980, -980, -980,
-980, 771, 773, -980, 890, 1860, 1860, 898, 366, 1860,
10833, 10833, -980, -980, -980, -980, -980, 10951, -980, -980,
-980, -980, -980, -980, -980, 932, 818, 6480, 5274, -980,
-980, 11753, 647, -980, -980, 6626, -980, -980, 647, -980,
10833, -980, 946, 950, -980, 10715, 10715, 5712, 13642, 166,
-980, 9771, -980, 1670, 952, 829, 1593, 1593, 1308, -980,
13642, 13642, 638, 828, 638, 638, 13642, 13642, 846, 861,
929, 985, 495, -980, -980, 2150, -980, 985, 2307, -980,
1416, -980, -980, 13509, 391, -980, -980, 1754, 1860, -980,
366, -980, 1860, -980, -980, 847, -980, -980, -980, -980,
-980, 13642, 13642, -980, -980, -980, -980, 852, 977, 941,
-980, 1057, 824, 892, 5274, -980, 5420, -980, -980, 6626,
647, 647, 469, -980, -980, -980, -980, 860, -980, -980,
-980, -980, 872, 872, 1593, 878, -980, 1416, -980, -980,
-980, -980, -980, -980, 12780, -980, 411, 495, -980, -980,
883, 884, 888, -980, 894, 888, -980, 899, 904, -980,
847, 1860, -980, -980, 903, 12866, 9181, 12952, 605, 496,
984, 5712, 5712, 1525, -980, 1004, 1670, 833, 1593, 872,
1593, 638, 913, 918, -980, 2307, -980, 1416, -980, 1416,
-980, 1416, -980, -980, 1860, 1754, -980, 916, 614, 926,
704, 930, -980, -980, -980, 469, 469, 486, -980, -980,
872, -980, 888, 937, 888, 888, 943, -980, 591, 1053,
1059, 647, 1049, 1050, -980, 1416, -980, -980, -980, 1860,
-980, -980, 5712, 10715, 10715, 888, 469, 647, 647, -980,
-980, 5712, 5712, 469, 469, -980, -980
};
/* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM.
Performed when YYTABLE does not specify something else to do. Zero
means the default is an error. */
static const yytype_int16 yydefact[] =
{
2, 0, 0, 1, 0, 0, 0, 0, 297, 0,
0, 321, 324, 0, 0, 676, 344, 345, 346, 347,
309, 273, 273, 561, 560, 562, 563, 678, 0, 10,
0, 565, 564, 566, 551, 662, 553, 552, 555, 554,
547, 548, 508, 509, 567, 568, 559, 0, 0, 0,
0, 0, 0, 299, 690, 690, 91, 316, 0, 0,
0, 0, 0, 0, 523, 0, 0, 0, 3, 676,
6, 9, 27, 32, 615, 615, 48, 63, 62, 0,
79, 0, 83, 93, 0, 57, 251, 0, 64, 314,
289, 290, 506, 291, 292, 293, 504, 503, 535, 505,
502, 558, 0, 294, 295, 273, 5, 8, 344, 345,
309, 690, 420, 0, 116, 117, 559, 0, 0, 0,
0, 615, 615, 119, 569, 348, 0, 558, 295, 0,
340, 171, 181, 172, 168, 197, 198, 199, 200, 179,
194, 187, 177, 176, 192, 175, 174, 170, 195, 169,
182, 186, 188, 180, 173, 189, 196, 191, 190, 183,
193, 178, 167, 185, 184, 166, 164, 165, 161, 162,
163, 121, 123, 122, 156, 157, 134, 135, 136, 143,
140, 142, 137, 138, 158, 159, 144, 145, 149, 152,
153, 139, 141, 131, 132, 133, 146, 147, 148, 150,
151, 154, 155, 160, 646, 58, 124, 125, 645, 0,
0, 0, 61, 615, 615, 0, 0, 0, 558, 0,
295, 0, 0, 0, 115, 0, 359, 358, 0, 0,
558, 295, 190, 183, 193, 178, 161, 162, 163, 121,
122, 0, 126, 128, 20, 127, 526, 531, 530, 684,
686, 676, 687, 0, 528, 0, 688, 685, 677, 660,
559, 281, 659, 276, 0, 268, 280, 77, 272, 690,
506, 690, 650, 78, 76, 690, 262, 310, 75, 0,
261, 419, 74, 676, 0, 18, 0, 0, 224, 0,
225, 212, 215, 306, 0, 0, 0, 676, 15, 676,
81, 14, 0, 676, 0, 681, 681, 252, 0, 0,
681, 648, 0, 0, 89, 0, 99, 106, 615, 541,
540, 542, 543, 537, 0, 539, 538, 510, 515, 514,
517, 0, 0, 512, 519, 0, 521, 0, 533, 0,
545, 0, 549, 550, 52, 239, 240, 4, 677, 0,
0, 0, 0, 0, 0, 0, 622, 618, 617, 616,
619, 620, 0, 624, 636, 591, 592, 640, 639, 635,
615, 0, 577, 0, 584, 589, 690, 594, 690, 614,
0, 621, 623, 626, 600, 0, 633, 600, 638, 600,
642, 598, 573, 0, 0, 407, 409, 0, 95, 0,
87, 84, 0, 55, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 211, 214, 0, 0, 53, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 673, 690, 672, 0, 675, 674, 0, 424,
422, 315, 507, 0, 0, 413, 68, 313, 337, 116,
117, 118, 549, 550, 577, 570, 335, 0, 690, 0,
0, 0, 671, 670, 59, 0, 690, 306, 0, 0,
350, 0, 349, 0, 0, 690, 0, 0, 0, 0,
0, 0, 306, 0, 690, 0, 332, 0, 129, 0,
0, 527, 529, 0, 0, 689, 654, 655, 282, 658,
275, 0, 678, 269, 0, 278, 0, 270, 0, 676,
0, 676, 690, 690, 263, 274, 676, 0, 312, 51,
679, 0, 0, 0, 0, 0, 0, 17, 676, 304,
13, 677, 80, 300, 303, 307, 683, 253, 682, 683,
255, 308, 649, 105, 97, 0, 92, 0, 0, 690,
0, 615, 317, 404, 600, 544, 0, 0, 518, 524,
511, 513, 520, 522, 534, 546, 0, 0, 7, 21,
22, 23, 24, 25, 49, 50, 581, 628, 582, 580,
0, 676, 676, 600, 0, 0, 583, 0, 596, 644,
593, 0, 597, 578, 0, 607, 629, 0, 610, 637,
0, 612, 641, 0, 0, 690, 281, 28, 30, 0,
31, 676, 0, 85, 96, 47, 33, 45, 0, 256,
201, 29, 0, 295, 0, 229, 234, 235, 236, 231,
233, 243, 244, 237, 238, 210, 213, 241, 242, 0,
221, 678, 230, 232, 226, 227, 228, 216, 217, 218,
219, 220, 663, 668, 664, 669, 418, 273, 416, 0,
690, 663, 665, 664, 666, 417, 273, 663, 664, 273,
690, 690, 34, 256, 202, 44, 209, 66, 69, 0,
0, 0, 116, 117, 120, 0, 0, 690, 0, 676,
0, 298, 690, 690, 494, 0, 0, 690, 351, 667,
305, 0, 663, 664, 690, 353, 322, 352, 325, 667,
305, 0, 663, 664, 0, 0, 0, 0, 0, 280,
0, 328, 653, 656, 652, 279, 284, 283, 277, 690,
657, 651, 260, 258, 264, 265, 267, 311, 680, 19,
0, 26, 208, 82, 16, 676, 681, 98, 90, 102,
104, 0, 101, 103, 678, 0, 0, 536, 0, 525,
222, 223, 622, 620, 367, 676, 360, 576, 574, 0,
40, 247, 342, 0, 0, 590, 690, 643, 0, 599,
627, 600, 600, 600, 634, 600, 622, 600, 42, 249,
343, 395, 393, 0, 392, 391, 288, 0, 94, 88,
0, 0, 0, 0, 0, 690, 0, 457, 458, 459,
492, 476, 456, 0, 0, 0, 475, 491, 0, 56,
0, 436, 449, 451, 461, 440, 460, 462, 442, 484,
444, 453, 455, 454, 54, 0, 0, 0, 415, 72,
421, 265, 0, 0, 414, 70, 410, 65, 0, 0,
690, 338, 0, 0, 421, 341, 647, 60, 495, 496,
690, 497, 0, 690, 356, 0, 0, 354, 0, 0,
421, 0, 0, 0, 0, 0, 421, 0, 130, 532,
0, 327, 0, 0, 285, 271, 676, 690, 11, 301,
254, 100, 0, 397, 0, 0, 318, 516, 368, 365,
625, 0, 676, 0, 0, 595, 579, 0, 603, 0,
605, 0, 611, 0, 608, 613, 0, 0, 390, 678,
678, 586, 587, 690, 690, 375, 0, 631, 375, 375,
373, 0, 284, 286, 86, 46, 257, 663, 664, 0,
663, 664, 487, 478, 492, 465, 472, 0, 466, 469,
455, 0, 480, 0, 481, 483, 0, 474, 490, 489,
463, 437, 438, 445, 0, 0, 0, 0, 0, 0,
0, 0, 39, 206, 38, 207, 73, 0, 36, 204,
37, 205, 71, 411, 412, 0, 0, 0, 0, 571,
336, 0, 0, 499, 357, 0, 12, 501, 0, 319,
0, 320, 0, 0, 333, 0, 0, 0, 283, 690,
259, 266, 403, 0, 0, 0, 0, 0, 363, 575,
41, 248, 600, 600, 600, 600, 43, 250, 0, 0,
0, 585, 0, 371, 372, 375, 383, 630, 0, 386,
0, 388, 408, 287, 421, 486, 464, 0, 0, 479,
0, 446, 0, 450, 452, 441, 447, 477, 485, 443,
488, 246, 245, 35, 203, 425, 423, 0, 0, 0,
498, 0, 107, 114, 0, 500, 0, 323, 326, 0,
0, 0, 690, 427, 428, 426, 401, 678, 399, 402,
406, 405, 369, 366, 0, 361, 604, 0, 601, 606,
609, 396, 394, 306, 0, 588, 690, 0, 374, 381,
375, 375, 375, 632, 375, 375, 473, 467, 470, 482,
439, 0, 67, 339, 113, 0, 690, 0, 690, 690,
0, 0, 0, 0, 429, 0, 0, 398, 0, 364,
0, 600, 667, 305, 370, 0, 378, 0, 380, 0,
387, 0, 384, 389, 0, 0, 448, 110, 112, 0,
663, 664, 493, 355, 334, 690, 690, 430, 329, 400,
362, 602, 375, 375, 375, 375, 468, 471, 108, 0,
0, 0, 0, 0, 379, 0, 376, 382, 385, 0,
330, 331, 0, 0, 0, 375, 690, 0, 0, 377,
431, 0, 0, 690, 690, 433, 435
};
/* YYPGOTO[NTERM-NUM]. */
static const yytype_int16 yypgoto[] =
{
-980, -980, -980, 576, -980, 33, -980, -312, -32, -980,
61, -980, -351, -304, -1, -980, -980, 1251, 1473, -980,
-5, -45, -980, -453, -980, -4, 1096, -166, -6, -57,
-302, -470, -9, 2367, -75, 1104, 10, -21, -980, -980,
8, -980, 3117, -980, 343, 64, 293, -404, 79, 5,
-980, -407, -267, 116, 22, -332, 18, -980, -980, -980,
-980, -980, -980, -980, -980, -980, -980, -980, -980, -980,
-980, -980, -980, 222, -163, -436, -18, -586, -980, -980,
-980, 322, 224, -980, -537, -980, -980, -313, -980, -17,
-980, -980, 273, -980, -980, -980, -86, -980, -980, -488,
-980, -59, -980, -980, -980, -611, -980, 69, 86, -980,
163, -980, -980, -910, -745, -980, -980, -980, 308, -851,
-780, -980, 3, -980, -980, -980, -980, -980, 104, 65,
-141, -980, -980, -980, -980, -980, -240, -980, 886, -980,
-980, 787, 20, -980, -980, 479, 2101, 2477, 1129, 1676,
-980, -980, 40, 511, 9, 136, 553, 109, -980, -980,
-980, -250, 108, -146, -235, -951, -707, -504, -980, 369,
-742, -542, -979, 107, -490, -980, -433, -980, -191, -372,
-980, -980, -980, 24, -427, 871, -371, -980, -980, -55,
-980, 74, -26, 501, -280, -68, -266, -20, -2
};
/* YYDEFGOTO[NTERM-NUM]. */
static const yytype_int16 yydefgoto[] =
{
0, 1, 2, 68, 69, 70, 286, 465, 466, 297,
298, 521, 72, 616, 73, 639, 624, 213, 214, 690,
215, 76, 77, 678, 850, 78, 79, 299, 80, 81,
82, 546, 83, 216, 123, 124, 242, 243, 244, 715,
655, 207, 85, 304, 620, 656, 277, 510, 511, 278,
279, 268, 503, 539, 660, 610, 86, 210, 302, 745,
303, 318, 755, 222, 874, 223, 875, 714, 1079, 681,
679, 988, 460, 289, 471, 706, 866, 1134, 229, 765,
1016, 1108, 1036, 919, 793, 794, 920, 892, 1087, 1088,
552, 896, 396, 605, 88, 89, 447, 671, 670, 494,
1085, 1135, 1181, 1182, 1183, 819, 820, 1055, 821, 822,
823, 824, 947, 948, 825, 826, 827, 953, 828, 829,
830, 831, 693, 860, 992, 996, 90, 91, 92, 332,
333, 557, 93, 94, 95, 558, 252, 253, 254, 489,
96, 97, 98, 326, 99, 100, 218, 219, 103, 220,
456, 680, 371, 372, 373, 374, 375, 922, 923, 376,
377, 378, 779, 595, 380, 381, 382, 383, 580, 384,
385, 386, 927, 928, 387, 388, 389, 390, 391, 588,
209, 461, 309, 513, 272, 129, 685, 658, 464, 459,
438, 517, 893, 518, 537, 256, 257, 258, 301
};
/* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If
positive, shift that token. If negative, reduce the rule whose
number is the opposite. If YYTABLE_NINF, syntax error. */
static const yytype_int16 yytable[] =
{
106, 284, 718, 441, 507, 221, 592, 285, 212, 212,
251, 545, 265, 265, 212, 206, 265, 205, 520, 280,
296, 344, 206, 125, 125, 401, 540, 282, 834, 659,
542, 125, 435, 437, 245, 955, 206, 107, 269, 269,
271, 271, 269, 451, 271, 708, 300, 314, 245, 348,
926, 615, 307, 311, 686, 784, 439, 899, 479, 1113,
657, 585, 1089, 71, 666, 71, 206, 669, 325, 949,
621, 701, 392, 392, 125, 962, 305, 748, 306, 310,
711, 731, 604, 553, 394, 276, 281, 296, 687, 255,
780, 559, 615, 615, 439, 267, 273, 728, -107, 274,
125, 728, -114, 657, 781, 666, 880, 863, -113, 280,
446, 867, 731, 894, 687, 393, 448, 1058, 873, -109,
270, 270, 964, -111, 270, 335, 337, 339, 341, 528,
-108, 394, 449, 848, 849, 582, 450, 497, 1118, 672,
675, -557, 799, 347, 576, 751, -561, 472, 688, -556,
436, 478, -348, 472, 687, 965, -560, -562, 270, 270,
958, 782, 476, 526, 785, 432, 1113, -348, 440, 445,
-115, 3, -557, 485, 275, 276, 281, 959, -107, 687,
-114, -110, 379, 379, 862, 1089, 493, 444, 1059, -112,
495, 561, -113, 445, 561, 442, 561, 895, 561, 1058,
561, -115, -348, -561, -563, -565, 440, 434, 577, -348,
287, 392, 392, -560, -562, -99, -114, 480, 481, -106,
283, 212, 212, 394, 87, -105, 87, 126, 126, 379,
379, 217, 217, 611, 525, 228, -101, 217, 217, 217,
-103, 598, 217, 601, 1176, 545, 507, -100, -564, 206,
293, 325, 780, 468, 469, 523, 544, 431, -566, 493,
550, -563, -565, 296, 717, 780, 781, 505, 395, 505,
1119, 265, 432, 514, 87, 265, 457, 531, 315, 781,
495, 397, 516, 519, 398, 538, 538, 951, 217, 300,
538, 432, 443, 926, 579, 871, 926, 512, -102, -551,
-663, 269, 1117, 271, 315, -564, -104, 433, -664, 731,
545, 1095, 593, 987, 434, -566, 754, 791, 759, -80,
474, 379, 379, 782, -109, 490, 458, -555, 728, 728,
934, 125, 402, 434, 275, 432, 782, 776, 817, 217,
-94, 87, 58, 872, 569, 570, 571, 572, 212, 212,
212, 212, 607, 574, 575, 527, -551, 617, 515, 929,
859, -556, 467, 533, 792, 784, 455, 296, 462, 853,
475, 530, -111, 473, 589, 952, 589, 434, 477, 270,
-559, 568, 684, 270, -555, 504, 976, 508, 482, 556,
-107, 613, 982, 300, 493, -559, 777, 780, 617, 617,
777, 939, 42, 926, 905, 43, 486, 780, 488, 71,
1177, -99, 707, 707, 573, 561, 502, 951, 125, 609,
506, 536, 522, 1083, 609, 463, 379, 367, 419, 265,
-559, 514, 87, 657, 728, 666, 444, -559, -79, 697,
1000, 1004, 529, 664, 217, 217, 664, 704, 842, 59,
843, 615, 368, 535, 265, 541, 514, 716, 543, 520,
689, 547, 885, 495, 694, -114, 890, 664, 817, -108,
495, 265, 58, 514, 1023, 578, 725, -109, 379, -111,
265, 931, 514, 977, 664, 615, -106, 862, 747, 566,
544, 615, 615, 664, 1133, 342, 343, 217, 545, 665,
739, 217, 354, 355, 483, 217, 217, 452, 453, 87,
505, 505, -108, 865, 862, 720, 87, 87, 567, 432,
106, 1084, 1167, 665, 87, 758, -432, -434, 729, 206,
-660, 780, 972, 664, 584, 315, 985, 270, 978, 980,
665, 245, 924, 867, -572, 265, 773, 514, 587, 665,
590, 1033, 1034, 591, 484, 544, 599, 883, 664, 602,
746, 434, 270, 125, 774, 125, 594, 806, 597, 520,
87, 217, 217, 217, 217, 87, 217, 217, 600, 270,
770, 526, 1014, 71, 731, 734, 614, 491, 270, 665,
247, 248, 744, 677, -551, 87, 365, 366, 367, 788,
691, 930, 1111, 795, 728, 1114, 1028, 1029, 270, -551,
-113, 851, 270, 603, 665, 835, 87, -421, 692, 217,
885, 87, 315, 368, 622, 698, 615, 520, 735, 736,
125, -105, 454, 454, 780, 908, 910, 912, 470, 914,
270, 915, -660, 270, -551, 780, 695, 696, -660, 842,
555, -551, 472, 270, 705, 217, 721, 843, 505, 379,
733, 738, 839, 470, 280, 622, 622, 280, 795, 795,
741, 845, -94, 1063, 847, 852, 1068, 756, -109, 212,
217, -421, 87, 217, 769, 280, -111, 554, 772, 790,
861, 864, 800, 87, 878, 864, -421, 217, 206, -101,
857, 87, 864, 801, -305, 802, 217, -103, 840, 877,
906, 87, 1173, 212, 609, 854, 855, 1007, 862, -305,
-109, 838, 1159, 206, 870, 797, 538, 505, 879, -421,
276, -421, 881, 276, 1144, 245, 876, 246, -421, 583,
247, 248, 246, 544, 87, 247, 248, 888, 891, 838,
897, 276, 901, 87, -305, 903, 687, 617, -664, 887,
983, -305, 246, 576, 502, 247, 248, 315, 249, 315,
250, 217, 907, 249, 589, 250, 841, 909, 977, 87,
911, 524, 1106, 916, 989, 924, 674, 676, 924, 942,
924, 617, 974, 249, 913, 250, 432, 617, 617, 943,
532, 265, 963, 514, 534, 957, 217, -108, 470, 707,
960, 966, 472, 336, 664, 328, 329, 986, 125, -109,
674, 676, -109, -109, 419, 217, 967, 968, -100, 1074,
994, 475, 1005, 1006, 315, 1076, 882, 990, 434, 270,
270, 777, 1002, 1003, 930, 508, 969, 930, 795, 930,
-109, 1009, -109, 991, 428, 429, 430, 924, 993, 995,
998, 997, 935, 1015, 212, 887, 999, 330, 331, 742,
665, 520, 1001, 105, 1012, 105, 1096, 1098, 1099, 1100,
105, 105, 1017, 1032, 1035, 505, 105, 105, 105, 1038,
1040, 105, 1042, 548, 1047, 924, 1044, 924, 1046, 924,
946, 924, 217, 87, 1048, 1049, 961, 246, 432, 270,
247, 248, 1050, 1051, -558, 1052, 930, 1131, 1132, -661,
554, 589, 589, 105, 472, 327, 328, 329, 921, -558,
472, 563, 617, 328, 329, 924, 217, 105, 249, 125,
250, 1053, -667, 549, 125, 270, -111, 1065, 246, 766,
434, 247, 248, 1057, 930, 1067, 930, 1066, 930, 844,
930, 1077, 846, 1075, -558, 1078, 783, 1090, 1091, 787,
1097, -558, 1101, 246, -663, 1082, 247, 248, 330, 331,
844, 250, -295, -555, 1103, 330, 331, 1102, 105, 1121,
105, 1122, 1123, -306, 930, 1171, 1124, -295, -555, 1164,
1080, 1081, 1136, 1011, 212, 212, -667, 864, -306, 125,
732, 970, 472, 472, 1138, 87, 1127, 737, 1192, 1168,
1140, -667, 315, 87, 622, 1145, 1147, 217, 1045, 743,
1149, -661, -295, -555, 1201, 1202, 1151, -661, -663, -295,
-555, 1154, 1128, -306, 1129, -111, 1155, 1130, -111, -111,
-306, 804, 1056, -663, -667, 1060, -667, -663, 622, 217,
-663, 1137, -664, -667, 622, 622, 432, 1178, 1190, 246,
87, 87, 247, 248, 1191, 1104, -111, 971, -111, 1185,
864, 105, 767, 768, 87, 1189, -663, 217, -663, 1193,
432, 1194, -663, 105, 105, -663, 87, 87, 740, 1165,
1166, 805, 250, 833, 589, 87, 1179, 1180, 434, 226,
130, 1163, 798, 472, 918, 270, 87, 87, 833, 1169,
984, 1120, 265, 954, 514, 458, 694, 864, 1054, 472,
472, 1162, 434, 1116, 946, 664, 208, 1200, 1056, 492,
775, 1105, 1110, 1031, 1205, 1206, 105, 1125, 1037, 0,
105, 0, 1039, 1041, 105, 105, 0, 0, 105, 0,
1196, 925, 432, 864, 864, 105, 105, 0, 921, 1203,
1204, 921, 0, 105, 921, 0, 921, 0, 0, 973,
975, 0, 0, 0, 0, 979, 981, 0, 1197, 1198,
856, 665, 212, 212, 864, 0, 833, 1126, -664, 622,
0, 864, 864, 0, 434, 0, 0, 1156, 0, 87,
87, 973, 975, 1071, 979, 981, 0, 87, 0, 105,
105, 105, 105, 105, 105, 105, 105, 217, 217, 87,
270, 762, 0, 357, 358, 359, 360, 338, 328, 329,
946, 1116, 0, 921, 105, 0, 889, 0, 0, 763,
0, 0, 0, 74, 0, 74, 121, 121, 0, 1109,
0, 0, -664, 0, 121, 105, 900, 0, 105, 0,
105, 0, 0, 105, 0, 1116, 1022, -664, 1024, 0,
0, 921, 1025, 921, 0, 921, 0, 921, 0, 0,
330, 331, 0, 833, 0, 0, 87, 0, 87, 833,
0, 87, 334, 74, 105, 328, 329, 121, 0, 0,
-664, 0, -664, 0, 105, 105, -664, 0, 0, -664,
1064, 921, 898, 354, 355, 0, 0, 0, 0, 105,
0, 105, 105, 121, 1146, 1148, 1150, 419, 1152, 1153,
0, -302, 105, 1064, -302, -302, 105, 0, 217, 0,
105, 0, 0, 87, 87, 105, 0, 330, 331, 762,
105, 357, 358, 359, 360, 426, 427, 428, 429, 430,
74, -302, -302, 0, -302, 562, 0, 763, 328, 329,
349, 350, 351, 352, 353, 1092, 1093, 1010, 340, 328,
329, 0, 0, 105, 0, 0, 1184, 1186, 1187, 1188,
0, 246, 105, 1019, 247, 248, 0, 1112, 0, 1115,
0, 832, 0, 0, 87, 217, 217, 0, 0, 1199,
105, 833, 0, 87, 87, 0, 832, 0, 105, 0,
330, 331, 249, 0, 250, 807, 808, 809, 0, 0,
0, 330, 331, 0, 833, 833, 0, 0, 833, 0,
1094, 0, 944, 0, 0, 105, 811, 0, 0, 40,
41, 74, 0, 1139, 812, 0, 1141, 786, 0, 357,
358, 359, 360, 0, 105, 75, 0, 75, 122, 122,
555, 328, 329, 0, 0, 361, 122, 560, 328, 329,
0, 0, 813, 0, 564, 328, 329, 0, 814, 815,
0, 816, 0, 0, 832, 0, 0, 58, 0, 1170,
363, 0, 0, 0, 1172, 0, 1174, 365, 366, 367,
1175, 565, 328, 329, 0, 75, 833, 833, 818, 122,
0, 833, 0, 330, 331, 120, 0, 0, 74, 0,
330, 331, 945, 0, 368, 74, 74, 330, 331, 0,
0, 105, 105, 74, 1195, 122, 757, 328, 329, 807,
808, 809, 246, 0, 121, 247, 248, 0, 762, 0,
357, 358, 359, 360, 330, 331, 810, 0, 0, 0,
811, 0, 0, 40, 41, 105, 763, 246, 812, 502,
247, 248, 75, 249, 0, 250, 0, 0, 0, 74,
833, 950, 956, 0, 74, 0, 0, 950, 0, 330,
331, 363, 833, 0, 0, 0, 813, 764, 249, 0,
250, 0, 814, 815, 74, 816, 0, 817, 0, 0,
0, 58, 0, 833, 833, 0, 762, 0, 357, 358,
359, 360, 0, 0, 762, 74, 357, 358, 359, 360,
74, 121, 818, 74, 763, 0, 0, 246, 0, 120,
247, 248, 763, 0, 105, 0, 0, 0, 833, 0,
0, 0, 105, 105, 0, 0, 105, 0, 104, 363,
104, 128, 128, 75, 0, 1018, 0, 363, 1013, 231,
250, 0, 0, 0, 74, 74, 0, 0, 0, 356,
0, 357, 358, 359, 360, 0, 0, 105, 105, 0,
0, 74, 0, 105, 105, 0, 0, 361, 0, 105,
105, 1086, 74, 357, 358, 359, 360, 0, 104, 950,
74, 362, 317, 105, 0, 0, 105, 0, 0, 763,
74, 0, 363, 0, 0, 105, 105, 0, 364, 365,
366, 367, 950, 950, 105, 956, 950, 0, 317, 0,
75, 0, 0, 0, 0, 105, 105, 75, 75, -690,
0, 0, 0, 74, 0, 75, 368, 0, 0, 369,
0, 0, 74, 0, 0, 0, 122, 0, 807, 808,
809, 0, 370, 0, 0, 104, 121, 0, 121, 0,
0, 0, 0, 0, 0, 944, 0, 0, 74, 811,
0, 0, 40, 41, 0, 0, 0, 812, 0, 0,
0, 75, 0, 0, 0, 0, 75, 0, 0, 0,
0, 0, 0, 0, 950, 950, 0, 956, 0, 950,
0, 0, 0, 0, 0, 813, 75, 0, 105, 0,
0, 814, 815, 0, 816, 0, 0, 0, 105, 105,
58, 0, 0, 121, 0, 0, 105, 75, 0, 0,
0, 0, 75, 122, 0, 75, 105, 105, 105, 0,
0, 818, 0, 0, 416, 417, 104, 356, 120, 357,
358, 359, 360, 0, 807, 808, 809, 419, 0, 0,
0, 0, 0, 0, 0, 361, 0, 0, 950, 0,
0, 944, 0, 0, 0, 811, 75, 75, 40, 41,
832, 0, 0, 812, 425, 426, 427, 428, 429, 430,
363, 0, 74, 75, 0, 0, 364, 365, 366, 367,
0, 950, 950, 0, 75, 105, 0, 105, 0, 0,
105, 813, 75, 0, 0, 0, 0, 814, 815, 0,
0, 0, 75, 104, 368, 0, 58, 369, 416, 417,
104, 104, 0, 0, 0, 0, 950, 0, 104, 0,
551, 419, 0, 0, 0, 0, 0, 818, 0, 317,
0, 0, 416, 417, 120, 75, 0, 105, 0, 0,
0, 0, 105, 105, 75, 419, 423, 424, 425, 426,
427, 428, 429, 430, 0, 0, 0, 0, 122, 0,
122, 0, 0, 0, 104, 0, 0, 0, 0, 104,
75, 0, 0, 426, 427, 428, 429, 430, 0, 0,
0, 0, 0, 0, 74, 0, 0, 0, 0, 104,
0, 121, 74, 74, 0, 0, 0, 0, 0, 0,
0, 0, 0, 105, 105, 105, 0, 0, 0, 0,
104, 0, 105, 105, 0, 104, 317, 0, 623, 0,
0, 0, 0, 0, 0, 122, 0, 74, 0, 0,
0, 0, 0, 74, 74, 0, 0, 0, 0, 74,
74, 0, 0, 101, 0, 101, 127, 127, 127, 0,
0, 0, 0, 74, 230, 0, 0, 0, 0, 623,
623, 0, 0, 0, 0, 74, 74, 0, 0, 0,
0, 0, 0, 0, 74, 0, 104, 0, 356, 0,
357, 358, 359, 360, 0, 74, 74, 104, 0, 0,
0, 0, 0, 101, 75, 104, 361, 316, 0, 0,
0, 0, 0, 0, 0, 104, 0, 0, 0, 0,
362, 0, 121, 0, 0, 0, 0, 121, 0, 0,
0, 363, 0, 316, 0, 0, 0, 364, 365, 366,
367, 0, 0, 0, 0, 0, 0, 0, 104, 0,
0, 356, 0, 357, 358, 359, 360, 104, 0, 0,
0, 0, 0, 0, 0, 368, 0, 0, 369, 361,
101, 317, 0, 317, 0, 0, 0, 0, 74, 0,
0, 370, 0, 104, 0, 0, 0, 0, 74, 74,
0, 0, 121, 0, 363, 0, 74, 0, 0, 0,
364, 365, 366, 367, 0, 0, 0, 0, 74, 0,
0, 0, 0, 0, 0, 0, 75, 0, 0, 0,
0, 0, 0, 122, 75, 75, 0, 0, 368, 0,
0, 369, 0, 0, 0, 0, 0, 0, 317, 0,
0, 0, 1107, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 75,
0, 101, 0, 0, 0, 75, 75, 0, 0, 0,
0, 75, 75, 0, 0, 74, 0, 74, 0, 0,
74, 0, 0, 0, 0, 75, 0, 0, 0, 0,
0, 356, 0, 357, 358, 359, 360, 75, 75, 0,
0, 0, 0, 0, 0, 0, 75, 104, 356, 361,
357, 358, 359, 360, 0, 0, 0, 75, 75, 84,
0, 84, 0, 0, 0, 581, 361, 0, 0, 0,
227, 0, 74, 74, 363, 0, 0, 0, 101, 0,
364, 365, 366, 367, 122, 101, 101, 0, 0, 122,
0, 363, 0, 101, 0, 0, 0, 364, 365, 366,
367, 0, 0, 0, 316, 0, 0, 0, 368, 84,
0, 369, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 368, 0, 0, 369, 0,
0, 0, 0, 74, 0, 0, 0, 0, 0, 101,
75, 0, 74, 74, 101, 0, 0, 0, 0, 0,
75, 75, 0, 0, 122, 0, 0, 0, 75, 104,
0, 0, 0, 0, 101, 0, 317, 104, 623, 102,
75, 102, 0, 0, 0, 0, 84, 0, 0, 0,
0, 0, 0, 0, 0, 101, 0, 0, 0, 0,
101, 316, 0, 0, 0, 356, 0, 357, 358, 359,
360, 0, 623, 0, 0, 0, 0, 0, 623, 623,
0, 0, 0, 361, 104, 104, 0, 0, 0, 102,
0, 0, 0, 0, 0, 0, 0, 0, 104, 778,
0, 0, 0, 0, 0, 0, 0, 75, 363, 75,
104, 104, 75, 0, 364, 365, 366, 367, 0, 104,
0, 101, 0, 0, 0, 0, 0, 0, 0, 0,
104, 104, 101, 0, 0, 0, 0, 84, 0, 0,
101, 0, 368, 0, 0, 369, 0, 0, 0, 0,
101, 0, 0, 0, 0, 0, 102, 128, 0, -690,
0, 0, 128, 0, 75, 75, 0, 0, 0, 0,
0, 0, -690, -690, -690, -690, -690, -690, 0, -690,
0, 0, 0, 101, -690, -690, -690, 0, 0, 0,
0, 0, 101, 0, 0, 0, -690, -690, 0, -690,
-690, -690, -690, -690, 0, 0, 316, 0, 316, 0,
0, 0, 0, 623, 84, 0, 0, 0, 101, 0,
0, 84, 84, 104, 104, 75, 0, 1073, 0, 84,
0, 104, 0, 0, 75, 75, 356, 0, 357, 358,
359, 360, 0, 104, 0, 0, 0, 102, 0, -690,
0, 0, 0, 0, 361, 0, 0, 0, 0, 0,
0, 0, 0, 0, -690, 0, 0, 0, 0, 0,
902, 0, 0, 316, -690, 84, 0, -690, -690, 363,
84, 0, 0, 0, 0, 364, 365, 366, 367, 0,
0, 0, 0, 0, 0, 0, 0, -690, -690, 0,
84, 0, 0, 275, -690, -690, -690, -690, 0, 0,
104, 0, 104, 368, 0, 104, 369, 0, 0, 0,
0, 84, 0, 0, 102, 0, 84, 0, 0, 618,
0, 102, 102, 0, 0, 0, 0, 0, 0, 102,
0, 0, 101, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 104, 104, 0,
618, 618, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 102, 0, 84, 0, 0,
102, 0, 0, 0, 0, 0, 0, 0, 84, 0,
0, 0, 0, 0, 0, 0, 84, 0, 0, 0,
102, 0, 0, 0, 0, 0, 84, 404, 405, 406,
407, 408, 409, 410, 0, 412, 413, 0, 104, 0,
0, 102, 0, 416, 417, 0, 102, 104, 104, 102,
0, 0, 0, 0, 0, 0, 419, 0, 0, 84,
0, 0, 0, 0, 101, 0, 0, 0, 84, 0,
0, 316, 101, 0, 0, 0, 0, 0, 0, 421,
422, 423, 424, 425, 426, 427, 428, 429, 430, 0,
102, 102, 0, 0, 84, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 102, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 102, 101,
101, 0, 0, 0, 0, 0, 102, 0, 0, 0,
0, 0, 0, 101, 0, 0, 102, 0, 0, 0,
0, 0, 0, 0, 0, 101, 101, 0, 0, 0,
0, 0, 0, 0, 101, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 101, 101, 0, 0, 102,
0, 0, 0, 0, 0, 0, 0, 0, 102, 0,
5, 6, 7, 8, 9, 10, 11, 12, 13, 0,
0, 0, 127, 0, 0, 0, 15, 127, 108, 109,
18, 19, 0, 0, 102, 0, 0, 110, 111, 112,
23, 24, 25, 26, 0, 0, 113, 0, 84, 0,
0, 0, 0, 0, 0, 31, 32, 33, 34, 35,
36, 37, 38, 39, 0, 40, 41, 42, 0, 0,
43, 0, 0, 44, 45, 0, 116, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 101, 101,
0, 0, 1072, 0, 0, 0, 101, 0, 312, 0,
0, 119, 53, 0, 54, 55, 0, 0, 101, 0,
0, 57, 0, 58, 59, 60, 0, 61, 62, 63,
0, 64, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 266, 266, 0, 0, 266, 0, 0,
0, 120, 0, 0, 0, 0, 0, 0, 0, 313,
0, 0, 0, 0, 0, 0, 0, 0, 102, 0,
84, 0, 0, 0, 288, 290, 291, 292, 84, 618,
0, 266, 308, 0, 0, 101, 0, 101, 0, 0,
101, 0, 0, 345, 346, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 618, 0, 0, 0, 0, 0, 618,
618, 0, 0, 0, 0, 84, 84, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 84,
0, 0, 101, 101, 0, 0, 0, 0, 0, 0,
0, 84, 84, 0, 0, 0, 0, 0, 0, 0,
84, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 84, 84, 0, 0, 0, 0, 0, 0, 0,
102, 0, 0, 0, 0, 0, 0, 0, 102, 102,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 101, 0, 0, 0, 0, 0, 0,
0, 0, 101, 101, 0, 0, 0, 0, 0, 0,
0, 0, 0, 102, 0, 0, 0, 0, 0, 102,
102, 0, 0, 0, 0, 102, 102, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 102,
0, 0, 0, 0, 618, 0, 0, 0, 0, 0,
0, 102, 102, 0, 84, 84, 0, 0, 1070, 0,
102, 0, 84, 0, 0, 0, 0, 0, 0, 0,
0, 102, 102, 0, 84, 0, 0, 0, 498, 499,
500, 345, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 266, 0, 0, 0, 266, 0, 0, 0,
0, 652, 653, 0, 0, 654, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
174, 175, 176, 177, 178, 179, 180, 181, 0, 0,
182, 183, 0, 0, 0, 0, 184, 185, 186, 187,
0, 84, 0, 84, 0, 0, 84, 0, 0, 0,
188, 189, 190, 0, 102, 0, 0, 0, 0, 0,
0, 0, 0, 0, 102, 102, 0, 0, 0, 0,
0, 0, 102, 0, 191, 192, 193, 194, 195, 196,
197, 198, 199, 200, 102, 201, 202, 0, 0, 0,
0, 586, 0, 203, 275, 0, 0, 0, 84, 84,
0, 0, 596, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 608, 0, 0, 0, 0, 619,
0, 625, 626, 627, 628, 629, 630, 631, 632, 633,
634, 635, 636, 637, 638, 0, 640, 641, 642, 643,
644, 645, 646, 647, 648, 649, 650, 651, 0, 0,
266, 102, 0, 102, 0, 0, 102, 0, 0, 84,
673, 673, 0, 0, 0, 0, 0, 0, 84, 84,
0, 0, 0, 0, 0, 266, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
673, 0, 266, 0, 673, 673, 0, 0, 0, 0,
0, 266, 0, 0, 0, 0, 0, 0, 102, 102,
719, 0, 0, 722, 723, 0, 0, 0, 724, 0,
0, 727, 0, 730, 0, 308, 292, 0, 0, 0,
0, 0, 0, -691, -691, -691, -691, 408, 409, 0,
0, -691, -691, 673, 0, 0, 0, 0, 0, 416,
417, 0, 0, 727, 0, 0, 308, 0, 0, 0,
0, 0, 419, 0, 0, 0, 266, 0, 0, 102,
0, 0, 0, 0, 0, 0, 0, 0, 102, 102,
0, 0, 0, 760, 761, 421, 422, 423, 424, 425,
426, 427, 428, 429, 430, 0, 0, 0, 0, 0,
0, 771, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
789, 0, 0, 796, 0, 0, -690, 4, 0, 5,
6, 7, 8, 9, 10, 11, 12, 13, 14, 0,
0, 0, 0, 0, 0, 15, 0, 16, 17, 18,
19, 0, 0, 0, 0, 0, 20, 21, 22, 23,
24, 25, 26, 0, 0, 27, 0, 0, 0, 0,
0, 28, 29, 30, 31, 32, 33, 34, 35, 36,
37, 38, 39, 0, 40, 41, 42, 0, 0, 43,
0, 0, 44, 45, 0, 46, 47, 48, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 858,
49, 50, 771, 789, 0, 0, 0, 51, 0, 0,
52, 53, 0, 54, 55, 0, 56, 0, 403, 0,
57, 0, 58, 59, 60, 0, 61, 62, 63, 0,
64, -690, 0, 884, -690, -690, 0, 0, 0, 0,
0, 0, 727, 308, 0, 0, 0, 0, 0, 0,
65, 66, 67, 0, 0, 0, 0, 0, 0, 0,
0, 0, -690, 0, -690, 404, 405, 406, 407, 408,
409, 410, 411, 412, 413, 414, 415, 0, 0, 0,
0, 416, 417, 0, 0, 0, 418, 0, 0, 0,
0, 0, 0, 0, 419, 0, 0, 0, 0, 0,
0, 0, 0, 0, 933, 0, 0, 0, 0, 673,
936, 0, 266, 0, 0, 420, 0, 421, 422, 423,
424, 425, 426, 427, 428, 429, 430, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 673, 673, 0, 0, 0, 727, 673,
673, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 673, 673, 0, 673, 673,
0, 0, 0, 0, 0, 0, 0, 0, 0, 1008,
0, 0, 0, 292, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1020, 1021, 0, 0, 0, -296, 0, 0, 0, 0,
0, 0, 0, 1026, 1027, 0, 0, 0, -296, -296,
-296, -296, -296, -296, 0, -296, 0, 0, 0, 1043,
-296, 0, -296, -296, -296, 0, 0, 0, 0, 0,
0, 0, -296, -296, 0, -296, -296, -296, -296, -296,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, -296, 0, 0, 0, 0, 1061, 1062, 0,
0, 0, 0, 0, 673, 0, 0, -296, -296, -296,
-296, -296, -296, -296, -296, -296, -296, -296, -296, 0,
0, 0, 0, -296, -296, -296, 0, 673, -296, 0,
0, 0, 0, 0, -296, 0, -296, 0, 308, 0,
-296, 0, 0, 0, 0, 0, 0, 0, -296, 0,
-296, 0, 0, -296, -296, 0, 0, -296, -296, -296,
-296, -296, -296, -296, -296, -296, -296, -296, -296, 0,
0, 0, 0, 0, -296, -296, -296, -296, 0, 0,
-296, -296, -296, -296, -420, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, -420, -420, -420,
-420, -420, -420, 0, -420, 0, 0, 0, 0, -420,
-420, -420, -420, 0, 0, 0, 0, 0, 0, 0,
0, -420, -420, 0, -420, -420, -420, -420, -420, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 266, 0, 0, -420, -420, -420, -420,
-420, -420, -420, -420, -420, -420, -420, -420, 0, 0,
0, 0, -420, -420, -420, 0, 0, -420, 0, 0,
0, 0, 0, -420, 0, -420, 0, 0, 0, -420,
0, 0, 0, 0, 0, 0, 0, 0, 0, -420,
0, 0, -420, -420, 0, 0, -420, 0, -420, -420,
-420, -420, -420, -420, -420, -420, -420, -420, 0, 0,
-551, 0, -420, -420, -420, -420, -420, 0, 275, -420,
-420, -420, -420, -551, -551, -551, -551, -551, -551, 0,
-551, 0, 0, 0, 0, -551, 0, -551, -551, 0,
0, 0, 0, 0, 0, 0, 0, -551, -551, 0,
-551, -551, -551, -551, -551, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 496, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, -551, -551, -551, -551, -551, -551, -551, -551,
-551, -551, -551, -551, 0, 0, 0, 0, -551, -551,
-551, 0, -551, -551, 0, 0, 0, 0, 0, -551,
0, -551, 0, 0, 0, -551, 0, 0, 0, 0,
0, 0, 0, 0, 0, -551, 0, 0, -551, -551,
0, -551, -551, 0, -551, -551, -551, -551, -551, -551,
-551, -551, -551, -551, 0, 0, -690, 0, 0, -551,
-551, -551, -551, 0, 0, -551, -551, -551, -551, -690,
-690, -690, -690, -690, -690, 0, -690, 0, 0, 0,
0, -690, -690, -690, -690, 0, 0, 0, 0, 0,
0, 0, 0, -690, -690, 0, -690, -690, -690, -690,
-690, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, -690, -690,
-690, -690, -690, -690, -690, -690, -690, -690, -690, -690,
0, 0, 0, 0, -690, -690, -690, 0, 0, -690,
0, 0, 0, 0, 0, -690, 0, -690, 0, 0,
0, -690, 0, 0, 0, 0, 0, 0, 0, 0,
0, -690, 0, 0, -690, -690, 0, 0, -690, 0,
-690, -690, -690, -690, -690, -690, -690, -690, -690, -690,
0, 0, -690, 0, -690, -690, -690, -690, -690, 0,
275, -690, -690, -690, -690, -690, -690, -690, -690, -690,
-690, 0, -690, 0, 0, 0, 0, -690, 0, -690,
-690, 0, 0, 0, 0, 0, 0, 0, 0, -690,
-690, 0, -690, -690, -690, -690, -690, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, -690, -690, -690, -690, -690, -690,
-690, -690, -690, -690, -690, -690, 0, 0, 0, 0,
-690, -690, -690, 0, 0, -690, 0, 0, 0, 0,
0, -690, 0, -690, 0, 0, 0, -690, 0, 0,
0, 0, 0, 0, 0, 0, 0, -690, 0, 0,
-690, -690, 0, 0, -690, 0, -690, -690, -690, -690,
-690, -690, -690, -690, -690, -690, 0, 0, -667, 0,
0, -690, -690, -690, -690, 0, 275, -690, -690, -690,
-690, -667, -667, -667, 0, -667, -667, 0, -667, 0,
0, 0, 0, -667, -667, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, -667, -667, 0, -667, -667,
-667, -667, -667, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
-667, -667, -667, -667, -667, -667, -667, -667, -667, -667,
-667, -667, 0, 0, 0, 0, -667, -667, -667, 0,
836, -667, 0, 0, 0, 0, 0, 0, 0, -667,
0, 0, 0, -667, 0, 0, 0, 0, 0, 0,
0, 0, 0, -667, 0, 0, -667, -667, 0, -110,
-667, 0, -667, -667, -667, -667, -667, -667, -667, -667,
-667, -667, 0, 0, -667, 0, -667, -667, -667, 0,
-102, 0, 0, -667, -667, -667, -667, -667, -667, -667,
0, -667, -667, 0, -667, 0, 0, 0, 0, -667,
-667, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, -667, -667, 0, -667, -667, -667, -667, -667, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, -667, -667, -667, -667,
-667, -667, -667, -667, -667, -667, -667, -667, 0, 0,
0, 0, -667, -667, -667, 0, 836, -667, 0, 0,
0, 0, 0, 0, 0, -667, 0, 0, 0, -667,
0, 0, 0, 0, 0, 0, 0, 0, 0, -667,
0, 0, -667, -667, 0, -110, -667, 0, -667, -667,
-667, -667, -667, -667, -667, -667, -667, -667, 0, 0,
-305, 0, -667, -667, -667, 0, -667, 0, 0, -667,
-667, -667, -667, -305, -305, -305, 0, -305, -305, 0,
-305, 0, 0, 0, 0, -305, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, -305, -305, 0,
-305, -305, -305, -305, -305, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, -305, -305, -305, -305, -305, -305, -305, -305,
-305, -305, -305, -305, 0, 0, 0, 0, -305, -305,
-305, 0, 837, -305, 0, 0, 0, 0, 0, 0,
0, -305, 0, 0, 0, -305, 0, 0, 0, 0,
0, 0, 0, 0, 0, -305, 0, 0, -305, -305,
0, -112, -305, 0, -305, -305, -305, -305, -305, -305,
-305, -305, -305, -305, 0, 0, -305, 0, 0, -305,
-305, 0, -104, 0, 0, -305, -305, -305, -305, -305,
-305, -305, 0, -305, -305, 0, -305, 0, 0, 0,
0, -305, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, -305, -305, 0, -305, -305, -305, -305,
-305, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, -305, -305,
-305, -305, -305, -305, -305, -305, -305, -305, -305, -305,
0, 0, 0, 0, -305, -305, -305, 0, 837, -305,
0, 0, 0, 0, 0, 0, 0, -305, 0, 0,
0, -305, 0, 0, 0, 0, 0, 0, 0, 0,
0, -305, 0, 0, -305, -305, 0, -112, -305, 0,
-305, -305, -305, -305, -305, -305, -305, -305, -305, -305,
0, 0, 0, 0, 0, -305, -305, 0, -305, 0,
0, -305, -305, -305, -305, 294, 0, 5, 6, 7,
8, 9, 10, 11, 12, 13, 14, -690, -690, -690,
0, 0, -690, 15, 0, 16, 17, 18, 19, 0,
0, 0, 0, 0, 20, 21, 22, 23, 24, 25,
26, 0, 0, 27, 0, 0, 0, 0, 0, 28,
0, 30, 31, 32, 33, 34, 35, 36, 37, 38,
39, 0, 40, 41, 42, 0, 0, 43, 0, 0,
44, 45, 0, 46, 47, 48, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 49, 50,
0, 0, 0, 0, 0, 51, 0, 0, 52, 53,
0, 54, 55, 0, 56, 0, 0, 0, 57, 0,
58, 59, 60, 0, 61, 62, 63, 0, 64, -690,
0, 0, -690, -690, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 65, 66,
67, 0, 0, 0, 0, 0, 0, 0, 0, 0,
-690, 294, -690, 5, 6, 7, 8, 9, 10, 11,
12, 13, 14, 0, 0, -690, 0, -690, -690, 15,
0, 16, 17, 18, 19, 0, 0, 0, 0, 0,
20, 21, 22, 23, 24, 25, 26, 0, 0, 27,
0, 0, 0, 0, 0, 28, 0, 30, 31, 32,
33, 34, 35, 36, 37, 38, 39, 0, 40, 41,
42, 0, 0, 43, 0, 0, 44, 45, 0, 46,
47, 48, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 49, 50, 0, 0, 0, 0,
0, 51, 0, 0, 52, 53, 0, 54, 55, 0,
56, 0, 0, 0, 57, 0, 58, 59, 60, 0,
61, 62, 63, 0, 64, -690, 0, 0, -690, -690,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 65, 66, 67, 0, 0, 0,
0, 0, 0, 0, 0, 0, -690, 294, -690, 5,
6, 7, 8, 9, 10, 11, 12, 13, 14, 0,
0, -690, 0, 0, -690, 15, -690, 16, 17, 18,
19, 0, 0, 0, 0, 0, 20, 21, 22, 23,
24, 25, 26, 0, 0, 27, 0, 0, 0, 0,
0, 28, 0, 30, 31, 32, 33, 34, 35, 36,
37, 38, 39, 0, 40, 41, 42, 0, 0, 43,
0, 0, 44, 45, 0, 46, 47, 48, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
49, 50, 0, 0, 0, 0, 0, 51, 0, 0,
52, 53, 0, 54, 55, 0, 56, 0, 0, 0,
57, 0, 58, 59, 60, 0, 61, 62, 63, 0,
64, -690, 0, 0, -690, -690, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
65, 66, 67, 0, 0, 0, 0, 0, 0, 0,
0, 0, -690, 294, -690, 5, 6, 7, 8, 9,
10, 11, 12, 13, 14, 0, 0, -690, 0, 0,
-690, 15, 0, 16, 17, 18, 19, -690, 0, 0,
0, 0, 20, 21, 22, 23, 24, 25, 26, 0,
0, 27, 0, 0, 0, 0, 0, 28, 0, 30,
31, 32, 33, 34, 35, 36, 37, 38, 39, 0,
40, 41, 42, 0, 0, 43, 0, 0, 44, 45,
0, 46, 47, 48, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 49, 50, 0, 0,
0, 0, 0, 51, 0, 0, 52, 53, 0, 54,
55, 0, 56, 0, 0, 0, 57, 0, 58, 59,
60, 0, 61, 62, 63, 0, 64, -690, 0, 0,
-690, -690, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 65, 66, 67, 0,
0, 0, 0, 0, 0, 0, 0, 0, -690, 294,
-690, 5, 6, 7, 8, 9, 10, 11, 12, 13,
14, 0, 0, -690, 0, 0, -690, 15, 0, 16,
17, 18, 19, 0, 0, 0, 0, 0, 20, 21,
22, 23, 24, 25, 26, 0, 0, 27, 0, 0,
0, 0, 0, 28, 0, 30, 31, 32, 33, 34,
35, 36, 37, 38, 39, 0, 40, 41, 42, 0,
0, 43, 0, 0, 44, 45, 0, 46, 47, 48,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 49, 50, 0, 0, 0, 0, 0, 51,
0, 0, 52, 53, 0, 54, 55, 0, 56, 0,
0, 0, 57, 0, 58, 59, 60, 0, 61, 62,
63, 0, 64, -690, 0, 0, -690, -690, 4, 0,
5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
0, 0, 65, 66, 67, 0, 15, 0, 16, 17,
18, 19, 0, 0, -690, 0, -690, 20, 21, 22,
23, 24, 25, 26, 0, 0, 27, 0, 0, 0,
0, 0, 28, 29, 30, 31, 32, 33, 34, 35,
36, 37, 38, 39, 0, 40, 41, 42, 0, 0,
43, 0, 0, 44, 45, 0, 46, 47, 48, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 49, 50, 0, 0, 0, 0, 0, 51, 0,
0, 52, 53, 0, 54, 55, 0, 56, 0, 0,
0, 57, 0, 58, 59, 60, 0, 61, 62, 63,
0, 64, -690, 0, 0, -690, -690, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 65, 66, 67, 0, 0, -690, 0, 0, 0,
0, 0, 0, -690, 294, -690, 5, 6, 7, 8,
9, 10, 11, 12, 13, 14, 0, -690, -690, 0,
0, 0, 15, 0, 16, 17, 18, 19, 0, 0,
0, 0, 0, 20, 21, 22, 23, 24, 25, 26,
0, 0, 27, 0, 0, 0, 0, 0, 28, 0,
30, 31, 32, 33, 34, 35, 36, 37, 38, 39,
0, 40, 41, 42, 0, 0, 43, 0, 0, 44,
45, 0, 46, 47, 48, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 49, 50, 0,
0, 0, 0, 0, 51, 0, 0, 52, 53, 0,
54, 55, 0, 56, 0, 0, 0, 57, 0, 58,
59, 60, 0, 61, 62, 63, 0, 64, -690, 0,
0, -690, -690, 294, 0, 5, 6, 7, 8, 9,
10, 11, 12, 13, 14, 0, 0, 65, 66, 67,
0, 15, 0, 16, 17, 18, 19, 0, 0, -690,
0, -690, 20, 21, 22, 23, 24, 25, 26, 0,
0, 27, 0, 0, 0, 0, 0, 28, 0, 30,
31, 32, 33, 34, 35, 36, 37, 38, 39, 0,
40, 41, 42, 0, 0, 43, 0, 0, 44, 45,
0, 46, 47, 48, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 49, 50, 0, 0,
0, 0, 0, 51, 0, 0, 295, 53, 0, 54,
55, 0, 56, 0, 0, 0, 57, 0, 58, 59,
60, 0, 61, 62, 63, 0, 64, -690, 0, 0,
-690, -690, 294, 0, 5, 6, 7, 8, 9, 10,
11, 12, 13, 14, 0, 0, 65, 66, 67, 0,
15, 0, 16, 17, 18, 19, 0, -690, -690, 0,
-690, 20, 21, 22, 23, 24, 25, 26, 0, 0,
27, 0, 0, 0, 0, 0, 28, 0, 30, 31,
32, 33, 34, 35, 36, 37, 38, 39, 0, 40,
41, 42, 0, 0, 43, 0, 0, 44, 45, 0,
46, 47, 48, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 49, 50, 0, 0, 0,
0, 0, 51, 0, 0, 52, 53, 0, 54, 55,
0, 56, 0, 0, 0, 57, 0, 58, 59, 60,
0, 61, 62, 63, 0, 64, -690, 0, 0, -690,
-690, 294, 0, 5, 6, 7, 8, 9, 10, 11,
12, 13, 14, 0, 0, 65, 66, 67, 0, 15,
0, 16, 17, 18, 19, 0, -690, -690, 0, -690,
20, 21, 22, 23, 24, 25, 26, 0, 0, 27,
0, 0, 0, 0, 0, 28, 0, 30, 31, 32,
33, 34, 35, 36, 37, 38, 39, 0, 40, 41,
42, 0, 0, 43, 0, 0, 44, 45, 0, 46,
47, 48, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 49, 50, 0, 0, 0, 0,
0, 51, 0, 0, 52, 53, 0, 54, 55, 0,
56, 0, 0, 0, 57, 0, 58, 59, 60, 0,
61, 62, 63, 0, 64, -690, 0, 0, -690, -690,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 65, 66, 67, 0, 0, -690,
0, 0, 0, 0, 0, 0, -690, 294, -690, 5,
6, 7, 8, 9, 10, 11, 12, 13, 14, 0,
0, -690, 0, 0, 0, 15, 0, 16, 17, 18,
19, 0, 0, 0, 0, 0, 20, 21, 22, 23,
24, 25, 26, 0, 0, 27, 0, 0, 0, 0,
0, 28, 0, 30, 31, 32, 33, 34, 35, 36,
37, 38, 39, 0, 40, 41, 42, 0, 0, 43,
0, 0, 44, 45, 0, 46, 47, 48, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
49, 50, 0, 0, 0, 0, 0, 51, 0, 0,
52, 53, 0, 54, 55, 0, 56, 0, 0, 0,
57, 0, 58, 59, 60, 0, 61, 62, 63, 0,
64, -690, 0, 0, -690, -690, 0, 0, 5, 6,
7, 8, 9, 10, 11, 12, 13, 14, 0, 0,
65, 66, 67, 0, 15, 0, 16, 17, 18, 19,
0, 0, -690, 0, -690, 20, 21, 22, 23, 24,
25, 26, 0, 0, 27, 0, 0, 0, 0, 0,
28, 29, 30, 31, 32, 33, 34, 35, 36, 37,
38, 39, 0, 40, 41, 42, 0, 0, 43, 0,
0, 44, 45, 0, 46, 47, 48, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 49,
50, 0, 0, 0, 0, 0, 51, 0, 0, 52,
53, 0, 54, 55, 0, 56, 0, 0, 0, 57,
0, 58, 59, 60, 0, 61, 62, 63, 0, 64,
246, 0, 0, 247, 248, 0, 0, 5, 6, 7,
8, 9, 10, 11, 12, 13, 14, 0, 0, 65,
66, 67, 0, 15, 0, 16, 17, 18, 19, 0,
0, 249, 0, 250, 20, 21, 22, 23, 24, 25,
26, 0, 0, 27, 0, 0, 0, 0, 0, 28,
0, 30, 31, 32, 33, 34, 35, 36, 37, 38,
39, 0, 40, 41, 42, 0, 0, 43, 0, 0,
44, 45, 0, 46, 47, 48, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 49, 50,
0, 0, 0, 0, 0, 51, 0, 0, 52, 53,
0, 54, 55, 0, 56, 0, 0, 0, 57, 0,
58, 59, 60, 0, 61, 62, 63, 0, 64, 246,
0, 0, 247, 248, 0, 0, 5, 6, 7, 8,
9, 10, 11, 12, 13, 0, 0, 0, 65, 66,
67, 0, 15, 0, 16, 17, 18, 19, 0, 0,
249, 0, 250, 20, 21, 22, 23, 24, 25, 26,
0, 0, 27, 0, 0, 0, 0, 0, 0, 0,
0, 31, 32, 33, 34, 35, 36, 37, 38, 39,
0, 40, 41, 42, 0, 0, 43, 0, 0, 44,
45, 0, 46, 47, 48, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 49, 50, 0,
0, 0, 0, 0, 211, 0, 0, 119, 53, 0,
54, 55, 0, 0, 0, 0, 0, 57, 0, 58,
59, 60, 0, 61, 62, 63, 0, 64, 246, 0,
0, 247, 248, 0, 0, 5, 6, 7, 8, 9,
10, 11, 12, 13, 0, 0, 0, 65, 66, 67,
0, 15, 0, 108, 109, 18, 19, 0, 0, 249,
0, 250, 110, 111, 112, 23, 24, 25, 26, 0,
0, 113, 0, 0, 0, 0, 0, 0, 0, 0,
31, 32, 33, 34, 35, 36, 37, 38, 39, 0,
40, 41, 42, 0, 0, 43, 0, 0, 44, 45,
0, 46, 47, 48, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 49, 50, 0, 0,
0, 0, 0, 211, 0, 0, 119, 53, 0, 54,
55, 0, 0, 0, 0, 0, 57, 0, 58, 59,
60, 0, 61, 62, 63, 0, 64, 246, 0, 0,
247, 248, 0, 0, 5, 6, 7, 8, 9, 10,
11, 12, 13, 0, 0, 0, 65, 264, 67, 0,
15, 0, 16, 17, 18, 19, 0, 0, 249, 0,
250, 20, 21, 22, 23, 24, 25, 26, 0, 0,
27, 0, 0, 0, 0, 0, 0, 0, 0, 31,
32, 33, 34, 35, 36, 37, 38, 39, 0, 40,
41, 42, 0, 0, 43, 0, 0, 44, 45, 0,
46, 47, 48, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 49, 50, 0, 0, 0,
0, 0, 211, 0, 0, 119, 53, 0, 54, 55,
0, 0, 0, 0, 0, 57, 0, 58, 59, 60,
0, 61, 62, 63, 0, 64, 246, 0, 0, 247,
248, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 65, 66, 67, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 250,
131, 132, 133, 134, 135, 136, 137, 138, 139, 140,
141, 142, 143, 144, 145, 146, 147, 148, 149, 150,
151, 152, 153, 154, 0, 0, 0, 155, 156, 157,
158, 159, 160, 161, 162, 163, 164, 0, 0, 0,
0, 0, 165, 166, 167, 168, 169, 170, 171, 172,
36, 37, 173, 39, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 116, 174, 175, 176,
177, 178, 179, 180, 181, 0, 0, 182, 183, 0,
0, 0, 0, 184, 185, 186, 187, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 188, 189, 190,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 191, 192, 193, 194, 195, 196, 197, 198, 199,
200, 0, 201, 202, 0, 0, 0, 0, 0, 0,
203, 204, -660, -660, -660, -660, -660, -660, -660, -660,
-660, 0, 0, 0, 0, 0, 0, 0, -660, 0,
-660, -660, -660, -660, 0, -660, 0, 0, 0, -660,
-660, -660, -660, -660, -660, -660, 0, 0, -660, 0,
0, 0, 0, 0, 0, 0, 0, -660, -660, -660,
-660, -660, -660, -660, -660, -660, 0, -660, -660, -660,
0, 0, -660, 0, 0, -660, -660, 0, -660, -660,
-660, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, -660, -660, 0, 0, 0, 0, 0,
-660, 0, 0, -660, -660, 0, -660, -660, 0, -660,
0, -660, -660, -660, 0, -660, -660, -660, 0, -660,
-660, -660, 0, -660, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, -660, -660, -660, 0, -660, 0, 0,
0, 0, 0, -660, -661, -661, -661, -661, -661, -661,
-661, -661, -661, 0, 0, 0, 0, 0, 0, 0,
-661, 0, -661, -661, -661, -661, 0, -661, 0, 0,
0, -661, -661, -661, -661, -661, -661, -661, 0, 0,
-661, 0, 0, 0, 0, 0, 0, 0, 0, -661,
-661, -661, -661, -661, -661, -661, -661, -661, 0, -661,
-661, -661, 0, 0, -661, 0, 0, -661, -661, 0,
-661, -661, -661, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, -661, -661, 0, 0, 0,
0, 0, -661, 0, 0, -661, -661, 0, -661, -661,
0, -661, 0, -661, -661, -661, 0, -661, -661, -661,
0, -661, -661, -661, 0, -661, 0, 0, 0, 0,
0, 0, -663, -663, -663, -663, -663, -663, -663, -663,
-663, 0, 0, 0, 0, -661, -661, -661, -663, -661,
-663, -663, -663, -663, 0, -661, 0, 0, 0, -663,
-663, -663, -663, -663, -663, -663, 0, 0, -663, 0,
0, 0, 0, 0, 0, 0, 0, -663, -663, -663,
-663, -663, -663, -663, -663, -663, 0, -663, -663, -663,
0, 0, -663, 0, 0, -663, -663, 0, -663, -663,
-663, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, -663, -663, 0, 0, 0, 0, 0,
-663, 868, 0, -663, -663, 0, -663, -663, 0, -663,
0, -663, -663, -663, 0, -663, -663, -663, 0, -663,
-663, -663, 0, -663, 0, 0, 0, 0, 0, 0,
-110, -664, -664, -664, -664, -664, -664, -664, -664, -664,
0, 0, 0, -663, -663, -663, 0, -664, 0, -664,
-664, -664, -664, -663, 0, 0, 0, 0, -664, -664,
-664, -664, -664, -664, -664, 0, 0, -664, 0, 0,
0, 0, 0, 0, 0, 0, -664, -664, -664, -664,
-664, -664, -664, -664, -664, 0, -664, -664, -664, 0,
0, -664, 0, 0, -664, -664, 0, -664, -664, -664,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, -664, -664, 0, 0, 0, 0, 0, -664,
869, 0, -664, -664, 0, -664, -664, 0, -664, 0,
-664, -664, -664, 0, -664, -664, -664, 0, -664, -664,
-664, 0, -664, 0, 0, 0, 0, 0, 0, -112,
-665, -665, -665, -665, -665, -665, -665, -665, -665, 0,
0, 0, -664, -664, -664, 0, -665, 0, -665, -665,
-665, -665, -664, 0, 0, 0, 0, -665, -665, -665,
-665, -665, -665, -665, 0, 0, -665, 0, 0, 0,
0, 0, 0, 0, 0, -665, -665, -665, -665, -665,
-665, -665, -665, -665, 0, -665, -665, -665, 0, 0,
-665, 0, 0, -665, -665, 0, -665, -665, -665, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, -665, -665, 0, 0, 0, 0, 0, -665, 0,
0, -665, -665, 0, -665, -665, 0, -665, 0, -665,
-665, -665, 0, -665, -665, -665, 0, -665, -665, -665,
0, -665, 0, 0, 0, 0, 0, 0, -666, -666,
-666, -666, -666, -666, -666, -666, -666, 0, 0, 0,
0, -665, -665, -665, -666, 0, -666, -666, -666, -666,
0, -665, 0, 0, 0, -666, -666, -666, -666, -666,
-666, -666, 0, 0, -666, 0, 0, 0, 0, 0,
0, 0, 0, -666, -666, -666, -666, -666, -666, -666,
-666, -666, 0, -666, -666, -666, 0, 0, -666, 0,
0, -666, -666, 0, -666, -666, -666, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, -666,
-666, 0, 0, 0, 0, 0, -666, 0, 0, -666,
-666, 0, -666, -666, 0, -666, 0, -666, -666, -666,
0, -666, -666, -666, 0, -666, -666, -666, 0, -666,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, -666,
-666, -666, 0, 0, 0, 0, 0, 0, 0, -666,
131, 132, 133, 134, 135, 136, 137, 138, 139, 140,
141, 142, 143, 144, 145, 146, 147, 148, 149, 150,
151, 152, 153, 154, 0, 0, 0, 155, 156, 157,
232, 233, 234, 235, 162, 163, 164, 0, 0, 0,
0, 0, 165, 166, 167, 236, 237, 238, 239, 172,
319, 320, 240, 321, 0, 0, 0, 0, 0, 0,
322, 0, 0, 0, 0, 0, 323, 174, 175, 176,
177, 178, 179, 180, 181, 0, 0, 182, 183, 0,
0, 0, 0, 184, 185, 186, 187, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 188, 189, 190,
0, 0, 0, 0, 324, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 191, 192, 193, 194, 195, 196, 197, 198, 199,
200, 0, 201, 202, 0, 0, 0, 0, 0, 0,
203, 131, 132, 133, 134, 135, 136, 137, 138, 139,
140, 141, 142, 143, 144, 145, 146, 147, 148, 149,
150, 151, 152, 153, 154, 0, 0, 0, 155, 156,
157, 232, 233, 234, 235, 162, 163, 164, 0, 0,
0, 0, 0, 165, 166, 167, 236, 237, 238, 239,
172, 319, 320, 240, 321, 0, 0, 0, 0, 0,
0, 322, 0, 0, 0, 0, 0, 0, 174, 175,
176, 177, 178, 179, 180, 181, 0, 0, 182, 183,
0, 0, 0, 0, 184, 185, 186, 187, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 188, 189,
190, 0, 0, 0, 0, 487, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 191, 192, 193, 194, 195, 196, 197, 198,
199, 200, 0, 201, 202, 0, 0, 0, 0, 0,
0, 203, 131, 132, 133, 134, 135, 136, 137, 138,
139, 140, 141, 142, 143, 144, 145, 146, 147, 148,
149, 150, 151, 152, 153, 154, 0, 0, 0, 155,
156, 157, 232, 233, 234, 235, 162, 163, 164, 0,
0, 0, 0, 0, 165, 166, 167, 236, 237, 238,
239, 172, 0, 0, 240, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 174,
175, 176, 177, 178, 179, 180, 181, 0, 0, 182,
183, 0, 0, 0, 0, 184, 185, 186, 187, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 188,
189, 190, 0, 0, 0, 241, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 191, 192, 193, 194, 195, 196, 197,
198, 199, 200, 0, 201, 202, 0, 0, 0, 0,
0, 0, 203, 131, 132, 133, 134, 135, 136, 137,
138, 139, 140, 141, 142, 143, 144, 145, 146, 147,
148, 149, 150, 151, 152, 153, 154, 0, 0, 0,
155, 156, 157, 232, 233, 234, 235, 162, 163, 164,
0, 0, 0, 0, 0, 165, 166, 167, 236, 237,
238, 239, 172, 0, 0, 240, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
174, 175, 176, 177, 178, 179, 180, 181, 0, 0,
182, 183, 0, 0, 0, 0, 184, 185, 186, 187,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
188, 189, 190, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 191, 192, 193, 194, 195, 196,
197, 198, 199, 200, 0, 201, 202, 0, 0, 0,
0, 0, 0, 203, 5, 6, 7, 8, 9, 10,
11, 12, 13, 0, 0, 0, 0, 0, 0, 0,
15, 0, 108, 109, 18, 19, 0, 0, 0, 0,
0, 110, 111, 112, 23, 24, 25, 26, 0, 0,
113, 0, 0, 0, 0, 0, 0, 0, 0, 31,
32, 33, 34, 35, 36, 37, 38, 39, 0, 40,
41, 42, 0, 0, 43, 0, 0, 44, 45, 0,
116, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 312, 0, 0, 119, 53, 0, 54, 55,
0, 0, 0, 0, 0, 57, 0, 58, 59, 60,
0, 61, 62, 63, 0, 64, 0, 0, 5, 6,
7, 8, 9, 10, 11, 12, 13, 14, 0, 0,
0, 0, 0, 0, 15, 120, 16, 17, 18, 19,
0, 0, 0, 612, 0, 20, 21, 22, 23, 24,
25, 26, 0, 0, 27, 0, 0, 0, 0, 0,
28, 29, 30, 31, 32, 33, 34, 35, 36, 37,
38, 39, 0, 40, 41, 42, 0, 0, 43, 0,
0, 44, 45, 0, 46, 47, 48, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 49,
50, 0, 0, 0, 0, 0, 51, 0, 0, 52,
53, 0, 54, 55, 0, 56, 0, 0, 0, 57,
0, 58, 59, 60, 0, 61, 62, 63, 0, 64,
0, 0, 0, 0, 0, 0, 5, 6, 7, 8,
9, 10, 11, 12, 13, 14, 0, 0, 0, 65,
66, 67, 15, 0, 16, 17, 18, 19, 0, 0,
0, 0, 0, 20, 21, 22, 23, 24, 25, 26,
0, 0, 27, 0, 0, 0, 0, 0, 28, 0,
30, 31, 32, 33, 34, 35, 36, 37, 38, 39,
0, 40, 41, 42, 0, 0, 43, 0, 0, 44,
45, 0, 46, 47, 48, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 49, 50, 0,
0, 0, 0, 0, 51, 0, 0, 52, 53, 0,
54, 55, 0, 56, 0, 0, 0, 57, 0, 58,
59, 60, 0, 61, 62, 63, 0, 64, 0, 0,
0, 0, 0, 0, 5, 6, 7, 8, 9, 10,
11, 12, 13, 0, 0, 0, 0, 65, 66, 67,
15, 0, 16, 17, 18, 19, 0, 0, 0, 0,
0, 20, 21, 22, 23, 24, 25, 26, 0, 0,
113, 0, 0, 0, 0, 0, 0, 0, 0, 31,
32, 33, 259, 35, 36, 37, 38, 39, 0, 40,
41, 42, 0, 0, 43, 0, 0, 44, 45, 0,
260, 47, 48, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 49, 50, 0, 0, 0,
0, 0, 211, 0, 0, 119, 53, 0, 54, 55,
0, 261, 0, 262, 263, 57, 0, 58, 59, 60,
0, 61, 62, 63, 0, 64, 0, 0, 0, 0,
0, 0, 5, 6, 7, 8, 9, 10, 11, 12,
13, 0, 0, 0, 0, 65, 264, 67, 15, 0,
16, 17, 18, 19, 0, 0, 0, 0, 0, 20,
21, 22, 23, 24, 25, 26, 0, 0, 113, 0,
0, 0, 0, 0, 0, 0, 0, 31, 32, 33,
259, 35, 36, 37, 38, 39, 0, 40, 41, 42,
0, 0, 43, 0, 0, 44, 45, 0, 260, 47,
48, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 49, 509, 0, 0, 0, 0, 0,
211, 0, 0, 119, 53, 0, 54, 55, 0, 261,
0, 262, 263, 57, 0, 58, 59, 60, 0, 61,
62, 63, 0, 64, 0, 0, 0, 0, 0, 0,
5, 6, 7, 8, 9, 10, 11, 12, 13, 0,
0, 0, 0, 65, 264, 67, 15, 0, 108, 109,
18, 19, 0, 0, 0, 0, 0, 110, 111, 112,
23, 24, 25, 26, 0, 0, 113, 0, 0, 0,
0, 0, 0, 0, 0, 31, 32, 33, 259, 35,
36, 37, 38, 39, 0, 40, 41, 42, 0, 0,
43, 0, 0, 44, 45, 0, 260, 47, 48, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 49, 50, 0, 0, 0, 0, 0, 211, 0,
0, 119, 53, 0, 54, 55, 0, 726, 0, 262,
263, 57, 0, 58, 59, 60, 0, 61, 62, 63,
0, 64, 0, 0, 0, 0, 0, 0, 5, 6,
7, 8, 9, 10, 11, 12, 13, 0, 0, 0,
0, 65, 264, 67, 15, 0, 108, 109, 18, 19,
0, 0, 0, 0, 0, 110, 111, 112, 23, 24,
25, 26, 0, 0, 113, 0, 0, 0, 0, 0,
0, 0, 0, 31, 32, 33, 259, 35, 36, 37,
38, 39, 0, 40, 41, 42, 0, 0, 43, 0,
0, 44, 45, 0, 260, 47, 48, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 49,
886, 0, 0, 0, 0, 0, 211, 0, 0, 119,
53, 0, 54, 55, 0, 726, 0, 262, 263, 57,
0, 58, 59, 60, 0, 61, 62, 63, 0, 64,
0, 0, 0, 0, 0, 0, 5, 6, 7, 8,
9, 10, 11, 12, 13, 0, 0, 0, 0, 65,
264, 67, 15, 0, 108, 109, 18, 19, 0, 0,
0, 0, 0, 110, 111, 112, 23, 24, 25, 26,
0, 0, 113, 0, 0, 0, 0, 0, 0, 0,
0, 31, 32, 33, 259, 35, 36, 37, 38, 39,
0, 40, 41, 42, 0, 0, 43, 0, 0, 44,
45, 0, 260, 47, 48, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 49, 50, 0,
0, 0, 0, 0, 211, 0, 0, 119, 53, 0,
54, 55, 0, 261, 0, 262, 0, 57, 0, 58,
59, 60, 0, 61, 62, 63, 0, 64, 0, 0,
0, 0, 0, 0, 5, 6, 7, 8, 9, 10,
11, 12, 13, 0, 0, 0, 0, 65, 264, 67,
15, 0, 108, 109, 18, 19, 0, 0, 0, 0,
0, 110, 111, 112, 23, 24, 25, 26, 0, 0,
113, 0, 0, 0, 0, 0, 0, 0, 0, 31,
32, 33, 259, 35, 36, 37, 38, 39, 0, 40,
41, 42, 0, 0, 43, 0, 0, 44, 45, 0,
260, 47, 48, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 49, 50, 0, 0, 0,
0, 0, 211, 0, 0, 119, 53, 0, 54, 55,
0, 0, 0, 262, 263, 57, 0, 58, 59, 60,
0, 61, 62, 63, 0, 64, 0, 0, 0, 0,
0, 0, 5, 6, 7, 8, 9, 10, 11, 12,
13, 0, 0, 0, 0, 65, 264, 67, 15, 0,
108, 109, 18, 19, 0, 0, 0, 0, 0, 110,
111, 112, 23, 24, 25, 26, 0, 0, 113, 0,
0, 0, 0, 0, 0, 0, 0, 31, 32, 33,
259, 35, 36, 37, 38, 39, 0, 40, 41, 42,
0, 0, 43, 0, 0, 44, 45, 0, 260, 47,
48, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 49, 50, 0, 0, 0, 0, 0,
211, 0, 0, 119, 53, 0, 54, 55, 0, 726,
0, 262, 0, 57, 0, 58, 59, 60, 0, 61,
62, 63, 0, 64, 0, 0, 0, 0, 0, 0,
5, 6, 7, 8, 9, 10, 11, 12, 13, 0,
0, 0, 0, 65, 264, 67, 15, 0, 108, 109,
18, 19, 0, 0, 0, 0, 0, 110, 111, 112,
23, 24, 25, 26, 0, 0, 113, 0, 0, 0,
0, 0, 0, 0, 0, 31, 32, 33, 259, 35,
36, 37, 38, 39, 0, 40, 41, 42, 0, 0,
43, 0, 0, 44, 45, 0, 260, 47, 48, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 49, 50, 0, 0, 0, 0, 0, 211, 0,
0, 119, 53, 0, 54, 55, 0, 0, 0, 262,
0, 57, 0, 58, 59, 60, 0, 61, 62, 63,
0, 64, 0, 0, 0, 0, 0, 0, 5, 6,
7, 8, 9, 10, 11, 12, 13, 0, 0, 0,
0, 65, 264, 67, 15, 0, 16, 17, 18, 19,
0, 0, 0, 0, 0, 20, 21, 22, 23, 24,
25, 26, 0, 0, 113, 0, 0, 0, 0, 0,
0, 0, 0, 31, 32, 33, 34, 35, 36, 37,
38, 39, 0, 40, 41, 42, 0, 0, 43, 0,
0, 44, 45, 0, 46, 47, 48, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 49,
50, 0, 0, 0, 0, 0, 211, 0, 0, 119,
53, 0, 54, 55, 0, 606, 0, 0, 0, 57,
0, 58, 59, 60, 0, 61, 62, 63, 0, 64,
0, 0, 0, 0, 0, 0, 5, 6, 7, 8,
9, 10, 11, 12, 13, 0, 0, 0, 0, 65,
264, 67, 15, 0, 108, 109, 18, 19, 0, 0,
0, 0, 0, 110, 111, 112, 23, 24, 25, 26,
0, 0, 113, 0, 0, 0, 0, 0, 0, 0,
0, 31, 32, 33, 34, 35, 36, 37, 38, 39,
0, 40, 41, 42, 0, 0, 43, 0, 0, 44,
45, 0, 46, 47, 48, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 49, 50, 0,
0, 0, 0, 0, 211, 0, 0, 119, 53, 0,
54, 55, 0, 261, 0, 0, 0, 57, 0, 58,
59, 60, 0, 61, 62, 63, 0, 64, 0, 0,
0, 0, 0, 0, 5, 6, 7, 8, 9, 10,
11, 12, 13, 0, 0, 0, 0, 65, 264, 67,
15, 0, 108, 109, 18, 19, 0, 0, 0, 0,
0, 110, 111, 112, 23, 24, 25, 26, 0, 0,
113, 0, 0, 0, 0, 0, 0, 0, 0, 31,
32, 33, 34, 35, 36, 37, 38, 39, 0, 40,
41, 42, 0, 0, 43, 0, 0, 44, 45, 0,
46, 47, 48, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 49, 50, 0, 0, 0,
0, 0, 211, 0, 0, 119, 53, 0, 54, 55,
0, 606, 0, 0, 0, 57, 0, 58, 59, 60,
0, 61, 62, 63, 0, 64, 0, 0, 0, 0,
0, 0, 5, 6, 7, 8, 9, 10, 11, 12,
13, 0, 0, 0, 0, 65, 264, 67, 15, 0,
108, 109, 18, 19, 0, 0, 0, 0, 0, 110,
111, 112, 23, 24, 25, 26, 0, 0, 113, 0,
0, 0, 0, 0, 0, 0, 0, 31, 32, 33,
34, 35, 36, 37, 38, 39, 0, 40, 41, 42,
0, 0, 43, 0, 0, 44, 45, 0, 46, 47,
48, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 49, 50, 0, 0, 0, 0, 0,
211, 0, 0, 119, 53, 0, 54, 55, 0, 932,
0, 0, 0, 57, 0, 58, 59, 60, 0, 61,
62, 63, 0, 64, 0, 0, 0, 0, 0, 0,
5, 6, 7, 8, 9, 10, 11, 12, 13, 0,
0, 0, 0, 65, 264, 67, 15, 0, 108, 109,
18, 19, 0, 0, 0, 0, 0, 110, 111, 112,
23, 24, 25, 26, 0, 0, 113, 0, 0, 0,
0, 0, 0, 0, 0, 31, 32, 33, 34, 35,
36, 37, 38, 39, 0, 40, 41, 42, 0, 0,
43, 0, 0, 44, 45, 0, 46, 47, 48, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 49, 50, 0, 0, 0, 0, 0, 211, 0,
0, 119, 53, 0, 54, 55, 0, 726, 0, 0,
0, 57, 0, 58, 59, 60, 0, 61, 62, 63,
0, 64, 0, 0, 0, 0, 0, 0, 5, 6,
7, 8, 9, 10, 11, 12, 13, 0, 0, 0,
0, 65, 264, 67, 15, 0, 16, 17, 18, 19,
0, 0, 0, 0, 0, 20, 21, 22, 23, 24,
25, 26, 0, 0, 27, 0, 0, 0, 0, 0,
0, 0, 0, 31, 32, 33, 34, 35, 36, 37,
38, 39, 0, 40, 41, 42, 0, 0, 43, 0,
0, 44, 45, 0, 46, 47, 48, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 49,
50, 0, 0, 0, 0, 0, 211, 0, 0, 119,
53, 0, 54, 55, 0, 0, 0, 0, 0, 57,
0, 58, 59, 60, 0, 61, 62, 63, 0, 64,
0, 0, 0, 0, 0, 0, 5, 6, 7, 8,
9, 10, 11, 12, 13, 0, 0, 0, 0, 65,
66, 67, 15, 0, 108, 109, 18, 19, 0, 0,
0, 0, 0, 110, 111, 112, 23, 24, 25, 26,
0, 0, 113, 0, 0, 0, 0, 0, 0, 0,
0, 31, 32, 33, 34, 35, 36, 37, 38, 39,
0, 40, 41, 42, 0, 0, 43, 0, 0, 44,
45, 0, 46, 47, 48, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 49, 50, 0,
0, 0, 0, 0, 211, 0, 0, 119, 53, 0,
54, 55, 0, 0, 0, 0, 0, 57, 0, 58,
59, 60, 0, 61, 62, 63, 0, 64, 0, 0,
0, 0, 0, 0, 5, 6, 7, 8, 9, 10,
11, 12, 13, 0, 0, 0, 0, 65, 264, 67,
15, 0, 16, 17, 18, 19, 0, 0, 0, 0,
0, 20, 21, 22, 23, 24, 25, 26, 0, 0,
113, 0, 0, 0, 0, 0, 0, 0, 0, 31,
32, 33, 34, 35, 36, 37, 38, 39, 0, 40,
41, 42, 0, 0, 43, 0, 0, 44, 45, 0,
46, 47, 48, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 49, 50, 0, 0, 0,
0, 0, 211, 0, 0, 119, 53, 0, 54, 55,
0, 0, 0, 0, 0, 57, 0, 58, 59, 60,
0, 61, 62, 63, 0, 64, 0, 0, 0, 0,
0, 0, 5, 6, 7, 8, 9, 10, 11, 12,
13, 0, 0, 0, 0, 65, 264, 67, 15, 0,
108, 109, 18, 19, 0, 0, 0, 0, 0, 110,
111, 112, 23, 24, 25, 26, 0, 0, 113, 0,
0, 0, 0, 0, 0, 0, 0, 31, 32, 33,
114, 35, 36, 37, 115, 39, 0, 40, 41, 42,
0, 0, 43, 0, 0, 44, 45, 0, 116, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 117, 0, 0,
118, 0, 0, 119, 53, 0, 54, 55, 0, 0,
0, 0, 0, 57, 0, 58, 59, 60, 0, 61,
62, 63, 0, 64, 0, 0, 5, 6, 7, 8,
9, 10, 11, 12, 13, 0, 0, 0, 0, 0,
0, 0, 15, 120, 108, 109, 18, 19, 0, 0,
0, 0, 0, 110, 111, 112, 23, 24, 25, 26,
0, 0, 113, 0, 0, 0, 0, 0, 0, 0,
0, 31, 32, 33, 34, 35, 36, 37, 38, 39,
0, 40, 41, 42, 0, 0, 43, 0, 0, 44,
45, 0, 224, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 225, 0, 0, 52, 53, 0,
54, 55, 0, 56, 0, 0, 0, 57, 0, 58,
59, 60, 0, 61, 62, 63, 0, 64, 0, 0,
5, 6, 7, 8, 9, 10, 11, 12, 13, 0,
0, 0, 0, 0, 0, 0, 15, 120, 108, 109,
18, 19, 0, 0, 0, 0, 0, 110, 111, 112,
23, 24, 25, 26, 0, 0, 113, 0, 0, 0,
0, 0, 0, 0, 0, 31, 32, 33, 34, 35,
36, 37, 38, 39, 0, 40, 41, 42, 0, 0,
43, 0, 0, 44, 45, 0, 116, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 312, 0,
0, 399, 53, 0, 54, 55, 0, 400, 0, 0,
0, 57, 0, 58, 59, 60, 0, 61, 62, 63,
0, 64, 0, 0, 5, 6, 7, 8, 9, 10,
11, 12, 13, 0, 0, 0, 0, 0, 0, 0,
15, 120, 108, 109, 18, 19, 0, 0, 0, 0,
0, 110, 111, 112, 23, 24, 25, 26, 0, 0,
113, 0, 0, 0, 0, 0, 0, 0, 0, 31,
32, 33, 114, 35, 36, 37, 115, 39, 0, 40,
41, 42, 0, 0, 43, 0, 0, 44, 45, 0,
116, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 118, 0, 0, 119, 53, 0, 54, 55,
0, 0, 0, 0, 0, 57, 0, 58, 59, 60,
0, 61, 62, 63, 0, 64, 0, 0, 5, 6,
7, 8, 9, 10, 11, 12, 13, 0, 0, 0,
0, 0, 0, 0, 15, 120, 108, 109, 18, 19,
0, 0, 0, 0, 0, 110, 111, 112, 23, 24,
25, 26, 0, 0, 113, 0, 0, 0, 0, 0,
0, 0, 0, 31, 32, 33, 34, 35, 36, 37,
38, 39, 0, 40, 41, 42, 0, 0, 43, 0,
0, 44, 45, 0, 116, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 312, 0, 0, 399,
53, 0, 54, 55, 0, 0, 0, 0, 0, 57,
0, 58, 59, 60, 0, 61, 62, 63, 0, 64,
0, 0, 5, 6, 7, 8, 9, 10, 11, 12,
13, 0, 0, 0, 0, 0, 0, 0, 15, 120,
108, 109, 18, 19, 0, 0, 0, 0, 0, 110,
111, 112, 23, 24, 25, 26, 0, 0, 113, 0,
0, 0, 0, 0, 0, 0, 0, 31, 32, 33,
34, 35, 36, 37, 38, 39, 0, 40, 41, 42,
0, 0, 43, 0, 0, 44, 45, 0, 116, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1030, 0, 0, 119, 53, 0, 54, 55, 0, 0,
0, 0, 0, 57, 0, 58, 59, 60, 0, 61,
62, 63, 0, 64, 0, 0, 5, 6, 7, 8,
9, 10, 11, 12, 13, 0, 0, 0, 0, 0,
0, 0, 15, 120, 108, 109, 18, 19, 0, 0,
0, 0, 0, 110, 111, 112, 23, 24, 25, 26,
0, 0, 113, 0, 0, 803, 0, 0, 0, 0,
0, 31, 32, 33, 34, 35, 36, 37, 38, 39,
0, 40, 41, 42, 0, 0, 43, 0, 0, 44,
45, 0, 224, 404, 405, 406, 407, 408, 409, 410,
411, 412, 413, 414, 415, 0, 0, 0, 0, 416,
417, 0, 0, 0, 1069, 0, 0, 119, 53, 0,
54, 55, 419, 0, 0, 0, 0, 57, 0, 58,
59, 60, 0, 61, 62, 63, 0, 64, 0, 0,
0, 0, 0, 420, 0, 421, 422, 423, 424, 425,
426, 427, 428, 429, 430, 661, 662, 120, 0, 663,
0, 0, 0, -280, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 174, 175, 176, 177, 178, 179,
180, 181, 0, 0, 182, 183, 0, 0, 0, 0,
184, 185, 186, 187, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 188, 189, 190, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 191, 192,
193, 194, 195, 196, 197, 198, 199, 200, 0, 201,
202, 682, 653, 0, 0, 683, 0, 203, 275, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
174, 175, 176, 177, 178, 179, 180, 181, 0, 0,
182, 183, 0, 0, 0, 0, 184, 185, 186, 187,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
188, 189, 190, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 191, 192, 193, 194, 195, 196,
197, 198, 199, 200, 0, 201, 202, 667, 662, 0,
0, 668, 0, 203, 275, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 174, 175, 176, 177,
178, 179, 180, 181, 0, 0, 182, 183, 0, 0,
0, 0, 184, 185, 186, 187, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 188, 189, 190, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
191, 192, 193, 194, 195, 196, 197, 198, 199, 200,
0, 201, 202, 699, 653, 0, 0, 700, 0, 203,
275, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 174, 175, 176, 177, 178, 179, 180, 181,
0, 0, 182, 183, 0, 0, 0, 0, 184, 185,
186, 187, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 188, 189, 190, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 191, 192, 193, 194,
195, 196, 197, 198, 199, 200, 0, 201, 202, 702,
662, 0, 0, 703, 0, 203, 275, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 174, 175,
176, 177, 178, 179, 180, 181, 0, 0, 182, 183,
0, 0, 0, 0, 184, 185, 186, 187, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 188, 189,
190, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 191, 192, 193, 194, 195, 196, 197, 198,
199, 200, 0, 201, 202, 709, 653, 0, 0, 710,
0, 203, 275, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 174, 175, 176, 177, 178, 179,
180, 181, 0, 0, 182, 183, 0, 0, 0, 0,
184, 185, 186, 187, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 188, 189, 190, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 191, 192,
193, 194, 195, 196, 197, 198, 199, 200, 0, 201,
202, 712, 662, 0, 0, 713, 0, 203, 275, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
174, 175, 176, 177, 178, 179, 180, 181, 0, 0,
182, 183, 0, 0, 0, 0, 184, 185, 186, 187,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
188, 189, 190, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 191, 192, 193, 194, 195, 196,
197, 198, 199, 200, 0, 201, 202, 749, 653, 0,
0, 750, 0, 203, 275, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 174, 175, 176, 177,
178, 179, 180, 181, 0, 0, 182, 183, 0, 0,
0, 0, 184, 185, 186, 187, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 188, 189, 190, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
191, 192, 193, 194, 195, 196, 197, 198, 199, 200,
0, 201, 202, 752, 662, 0, 0, 753, 0, 203,
275, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 174, 175, 176, 177, 178, 179, 180, 181,
0, 0, 182, 183, 0, 0, 0, 0, 184, 185,
186, 187, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 188, 189, 190, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 191, 192, 193, 194,
195, 196, 197, 198, 199, 200, 0, 201, 202, 937,
653, 0, 0, 938, 0, 203, 275, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 174, 175,
176, 177, 178, 179, 180, 181, 0, 0, 182, 183,
0, 0, 0, 0, 184, 185, 186, 187, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 188, 189,
190, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 191, 192, 193, 194, 195, 196, 197, 198,
199, 200, 0, 201, 202, 940, 662, 0, 0, 941,
0, 203, 275, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 174, 175, 176, 177, 178, 179,
180, 181, 0, 0, 182, 183, 0, 0, 0, 0,
184, 185, 186, 187, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 188, 189, 190, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 191, 192,
193, 194, 195, 196, 197, 198, 199, 200, 0, 201,
202, 1142, 653, 0, 0, 1143, 0, 203, 275, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
174, 175, 176, 177, 178, 179, 180, 181, 0, 0,
182, 183, 0, 0, 0, 0, 184, 185, 186, 187,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
188, 189, 190, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 191, 192, 193, 194, 195, 196,
197, 198, 199, 200, 0, 201, 202, 1157, 653, 0,
0, 1158, 0, 203, 275, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 174, 175, 176, 177,
178, 179, 180, 181, 0, 0, 182, 183, 0, 0,
0, 0, 184, 185, 186, 187, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 188, 189, 190, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
191, 192, 193, 194, 195, 196, 197, 198, 199, 200,
0, 201, 202, 1160, 662, 0, 0, 1161, 0, 203,
275, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 174, 175, 176, 177, 178, 179, 180, 181,
0, 0, 182, 183, 0, 0, 0, 0, 184, 185,
186, 187, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 188, 189, 190, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 191, 192, 193, 194,
195, 196, 197, 198, 199, 200, 0, 201, 202, 667,
662, 0, 0, 668, 0, 203, 275, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 174, 175,
176, 177, 178, 179, 180, 181, 0, 0, 182, 183,
0, 0, 0, 0, 184, 185, 186, 187, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 188, 189,
190, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 803, 0, 0, 0, 0, 0,
0, 0, 191, 192, 193, 194, 195, 196, 197, 198,
199, 200, 0, 201, 202, 0, 0, 0, 0, 0,
0, 203, 404, 405, 406, 407, 408, 409, 410, 411,
412, 413, 414, 415, 0, 0, 0, 0, 416, 417,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 419, 0, 0, 0, 0, 904, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 420, 0, 421, 422, 423, 424, 425, 426,
427, 428, 429, 430, 404, 405, 406, 407, 408, 409,
410, 411, 412, 413, 414, 415, 0, 0, 0, 0,
416, 417, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 419, 0, 0, 0, 0, 917, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 420, 0, 421, 422, 423, 424,
425, 426, 427, 428, 429, 430, 404, 405, 406, 407,
408, 409, 410, 411, 412, 413, 414, 415, 0, 0,
0, 0, 416, 417, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 419, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 420, 0, 421, 422,
423, 424, 425, 426, 427, 428, 429, 430, 404, 405,
406, 407, 408, 409, 410, 411, 412, 413, 414, 415,
0, 0, 0, 0, 416, 417, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 419, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 420, 0,
421, 422, 423, 424, 425, 426, 427, 428, 429, 430,
0, 0, 0, 0, 0, 0, 0, 0, -280, 404,
405, 406, 407, 408, 409, 410, 411, 412, 413, 414,
415, 0, 0, 0, 0, 416, 417, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 419, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 420,
0, 421, 422, 423, 424, 425, 426, 427, 428, 429,
430, 0, 0, 0, 0, 0, 0, 0, 0, -282,
404, 405, 406, 407, 408, 409, 410, 411, 412, 413,
414, 415, 0, 0, 0, 0, 416, 417, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 419,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
420, 0, 421, 422, 423, 424, 425, 426, 427, 428,
429, 430, 0, 0, 0, 0, 0, 0, 0, 0,
-283, 404, 405, 406, 407, 408, 409, 410, 411, 412,
413, 414, 415, 0, 0, 0, 0, 416, 417, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
419, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 420, 0, 421, 422, 423, 424, 425, 426, 427,
428, 429, 430, 0, 0, 0, 0, 0, 0, 0,
0, -285, 404, 405, 406, 407, 408, 409, 410, 411,
412, 413, 414, 415, 0, 0, 0, 0, 416, 417,
0, 0, 0, 501, 0, 0, 0, 0, 0, 0,
0, 419, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 420, 0, 421, 422, 423, 424, 425, 426,
427, 428, 429, 430, 404, 405, 406, 407, 408, 409,
410, 411, 412, 413, 414, 415, 0, 0, 0, 0,
416, 417, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 419, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 420, 0, 421, 422, 423, 424,
425, 426, 427, 428, 429, 430, 404, 405, 406, 407,
408, 409, 410, 411, 412, 413, -691, -691, 0, 0,
0, 0, 416, 417, 404, 405, 406, 407, 408, 409,
0, 0, 412, 413, 0, 419, 0, 0, 0, 0,
416, 417, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 419, 0, 0, 0, 0, 421, 422,
423, 424, 425, 426, 427, 428, 429, 430, 0, 0,
0, 0, 0, 0, 0, 0, 421, 422, 423, 424,
425, 426, 427, 428, 429, 430
};
static const yytype_int16 yycheck[] =
{
2, 27, 490, 89, 271, 10, 378, 28, 9, 10,
15, 313, 16, 17, 15, 7, 20, 7, 284, 21,
52, 66, 14, 5, 6, 82, 306, 22, 639, 433,
310, 13, 87, 88, 14, 815, 28, 4, 16, 17,
16, 17, 20, 118, 20, 481, 52, 56, 28, 69,
792, 402, 54, 55, 458, 597, 26, 764, 221, 1038,
431, 373, 1013, 2, 435, 4, 58, 438, 58, 814,
402, 475, 74, 75, 56, 820, 54, 547, 54, 55,
484, 508, 394, 318, 75, 21, 22, 119, 459, 15,
594, 331, 443, 444, 26, 16, 17, 504, 25, 20,
82, 508, 25, 474, 594, 476, 717, 693, 25, 111,
105, 697, 539, 29, 485, 75, 117, 968, 704, 25,
16, 17, 93, 25, 20, 60, 61, 62, 63, 295,
25, 122, 51, 670, 671, 370, 55, 57, 1048, 443,
444, 92, 612, 69, 57, 549, 90, 215, 460, 92,
90, 92, 90, 221, 525, 126, 90, 90, 54, 55,
34, 594, 217, 92, 597, 105, 1145, 105, 138, 105,
121, 0, 92, 228, 144, 111, 112, 51, 121, 550,
121, 25, 74, 75, 18, 1136, 20, 92, 968, 25,
258, 332, 121, 129, 335, 91, 337, 113, 339, 1050,
341, 121, 140, 147, 90, 90, 138, 147, 121, 147,
138, 213, 214, 147, 147, 142, 121, 222, 223, 142,
144, 222, 223, 214, 2, 142, 4, 5, 6, 121,
122, 9, 10, 399, 289, 13, 142, 15, 16, 17,
142, 387, 20, 389, 1154, 547, 513, 142, 90, 241,
55, 241, 756, 213, 214, 287, 313, 90, 90, 20,
315, 147, 147, 295, 25, 769, 756, 269, 28, 271,
1050, 275, 105, 275, 52, 279, 90, 297, 56, 769,
348, 121, 283, 284, 142, 305, 306, 51, 66, 295,
310, 105, 92, 1035, 362, 92, 1038, 275, 142, 90,
144, 279, 1047, 279, 82, 147, 142, 140, 144, 736,
612, 1018, 380, 850, 147, 147, 551, 79, 558, 121,
90, 213, 214, 756, 121, 251, 140, 90, 735, 736,
800, 313, 121, 147, 144, 105, 769, 587, 102, 117,
142, 119, 106, 92, 349, 350, 351, 352, 349, 350,
351, 352, 397, 354, 355, 294, 147, 402, 279, 792,
692, 92, 55, 302, 126, 907, 125, 399, 90, 681,
140, 297, 121, 121, 376, 139, 378, 147, 92, 275,
90, 348, 457, 279, 147, 269, 839, 271, 55, 324,
121, 400, 845, 399, 20, 105, 587, 901, 443, 444,
591, 805, 60, 1145, 776, 63, 25, 911, 142, 348,
1155, 142, 480, 481, 353, 556, 142, 51, 400, 397,
57, 305, 138, 1009, 402, 147, 318, 103, 101, 433,
140, 433, 210, 804, 841, 806, 92, 147, 121, 471,
92, 877, 145, 435, 222, 223, 438, 479, 92, 107,
92, 802, 128, 141, 458, 139, 458, 489, 55, 725,
461, 142, 729, 531, 466, 121, 746, 459, 102, 121,
538, 475, 106, 475, 907, 57, 502, 121, 370, 121,
484, 793, 484, 92, 476, 836, 142, 18, 545, 101,
547, 842, 843, 485, 25, 58, 59, 275, 800, 435,
521, 279, 37, 38, 90, 283, 284, 58, 59, 287,
512, 513, 121, 17, 18, 493, 294, 295, 101, 105,
522, 1009, 1133, 459, 302, 557, 40, 41, 504, 521,
26, 1035, 836, 525, 121, 313, 848, 433, 842, 843,
476, 521, 792, 1129, 121, 549, 51, 549, 142, 485,
51, 923, 924, 142, 140, 612, 51, 720, 550, 51,
536, 147, 458, 545, 69, 547, 142, 622, 142, 835,
348, 349, 350, 351, 352, 353, 354, 355, 142, 475,
584, 92, 894, 522, 1011, 511, 142, 115, 484, 525,
118, 119, 531, 99, 90, 373, 101, 102, 103, 603,
15, 792, 1035, 605, 1011, 1038, 919, 920, 504, 105,
121, 679, 508, 121, 550, 641, 394, 26, 13, 397,
887, 399, 400, 128, 402, 16, 977, 893, 512, 513,
612, 142, 121, 122, 1138, 781, 782, 783, 16, 785,
536, 787, 138, 539, 140, 1149, 121, 121, 144, 92,
63, 147, 720, 549, 27, 433, 15, 92, 660, 551,
145, 145, 657, 16, 666, 443, 444, 669, 670, 671,
139, 666, 142, 977, 669, 680, 988, 142, 121, 680,
458, 90, 460, 461, 142, 687, 121, 318, 15, 15,
692, 693, 142, 471, 715, 697, 105, 475, 690, 142,
690, 479, 704, 44, 90, 121, 484, 142, 141, 714,
778, 489, 1145, 714, 692, 141, 15, 880, 18, 105,
16, 657, 1126, 715, 141, 609, 746, 729, 139, 138,
666, 140, 15, 669, 1106, 715, 141, 115, 147, 370,
118, 119, 115, 800, 522, 118, 119, 139, 141, 685,
139, 687, 142, 531, 140, 44, 1127, 802, 144, 735,
846, 147, 115, 57, 142, 118, 119, 545, 146, 547,
148, 549, 142, 146, 776, 148, 660, 142, 92, 557,
142, 90, 1032, 44, 852, 1035, 443, 444, 1038, 57,
1040, 836, 837, 146, 142, 148, 105, 842, 843, 55,
299, 805, 142, 805, 303, 51, 584, 121, 16, 877,
51, 142, 880, 62, 806, 64, 65, 849, 800, 115,
477, 478, 118, 119, 101, 603, 90, 142, 142, 992,
862, 140, 40, 41, 612, 998, 720, 15, 147, 735,
736, 1032, 874, 875, 1035, 729, 93, 1038, 850, 1040,
146, 883, 148, 93, 131, 132, 133, 1107, 860, 14,
865, 863, 801, 895, 865, 841, 15, 116, 117, 526,
806, 1137, 15, 2, 145, 4, 1022, 1023, 1024, 1025,
9, 10, 142, 142, 142, 887, 15, 16, 17, 142,
142, 20, 15, 90, 142, 1145, 141, 1147, 141, 1149,
814, 1151, 680, 681, 142, 139, 820, 115, 105, 805,
118, 119, 142, 142, 90, 142, 1107, 1080, 1081, 26,
551, 923, 924, 52, 992, 63, 64, 65, 792, 105,
998, 62, 977, 64, 65, 1185, 714, 66, 146, 921,
148, 51, 26, 140, 926, 841, 16, 15, 115, 580,
147, 118, 119, 55, 1145, 987, 1147, 139, 1149, 666,
1151, 15, 669, 995, 140, 15, 597, 15, 139, 600,
142, 147, 126, 115, 26, 1007, 118, 119, 116, 117,
687, 148, 90, 90, 55, 116, 117, 126, 117, 142,
119, 139, 15, 90, 1185, 1141, 55, 105, 105, 15,
1005, 1006, 142, 887, 1005, 1006, 90, 1009, 105, 991,
509, 57, 1080, 1081, 142, 793, 1071, 516, 1181, 15,
142, 105, 800, 801, 802, 142, 142, 805, 942, 528,
142, 138, 140, 140, 1197, 1198, 142, 144, 90, 147,
147, 142, 1074, 140, 1076, 115, 142, 1079, 118, 119,
147, 90, 966, 105, 138, 969, 140, 144, 836, 837,
144, 1087, 144, 147, 842, 843, 105, 141, 15, 115,
848, 849, 118, 119, 15, 90, 146, 123, 148, 142,
1082, 210, 581, 582, 862, 142, 138, 865, 140, 40,
105, 41, 144, 222, 223, 147, 874, 875, 522, 1131,
1132, 140, 148, 624, 1106, 883, 1165, 1166, 147, 13,
6, 1129, 611, 1181, 792, 1011, 894, 895, 639, 1136,
847, 1052, 1126, 815, 1126, 140, 1128, 1129, 965, 1197,
1198, 1128, 147, 1047, 1048, 1127, 7, 1196, 1052, 253,
587, 1032, 1035, 921, 1203, 1204, 275, 90, 926, -1,
279, -1, 928, 929, 283, 284, -1, -1, 287, -1,
1192, 792, 105, 1165, 1166, 294, 295, -1, 1032, 1201,
1202, 1035, -1, 302, 1038, -1, 1040, -1, -1, 836,
837, -1, -1, -1, -1, 842, 843, -1, 1193, 1194,
689, 1127, 1193, 1194, 1196, -1, 717, 140, 26, 977,
-1, 1203, 1204, -1, 147, -1, -1, 1121, -1, 987,
988, 868, 869, 991, 871, 872, -1, 995, -1, 348,
349, 350, 351, 352, 353, 354, 355, 1005, 1006, 1007,
1126, 51, -1, 53, 54, 55, 56, 63, 64, 65,
1154, 1155, -1, 1107, 373, -1, 745, -1, -1, 69,
-1, -1, -1, 2, -1, 4, 5, 6, -1, 1035,
-1, -1, 90, -1, 13, 394, 765, -1, 397, -1,
399, -1, -1, 402, -1, 1189, 907, 105, 909, -1,
-1, 1145, 913, 1147, -1, 1149, -1, 1151, -1, -1,
116, 117, -1, 814, -1, -1, 1074, -1, 1076, 820,
-1, 1079, 61, 52, 433, 64, 65, 56, -1, -1,
138, -1, 140, -1, 443, 444, 144, -1, -1, 147,
977, 1185, 142, 37, 38, -1, -1, -1, -1, 458,
-1, 460, 461, 82, 1110, 1111, 1112, 101, 1114, 1115,
-1, 115, 471, 1000, 118, 119, 475, -1, 1126, -1,
479, -1, -1, 1131, 1132, 484, -1, 116, 117, 51,
489, 53, 54, 55, 56, 129, 130, 131, 132, 133,
119, 145, 146, -1, 148, 61, -1, 69, 64, 65,
40, 41, 42, 43, 44, 1016, 1017, 886, 63, 64,
65, -1, -1, 522, -1, -1, 1172, 1173, 1174, 1175,
-1, 115, 531, 902, 118, 119, -1, 1038, -1, 1040,
-1, 624, -1, -1, 1192, 1193, 1194, -1, -1, 1195,
549, 942, -1, 1201, 1202, -1, 639, -1, 557, -1,
116, 117, 146, -1, 148, 34, 35, 36, -1, -1,
-1, 116, 117, -1, 965, 966, -1, -1, 969, -1,
142, -1, 51, -1, -1, 584, 55, -1, -1, 58,
59, 210, -1, 1094, 63, -1, 1097, 51, -1, 53,
54, 55, 56, -1, 603, 2, -1, 4, 5, 6,
63, 64, 65, -1, -1, 69, 13, 63, 64, 65,
-1, -1, 91, -1, 63, 64, 65, -1, 97, 98,
-1, 100, -1, -1, 717, -1, -1, 106, -1, 1140,
94, -1, -1, -1, 1145, -1, 1147, 101, 102, 103,
1151, 63, 64, 65, -1, 52, 1047, 1048, 127, 56,
-1, 1052, -1, 116, 117, 134, -1, -1, 287, -1,
116, 117, 141, -1, 128, 294, 295, 116, 117, -1,
-1, 680, 681, 302, 1185, 82, 63, 64, 65, 34,
35, 36, 115, -1, 313, 118, 119, -1, 51, -1,
53, 54, 55, 56, 116, 117, 51, -1, -1, -1,
55, -1, -1, 58, 59, 714, 69, 115, 63, 142,
118, 119, 119, 146, -1, 148, -1, -1, -1, 348,
1121, 814, 815, -1, 353, -1, -1, 820, -1, 116,
117, 94, 1133, -1, -1, -1, 91, 100, 146, -1,
148, -1, 97, 98, 373, 100, -1, 102, -1, -1,
-1, 106, -1, 1154, 1155, -1, 51, -1, 53, 54,
55, 56, -1, -1, 51, 394, 53, 54, 55, 56,
399, 400, 127, 402, 69, -1, -1, 115, -1, 134,
118, 119, 69, -1, 793, -1, -1, -1, 1189, -1,
-1, -1, 801, 802, -1, -1, 805, -1, 2, 94,
4, 5, 6, 210, -1, 100, -1, 94, 146, 13,
148, -1, -1, -1, 443, 444, -1, -1, -1, 51,
-1, 53, 54, 55, 56, -1, -1, 836, 837, -1,
-1, 460, -1, 842, 843, -1, -1, 69, -1, 848,
849, 51, 471, 53, 54, 55, 56, -1, 52, 942,
479, 83, 56, 862, -1, -1, 865, -1, -1, 69,
489, -1, 94, -1, -1, 874, 875, -1, 100, 101,
102, 103, 965, 966, 883, 968, 969, -1, 82, -1,
287, -1, -1, -1, -1, 894, 895, 294, 295, 121,
-1, -1, -1, 522, -1, 302, 128, -1, -1, 131,
-1, -1, 531, -1, -1, -1, 313, -1, 34, 35,
36, -1, 144, -1, -1, 119, 545, -1, 547, -1,
-1, -1, -1, -1, -1, 51, -1, -1, 557, 55,
-1, -1, 58, 59, -1, -1, -1, 63, -1, -1,
-1, 348, -1, -1, -1, -1, 353, -1, -1, -1,
-1, -1, -1, -1, 1047, 1048, -1, 1050, -1, 1052,
-1, -1, -1, -1, -1, 91, 373, -1, 977, -1,
-1, 97, 98, -1, 100, -1, -1, -1, 987, 988,
106, -1, -1, 612, -1, -1, 995, 394, -1, -1,
-1, -1, 399, 400, -1, 402, 1005, 1006, 1007, -1,
-1, 127, -1, -1, 88, 89, 210, 51, 134, 53,
54, 55, 56, -1, 34, 35, 36, 101, -1, -1,
-1, -1, -1, -1, -1, 69, -1, -1, 1121, -1,
-1, 51, -1, -1, -1, 55, 443, 444, 58, 59,
1133, -1, -1, 63, 128, 129, 130, 131, 132, 133,
94, -1, 681, 460, -1, -1, 100, 101, 102, 103,
-1, 1154, 1155, -1, 471, 1074, -1, 1076, -1, -1,
1079, 91, 479, -1, -1, -1, -1, 97, 98, -1,
-1, -1, 489, 287, 128, -1, 106, 131, 88, 89,
294, 295, -1, -1, -1, -1, 1189, -1, 302, -1,
144, 101, -1, -1, -1, -1, -1, 127, -1, 313,
-1, -1, 88, 89, 134, 522, -1, 1126, -1, -1,
-1, -1, 1131, 1132, 531, 101, 126, 127, 128, 129,
130, 131, 132, 133, -1, -1, -1, -1, 545, -1,
547, -1, -1, -1, 348, -1, -1, -1, -1, 353,
557, -1, -1, 129, 130, 131, 132, 133, -1, -1,
-1, -1, -1, -1, 793, -1, -1, -1, -1, 373,
-1, 800, 801, 802, -1, -1, -1, -1, -1, -1,
-1, -1, -1, 1192, 1193, 1194, -1, -1, -1, -1,
394, -1, 1201, 1202, -1, 399, 400, -1, 402, -1,
-1, -1, -1, -1, -1, 612, -1, 836, -1, -1,
-1, -1, -1, 842, 843, -1, -1, -1, -1, 848,
849, -1, -1, 2, -1, 4, 5, 6, 7, -1,
-1, -1, -1, 862, 13, -1, -1, -1, -1, 443,
444, -1, -1, -1, -1, 874, 875, -1, -1, -1,
-1, -1, -1, -1, 883, -1, 460, -1, 51, -1,
53, 54, 55, 56, -1, 894, 895, 471, -1, -1,
-1, -1, -1, 52, 681, 479, 69, 56, -1, -1,
-1, -1, -1, -1, -1, 489, -1, -1, -1, -1,
83, -1, 921, -1, -1, -1, -1, 926, -1, -1,
-1, 94, -1, 82, -1, -1, -1, 100, 101, 102,
103, -1, -1, -1, -1, -1, -1, -1, 522, -1,
-1, 51, -1, 53, 54, 55, 56, 531, -1, -1,
-1, -1, -1, -1, -1, 128, -1, -1, 131, 69,
119, 545, -1, 547, -1, -1, -1, -1, 977, -1,
-1, 144, -1, 557, -1, -1, -1, -1, 987, 988,
-1, -1, 991, -1, 94, -1, 995, -1, -1, -1,
100, 101, 102, 103, -1, -1, -1, -1, 1007, -1,
-1, -1, -1, -1, -1, -1, 793, -1, -1, -1,
-1, -1, -1, 800, 801, 802, -1, -1, 128, -1,
-1, 131, -1, -1, -1, -1, -1, -1, 612, -1,
-1, -1, 142, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, 836,
-1, 210, -1, -1, -1, 842, 843, -1, -1, -1,
-1, 848, 849, -1, -1, 1074, -1, 1076, -1, -1,
1079, -1, -1, -1, -1, 862, -1, -1, -1, -1,
-1, 51, -1, 53, 54, 55, 56, 874, 875, -1,
-1, -1, -1, -1, -1, -1, 883, 681, 51, 69,
53, 54, 55, 56, -1, -1, -1, 894, 895, 2,
-1, 4, -1, -1, -1, 85, 69, -1, -1, -1,
13, -1, 1131, 1132, 94, -1, -1, -1, 287, -1,
100, 101, 102, 103, 921, 294, 295, -1, -1, 926,
-1, 94, -1, 302, -1, -1, -1, 100, 101, 102,
103, -1, -1, -1, 313, -1, -1, -1, 128, 52,
-1, 131, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, 128, -1, -1, 131, -1,
-1, -1, -1, 1192, -1, -1, -1, -1, -1, 348,
977, -1, 1201, 1202, 353, -1, -1, -1, -1, -1,
987, 988, -1, -1, 991, -1, -1, -1, 995, 793,
-1, -1, -1, -1, 373, -1, 800, 801, 802, 2,
1007, 4, -1, -1, -1, -1, 119, -1, -1, -1,
-1, -1, -1, -1, -1, 394, -1, -1, -1, -1,
399, 400, -1, -1, -1, 51, -1, 53, 54, 55,
56, -1, 836, -1, -1, -1, -1, -1, 842, 843,
-1, -1, -1, 69, 848, 849, -1, -1, -1, 52,
-1, -1, -1, -1, -1, -1, -1, -1, 862, 85,
-1, -1, -1, -1, -1, -1, -1, 1074, 94, 1076,
874, 875, 1079, -1, 100, 101, 102, 103, -1, 883,
-1, 460, -1, -1, -1, -1, -1, -1, -1, -1,
894, 895, 471, -1, -1, -1, -1, 210, -1, -1,
479, -1, 128, -1, -1, 131, -1, -1, -1, -1,
489, -1, -1, -1, -1, -1, 119, 921, -1, 0,
-1, -1, 926, -1, 1131, 1132, -1, -1, -1, -1,
-1, -1, 13, 14, 15, 16, 17, 18, -1, 20,
-1, -1, -1, 522, 25, 26, 27, -1, -1, -1,
-1, -1, 531, -1, -1, -1, 37, 38, -1, 40,
41, 42, 43, 44, -1, -1, 545, -1, 547, -1,
-1, -1, -1, 977, 287, -1, -1, -1, 557, -1,
-1, 294, 295, 987, 988, 1192, -1, 991, -1, 302,
-1, 995, -1, -1, 1201, 1202, 51, -1, 53, 54,
55, 56, -1, 1007, -1, -1, -1, 210, -1, 90,
-1, -1, -1, -1, 69, -1, -1, -1, -1, -1,
-1, -1, -1, -1, 105, -1, -1, -1, -1, -1,
85, -1, -1, 612, 115, 348, -1, 118, 119, 94,
353, -1, -1, -1, -1, 100, 101, 102, 103, -1,
-1, -1, -1, -1, -1, -1, -1, 138, 139, -1,
373, -1, -1, 144, 145, 146, 147, 148, -1, -1,
1074, -1, 1076, 128, -1, 1079, 131, -1, -1, -1,
-1, 394, -1, -1, 287, -1, 399, -1, -1, 402,
-1, 294, 295, -1, -1, -1, -1, -1, -1, 302,
-1, -1, 681, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, 1131, 1132, -1,
443, 444, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, 348, -1, 460, -1, -1,
353, -1, -1, -1, -1, -1, -1, -1, 471, -1,
-1, -1, -1, -1, -1, -1, 479, -1, -1, -1,
373, -1, -1, -1, -1, -1, 489, 72, 73, 74,
75, 76, 77, 78, -1, 80, 81, -1, 1192, -1,
-1, 394, -1, 88, 89, -1, 399, 1201, 1202, 402,
-1, -1, -1, -1, -1, -1, 101, -1, -1, 522,
-1, -1, -1, -1, 793, -1, -1, -1, 531, -1,
-1, 800, 801, -1, -1, -1, -1, -1, -1, 124,
125, 126, 127, 128, 129, 130, 131, 132, 133, -1,
443, 444, -1, -1, 557, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, 460, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, 471, 848,
849, -1, -1, -1, -1, -1, 479, -1, -1, -1,
-1, -1, -1, 862, -1, -1, 489, -1, -1, -1,
-1, -1, -1, -1, -1, 874, 875, -1, -1, -1,
-1, -1, -1, -1, 883, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, 894, 895, -1, -1, 522,
-1, -1, -1, -1, -1, -1, -1, -1, 531, -1,
3, 4, 5, 6, 7, 8, 9, 10, 11, -1,
-1, -1, 921, -1, -1, -1, 19, 926, 21, 22,
23, 24, -1, -1, 557, -1, -1, 30, 31, 32,
33, 34, 35, 36, -1, -1, 39, -1, 681, -1,
-1, -1, -1, -1, -1, 48, 49, 50, 51, 52,
53, 54, 55, 56, -1, 58, 59, 60, -1, -1,
63, -1, -1, 66, 67, -1, 69, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, 987, 988,
-1, -1, 991, -1, -1, -1, 995, -1, 91, -1,
-1, 94, 95, -1, 97, 98, -1, -1, 1007, -1,
-1, 104, -1, 106, 107, 108, -1, 110, 111, 112,
-1, 114, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, 16, 17, -1, -1, 20, -1, -1,
-1, 134, -1, -1, -1, -1, -1, -1, -1, 142,
-1, -1, -1, -1, -1, -1, -1, -1, 681, -1,
793, -1, -1, -1, 47, 48, 49, 50, 801, 802,
-1, 54, 55, -1, -1, 1074, -1, 1076, -1, -1,
1079, -1, -1, 66, 67, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, 836, -1, -1, -1, -1, -1, 842,
843, -1, -1, -1, -1, 848, 849, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, 862,
-1, -1, 1131, 1132, -1, -1, -1, -1, -1, -1,
-1, 874, 875, -1, -1, -1, -1, -1, -1, -1,
883, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, 894, 895, -1, -1, -1, -1, -1, -1, -1,
793, -1, -1, -1, -1, -1, -1, -1, 801, 802,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, 1192, -1, -1, -1, -1, -1, -1,
-1, -1, 1201, 1202, -1, -1, -1, -1, -1, -1,
-1, -1, -1, 836, -1, -1, -1, -1, -1, 842,
843, -1, -1, -1, -1, 848, 849, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, 862,
-1, -1, -1, -1, 977, -1, -1, -1, -1, -1,
-1, 874, 875, -1, 987, 988, -1, -1, 991, -1,
883, -1, 995, -1, -1, -1, -1, -1, -1, -1,
-1, 894, 895, -1, 1007, -1, -1, -1, 261, 262,
263, 264, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, 275, -1, -1, -1, 279, -1, -1, -1,
-1, 51, 52, -1, -1, 55, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
70, 71, 72, 73, 74, 75, 76, 77, -1, -1,
80, 81, -1, -1, -1, -1, 86, 87, 88, 89,
-1, 1074, -1, 1076, -1, -1, 1079, -1, -1, -1,
100, 101, 102, -1, 977, -1, -1, -1, -1, -1,
-1, -1, -1, -1, 987, 988, -1, -1, -1, -1,
-1, -1, 995, -1, 124, 125, 126, 127, 128, 129,
130, 131, 132, 133, 1007, 135, 136, -1, -1, -1,
-1, 374, -1, 143, 144, -1, -1, -1, 1131, 1132,
-1, -1, 385, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, 397, -1, -1, -1, -1, 402,
-1, 404, 405, 406, 407, 408, 409, 410, 411, 412,
413, 414, 415, 416, 417, -1, 419, 420, 421, 422,
423, 424, 425, 426, 427, 428, 429, 430, -1, -1,
433, 1074, -1, 1076, -1, -1, 1079, -1, -1, 1192,
443, 444, -1, -1, -1, -1, -1, -1, 1201, 1202,
-1, -1, -1, -1, -1, 458, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
473, -1, 475, -1, 477, 478, -1, -1, -1, -1,
-1, 484, -1, -1, -1, -1, -1, -1, 1131, 1132,
493, -1, -1, 496, 497, -1, -1, -1, 501, -1,
-1, 504, -1, 506, -1, 508, 509, -1, -1, -1,
-1, -1, -1, 72, 73, 74, 75, 76, 77, -1,
-1, 80, 81, 526, -1, -1, -1, -1, -1, 88,
89, -1, -1, 536, -1, -1, 539, -1, -1, -1,
-1, -1, 101, -1, -1, -1, 549, -1, -1, 1192,
-1, -1, -1, -1, -1, -1, -1, -1, 1201, 1202,
-1, -1, -1, 566, 567, 124, 125, 126, 127, 128,
129, 130, 131, 132, 133, -1, -1, -1, -1, -1,
-1, 584, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
603, -1, -1, 606, -1, -1, 0, 1, -1, 3,
4, 5, 6, 7, 8, 9, 10, 11, 12, -1,
-1, -1, -1, -1, -1, 19, -1, 21, 22, 23,
24, -1, -1, -1, -1, -1, 30, 31, 32, 33,
34, 35, 36, -1, -1, 39, -1, -1, -1, -1,
-1, 45, 46, 47, 48, 49, 50, 51, 52, 53,
54, 55, 56, -1, 58, 59, 60, -1, -1, 63,
-1, -1, 66, 67, -1, 69, 70, 71, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, 692,
84, 85, 695, 696, -1, -1, -1, 91, -1, -1,
94, 95, -1, 97, 98, -1, 100, -1, 25, -1,
104, -1, 106, 107, 108, -1, 110, 111, 112, -1,
114, 115, -1, 726, 118, 119, -1, -1, -1, -1,
-1, -1, 735, 736, -1, -1, -1, -1, -1, -1,
134, 135, 136, -1, -1, -1, -1, -1, -1, -1,
-1, -1, 146, -1, 148, 72, 73, 74, 75, 76,
77, 78, 79, 80, 81, 82, 83, -1, -1, -1,
-1, 88, 89, -1, -1, -1, 93, -1, -1, -1,
-1, -1, -1, -1, 101, -1, -1, -1, -1, -1,
-1, -1, -1, -1, 797, -1, -1, -1, -1, 802,
803, -1, 805, -1, -1, 122, -1, 124, 125, 126,
127, 128, 129, 130, 131, 132, 133, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, 836, 837, -1, -1, -1, 841, 842,
843, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, 868, 869, -1, 871, 872,
-1, -1, -1, -1, -1, -1, -1, -1, -1, 882,
-1, -1, -1, 886, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
903, 904, -1, -1, -1, 0, -1, -1, -1, -1,
-1, -1, -1, 916, 917, -1, -1, -1, 13, 14,
15, 16, 17, 18, -1, 20, -1, -1, -1, 932,
25, -1, 27, 28, 29, -1, -1, -1, -1, -1,
-1, -1, 37, 38, -1, 40, 41, 42, 43, 44,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, 57, -1, -1, -1, -1, 970, 971, -1,
-1, -1, -1, -1, 977, -1, -1, 72, 73, 74,
75, 76, 77, 78, 79, 80, 81, 82, 83, -1,
-1, -1, -1, 88, 89, 90, -1, 1000, 93, -1,
-1, -1, -1, -1, 99, -1, 101, -1, 1011, -1,
105, -1, -1, -1, -1, -1, -1, -1, 113, -1,
115, -1, -1, 118, 119, -1, -1, 122, 123, 124,
125, 126, 127, 128, 129, 130, 131, 132, 133, -1,
-1, -1, -1, -1, 139, 140, 141, 142, -1, -1,
145, 146, 147, 148, 0, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, 13, 14, 15,
16, 17, 18, -1, 20, -1, -1, -1, -1, 25,
26, 27, 28, -1, -1, -1, -1, -1, -1, -1,
-1, 37, 38, -1, 40, 41, 42, 43, 44, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, 1126, -1, -1, 72, 73, 74, 75,
76, 77, 78, 79, 80, 81, 82, 83, -1, -1,
-1, -1, 88, 89, 90, -1, -1, 93, -1, -1,
-1, -1, -1, 99, -1, 101, -1, -1, -1, 105,
-1, -1, -1, -1, -1, -1, -1, -1, -1, 115,
-1, -1, 118, 119, -1, -1, 122, -1, 124, 125,
126, 127, 128, 129, 130, 131, 132, 133, -1, -1,
0, -1, 138, 139, 140, 141, 142, -1, 144, 145,
146, 147, 148, 13, 14, 15, 16, 17, 18, -1,
20, -1, -1, -1, -1, 25, -1, 27, 28, -1,
-1, -1, -1, -1, -1, -1, -1, 37, 38, -1,
40, 41, 42, 43, 44, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, 57, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, 72, 73, 74, 75, 76, 77, 78, 79,
80, 81, 82, 83, -1, -1, -1, -1, 88, 89,
90, -1, 92, 93, -1, -1, -1, -1, -1, 99,
-1, 101, -1, -1, -1, 105, -1, -1, -1, -1,
-1, -1, -1, -1, -1, 115, -1, -1, 118, 119,
-1, 121, 122, -1, 124, 125, 126, 127, 128, 129,
130, 131, 132, 133, -1, -1, 0, -1, -1, 139,
140, 141, 142, -1, -1, 145, 146, 147, 148, 13,
14, 15, 16, 17, 18, -1, 20, -1, -1, -1,
-1, 25, 26, 27, 28, -1, -1, -1, -1, -1,
-1, -1, -1, 37, 38, -1, 40, 41, 42, 43,
44, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, 72, 73,
74, 75, 76, 77, 78, 79, 80, 81, 82, 83,
-1, -1, -1, -1, 88, 89, 90, -1, -1, 93,
-1, -1, -1, -1, -1, 99, -1, 101, -1, -1,
-1, 105, -1, -1, -1, -1, -1, -1, -1, -1,
-1, 115, -1, -1, 118, 119, -1, -1, 122, -1,
124, 125, 126, 127, 128, 129, 130, 131, 132, 133,
-1, -1, 0, -1, 138, 139, 140, 141, 142, -1,
144, 145, 146, 147, 148, 13, 14, 15, 16, 17,
18, -1, 20, -1, -1, -1, -1, 25, -1, 27,
28, -1, -1, -1, -1, -1, -1, -1, -1, 37,
38, -1, 40, 41, 42, 43, 44, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, 72, 73, 74, 75, 76, 77,
78, 79, 80, 81, 82, 83, -1, -1, -1, -1,
88, 89, 90, -1, -1, 93, -1, -1, -1, -1,
-1, 99, -1, 101, -1, -1, -1, 105, -1, -1,
-1, -1, -1, -1, -1, -1, -1, 115, -1, -1,
118, 119, -1, -1, 122, -1, 124, 125, 126, 127,
128, 129, 130, 131, 132, 133, -1, -1, 0, -1,
-1, 139, 140, 141, 142, -1, 144, 145, 146, 147,
148, 13, 14, 15, -1, 17, 18, -1, 20, -1,
-1, -1, -1, 25, 26, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, 37, 38, -1, 40, 41,
42, 43, 44, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
72, 73, 74, 75, 76, 77, 78, 79, 80, 81,
82, 83, -1, -1, -1, -1, 88, 89, 90, -1,
92, 93, -1, -1, -1, -1, -1, -1, -1, 101,
-1, -1, -1, 105, -1, -1, -1, -1, -1, -1,
-1, -1, -1, 115, -1, -1, 118, 119, -1, 121,
122, -1, 124, 125, 126, 127, 128, 129, 130, 131,
132, 133, -1, -1, 0, -1, 138, 139, 140, -1,
142, -1, -1, 145, 146, 147, 148, 13, 14, 15,
-1, 17, 18, -1, 20, -1, -1, -1, -1, 25,
26, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, 37, 38, -1, 40, 41, 42, 43, 44, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, 72, 73, 74, 75,
76, 77, 78, 79, 80, 81, 82, 83, -1, -1,
-1, -1, 88, 89, 90, -1, 92, 93, -1, -1,
-1, -1, -1, -1, -1, 101, -1, -1, -1, 105,
-1, -1, -1, -1, -1, -1, -1, -1, -1, 115,
-1, -1, 118, 119, -1, 121, 122, -1, 124, 125,
126, 127, 128, 129, 130, 131, 132, 133, -1, -1,
0, -1, 138, 139, 140, -1, 142, -1, -1, 145,
146, 147, 148, 13, 14, 15, -1, 17, 18, -1,
20, -1, -1, -1, -1, 25, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, 37, 38, -1,
40, 41, 42, 43, 44, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, 72, 73, 74, 75, 76, 77, 78, 79,
80, 81, 82, 83, -1, -1, -1, -1, 88, 89,
90, -1, 92, 93, -1, -1, -1, -1, -1, -1,
-1, 101, -1, -1, -1, 105, -1, -1, -1, -1,
-1, -1, -1, -1, -1, 115, -1, -1, 118, 119,
-1, 121, 122, -1, 124, 125, 126, 127, 128, 129,
130, 131, 132, 133, -1, -1, 0, -1, -1, 139,
140, -1, 142, -1, -1, 145, 146, 147, 148, 13,
14, 15, -1, 17, 18, -1, 20, -1, -1, -1,
-1, 25, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, 37, 38, -1, 40, 41, 42, 43,
44, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, 72, 73,
74, 75, 76, 77, 78, 79, 80, 81, 82, 83,
-1, -1, -1, -1, 88, 89, 90, -1, 92, 93,
-1, -1, -1, -1, -1, -1, -1, 101, -1, -1,
-1, 105, -1, -1, -1, -1, -1, -1, -1, -1,
-1, 115, -1, -1, 118, 119, -1, 121, 122, -1,
124, 125, 126, 127, 128, 129, 130, 131, 132, 133,
-1, -1, -1, -1, -1, 139, 140, -1, 142, -1,
-1, 145, 146, 147, 148, 1, -1, 3, 4, 5,
6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
-1, -1, 18, 19, -1, 21, 22, 23, 24, -1,
-1, -1, -1, -1, 30, 31, 32, 33, 34, 35,
36, -1, -1, 39, -1, -1, -1, -1, -1, 45,
-1, 47, 48, 49, 50, 51, 52, 53, 54, 55,
56, -1, 58, 59, 60, -1, -1, 63, -1, -1,
66, 67, -1, 69, 70, 71, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, 84, 85,
-1, -1, -1, -1, -1, 91, -1, -1, 94, 95,
-1, 97, 98, -1, 100, -1, -1, -1, 104, -1,
106, 107, 108, -1, 110, 111, 112, -1, 114, 115,
-1, -1, 118, 119, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, 134, 135,
136, -1, -1, -1, -1, -1, -1, -1, -1, -1,
146, 1, 148, 3, 4, 5, 6, 7, 8, 9,
10, 11, 12, -1, -1, 15, -1, 17, 18, 19,
-1, 21, 22, 23, 24, -1, -1, -1, -1, -1,
30, 31, 32, 33, 34, 35, 36, -1, -1, 39,
-1, -1, -1, -1, -1, 45, -1, 47, 48, 49,
50, 51, 52, 53, 54, 55, 56, -1, 58, 59,
60, -1, -1, 63, -1, -1, 66, 67, -1, 69,
70, 71, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, 84, 85, -1, -1, -1, -1,
-1, 91, -1, -1, 94, 95, -1, 97, 98, -1,
100, -1, -1, -1, 104, -1, 106, 107, 108, -1,
110, 111, 112, -1, 114, 115, -1, -1, 118, 119,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, 134, 135, 136, -1, -1, -1,
-1, -1, -1, -1, -1, -1, 146, 1, 148, 3,
4, 5, 6, 7, 8, 9, 10, 11, 12, -1,
-1, 15, -1, -1, 18, 19, 20, 21, 22, 23,
24, -1, -1, -1, -1, -1, 30, 31, 32, 33,
34, 35, 36, -1, -1, 39, -1, -1, -1, -1,
-1, 45, -1, 47, 48, 49, 50, 51, 52, 53,
54, 55, 56, -1, 58, 59, 60, -1, -1, 63,
-1, -1, 66, 67, -1, 69, 70, 71, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
84, 85, -1, -1, -1, -1, -1, 91, -1, -1,
94, 95, -1, 97, 98, -1, 100, -1, -1, -1,
104, -1, 106, 107, 108, -1, 110, 111, 112, -1,
114, 115, -1, -1, 118, 119, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
134, 135, 136, -1, -1, -1, -1, -1, -1, -1,
-1, -1, 146, 1, 148, 3, 4, 5, 6, 7,
8, 9, 10, 11, 12, -1, -1, 15, -1, -1,
18, 19, -1, 21, 22, 23, 24, 25, -1, -1,
-1, -1, 30, 31, 32, 33, 34, 35, 36, -1,
-1, 39, -1, -1, -1, -1, -1, 45, -1, 47,
48, 49, 50, 51, 52, 53, 54, 55, 56, -1,
58, 59, 60, -1, -1, 63, -1, -1, 66, 67,
-1, 69, 70, 71, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, 84, 85, -1, -1,
-1, -1, -1, 91, -1, -1, 94, 95, -1, 97,
98, -1, 100, -1, -1, -1, 104, -1, 106, 107,
108, -1, 110, 111, 112, -1, 114, 115, -1, -1,
118, 119, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, 134, 135, 136, -1,
-1, -1, -1, -1, -1, -1, -1, -1, 146, 1,
148, 3, 4, 5, 6, 7, 8, 9, 10, 11,
12, -1, -1, 15, -1, -1, 18, 19, -1, 21,
22, 23, 24, -1, -1, -1, -1, -1, 30, 31,
32, 33, 34, 35, 36, -1, -1, 39, -1, -1,
-1, -1, -1, 45, -1, 47, 48, 49, 50, 51,
52, 53, 54, 55, 56, -1, 58, 59, 60, -1,
-1, 63, -1, -1, 66, 67, -1, 69, 70, 71,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, 84, 85, -1, -1, -1, -1, -1, 91,
-1, -1, 94, 95, -1, 97, 98, -1, 100, -1,
-1, -1, 104, -1, 106, 107, 108, -1, 110, 111,
112, -1, 114, 115, -1, -1, 118, 119, 1, -1,
3, 4, 5, 6, 7, 8, 9, 10, 11, 12,
-1, -1, 134, 135, 136, -1, 19, -1, 21, 22,
23, 24, -1, -1, 146, -1, 148, 30, 31, 32,
33, 34, 35, 36, -1, -1, 39, -1, -1, -1,
-1, -1, 45, 46, 47, 48, 49, 50, 51, 52,
53, 54, 55, 56, -1, 58, 59, 60, -1, -1,
63, -1, -1, 66, 67, -1, 69, 70, 71, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, 84, 85, -1, -1, -1, -1, -1, 91, -1,
-1, 94, 95, -1, 97, 98, -1, 100, -1, -1,
-1, 104, -1, 106, 107, 108, -1, 110, 111, 112,
-1, 114, 115, -1, -1, 118, 119, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, 134, 135, 136, -1, -1, 139, -1, -1, -1,
-1, -1, -1, 146, 1, 148, 3, 4, 5, 6,
7, 8, 9, 10, 11, 12, -1, 14, 15, -1,
-1, -1, 19, -1, 21, 22, 23, 24, -1, -1,
-1, -1, -1, 30, 31, 32, 33, 34, 35, 36,
-1, -1, 39, -1, -1, -1, -1, -1, 45, -1,
47, 48, 49, 50, 51, 52, 53, 54, 55, 56,
-1, 58, 59, 60, -1, -1, 63, -1, -1, 66,
67, -1, 69, 70, 71, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, 84, 85, -1,
-1, -1, -1, -1, 91, -1, -1, 94, 95, -1,
97, 98, -1, 100, -1, -1, -1, 104, -1, 106,
107, 108, -1, 110, 111, 112, -1, 114, 115, -1,
-1, 118, 119, 1, -1, 3, 4, 5, 6, 7,
8, 9, 10, 11, 12, -1, -1, 134, 135, 136,
-1, 19, -1, 21, 22, 23, 24, -1, -1, 146,
-1, 148, 30, 31, 32, 33, 34, 35, 36, -1,
-1, 39, -1, -1, -1, -1, -1, 45, -1, 47,
48, 49, 50, 51, 52, 53, 54, 55, 56, -1,
58, 59, 60, -1, -1, 63, -1, -1, 66, 67,
-1, 69, 70, 71, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, 84, 85, -1, -1,
-1, -1, -1, 91, -1, -1, 94, 95, -1, 97,
98, -1, 100, -1, -1, -1, 104, -1, 106, 107,
108, -1, 110, 111, 112, -1, 114, 115, -1, -1,
118, 119, 1, -1, 3, 4, 5, 6, 7, 8,
9, 10, 11, 12, -1, -1, 134, 135, 136, -1,
19, -1, 21, 22, 23, 24, -1, 145, 146, -1,
148, 30, 31, 32, 33, 34, 35, 36, -1, -1,
39, -1, -1, -1, -1, -1, 45, -1, 47, 48,
49, 50, 51, 52, 53, 54, 55, 56, -1, 58,
59, 60, -1, -1, 63, -1, -1, 66, 67, -1,
69, 70, 71, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, 84, 85, -1, -1, -1,
-1, -1, 91, -1, -1, 94, 95, -1, 97, 98,
-1, 100, -1, -1, -1, 104, -1, 106, 107, 108,
-1, 110, 111, 112, -1, 114, 115, -1, -1, 118,
119, 1, -1, 3, 4, 5, 6, 7, 8, 9,
10, 11, 12, -1, -1, 134, 135, 136, -1, 19,
-1, 21, 22, 23, 24, -1, 145, 146, -1, 148,
30, 31, 32, 33, 34, 35, 36, -1, -1, 39,
-1, -1, -1, -1, -1, 45, -1, 47, 48, 49,
50, 51, 52, 53, 54, 55, 56, -1, 58, 59,
60, -1, -1, 63, -1, -1, 66, 67, -1, 69,
70, 71, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, 84, 85, -1, -1, -1, -1,
-1, 91, -1, -1, 94, 95, -1, 97, 98, -1,
100, -1, -1, -1, 104, -1, 106, 107, 108, -1,
110, 111, 112, -1, 114, 115, -1, -1, 118, 119,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, 134, 135, 136, -1, -1, 139,
-1, -1, -1, -1, -1, -1, 146, 1, 148, 3,
4, 5, 6, 7, 8, 9, 10, 11, 12, -1,
-1, 15, -1, -1, -1, 19, -1, 21, 22, 23,
24, -1, -1, -1, -1, -1, 30, 31, 32, 33,
34, 35, 36, -1, -1, 39, -1, -1, -1, -1,
-1, 45, -1, 47, 48, 49, 50, 51, 52, 53,
54, 55, 56, -1, 58, 59, 60, -1, -1, 63,
-1, -1, 66, 67, -1, 69, 70, 71, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
84, 85, -1, -1, -1, -1, -1, 91, -1, -1,
94, 95, -1, 97, 98, -1, 100, -1, -1, -1,
104, -1, 106, 107, 108, -1, 110, 111, 112, -1,
114, 115, -1, -1, 118, 119, -1, -1, 3, 4,
5, 6, 7, 8, 9, 10, 11, 12, -1, -1,
134, 135, 136, -1, 19, -1, 21, 22, 23, 24,
-1, -1, 146, -1, 148, 30, 31, 32, 33, 34,
35, 36, -1, -1, 39, -1, -1, -1, -1, -1,
45, 46, 47, 48, 49, 50, 51, 52, 53, 54,
55, 56, -1, 58, 59, 60, -1, -1, 63, -1,
-1, 66, 67, -1, 69, 70, 71, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, 84,
85, -1, -1, -1, -1, -1, 91, -1, -1, 94,
95, -1, 97, 98, -1, 100, -1, -1, -1, 104,
-1, 106, 107, 108, -1, 110, 111, 112, -1, 114,
115, -1, -1, 118, 119, -1, -1, 3, 4, 5,
6, 7, 8, 9, 10, 11, 12, -1, -1, 134,
135, 136, -1, 19, -1, 21, 22, 23, 24, -1,
-1, 146, -1, 148, 30, 31, 32, 33, 34, 35,
36, -1, -1, 39, -1, -1, -1, -1, -1, 45,
-1, 47, 48, 49, 50, 51, 52, 53, 54, 55,
56, -1, 58, 59, 60, -1, -1, 63, -1, -1,
66, 67, -1, 69, 70, 71, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, 84, 85,
-1, -1, -1, -1, -1, 91, -1, -1, 94, 95,
-1, 97, 98, -1, 100, -1, -1, -1, 104, -1,
106, 107, 108, -1, 110, 111, 112, -1, 114, 115,
-1, -1, 118, 119, -1, -1, 3, 4, 5, 6,
7, 8, 9, 10, 11, -1, -1, -1, 134, 135,
136, -1, 19, -1, 21, 22, 23, 24, -1, -1,
146, -1, 148, 30, 31, 32, 33, 34, 35, 36,
-1, -1, 39, -1, -1, -1, -1, -1, -1, -1,
-1, 48, 49, 50, 51, 52, 53, 54, 55, 56,
-1, 58, 59, 60, -1, -1, 63, -1, -1, 66,
67, -1, 69, 70, 71, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, 84, 85, -1,
-1, -1, -1, -1, 91, -1, -1, 94, 95, -1,
97, 98, -1, -1, -1, -1, -1, 104, -1, 106,
107, 108, -1, 110, 111, 112, -1, 114, 115, -1,
-1, 118, 119, -1, -1, 3, 4, 5, 6, 7,
8, 9, 10, 11, -1, -1, -1, 134, 135, 136,
-1, 19, -1, 21, 22, 23, 24, -1, -1, 146,
-1, 148, 30, 31, 32, 33, 34, 35, 36, -1,
-1, 39, -1, -1, -1, -1, -1, -1, -1, -1,
48, 49, 50, 51, 52, 53, 54, 55, 56, -1,
58, 59, 60, -1, -1, 63, -1, -1, 66, 67,
-1, 69, 70, 71, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, 84, 85, -1, -1,
-1, -1, -1, 91, -1, -1, 94, 95, -1, 97,
98, -1, -1, -1, -1, -1, 104, -1, 106, 107,
108, -1, 110, 111, 112, -1, 114, 115, -1, -1,
118, 119, -1, -1, 3, 4, 5, 6, 7, 8,
9, 10, 11, -1, -1, -1, 134, 135, 136, -1,
19, -1, 21, 22, 23, 24, -1, -1, 146, -1,
148, 30, 31, 32, 33, 34, 35, 36, -1, -1,
39, -1, -1, -1, -1, -1, -1, -1, -1, 48,
49, 50, 51, 52, 53, 54, 55, 56, -1, 58,
59, 60, -1, -1, 63, -1, -1, 66, 67, -1,
69, 70, 71, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, 84, 85, -1, -1, -1,
-1, -1, 91, -1, -1, 94, 95, -1, 97, 98,
-1, -1, -1, -1, -1, 104, -1, 106, 107, 108,
-1, 110, 111, 112, -1, 114, 115, -1, -1, 118,
119, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, 134, 135, 136, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, 148,
3, 4, 5, 6, 7, 8, 9, 10, 11, 12,
13, 14, 15, 16, 17, 18, 19, 20, 21, 22,
23, 24, 25, 26, -1, -1, -1, 30, 31, 32,
33, 34, 35, 36, 37, 38, 39, -1, -1, -1,
-1, -1, 45, 46, 47, 48, 49, 50, 51, 52,
53, 54, 55, 56, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, 69, 70, 71, 72,
73, 74, 75, 76, 77, -1, -1, 80, 81, -1,
-1, -1, -1, 86, 87, 88, 89, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, 100, 101, 102,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, 124, 125, 126, 127, 128, 129, 130, 131, 132,
133, -1, 135, 136, -1, -1, -1, -1, -1, -1,
143, 144, 3, 4, 5, 6, 7, 8, 9, 10,
11, -1, -1, -1, -1, -1, -1, -1, 19, -1,
21, 22, 23, 24, -1, 26, -1, -1, -1, 30,
31, 32, 33, 34, 35, 36, -1, -1, 39, -1,
-1, -1, -1, -1, -1, -1, -1, 48, 49, 50,
51, 52, 53, 54, 55, 56, -1, 58, 59, 60,
-1, -1, 63, -1, -1, 66, 67, -1, 69, 70,
71, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, 84, 85, -1, -1, -1, -1, -1,
91, -1, -1, 94, 95, -1, 97, 98, -1, 100,
-1, 102, 103, 104, -1, 106, 107, 108, -1, 110,
111, 112, -1, 114, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, 134, 135, 136, -1, 138, -1, -1,
-1, -1, -1, 144, 3, 4, 5, 6, 7, 8,
9, 10, 11, -1, -1, -1, -1, -1, -1, -1,
19, -1, 21, 22, 23, 24, -1, 26, -1, -1,
-1, 30, 31, 32, 33, 34, 35, 36, -1, -1,
39, -1, -1, -1, -1, -1, -1, -1, -1, 48,
49, 50, 51, 52, 53, 54, 55, 56, -1, 58,
59, 60, -1, -1, 63, -1, -1, 66, 67, -1,
69, 70, 71, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, 84, 85, -1, -1, -1,
-1, -1, 91, -1, -1, 94, 95, -1, 97, 98,
-1, 100, -1, 102, 103, 104, -1, 106, 107, 108,
-1, 110, 111, 112, -1, 114, -1, -1, -1, -1,
-1, -1, 3, 4, 5, 6, 7, 8, 9, 10,
11, -1, -1, -1, -1, 134, 135, 136, 19, 138,
21, 22, 23, 24, -1, 144, -1, -1, -1, 30,
31, 32, 33, 34, 35, 36, -1, -1, 39, -1,
-1, -1, -1, -1, -1, -1, -1, 48, 49, 50,
51, 52, 53, 54, 55, 56, -1, 58, 59, 60,
-1, -1, 63, -1, -1, 66, 67, -1, 69, 70,
71, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, 84, 85, -1, -1, -1, -1, -1,
91, 92, -1, 94, 95, -1, 97, 98, -1, 100,
-1, 102, 103, 104, -1, 106, 107, 108, -1, 110,
111, 112, -1, 114, -1, -1, -1, -1, -1, -1,
121, 3, 4, 5, 6, 7, 8, 9, 10, 11,
-1, -1, -1, 134, 135, 136, -1, 19, -1, 21,
22, 23, 24, 144, -1, -1, -1, -1, 30, 31,
32, 33, 34, 35, 36, -1, -1, 39, -1, -1,
-1, -1, -1, -1, -1, -1, 48, 49, 50, 51,
52, 53, 54, 55, 56, -1, 58, 59, 60, -1,
-1, 63, -1, -1, 66, 67, -1, 69, 70, 71,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, 84, 85, -1, -1, -1, -1, -1, 91,
92, -1, 94, 95, -1, 97, 98, -1, 100, -1,
102, 103, 104, -1, 106, 107, 108, -1, 110, 111,
112, -1, 114, -1, -1, -1, -1, -1, -1, 121,
3, 4, 5, 6, 7, 8, 9, 10, 11, -1,
-1, -1, 134, 135, 136, -1, 19, -1, 21, 22,
23, 24, 144, -1, -1, -1, -1, 30, 31, 32,
33, 34, 35, 36, -1, -1, 39, -1, -1, -1,
-1, -1, -1, -1, -1, 48, 49, 50, 51, 52,
53, 54, 55, 56, -1, 58, 59, 60, -1, -1,
63, -1, -1, 66, 67, -1, 69, 70, 71, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, 84, 85, -1, -1, -1, -1, -1, 91, -1,
-1, 94, 95, -1, 97, 98, -1, 100, -1, 102,
103, 104, -1, 106, 107, 108, -1, 110, 111, 112,
-1, 114, -1, -1, -1, -1, -1, -1, 3, 4,
5, 6, 7, 8, 9, 10, 11, -1, -1, -1,
-1, 134, 135, 136, 19, -1, 21, 22, 23, 24,
-1, 144, -1, -1, -1, 30, 31, 32, 33, 34,
35, 36, -1, -1, 39, -1, -1, -1, -1, -1,
-1, -1, -1, 48, 49, 50, 51, 52, 53, 54,
55, 56, -1, 58, 59, 60, -1, -1, 63, -1,
-1, 66, 67, -1, 69, 70, 71, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, 84,
85, -1, -1, -1, -1, -1, 91, -1, -1, 94,
95, -1, 97, 98, -1, 100, -1, 102, 103, 104,
-1, 106, 107, 108, -1, 110, 111, 112, -1, 114,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, 134,
135, 136, -1, -1, -1, -1, -1, -1, -1, 144,
3, 4, 5, 6, 7, 8, 9, 10, 11, 12,
13, 14, 15, 16, 17, 18, 19, 20, 21, 22,
23, 24, 25, 26, -1, -1, -1, 30, 31, 32,
33, 34, 35, 36, 37, 38, 39, -1, -1, -1,
-1, -1, 45, 46, 47, 48, 49, 50, 51, 52,
53, 54, 55, 56, -1, -1, -1, -1, -1, -1,
63, -1, -1, -1, -1, -1, 69, 70, 71, 72,
73, 74, 75, 76, 77, -1, -1, 80, 81, -1,
-1, -1, -1, 86, 87, 88, 89, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, 100, 101, 102,
-1, -1, -1, -1, 107, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, 124, 125, 126, 127, 128, 129, 130, 131, 132,
133, -1, 135, 136, -1, -1, -1, -1, -1, -1,
143, 3, 4, 5, 6, 7, 8, 9, 10, 11,
12, 13, 14, 15, 16, 17, 18, 19, 20, 21,
22, 23, 24, 25, 26, -1, -1, -1, 30, 31,
32, 33, 34, 35, 36, 37, 38, 39, -1, -1,
-1, -1, -1, 45, 46, 47, 48, 49, 50, 51,
52, 53, 54, 55, 56, -1, -1, -1, -1, -1,
-1, 63, -1, -1, -1, -1, -1, -1, 70, 71,
72, 73, 74, 75, 76, 77, -1, -1, 80, 81,
-1, -1, -1, -1, 86, 87, 88, 89, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, 100, 101,
102, -1, -1, -1, -1, 107, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, 124, 125, 126, 127, 128, 129, 130, 131,
132, 133, -1, 135, 136, -1, -1, -1, -1, -1,
-1, 143, 3, 4, 5, 6, 7, 8, 9, 10,
11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
21, 22, 23, 24, 25, 26, -1, -1, -1, 30,
31, 32, 33, 34, 35, 36, 37, 38, 39, -1,
-1, -1, -1, -1, 45, 46, 47, 48, 49, 50,
51, 52, -1, -1, 55, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, 70,
71, 72, 73, 74, 75, 76, 77, -1, -1, 80,
81, -1, -1, -1, -1, 86, 87, 88, 89, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, 100,
101, 102, -1, -1, -1, 106, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, 124, 125, 126, 127, 128, 129, 130,
131, 132, 133, -1, 135, 136, -1, -1, -1, -1,
-1, -1, 143, 3, 4, 5, 6, 7, 8, 9,
10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
20, 21, 22, 23, 24, 25, 26, -1, -1, -1,
30, 31, 32, 33, 34, 35, 36, 37, 38, 39,
-1, -1, -1, -1, -1, 45, 46, 47, 48, 49,
50, 51, 52, -1, -1, 55, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
70, 71, 72, 73, 74, 75, 76, 77, -1, -1,
80, 81, -1, -1, -1, -1, 86, 87, 88, 89,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
100, 101, 102, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, 124, 125, 126, 127, 128, 129,
130, 131, 132, 133, -1, 135, 136, -1, -1, -1,
-1, -1, -1, 143, 3, 4, 5, 6, 7, 8,
9, 10, 11, -1, -1, -1, -1, -1, -1, -1,
19, -1, 21, 22, 23, 24, -1, -1, -1, -1,
-1, 30, 31, 32, 33, 34, 35, 36, -1, -1,
39, -1, -1, -1, -1, -1, -1, -1, -1, 48,
49, 50, 51, 52, 53, 54, 55, 56, -1, 58,
59, 60, -1, -1, 63, -1, -1, 66, 67, -1,
69, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, 91, -1, -1, 94, 95, -1, 97, 98,
-1, -1, -1, -1, -1, 104, -1, 106, 107, 108,
-1, 110, 111, 112, -1, 114, -1, -1, 3, 4,
5, 6, 7, 8, 9, 10, 11, 12, -1, -1,
-1, -1, -1, -1, 19, 134, 21, 22, 23, 24,
-1, -1, -1, 142, -1, 30, 31, 32, 33, 34,
35, 36, -1, -1, 39, -1, -1, -1, -1, -1,
45, 46, 47, 48, 49, 50, 51, 52, 53, 54,
55, 56, -1, 58, 59, 60, -1, -1, 63, -1,
-1, 66, 67, -1, 69, 70, 71, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, 84,
85, -1, -1, -1, -1, -1, 91, -1, -1, 94,
95, -1, 97, 98, -1, 100, -1, -1, -1, 104,
-1, 106, 107, 108, -1, 110, 111, 112, -1, 114,
-1, -1, -1, -1, -1, -1, 3, 4, 5, 6,
7, 8, 9, 10, 11, 12, -1, -1, -1, 134,
135, 136, 19, -1, 21, 22, 23, 24, -1, -1,
-1, -1, -1, 30, 31, 32, 33, 34, 35, 36,
-1, -1, 39, -1, -1, -1, -1, -1, 45, -1,
47, 48, 49, 50, 51, 52, 53, 54, 55, 56,
-1, 58, 59, 60, -1, -1, 63, -1, -1, 66,
67, -1, 69, 70, 71, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, 84, 85, -1,
-1, -1, -1, -1, 91, -1, -1, 94, 95, -1,
97, 98, -1, 100, -1, -1, -1, 104, -1, 106,
107, 108, -1, 110, 111, 112, -1, 114, -1, -1,
-1, -1, -1, -1, 3, 4, 5, 6, 7, 8,
9, 10, 11, -1, -1, -1, -1, 134, 135, 136,
19, -1, 21, 22, 23, 24, -1, -1, -1, -1,
-1, 30, 31, 32, 33, 34, 35, 36, -1, -1,
39, -1, -1, -1, -1, -1, -1, -1, -1, 48,
49, 50, 51, 52, 53, 54, 55, 56, -1, 58,
59, 60, -1, -1, 63, -1, -1, 66, 67, -1,
69, 70, 71, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, 84, 85, -1, -1, -1,
-1, -1, 91, -1, -1, 94, 95, -1, 97, 98,
-1, 100, -1, 102, 103, 104, -1, 106, 107, 108,
-1, 110, 111, 112, -1, 114, -1, -1, -1, -1,
-1, -1, 3, 4, 5, 6, 7, 8, 9, 10,
11, -1, -1, -1, -1, 134, 135, 136, 19, -1,
21, 22, 23, 24, -1, -1, -1, -1, -1, 30,
31, 32, 33, 34, 35, 36, -1, -1, 39, -1,
-1, -1, -1, -1, -1, -1, -1, 48, 49, 50,
51, 52, 53, 54, 55, 56, -1, 58, 59, 60,
-1, -1, 63, -1, -1, 66, 67, -1, 69, 70,
71, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, 84, 85, -1, -1, -1, -1, -1,
91, -1, -1, 94, 95, -1, 97, 98, -1, 100,
-1, 102, 103, 104, -1, 106, 107, 108, -1, 110,
111, 112, -1, 114, -1, -1, -1, -1, -1, -1,
3, 4, 5, 6, 7, 8, 9, 10, 11, -1,
-1, -1, -1, 134, 135, 136, 19, -1, 21, 22,
23, 24, -1, -1, -1, -1, -1, 30, 31, 32,
33, 34, 35, 36, -1, -1, 39, -1, -1, -1,
-1, -1, -1, -1, -1, 48, 49, 50, 51, 52,
53, 54, 55, 56, -1, 58, 59, 60, -1, -1,
63, -1, -1, 66, 67, -1, 69, 70, 71, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, 84, 85, -1, -1, -1, -1, -1, 91, -1,
-1, 94, 95, -1, 97, 98, -1, 100, -1, 102,
103, 104, -1, 106, 107, 108, -1, 110, 111, 112,
-1, 114, -1, -1, -1, -1, -1, -1, 3, 4,
5, 6, 7, 8, 9, 10, 11, -1, -1, -1,
-1, 134, 135, 136, 19, -1, 21, 22, 23, 24,
-1, -1, -1, -1, -1, 30, 31, 32, 33, 34,
35, 36, -1, -1, 39, -1, -1, -1, -1, -1,
-1, -1, -1, 48, 49, 50, 51, 52, 53, 54,
55, 56, -1, 58, 59, 60, -1, -1, 63, -1,
-1, 66, 67, -1, 69, 70, 71, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, 84,
85, -1, -1, -1, -1, -1, 91, -1, -1, 94,
95, -1, 97, 98, -1, 100, -1, 102, 103, 104,
-1, 106, 107, 108, -1, 110, 111, 112, -1, 114,
-1, -1, -1, -1, -1, -1, 3, 4, 5, 6,
7, 8, 9, 10, 11, -1, -1, -1, -1, 134,
135, 136, 19, -1, 21, 22, 23, 24, -1, -1,
-1, -1, -1, 30, 31, 32, 33, 34, 35, 36,
-1, -1, 39, -1, -1, -1, -1, -1, -1, -1,
-1, 48, 49, 50, 51, 52, 53, 54, 55, 56,
-1, 58, 59, 60, -1, -1, 63, -1, -1, 66,
67, -1, 69, 70, 71, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, 84, 85, -1,
-1, -1, -1, -1, 91, -1, -1, 94, 95, -1,
97, 98, -1, 100, -1, 102, -1, 104, -1, 106,
107, 108, -1, 110, 111, 112, -1, 114, -1, -1,
-1, -1, -1, -1, 3, 4, 5, 6, 7, 8,
9, 10, 11, -1, -1, -1, -1, 134, 135, 136,
19, -1, 21, 22, 23, 24, -1, -1, -1, -1,
-1, 30, 31, 32, 33, 34, 35, 36, -1, -1,
39, -1, -1, -1, -1, -1, -1, -1, -1, 48,
49, 50, 51, 52, 53, 54, 55, 56, -1, 58,
59, 60, -1, -1, 63, -1, -1, 66, 67, -1,
69, 70, 71, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, 84, 85, -1, -1, -1,
-1, -1, 91, -1, -1, 94, 95, -1, 97, 98,
-1, -1, -1, 102, 103, 104, -1, 106, 107, 108,
-1, 110, 111, 112, -1, 114, -1, -1, -1, -1,
-1, -1, 3, 4, 5, 6, 7, 8, 9, 10,
11, -1, -1, -1, -1, 134, 135, 136, 19, -1,
21, 22, 23, 24, -1, -1, -1, -1, -1, 30,
31, 32, 33, 34, 35, 36, -1, -1, 39, -1,
-1, -1, -1, -1, -1, -1, -1, 48, 49, 50,
51, 52, 53, 54, 55, 56, -1, 58, 59, 60,
-1, -1, 63, -1, -1, 66, 67, -1, 69, 70,
71, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, 84, 85, -1, -1, -1, -1, -1,
91, -1, -1, 94, 95, -1, 97, 98, -1, 100,
-1, 102, -1, 104, -1, 106, 107, 108, -1, 110,
111, 112, -1, 114, -1, -1, -1, -1, -1, -1,
3, 4, 5, 6, 7, 8, 9, 10, 11, -1,
-1, -1, -1, 134, 135, 136, 19, -1, 21, 22,
23, 24, -1, -1, -1, -1, -1, 30, 31, 32,
33, 34, 35, 36, -1, -1, 39, -1, -1, -1,
-1, -1, -1, -1, -1, 48, 49, 50, 51, 52,
53, 54, 55, 56, -1, 58, 59, 60, -1, -1,
63, -1, -1, 66, 67, -1, 69, 70, 71, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, 84, 85, -1, -1, -1, -1, -1, 91, -1,
-1, 94, 95, -1, 97, 98, -1, -1, -1, 102,
-1, 104, -1, 106, 107, 108, -1, 110, 111, 112,
-1, 114, -1, -1, -1, -1, -1, -1, 3, 4,
5, 6, 7, 8, 9, 10, 11, -1, -1, -1,
-1, 134, 135, 136, 19, -1, 21, 22, 23, 24,
-1, -1, -1, -1, -1, 30, 31, 32, 33, 34,
35, 36, -1, -1, 39, -1, -1, -1, -1, -1,
-1, -1, -1, 48, 49, 50, 51, 52, 53, 54,
55, 56, -1, 58, 59, 60, -1, -1, 63, -1,
-1, 66, 67, -1, 69, 70, 71, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, 84,
85, -1, -1, -1, -1, -1, 91, -1, -1, 94,
95, -1, 97, 98, -1, 100, -1, -1, -1, 104,
-1, 106, 107, 108, -1, 110, 111, 112, -1, 114,
-1, -1, -1, -1, -1, -1, 3, 4, 5, 6,
7, 8, 9, 10, 11, -1, -1, -1, -1, 134,
135, 136, 19, -1, 21, 22, 23, 24, -1, -1,
-1, -1, -1, 30, 31, 32, 33, 34, 35, 36,
-1, -1, 39, -1, -1, -1, -1, -1, -1, -1,
-1, 48, 49, 50, 51, 52, 53, 54, 55, 56,
-1, 58, 59, 60, -1, -1, 63, -1, -1, 66,
67, -1, 69, 70, 71, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, 84, 85, -1,
-1, -1, -1, -1, 91, -1, -1, 94, 95, -1,
97, 98, -1, 100, -1, -1, -1, 104, -1, 106,
107, 108, -1, 110, 111, 112, -1, 114, -1, -1,
-1, -1, -1, -1, 3, 4, 5, 6, 7, 8,
9, 10, 11, -1, -1, -1, -1, 134, 135, 136,
19, -1, 21, 22, 23, 24, -1, -1, -1, -1,
-1, 30, 31, 32, 33, 34, 35, 36, -1, -1,
39, -1, -1, -1, -1, -1, -1, -1, -1, 48,
49, 50, 51, 52, 53, 54, 55, 56, -1, 58,
59, 60, -1, -1, 63, -1, -1, 66, 67, -1,
69, 70, 71, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, 84, 85, -1, -1, -1,
-1, -1, 91, -1, -1, 94, 95, -1, 97, 98,
-1, 100, -1, -1, -1, 104, -1, 106, 107, 108,
-1, 110, 111, 112, -1, 114, -1, -1, -1, -1,
-1, -1, 3, 4, 5, 6, 7, 8, 9, 10,
11, -1, -1, -1, -1, 134, 135, 136, 19, -1,
21, 22, 23, 24, -1, -1, -1, -1, -1, 30,
31, 32, 33, 34, 35, 36, -1, -1, 39, -1,
-1, -1, -1, -1, -1, -1, -1, 48, 49, 50,
51, 52, 53, 54, 55, 56, -1, 58, 59, 60,
-1, -1, 63, -1, -1, 66, 67, -1, 69, 70,
71, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, 84, 85, -1, -1, -1, -1, -1,
91, -1, -1, 94, 95, -1, 97, 98, -1, 100,
-1, -1, -1, 104, -1, 106, 107, 108, -1, 110,
111, 112, -1, 114, -1, -1, -1, -1, -1, -1,
3, 4, 5, 6, 7, 8, 9, 10, 11, -1,
-1, -1, -1, 134, 135, 136, 19, -1, 21, 22,
23, 24, -1, -1, -1, -1, -1, 30, 31, 32,
33, 34, 35, 36, -1, -1, 39, -1, -1, -1,
-1, -1, -1, -1, -1, 48, 49, 50, 51, 52,
53, 54, 55, 56, -1, 58, 59, 60, -1, -1,
63, -1, -1, 66, 67, -1, 69, 70, 71, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, 84, 85, -1, -1, -1, -1, -1, 91, -1,
-1, 94, 95, -1, 97, 98, -1, 100, -1, -1,
-1, 104, -1, 106, 107, 108, -1, 110, 111, 112,
-1, 114, -1, -1, -1, -1, -1, -1, 3, 4,
5, 6, 7, 8, 9, 10, 11, -1, -1, -1,
-1, 134, 135, 136, 19, -1, 21, 22, 23, 24,
-1, -1, -1, -1, -1, 30, 31, 32, 33, 34,
35, 36, -1, -1, 39, -1, -1, -1, -1, -1,
-1, -1, -1, 48, 49, 50, 51, 52, 53, 54,
55, 56, -1, 58, 59, 60, -1, -1, 63, -1,
-1, 66, 67, -1, 69, 70, 71, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, 84,
85, -1, -1, -1, -1, -1, 91, -1, -1, 94,
95, -1, 97, 98, -1, -1, -1, -1, -1, 104,
-1, 106, 107, 108, -1, 110, 111, 112, -1, 114,
-1, -1, -1, -1, -1, -1, 3, 4, 5, 6,
7, 8, 9, 10, 11, -1, -1, -1, -1, 134,
135, 136, 19, -1, 21, 22, 23, 24, -1, -1,
-1, -1, -1, 30, 31, 32, 33, 34, 35, 36,
-1, -1, 39, -1, -1, -1, -1, -1, -1, -1,
-1, 48, 49, 50, 51, 52, 53, 54, 55, 56,
-1, 58, 59, 60, -1, -1, 63, -1, -1, 66,
67, -1, 69, 70, 71, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, 84, 85, -1,
-1, -1, -1, -1, 91, -1, -1, 94, 95, -1,
97, 98, -1, -1, -1, -1, -1, 104, -1, 106,
107, 108, -1, 110, 111, 112, -1, 114, -1, -1,
-1, -1, -1, -1, 3, 4, 5, 6, 7, 8,
9, 10, 11, -1, -1, -1, -1, 134, 135, 136,
19, -1, 21, 22, 23, 24, -1, -1, -1, -1,
-1, 30, 31, 32, 33, 34, 35, 36, -1, -1,
39, -1, -1, -1, -1, -1, -1, -1, -1, 48,
49, 50, 51, 52, 53, 54, 55, 56, -1, 58,
59, 60, -1, -1, 63, -1, -1, 66, 67, -1,
69, 70, 71, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, 84, 85, -1, -1, -1,
-1, -1, 91, -1, -1, 94, 95, -1, 97, 98,
-1, -1, -1, -1, -1, 104, -1, 106, 107, 108,
-1, 110, 111, 112, -1, 114, -1, -1, -1, -1,
-1, -1, 3, 4, 5, 6, 7, 8, 9, 10,
11, -1, -1, -1, -1, 134, 135, 136, 19, -1,
21, 22, 23, 24, -1, -1, -1, -1, -1, 30,
31, 32, 33, 34, 35, 36, -1, -1, 39, -1,
-1, -1, -1, -1, -1, -1, -1, 48, 49, 50,
51, 52, 53, 54, 55, 56, -1, 58, 59, 60,
-1, -1, 63, -1, -1, 66, 67, -1, 69, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, 88, -1, -1,
91, -1, -1, 94, 95, -1, 97, 98, -1, -1,
-1, -1, -1, 104, -1, 106, 107, 108, -1, 110,
111, 112, -1, 114, -1, -1, 3, 4, 5, 6,
7, 8, 9, 10, 11, -1, -1, -1, -1, -1,
-1, -1, 19, 134, 21, 22, 23, 24, -1, -1,
-1, -1, -1, 30, 31, 32, 33, 34, 35, 36,
-1, -1, 39, -1, -1, -1, -1, -1, -1, -1,
-1, 48, 49, 50, 51, 52, 53, 54, 55, 56,
-1, 58, 59, 60, -1, -1, 63, -1, -1, 66,
67, -1, 69, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, 91, -1, -1, 94, 95, -1,
97, 98, -1, 100, -1, -1, -1, 104, -1, 106,
107, 108, -1, 110, 111, 112, -1, 114, -1, -1,
3, 4, 5, 6, 7, 8, 9, 10, 11, -1,
-1, -1, -1, -1, -1, -1, 19, 134, 21, 22,
23, 24, -1, -1, -1, -1, -1, 30, 31, 32,
33, 34, 35, 36, -1, -1, 39, -1, -1, -1,
-1, -1, -1, -1, -1, 48, 49, 50, 51, 52,
53, 54, 55, 56, -1, 58, 59, 60, -1, -1,
63, -1, -1, 66, 67, -1, 69, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, 91, -1,
-1, 94, 95, -1, 97, 98, -1, 100, -1, -1,
-1, 104, -1, 106, 107, 108, -1, 110, 111, 112,
-1, 114, -1, -1, 3, 4, 5, 6, 7, 8,
9, 10, 11, -1, -1, -1, -1, -1, -1, -1,
19, 134, 21, 22, 23, 24, -1, -1, -1, -1,
-1, 30, 31, 32, 33, 34, 35, 36, -1, -1,
39, -1, -1, -1, -1, -1, -1, -1, -1, 48,
49, 50, 51, 52, 53, 54, 55, 56, -1, 58,
59, 60, -1, -1, 63, -1, -1, 66, 67, -1,
69, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, 91, -1, -1, 94, 95, -1, 97, 98,
-1, -1, -1, -1, -1, 104, -1, 106, 107, 108,
-1, 110, 111, 112, -1, 114, -1, -1, 3, 4,
5, 6, 7, 8, 9, 10, 11, -1, -1, -1,
-1, -1, -1, -1, 19, 134, 21, 22, 23, 24,
-1, -1, -1, -1, -1, 30, 31, 32, 33, 34,
35, 36, -1, -1, 39, -1, -1, -1, -1, -1,
-1, -1, -1, 48, 49, 50, 51, 52, 53, 54,
55, 56, -1, 58, 59, 60, -1, -1, 63, -1,
-1, 66, 67, -1, 69, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, 91, -1, -1, 94,
95, -1, 97, 98, -1, -1, -1, -1, -1, 104,
-1, 106, 107, 108, -1, 110, 111, 112, -1, 114,
-1, -1, 3, 4, 5, 6, 7, 8, 9, 10,
11, -1, -1, -1, -1, -1, -1, -1, 19, 134,
21, 22, 23, 24, -1, -1, -1, -1, -1, 30,
31, 32, 33, 34, 35, 36, -1, -1, 39, -1,
-1, -1, -1, -1, -1, -1, -1, 48, 49, 50,
51, 52, 53, 54, 55, 56, -1, 58, 59, 60,
-1, -1, 63, -1, -1, 66, 67, -1, 69, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
91, -1, -1, 94, 95, -1, 97, 98, -1, -1,
-1, -1, -1, 104, -1, 106, 107, 108, -1, 110,
111, 112, -1, 114, -1, -1, 3, 4, 5, 6,
7, 8, 9, 10, 11, -1, -1, -1, -1, -1,
-1, -1, 19, 134, 21, 22, 23, 24, -1, -1,
-1, -1, -1, 30, 31, 32, 33, 34, 35, 36,
-1, -1, 39, -1, -1, 44, -1, -1, -1, -1,
-1, 48, 49, 50, 51, 52, 53, 54, 55, 56,
-1, 58, 59, 60, -1, -1, 63, -1, -1, 66,
67, -1, 69, 72, 73, 74, 75, 76, 77, 78,
79, 80, 81, 82, 83, -1, -1, -1, -1, 88,
89, -1, -1, -1, 91, -1, -1, 94, 95, -1,
97, 98, 101, -1, -1, -1, -1, 104, -1, 106,
107, 108, -1, 110, 111, 112, -1, 114, -1, -1,
-1, -1, -1, 122, -1, 124, 125, 126, 127, 128,
129, 130, 131, 132, 133, 51, 52, 134, -1, 55,
-1, -1, -1, 142, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, 70, 71, 72, 73, 74, 75,
76, 77, -1, -1, 80, 81, -1, -1, -1, -1,
86, 87, 88, 89, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, 100, 101, 102, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, 124, 125,
126, 127, 128, 129, 130, 131, 132, 133, -1, 135,
136, 51, 52, -1, -1, 55, -1, 143, 144, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
70, 71, 72, 73, 74, 75, 76, 77, -1, -1,
80, 81, -1, -1, -1, -1, 86, 87, 88, 89,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
100, 101, 102, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, 124, 125, 126, 127, 128, 129,
130, 131, 132, 133, -1, 135, 136, 51, 52, -1,
-1, 55, -1, 143, 144, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, 70, 71, 72, 73,
74, 75, 76, 77, -1, -1, 80, 81, -1, -1,
-1, -1, 86, 87, 88, 89, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, 100, 101, 102, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
124, 125, 126, 127, 128, 129, 130, 131, 132, 133,
-1, 135, 136, 51, 52, -1, -1, 55, -1, 143,
144, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, 70, 71, 72, 73, 74, 75, 76, 77,
-1, -1, 80, 81, -1, -1, -1, -1, 86, 87,
88, 89, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, 100, 101, 102, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, 124, 125, 126, 127,
128, 129, 130, 131, 132, 133, -1, 135, 136, 51,
52, -1, -1, 55, -1, 143, 144, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, 70, 71,
72, 73, 74, 75, 76, 77, -1, -1, 80, 81,
-1, -1, -1, -1, 86, 87, 88, 89, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, 100, 101,
102, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, 124, 125, 126, 127, 128, 129, 130, 131,
132, 133, -1, 135, 136, 51, 52, -1, -1, 55,
-1, 143, 144, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, 70, 71, 72, 73, 74, 75,
76, 77, -1, -1, 80, 81, -1, -1, -1, -1,
86, 87, 88, 89, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, 100, 101, 102, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, 124, 125,
126, 127, 128, 129, 130, 131, 132, 133, -1, 135,
136, 51, 52, -1, -1, 55, -1, 143, 144, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
70, 71, 72, 73, 74, 75, 76, 77, -1, -1,
80, 81, -1, -1, -1, -1, 86, 87, 88, 89,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
100, 101, 102, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, 124, 125, 126, 127, 128, 129,
130, 131, 132, 133, -1, 135, 136, 51, 52, -1,
-1, 55, -1, 143, 144, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, 70, 71, 72, 73,
74, 75, 76, 77, -1, -1, 80, 81, -1, -1,
-1, -1, 86, 87, 88, 89, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, 100, 101, 102, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
124, 125, 126, 127, 128, 129, 130, 131, 132, 133,
-1, 135, 136, 51, 52, -1, -1, 55, -1, 143,
144, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, 70, 71, 72, 73, 74, 75, 76, 77,
-1, -1, 80, 81, -1, -1, -1, -1, 86, 87,
88, 89, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, 100, 101, 102, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, 124, 125, 126, 127,
128, 129, 130, 131, 132, 133, -1, 135, 136, 51,
52, -1, -1, 55, -1, 143, 144, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, 70, 71,
72, 73, 74, 75, 76, 77, -1, -1, 80, 81,
-1, -1, -1, -1, 86, 87, 88, 89, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, 100, 101,
102, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, 124, 125, 126, 127, 128, 129, 130, 131,
132, 133, -1, 135, 136, 51, 52, -1, -1, 55,
-1, 143, 144, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, 70, 71, 72, 73, 74, 75,
76, 77, -1, -1, 80, 81, -1, -1, -1, -1,
86, 87, 88, 89, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, 100, 101, 102, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, 124, 125,
126, 127, 128, 129, 130, 131, 132, 133, -1, 135,
136, 51, 52, -1, -1, 55, -1, 143, 144, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
70, 71, 72, 73, 74, 75, 76, 77, -1, -1,
80, 81, -1, -1, -1, -1, 86, 87, 88, 89,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
100, 101, 102, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, 124, 125, 126, 127, 128, 129,
130, 131, 132, 133, -1, 135, 136, 51, 52, -1,
-1, 55, -1, 143, 144, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, 70, 71, 72, 73,
74, 75, 76, 77, -1, -1, 80, 81, -1, -1,
-1, -1, 86, 87, 88, 89, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, 100, 101, 102, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
124, 125, 126, 127, 128, 129, 130, 131, 132, 133,
-1, 135, 136, 51, 52, -1, -1, 55, -1, 143,
144, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, 70, 71, 72, 73, 74, 75, 76, 77,
-1, -1, 80, 81, -1, -1, -1, -1, 86, 87,
88, 89, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, 100, 101, 102, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, 124, 125, 126, 127,
128, 129, 130, 131, 132, 133, -1, 135, 136, 51,
52, -1, -1, 55, -1, 143, 144, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, 70, 71,
72, 73, 74, 75, 76, 77, -1, -1, 80, 81,
-1, -1, -1, -1, 86, 87, 88, 89, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, 100, 101,
102, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, 44, -1, -1, -1, -1, -1,
-1, -1, 124, 125, 126, 127, 128, 129, 130, 131,
132, 133, -1, 135, 136, -1, -1, -1, -1, -1,
-1, 143, 72, 73, 74, 75, 76, 77, 78, 79,
80, 81, 82, 83, -1, -1, -1, -1, 88, 89,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, 101, -1, -1, -1, -1, 44, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, 122, -1, 124, 125, 126, 127, 128, 129,
130, 131, 132, 133, 72, 73, 74, 75, 76, 77,
78, 79, 80, 81, 82, 83, -1, -1, -1, -1,
88, 89, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, 101, -1, -1, -1, -1, 44, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, 122, -1, 124, 125, 126, 127,
128, 129, 130, 131, 132, 133, 72, 73, 74, 75,
76, 77, 78, 79, 80, 81, 82, 83, -1, -1,
-1, -1, 88, 89, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, 101, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, 122, -1, 124, 125,
126, 127, 128, 129, 130, 131, 132, 133, 72, 73,
74, 75, 76, 77, 78, 79, 80, 81, 82, 83,
-1, -1, -1, -1, 88, 89, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, 101, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, 122, -1,
124, 125, 126, 127, 128, 129, 130, 131, 132, 133,
-1, -1, -1, -1, -1, -1, -1, -1, 142, 72,
73, 74, 75, 76, 77, 78, 79, 80, 81, 82,
83, -1, -1, -1, -1, 88, 89, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, 101, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, 122,
-1, 124, 125, 126, 127, 128, 129, 130, 131, 132,
133, -1, -1, -1, -1, -1, -1, -1, -1, 142,
72, 73, 74, 75, 76, 77, 78, 79, 80, 81,
82, 83, -1, -1, -1, -1, 88, 89, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, 101,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
122, -1, 124, 125, 126, 127, 128, 129, 130, 131,
132, 133, -1, -1, -1, -1, -1, -1, -1, -1,
142, 72, 73, 74, 75, 76, 77, 78, 79, 80,
81, 82, 83, -1, -1, -1, -1, 88, 89, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
101, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, 122, -1, 124, 125, 126, 127, 128, 129, 130,
131, 132, 133, -1, -1, -1, -1, -1, -1, -1,
-1, 142, 72, 73, 74, 75, 76, 77, 78, 79,
80, 81, 82, 83, -1, -1, -1, -1, 88, 89,
-1, -1, -1, 93, -1, -1, -1, -1, -1, -1,
-1, 101, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, 122, -1, 124, 125, 126, 127, 128, 129,
130, 131, 132, 133, 72, 73, 74, 75, 76, 77,
78, 79, 80, 81, 82, 83, -1, -1, -1, -1,
88, 89, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, 101, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, 122, -1, 124, 125, 126, 127,
128, 129, 130, 131, 132, 133, 72, 73, 74, 75,
76, 77, 78, 79, 80, 81, 82, 83, -1, -1,
-1, -1, 88, 89, 72, 73, 74, 75, 76, 77,
-1, -1, 80, 81, -1, 101, -1, -1, -1, -1,
88, 89, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, 101, -1, -1, -1, -1, 124, 125,
126, 127, 128, 129, 130, 131, 132, 133, -1, -1,
-1, -1, -1, -1, -1, -1, 124, 125, 126, 127,
128, 129, 130, 131, 132, 133
};
/* YYSTOS[STATE-NUM] -- The symbol kind of the accessing symbol of
state STATE-NUM. */
static const yytype_int16 yystos[] =
{
0, 150, 151, 0, 1, 3, 4, 5, 6, 7,
8, 9, 10, 11, 12, 19, 21, 22, 23, 24,
30, 31, 32, 33, 34, 35, 36, 39, 45, 46,
47, 48, 49, 50, 51, 52, 53, 54, 55, 56,
58, 59, 60, 63, 66, 67, 69, 70, 71, 84,
85, 91, 94, 95, 97, 98, 100, 104, 106, 107,
108, 110, 111, 112, 114, 134, 135, 136, 152, 153,
154, 159, 161, 163, 166, 167, 170, 171, 174, 175,
177, 178, 179, 181, 182, 191, 205, 222, 243, 244,
275, 276, 277, 281, 282, 283, 289, 290, 291, 293,
294, 295, 296, 297, 298, 334, 347, 154, 21, 22,
30, 31, 32, 39, 51, 55, 69, 88, 91, 94,
134, 166, 167, 183, 184, 205, 222, 295, 298, 334,
184, 3, 4, 5, 6, 7, 8, 9, 10, 11,
12, 13, 14, 15, 16, 17, 18, 19, 20, 21,
22, 23, 24, 25, 26, 30, 31, 32, 33, 34,
35, 36, 37, 38, 39, 45, 46, 47, 48, 49,
50, 51, 52, 55, 70, 71, 72, 73, 74, 75,
76, 77, 80, 81, 86, 87, 88, 89, 100, 101,
102, 124, 125, 126, 127, 128, 129, 130, 131, 132,
133, 135, 136, 143, 144, 185, 189, 190, 297, 329,
206, 91, 163, 166, 167, 169, 182, 222, 295, 296,
298, 169, 212, 214, 69, 91, 175, 182, 222, 227,
295, 298, 33, 34, 35, 36, 48, 49, 50, 51,
55, 106, 185, 186, 187, 291, 115, 118, 119, 146,
148, 169, 285, 286, 287, 340, 344, 345, 346, 51,
69, 100, 102, 103, 135, 174, 191, 197, 200, 203,
277, 332, 333, 197, 197, 144, 194, 195, 198, 199,
347, 194, 198, 144, 341, 186, 155, 138, 191, 222,
191, 191, 191, 55, 1, 94, 157, 158, 159, 176,
177, 347, 207, 209, 192, 203, 332, 347, 191, 331,
332, 347, 91, 142, 181, 222, 295, 298, 210, 53,
54, 56, 63, 69, 107, 185, 292, 63, 64, 65,
116, 117, 278, 279, 61, 278, 62, 278, 63, 278,
63, 278, 58, 59, 170, 191, 191, 340, 346, 40,
41, 42, 43, 44, 37, 38, 51, 53, 54, 55,
56, 69, 83, 94, 100, 101, 102, 103, 128, 131,
144, 301, 302, 303, 304, 305, 308, 309, 310, 311,
313, 314, 315, 316, 318, 319, 320, 323, 324, 325,
326, 327, 347, 301, 303, 28, 241, 121, 142, 94,
100, 178, 121, 25, 72, 73, 74, 75, 76, 77,
78, 79, 80, 81, 82, 83, 88, 89, 93, 101,
122, 124, 125, 126, 127, 128, 129, 130, 131, 132,
133, 90, 105, 140, 147, 338, 90, 338, 339, 26,
138, 245, 277, 92, 92, 194, 198, 245, 163, 51,
55, 183, 58, 59, 302, 125, 299, 90, 140, 338,
221, 330, 90, 147, 337, 156, 157, 55, 301, 301,
16, 223, 344, 121, 90, 140, 338, 92, 92, 223,
169, 169, 55, 90, 140, 338, 25, 107, 142, 288,
340, 115, 287, 20, 248, 344, 57, 57, 191, 191,
191, 93, 142, 201, 202, 347, 57, 201, 202, 85,
196, 197, 203, 332, 347, 197, 163, 340, 342, 163,
345, 160, 138, 157, 90, 338, 92, 159, 176, 145,
340, 346, 342, 159, 342, 141, 202, 343, 346, 202,
343, 139, 343, 55, 178, 179, 180, 142, 90, 140,
338, 144, 239, 313, 318, 63, 278, 280, 284, 285,
63, 279, 61, 62, 63, 63, 101, 101, 154, 169,
169, 169, 169, 159, 163, 163, 57, 121, 57, 344,
317, 85, 313, 318, 121, 156, 191, 142, 328, 347,
51, 142, 328, 344, 142, 312, 191, 142, 312, 51,
142, 312, 51, 121, 156, 242, 100, 170, 191, 203,
204, 176, 142, 181, 142, 161, 162, 170, 182, 191,
193, 204, 222, 298, 165, 191, 191, 191, 191, 191,
191, 191, 191, 191, 191, 191, 191, 191, 191, 164,
191, 191, 191, 191, 191, 191, 191, 191, 191, 191,
191, 191, 51, 52, 55, 189, 194, 335, 336, 196,
203, 51, 52, 55, 189, 194, 335, 51, 55, 335,
247, 246, 162, 191, 193, 162, 193, 99, 172, 219,
300, 218, 51, 55, 183, 335, 196, 335, 156, 163,
168, 15, 13, 271, 347, 121, 121, 157, 16, 51,
55, 196, 51, 55, 157, 27, 224, 344, 224, 51,
55, 196, 51, 55, 216, 188, 157, 25, 248, 191,
203, 15, 191, 191, 191, 341, 100, 191, 200, 332,
191, 333, 342, 145, 340, 202, 202, 342, 145, 186,
152, 139, 193, 342, 159, 208, 332, 178, 180, 51,
55, 196, 51, 55, 313, 211, 142, 63, 157, 285,
191, 191, 51, 69, 100, 228, 318, 342, 342, 142,
174, 191, 15, 51, 69, 305, 310, 327, 85, 311,
316, 323, 325, 318, 320, 325, 51, 318, 174, 191,
15, 79, 126, 233, 234, 347, 191, 202, 342, 180,
142, 44, 121, 44, 90, 140, 338, 34, 35, 36,
51, 55, 63, 91, 97, 98, 100, 102, 127, 254,
255, 257, 258, 259, 260, 263, 264, 265, 267, 268,
269, 270, 290, 294, 254, 341, 92, 92, 194, 198,
141, 202, 92, 92, 195, 198, 195, 198, 233, 233,
173, 344, 169, 156, 141, 15, 342, 185, 191, 204,
272, 347, 18, 226, 347, 17, 225, 226, 92, 92,
141, 92, 92, 226, 213, 215, 141, 169, 186, 139,
254, 15, 202, 223, 191, 201, 85, 332, 139, 342,
343, 141, 236, 341, 29, 113, 240, 139, 142, 315,
342, 142, 85, 44, 44, 328, 344, 142, 312, 142,
312, 142, 312, 142, 312, 312, 44, 44, 230, 232,
235, 304, 306, 307, 310, 318, 319, 321, 322, 325,
327, 156, 100, 191, 180, 159, 191, 51, 55, 196,
51, 55, 57, 55, 51, 141, 257, 261, 262, 263,
290, 51, 139, 266, 267, 269, 290, 51, 34, 51,
51, 257, 263, 142, 93, 126, 142, 90, 142, 93,
57, 123, 162, 193, 170, 193, 172, 92, 162, 193,
162, 193, 172, 245, 241, 156, 157, 233, 220, 344,
15, 93, 273, 347, 157, 14, 274, 347, 169, 15,
92, 15, 157, 157, 224, 40, 41, 223, 191, 157,
342, 202, 145, 146, 156, 157, 229, 142, 100, 342,
191, 191, 318, 325, 318, 318, 191, 191, 236, 236,
91, 222, 142, 328, 328, 142, 231, 222, 142, 231,
142, 231, 15, 191, 141, 257, 141, 142, 142, 139,
142, 142, 142, 51, 259, 256, 257, 55, 268, 269,
257, 191, 191, 162, 193, 15, 139, 157, 156, 91,
182, 222, 295, 298, 223, 157, 223, 15, 15, 217,
169, 169, 157, 226, 248, 249, 51, 237, 238, 314,
15, 139, 318, 318, 142, 315, 312, 142, 312, 312,
312, 126, 126, 55, 90, 306, 310, 142, 230, 231,
322, 325, 318, 321, 325, 318, 257, 263, 262, 269,
256, 142, 139, 15, 55, 90, 140, 338, 157, 157,
157, 223, 223, 25, 226, 250, 142, 341, 142, 318,
142, 318, 51, 55, 328, 142, 231, 142, 231, 142,
231, 142, 231, 231, 142, 142, 257, 51, 55, 196,
51, 55, 271, 225, 15, 157, 157, 254, 15, 238,
318, 312, 318, 325, 318, 318, 262, 263, 141, 250,
250, 251, 252, 253, 231, 142, 231, 231, 231, 142,
15, 15, 223, 40, 41, 318, 157, 169, 169, 231,
250, 223, 223, 157, 157, 250, 250
};
/* YYR1[RULE-NUM] -- Symbol kind of the left-hand side of rule RULE-NUM. */
static const yytype_int16 yyr1[] =
{
0, 149, 151, 150, 152, 153, 153, 153, 153, 154,
155, 154, 156, 157, 158, 158, 158, 158, 160, 159,
159, 159, 159, 159, 159, 159, 159, 159, 159, 159,
159, 159, 159, 161, 161, 161, 161, 161, 161, 161,
161, 161, 161, 161, 161, 162, 162, 162, 163, 163,
163, 163, 163, 164, 163, 165, 163, 163, 166, 168,
167, 169, 170, 170, 171, 171, 173, 172, 174, 174,
174, 174, 174, 174, 174, 174, 174, 174, 174, 175,
175, 176, 176, 177, 177, 177, 177, 177, 177, 177,
177, 177, 177, 178, 178, 179, 179, 180, 180, 181,
181, 181, 181, 181, 181, 181, 181, 182, 182, 182,
182, 182, 182, 182, 182, 182, 183, 183, 184, 184,
184, 185, 185, 185, 185, 185, 186, 186, 187, 188,
187, 189, 189, 189, 189, 189, 189, 189, 189, 189,
189, 189, 189, 189, 189, 189, 189, 189, 189, 189,
189, 189, 189, 189, 189, 189, 189, 189, 189, 189,
189, 190, 190, 190, 190, 190, 190, 190, 190, 190,
190, 190, 190, 190, 190, 190, 190, 190, 190, 190,
190, 190, 190, 190, 190, 190, 190, 190, 190, 190,
190, 190, 190, 190, 190, 190, 190, 190, 190, 190,
190, 191, 191, 191, 191, 191, 191, 191, 191, 191,
191, 191, 191, 191, 191, 191, 191, 191, 191, 191,
191, 191, 191, 191, 191, 191, 191, 191, 191, 191,
191, 191, 191, 191, 191, 191, 191, 191, 191, 191,
191, 191, 191, 191, 191, 191, 191, 191, 191, 191,
191, 191, 192, 192, 192, 192, 193, 193, 194, 194,
194, 195, 195, 196, 196, 196, 196, 196, 197, 197,
197, 197, 197, 199, 198, 200, 200, 201, 201, 202,
203, 203, 203, 203, 203, 203, 204, 204, 204, 205,
205, 205, 205, 205, 205, 205, 205, 206, 205, 207,
208, 205, 209, 205, 205, 205, 205, 205, 205, 205,
205, 205, 205, 205, 205, 205, 210, 211, 205, 205,
205, 212, 213, 205, 214, 215, 205, 205, 205, 205,
205, 205, 216, 217, 205, 218, 205, 219, 220, 205,
221, 205, 205, 205, 205, 205, 205, 205, 222, 223,
223, 223, 224, 224, 225, 225, 226, 226, 227, 227,
228, 228, 228, 228, 228, 228, 228, 228, 229, 228,
230, 230, 230, 230, 231, 231, 232, 232, 232, 232,
232, 232, 232, 232, 232, 232, 232, 232, 232, 232,
232, 233, 233, 235, 234, 234, 234, 236, 236, 237,
237, 238, 238, 239, 239, 240, 240, 242, 241, 243,
243, 243, 243, 244, 244, 244, 244, 244, 244, 244,
244, 244, 246, 245, 247, 245, 248, 249, 249, 250,
251, 250, 252, 250, 253, 250, 254, 254, 254, 254,
254, 254, 254, 254, 254, 255, 255, 256, 256, 257,
257, 258, 258, 259, 259, 259, 259, 259, 259, 259,
259, 259, 259, 259, 260, 260, 261, 261, 261, 261,
261, 261, 262, 262, 263, 263, 264, 264, 264, 265,
265, 266, 266, 266, 267, 267, 268, 268, 268, 269,
269, 269, 270, 271, 271, 272, 272, 272, 273, 273,
274, 274, 275, 275, 275, 275, 276, 276, 277, 277,
277, 277, 278, 278, 279, 280, 279, 279, 279, 281,
281, 282, 282, 283, 284, 284, 285, 285, 286, 286,
287, 288, 287, 289, 289, 290, 290, 290, 291, 292,
292, 292, 292, 292, 292, 293, 293, 294, 294, 294,
294, 295, 295, 295, 295, 295, 296, 296, 297, 297,
297, 297, 297, 297, 297, 297, 297, 298, 298, 299,
300, 299, 301, 301, 302, 302, 302, 303, 303, 303,
303, 304, 304, 305, 305, 306, 306, 307, 307, 308,
308, 309, 309, 310, 310, 311, 311, 311, 311, 312,
312, 313, 313, 313, 313, 313, 313, 313, 313, 313,
313, 313, 313, 313, 313, 313, 314, 314, 314, 314,
314, 315, 315, 316, 317, 316, 318, 318, 319, 320,
321, 322, 322, 323, 323, 324, 324, 325, 325, 326,
326, 327, 327, 328, 328, 329, 330, 329, 331, 331,
332, 332, 333, 333, 333, 333, 333, 333, 333, 333,
334, 334, 334, 335, 335, 335, 335, 336, 336, 336,
337, 337, 338, 338, 339, 339, 340, 340, 341, 341,
342, 343, 343, 343, 344, 344, 345, 345, 346, 346,
347
};
/* YYR2[RULE-NUM] -- Number of symbols on the right-hand side of rule RULE-NUM. */
static const yytype_int8 yyr2[] =
{
0, 2, 0, 2, 2, 1, 1, 3, 2, 1,
0, 5, 4, 2, 1, 1, 3, 2, 0, 4,
2, 3, 3, 3, 3, 3, 4, 1, 3, 3,
3, 3, 1, 3, 3, 6, 5, 5, 5, 5,
4, 6, 4, 6, 3, 1, 3, 1, 1, 3,
3, 3, 2, 0, 4, 0, 4, 1, 2, 0,
5, 1, 1, 1, 1, 4, 0, 5, 2, 3,
4, 5, 4, 5, 2, 2, 2, 2, 2, 1,
3, 1, 3, 1, 2, 3, 5, 2, 4, 2,
4, 1, 3, 1, 3, 2, 3, 1, 2, 1,
4, 3, 3, 3, 3, 2, 1, 1, 4, 3,
3, 3, 3, 2, 1, 1, 1, 1, 2, 1,
3, 1, 1, 1, 1, 1, 1, 1, 1, 0,
4, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 3, 3, 6, 5, 5, 5, 5, 4, 3,
3, 2, 2, 3, 2, 2, 3, 3, 3, 3,
3, 3, 4, 4, 2, 2, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 2,
2, 3, 3, 3, 3, 6, 6, 4, 6, 4,
6, 1, 1, 2, 4, 2, 1, 3, 3, 5,
3, 1, 1, 1, 2, 2, 4, 2, 1, 2,
2, 4, 1, 0, 2, 2, 1, 2, 1, 2,
1, 1, 2, 3, 3, 4, 3, 4, 2, 1,
1, 1, 1, 1, 1, 1, 1, 0, 4, 0,
0, 5, 0, 3, 3, 3, 2, 3, 3, 1,
2, 4, 3, 2, 1, 2, 0, 0, 5, 6,
6, 0, 0, 7, 0, 0, 7, 5, 4, 9,
11, 11, 0, 0, 9, 0, 6, 0, 0, 8,
0, 5, 4, 4, 1, 1, 1, 1, 1, 1,
1, 2, 1, 1, 1, 5, 1, 2, 1, 1,
1, 4, 6, 3, 5, 2, 4, 1, 0, 4,
4, 2, 2, 1, 2, 0, 6, 8, 4, 6,
4, 3, 6, 2, 4, 6, 2, 4, 2, 4,
1, 1, 1, 0, 4, 1, 4, 1, 4, 1,
3, 1, 1, 4, 1, 3, 3, 0, 5, 2,
4, 5, 5, 2, 4, 4, 3, 3, 3, 2,
1, 4, 0, 5, 0, 5, 5, 1, 1, 1,
0, 6, 0, 8, 0, 8, 1, 2, 2, 4,
1, 3, 1, 3, 1, 2, 3, 1, 3, 1,
3, 1, 3, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 2, 3, 2, 1, 3, 5, 1,
3, 5, 1, 3, 2, 1, 1, 3, 2, 3,
2, 1, 3, 1, 1, 3, 3, 2, 3, 2,
2, 1, 1, 6, 1, 1, 1, 1, 2, 1,
2, 1, 1, 1, 1, 1, 1, 2, 1, 1,
2, 3, 1, 2, 1, 0, 4, 1, 2, 2,
3, 2, 3, 1, 1, 2, 1, 2, 1, 2,
1, 0, 4, 2, 3, 1, 4, 2, 2, 1,
1, 1, 1, 1, 2, 2, 3, 1, 1, 2,
2, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 0,
0, 4, 1, 1, 3, 5, 3, 1, 2, 4,
2, 2, 2, 2, 1, 2, 1, 1, 3, 1,
3, 1, 1, 2, 1, 4, 2, 2, 1, 2,
0, 6, 8, 4, 6, 4, 6, 2, 4, 6,
2, 4, 2, 4, 1, 0, 1, 1, 1, 1,
1, 1, 1, 1, 0, 4, 1, 3, 2, 2,
2, 1, 3, 1, 3, 1, 1, 2, 1, 1,
1, 2, 1, 2, 1, 1, 0, 4, 1, 2,
1, 3, 3, 3, 2, 2, 3, 3, 2, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 0, 1, 0, 2,
2, 0, 1, 1, 1, 1, 1, 1, 1, 2,
0
};
enum { YYENOMEM = -2 };
#define yyerrok (yyerrstatus = 0)
#define yyclearin (yychar = YYEMPTY)
#define YYACCEPT goto yyacceptlab
#define YYABORT goto yyabortlab
#define YYERROR goto yyerrorlab
#define YYNOMEM goto yyexhaustedlab
#define YYRECOVERING() (!!yyerrstatus)
#define YYBACKUP(Token, Value) \
do \
if (yychar == YYEMPTY) \
{ \
yychar = (Token); \
yylval = (Value); \
YYPOPSTACK (yylen); \
yystate = *yyssp; \
goto yybackup; \
} \
else \
{ \
yyerror (&yylloc, p, YY_("syntax error: cannot back up")); \
YYERROR; \
} \
while (0)
/* Backward compatibility with an undocumented macro.
Use YYerror or YYUNDEF. */
#define YYERRCODE YYUNDEF
/* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].
If N is 0, then set CURRENT to the empty location which ends
the previous symbol: RHS[0] (always defined). */
#ifndef YYLLOC_DEFAULT
# define YYLLOC_DEFAULT(Current, Rhs, N) \
do \
if (N) \
{ \
(Current).first_line = YYRHSLOC (Rhs, 1).first_line; \
(Current).first_column = YYRHSLOC (Rhs, 1).first_column; \
(Current).last_line = YYRHSLOC (Rhs, N).last_line; \
(Current).last_column = YYRHSLOC (Rhs, N).last_column; \
} \
else \
{ \
(Current).first_line = (Current).last_line = \
YYRHSLOC (Rhs, 0).last_line; \
(Current).first_column = (Current).last_column = \
YYRHSLOC (Rhs, 0).last_column; \
} \
while (0)
#endif
#define YYRHSLOC(Rhs, K) ((Rhs)[K])
/* Enable debugging if requested. */
#if YYDEBUG
# ifndef YYFPRINTF
# include <stdio.h> /* INFRINGES ON USER NAME SPACE */
# define YYFPRINTF fprintf
# endif
# define YYDPRINTF(Args) \
do { \
if (yydebug) \
YYFPRINTF Args; \
} while (0)
/* YYLOCATION_PRINT -- Print the location on the stream.
This macro was not mandated originally: define only if we know
we won't break user code: when these are the locations we know. */
# ifndef YYLOCATION_PRINT
# if defined YY_LOCATION_PRINT
/* Temporary convenience wrapper in case some people defined the
undocumented and private YY_LOCATION_PRINT macros. */
# define YYLOCATION_PRINT(File, Loc) YY_LOCATION_PRINT(File, *(Loc))
# elif defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL
/* Print *YYLOCP on YYO. Private, do not rely on its existence. */
YY_ATTRIBUTE_UNUSED
static int
yy_location_print_ (FILE *yyo, YYLTYPE const * const yylocp)
{
int res = 0;
int end_col = 0 != yylocp->last_column ? yylocp->last_column - 1 : 0;
if (0 <= yylocp->first_line)
{
res += YYFPRINTF (yyo, "%d", yylocp->first_line);
if (0 <= yylocp->first_column)
res += YYFPRINTF (yyo, ".%d", yylocp->first_column);
}
if (0 <= yylocp->last_line)
{
if (yylocp->first_line < yylocp->last_line)
{
res += YYFPRINTF (yyo, "-%d", yylocp->last_line);
if (0 <= end_col)
res += YYFPRINTF (yyo, ".%d", end_col);
}
else if (0 <= end_col && yylocp->first_column < end_col)
res += YYFPRINTF (yyo, "-%d", end_col);
}
return res;
}
# define YYLOCATION_PRINT yy_location_print_
/* Temporary convenience wrapper in case some people defined the
undocumented and private YY_LOCATION_PRINT macros. */
# define YY_LOCATION_PRINT(File, Loc) YYLOCATION_PRINT(File, &(Loc))
# else
# define YYLOCATION_PRINT(File, Loc) ((void) 0)
/* Temporary convenience wrapper in case some people defined the
undocumented and private YY_LOCATION_PRINT macros. */
# define YY_LOCATION_PRINT YYLOCATION_PRINT
# endif
# endif /* !defined YYLOCATION_PRINT */
# define YY_SYMBOL_PRINT(Title, Kind, Value, Location) \
do { \
if (yydebug) \
{ \
YYFPRINTF (stderr, "%s ", Title); \
yy_symbol_print (stderr, \
Kind, Value, Location, p); \
YYFPRINTF (stderr, "\n"); \
} \
} while (0)
/*-----------------------------------.
| Print this symbol's value on YYO. |
`-----------------------------------*/
static void
yy_symbol_value_print (FILE *yyo,
yysymbol_kind_t yykind, YYSTYPE const * const yyvaluep, YYLTYPE const * const yylocationp, parser_state *p)
{
FILE *yyoutput = yyo;
YY_USE (yyoutput);
YY_USE (yylocationp);
YY_USE (p);
if (!yyvaluep)
return;
YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
YY_USE (yykind);
YY_IGNORE_MAYBE_UNINITIALIZED_END
}
/*---------------------------.
| Print this symbol on YYO. |
`---------------------------*/
static void
yy_symbol_print (FILE *yyo,
yysymbol_kind_t yykind, YYSTYPE const * const yyvaluep, YYLTYPE const * const yylocationp, parser_state *p)
{
YYFPRINTF (yyo, "%s %s (",
yykind < YYNTOKENS ? "token" : "nterm", yysymbol_name (yykind));
YYLOCATION_PRINT (yyo, yylocationp);
YYFPRINTF (yyo, ": ");
yy_symbol_value_print (yyo, yykind, yyvaluep, yylocationp, p);
YYFPRINTF (yyo, ")");
}
/*------------------------------------------------------------------.
| yy_stack_print -- Print the state stack from its BOTTOM up to its |
| TOP (included). |
`------------------------------------------------------------------*/
static void
yy_stack_print (yy_state_t *yybottom, yy_state_t *yytop)
{
YYFPRINTF (stderr, "Stack now");
for (; yybottom <= yytop; yybottom++)
{
int yybot = *yybottom;
YYFPRINTF (stderr, " %d", yybot);
}
YYFPRINTF (stderr, "\n");
}
# define YY_STACK_PRINT(Bottom, Top) \
do { \
if (yydebug) \
yy_stack_print ((Bottom), (Top)); \
} while (0)
/*------------------------------------------------.
| Report that the YYRULE is going to be reduced. |
`------------------------------------------------*/
static void
yy_reduce_print (yy_state_t *yyssp, YYSTYPE *yyvsp, YYLTYPE *yylsp,
int yyrule, parser_state *p)
{
int yylno = yyrline[yyrule];
int yynrhs = yyr2[yyrule];
int yyi;
YYFPRINTF (stderr, "Reducing stack by rule %d (line %d):\n",
yyrule - 1, yylno);
/* The symbols being reduced. */
for (yyi = 0; yyi < yynrhs; yyi++)
{
YYFPRINTF (stderr, " $%d = ", yyi + 1);
yy_symbol_print (stderr,
YY_ACCESSING_SYMBOL (+yyssp[yyi + 1 - yynrhs]),
&yyvsp[(yyi + 1) - (yynrhs)],
&(yylsp[(yyi + 1) - (yynrhs)]), p);
YYFPRINTF (stderr, "\n");
}
}
# define YY_REDUCE_PRINT(Rule) \
do { \
if (yydebug) \
yy_reduce_print (yyssp, yyvsp, yylsp, Rule, p); \
} while (0)
/* Nonzero means print parse trace. It is left uninitialized so that
multiple parsers can coexist. */
int yydebug;
#else /* !YYDEBUG */
# define YYDPRINTF(Args) ((void) 0)
# define YY_SYMBOL_PRINT(Title, Kind, Value, Location)
# define YY_STACK_PRINT(Bottom, Top)
# define YY_REDUCE_PRINT(Rule)
#endif /* !YYDEBUG */
/* YYINITDEPTH -- initial size of the parser's stacks. */
#ifndef YYINITDEPTH
# define YYINITDEPTH 200
#endif
/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
if the built-in stack extension method is used).
Do not make this value too large; the results are undefined if
YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)
evaluated with infinite-precision integer arithmetic. */
#ifndef YYMAXDEPTH
# define YYMAXDEPTH 10000
#endif
/* Context of a parse error. */
typedef struct
{
yy_state_t *yyssp;
yysymbol_kind_t yytoken;
YYLTYPE *yylloc;
} yypcontext_t;
/* Put in YYARG at most YYARGN of the expected tokens given the
current YYCTX, and return the number of tokens stored in YYARG. If
YYARG is null, return the number of expected tokens (guaranteed to
be less than YYNTOKENS). Return YYENOMEM on memory exhaustion.
Return 0 if there are more than YYARGN expected tokens, yet fill
YYARG up to YYARGN. */
static int
yypcontext_expected_tokens (const yypcontext_t *yyctx,
yysymbol_kind_t yyarg[], int yyargn)
{
/* Actual size of YYARG. */
int yycount = 0;
int yyn = yypact[+*yyctx->yyssp];
if (!yypact_value_is_default (yyn))
{
/* Start YYX at -YYN if negative to avoid negative indexes in
YYCHECK. In other words, skip the first -YYN actions for
this state because they are default actions. */
int yyxbegin = yyn < 0 ? -yyn : 0;
/* Stay within bounds of both yycheck and yytname. */
int yychecklim = YYLAST - yyn + 1;
int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
int yyx;
for (yyx = yyxbegin; yyx < yyxend; ++yyx)
if (yycheck[yyx + yyn] == yyx && yyx != YYSYMBOL_YYerror
&& !yytable_value_is_error (yytable[yyx + yyn]))
{
if (!yyarg)
++yycount;
else if (yycount == yyargn)
return 0;
else
yyarg[yycount++] = YY_CAST (yysymbol_kind_t, yyx);
}
}
if (yyarg && yycount == 0 && 0 < yyargn)
yyarg[0] = YYSYMBOL_YYEMPTY;
return yycount;
}
#ifndef yystrlen
# if defined __GLIBC__ && defined _STRING_H
# define yystrlen(S) (YY_CAST (YYPTRDIFF_T, strlen (S)))
# else
/* Return the length of YYSTR. */
static YYPTRDIFF_T
yystrlen (const char *yystr)
{
YYPTRDIFF_T yylen;
for (yylen = 0; yystr[yylen]; yylen++)
continue;
return yylen;
}
# endif
#endif
#ifndef yystpcpy
# if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
# define yystpcpy stpcpy
# else
/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
YYDEST. */
static char *
yystpcpy (char *yydest, const char *yysrc)
{
char *yyd = yydest;
const char *yys = yysrc;
while ((*yyd++ = *yys++) != '\0')
continue;
return yyd - 1;
}
# endif
#endif
#ifndef yytnamerr
/* Copy to YYRES the contents of YYSTR after stripping away unnecessary
quotes and backslashes, so that it's suitable for yyerror. The
heuristic is that double-quoting is unnecessary unless the string
contains an apostrophe, a comma, or backslash (other than
backslash-backslash). YYSTR is taken from yytname. If YYRES is
null, do not copy; instead, return the length of what the result
would have been. */
static YYPTRDIFF_T
yytnamerr (char *yyres, const char *yystr)
{
if (*yystr == '"')
{
YYPTRDIFF_T yyn = 0;
char const *yyp = yystr;
for (;;)
switch (*++yyp)
{
case '\'':
case ',':
goto do_not_strip_quotes;
case '\\':
if (*++yyp != '\\')
goto do_not_strip_quotes;
else
goto append;
append:
default:
if (yyres)
yyres[yyn] = *yyp;
yyn++;
break;
case '"':
if (yyres)
yyres[yyn] = '\0';
return yyn;
}
do_not_strip_quotes: ;
}
if (yyres)
return yystpcpy (yyres, yystr) - yyres;
else
return yystrlen (yystr);
}
#endif
static int
yy_syntax_error_arguments (const yypcontext_t *yyctx,
yysymbol_kind_t yyarg[], int yyargn)
{
/* Actual size of YYARG. */
int yycount = 0;
/* There are many possibilities here to consider:
- If this state is a consistent state with a default action, then
the only way this function was invoked is if the default action
is an error action. In that case, don't check for expected
tokens because there are none.
- The only way there can be no lookahead present (in yychar) is if
this state is a consistent state with a default action. Thus,
detecting the absence of a lookahead is sufficient to determine
that there is no unexpected or expected token to report. In that
case, just report a simple "syntax error".
- Don't assume there isn't a lookahead just because this state is a
consistent state with a default action. There might have been a
previous inconsistent state, consistent state with a non-default
action, or user semantic action that manipulated yychar.
- Of course, the expected token list depends on states to have
correct lookahead information, and it depends on the parser not
to perform extra reductions after fetching a lookahead from the
scanner and before detecting a syntax error. Thus, state merging
(from LALR or IELR) and default reductions corrupt the expected
token list. However, the list is correct for canonical LR with
one exception: it will still contain any token that will not be
accepted due to an error action in a later state.
*/
if (yyctx->yytoken != YYSYMBOL_YYEMPTY)
{
int yyn;
if (yyarg)
yyarg[yycount] = yyctx->yytoken;
++yycount;
yyn = yypcontext_expected_tokens (yyctx,
yyarg ? yyarg + 1 : yyarg, yyargn - 1);
if (yyn == YYENOMEM)
return YYENOMEM;
else
yycount += yyn;
}
return yycount;
}
/* Copy into *YYMSG, which is of size *YYMSG_ALLOC, an error message
about the unexpected token YYTOKEN for the state stack whose top is
YYSSP.
Return 0 if *YYMSG was successfully written. Return -1 if *YYMSG is
not large enough to hold the message. In that case, also set
*YYMSG_ALLOC to the required number of bytes. Return YYENOMEM if the
required number of bytes is too large to store. */
static int
yysyntax_error (YYPTRDIFF_T *yymsg_alloc, char **yymsg,
const yypcontext_t *yyctx)
{
enum { YYARGS_MAX = 5 };
/* Internationalized format string. */
const char *yyformat = YY_NULLPTR;
/* Arguments of yyformat: reported tokens (one for the "unexpected",
one per "expected"). */
yysymbol_kind_t yyarg[YYARGS_MAX];
/* Cumulated lengths of YYARG. */
YYPTRDIFF_T yysize = 0;
/* Actual size of YYARG. */
int yycount = yy_syntax_error_arguments (yyctx, yyarg, YYARGS_MAX);
if (yycount == YYENOMEM)
return YYENOMEM;
switch (yycount)
{
#define YYCASE_(N, S) \
case N: \
yyformat = S; \
break
default: /* Avoid compiler warnings. */
YYCASE_(0, YY_("syntax error"));
YYCASE_(1, YY_("syntax error, unexpected %s"));
YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s"));
YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s"));
YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s"));
YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s"));
#undef YYCASE_
}
/* Compute error message size. Don't count the "%s"s, but reserve
room for the terminator. */
yysize = yystrlen (yyformat) - 2 * yycount + 1;
{
int yyi;
for (yyi = 0; yyi < yycount; ++yyi)
{
YYPTRDIFF_T yysize1
= yysize + yytnamerr (YY_NULLPTR, yytname[yyarg[yyi]]);
if (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)
yysize = yysize1;
else
return YYENOMEM;
}
}
if (*yymsg_alloc < yysize)
{
*yymsg_alloc = 2 * yysize;
if (! (yysize <= *yymsg_alloc
&& *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM))
*yymsg_alloc = YYSTACK_ALLOC_MAXIMUM;
return -1;
}
/* Avoid sprintf, as that infringes on the user's name space.
Don't have undefined behavior even if the translation
produced a string with the wrong number of "%s"s. */
{
char *yyp = *yymsg;
int yyi = 0;
while ((*yyp = *yyformat) != '\0')
if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount)
{
yyp += yytnamerr (yyp, yytname[yyarg[yyi++]]);
yyformat += 2;
}
else
{
++yyp;
++yyformat;
}
}
return 0;
}
/*-----------------------------------------------.
| Release the memory associated to this symbol. |
`-----------------------------------------------*/
static void
yydestruct (const char *yymsg,
yysymbol_kind_t yykind, YYSTYPE *yyvaluep, YYLTYPE *yylocationp, parser_state *p)
{
YY_USE (yyvaluep);
YY_USE (yylocationp);
YY_USE (p);
if (!yymsg)
yymsg = "Deleting";
YY_SYMBOL_PRINT (yymsg, yykind, yyvaluep, yylocationp);
YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
YY_USE (yykind);
YY_IGNORE_MAYBE_UNINITIALIZED_END
}
/*----------.
| yyparse. |
`----------*/
int
yyparse (parser_state *p)
{
/* Lookahead token kind. */
int yychar;
/* The semantic value of the lookahead symbol. */
/* Default value used for initialization, for pacifying older GCCs
or non-GCC compilers. */
YY_INITIAL_VALUE (static YYSTYPE yyval_default;)
YYSTYPE yylval YY_INITIAL_VALUE (= yyval_default);
/* Location data for the lookahead symbol. */
static YYLTYPE yyloc_default
# if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL
= { 1, 1, 1, 1 }
# endif
;
YYLTYPE yylloc = yyloc_default;
/* Number of syntax errors so far. */
int yynerrs = 0;
yy_state_fast_t yystate = 0;
/* Number of tokens to shift before error messages enabled. */
int yyerrstatus = 0;
/* Refer to the stacks through separate pointers, to allow yyoverflow
to reallocate them elsewhere. */
/* Their size. */
YYPTRDIFF_T yystacksize = YYINITDEPTH;
/* The state stack: array, bottom, top. */
yy_state_t yyssa[YYINITDEPTH];
yy_state_t *yyss = yyssa;
yy_state_t *yyssp = yyss;
/* The semantic value stack: array, bottom, top. */
YYSTYPE yyvsa[YYINITDEPTH];
YYSTYPE *yyvs = yyvsa;
YYSTYPE *yyvsp = yyvs;
/* The location stack: array, bottom, top. */
YYLTYPE yylsa[YYINITDEPTH];
YYLTYPE *yyls = yylsa;
YYLTYPE *yylsp = yyls;
int yyn;
/* The return value of yyparse. */
int yyresult;
/* Lookahead symbol kind. */
yysymbol_kind_t yytoken = YYSYMBOL_YYEMPTY;
/* The variables used to return semantic value and location from the
action routines. */
YYSTYPE yyval;
YYLTYPE yyloc;
/* The locations where the error started and ended. */
YYLTYPE yyerror_range[3];
/* Buffer for error messages, and its allocated size. */
char yymsgbuf[128];
char *yymsg = yymsgbuf;
YYPTRDIFF_T yymsg_alloc = sizeof yymsgbuf;
#define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N), yylsp -= (N))
/* The number of symbols on the RHS of the reduced rule.
Keep to zero when no symbol should be popped. */
int yylen = 0;
YYDPRINTF ((stderr, "Starting parse\n"));
yychar = YYEMPTY; /* Cause a token to be read. */
yylsp[0] = yylloc;
goto yysetstate;
/*------------------------------------------------------------.
| yynewstate -- push a new state, which is found in yystate. |
`------------------------------------------------------------*/
yynewstate:
/* In all cases, when you get here, the value and location stacks
have just been pushed. So pushing a state here evens the stacks. */
yyssp++;
/*--------------------------------------------------------------------.
| yysetstate -- set current state (the top of the stack) to yystate. |
`--------------------------------------------------------------------*/
yysetstate:
YYDPRINTF ((stderr, "Entering state %d\n", yystate));
YY_ASSERT (0 <= yystate && yystate < YYNSTATES);
YY_IGNORE_USELESS_CAST_BEGIN
*yyssp = YY_CAST (yy_state_t, yystate);
YY_IGNORE_USELESS_CAST_END
YY_STACK_PRINT (yyss, yyssp);
if (yyss + yystacksize - 1 <= yyssp)
#if !defined yyoverflow && !defined YYSTACK_RELOCATE
YYNOMEM;
#else
{
/* Get the current used size of the three stacks, in elements. */
YYPTRDIFF_T yysize = yyssp - yyss + 1;
# if defined yyoverflow
{
/* Give user a chance to reallocate the stack. Use copies of
these so that the &'s don't force the real ones into
memory. */
yy_state_t *yyss1 = yyss;
YYSTYPE *yyvs1 = yyvs;
YYLTYPE *yyls1 = yyls;
/* Each stack pointer address is followed by the size of the
data in use in that stack, in bytes. This used to be a
conditional around just the two extra args, but that might
be undefined if yyoverflow is a macro. */
yyoverflow (YY_("memory exhausted"),
&yyss1, yysize * YYSIZEOF (*yyssp),
&yyvs1, yysize * YYSIZEOF (*yyvsp),
&yyls1, yysize * YYSIZEOF (*yylsp),
&yystacksize);
yyss = yyss1;
yyvs = yyvs1;
yyls = yyls1;
}
# else /* defined YYSTACK_RELOCATE */
/* Extend the stack our own way. */
if (YYMAXDEPTH <= yystacksize)
YYNOMEM;
yystacksize *= 2;
if (YYMAXDEPTH < yystacksize)
yystacksize = YYMAXDEPTH;
{
yy_state_t *yyss1 = yyss;
union yyalloc *yyptr =
YY_CAST (union yyalloc *,
YYSTACK_ALLOC (YY_CAST (YYSIZE_T, YYSTACK_BYTES (yystacksize))));
if (! yyptr)
YYNOMEM;
YYSTACK_RELOCATE (yyss_alloc, yyss);
YYSTACK_RELOCATE (yyvs_alloc, yyvs);
YYSTACK_RELOCATE (yyls_alloc, yyls);
# undef YYSTACK_RELOCATE
if (yyss1 != yyssa)
YYSTACK_FREE (yyss1);
}
# endif
yyssp = yyss + yysize - 1;
yyvsp = yyvs + yysize - 1;
yylsp = yyls + yysize - 1;
YY_IGNORE_USELESS_CAST_BEGIN
YYDPRINTF ((stderr, "Stack size increased to %ld\n",
YY_CAST (long, yystacksize)));
YY_IGNORE_USELESS_CAST_END
if (yyss + yystacksize - 1 <= yyssp)
YYABORT;
}
#endif /* !defined yyoverflow && !defined YYSTACK_RELOCATE */
if (yystate == YYFINAL)
YYACCEPT;
goto yybackup;
/*-----------.
| yybackup. |
`-----------*/
yybackup:
/* Do appropriate processing given the current state. Read a
lookahead token if we need one and don't already have one. */
/* First try to decide what to do without reference to lookahead token. */
yyn = yypact[yystate];
if (yypact_value_is_default (yyn))
goto yydefault;
/* Not known => get a lookahead token if don't already have one. */
/* YYCHAR is either empty, or end-of-input, or a valid lookahead. */
if (yychar == YYEMPTY)
{
YYDPRINTF ((stderr, "Reading a token\n"));
yychar = yylex (&yylval, &yylloc, p);
}
if (yychar <= YYEOF)
{
yychar = YYEOF;
yytoken = YYSYMBOL_YYEOF;
YYDPRINTF ((stderr, "Now at end of input.\n"));
}
else if (yychar == YYerror)
{
/* The scanner already issued an error message, process directly
to error recovery. But do not keep the error token as
lookahead, it is too special and may lead us to an endless
loop in error recovery. */
yychar = YYUNDEF;
yytoken = YYSYMBOL_YYerror;
yyerror_range[1] = yylloc;
goto yyerrlab1;
}
else
{
yytoken = YYTRANSLATE (yychar);
YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
}
/* If the proper action on seeing token YYTOKEN is to reduce or to
detect an error, take that action. */
yyn += yytoken;
if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
goto yydefault;
yyn = yytable[yyn];
if (yyn <= 0)
{
if (yytable_value_is_error (yyn))
goto yyerrlab;
yyn = -yyn;
goto yyreduce;
}
/* Count tokens shifted since error; after three, turn off error
status. */
if (yyerrstatus)
yyerrstatus--;
/* Shift the lookahead token. */
YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
yystate = yyn;
YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
*++yyvsp = yylval;
YY_IGNORE_MAYBE_UNINITIALIZED_END
*++yylsp = yylloc;
/* Discard the shifted token. */
yychar = YYEMPTY;
goto yynewstate;
/*-----------------------------------------------------------.
| yydefault -- do the default action for the current state. |
`-----------------------------------------------------------*/
yydefault:
yyn = yydefact[yystate];
if (yyn == 0)
goto yyerrlab;
goto yyreduce;
/*-----------------------------.
| yyreduce -- do a reduction. |
`-----------------------------*/
yyreduce:
/* yyn is the number of a rule to reduce with. */
yylen = yyr2[yyn];
/* If YYLEN is nonzero, implement the default value of the action:
'$$ = $1'.
Otherwise, the following line sets YYVAL to garbage.
This behavior is undocumented and Bison
users should not rely upon it. Assigning to YYVAL
unconditionally makes the parser a bit smaller, and it avoids a
GCC warning that YYVAL may be used uninitialized. */
yyval = yyvsp[1-yylen];
/* Default location. */
YYLLOC_DEFAULT (yyloc, (yylsp - yylen), yylen);
yyerror_range[1] = yyloc;
YY_REDUCE_PRINT (yyn);
switch (yyn)
{
case 2: /* $@1: %empty */
#line 2179 "parse.y"
{
p->lstate = EXPR_BEG;
if (!p->locals) p->locals = cons(0,0);
}
#line 7416 "y.tab.c"
break;
case 3: /* program: $@1 top_compstmt */
#line 2184 "parse.y"
{
p->tree = new_scope(p, (yyvsp[0].nd));
}
#line 7424 "y.tab.c"
break;
case 4: /* top_compstmt: top_stmts opt_terms */
#line 2190 "parse.y"
{
(yyval.nd) = (yyvsp[-1].nd);
}
#line 7432 "y.tab.c"
break;
case 5: /* top_stmts: none */
#line 2196 "parse.y"
{
(yyval.nd) = new_stmts(p, 0);
}
#line 7440 "y.tab.c"
break;
case 6: /* top_stmts: top_stmt */
#line 2200 "parse.y"
{
(yyval.nd) = new_stmts(p, (yyvsp[0].nd));
}
#line 7448 "y.tab.c"
break;
case 7: /* top_stmts: top_stmts terms top_stmt */
#line 2204 "parse.y"
{
(yyval.nd) = stmts_push(p, (yyvsp[-2].nd), newline_node((yyvsp[0].nd)));
}
#line 7456 "y.tab.c"
break;
case 8: /* top_stmts: error top_stmt */
#line 2208 "parse.y"
{
(yyval.nd) = new_stmts(p, 0);
}
#line 7464 "y.tab.c"
break;
case 10: /* @2: %empty */
#line 2215 "parse.y"
{
(yyval.nd) = local_switch(p);
nvars_block(p);
}
#line 7473 "y.tab.c"
break;
case 11: /* top_stmt: "'BEGIN'" @2 '{' top_compstmt '}' */
#line 2220 "parse.y"
{
yyerror(&(yylsp[-4]), p, "BEGIN not supported");
local_resume(p, (yyvsp[-3].nd));
nvars_unnest(p);
(yyval.nd) = 0;
}
#line 7484 "y.tab.c"
break;
case 12: /* bodystmt: compstmt opt_rescue opt_else opt_ensure */
#line 2232 "parse.y"
{
if ((yyvsp[-2].nd)) {
(yyval.nd) = new_rescue(p, (yyvsp[-3].nd), (yyvsp[-2].nd), (yyvsp[-1].nd));
}
else if ((yyvsp[-1].nd)) {
yywarning(p, "else without rescue is useless");
(yyval.nd) = stmts_push(p, (yyvsp[-3].nd), (yyvsp[-1].nd));
}
else {
(yyval.nd) = (yyvsp[-3].nd);
}
if ((yyvsp[0].nd)) {
if ((yyval.nd)) {
(yyval.nd) = new_ensure(p, (yyval.nd), (yyvsp[0].nd));
}
else {
(yyval.nd) = push((yyvsp[0].nd), new_nil(p));
}
}
}
#line 7509 "y.tab.c"
break;
case 13: /* compstmt: stmts opt_terms */
#line 2255 "parse.y"
{
(yyval.nd) = (yyvsp[-1].nd);
}
#line 7517 "y.tab.c"
break;
case 14: /* stmts: none */
#line 2261 "parse.y"
{
(yyval.nd) = new_stmts(p, 0);
}
#line 7525 "y.tab.c"
break;
case 15: /* stmts: stmt */
#line 2265 "parse.y"
{
(yyval.nd) = new_stmts(p, (yyvsp[0].nd));
}
#line 7533 "y.tab.c"
break;
case 16: /* stmts: stmts terms stmt */
#line 2269 "parse.y"
{
(yyval.nd) = stmts_push(p, (yyvsp[-2].nd), newline_node((yyvsp[0].nd)));
}
#line 7541 "y.tab.c"
break;
case 17: /* stmts: error stmt */
#line 2273 "parse.y"
{
(yyval.nd) = new_stmts(p, (yyvsp[0].nd));
}
#line 7549 "y.tab.c"
break;
case 18: /* $@3: %empty */
#line 2278 "parse.y"
{p->lstate = EXPR_FNAME;}
#line 7555 "y.tab.c"
break;
case 19: /* stmt: "'alias'" fsym $@3 fsym */
#line 2279 "parse.y"
{
(yyval.nd) = new_alias(p, (yyvsp[-2].id), (yyvsp[0].id));
}
#line 7563 "y.tab.c"
break;
case 20: /* stmt: "'undef'" undef_list */
#line 2283 "parse.y"
{
(yyval.nd) = new_undef(p, (yyvsp[0].nd));
}
#line 7571 "y.tab.c"
break;
case 21: /* stmt: stmt "'if' modifier" expr_value */
#line 2287 "parse.y"
{
(yyval.nd) = new_if(p, cond((yyvsp[0].nd)), (yyvsp[-2].nd), 0);
}
#line 7579 "y.tab.c"
break;
case 22: /* stmt: stmt "'unless' modifier" expr_value */
#line 2291 "parse.y"
{
(yyval.nd) = new_if(p, cond((yyvsp[0].nd)), 0, (yyvsp[-2].nd));
}
#line 7587 "y.tab.c"
break;
case 23: /* stmt: stmt "'while' modifier" expr_value */
#line 2295 "parse.y"
{
if ((yyvsp[-2].nd) && node_type_p((yyvsp[-2].nd), NODE_BEGIN)) {
(yyval.nd) = new_while_mod(p, cond((yyvsp[0].nd)), (yyvsp[-2].nd));
}
else {
(yyval.nd) = new_while(p, cond((yyvsp[0].nd)), (yyvsp[-2].nd));
}
}
#line 7600 "y.tab.c"
break;
case 24: /* stmt: stmt "'until' modifier" expr_value */
#line 2304 "parse.y"
{
if ((yyvsp[-2].nd) && node_type_p((yyvsp[-2].nd), NODE_BEGIN)) {
(yyval.nd) = new_until_mod(p, cond((yyvsp[0].nd)), (yyvsp[-2].nd));
}
else {
(yyval.nd) = new_until(p, cond((yyvsp[0].nd)), (yyvsp[-2].nd));
}
}
#line 7613 "y.tab.c"
break;
case 25: /* stmt: stmt "'rescue' modifier" stmt */
#line 2313 "parse.y"
{
(yyval.nd) = new_mod_rescue(p, (yyvsp[-2].nd), (yyvsp[0].nd));
}
#line 7621 "y.tab.c"
break;
case 26: /* stmt: "'END'" '{' compstmt '}' */
#line 2317 "parse.y"
{
yyerror(&(yylsp[-3]), p, "END not supported");
(yyval.nd) = new_postexe(p, (yyvsp[-1].nd));
}
#line 7630 "y.tab.c"
break;
case 28: /* stmt: mlhs '=' command_call */
#line 2323 "parse.y"
{
(yyval.nd) = new_masgn(p, (yyvsp[-2].nd), (yyvsp[0].nd));
}
#line 7638 "y.tab.c"
break;
case 29: /* stmt: lhs '=' mrhs */
#line 2327 "parse.y"
{
(yyval.nd) = new_asgn(p, (yyvsp[-2].nd), new_array(p, (yyvsp[0].nd)));
}
#line 7646 "y.tab.c"
break;
case 30: /* stmt: mlhs '=' arg */
#line 2331 "parse.y"
{
(yyval.nd) = new_masgn(p, (yyvsp[-2].nd), (yyvsp[0].nd));
}
#line 7654 "y.tab.c"
break;
case 31: /* stmt: mlhs '=' mrhs */
#line 2335 "parse.y"
{
(yyval.nd) = new_masgn(p, (yyvsp[-2].nd), new_array(p, (yyvsp[0].nd)));
}
#line 7662 "y.tab.c"
break;
case 33: /* command_asgn: lhs '=' command_rhs */
#line 2342 "parse.y"
{
(yyval.nd) = new_asgn(p, (yyvsp[-2].nd), (yyvsp[0].nd));
}
#line 7670 "y.tab.c"
break;
case 34: /* command_asgn: var_lhs tOP_ASGN command_rhs */
#line 2346 "parse.y"
{
(yyval.nd) = new_op_asgn(p, (yyvsp[-2].nd), (yyvsp[-1].id), (yyvsp[0].nd));
}
#line 7678 "y.tab.c"
break;
case 35: /* command_asgn: primary_value '[' opt_call_args ']' tOP_ASGN command_rhs */
#line 2350 "parse.y"
{
(yyval.nd) = new_op_asgn(p, new_call(p, (yyvsp[-5].nd), intern_op(aref), (yyvsp[-3].nd), '.'), (yyvsp[-1].id), (yyvsp[0].nd));
}
#line 7686 "y.tab.c"
break;
case 36: /* command_asgn: primary_value call_op "local variable or method" tOP_ASGN command_rhs */
#line 2354 "parse.y"
{
(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));
}
#line 7694 "y.tab.c"
break;
case 37: /* command_asgn: primary_value call_op "constant" tOP_ASGN command_rhs */
#line 2358 "parse.y"
{
(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));
}
#line 7702 "y.tab.c"
break;
case 38: /* command_asgn: primary_value "::" "constant" tOP_ASGN command_call */
#line 2362 "parse.y"
{
yyerror(&(yylsp[-4]), p, "constant re-assignment");
(yyval.nd) = 0;
}
#line 7711 "y.tab.c"
break;
case 39: /* command_asgn: primary_value "::" "local variable or method" tOP_ASGN command_rhs */
#line 2367 "parse.y"
{
(yyval.nd) = new_op_asgn(p, new_call(p, (yyvsp[-4].nd), (yyvsp[-2].id), 0, tCOLON2), (yyvsp[-1].id), (yyvsp[0].nd));
}
#line 7719 "y.tab.c"
break;
case 40: /* command_asgn: defn_head f_opt_arglist_paren '=' command */
#line 2371 "parse.y"
{
(yyval.nd) = (yyvsp[-3].nd);
endless_method_name(p, (yyvsp[-3].nd));
void_expr_error(p, (yyvsp[0].nd));
defn_setup(p, (yyval.nd), (yyvsp[-2].nd), (yyvsp[0].nd));
nvars_unnest(p);
p->in_def--;
}
#line 7732 "y.tab.c"
break;
case 41: /* command_asgn: defn_head f_opt_arglist_paren '=' command "'rescue' modifier" arg */
#line 2380 "parse.y"
{
(yyval.nd) = (yyvsp[-5].nd);
endless_method_name(p, (yyvsp[-5].nd));
void_expr_error(p, (yyvsp[-2].nd));
defn_setup(p, (yyval.nd), (yyvsp[-4].nd), new_mod_rescue(p, (yyvsp[-2].nd), (yyvsp[0].nd)));
nvars_unnest(p);
p->in_def--;
}
#line 7745 "y.tab.c"
break;
case 42: /* command_asgn: defs_head f_opt_arglist_paren '=' command */
#line 2389 "parse.y"
{
(yyval.nd) = (yyvsp[-3].nd);
void_expr_error(p, (yyvsp[0].nd));
defn_setup(p, (yyval.nd), (yyvsp[-2].nd), (yyvsp[0].nd));
nvars_unnest(p);
p->in_def--;
p->in_single--;
}
#line 7758 "y.tab.c"
break;
case 43: /* command_asgn: defs_head f_opt_arglist_paren '=' command "'rescue' modifier" arg */
#line 2398 "parse.y"
{
(yyval.nd) = (yyvsp[-5].nd);
void_expr_error(p, (yyvsp[-2].nd));
defn_setup(p, (yyval.nd), (yyvsp[-4].nd), new_mod_rescue(p, (yyvsp[-2].nd), (yyvsp[0].nd)));
nvars_unnest(p);
p->in_def--;
p->in_single--;
}
#line 7771 "y.tab.c"
break;
case 44: /* command_asgn: backref tOP_ASGN command_rhs */
#line 2407 "parse.y"
{
backref_error(p, (yyvsp[-2].nd));
(yyval.nd) = new_stmts(p, 0);
}
#line 7780 "y.tab.c"
break;
case 46: /* command_rhs: command_call "'rescue' modifier" stmt */
#line 2415 "parse.y"
{
(yyval.nd) = new_mod_rescue(p, (yyvsp[-2].nd), (yyvsp[0].nd));
}
#line 7788 "y.tab.c"
break;
case 49: /* expr: expr "'and'" expr */
#line 2423 "parse.y"
{
(yyval.nd) = new_and(p, (yyvsp[-2].nd), (yyvsp[0].nd));
}
#line 7796 "y.tab.c"
break;
case 50: /* expr: expr "'or'" expr */
#line 2427 "parse.y"
{
(yyval.nd) = new_or(p, (yyvsp[-2].nd), (yyvsp[0].nd));
}
#line 7804 "y.tab.c"
break;
case 51: /* expr: "'not'" opt_nl expr */
#line 2431 "parse.y"
{
(yyval.nd) = call_uni_op(p, cond((yyvsp[0].nd)), "!");
}
#line 7812 "y.tab.c"
break;
case 52: /* expr: '!' command_call */
#line 2435 "parse.y"
{
(yyval.nd) = call_uni_op(p, cond((yyvsp[0].nd)), "!");
}
#line 7820 "y.tab.c"
break;
case 53: /* $@4: %empty */
#line 2438 "parse.y"
{p->in_kwarg++;}
#line 7826 "y.tab.c"
break;
case 54: /* expr: arg "=>" $@4 p_expr */
#line 2439 "parse.y"
{
/* expr => pattern (raises NoMatchingPatternError on failure) */
p->in_kwarg--;
(yyval.nd) = new_match_pat(p, (yyvsp[-3].nd), (yyvsp[0].nd), TRUE);
}
#line 7836 "y.tab.c"
break;
case 55: /* $@5: %empty */
#line 2444 "parse.y"
{p->in_kwarg++;}
#line 7842 "y.tab.c"
break;
case 56: /* expr: arg "'in'" $@5 p_expr */
#line 2445 "parse.y"
{
/* expr in pattern (returns true/false) */
p->in_kwarg--;
(yyval.nd) = new_match_pat(p, (yyvsp[-3].nd), (yyvsp[0].nd), FALSE);
}
#line 7852 "y.tab.c"
break;
case 58: /* defn_head: "'def'" fname */
#line 2454 "parse.y"
{
(yyval.nd) = new_def(p, (yyvsp[0].id));
p->cmdarg_stack = 0;
p->in_def++;
nvars_block(p);
}
#line 7863 "y.tab.c"
break;
case 59: /* $@6: %empty */
#line 2463 "parse.y"
{
p->lstate = EXPR_FNAME;
}
#line 7871 "y.tab.c"
break;
case 60: /* defs_head: "'def'" singleton dot_or_colon $@6 fname */
#line 2467 "parse.y"
{
(yyval.nd) = new_sdef(p, (yyvsp[-3].nd), (yyvsp[0].id));
p->cmdarg_stack = 0;
p->in_def++;
p->in_single++;
nvars_block(p);
p->lstate = EXPR_ENDFN; /* force for args */
}
#line 7884 "y.tab.c"
break;
case 61: /* expr_value: expr */
#line 2478 "parse.y"
{
if (!(yyvsp[0].nd)) (yyval.nd) = new_nil(p);
else {
(yyval.nd) = (yyvsp[0].nd);
}
}
#line 7895 "y.tab.c"
break;
case 65: /* block_command: block_call call_op2 operation2 command_args */
#line 2492 "parse.y"
{
(yyval.nd) = new_call(p, (yyvsp[-3].nd), (yyvsp[-1].id), (yyvsp[0].nd), (yyvsp[-2].num));
}
#line 7903 "y.tab.c"
break;
case 66: /* $@7: %empty */
#line 2498 "parse.y"
{
local_nest(p);
nvars_nest(p);
}
#line 7912 "y.tab.c"
break;
case 67: /* cmd_brace_block: "{" $@7 opt_block_param compstmt '}' */
#line 2505 "parse.y"
{
(yyval.nd) = new_block(p, (yyvsp[-2].nd), (yyvsp[-1].nd));
local_unnest(p);
nvars_unnest(p);
}
#line 7922 "y.tab.c"
break;
case 68: /* command: operation command_args */
#line 2513 "parse.y"
{
(yyval.nd) = new_fcall(p, (yyvsp[-1].id), (yyvsp[0].nd));
}
#line 7930 "y.tab.c"
break;
case 69: /* command: operation command_args cmd_brace_block */
#line 2517 "parse.y"
{
args_with_block(p, (yyvsp[-1].nd), (yyvsp[0].nd));
(yyval.nd) = new_fcall(p, (yyvsp[-2].id), (yyvsp[-1].nd));
}
#line 7939 "y.tab.c"
break;
case 70: /* command: primary_value call_op operation2 command_args */
#line 2522 "parse.y"
{
(yyval.nd) = new_call(p, (yyvsp[-3].nd), (yyvsp[-1].id), (yyvsp[0].nd), (yyvsp[-2].num));
}
#line 7947 "y.tab.c"
break;
case 71: /* command: primary_value call_op operation2 command_args cmd_brace_block */
#line 2526 "parse.y"
{
args_with_block(p, (yyvsp[-1].nd), (yyvsp[0].nd));
(yyval.nd) = new_call(p, (yyvsp[-4].nd), (yyvsp[-2].id), (yyvsp[-1].nd), (yyvsp[-3].num));
}
#line 7956 "y.tab.c"
break;
case 72: /* command: primary_value "::" operation2 command_args */
#line 2531 "parse.y"
{
(yyval.nd) = new_call(p, (yyvsp[-3].nd), (yyvsp[-1].id), (yyvsp[0].nd), tCOLON2);
}
#line 7964 "y.tab.c"
break;
case 73: /* command: primary_value "::" operation2 command_args cmd_brace_block */
#line 2535 "parse.y"
{
args_with_block(p, (yyvsp[-1].nd), (yyvsp[0].nd));
(yyval.nd) = new_call(p, (yyvsp[-4].nd), (yyvsp[-2].id), (yyvsp[-1].nd), tCOLON2);
}
#line 7973 "y.tab.c"
break;
case 74: /* command: "'super'" command_args */
#line 2540 "parse.y"
{
(yyval.nd) = new_super(p, (yyvsp[0].nd));
}
#line 7981 "y.tab.c"
break;
case 75: /* command: "'yield'" command_args */
#line 2544 "parse.y"
{
(yyval.nd) = new_yield(p, (yyvsp[0].nd));
}
#line 7989 "y.tab.c"
break;
case 76: /* command: "'return'" call_args */
#line 2548 "parse.y"
{
(yyval.nd) = new_return(p, ret_args(p, (yyvsp[0].nd)));
}
#line 7997 "y.tab.c"
break;
case 77: /* command: "'break'" call_args */
#line 2552 "parse.y"
{
(yyval.nd) = new_break(p, ret_args(p, (yyvsp[0].nd)));
}
#line 8005 "y.tab.c"
break;
case 78: /* command: "'next'" call_args */
#line 2556 "parse.y"
{
(yyval.nd) = new_next(p, ret_args(p, (yyvsp[0].nd)));
}
#line 8013 "y.tab.c"
break;
case 79: /* mlhs: mlhs_basic */
#line 2562 "parse.y"
{
(yyval.nd) = (yyvsp[0].nd);
}
#line 8021 "y.tab.c"
break;
case 80: /* mlhs: tLPAREN mlhs_inner rparen */
#line 2566 "parse.y"
{
(yyval.nd) = (yyvsp[-1].nd);
}
#line 8029 "y.tab.c"
break;
case 82: /* mlhs_inner: tLPAREN mlhs_inner rparen */
#line 2573 "parse.y"
{
(yyval.nd) = (yyvsp[-1].nd);
}
#line 8037 "y.tab.c"
break;
case 83: /* mlhs_basic: mlhs_list */
#line 2579 "parse.y"
{
(yyval.nd) = list1((yyvsp[0].nd));
}
#line 8045 "y.tab.c"
break;
case 84: /* mlhs_basic: mlhs_list mlhs_item */
#line 2583 "parse.y"
{
(yyval.nd) = list1(push((yyvsp[-1].nd),(yyvsp[0].nd)));
}
#line 8053 "y.tab.c"
break;
case 85: /* mlhs_basic: mlhs_list "*" mlhs_node */
#line 2587 "parse.y"
{
(yyval.nd) = list2((yyvsp[-2].nd), (yyvsp[0].nd));
}
#line 8061 "y.tab.c"
break;
case 86: /* mlhs_basic: mlhs_list "*" mlhs_node ',' mlhs_post */
#line 2591 "parse.y"
{
(yyval.nd) = list3((yyvsp[-4].nd), (yyvsp[-2].nd), (yyvsp[0].nd));
}
#line 8069 "y.tab.c"
break;
case 87: /* mlhs_basic: mlhs_list "*" */
#line 2595 "parse.y"
{
(yyval.nd) = list2((yyvsp[-1].nd), new_nil(p));
}
#line 8077 "y.tab.c"
break;
case 88: /* mlhs_basic: mlhs_list "*" ',' mlhs_post */
#line 2599 "parse.y"
{
(yyval.nd) = list3((yyvsp[-3].nd), new_nil(p), (yyvsp[0].nd));
}
#line 8085 "y.tab.c"
break;
case 89: /* mlhs_basic: "*" mlhs_node */
#line 2603 "parse.y"
{
(yyval.nd) = list2(0, (yyvsp[0].nd));
}
#line 8093 "y.tab.c"
break;
case 90: /* mlhs_basic: "*" mlhs_node ',' mlhs_post */
#line 2607 "parse.y"
{
(yyval.nd) = list3(0, (yyvsp[-2].nd), (yyvsp[0].nd));
}
#line 8101 "y.tab.c"
break;
case 91: /* mlhs_basic: "*" */
#line 2611 "parse.y"
{
(yyval.nd) = list2(0, new_nil(p));
}
#line 8109 "y.tab.c"
break;
case 92: /* mlhs_basic: "*" ',' mlhs_post */
#line 2615 "parse.y"
{
(yyval.nd) = list3(0, new_nil(p), (yyvsp[0].nd));
}
#line 8117 "y.tab.c"
break;
case 94: /* mlhs_item: tLPAREN mlhs_inner rparen */
#line 2622 "parse.y"
{
(yyval.nd) = new_masgn(p, (yyvsp[-1].nd), NULL);
}
#line 8125 "y.tab.c"
break;
case 95: /* mlhs_list: mlhs_item ',' */
#line 2628 "parse.y"
{
(yyval.nd) = list1((yyvsp[-1].nd));
}
#line 8133 "y.tab.c"
break;
case 96: /* mlhs_list: mlhs_list mlhs_item ',' */
#line 2632 "parse.y"
{
(yyval.nd) = push((yyvsp[-2].nd), (yyvsp[-1].nd));
}
#line 8141 "y.tab.c"
break;
case 97: /* mlhs_post: mlhs_item */
#line 2638 "parse.y"
{
(yyval.nd) = list1((yyvsp[0].nd));
}
#line 8149 "y.tab.c"
break;
case 98: /* mlhs_post: mlhs_list mlhs_item */
#line 2642 "parse.y"
{
(yyval.nd) = push((yyvsp[-1].nd), (yyvsp[0].nd));
}
#line 8157 "y.tab.c"
break;
case 99: /* mlhs_node: variable */
#line 2648 "parse.y"
{
assignable(p, (yyvsp[0].nd));
}
#line 8165 "y.tab.c"
break;
case 100: /* mlhs_node: primary_value '[' opt_call_args ']' */
#line 2652 "parse.y"
{
(yyval.nd) = new_call(p, (yyvsp[-3].nd), intern_op(aref), (yyvsp[-1].nd), '.');
}
#line 8173 "y.tab.c"
break;
case 101: /* mlhs_node: primary_value call_op "local variable or method" */
#line 2656 "parse.y"
{
(yyval.nd) = new_call(p, (yyvsp[-2].nd), (yyvsp[0].id), 0, (yyvsp[-1].num));
}
#line 8181 "y.tab.c"
break;
case 102: /* mlhs_node: primary_value "::" "local variable or method" */
#line 2660 "parse.y"
{
(yyval.nd) = new_call(p, (yyvsp[-2].nd), (yyvsp[0].id), 0, tCOLON2);
}
#line 8189 "y.tab.c"
break;
case 103: /* mlhs_node: primary_value call_op "constant" */
#line 2664 "parse.y"
{
(yyval.nd) = new_call(p, (yyvsp[-2].nd), (yyvsp[0].id), 0, (yyvsp[-1].num));
}
#line 8197 "y.tab.c"
break;
case 104: /* mlhs_node: primary_value "::" "constant" */
#line 2668 "parse.y"
{
if (p->in_def || p->in_single)
yyerror(&(yylsp[-2]), p, "dynamic constant assignment");
(yyval.nd) = new_colon2(p, (yyvsp[-2].nd), (yyvsp[0].id));
}
#line 8207 "y.tab.c"
break;
case 105: /* mlhs_node: tCOLON3 "constant" */
#line 2674 "parse.y"
{
if (p->in_def || p->in_single)
yyerror(&(yylsp[-1]), p, "dynamic constant assignment");
(yyval.nd) = new_colon3(p, (yyvsp[0].id));
}
#line 8217 "y.tab.c"
break;
case 106: /* mlhs_node: backref */
#line 2680 "parse.y"
{
backref_error(p, (yyvsp[0].nd));
(yyval.nd) = 0;
}
#line 8226 "y.tab.c"
break;
case 107: /* lhs: variable */
#line 2687 "parse.y"
{
assignable(p, (yyvsp[0].nd));
}
#line 8234 "y.tab.c"
break;
case 108: /* lhs: primary_value '[' opt_call_args ']' */
#line 2691 "parse.y"
{
(yyval.nd) = new_call(p, (yyvsp[-3].nd), intern_op(aref), (yyvsp[-1].nd), '.');
}
#line 8242 "y.tab.c"
break;
case 109: /* lhs: primary_value call_op "local variable or method" */
#line 2695 "parse.y"
{
(yyval.nd) = new_call(p, (yyvsp[-2].nd), (yyvsp[0].id), 0, (yyvsp[-1].num));
}
#line 8250 "y.tab.c"
break;
case 110: /* lhs: primary_value "::" "local variable or method" */
#line 2699 "parse.y"
{
(yyval.nd) = new_call(p, (yyvsp[-2].nd), (yyvsp[0].id), 0, tCOLON2);
}
#line 8258 "y.tab.c"
break;
case 111: /* lhs: primary_value call_op "constant" */
#line 2703 "parse.y"
{
(yyval.nd) = new_call(p, (yyvsp[-2].nd), (yyvsp[0].id), 0, (yyvsp[-1].num));
}
#line 8266 "y.tab.c"
break;
case 112: /* lhs: primary_value "::" "constant" */
#line 2707 "parse.y"
{
if (p->in_def || p->in_single)
yyerror(&(yylsp[-2]), p, "dynamic constant assignment");
(yyval.nd) = new_colon2(p, (yyvsp[-2].nd), (yyvsp[0].id));
}
#line 8276 "y.tab.c"
break;
case 113: /* lhs: tCOLON3 "constant" */
#line 2713 "parse.y"
{
if (p->in_def || p->in_single)
yyerror(&(yylsp[-1]), p, "dynamic constant assignment");
(yyval.nd) = new_colon3(p, (yyvsp[0].id));
}
#line 8286 "y.tab.c"
break;
case 114: /* lhs: backref */
#line 2719 "parse.y"
{
backref_error(p, (yyvsp[0].nd));
(yyval.nd) = 0;
}
#line 8295 "y.tab.c"
break;
case 115: /* lhs: "numbered parameter" */
#line 2724 "parse.y"
{
yyerror(&(yylsp[0]), p, "can't assign to numbered parameter");
}
#line 8303 "y.tab.c"
break;
case 116: /* cname: "local variable or method" */
#line 2730 "parse.y"
{
yyerror(&(yylsp[0]), p, "class/module name must be CONSTANT");
}
#line 8311 "y.tab.c"
break;
case 118: /* cpath: tCOLON3 cname */
#line 2737 "parse.y"
{
(yyval.nd) = cons(int_to_node(1), sym_to_node((yyvsp[0].id)));
}
#line 8319 "y.tab.c"
break;
case 119: /* cpath: cname */
#line 2741 "parse.y"
{
(yyval.nd) = cons(int_to_node(0), sym_to_node((yyvsp[0].id)));
}
#line 8327 "y.tab.c"
break;
case 120: /* cpath: primary_value "::" cname */
#line 2745 "parse.y"
{
void_expr_error(p, (yyvsp[-2].nd));
(yyval.nd) = cons((yyvsp[-2].nd), sym_to_node((yyvsp[0].id)));
}
#line 8336 "y.tab.c"
break;
case 124: /* fname: op */
#line 2755 "parse.y"
{
p->lstate = EXPR_ENDFN;
(yyval.id) = (yyvsp[0].id);
}
#line 8345 "y.tab.c"
break;
case 125: /* fname: reswords */
#line 2760 "parse.y"
{
p->lstate = EXPR_ENDFN;
(yyval.id) = (yyvsp[0].id);
}
#line 8354 "y.tab.c"
break;
case 128: /* undef_list: fsym */
#line 2771 "parse.y"
{
(yyval.nd) = cons(sym_to_node((yyvsp[0].id)), 0);
}
#line 8362 "y.tab.c"
break;
case 129: /* $@8: %empty */
#line 2774 "parse.y"
{p->lstate = EXPR_FNAME;}
#line 8368 "y.tab.c"
break;
case 130: /* undef_list: undef_list ',' $@8 fsym */
#line 2775 "parse.y"
{
(yyval.nd) = push((yyvsp[-3].nd), sym_to_node((yyvsp[0].id)));
}
#line 8376 "y.tab.c"
break;
case 131: /* op: '|' */
#line 2780 "parse.y"
{ (yyval.id) = intern_op(or); }
#line 8382 "y.tab.c"
break;
case 132: /* op: '^' */
#line 2781 "parse.y"
{ (yyval.id) = intern_op(xor); }
#line 8388 "y.tab.c"
break;
case 133: /* op: '&' */
#line 2782 "parse.y"
{ (yyval.id) = intern_op(and); }
#line 8394 "y.tab.c"
break;
case 134: /* op: "<=>" */
#line 2783 "parse.y"
{ (yyval.id) = intern_op(cmp); }
#line 8400 "y.tab.c"
break;
case 135: /* op: "==" */
#line 2784 "parse.y"
{ (yyval.id) = intern_op(eq); }
#line 8406 "y.tab.c"
break;
case 136: /* op: "===" */
#line 2785 "parse.y"
{ (yyval.id) = intern_op(eqq); }
#line 8412 "y.tab.c"
break;
case 137: /* op: "=~" */
#line 2786 "parse.y"
{ (yyval.id) = intern_op(match); }
#line 8418 "y.tab.c"
break;
case 138: /* op: "!~" */
#line 2787 "parse.y"
{ (yyval.id) = intern_op(nmatch); }
#line 8424 "y.tab.c"
break;
case 139: /* op: '>' */
#line 2788 "parse.y"
{ (yyval.id) = intern_op(gt); }
#line 8430 "y.tab.c"
break;
case 140: /* op: ">=" */
#line 2789 "parse.y"
{ (yyval.id) = intern_op(ge); }
#line 8436 "y.tab.c"
break;
case 141: /* op: '<' */
#line 2790 "parse.y"
{ (yyval.id) = intern_op(lt); }
#line 8442 "y.tab.c"
break;
case 142: /* op: "<=" */
#line 2791 "parse.y"
{ (yyval.id) = intern_op(le); }
#line 8448 "y.tab.c"
break;
case 143: /* op: "!=" */
#line 2792 "parse.y"
{ (yyval.id) = intern_op(neq); }
#line 8454 "y.tab.c"
break;
case 144: /* op: "<<" */
#line 2793 "parse.y"
{ (yyval.id) = intern_op(lshift); }
#line 8460 "y.tab.c"
break;
case 145: /* op: ">>" */
#line 2794 "parse.y"
{ (yyval.id) = intern_op(rshift); }
#line 8466 "y.tab.c"
break;
case 146: /* op: '+' */
#line 2795 "parse.y"
{ (yyval.id) = intern_op(add); }
#line 8472 "y.tab.c"
break;
case 147: /* op: '-' */
#line 2796 "parse.y"
{ (yyval.id) = intern_op(sub); }
#line 8478 "y.tab.c"
break;
case 148: /* op: '*' */
#line 2797 "parse.y"
{ (yyval.id) = intern_op(mul); }
#line 8484 "y.tab.c"
break;
case 149: /* op: "*" */
#line 2798 "parse.y"
{ (yyval.id) = intern_op(mul); }
#line 8490 "y.tab.c"
break;
case 150: /* op: '/' */
#line 2799 "parse.y"
{ (yyval.id) = intern_op(div); }
#line 8496 "y.tab.c"
break;
case 151: /* op: '%' */
#line 2800 "parse.y"
{ (yyval.id) = intern_op(mod); }
#line 8502 "y.tab.c"
break;
case 152: /* op: tPOW */
#line 2801 "parse.y"
{ (yyval.id) = intern_op(pow); }
#line 8508 "y.tab.c"
break;
case 153: /* op: "**" */
#line 2802 "parse.y"
{ (yyval.id) = intern_op(pow); }
#line 8514 "y.tab.c"
break;
case 154: /* op: '!' */
#line 2803 "parse.y"
{ (yyval.id) = intern_op(not); }
#line 8520 "y.tab.c"
break;
case 155: /* op: '~' */
#line 2804 "parse.y"
{ (yyval.id) = intern_op(neg); }
#line 8526 "y.tab.c"
break;
case 156: /* op: "unary plus" */
#line 2805 "parse.y"
{ (yyval.id) = intern_op(plus); }
#line 8532 "y.tab.c"
break;
case 157: /* op: "unary minus" */
#line 2806 "parse.y"
{ (yyval.id) = intern_op(minus); }
#line 8538 "y.tab.c"
break;
case 158: /* op: tAREF */
#line 2807 "parse.y"
{ (yyval.id) = intern_op(aref); }
#line 8544 "y.tab.c"
break;
case 159: /* op: tASET */
#line 2808 "parse.y"
{ (yyval.id) = intern_op(aset); }
#line 8550 "y.tab.c"
break;
case 160: /* op: '`' */
#line 2809 "parse.y"
{ (yyval.id) = intern_op(tick); }
#line 8556 "y.tab.c"
break;
case 201: /* arg: lhs '=' arg_rhs */
#line 2827 "parse.y"
{
(yyval.nd) = new_asgn(p, (yyvsp[-2].nd), (yyvsp[0].nd));
}
#line 8564 "y.tab.c"
break;
case 202: /* arg: var_lhs tOP_ASGN arg_rhs */
#line 2831 "parse.y"
{
(yyval.nd) = new_op_asgn(p, (yyvsp[-2].nd), (yyvsp[-1].id), (yyvsp[0].nd));
}
#line 8572 "y.tab.c"
break;
case 203: /* arg: primary_value '[' opt_call_args ']' tOP_ASGN arg_rhs */
#line 2835 "parse.y"
{
(yyval.nd) = new_op_asgn(p, new_call(p, (yyvsp[-5].nd), intern_op(aref), (yyvsp[-3].nd), '.'), (yyvsp[-1].id), (yyvsp[0].nd));
}
#line 8580 "y.tab.c"
break;
case 204: /* arg: primary_value call_op "local variable or method" tOP_ASGN arg_rhs */
#line 2839 "parse.y"
{
(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));
}
#line 8588 "y.tab.c"
break;
case 205: /* arg: primary_value call_op "constant" tOP_ASGN arg_rhs */
#line 2843 "parse.y"
{
(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));
}
#line 8596 "y.tab.c"
break;
case 206: /* arg: primary_value "::" "local variable or method" tOP_ASGN arg_rhs */
#line 2847 "parse.y"
{
(yyval.nd) = new_op_asgn(p, new_call(p, (yyvsp[-4].nd), (yyvsp[-2].id), 0, tCOLON2), (yyvsp[-1].id), (yyvsp[0].nd));
}
#line 8604 "y.tab.c"
break;
case 207: /* arg: primary_value "::" "constant" tOP_ASGN arg_rhs */
#line 2851 "parse.y"
{
yyerror(&(yylsp[-4]), p, "constant re-assignment");
(yyval.nd) = new_stmts(p, 0);
}
#line 8613 "y.tab.c"
break;
case 208: /* arg: tCOLON3 "constant" tOP_ASGN arg_rhs */
#line 2856 "parse.y"
{
yyerror(&(yylsp[-3]), p, "constant re-assignment");
(yyval.nd) = new_stmts(p, 0);
}
#line 8622 "y.tab.c"
break;
case 209: /* arg: backref tOP_ASGN arg_rhs */
#line 2861 "parse.y"
{
backref_error(p, (yyvsp[-2].nd));
(yyval.nd) = new_stmts(p, 0);
}
#line 8631 "y.tab.c"
break;
case 210: /* arg: arg ".." arg */
#line 2866 "parse.y"
{
(yyval.nd) = new_dot2(p, (yyvsp[-2].nd), (yyvsp[0].nd));
}
#line 8639 "y.tab.c"
break;
case 211: /* arg: arg ".." */
#line 2870 "parse.y"
{
(yyval.nd) = new_dot2(p, (yyvsp[-1].nd), new_nil(p));
}
#line 8647 "y.tab.c"
break;
case 212: /* arg: tBDOT2 arg */
#line 2874 "parse.y"
{
(yyval.nd) = new_dot2(p, new_nil(p), (yyvsp[0].nd));
}
#line 8655 "y.tab.c"
break;
case 213: /* arg: arg "..." arg */
#line 2878 "parse.y"
{
(yyval.nd) = new_dot3(p, (yyvsp[-2].nd), (yyvsp[0].nd));
}
#line 8663 "y.tab.c"
break;
case 214: /* arg: arg "..." */
#line 2882 "parse.y"
{
(yyval.nd) = new_dot3(p, (yyvsp[-1].nd), new_nil(p));
}
#line 8671 "y.tab.c"
break;
case 215: /* arg: tBDOT3 arg */
#line 2886 "parse.y"
{
(yyval.nd) = new_dot3(p, new_nil(p), (yyvsp[0].nd));
}
#line 8679 "y.tab.c"
break;
case 216: /* arg: arg '+' arg */
#line 2890 "parse.y"
{
(yyval.nd) = call_bin_op(p, (yyvsp[-2].nd), "+", (yyvsp[0].nd));
}
#line 8687 "y.tab.c"
break;
case 217: /* arg: arg '-' arg */
#line 2894 "parse.y"
{
(yyval.nd) = call_bin_op(p, (yyvsp[-2].nd), "-", (yyvsp[0].nd));
}
#line 8695 "y.tab.c"
break;
case 218: /* arg: arg '*' arg */
#line 2898 "parse.y"
{
(yyval.nd) = call_bin_op(p, (yyvsp[-2].nd), "*", (yyvsp[0].nd));
}
#line 8703 "y.tab.c"
break;
case 219: /* arg: arg '/' arg */
#line 2902 "parse.y"
{
(yyval.nd) = call_bin_op(p, (yyvsp[-2].nd), "/", (yyvsp[0].nd));
}
#line 8711 "y.tab.c"
break;
case 220: /* arg: arg '%' arg */
#line 2906 "parse.y"
{
(yyval.nd) = call_bin_op(p, (yyvsp[-2].nd), "%", (yyvsp[0].nd));
}
#line 8719 "y.tab.c"
break;
case 221: /* arg: arg tPOW arg */
#line 2910 "parse.y"
{
(yyval.nd) = call_bin_op(p, (yyvsp[-2].nd), "**", (yyvsp[0].nd));
}
#line 8727 "y.tab.c"
break;
case 222: /* arg: tUMINUS_NUM "integer literal" tPOW arg */
#line 2914 "parse.y"
{
(yyval.nd) = new_negate(p, call_bin_op(p, (yyvsp[-2].nd), "**", (yyvsp[0].nd)));
}
#line 8735 "y.tab.c"
break;
case 223: /* arg: tUMINUS_NUM "float literal" tPOW arg */
#line 2918 "parse.y"
{
(yyval.nd) = new_negate(p, call_bin_op(p, (yyvsp[-2].nd), "**", (yyvsp[0].nd)));
}
#line 8743 "y.tab.c"
break;
case 224: /* arg: "unary plus" arg */
#line 2922 "parse.y"
{
(yyval.nd) = call_uni_op(p, (yyvsp[0].nd), "+@");
}
#line 8751 "y.tab.c"
break;
case 225: /* arg: "unary minus" arg */
#line 2926 "parse.y"
{
(yyval.nd) = new_negate(p, (yyvsp[0].nd));
}
#line 8759 "y.tab.c"
break;
case 226: /* arg: arg '|' arg */
#line 2930 "parse.y"
{
(yyval.nd) = call_bin_op(p, (yyvsp[-2].nd), "|", (yyvsp[0].nd));
}
#line 8767 "y.tab.c"
break;
case 227: /* arg: arg '^' arg */
#line 2934 "parse.y"
{
(yyval.nd) = call_bin_op(p, (yyvsp[-2].nd), "^", (yyvsp[0].nd));
}
#line 8775 "y.tab.c"
break;
case 228: /* arg: arg '&' arg */
#line 2938 "parse.y"
{
(yyval.nd) = call_bin_op(p, (yyvsp[-2].nd), "&", (yyvsp[0].nd));
}
#line 8783 "y.tab.c"
break;
case 229: /* arg: arg "<=>" arg */
#line 2942 "parse.y"
{
(yyval.nd) = call_bin_op(p, (yyvsp[-2].nd), "<=>", (yyvsp[0].nd));
}
#line 8791 "y.tab.c"
break;
case 230: /* arg: arg '>' arg */
#line 2946 "parse.y"
{
(yyval.nd) = call_bin_op(p, (yyvsp[-2].nd), ">", (yyvsp[0].nd));
}
#line 8799 "y.tab.c"
break;
case 231: /* arg: arg ">=" arg */
#line 2950 "parse.y"
{
(yyval.nd) = call_bin_op(p, (yyvsp[-2].nd), ">=", (yyvsp[0].nd));
}
#line 8807 "y.tab.c"
break;
case 232: /* arg: arg '<' arg */
#line 2954 "parse.y"
{
(yyval.nd) = call_bin_op(p, (yyvsp[-2].nd), "<", (yyvsp[0].nd));
}
#line 8815 "y.tab.c"
break;
case 233: /* arg: arg "<=" arg */
#line 2958 "parse.y"
{
(yyval.nd) = call_bin_op(p, (yyvsp[-2].nd), "<=", (yyvsp[0].nd));
}
#line 8823 "y.tab.c"
break;
case 234: /* arg: arg "==" arg */
#line 2962 "parse.y"
{
(yyval.nd) = call_bin_op(p, (yyvsp[-2].nd), "==", (yyvsp[0].nd));
}
#line 8831 "y.tab.c"
break;
case 235: /* arg: arg "===" arg */
#line 2966 "parse.y"
{
(yyval.nd) = call_bin_op(p, (yyvsp[-2].nd), "===", (yyvsp[0].nd));
}
#line 8839 "y.tab.c"
break;
case 236: /* arg: arg "!=" arg */
#line 2970 "parse.y"
{
(yyval.nd) = call_bin_op(p, (yyvsp[-2].nd), "!=", (yyvsp[0].nd));
}
#line 8847 "y.tab.c"
break;
case 237: /* arg: arg "=~" arg */
#line 2974 "parse.y"
{
(yyval.nd) = call_bin_op(p, (yyvsp[-2].nd), "=~", (yyvsp[0].nd));
}
#line 8855 "y.tab.c"
break;
case 238: /* arg: arg "!~" arg */
#line 2978 "parse.y"
{
(yyval.nd) = call_bin_op(p, (yyvsp[-2].nd), "!~", (yyvsp[0].nd));
}
#line 8863 "y.tab.c"
break;
case 239: /* arg: '!' arg */
#line 2982 "parse.y"
{
(yyval.nd) = call_uni_op(p, cond((yyvsp[0].nd)), "!");
}
#line 8871 "y.tab.c"
break;
case 240: /* arg: '~' arg */
#line 2986 "parse.y"
{
(yyval.nd) = call_uni_op(p, cond((yyvsp[0].nd)), "~");
}
#line 8879 "y.tab.c"
break;
case 241: /* arg: arg "<<" arg */
#line 2990 "parse.y"
{
(yyval.nd) = call_bin_op(p, (yyvsp[-2].nd), "<<", (yyvsp[0].nd));
}
#line 8887 "y.tab.c"
break;
case 242: /* arg: arg ">>" arg */
#line 2994 "parse.y"
{
(yyval.nd) = call_bin_op(p, (yyvsp[-2].nd), ">>", (yyvsp[0].nd));
}
#line 8895 "y.tab.c"
break;
case 243: /* arg: arg "&&" arg */
#line 2998 "parse.y"
{
(yyval.nd) = new_and(p, (yyvsp[-2].nd), (yyvsp[0].nd));
}
#line 8903 "y.tab.c"
break;
case 244: /* arg: arg "||" arg */
#line 3002 "parse.y"
{
(yyval.nd) = new_or(p, (yyvsp[-2].nd), (yyvsp[0].nd));
}
#line 8911 "y.tab.c"
break;
case 245: /* arg: arg '?' arg opt_nl ':' arg */
#line 3006 "parse.y"
{
(yyval.nd) = new_if(p, cond((yyvsp[-5].nd)), (yyvsp[-3].nd), (yyvsp[0].nd));
}
#line 8919 "y.tab.c"
break;
case 246: /* arg: arg '?' arg opt_nl "label" arg */
#line 3010 "parse.y"
{
(yyval.nd) = new_if(p, cond((yyvsp[-5].nd)), (yyvsp[-3].nd), (yyvsp[0].nd));
}
#line 8927 "y.tab.c"
break;
case 247: /* arg: defn_head f_opt_arglist_paren '=' arg */
#line 3014 "parse.y"
{
(yyval.nd) = (yyvsp[-3].nd);
endless_method_name(p, (yyvsp[-3].nd));
void_expr_error(p, (yyvsp[0].nd));
defn_setup(p, (yyval.nd), (yyvsp[-2].nd), (yyvsp[0].nd));
nvars_unnest(p);
p->in_def--;
}
#line 8940 "y.tab.c"
break;
case 248: /* arg: defn_head f_opt_arglist_paren '=' arg "'rescue' modifier" arg */
#line 3023 "parse.y"
{
(yyval.nd) = (yyvsp[-5].nd);
endless_method_name(p, (yyvsp[-5].nd));
void_expr_error(p, (yyvsp[-2].nd));
defn_setup(p, (yyval.nd), (yyvsp[-4].nd), new_mod_rescue(p, (yyvsp[-2].nd), (yyvsp[0].nd)));
nvars_unnest(p);
p->in_def--;
}
#line 8953 "y.tab.c"
break;
case 249: /* arg: defs_head f_opt_arglist_paren '=' arg */
#line 3032 "parse.y"
{
(yyval.nd) = (yyvsp[-3].nd);
void_expr_error(p, (yyvsp[0].nd));
defn_setup(p, (yyval.nd), (yyvsp[-2].nd), (yyvsp[0].nd));
nvars_unnest(p);
p->in_def--;
p->in_single--;
}
#line 8966 "y.tab.c"
break;
case 250: /* arg: defs_head f_opt_arglist_paren '=' arg "'rescue' modifier" arg */
#line 3041 "parse.y"
{
(yyval.nd) = (yyvsp[-5].nd);
void_expr_error(p, (yyvsp[-2].nd));
defn_setup(p, (yyval.nd), (yyvsp[-4].nd), new_mod_rescue(p, (yyvsp[-2].nd), (yyvsp[0].nd)));
nvars_unnest(p);
p->in_def--;
p->in_single--;
}
#line 8979 "y.tab.c"
break;
case 251: /* arg: primary */
#line 3050 "parse.y"
{
(yyval.nd) = (yyvsp[0].nd);
}
#line 8987 "y.tab.c"
break;
case 253: /* aref_args: args trailer */
#line 3057 "parse.y"
{
(yyval.nd) = (yyvsp[-1].nd);
}
#line 8995 "y.tab.c"
break;
case 254: /* aref_args: args comma assocs trailer */
#line 3061 "parse.y"
{
(yyval.nd) = push((yyvsp[-3].nd), new_hash(p, (yyvsp[-1].nd)));
}
#line 9003 "y.tab.c"
break;
case 255: /* aref_args: assocs trailer */
#line 3065 "parse.y"
{
(yyval.nd) = cons(new_hash(p, (yyvsp[-1].nd)), 0);
}
#line 9011 "y.tab.c"
break;
case 256: /* arg_rhs: arg */
#line 3071 "parse.y"
{
(yyval.nd) = (yyvsp[0].nd);
}
#line 9019 "y.tab.c"
break;
case 257: /* arg_rhs: arg "'rescue' modifier" arg */
#line 3075 "parse.y"
{
void_expr_error(p, (yyvsp[-2].nd));
(yyval.nd) = new_mod_rescue(p, (yyvsp[-2].nd), (yyvsp[0].nd));
}
#line 9028 "y.tab.c"
break;
case 258: /* paren_args: '(' opt_call_args ')' */
#line 3082 "parse.y"
{
(yyval.nd) = (yyvsp[-1].nd);
}
#line 9036 "y.tab.c"
break;
case 259: /* paren_args: '(' args comma tBDOT3 rparen */
#line 3086 "parse.y"
{
mrb_sym r = intern_op(mul);
mrb_sym k = intern_op(pow);
mrb_sym b = intern_op(and);
(yyval.nd) = new_callargs(p, push((yyvsp[-3].nd), new_splat(p, new_lvar(p, r))),
list1(cons(new_kw_rest_args(p, 0), new_lvar(p, k))),
new_block_arg(p, new_lvar(p, b)));
}
#line 9049 "y.tab.c"
break;
case 260: /* paren_args: '(' tBDOT3 rparen */
#line 3095 "parse.y"
{
mrb_sym r = intern_op(mul);
mrb_sym k = intern_op(pow);
mrb_sym b = intern_op(and);
if (local_var_p(p, r) && local_var_p(p, k) && local_var_p(p, b)) {
(yyval.nd) = new_callargs(p, list1(new_splat(p, new_lvar(p, r))),
list1(cons(new_kw_rest_args(p, 0), new_lvar(p, k))),
new_block_arg(p, new_lvar(p, b)));
}
else {
yyerror(&(yylsp[-2]), p, "unexpected argument forwarding ...");
(yyval.nd) = 0;
}
}
#line 9068 "y.tab.c"
break;
case 265: /* opt_call_args: args comma */
#line 3118 "parse.y"
{
(yyval.nd) = new_callargs(p,(yyvsp[-1].nd),0,0);
}
#line 9076 "y.tab.c"
break;
case 266: /* opt_call_args: args comma assocs comma */
#line 3122 "parse.y"
{
(yyval.nd) = new_callargs(p,(yyvsp[-3].nd),(yyvsp[-1].nd),0);
}
#line 9084 "y.tab.c"
break;
case 267: /* opt_call_args: assocs comma */
#line 3126 "parse.y"
{
(yyval.nd) = new_callargs(p,0,(yyvsp[-1].nd),0);
}
#line 9092 "y.tab.c"
break;
case 268: /* call_args: command */
#line 3132 "parse.y"
{
void_expr_error(p, (yyvsp[0].nd));
(yyval.nd) = new_callargs(p, list1((yyvsp[0].nd)), 0, 0);
}
#line 9101 "y.tab.c"
break;
case 269: /* call_args: args opt_block_arg */
#line 3137 "parse.y"
{
(yyval.nd) = new_callargs(p, (yyvsp[-1].nd), 0, (yyvsp[0].nd));
}
#line 9109 "y.tab.c"
break;
case 270: /* call_args: assocs opt_block_arg */
#line 3141 "parse.y"
{
(yyval.nd) = new_callargs(p, 0, (yyvsp[-1].nd), (yyvsp[0].nd));
}
#line 9117 "y.tab.c"
break;
case 271: /* call_args: args comma assocs opt_block_arg */
#line 3145 "parse.y"
{
(yyval.nd) = new_callargs(p, (yyvsp[-3].nd), (yyvsp[-1].nd), (yyvsp[0].nd));
}
#line 9125 "y.tab.c"
break;
case 272: /* call_args: block_arg */
#line 3149 "parse.y"
{
(yyval.nd) = new_callargs(p, 0, 0, (yyvsp[0].nd));
}
#line 9133 "y.tab.c"
break;
case 273: /* @9: %empty */
#line 3154 "parse.y"
{
(yyval.stack) = p->cmdarg_stack;
CMDARG_PUSH(1);
}
#line 9142 "y.tab.c"
break;
case 274: /* command_args: @9 call_args */
#line 3159 "parse.y"
{
p->cmdarg_stack = (yyvsp[-1].stack);
(yyval.nd) = (yyvsp[0].nd);
}
#line 9151 "y.tab.c"
break;
case 275: /* block_arg: "&" arg */
#line 3166 "parse.y"
{
(yyval.nd) = new_block_arg(p, (yyvsp[0].nd));
}
#line 9159 "y.tab.c"
break;
case 276: /* block_arg: "&" */
#line 3170 "parse.y"
{
(yyval.nd) = new_block_arg(p, 0);
}
#line 9167 "y.tab.c"
break;
case 277: /* opt_block_arg: comma block_arg */
#line 3176 "parse.y"
{
(yyval.nd) = (yyvsp[0].nd);
}
#line 9175 "y.tab.c"
break;
case 278: /* opt_block_arg: none */
#line 3180 "parse.y"
{
(yyval.nd) = 0;
}
#line 9183 "y.tab.c"
break;
case 280: /* args: arg */
#line 3189 "parse.y"
{
void_expr_error(p, (yyvsp[0].nd));
(yyval.nd) = list1((yyvsp[0].nd));
}
#line 9192 "y.tab.c"
break;
case 281: /* args: "*" */
#line 3194 "parse.y"
{
(yyval.nd) = list1(new_splat(p, new_lvar(p, intern_op(mul))));
}
#line 9200 "y.tab.c"
break;
case 282: /* args: "*" arg */
#line 3198 "parse.y"
{
(yyval.nd) = list1(new_splat(p, (yyvsp[0].nd)));
}
#line 9208 "y.tab.c"
break;
case 283: /* args: args comma arg */
#line 3202 "parse.y"
{
void_expr_error(p, (yyvsp[0].nd));
(yyval.nd) = push((yyvsp[-2].nd), (yyvsp[0].nd));
}
#line 9217 "y.tab.c"
break;
case 284: /* args: args comma "*" */
#line 3207 "parse.y"
{
(yyval.nd) = push((yyvsp[-2].nd), new_splat(p, new_lvar(p, intern_op(mul))));
}
#line 9225 "y.tab.c"
break;
case 285: /* args: args comma "*" arg */
#line 3211 "parse.y"
{
(yyval.nd) = push((yyvsp[-3].nd), new_splat(p, (yyvsp[0].nd)));
}
#line 9233 "y.tab.c"
break;
case 286: /* mrhs: args comma arg */
#line 3217 "parse.y"
{
void_expr_error(p, (yyvsp[0].nd));
(yyval.nd) = push((yyvsp[-2].nd), (yyvsp[0].nd));
}
#line 9242 "y.tab.c"
break;
case 287: /* mrhs: args comma "*" arg */
#line 3222 "parse.y"
{
(yyval.nd) = push((yyvsp[-3].nd), new_splat(p, (yyvsp[0].nd)));
}
#line 9250 "y.tab.c"
break;
case 288: /* mrhs: "*" arg */
#line 3226 "parse.y"
{
(yyval.nd) = list1(new_splat(p, (yyvsp[0].nd)));
}
#line 9258 "y.tab.c"
break;
case 290: /* primary: string */
#line 3233 "parse.y"
{
(yyval.nd) = new_str(p, (yyvsp[0].nd));
}
#line 9266 "y.tab.c"
break;
case 291: /* primary: xstring */
#line 3237 "parse.y"
{
(yyval.nd) = new_xstr(p, (yyvsp[0].nd));
}
#line 9274 "y.tab.c"
break;
case 296: /* primary: "method" */
#line 3245 "parse.y"
{
(yyval.nd) = new_fcall(p, (yyvsp[0].id), 0);
}
#line 9282 "y.tab.c"
break;
case 297: /* @10: %empty */
#line 3249 "parse.y"
{
(yyval.stack) = p->cmdarg_stack;
p->cmdarg_stack = 0;
}
#line 9291 "y.tab.c"
break;
case 298: /* primary: "'begin'" @10 bodystmt "'end'" */
#line 3255 "parse.y"
{
p->cmdarg_stack = (yyvsp[-2].stack);
(yyval.nd) = new_begin(p, (yyvsp[-1].nd));
}
#line 9300 "y.tab.c"
break;
case 299: /* @11: %empty */
#line 3260 "parse.y"
{
(yyval.stack) = p->cmdarg_stack;
p->cmdarg_stack = 0;
}
#line 9309 "y.tab.c"
break;
case 300: /* $@12: %empty */
#line 3264 "parse.y"
{p->lstate = EXPR_ENDARG;}
#line 9315 "y.tab.c"
break;
case 301: /* primary: "(" @11 stmt $@12 rparen */
#line 3265 "parse.y"
{
p->cmdarg_stack = (yyvsp[-3].stack);
(yyval.nd) = (yyvsp[-2].nd);
}
#line 9324 "y.tab.c"
break;
case 302: /* $@13: %empty */
#line 3269 "parse.y"
{p->lstate = EXPR_ENDARG;}
#line 9330 "y.tab.c"
break;
case 303: /* primary: "(" $@13 rparen */
#line 3270 "parse.y"
{
(yyval.nd) = new_nil(p);
}
#line 9338 "y.tab.c"
break;
case 304: /* primary: tLPAREN compstmt ')' */
#line 3274 "parse.y"
{
(yyval.nd) = (yyvsp[-1].nd);
}
#line 9346 "y.tab.c"
break;
case 305: /* primary: primary_value "::" "constant" */
#line 3278 "parse.y"
{
(yyval.nd) = new_colon2(p, (yyvsp[-2].nd), (yyvsp[0].id));
}
#line 9354 "y.tab.c"
break;
case 306: /* primary: tCOLON3 "constant" */
#line 3282 "parse.y"
{
(yyval.nd) = new_colon3(p, (yyvsp[0].id));
}
#line 9362 "y.tab.c"
break;
case 307: /* primary: "[" aref_args ']' */
#line 3286 "parse.y"
{
(yyval.nd) = new_array(p, (yyvsp[-1].nd));
}
#line 9370 "y.tab.c"
break;
case 308: /* primary: tLBRACE assoc_list '}' */
#line 3290 "parse.y"
{
(yyval.nd) = new_hash(p, (yyvsp[-1].nd));
}
#line 9378 "y.tab.c"
break;
case 309: /* primary: "'return'" */
#line 3294 "parse.y"
{
(yyval.nd) = new_return(p, 0);
}
#line 9386 "y.tab.c"
break;
case 310: /* primary: "'yield'" opt_paren_args */
#line 3298 "parse.y"
{
(yyval.nd) = new_yield(p, (yyvsp[0].nd));
}
#line 9394 "y.tab.c"
break;
case 311: /* primary: "'not'" '(' expr rparen */
#line 3302 "parse.y"
{
(yyval.nd) = call_uni_op(p, cond((yyvsp[-1].nd)), "!");
}
#line 9402 "y.tab.c"
break;
case 312: /* primary: "'not'" '(' rparen */
#line 3306 "parse.y"
{
(yyval.nd) = call_uni_op(p, new_nil(p), "!");
}
#line 9410 "y.tab.c"
break;
case 313: /* primary: operation brace_block */
#line 3310 "parse.y"
{
(yyval.nd) = new_fcall(p, (yyvsp[-1].id), new_callargs(p, 0, 0, (yyvsp[0].nd)));
}
#line 9418 "y.tab.c"
break;
case 315: /* primary: method_call brace_block */
#line 3315 "parse.y"
{
call_with_block(p, (yyvsp[-1].nd), (yyvsp[0].nd));
(yyval.nd) = (yyvsp[-1].nd);
}
#line 9427 "y.tab.c"
break;
case 316: /* @14: %empty */
#line 3320 "parse.y"
{
local_nest(p);
nvars_nest(p);
(yyval.num) = p->lpar_beg;
p->lpar_beg = ++p->paren_nest;
}
#line 9438 "y.tab.c"
break;
case 317: /* @15: %empty */
#line 3327 "parse.y"
{
(yyval.stack) = p->cmdarg_stack;
p->cmdarg_stack = 0;
}
#line 9447 "y.tab.c"
break;
case 318: /* primary: "->" @14 f_larglist @15 lambda_body */
#line 3332 "parse.y"
{
p->lpar_beg = (yyvsp[-3].num);
(yyval.nd) = new_lambda(p, (yyvsp[-2].nd), (yyvsp[0].nd));
local_unnest(p);
nvars_unnest(p);
p->cmdarg_stack = (yyvsp[-1].stack);
CMDARG_LEXPOP();
}
#line 9460 "y.tab.c"
break;
case 319: /* primary: "'if'" expr_value then compstmt if_tail "'end'" */
#line 3344 "parse.y"
{
(yyval.nd) = new_if(p, cond((yyvsp[-4].nd)), (yyvsp[-2].nd), (yyvsp[-1].nd));
SET_LINENO((yyval.nd), (yyvsp[-5].num));
}
#line 9469 "y.tab.c"
break;
case 320: /* primary: "'unless'" expr_value then compstmt opt_else "'end'" */
#line 3352 "parse.y"
{
(yyval.nd) = new_if(p, cond((yyvsp[-4].nd)), (yyvsp[-1].nd), (yyvsp[-2].nd));
SET_LINENO((yyval.nd), (yyvsp[-5].num));
}
#line 9478 "y.tab.c"
break;
case 321: /* $@16: %empty */
#line 3356 "parse.y"
{COND_PUSH(1);}
#line 9484 "y.tab.c"
break;
case 322: /* $@17: %empty */
#line 3356 "parse.y"
{COND_POP();}
#line 9490 "y.tab.c"
break;
case 323: /* primary: "'while'" $@16 expr_value do $@17 compstmt "'end'" */
#line 3359 "parse.y"
{
(yyval.nd) = new_while(p, cond((yyvsp[-4].nd)), (yyvsp[-1].nd));
SET_LINENO((yyval.nd), (yyvsp[-6].num));
}
#line 9499 "y.tab.c"
break;
case 324: /* $@18: %empty */
#line 3363 "parse.y"
{COND_PUSH(1);}
#line 9505 "y.tab.c"
break;
case 325: /* $@19: %empty */
#line 3363 "parse.y"
{COND_POP();}
#line 9511 "y.tab.c"
break;
case 326: /* primary: "'until'" $@18 expr_value do $@19 compstmt "'end'" */
#line 3366 "parse.y"
{
(yyval.nd) = new_until(p, cond((yyvsp[-4].nd)), (yyvsp[-1].nd));
SET_LINENO((yyval.nd), (yyvsp[-6].num));
}
#line 9520 "y.tab.c"
break;
case 327: /* primary: "'case'" expr_value opt_terms case_body "'end'" */
#line 3373 "parse.y"
{
(yyval.nd) = new_case(p, (yyvsp[-3].nd), (yyvsp[-1].nd));
}
#line 9528 "y.tab.c"
break;
case 328: /* primary: "'case'" opt_terms case_body "'end'" */
#line 3377 "parse.y"
{
(yyval.nd) = new_case(p, 0, (yyvsp[-1].nd));
}
#line 9536 "y.tab.c"
break;
case 329: /* primary: "'case'" expr_value opt_terms "'in'" p_expr then compstmt in_clauses "'end'" */
#line 3385 "parse.y"
{
node *in_clause = new_in(p, (yyvsp[-4].nd), NULL, (yyvsp[-2].nd), FALSE);
(yyval.nd) = new_case_match(p, (yyvsp[-7].nd), cons(in_clause, (yyvsp[-1].nd)));
}
#line 9545 "y.tab.c"
break;
case 330: /* primary: "'case'" expr_value opt_terms "'in'" p_expr "'if' modifier" expr_value then compstmt in_clauses "'end'" */
#line 3394 "parse.y"
{
node *in_clause = new_in(p, (yyvsp[-6].nd), (yyvsp[-4].nd), (yyvsp[-2].nd), FALSE);
(yyval.nd) = new_case_match(p, (yyvsp[-9].nd), cons(in_clause, (yyvsp[-1].nd)));
}
#line 9554 "y.tab.c"
break;
case 331: /* primary: "'case'" expr_value opt_terms "'in'" p_expr "'unless' modifier" expr_value then compstmt in_clauses "'end'" */
#line 3403 "parse.y"
{
node *in_clause = new_in(p, (yyvsp[-6].nd), (yyvsp[-4].nd), (yyvsp[-2].nd), TRUE);
(yyval.nd) = new_case_match(p, (yyvsp[-9].nd), cons(in_clause, (yyvsp[-1].nd)));
}
#line 9563 "y.tab.c"
break;
case 332: /* $@20: %empty */
#line 3408 "parse.y"
{COND_PUSH(1);}
#line 9569 "y.tab.c"
break;
case 333: /* $@21: %empty */
#line 3410 "parse.y"
{COND_POP();}
#line 9575 "y.tab.c"
break;
case 334: /* primary: "'for'" for_var "'in'" $@20 expr_value do $@21 compstmt "'end'" */
#line 3413 "parse.y"
{
(yyval.nd) = new_for(p, (yyvsp[-7].nd), (yyvsp[-4].nd), (yyvsp[-1].nd));
SET_LINENO((yyval.nd), (yyvsp[-8].num));
}
#line 9584 "y.tab.c"
break;
case 335: /* @22: %empty */
#line 3419 "parse.y"
{
if (p->in_def || p->in_single)
yyerror(&(yylsp[-2]), p, "class definition in method body");
(yyval.nd) = local_switch(p);
nvars_block(p);
}
#line 9595 "y.tab.c"
break;
case 336: /* primary: "'class'" cpath superclass @22 bodystmt "'end'" */
#line 3427 "parse.y"
{
(yyval.nd) = new_class(p, (yyvsp[-4].nd), (yyvsp[-3].nd), (yyvsp[-1].nd));
SET_LINENO((yyval.nd), (yyvsp[-5].num));
local_resume(p, (yyvsp[-2].nd));
nvars_unnest(p);
}
#line 9606 "y.tab.c"
break;
case 337: /* @23: %empty */
#line 3435 "parse.y"
{
(yyval.num) = p->in_def;
p->in_def = 0;
}
#line 9615 "y.tab.c"
break;
case 338: /* @24: %empty */
#line 3440 "parse.y"
{
(yyval.nd) = cons(local_switch(p), int_to_node(p->in_single));
nvars_block(p);
p->in_single = 0;
}
#line 9625 "y.tab.c"
break;
case 339: /* primary: "'class'" "<<" expr @23 term @24 bodystmt "'end'" */
#line 3447 "parse.y"
{
(yyval.nd) = new_sclass(p, (yyvsp[-5].nd), (yyvsp[-1].nd));
SET_LINENO((yyval.nd), (yyvsp[-7].num));
local_resume(p, (yyvsp[-2].nd)->car);
nvars_unnest(p);
p->in_def = (yyvsp[-4].num);
p->in_single = node_to_int((yyvsp[-2].nd)->cdr);
}
#line 9638 "y.tab.c"
break;
case 340: /* @25: %empty */
#line 3457 "parse.y"
{
if (p->in_def || p->in_single)
yyerror(&(yylsp[-1]), p, "module definition in method body");
(yyval.nd) = local_switch(p);
nvars_block(p);
}
#line 9649 "y.tab.c"
break;
case 341: /* primary: "'module'" cpath @25 bodystmt "'end'" */
#line 3465 "parse.y"
{
(yyval.nd) = new_module(p, (yyvsp[-3].nd), (yyvsp[-1].nd));
SET_LINENO((yyval.nd), (yyvsp[-4].num));
local_resume(p, (yyvsp[-2].nd));
nvars_unnest(p);
}
#line 9660 "y.tab.c"
break;
case 342: /* primary: defn_head f_arglist bodystmt "'end'" */
#line 3475 "parse.y"
{
(yyval.nd) = (yyvsp[-3].nd);
defn_setup(p, (yyval.nd), (yyvsp[-2].nd), (yyvsp[-1].nd));
nvars_unnest(p);
p->in_def--;
}
#line 9671 "y.tab.c"
break;
case 343: /* primary: defs_head f_arglist bodystmt "'end'" */
#line 3485 "parse.y"
{
(yyval.nd) = (yyvsp[-3].nd);
defn_setup(p, (yyval.nd), (yyvsp[-2].nd), (yyvsp[-1].nd));
nvars_unnest(p);
p->in_def--;
p->in_single--;
}
#line 9683 "y.tab.c"
break;
case 344: /* primary: "'break'" */
#line 3493 "parse.y"
{
(yyval.nd) = new_break(p, 0);
}
#line 9691 "y.tab.c"
break;
case 345: /* primary: "'next'" */
#line 3497 "parse.y"
{
(yyval.nd) = new_next(p, 0);
}
#line 9699 "y.tab.c"
break;
case 346: /* primary: "'redo'" */
#line 3501 "parse.y"
{
(yyval.nd) = new_redo(p);
}
#line 9707 "y.tab.c"
break;
case 347: /* primary: "'retry'" */
#line 3505 "parse.y"
{
(yyval.nd) = new_retry(p);
}
#line 9715 "y.tab.c"
break;
case 348: /* primary_value: primary */
#line 3511 "parse.y"
{
(yyval.nd) = (yyvsp[0].nd);
if (!(yyval.nd)) (yyval.nd) = new_nil(p);
}
#line 9724 "y.tab.c"
break;
case 355: /* if_tail: "'elsif'" expr_value then compstmt if_tail */
#line 3530 "parse.y"
{
(yyval.nd) = new_if(p, cond((yyvsp[-3].nd)), (yyvsp[-1].nd), (yyvsp[0].nd));
}
#line 9732 "y.tab.c"
break;
case 357: /* opt_else: "'else'" compstmt */
#line 3537 "parse.y"
{
(yyval.nd) = (yyvsp[0].nd);
}
#line 9740 "y.tab.c"
break;
case 358: /* for_var: lhs */
#line 3543 "parse.y"
{
(yyval.nd) = list1(list1((yyvsp[0].nd)));
}
#line 9748 "y.tab.c"
break;
case 360: /* f_margs: f_arg */
#line 3550 "parse.y"
{
(yyval.nd) = list3((yyvsp[0].nd),0,0);
}
#line 9756 "y.tab.c"
break;
case 361: /* f_margs: f_arg ',' "*" f_norm_arg */
#line 3554 "parse.y"
{
(yyval.nd) = list3((yyvsp[-3].nd), new_lvar(p, (yyvsp[0].id)), 0);
}
#line 9764 "y.tab.c"
break;
case 362: /* f_margs: f_arg ',' "*" f_norm_arg ',' f_arg */
#line 3558 "parse.y"
{
(yyval.nd) = list3((yyvsp[-5].nd), new_lvar(p, (yyvsp[-2].id)), (yyvsp[0].nd));
}
#line 9772 "y.tab.c"
break;
case 363: /* f_margs: f_arg ',' "*" */
#line 3562 "parse.y"
{
local_add_f(p, intern_op(mul));
(yyval.nd) = list3((yyvsp[-2].nd), int_to_node(-1), 0);
}
#line 9781 "y.tab.c"
break;
case 364: /* f_margs: f_arg ',' "*" ',' f_arg */
#line 3567 "parse.y"
{
(yyval.nd) = list3((yyvsp[-4].nd), int_to_node(-1), (yyvsp[0].nd));
}
#line 9789 "y.tab.c"
break;
case 365: /* f_margs: "*" f_norm_arg */
#line 3571 "parse.y"
{
(yyval.nd) = list3(0, new_lvar(p, (yyvsp[0].id)), 0);
}
#line 9797 "y.tab.c"
break;
case 366: /* f_margs: "*" f_norm_arg ',' f_arg */
#line 3575 "parse.y"
{
(yyval.nd) = list3(0, new_lvar(p, (yyvsp[-2].id)), (yyvsp[0].nd));
}
#line 9805 "y.tab.c"
break;
case 367: /* f_margs: "*" */
#line 3579 "parse.y"
{
local_add_f(p, intern_op(mul));
(yyval.nd) = list3(0, int_to_node(-1), 0);
}
#line 9814 "y.tab.c"
break;
case 368: /* $@26: %empty */
#line 3584 "parse.y"
{
local_add_f(p, intern_op(mul));
}
#line 9822 "y.tab.c"
break;
case 369: /* f_margs: "*" ',' $@26 f_arg */
#line 3588 "parse.y"
{
(yyval.nd) = list3(0, int_to_node(-1), (yyvsp[0].nd));
}
#line 9830 "y.tab.c"
break;
case 370: /* block_args_tail: f_block_kwarg ',' f_kwrest opt_f_block_arg */
#line 3594 "parse.y"
{
(yyval.nd) = new_args_tail(p, (yyvsp[-3].nd), (yyvsp[-1].id), (yyvsp[0].id));
}
#line 9838 "y.tab.c"
break;
case 371: /* block_args_tail: f_block_kwarg opt_f_block_arg */
#line 3598 "parse.y"
{
(yyval.nd) = new_args_tail(p, (yyvsp[-1].nd), 0, (yyvsp[0].id));
}
#line 9846 "y.tab.c"
break;
case 372: /* block_args_tail: f_kwrest opt_f_block_arg */
#line 3602 "parse.y"
{
(yyval.nd) = new_args_tail(p, 0, (yyvsp[-1].id), (yyvsp[0].id));
}
#line 9854 "y.tab.c"
break;
case 373: /* block_args_tail: f_block_arg */
#line 3606 "parse.y"
{
(yyval.nd) = new_args_tail(p, 0, 0, (yyvsp[0].id));
}
#line 9862 "y.tab.c"
break;
case 374: /* opt_block_args_tail: ',' block_args_tail */
#line 3612 "parse.y"
{
(yyval.nd) = (yyvsp[0].nd);
}
#line 9870 "y.tab.c"
break;
case 375: /* opt_block_args_tail: %empty */
#line 3616 "parse.y"
{
(yyval.nd) = new_args_tail(p, 0, 0, 0);
}
#line 9878 "y.tab.c"
break;
case 376: /* block_param: f_arg ',' f_block_optarg ',' f_rest_arg opt_block_args_tail */
#line 3622 "parse.y"
{
(yyval.nd) = new_args(p, (yyvsp[-5].nd), (yyvsp[-3].nd), (yyvsp[-1].id), 0, (yyvsp[0].nd));
}
#line 9886 "y.tab.c"
break;
case 377: /* block_param: f_arg ',' f_block_optarg ',' f_rest_arg ',' f_arg opt_block_args_tail */
#line 3626 "parse.y"
{
(yyval.nd) = new_args(p, (yyvsp[-7].nd), (yyvsp[-5].nd), (yyvsp[-3].id), (yyvsp[-1].nd), (yyvsp[0].nd));
}
#line 9894 "y.tab.c"
break;
case 378: /* block_param: f_arg ',' f_block_optarg opt_block_args_tail */
#line 3630 "parse.y"
{
(yyval.nd) = new_args(p, (yyvsp[-3].nd), (yyvsp[-1].nd), 0, 0, (yyvsp[0].nd));
}
#line 9902 "y.tab.c"
break;
case 379: /* block_param: f_arg ',' f_block_optarg ',' f_arg opt_block_args_tail */
#line 3634 "parse.y"
{
(yyval.nd) = new_args(p, (yyvsp[-5].nd), (yyvsp[-3].nd), 0, (yyvsp[-1].nd), (yyvsp[0].nd));
}
#line 9910 "y.tab.c"
break;
case 380: /* block_param: f_arg ',' f_rest_arg opt_block_args_tail */
#line 3638 "parse.y"
{
(yyval.nd) = new_args(p, (yyvsp[-3].nd), 0, (yyvsp[-1].id), 0, (yyvsp[0].nd));
}
#line 9918 "y.tab.c"
break;
case 381: /* block_param: f_arg ',' opt_block_args_tail */
#line 3642 "parse.y"
{
(yyval.nd) = new_args(p, (yyvsp[-2].nd), 0, 0, 0, (yyvsp[0].nd));
}
#line 9926 "y.tab.c"
break;
case 382: /* block_param: f_arg ',' f_rest_arg ',' f_arg opt_block_args_tail */
#line 3646 "parse.y"
{
(yyval.nd) = new_args(p, (yyvsp[-5].nd), 0, (yyvsp[-3].id), (yyvsp[-1].nd), (yyvsp[0].nd));
}
#line 9934 "y.tab.c"
break;
case 383: /* block_param: f_arg opt_block_args_tail */
#line 3650 "parse.y"
{
(yyval.nd) = new_args(p, (yyvsp[-1].nd), 0, 0, 0, (yyvsp[0].nd));
}
#line 9942 "y.tab.c"
break;
case 384: /* block_param: f_block_optarg ',' f_rest_arg opt_block_args_tail */
#line 3654 "parse.y"
{
(yyval.nd) = new_args(p, 0, (yyvsp[-3].nd), (yyvsp[-1].id), 0, (yyvsp[0].nd));
}
#line 9950 "y.tab.c"
break;
case 385: /* block_param: f_block_optarg ',' f_rest_arg ',' f_arg opt_block_args_tail */
#line 3658 "parse.y"
{
(yyval.nd) = new_args(p, 0, (yyvsp[-5].nd), (yyvsp[-3].id), (yyvsp[-1].nd), (yyvsp[0].nd));
}
#line 9958 "y.tab.c"
break;
case 386: /* block_param: f_block_optarg opt_block_args_tail */
#line 3662 "parse.y"
{
(yyval.nd) = new_args(p, 0, (yyvsp[-1].nd), 0, 0, (yyvsp[0].nd));
}
#line 9966 "y.tab.c"
break;
case 387: /* block_param: f_block_optarg ',' f_arg opt_block_args_tail */
#line 3666 "parse.y"
{
(yyval.nd) = new_args(p, 0, (yyvsp[-3].nd), 0, (yyvsp[-1].nd), (yyvsp[0].nd));
}
#line 9974 "y.tab.c"
break;
case 388: /* block_param: f_rest_arg opt_block_args_tail */
#line 3670 "parse.y"
{
(yyval.nd) = new_args(p, 0, 0, (yyvsp[-1].id), 0, (yyvsp[0].nd));
}
#line 9982 "y.tab.c"
break;
case 389: /* block_param: f_rest_arg ',' f_arg opt_block_args_tail */
#line 3674 "parse.y"
{
(yyval.nd) = new_args(p, 0, 0, (yyvsp[-3].id), (yyvsp[-1].nd), (yyvsp[0].nd));
}
#line 9990 "y.tab.c"
break;
case 390: /* block_param: block_args_tail */
#line 3678 "parse.y"
{
(yyval.nd) = new_args(p, 0, 0, 0, 0, (yyvsp[0].nd));
}
#line 9998 "y.tab.c"
break;
case 391: /* opt_block_param: none */
#line 3684 "parse.y"
{
local_add_blk(p);
(yyval.nd) = 0;
}
#line 10007 "y.tab.c"
break;
case 392: /* opt_block_param: block_param_def */
#line 3689 "parse.y"
{
p->cmd_start = TRUE;
(yyval.nd) = (yyvsp[0].nd);
}
#line 10016 "y.tab.c"
break;
case 393: /* $@27: %empty */
#line 3695 "parse.y"
{local_add_blk(p);}
#line 10022 "y.tab.c"
break;
case 394: /* block_param_def: '|' $@27 opt_bv_decl '|' */
#line 3696 "parse.y"
{
(yyval.nd) = 0;
}
#line 10030 "y.tab.c"
break;
case 395: /* block_param_def: "||" */
#line 3700 "parse.y"
{
local_add_blk(p);
(yyval.nd) = 0;
}
#line 10039 "y.tab.c"
break;
case 396: /* block_param_def: '|' block_param opt_bv_decl '|' */
#line 3705 "parse.y"
{
(yyval.nd) = (yyvsp[-2].nd);
}
#line 10047 "y.tab.c"
break;
case 397: /* opt_bv_decl: opt_nl */
#line 3711 "parse.y"
{
(yyval.nd) = 0;
}
#line 10055 "y.tab.c"
break;
case 398: /* opt_bv_decl: opt_nl ';' bv_decls opt_nl */
#line 3715 "parse.y"
{
(yyval.nd) = 0;
}
#line 10063 "y.tab.c"
break;
case 401: /* bvar: "local variable or method" */
#line 3725 "parse.y"
{
local_add_f(p, (yyvsp[0].id));
new_bv(p, (yyvsp[0].id));
}
#line 10072 "y.tab.c"
break;
case 403: /* f_larglist: '(' f_args opt_bv_decl ')' */
#line 3733 "parse.y"
{
(yyval.nd) = (yyvsp[-2].nd);
}
#line 10080 "y.tab.c"
break;
case 404: /* f_larglist: f_args */
#line 3737 "parse.y"
{
(yyval.nd) = (yyvsp[0].nd);
}
#line 10088 "y.tab.c"
break;
case 405: /* lambda_body: tLAMBEG compstmt '}' */
#line 3743 "parse.y"
{
(yyval.nd) = (yyvsp[-1].nd);
}
#line 10096 "y.tab.c"
break;
case 406: /* lambda_body: "'do' for lambda" bodystmt "'end'" */
#line 3747 "parse.y"
{
(yyval.nd) = (yyvsp[-1].nd);
}
#line 10104 "y.tab.c"
break;
case 407: /* @28: %empty */
#line 3753 "parse.y"
{
local_nest(p);
nvars_nest(p);
(yyval.num) = p->lineno;
}
#line 10114 "y.tab.c"
break;
case 408: /* do_block: "'do' for block" @28 opt_block_param bodystmt "'end'" */
#line 3761 "parse.y"
{
(yyval.nd) = new_block(p,(yyvsp[-2].nd),(yyvsp[-1].nd));
SET_LINENO((yyval.nd), (yyvsp[-3].num));
local_unnest(p);
nvars_unnest(p);
}
#line 10125 "y.tab.c"
break;
case 409: /* block_call: command do_block */
#line 3770 "parse.y"
{
call_with_block(p, (yyvsp[-1].nd), (yyvsp[0].nd));
(yyval.nd) = (yyvsp[-1].nd);
}
#line 10134 "y.tab.c"
break;
case 410: /* block_call: block_call call_op2 operation2 opt_paren_args */
#line 3775 "parse.y"
{
(yyval.nd) = new_call(p, (yyvsp[-3].nd), (yyvsp[-1].id), (yyvsp[0].nd), (yyvsp[-2].num));
}
#line 10142 "y.tab.c"
break;
case 411: /* block_call: block_call call_op2 operation2 opt_paren_args brace_block */
#line 3779 "parse.y"
{
(yyval.nd) = new_call(p, (yyvsp[-4].nd), (yyvsp[-2].id), (yyvsp[-1].nd), (yyvsp[-3].num));
call_with_block(p, (yyval.nd), (yyvsp[0].nd));
}
#line 10151 "y.tab.c"
break;
case 412: /* block_call: block_call call_op2 operation2 command_args do_block */
#line 3784 "parse.y"
{
(yyval.nd) = new_call(p, (yyvsp[-4].nd), (yyvsp[-2].id), (yyvsp[-1].nd), (yyvsp[-3].num));
call_with_block(p, (yyval.nd), (yyvsp[0].nd));
}
#line 10160 "y.tab.c"
break;
case 413: /* method_call: operation paren_args */
#line 3791 "parse.y"
{
(yyval.nd) = new_fcall(p, (yyvsp[-1].id), (yyvsp[0].nd));
}
#line 10168 "y.tab.c"
break;
case 414: /* method_call: primary_value call_op operation2 opt_paren_args */
#line 3795 "parse.y"
{
(yyval.nd) = new_call(p, (yyvsp[-3].nd), (yyvsp[-1].id), (yyvsp[0].nd), (yyvsp[-2].num));
}
#line 10176 "y.tab.c"
break;
case 415: /* method_call: primary_value "::" operation2 paren_args */
#line 3799 "parse.y"
{
(yyval.nd) = new_call(p, (yyvsp[-3].nd), (yyvsp[-1].id), (yyvsp[0].nd), tCOLON2);
}
#line 10184 "y.tab.c"
break;
case 416: /* method_call: primary_value "::" operation3 */
#line 3803 "parse.y"
{
(yyval.nd) = new_call(p, (yyvsp[-2].nd), (yyvsp[0].id), 0, tCOLON2);
}
#line 10192 "y.tab.c"
break;
case 417: /* method_call: primary_value call_op paren_args */
#line 3807 "parse.y"
{
(yyval.nd) = new_call(p, (yyvsp[-2].nd), MRB_SYM_2(p->mrb, call), (yyvsp[0].nd), (yyvsp[-1].num));
}
#line 10200 "y.tab.c"
break;
case 418: /* method_call: primary_value "::" paren_args */
#line 3811 "parse.y"
{
(yyval.nd) = new_call(p, (yyvsp[-2].nd), MRB_SYM_2(p->mrb, call), (yyvsp[0].nd), tCOLON2);
}
#line 10208 "y.tab.c"
break;
case 419: /* method_call: "'super'" paren_args */
#line 3815 "parse.y"
{
(yyval.nd) = new_super(p, (yyvsp[0].nd));
}
#line 10216 "y.tab.c"
break;
case 420: /* method_call: "'super'" */
#line 3819 "parse.y"
{
(yyval.nd) = new_zsuper(p);
}
#line 10224 "y.tab.c"
break;
case 421: /* method_call: primary_value '[' opt_call_args ']' */
#line 3823 "parse.y"
{
(yyval.nd) = new_call(p, (yyvsp[-3].nd), intern_op(aref), (yyvsp[-1].nd), '.');
}
#line 10232 "y.tab.c"
break;
case 422: /* @29: %empty */
#line 3829 "parse.y"
{
local_nest(p);
nvars_nest(p);
(yyval.num) = p->lineno;
}
#line 10242 "y.tab.c"
break;
case 423: /* brace_block: '{' @29 opt_block_param compstmt '}' */
#line 3836 "parse.y"
{
(yyval.nd) = new_block(p,(yyvsp[-2].nd),(yyvsp[-1].nd));
SET_LINENO((yyval.nd), (yyvsp[-3].num));
local_unnest(p);
nvars_unnest(p);
}
#line 10253 "y.tab.c"
break;
case 424: /* @30: %empty */
#line 3843 "parse.y"
{
local_nest(p);
nvars_nest(p);
(yyval.num) = p->lineno;
}
#line 10263 "y.tab.c"
break;
case 425: /* brace_block: "'do'" @30 opt_block_param bodystmt "'end'" */
#line 3850 "parse.y"
{
(yyval.nd) = new_block(p,(yyvsp[-2].nd),(yyvsp[-1].nd));
SET_LINENO((yyval.nd), (yyvsp[-3].num));
local_unnest(p);
nvars_unnest(p);
}
#line 10274 "y.tab.c"
break;
case 426: /* case_body: "'when'" args then compstmt cases */
#line 3861 "parse.y"
{
(yyval.nd) = cons(cons((yyvsp[-3].nd), (yyvsp[-1].nd)), (yyvsp[0].nd));
}
#line 10282 "y.tab.c"
break;
case 427: /* cases: opt_else */
#line 3867 "parse.y"
{
if ((yyvsp[0].nd)) {
(yyval.nd) = cons(cons(0, (yyvsp[0].nd)), 0);
}
else {
(yyval.nd) = 0;
}
}
#line 10295 "y.tab.c"
break;
case 429: /* in_clauses: opt_else */
#line 3881 "parse.y"
{
(yyval.nd) = (yyvsp[0].nd) ? list1(new_in(p, NULL, NULL, (yyvsp[0].nd), FALSE)) : 0;
}
#line 10303 "y.tab.c"
break;
case 430: /* $@31: %empty */
#line 3884 "parse.y"
{p->in_kwarg--;}
#line 10309 "y.tab.c"
break;
case 431: /* in_clauses: "'in'" p_expr $@31 then compstmt in_clauses */
#line 3885 "parse.y"
{
node *in_clause = new_in(p, (yyvsp[-4].nd), NULL, (yyvsp[-1].nd), FALSE);
(yyval.nd) = cons(in_clause, (yyvsp[0].nd));
}
#line 10318 "y.tab.c"
break;
case 432: /* $@32: %empty */
#line 3889 "parse.y"
{p->in_kwarg--;}
#line 10324 "y.tab.c"
break;
case 433: /* in_clauses: "'in'" p_expr $@32 "'if' modifier" expr_value then compstmt in_clauses */
#line 3890 "parse.y"
{
node *in_clause = new_in(p, (yyvsp[-6].nd), (yyvsp[-3].nd), (yyvsp[-1].nd), FALSE);
(yyval.nd) = cons(in_clause, (yyvsp[0].nd));
}
#line 10333 "y.tab.c"
break;
case 434: /* $@33: %empty */
#line 3894 "parse.y"
{p->in_kwarg--;}
#line 10339 "y.tab.c"
break;
case 435: /* in_clauses: "'in'" p_expr $@33 "'unless' modifier" expr_value then compstmt in_clauses */
#line 3895 "parse.y"
{
node *in_clause = new_in(p, (yyvsp[-6].nd), (yyvsp[-3].nd), (yyvsp[-1].nd), TRUE);
(yyval.nd) = cons(in_clause, (yyvsp[0].nd));
}
#line 10348 "y.tab.c"
break;
case 437: /* p_expr: p_args_head p_as */
#line 3906 "parse.y"
{
(yyval.nd) = new_pat_array(p, push((yyvsp[-1].nd), (yyvsp[0].nd)), 0, 0);
}
#line 10356 "y.tab.c"
break;
case 438: /* p_expr: p_args_head p_rest */
#line 3910 "parse.y"
{
(yyval.nd) = new_pat_array(p, (yyvsp[-1].nd), (yyvsp[0].nd), 0);
}
#line 10364 "y.tab.c"
break;
case 439: /* p_expr: p_args_head p_rest ',' p_args_post */
#line 3914 "parse.y"
{
(yyval.nd) = new_pat_array(p, (yyvsp[-3].nd), (yyvsp[-2].nd), (yyvsp[0].nd));
}
#line 10372 "y.tab.c"
break;
case 440: /* p_expr: p_rest */
#line 3918 "parse.y"
{
(yyval.nd) = new_pat_array(p, 0, (yyvsp[0].nd), 0);
}
#line 10380 "y.tab.c"
break;
case 441: /* p_expr: p_rest ',' p_args_post */
#line 3922 "parse.y"
{
(yyval.nd) = new_pat_array(p, 0, (yyvsp[-2].nd), (yyvsp[0].nd));
}
#line 10388 "y.tab.c"
break;
case 442: /* p_expr: p_hash_elems */
#line 3926 "parse.y"
{
/* Brace-less hash pattern: in a:, b: x */
(yyval.nd) = new_pat_hash(p, (yyvsp[0].nd), 0);
}
#line 10397 "y.tab.c"
break;
case 443: /* p_expr: p_hash_elems ',' p_kwrest */
#line 3931 "parse.y"
{
/* Brace-less hash pattern with kwrest: in a:, **rest */
(yyval.nd) = new_pat_hash(p, (yyvsp[-2].nd), (yyvsp[0].nd));
}
#line 10406 "y.tab.c"
break;
case 444: /* p_expr: p_kwrest */
#line 3936 "parse.y"
{
/* Brace-less kwrest only: in **rest */
(yyval.nd) = new_pat_hash(p, 0, (yyvsp[0].nd));
}
#line 10415 "y.tab.c"
break;
case 445: /* p_args_head: p_as ',' */
#line 3944 "parse.y"
{
(yyval.nd) = list1((yyvsp[-1].nd));
}
#line 10423 "y.tab.c"
break;
case 446: /* p_args_head: p_args_head p_as ',' */
#line 3948 "parse.y"
{
(yyval.nd) = push((yyvsp[-2].nd), (yyvsp[-1].nd));
}
#line 10431 "y.tab.c"
break;
case 447: /* p_args_post: p_as */
#line 3955 "parse.y"
{
(yyval.nd) = list1((yyvsp[0].nd));
}
#line 10439 "y.tab.c"
break;
case 448: /* p_args_post: p_args_post ',' p_as */
#line 3959 "parse.y"
{
(yyval.nd) = push((yyvsp[-2].nd), (yyvsp[0].nd));
}
#line 10447 "y.tab.c"
break;
case 450: /* p_as: p_alt "=>" "local variable or method" */
#line 3966 "parse.y"
{
(yyval.nd) = new_pat_as(p, (yyvsp[-2].nd), (yyvsp[0].id));
}
#line 10455 "y.tab.c"
break;
case 452: /* p_alt: p_alt '|' p_value */
#line 3973 "parse.y"
{
(yyval.nd) = new_pat_alt(p, (yyvsp[-2].nd), (yyvsp[0].nd));
}
#line 10463 "y.tab.c"
break;
case 454: /* p_value: numeric */
#line 3980 "parse.y"
{
(yyval.nd) = new_pat_value(p, (yyvsp[0].nd));
}
#line 10471 "y.tab.c"
break;
case 455: /* p_value: symbol */
#line 3984 "parse.y"
{
(yyval.nd) = new_pat_value(p, (yyvsp[0].nd));
}
#line 10479 "y.tab.c"
break;
case 456: /* p_value: tSTRING */
#line 3988 "parse.y"
{
(yyval.nd) = new_pat_value(p, (yyvsp[0].nd));
}
#line 10487 "y.tab.c"
break;
case 457: /* p_value: "'nil'" */
#line 3992 "parse.y"
{
(yyval.nd) = new_pat_value(p, new_nil(p));
}
#line 10495 "y.tab.c"
break;
case 458: /* p_value: "'true'" */
#line 3996 "parse.y"
{
(yyval.nd) = new_pat_value(p, new_true(p));
}
#line 10503 "y.tab.c"
break;
case 459: /* p_value: "'false'" */
#line 4000 "parse.y"
{
(yyval.nd) = new_pat_value(p, new_false(p));
}
#line 10511 "y.tab.c"
break;
case 460: /* p_value: p_const */
#line 4004 "parse.y"
{
(yyval.nd) = new_pat_value(p, (yyvsp[0].nd));
}
#line 10519 "y.tab.c"
break;
case 463: /* p_value: '^' "local variable or method" */
#line 4010 "parse.y"
{
(yyval.nd) = new_pat_pin(p, (yyvsp[0].id));
}
#line 10527 "y.tab.c"
break;
case 464: /* p_array: "[" p_array_body ']' */
#line 4017 "parse.y"
{
(yyval.nd) = (yyvsp[-1].nd);
}
#line 10535 "y.tab.c"
break;
case 465: /* p_array: "[" ']' */
#line 4021 "parse.y"
{
(yyval.nd) = new_pat_array(p, 0, 0, 0);
}
#line 10543 "y.tab.c"
break;
case 466: /* p_array_body: p_array_elems */
#line 4028 "parse.y"
{
/* Just pre elements, no rest */
(yyval.nd) = new_pat_array(p, (yyvsp[0].nd), 0, 0);
}
#line 10552 "y.tab.c"
break;
case 467: /* p_array_body: p_array_elems ',' p_rest */
#line 4033 "parse.y"
{
/* Pre elements + rest, no post */
(yyval.nd) = new_pat_array(p, (yyvsp[-2].nd), (yyvsp[0].nd), 0);
}
#line 10561 "y.tab.c"
break;
case 468: /* p_array_body: p_array_elems ',' p_rest ',' p_array_elems */
#line 4038 "parse.y"
{
/* Pre + rest + post */
(yyval.nd) = new_pat_array(p, (yyvsp[-4].nd), (yyvsp[-2].nd), (yyvsp[0].nd));
}
#line 10570 "y.tab.c"
break;
case 469: /* p_array_body: p_rest */
#line 4043 "parse.y"
{
/* Just rest, no pre or post */
(yyval.nd) = new_pat_array(p, 0, (yyvsp[0].nd), 0);
}
#line 10579 "y.tab.c"
break;
case 470: /* p_array_body: p_rest ',' p_array_elems */
#line 4048 "parse.y"
{
/* Rest + post, no pre */
(yyval.nd) = new_pat_array(p, 0, (yyvsp[-2].nd), (yyvsp[0].nd));
}
#line 10588 "y.tab.c"
break;
case 471: /* p_array_body: p_rest ',' p_array_elems ',' p_rest */
#line 4053 "parse.y"
{
/* Find pattern: [*pre, elems, *post] */
(yyval.nd) = new_pat_find(p, (yyvsp[-4].nd), (yyvsp[-2].nd), (yyvsp[0].nd));
}
#line 10597 "y.tab.c"
break;
case 472: /* p_array_elems: p_as */
#line 4061 "parse.y"
{
(yyval.nd) = list1((yyvsp[0].nd));
}
#line 10605 "y.tab.c"
break;
case 473: /* p_array_elems: p_array_elems ',' p_as */
#line 4065 "parse.y"
{
(yyval.nd) = push((yyvsp[-2].nd), (yyvsp[0].nd));
}
#line 10613 "y.tab.c"
break;
case 474: /* p_rest: "*" "local variable or method" */
#line 4072 "parse.y"
{
(yyval.nd) = new_pat_var(p, (yyvsp[0].id));
}
#line 10621 "y.tab.c"
break;
case 475: /* p_rest: "*" */
#line 4076 "parse.y"
{
/* Anonymous rest pattern */
(yyval.nd) = (node*)-1;
}
#line 10630 "y.tab.c"
break;
case 476: /* p_const: "constant" */
#line 4084 "parse.y"
{
(yyval.nd) = new_const(p, (yyvsp[0].id));
}
#line 10638 "y.tab.c"
break;
case 477: /* p_const: p_const "::" "constant" */
#line 4088 "parse.y"
{
(yyval.nd) = new_colon2(p, (yyvsp[-2].nd), (yyvsp[0].id));
}
#line 10646 "y.tab.c"
break;
case 478: /* p_const: tCOLON3 "constant" */
#line 4092 "parse.y"
{
(yyval.nd) = new_colon3(p, (yyvsp[0].id));
}
#line 10654 "y.tab.c"
break;
case 479: /* p_hash: tLBRACE p_hash_body '}' */
#line 4099 "parse.y"
{
(yyval.nd) = (yyvsp[-1].nd);
}
#line 10662 "y.tab.c"
break;
case 480: /* p_hash: tLBRACE '}' */
#line 4103 "parse.y"
{
(yyval.nd) = new_pat_hash(p, 0, 0);
}
#line 10670 "y.tab.c"
break;
case 481: /* p_hash_body: p_hash_elems */
#line 4110 "parse.y"
{
(yyval.nd) = new_pat_hash(p, (yyvsp[0].nd), 0);
}
#line 10678 "y.tab.c"
break;
case 482: /* p_hash_body: p_hash_elems ',' p_kwrest */
#line 4114 "parse.y"
{
(yyval.nd) = new_pat_hash(p, (yyvsp[-2].nd), (yyvsp[0].nd));
}
#line 10686 "y.tab.c"
break;
case 483: /* p_hash_body: p_kwrest */
#line 4118 "parse.y"
{
(yyval.nd) = new_pat_hash(p, 0, (yyvsp[0].nd));
}
#line 10694 "y.tab.c"
break;
case 484: /* p_hash_elems: p_hash_elem */
#line 4125 "parse.y"
{
(yyval.nd) = list1((yyvsp[0].nd));
}
#line 10702 "y.tab.c"
break;
case 485: /* p_hash_elems: p_hash_elems ',' p_hash_elem */
#line 4129 "parse.y"
{
(yyval.nd) = push((yyvsp[-2].nd), (yyvsp[0].nd));
}
#line 10710 "y.tab.c"
break;
case 486: /* p_hash_elem: "local variable or method" "label" p_as */
#line 4137 "parse.y"
{
/* {key: pattern} */
(yyval.nd) = cons(new_sym(p, (yyvsp[-2].id)), (yyvsp[0].nd));
}
#line 10719 "y.tab.c"
break;
case 487: /* p_hash_elem: "local variable or method" "label" */
#line 4142 "parse.y"
{
/* {key:} shorthand - binds to variable with same name */
(yyval.nd) = cons(new_sym(p, (yyvsp[-1].id)), new_pat_var(p, (yyvsp[-1].id)));
}
#line 10728 "y.tab.c"
break;
case 488: /* p_hash_elem: symbol "=>" p_as */
#line 4147 "parse.y"
{
/* {:"key" => pattern} or {:key => pattern} */
(yyval.nd) = cons((yyvsp[-2].nd), (yyvsp[0].nd));
}
#line 10737 "y.tab.c"
break;
case 489: /* p_kwrest: "**" "local variable or method" */
#line 4155 "parse.y"
{
(yyval.nd) = new_pat_var(p, (yyvsp[0].id));
}
#line 10745 "y.tab.c"
break;
case 490: /* p_kwrest: "**" "'nil'" */
#line 4159 "parse.y"
{
/* **nil - exact match, no extra keys allowed */
(yyval.nd) = (node*)-1;
}
#line 10754 "y.tab.c"
break;
case 491: /* p_kwrest: "**" */
#line 4164 "parse.y"
{
/* ** - anonymous rest, discards extra keys */
(yyval.nd) = (node*)-2;
}
#line 10763 "y.tab.c"
break;
case 492: /* p_var: "local variable or method" */
#line 4171 "parse.y"
{
(yyval.nd) = new_pat_var(p, (yyvsp[0].id));
}
#line 10771 "y.tab.c"
break;
case 493: /* opt_rescue: "'rescue'" exc_list exc_var then compstmt opt_rescue */
#line 4179 "parse.y"
{
(yyval.nd) = list1(list3((yyvsp[-4].nd), (yyvsp[-3].nd), (yyvsp[-1].nd)));
if ((yyvsp[0].nd)) (yyval.nd) = append((yyval.nd), (yyvsp[0].nd));
}
#line 10780 "y.tab.c"
break;
case 495: /* exc_list: arg */
#line 4187 "parse.y"
{
(yyval.nd) = list1((yyvsp[0].nd));
}
#line 10788 "y.tab.c"
break;
case 498: /* exc_var: "=>" lhs */
#line 4195 "parse.y"
{
(yyval.nd) = (yyvsp[0].nd);
}
#line 10796 "y.tab.c"
break;
case 500: /* opt_ensure: "'ensure'" compstmt */
#line 4202 "parse.y"
{
(yyval.nd) = (yyvsp[0].nd);
}
#line 10804 "y.tab.c"
break;
case 507: /* string: string string_fragment */
#line 4216 "parse.y"
{
(yyval.nd) = append((yyvsp[-1].nd), (yyvsp[0].nd));
}
#line 10812 "y.tab.c"
break;
case 508: /* string_fragment: "character literal" */
#line 4222 "parse.y"
{
/* tCHAR is (len . str), wrap as cons list */
(yyval.nd) = list1((yyvsp[0].nd));
}
#line 10821 "y.tab.c"
break;
case 509: /* string_fragment: tSTRING */
#line 4227 "parse.y"
{
/* tSTRING is (len . str), wrap as cons list */
(yyval.nd) = list1((yyvsp[0].nd));
}
#line 10830 "y.tab.c"
break;
case 510: /* string_fragment: "string literal" tSTRING */
#line 4232 "parse.y"
{
/* $2 is (len . str), wrap as cons list */
(yyval.nd) = list1((yyvsp[0].nd));
}
#line 10839 "y.tab.c"
break;
case 511: /* string_fragment: "string literal" string_rep tSTRING */
#line 4237 "parse.y"
{
(yyval.nd) = push((yyvsp[-1].nd), (yyvsp[0].nd));
}
#line 10847 "y.tab.c"
break;
case 513: /* string_rep: string_rep string_interp */
#line 4244 "parse.y"
{
(yyval.nd) = append((yyvsp[-1].nd), (yyvsp[0].nd));
}
#line 10855 "y.tab.c"
break;
case 514: /* string_interp: tSTRING_MID */
#line 4250 "parse.y"
{
/* $1 is already in (len . str) format */
(yyval.nd) = list1((yyvsp[0].nd));
}
#line 10864 "y.tab.c"
break;
case 515: /* @34: %empty */
#line 4255 "parse.y"
{
(yyval.nd) = push_strterm(p);
}
#line 10872 "y.tab.c"
break;
case 516: /* string_interp: tSTRING_PART @34 compstmt '}' */
#line 4260 "parse.y"
{
pop_strterm(p,(yyvsp[-2].nd));
/* $1 is already in (len . str) format, create (-1 . node) for expression */
node *expr_elem = cons(int_to_node(-1), (yyvsp[-1].nd));
(yyval.nd) = list2((yyvsp[-3].nd), expr_elem);
}
#line 10883 "y.tab.c"
break;
case 517: /* string_interp: tLITERAL_DELIM */
#line 4267 "parse.y"
{
(yyval.nd) = list1(new_literal_delim(p));
}
#line 10891 "y.tab.c"
break;
case 518: /* string_interp: tHD_LITERAL_DELIM heredoc_bodies */
#line 4271 "parse.y"
{
(yyval.nd) = list1(new_literal_delim(p));
}
#line 10899 "y.tab.c"
break;
case 519: /* xstring: tXSTRING_BEG tXSTRING */
#line 4277 "parse.y"
{
(yyval.nd) = cons((yyvsp[0].nd), (node*)NULL);
}
#line 10907 "y.tab.c"
break;
case 520: /* xstring: tXSTRING_BEG string_rep tXSTRING */
#line 4281 "parse.y"
{
(yyval.nd) = push((yyvsp[-1].nd), (yyvsp[0].nd));
}
#line 10915 "y.tab.c"
break;
case 521: /* regexp: tREGEXP_BEG tREGEXP */
#line 4287 "parse.y"
{
node *data = (yyvsp[0].nd); /* ((len . pattern) . (flags . encoding)) */
const char *flags = (const char*)data->cdr->car;
const char *encoding = (const char*)data->cdr->cdr;
/* Use data->car directly as pattern_list: (len . pattern) */
node *pattern_list = cons(data->car, (node*)NULL);
(yyval.nd) = new_regx(p, pattern_list, flags, encoding);
}
#line 10928 "y.tab.c"
break;
case 522: /* regexp: tREGEXP_BEG string_rep tREGEXP */
#line 4296 "parse.y"
{
node *data = (yyvsp[0].nd); /* ((len . pattern) . (flags . encoding)) */
const char *flags = (const char*)data->cdr->car;
const char *encoding = (const char*)data->cdr->cdr;
/* Append the pattern from $3->car to the string list $2 */
node *complete_list = push((yyvsp[-1].nd), data->car);
(yyval.nd) = new_regx(p, complete_list, flags, encoding);
}
#line 10941 "y.tab.c"
break;
case 526: /* heredoc_body: tHEREDOC_END */
#line 4314 "parse.y"
{
parser_heredoc_info *info = parsing_heredoc_info(p);
info->doc = push(info->doc, new_str_empty(p));
heredoc_end(p);
}
#line 10951 "y.tab.c"
break;
case 527: /* heredoc_body: heredoc_string_rep tHEREDOC_END */
#line 4320 "parse.y"
{
heredoc_end(p);
}
#line 10959 "y.tab.c"
break;
case 530: /* heredoc_string_interp: tHD_STRING_MID */
#line 4330 "parse.y"
{
parser_heredoc_info *info = parsing_heredoc_info(p);
info->doc = push(info->doc, (yyvsp[0].nd));
heredoc_treat_nextline(p);
}
#line 10969 "y.tab.c"
break;
case 531: /* @35: %empty */
#line 4336 "parse.y"
{
(yyval.nd) = push_strterm(p);
}
#line 10977 "y.tab.c"
break;
case 532: /* heredoc_string_interp: tHD_STRING_PART @35 compstmt '}' */
#line 4341 "parse.y"
{
pop_strterm(p, (yyvsp[-2].nd));
parser_heredoc_info *info = parsing_heredoc_info(p);
/* $1 is already in (len . str) format, create (-1 . node) for expression */
node *expr_elem = cons(int_to_node(-1), (yyvsp[-1].nd));
info->doc = push(push(info->doc, (yyvsp[-3].nd)), expr_elem);
}
#line 10989 "y.tab.c"
break;
case 533: /* words: tWORDS_BEG tSTRING */
#line 4351 "parse.y"
{
(yyval.nd) = new_words(p, list1((yyvsp[0].nd)));
}
#line 10997 "y.tab.c"
break;
case 534: /* words: tWORDS_BEG string_rep tSTRING */
#line 4355 "parse.y"
{
node *n = (yyvsp[-1].nd);
n = push(n, (yyvsp[0].nd));
(yyval.nd) = new_words(p, n);
}
#line 11007 "y.tab.c"
break;
case 535: /* symbol: basic_symbol */
#line 4363 "parse.y"
{
(yyval.nd) = new_sym(p, (yyvsp[0].id));
}
#line 11015 "y.tab.c"
break;
case 536: /* symbol: "symbol" "string literal" string_rep tSTRING */
#line 4367 "parse.y"
{
node *n = (yyvsp[-1].nd);
p->lstate = EXPR_ENDARG;
if (node_to_int((yyvsp[0].nd)->car) > 0) {
n = push(n, (yyvsp[0].nd));
}
else {
cons_free((yyvsp[0].nd));
}
(yyval.nd) = new_dsym(p, n);
}
#line 11031 "y.tab.c"
break;
case 537: /* symbol: "symbol" "numbered parameter" */
#line 4379 "parse.y"
{
mrb_sym sym = intern_numparam((yyvsp[0].num));
(yyval.nd) = new_sym(p, sym);
}
#line 11040 "y.tab.c"
break;
case 538: /* basic_symbol: "symbol" sym */
#line 4386 "parse.y"
{
p->lstate = EXPR_END;
(yyval.id) = (yyvsp[0].id);
}
#line 11049 "y.tab.c"
break;
case 543: /* sym: tSTRING */
#line 4397 "parse.y"
{
(yyval.id) = new_strsym(p, (yyvsp[0].nd));
}
#line 11057 "y.tab.c"
break;
case 544: /* sym: "string literal" tSTRING */
#line 4401 "parse.y"
{
(yyval.id) = new_strsym(p, (yyvsp[0].nd));
}
#line 11065 "y.tab.c"
break;
case 545: /* symbols: tSYMBOLS_BEG tSTRING */
#line 4407 "parse.y"
{
(yyval.nd) = new_symbols(p, list1((yyvsp[0].nd)));
}
#line 11073 "y.tab.c"
break;
case 546: /* symbols: tSYMBOLS_BEG string_rep tSTRING */
#line 4411 "parse.y"
{
node *n = (yyvsp[-1].nd);
n = push(n, (yyvsp[0].nd));
(yyval.nd) = new_symbols(p, n);
}
#line 11083 "y.tab.c"
break;
case 549: /* numeric: tUMINUS_NUM "integer literal" */
#line 4421 "parse.y"
{
(yyval.nd) = new_negate(p, (yyvsp[0].nd));
}
#line 11091 "y.tab.c"
break;
case 550: /* numeric: tUMINUS_NUM "float literal" */
#line 4425 "parse.y"
{
(yyval.nd) = new_negate(p, (yyvsp[0].nd));
}
#line 11099 "y.tab.c"
break;
case 551: /* variable: "local variable or method" */
#line 4431 "parse.y"
{
(yyval.nd) = new_lvar(p, (yyvsp[0].id));
}
#line 11107 "y.tab.c"
break;
case 552: /* variable: "instance variable" */
#line 4435 "parse.y"
{
(yyval.nd) = new_ivar(p, (yyvsp[0].id));
}
#line 11115 "y.tab.c"
break;
case 553: /* variable: "global variable" */
#line 4439 "parse.y"
{
(yyval.nd) = new_gvar(p, (yyvsp[0].id));
}
#line 11123 "y.tab.c"
break;
case 554: /* variable: "class variable" */
#line 4443 "parse.y"
{
(yyval.nd) = new_cvar(p, (yyvsp[0].id));
}
#line 11131 "y.tab.c"
break;
case 555: /* variable: "constant" */
#line 4447 "parse.y"
{
(yyval.nd) = new_const(p, (yyvsp[0].id));
}
#line 11139 "y.tab.c"
break;
case 556: /* var_lhs: variable */
#line 4453 "parse.y"
{
assignable(p, (yyvsp[0].nd));
}
#line 11147 "y.tab.c"
break;
case 557: /* var_lhs: "numbered parameter" */
#line 4457 "parse.y"
{
yyerror(&(yylsp[0]), p, "can't assign to numbered parameter");
}
#line 11155 "y.tab.c"
break;
case 558: /* var_ref: variable */
#line 4463 "parse.y"
{
(yyval.nd) = var_reference(p, (yyvsp[0].nd));
}
#line 11163 "y.tab.c"
break;
case 559: /* var_ref: "numbered parameter" */
#line 4467 "parse.y"
{
(yyval.nd) = new_nvar(p, (yyvsp[0].num));
}
#line 11171 "y.tab.c"
break;
case 560: /* var_ref: "'nil'" */
#line 4471 "parse.y"
{
(yyval.nd) = new_nil(p);
}
#line 11179 "y.tab.c"
break;
case 561: /* var_ref: "'self'" */
#line 4475 "parse.y"
{
(yyval.nd) = new_self(p);
}
#line 11187 "y.tab.c"
break;
case 562: /* var_ref: "'true'" */
#line 4479 "parse.y"
{
(yyval.nd) = new_true(p);
}
#line 11195 "y.tab.c"
break;
case 563: /* var_ref: "'false'" */
#line 4483 "parse.y"
{
(yyval.nd) = new_false(p);
}
#line 11203 "y.tab.c"
break;
case 564: /* var_ref: "'__FILE__'" */
#line 4487 "parse.y"
{
const char *fn = mrb_sym_name_len(p->mrb, p->filename_sym, NULL);
if (!fn) {
fn = "(null)";
}
(yyval.nd) = new_str(p, cons(cons(int_to_node(strlen(fn)), (node*)fn), (node*)NULL));
}
#line 11215 "y.tab.c"
break;
case 565: /* var_ref: "'__LINE__'" */
#line 4495 "parse.y"
{
char buf[16];
dump_int(p->lineno, buf);
(yyval.nd) = new_int(p, buf, 10, 0);
}
#line 11226 "y.tab.c"
break;
case 566: /* var_ref: "'__ENCODING__'" */
#line 4502 "parse.y"
{
(yyval.nd) = new_fcall(p, MRB_SYM_2(p->mrb, __ENCODING__), 0);
}
#line 11234 "y.tab.c"
break;
case 569: /* superclass: %empty */
#line 4512 "parse.y"
{
(yyval.nd) = 0;
}
#line 11242 "y.tab.c"
break;
case 570: /* $@36: %empty */
#line 4516 "parse.y"
{
p->lstate = EXPR_BEG;
p->cmd_start = TRUE;
}
#line 11251 "y.tab.c"
break;
case 571: /* superclass: '<' $@36 expr_value term */
#line 4521 "parse.y"
{
(yyval.nd) = (yyvsp[-1].nd);
}
#line 11259 "y.tab.c"
break;
case 574: /* f_arglist_paren: '(' f_args rparen */
#line 4537 "parse.y"
{
(yyval.nd) = (yyvsp[-1].nd);
p->lstate = EXPR_BEG;
p->cmd_start = TRUE;
}
#line 11269 "y.tab.c"
break;
case 575: /* f_arglist_paren: '(' f_arg ',' tBDOT3 rparen */
#line 4543 "parse.y"
{
(yyval.nd) = new_args_dots(p, (yyvsp[-3].nd));
}
#line 11277 "y.tab.c"
break;
case 576: /* f_arglist_paren: '(' tBDOT3 rparen */
#line 4547 "parse.y"
{
(yyval.nd) = new_args_dots(p, 0);
}
#line 11285 "y.tab.c"
break;
case 578: /* f_arglist: f_args term */
#line 4554 "parse.y"
{
(yyval.nd) = (yyvsp[-1].nd);
}
#line 11293 "y.tab.c"
break;
case 579: /* f_arglist: f_arg ',' tBDOT3 term */
#line 4558 "parse.y"
{
(yyval.nd) = new_args_dots(p, (yyvsp[-3].nd));
}
#line 11301 "y.tab.c"
break;
case 580: /* f_arglist: "..." term */
#line 4562 "parse.y"
{
(yyval.nd) = new_args_dots(p, 0);
}
#line 11309 "y.tab.c"
break;
case 581: /* f_label: "local variable or method" "label" */
#line 4568 "parse.y"
{
local_nest(p);
}
#line 11317 "y.tab.c"
break;
case 582: /* f_label: "numbered parameter" "label" */
#line 4572 "parse.y"
{
local_nest(p);
}
#line 11325 "y.tab.c"
break;
case 583: /* f_kw: f_label arg */
#line 4578 "parse.y"
{
void_expr_error(p, (yyvsp[0].nd));
(yyval.nd) = new_kw_arg(p, (yyvsp[-1].id), cons((yyvsp[0].nd), locals_node(p)));
local_unnest(p);
}
#line 11335 "y.tab.c"
break;
case 584: /* f_kw: f_label */
#line 4584 "parse.y"
{
(yyval.nd) = new_kw_arg(p, (yyvsp[0].id), 0);
local_unnest(p);
}
#line 11344 "y.tab.c"
break;
case 585: /* f_block_kw: f_label primary_value */
#line 4591 "parse.y"
{
void_expr_error(p, (yyvsp[0].nd));
(yyval.nd) = new_kw_arg(p, (yyvsp[-1].id), cons((yyvsp[0].nd), locals_node(p)));
local_unnest(p);
}
#line 11354 "y.tab.c"
break;
case 586: /* f_block_kw: f_label */
#line 4597 "parse.y"
{
(yyval.nd) = new_kw_arg(p, (yyvsp[0].id), 0);
local_unnest(p);
}
#line 11363 "y.tab.c"
break;
case 587: /* f_block_kwarg: f_block_kw */
#line 4604 "parse.y"
{
(yyval.nd) = list1((yyvsp[0].nd));
}
#line 11371 "y.tab.c"
break;
case 588: /* f_block_kwarg: f_block_kwarg ',' f_block_kw */
#line 4608 "parse.y"
{
(yyval.nd) = push((yyvsp[-2].nd), (yyvsp[0].nd));
}
#line 11379 "y.tab.c"
break;
case 589: /* f_kwarg: f_kw */
#line 4614 "parse.y"
{
(yyval.nd) = list1((yyvsp[0].nd));
}
#line 11387 "y.tab.c"
break;
case 590: /* f_kwarg: f_kwarg ',' f_kw */
#line 4618 "parse.y"
{
(yyval.nd) = push((yyvsp[-2].nd), (yyvsp[0].nd));
}
#line 11395 "y.tab.c"
break;
case 593: /* f_kwrest: kwrest_mark "local variable or method" */
#line 4628 "parse.y"
{
(yyval.id) = (yyvsp[0].id);
}
#line 11403 "y.tab.c"
break;
case 594: /* f_kwrest: kwrest_mark */
#line 4632 "parse.y"
{
(yyval.id) = intern_op(pow);
}
#line 11411 "y.tab.c"
break;
case 595: /* args_tail: f_kwarg ',' f_kwrest opt_f_block_arg */
#line 4638 "parse.y"
{
(yyval.nd) = new_args_tail(p, (yyvsp[-3].nd), (yyvsp[-1].id), (yyvsp[0].id));
}
#line 11419 "y.tab.c"
break;
case 596: /* args_tail: f_kwarg opt_f_block_arg */
#line 4642 "parse.y"
{
(yyval.nd) = new_args_tail(p, (yyvsp[-1].nd), 0, (yyvsp[0].id));
}
#line 11427 "y.tab.c"
break;
case 597: /* args_tail: f_kwrest opt_f_block_arg */
#line 4646 "parse.y"
{
(yyval.nd) = new_args_tail(p, 0, (yyvsp[-1].id), (yyvsp[0].id));
}
#line 11435 "y.tab.c"
break;
case 598: /* args_tail: f_block_arg */
#line 4650 "parse.y"
{
(yyval.nd) = new_args_tail(p, 0, 0, (yyvsp[0].id));
}
#line 11443 "y.tab.c"
break;
case 599: /* opt_args_tail: ',' args_tail */
#line 4656 "parse.y"
{
(yyval.nd) = (yyvsp[0].nd);
}
#line 11451 "y.tab.c"
break;
case 600: /* opt_args_tail: %empty */
#line 4660 "parse.y"
{
(yyval.nd) = new_args_tail(p, 0, 0, 0);
}
#line 11459 "y.tab.c"
break;
case 601: /* f_args: f_arg ',' f_optarg ',' f_rest_arg opt_args_tail */
#line 4666 "parse.y"
{
(yyval.nd) = new_args(p, (yyvsp[-5].nd), (yyvsp[-3].nd), (yyvsp[-1].id), 0, (yyvsp[0].nd));
}
#line 11467 "y.tab.c"
break;
case 602: /* f_args: f_arg ',' f_optarg ',' f_rest_arg ',' f_arg opt_args_tail */
#line 4670 "parse.y"
{
(yyval.nd) = new_args(p, (yyvsp[-7].nd), (yyvsp[-5].nd), (yyvsp[-3].id), (yyvsp[-1].nd), (yyvsp[0].nd));
}
#line 11475 "y.tab.c"
break;
case 603: /* f_args: f_arg ',' f_optarg opt_args_tail */
#line 4674 "parse.y"
{
(yyval.nd) = new_args(p, (yyvsp[-3].nd), (yyvsp[-1].nd), 0, 0, (yyvsp[0].nd));
}
#line 11483 "y.tab.c"
break;
case 604: /* f_args: f_arg ',' f_optarg ',' f_arg opt_args_tail */
#line 4678 "parse.y"
{
(yyval.nd) = new_args(p, (yyvsp[-5].nd), (yyvsp[-3].nd), 0, (yyvsp[-1].nd), (yyvsp[0].nd));
}
#line 11491 "y.tab.c"
break;
case 605: /* f_args: f_arg ',' f_rest_arg opt_args_tail */
#line 4682 "parse.y"
{
(yyval.nd) = new_args(p, (yyvsp[-3].nd), 0, (yyvsp[-1].id), 0, (yyvsp[0].nd));
}
#line 11499 "y.tab.c"
break;
case 606: /* f_args: f_arg ',' f_rest_arg ',' f_arg opt_args_tail */
#line 4686 "parse.y"
{
(yyval.nd) = new_args(p, (yyvsp[-5].nd), 0, (yyvsp[-3].id), (yyvsp[-1].nd), (yyvsp[0].nd));
}
#line 11507 "y.tab.c"
break;
case 607: /* f_args: f_arg opt_args_tail */
#line 4690 "parse.y"
{
(yyval.nd) = new_args(p, (yyvsp[-1].nd), 0, 0, 0, (yyvsp[0].nd));
}
#line 11515 "y.tab.c"
break;
case 608: /* f_args: f_optarg ',' f_rest_arg opt_args_tail */
#line 4694 "parse.y"
{
(yyval.nd) = new_args(p, 0, (yyvsp[-3].nd), (yyvsp[-1].id), 0, (yyvsp[0].nd));
}
#line 11523 "y.tab.c"
break;
case 609: /* f_args: f_optarg ',' f_rest_arg ',' f_arg opt_args_tail */
#line 4698 "parse.y"
{
(yyval.nd) = new_args(p, 0, (yyvsp[-5].nd), (yyvsp[-3].id), (yyvsp[-1].nd), (yyvsp[0].nd));
}
#line 11531 "y.tab.c"
break;
case 610: /* f_args: f_optarg opt_args_tail */
#line 4702 "parse.y"
{
(yyval.nd) = new_args(p, 0, (yyvsp[-1].nd), 0, 0, (yyvsp[0].nd));
}
#line 11539 "y.tab.c"
break;
case 611: /* f_args: f_optarg ',' f_arg opt_args_tail */
#line 4706 "parse.y"
{
(yyval.nd) = new_args(p, 0, (yyvsp[-3].nd), 0, (yyvsp[-1].nd), (yyvsp[0].nd));
}
#line 11547 "y.tab.c"
break;
case 612: /* f_args: f_rest_arg opt_args_tail */
#line 4710 "parse.y"
{
(yyval.nd) = new_args(p, 0, 0, (yyvsp[-1].id), 0, (yyvsp[0].nd));
}
#line 11555 "y.tab.c"
break;
case 613: /* f_args: f_rest_arg ',' f_arg opt_args_tail */
#line 4714 "parse.y"
{
(yyval.nd) = new_args(p, 0, 0, (yyvsp[-3].id), (yyvsp[-1].nd), (yyvsp[0].nd));
}
#line 11563 "y.tab.c"
break;
case 614: /* f_args: args_tail */
#line 4718 "parse.y"
{
(yyval.nd) = new_args(p, 0, 0, 0, 0, (yyvsp[0].nd));
}
#line 11571 "y.tab.c"
break;
case 615: /* f_args: %empty */
#line 4722 "parse.y"
{
local_add_f(p, 0);
(yyval.nd) = new_args(p, 0, 0, 0, 0, 0);
}
#line 11580 "y.tab.c"
break;
case 616: /* f_bad_arg: "constant" */
#line 4729 "parse.y"
{
yyerror(&(yylsp[0]), p, "formal argument cannot be a constant");
(yyval.nd) = 0;
}
#line 11589 "y.tab.c"
break;
case 617: /* f_bad_arg: "instance variable" */
#line 4734 "parse.y"
{
yyerror(&(yylsp[0]), p, "formal argument cannot be an instance variable");
(yyval.nd) = 0;
}
#line 11598 "y.tab.c"
break;
case 618: /* f_bad_arg: "global variable" */
#line 4739 "parse.y"
{
yyerror(&(yylsp[0]), p, "formal argument cannot be a global variable");
(yyval.nd) = 0;
}
#line 11607 "y.tab.c"
break;
case 619: /* f_bad_arg: "class variable" */
#line 4744 "parse.y"
{
yyerror(&(yylsp[0]), p, "formal argument cannot be a class variable");
(yyval.nd) = 0;
}
#line 11616 "y.tab.c"
break;
case 620: /* f_bad_arg: "numbered parameter" */
#line 4749 "parse.y"
{
yyerror(&(yylsp[0]), p, "formal argument cannot be a numbered parameter");
(yyval.nd) = 0;
}
#line 11625 "y.tab.c"
break;
case 621: /* f_norm_arg: f_bad_arg */
#line 4756 "parse.y"
{
(yyval.id) = 0;
}
#line 11633 "y.tab.c"
break;
case 622: /* f_norm_arg: "local variable or method" */
#line 4760 "parse.y"
{
local_add_f(p, (yyvsp[0].id));
(yyval.id) = (yyvsp[0].id);
}
#line 11642 "y.tab.c"
break;
case 623: /* f_arg_item: f_norm_arg */
#line 4767 "parse.y"
{
(yyval.nd) = new_lvar(p, (yyvsp[0].id));
}
#line 11650 "y.tab.c"
break;
case 624: /* @37: %empty */
#line 4771 "parse.y"
{
(yyval.nd) = local_switch(p);
}
#line 11658 "y.tab.c"
break;
case 625: /* f_arg_item: tLPAREN @37 f_margs rparen */
#line 4775 "parse.y"
{
(yyval.nd) = new_marg(p, (yyvsp[-1].nd));
local_resume(p, (yyvsp[-2].nd));
local_add_f(p, 0);
}
#line 11668 "y.tab.c"
break;
case 626: /* f_arg: f_arg_item */
#line 4783 "parse.y"
{
(yyval.nd) = list1((yyvsp[0].nd));
}
#line 11676 "y.tab.c"
break;
case 627: /* f_arg: f_arg ',' f_arg_item */
#line 4787 "parse.y"
{
(yyval.nd) = push((yyvsp[-2].nd), (yyvsp[0].nd));
}
#line 11684 "y.tab.c"
break;
case 628: /* f_opt_asgn: "local variable or method" '=' */
#line 4793 "parse.y"
{
local_add_f(p, (yyvsp[-1].id));
local_nest(p);
(yyval.id) = (yyvsp[-1].id);
}
#line 11694 "y.tab.c"
break;
case 629: /* f_opt: f_opt_asgn arg */
#line 4801 "parse.y"
{
void_expr_error(p, (yyvsp[0].nd));
(yyval.nd) = cons(sym_to_node((yyvsp[-1].id)), cons((yyvsp[0].nd), locals_node(p)));
local_unnest(p);
}
#line 11704 "y.tab.c"
break;
case 630: /* f_block_opt: f_opt_asgn primary_value */
#line 4809 "parse.y"
{
void_expr_error(p, (yyvsp[0].nd));
(yyval.nd) = cons(sym_to_node((yyvsp[-1].id)), cons((yyvsp[0].nd), locals_node(p)));
local_unnest(p);
}
#line 11714 "y.tab.c"
break;
case 631: /* f_block_optarg: f_block_opt */
#line 4817 "parse.y"
{
(yyval.nd) = list1((yyvsp[0].nd));
}
#line 11722 "y.tab.c"
break;
case 632: /* f_block_optarg: f_block_optarg ',' f_block_opt */
#line 4821 "parse.y"
{
(yyval.nd) = push((yyvsp[-2].nd), (yyvsp[0].nd));
}
#line 11730 "y.tab.c"
break;
case 633: /* f_optarg: f_opt */
#line 4827 "parse.y"
{
(yyval.nd) = list1((yyvsp[0].nd));
}
#line 11738 "y.tab.c"
break;
case 634: /* f_optarg: f_optarg ',' f_opt */
#line 4831 "parse.y"
{
(yyval.nd) = push((yyvsp[-2].nd), (yyvsp[0].nd));
}
#line 11746 "y.tab.c"
break;
case 637: /* f_rest_arg: restarg_mark "local variable or method" */
#line 4841 "parse.y"
{
local_add_f(p, (yyvsp[0].id));
(yyval.id) = (yyvsp[0].id);
}
#line 11755 "y.tab.c"
break;
case 638: /* f_rest_arg: restarg_mark */
#line 4846 "parse.y"
{
(yyval.id) = intern_op(mul);
local_add_f(p, (yyval.id));
}
#line 11764 "y.tab.c"
break;
case 641: /* f_block_arg: blkarg_mark "local variable or method" */
#line 4857 "parse.y"
{
(yyval.id) = (yyvsp[0].id);
}
#line 11772 "y.tab.c"
break;
case 642: /* f_block_arg: blkarg_mark */
#line 4861 "parse.y"
{
(yyval.id) = intern_op(and);
}
#line 11780 "y.tab.c"
break;
case 643: /* opt_f_block_arg: ',' f_block_arg */
#line 4867 "parse.y"
{
(yyval.id) = (yyvsp[0].id);
}
#line 11788 "y.tab.c"
break;
case 644: /* opt_f_block_arg: none */
#line 4871 "parse.y"
{
(yyval.id) = 0;
}
#line 11796 "y.tab.c"
break;
case 645: /* singleton: var_ref */
#line 4877 "parse.y"
{
prohibit_literals(p, (yyvsp[0].nd));
(yyval.nd) = (yyvsp[0].nd);
if (!(yyval.nd)) (yyval.nd) = new_nil(p);
}
#line 11806 "y.tab.c"
break;
case 646: /* $@38: %empty */
#line 4882 "parse.y"
{p->lstate = EXPR_BEG;}
#line 11812 "y.tab.c"
break;
case 647: /* singleton: '(' $@38 expr rparen */
#line 4883 "parse.y"
{
prohibit_literals(p, (yyvsp[-1].nd));
(yyval.nd) = (yyvsp[-1].nd);
}
#line 11821 "y.tab.c"
break;
case 649: /* assoc_list: assocs trailer */
#line 4891 "parse.y"
{
(yyval.nd) = (yyvsp[-1].nd);
}
#line 11829 "y.tab.c"
break;
case 650: /* assocs: assoc */
#line 4897 "parse.y"
{
(yyval.nd) = list1((yyvsp[0].nd));
}
#line 11837 "y.tab.c"
break;
case 651: /* assocs: assocs comma assoc */
#line 4901 "parse.y"
{
(yyval.nd) = push((yyvsp[-2].nd), (yyvsp[0].nd));
}
#line 11845 "y.tab.c"
break;
case 652: /* assoc: arg "=>" arg */
#line 4907 "parse.y"
{
void_expr_error(p, (yyvsp[-2].nd));
void_expr_error(p, (yyvsp[0].nd));
(yyval.nd) = cons((yyvsp[-2].nd), (yyvsp[0].nd));
}
#line 11855 "y.tab.c"
break;
case 653: /* assoc: "local variable or method" "label" arg */
#line 4913 "parse.y"
{
void_expr_error(p, (yyvsp[0].nd));
(yyval.nd) = cons(new_sym(p, (yyvsp[-2].id)), (yyvsp[0].nd));
}
#line 11864 "y.tab.c"
break;
case 654: /* assoc: "local variable or method" "label" */
#line 4918 "parse.y"
{
(yyval.nd) = cons(new_sym(p, (yyvsp[-1].id)), label_reference(p, (yyvsp[-1].id)));
}
#line 11872 "y.tab.c"
break;
case 655: /* assoc: "numbered parameter" "label" */
#line 4922 "parse.y"
{
mrb_sym sym = intern_numparam((yyvsp[-1].num));
(yyval.nd) = cons(new_sym(p, sym), label_reference(p, sym));
}
#line 11881 "y.tab.c"
break;
case 656: /* assoc: "numbered parameter" "label" arg */
#line 4927 "parse.y"
{
void_expr_error(p, (yyvsp[0].nd));
(yyval.nd) = cons(new_sym(p, intern_numparam((yyvsp[-2].num))), (yyvsp[0].nd));
}
#line 11890 "y.tab.c"
break;
case 657: /* assoc: string_fragment "label" arg */
#line 4932 "parse.y"
{
void_expr_error(p, (yyvsp[0].nd));
if ((yyvsp[-2].nd)->cdr) {
/* Multiple fragments - create dynamic symbol */
(yyval.nd) = cons(new_dsym(p, (yyvsp[-2].nd)), (yyvsp[0].nd));
}
else if (node_to_int((yyvsp[-2].nd)->car->car) < 0) {
/* Single fragment but it's an expression (-1 . node) - create dynamic symbol */
(yyval.nd) = cons(new_dsym(p, (yyvsp[-2].nd)), (yyvsp[0].nd));
}
else {
/* Single string fragment - create simple symbol */
(yyval.nd) = cons(new_sym(p, new_strsym(p, (yyvsp[-2].nd)->car)), (yyvsp[0].nd));
}
}
#line 11910 "y.tab.c"
break;
case 658: /* assoc: "**" arg */
#line 4948 "parse.y"
{
void_expr_error(p, (yyvsp[0].nd));
(yyval.nd) = cons(new_kw_rest_args(p, 0), (yyvsp[0].nd));
}
#line 11919 "y.tab.c"
break;
case 659: /* assoc: "**" */
#line 4953 "parse.y"
{
(yyval.nd) = cons(new_kw_rest_args(p, 0), new_lvar(p, intern_op(pow)));
}
#line 11927 "y.tab.c"
break;
case 672: /* call_op: '.' */
#line 4979 "parse.y"
{
(yyval.num) = '.';
}
#line 11935 "y.tab.c"
break;
case 673: /* call_op: "&." */
#line 4983 "parse.y"
{
(yyval.num) = 0;
}
#line 11943 "y.tab.c"
break;
case 675: /* call_op2: "::" */
#line 4990 "parse.y"
{
(yyval.num) = tCOLON2;
}
#line 11951 "y.tab.c"
break;
case 684: /* term: ';' */
#line 5011 "parse.y"
{yyerrok;}
#line 11957 "y.tab.c"
break;
case 686: /* nl: '\n' */
#line 5016 "parse.y"
{
p->lineno += (yyvsp[0].num);
p->column = 0;
}
#line 11966 "y.tab.c"
break;
case 690: /* none: %empty */
#line 5028 "parse.y"
{
(yyval.nd) = 0;
}
#line 11974 "y.tab.c"
break;
#line 11978 "y.tab.c"
default: break;
}
/* User semantic actions sometimes alter yychar, and that requires
that yytoken be updated with the new translation. We take the
approach of translating immediately before every use of yytoken.
One alternative is translating here after every semantic action,
but that translation would be missed if the semantic action invokes
YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or
if it invokes YYBACKUP. In the case of YYABORT or YYACCEPT, an
incorrect destructor might then be invoked immediately. In the
case of YYERROR or YYBACKUP, subsequent parser actions might lead
to an incorrect destructor call or verbose syntax error message
before the lookahead is translated. */
YY_SYMBOL_PRINT ("-> $$ =", YY_CAST (yysymbol_kind_t, yyr1[yyn]), &yyval, &yyloc);
YYPOPSTACK (yylen);
yylen = 0;
*++yyvsp = yyval;
*++yylsp = yyloc;
/* Now 'shift' the result of the reduction. Determine what state
that goes to, based on the state we popped back to and the rule
number reduced by. */
{
const int yylhs = yyr1[yyn] - YYNTOKENS;
const int yyi = yypgoto[yylhs] + *yyssp;
yystate = (0 <= yyi && yyi <= YYLAST && yycheck[yyi] == *yyssp
? yytable[yyi]
: yydefgoto[yylhs]);
}
goto yynewstate;
/*--------------------------------------.
| yyerrlab -- here on detecting error. |
`--------------------------------------*/
yyerrlab:
/* Make sure we have latest lookahead translation. See comments at
user semantic actions for why this is necessary. */
yytoken = yychar == YYEMPTY ? YYSYMBOL_YYEMPTY : YYTRANSLATE (yychar);
/* If not already recovering from an error, report this error. */
if (!yyerrstatus)
{
++yynerrs;
{
yypcontext_t yyctx
= {yyssp, yytoken, &yylloc};
char const *yymsgp = YY_("syntax error");
int yysyntax_error_status;
yysyntax_error_status = yysyntax_error (&yymsg_alloc, &yymsg, &yyctx);
if (yysyntax_error_status == 0)
yymsgp = yymsg;
else if (yysyntax_error_status == -1)
{
if (yymsg != yymsgbuf)
YYSTACK_FREE (yymsg);
yymsg = YY_CAST (char *,
YYSTACK_ALLOC (YY_CAST (YYSIZE_T, yymsg_alloc)));
if (yymsg)
{
yysyntax_error_status
= yysyntax_error (&yymsg_alloc, &yymsg, &yyctx);
yymsgp = yymsg;
}
else
{
yymsg = yymsgbuf;
yymsg_alloc = sizeof yymsgbuf;
yysyntax_error_status = YYENOMEM;
}
}
yyerror (&yylloc, p, yymsgp);
if (yysyntax_error_status == YYENOMEM)
YYNOMEM;
}
}
yyerror_range[1] = yylloc;
if (yyerrstatus == 3)
{
/* If just tried and failed to reuse lookahead token after an
error, discard it. */
if (yychar <= YYEOF)
{
/* Return failure if at end of input. */
if (yychar == YYEOF)
YYABORT;
}
else
{
yydestruct ("Error: discarding",
yytoken, &yylval, &yylloc, p);
yychar = YYEMPTY;
}
}
/* Else will try to reuse lookahead token after shifting the error
token. */
goto yyerrlab1;
/*---------------------------------------------------.
| yyerrorlab -- error raised explicitly by YYERROR. |
`---------------------------------------------------*/
yyerrorlab:
/* Pacify compilers when the user code never invokes YYERROR and the
label yyerrorlab therefore never appears in user code. */
if (0)
YYERROR;
++yynerrs;
/* Do not reclaim the symbols of the rule whose action triggered
this YYERROR. */
YYPOPSTACK (yylen);
yylen = 0;
YY_STACK_PRINT (yyss, yyssp);
yystate = *yyssp;
goto yyerrlab1;
/*-------------------------------------------------------------.
| yyerrlab1 -- common code for both syntax error and YYERROR. |
`-------------------------------------------------------------*/
yyerrlab1:
yyerrstatus = 3; /* Each real token shifted decrements this. */
/* Pop stack until we find a state that shifts the error token. */
for (;;)
{
yyn = yypact[yystate];
if (!yypact_value_is_default (yyn))
{
yyn += YYSYMBOL_YYerror;
if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror)
{
yyn = yytable[yyn];
if (0 < yyn)
break;
}
}
/* Pop the current state because it cannot handle the error token. */
if (yyssp == yyss)
YYABORT;
yyerror_range[1] = *yylsp;
yydestruct ("Error: popping",
YY_ACCESSING_SYMBOL (yystate), yyvsp, yylsp, p);
YYPOPSTACK (1);
yystate = *yyssp;
YY_STACK_PRINT (yyss, yyssp);
}
YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
*++yyvsp = yylval;
YY_IGNORE_MAYBE_UNINITIALIZED_END
yyerror_range[2] = yylloc;
++yylsp;
YYLLOC_DEFAULT (*yylsp, yyerror_range, 2);
/* Shift the error token. */
YY_SYMBOL_PRINT ("Shifting", YY_ACCESSING_SYMBOL (yyn), yyvsp, yylsp);
yystate = yyn;
goto yynewstate;
/*-------------------------------------.
| yyacceptlab -- YYACCEPT comes here. |
`-------------------------------------*/
yyacceptlab:
yyresult = 0;
goto yyreturnlab;
/*-----------------------------------.
| yyabortlab -- YYABORT comes here. |
`-----------------------------------*/
yyabortlab:
yyresult = 1;
goto yyreturnlab;
/*-----------------------------------------------------------.
| yyexhaustedlab -- YYNOMEM (memory exhaustion) comes here. |
`-----------------------------------------------------------*/
yyexhaustedlab:
yyerror (&yylloc, p, YY_("memory exhausted"));
yyresult = 2;
goto yyreturnlab;
/*----------------------------------------------------------.
| yyreturnlab -- parsing is finished, clean up and return. |
`----------------------------------------------------------*/
yyreturnlab:
if (yychar != YYEMPTY)
{
/* Make sure we have latest lookahead translation. See comments at
user semantic actions for why this is necessary. */
yytoken = YYTRANSLATE (yychar);
yydestruct ("Cleanup: discarding lookahead",
yytoken, &yylval, &yylloc, p);
}
/* Do not reclaim the symbols of the rule whose action triggered
this YYABORT or YYACCEPT. */
YYPOPSTACK (yylen);
YY_STACK_PRINT (yyss, yyssp);
while (yyssp != yyss)
{
yydestruct ("Cleanup: popping",
YY_ACCESSING_SYMBOL (+*yyssp), yyvsp, yylsp, p);
YYPOPSTACK (1);
}
#ifndef yyoverflow
if (yyss != yyssa)
YYSTACK_FREE (yyss);
#endif
if (yymsg != yymsgbuf)
YYSTACK_FREE (yymsg);
return yyresult;
}
#line 5032 "parse.y"
#define pylval (*((YYSTYPE*)(p->ylval)))
static void
yyerror(void *lp, parser_state *p, const char *s)
{
char* c;
size_t n;
if (! p->capture_errors) {
#ifndef MRB_NO_STDIO
if (p->filename_sym) {
const char *filename = mrb_sym_name_len(p->mrb, p->filename_sym, NULL);
fprintf(stderr, "%s:%d:%d: %s\n", filename, p->lineno, p->column, s);
}
else {
fprintf(stderr, "line %d:%d: %s\n", p->lineno, p->column, s);
}
#endif
}
else if (p->nerr < sizeof(p->error_buffer) / sizeof(p->error_buffer[0])) {
n = strlen(s);
c = (char*)parser_palloc(p, n + 1);
memcpy(c, s, n + 1);
p->error_buffer[p->nerr].message = c;
p->error_buffer[p->nerr].lineno = p->lineno;
p->error_buffer[p->nerr].column = p->column;
}
p->nerr++;
}
static void
yyerror_c(parser_state *p, const char *msg, char c)
{
char buf[256];
strncpy(buf, msg, sizeof(buf) - 2);
buf[sizeof(buf) - 2] = '\0';
strncat(buf, &c, 1);
yyerror(NULL, p, buf);
}
static void
yywarning(parser_state *p, const char *s)
{
char* c;
size_t n;
if (! p->capture_errors) {
#ifndef MRB_NO_STDIO
if (p->filename_sym) {
const char *filename = mrb_sym_name_len(p->mrb, p->filename_sym, NULL);
fprintf(stderr, "%s:%d:%d: warning: %s\n", filename, p->lineno, p->column, s);
}
else {
fprintf(stderr, "line %d:%d: warning: %s\n", p->lineno, p->column, s);
}
#endif
}
else if (p->nwarn < sizeof(p->warn_buffer) / sizeof(p->warn_buffer[0])) {
n = strlen(s);
c = (char*)parser_palloc(p, n + 1);
memcpy(c, s, n + 1);
p->warn_buffer[p->nwarn].message = c;
p->warn_buffer[p->nwarn].lineno = p->lineno;
p->warn_buffer[p->nwarn].column = p->column;
}
p->nwarn++;
}
static void
yywarning_s(parser_state *p, const char *msg, const char *s)
{
char buf[256];
strncpy(buf, msg, sizeof(buf) - 1);
buf[sizeof(buf) - 1] = '\0';
strncat(buf, ": ", sizeof(buf) - strlen(buf) - 1);
strncat(buf, s, sizeof(buf) - strlen(buf) - 1);
yywarning(p, buf);
}
static void
backref_error(parser_state *p, node *n)
{
int c;
c = node_to_int(n->car);
if (c == NODE_NTH_REF) {
yyerror_c(p, "can't set variable $", (char)node_to_int(n->cdr)+'0');
}
else if (c == NODE_BACK_REF) {
yyerror_c(p, "can't set variable $", (char)node_to_int(n->cdr));
}
else {
yyerror(NULL, p, "Internal error in backref_error()");
}
}
static void
void_expr_error(parser_state *p, node *n)
{
if (n == NULL) return;
/* Check if this is a variable-sized node first */
struct mrb_ast_var_header *header = (struct mrb_ast_var_header*)n;
if (header) {
/* Handle variable-sized nodes */
switch ((enum node_type)header->node_type) {
case NODE_BREAK:
case NODE_RETURN:
case NODE_NEXT:
case NODE_REDO:
case NODE_RETRY:
yyerror(NULL, p, "void value expression");
return;
case NODE_AND:
case NODE_OR:
{
struct mrb_ast_and_node *and_n = (struct mrb_ast_and_node*)n;
void_expr_error(p, (node*)and_n->left);
void_expr_error(p, (node*)and_n->right);
}
return;
case NODE_STMTS:
{
struct mrb_ast_stmts_node *stmts = (struct mrb_ast_stmts_node*)n;
node *last = stmts->stmts;
if (last) {
/* Find the last statement in the cons list */
while (last->cdr) {
last = last->cdr;
}
void_expr_error(p, last->car);
}
}
return;
case NODE_BEGIN:
{
struct mrb_ast_begin_node *begin_n = (struct mrb_ast_begin_node*)n;
if (begin_n->body) {
void_expr_error(p, (node*)begin_n->body);
}
}
return;
default:
/* Other variable-sized nodes are OK */
return;
}
}
/* Should not reach here - all nodes should be variable-sized now */
}
static void pushback(parser_state *p, int c);
static mrb_bool peeks(parser_state *p, const char *s);
static mrb_bool skips(parser_state *p, const char *s);
static inline int
nextc0(parser_state *p)
{
if (p->s && p->s < p->send) {
return (unsigned char)*p->s++;
}
else {
#ifndef MRB_NO_STDIO
int c;
if (p->f) {
c = fgetc(p->f);
if (!feof(p->f)) return c;
}
#endif
return -1;
}
}
static inline int
nextc(parser_state *p)
{
int c;
if (p->pb) {
node *tmp;
c = node_to_int(p->pb->car);
tmp = p->pb;
p->pb = p->pb->cdr;
cons_free(tmp);
}
else {
c = nextc0(p);
if (c < 0) goto eof;
}
if (c >= 0) {
p->column++;
}
if (c == '\r') {
const int lf = nextc0(p);
if (lf == '\n') {
return '\n';
}
if (lf > 0) pushback(p, lf);
}
return c;
eof:
if (!p->cxt) return -1;
else {
if (p->cxt->partial_hook(p) < 0)
return -1; /* end of program(s) */
return -2; /* end of a file in the program files */
}
}
static void
pushback(parser_state *p, int c)
{
if (c >= 0) {
p->column--;
}
p->pb = cons(int_to_node(c), p->pb);
}
static void
skip(parser_state *p, char term)
{
int c;
for (;;) {
c = nextc(p);
if (c < 0) break;
if (c == term) break;
}
}
static int
peekc_n(parser_state *p, int n)
{
node *list = 0;
int c0;
do {
c0 = nextc(p);
if (c0 == -1) return c0; /* do not skip partial EOF */
if (c0 >= 0) --p->column;
list = push(list, int_to_node(c0));
} while(n--);
if (p->pb) {
p->pb = append(list, p->pb);
}
else {
p->pb = list;
}
return c0;
}
static mrb_bool
peek_n(parser_state *p, int c, int n)
{
return peekc_n(p, n) == c && c >= 0;
}
#define peek(p,c) peek_n((p), (c), 0)
static mrb_bool
peeks(parser_state *p, const char *s)
{
size_t len = strlen(s);
#ifndef MRB_NO_STDIO
if (p->f) {
int n = 0;
while (*s) {
if (!peek_n(p, *s++, n++)) return FALSE;
}
return TRUE;
}
else
#endif
if (p->s && p->s + len <= p->send) {
if (memcmp(p->s, s, len) == 0) return TRUE;
}
return FALSE;
}
static mrb_bool
skips(parser_state *p, const char *s)
{
int c;
for (;;) {
/* skip until first char */
for (;;) {
c = nextc(p);
if (c < 0) return FALSE;
if (c == '\n') {
p->lineno++;
p->column = 0;
}
if (c == *s) break;
}
s++;
if (peeks(p, s)) {
size_t len = strlen(s);
while (len--) {
if (nextc(p) == '\n') {
p->lineno++;
p->column = 0;
}
}
return TRUE;
}
else {
s--;
}
}
return FALSE;
}
static int
newtok(parser_state *p)
{
if (p->tokbuf != p->buf) {
mrbc_free(p->tokbuf);
p->tokbuf = p->buf;
p->tsiz = MRB_PARSER_TOKBUF_SIZE;
}
p->tidx = 0;
return p->column - 1;
}
static void
tokadd(parser_state *p, int32_t c)
{
char utf8[4];
int i, len;
/* mrb_assert(-0x10FFFF <= c && c <= 0xFF); */
if (c >= 0) {
/* Single byte from source or non-Unicode escape */
utf8[0] = (char)c;
len = 1;
}
else {
/* Unicode character (negative c indicates codepoint) */
len = (int)mrb_utf8_to_buf(utf8, (uint32_t)(-c));
}
if (p->tidx+len >= p->tsiz) {
if (p->tsiz >= MRB_PARSER_TOKBUF_MAX) {
p->tidx += len;
return;
}
p->tsiz *= 2;
if (p->tokbuf == p->buf) {
p->tokbuf = (char*)mrbc_malloc(p->tsiz);
memcpy(p->tokbuf, p->buf, MRB_PARSER_TOKBUF_SIZE);
}
else {
p->tokbuf = (char*)mrbc_realloc(p->tokbuf, p->tsiz);
}
}
for (i = 0; i < len; i++) {
p->tokbuf[p->tidx++] = utf8[i];
}
}
static int
toklast(parser_state *p)
{
return p->tokbuf[p->tidx-1];
}
static void
tokfix(parser_state *p)
{
if (p->tidx >= MRB_PARSER_TOKBUF_MAX) {
p->tidx = MRB_PARSER_TOKBUF_MAX-1;
yyerror(NULL, p, "string too long (truncated)");
}
p->tokbuf[p->tidx] = '\0';
}
static const char*
tok(parser_state *p)
{
return p->tokbuf;
}
static int
toklen(parser_state *p)
{
return p->tidx;
}
#define IS_ARG() (p->lstate == EXPR_ARG || p->lstate == EXPR_CMDARG)
#define IS_END() (p->lstate == EXPR_END || p->lstate == EXPR_ENDARG || p->lstate == EXPR_ENDFN)
#define IS_BEG() (p->lstate == EXPR_BEG || p->lstate == EXPR_MID || p->lstate == EXPR_VALUE || p->lstate == EXPR_CLASS)
#define IS_SPCARG(c) (IS_ARG() && space_seen && !ISSPACE(c))
#define IS_LABEL_POSSIBLE() ((p->lstate == EXPR_BEG && !cmd_state) || IS_ARG() || p->lstate == EXPR_VALUE)
#define IS_LABEL_SUFFIX(n) (peek_n(p, ':',(n)) && !peek_n(p, ':', (n)+1))
static int32_t
scan_oct(const int *start, int len, int *retlen)
{
const int *s = start;
int32_t retval = 0;
/* mrb_assert(len <= 3) */
while (len-- && *s >= '0' && *s <= '7') {
retval <<= 3;
retval |= *s++ - '0';
}
*retlen = (int)(s - start);
return retval;
}
static int32_t
scan_hex(parser_state *p, const int *start, int len, int *retlen)
{
static const char hexdigit[] = "0123456789abcdef0123456789ABCDEF";
const int *s = start;
uint32_t retval = 0;
char *tmp;
/* mrb_assert(len <= 8) */
while (len-- && *s && (tmp = (char*)strchr(hexdigit, *s))) {
retval <<= 4;
retval |= (tmp - hexdigit) & 15;
s++;
}
*retlen = (int)(s - start);
return (int32_t)retval;
}
static int32_t
read_escape_unicode(parser_state *p, int limit)
{
int buf[9];
int i;
int32_t hex;
/* Look for opening brace */
i = 0;
buf[0] = nextc(p);
if (buf[0] < 0) {
eof:
yyerror(NULL, p, "invalid escape character syntax");
return -1;
}
if (ISXDIGIT(buf[0])) {
/* \uxxxx form */
for (i=1; i<limit; i++) {
buf[i] = nextc(p);
if (buf[i] < 0) goto eof;
if (!ISXDIGIT(buf[i])) {
pushback(p, buf[i]);
break;
}
}
}
else {
pushback(p, buf[0]);
}
hex = scan_hex(p, buf, i, &i);
if (i == 0 || hex > 0x10FFFF || (hex & 0xFFFFF800) == 0xD800) {
yyerror(NULL, p, "invalid Unicode code point");
return -1;
}
return hex;
}
/* Return negative to indicate Unicode code point */
static int32_t
read_escape(parser_state *p)
{
int32_t c;
switch (c = nextc(p)) {
case '\\':/* Backslash */
return c;
case 'n':/* newline */
return '\n';
case 't':/* horizontal tab */
return '\t';
case 'r':/* carriage-return */
return '\r';
case 'f':/* form-feed */
return '\f';
case 'v':/* vertical tab */
return '\13';
case 'a':/* alarm(bell) */
return '\007';
case 'e':/* escape */
return 033;
case '0': case '1': case '2': case '3': /* octal constant */
case '4': case '5': case '6': case '7':
{
int buf[3];
int i;
buf[0] = c;
for (i=1; i<3; i++) {
buf[i] = nextc(p);
if (buf[i] < 0) goto eof;
if (buf[i] < '0' || '7' < buf[i]) {
pushback(p, buf[i]);
break;
}
}
c = scan_oct(buf, i, &i);
}
return c;
case 'x': /* hex constant */
{
int buf[2];
int i;
for (i=0; i<2; i++) {
buf[i] = nextc(p);
if (buf[i] < 0) goto eof;
if (!ISXDIGIT(buf[i])) {
pushback(p, buf[i]);
break;
}
}
if (i == 0) {
yyerror(NULL, p, "invalid hex escape");
return -1;
}
return scan_hex(p, buf, i, &i);
}
case 'u': /* Unicode */
if (peek(p, '{')) {
/* \u{xxxxxxxx} form */
nextc(p);
c = read_escape_unicode(p, 8);
if (c < 0) return 0;
if (nextc(p) != '}') goto eof;
}
else {
c = read_escape_unicode(p, 4);
if (c < 0) return 0;
}
return -c;
case 'b':/* backspace */
return '\010';
case 's':/* space */
return ' ';
case 'M':
if ((c = nextc(p)) != '-') {
yyerror(NULL, p, "Invalid escape character syntax");
pushback(p, c);
return '\0';
}
if ((c = nextc(p)) == '\\') {
return read_escape(p) | 0x80;
}
else if (c < 0) goto eof;
else {
return ((c & 0xff) | 0x80);
}
case 'C':
if ((c = nextc(p)) != '-') {
yyerror(NULL, p, "Invalid escape character syntax");
pushback(p, c);
return '\0';
}
case 'c':
if ((c = nextc(p))== '\\') {
c = read_escape(p);
}
else if (c == '?')
return 0177;
else if (c < 0) goto eof;
return c & 0x9f;
eof:
case -1:
case -2: /* end of a file */
yyerror(NULL, p, "Invalid escape character syntax");
return '\0';
default:
return c;
}
}
static void
heredoc_count_indent(parser_heredoc_info *hinfo, const char *str, size_t len, size_t spaces, size_t *offset)
{
size_t indent = 0;
*offset = 0;
for (size_t i = 0; i < len; i++) {
size_t size;
if (str[i] == '\n')
break;
else if (str[i] == '\t')
size = 8;
else if (ISSPACE(str[i]))
size = 1;
else
break;
size_t nindent = indent + size;
if (nindent > spaces || nindent > hinfo->indent)
break;
indent = nindent;
*offset += 1;
}
}
static void
heredoc_remove_indent(parser_state *p, parser_heredoc_info *hinfo)
{
if (!hinfo->remove_indent || hinfo->indent == 0)
return;
node *indented, *n, *pair, *escaped, *nspaces;
const char *str;
size_t len, spaces, offset, start, end;
indented = hinfo->indented;
while (indented) {
n = indented->car;
pair = n->car;
len = (size_t)pair->car;
str = (char*)pair->cdr;
escaped = n->cdr->car;
nspaces = n->cdr->cdr;
if (escaped) {
char *newstr = strndup(str, len);
size_t newlen = 0;
start = 0;
while (start < len) {
end = escaped ? (size_t)escaped->car : len;
if (end > len) end = len;
spaces = (size_t)nspaces->car;
size_t esclen = end - start;
heredoc_count_indent(hinfo, str + start, esclen, spaces, &offset);
esclen -= offset;
memcpy(newstr + newlen, str + start + offset, esclen);
newlen += esclen;
start = end;
if (escaped)
escaped = escaped->cdr;
nspaces = nspaces->cdr;
}
if (newlen < len)
newstr[newlen] = '\0';
pair->car = (node*)newlen;
pair->cdr = (node*)newstr;
}
else {
spaces = (size_t)nspaces->car;
heredoc_count_indent(hinfo, str, len, spaces, &offset);
pair->car = (node*)(len - offset);
pair->cdr = (node*)(str + offset);
}
indented = indented->cdr;
}
}
static void
heredoc_push_indented(parser_state *p, parser_heredoc_info *hinfo, node *pair, node *escaped, node *nspaces, mrb_bool empty_line)
{
hinfo->indented = push(hinfo->indented, cons(pair, cons(escaped, nspaces)));
while (nspaces) {
size_t tspaces = (size_t)nspaces->car;
if ((hinfo->indent == ~0U || tspaces < hinfo->indent) && !empty_line)
hinfo->indent = tspaces;
nspaces = nspaces->cdr;
}
}
static int
parse_string(parser_state *p)
{
int c;
string_type type = (string_type)p->lex_strterm->type;
int nest_level = p->lex_strterm->level;
int beg = p->lex_strterm->paren;
int end = p->lex_strterm->term;
parser_heredoc_info *hinfo = (type & STR_FUNC_HEREDOC) ? parsing_heredoc_info(p) : NULL;
mrb_bool unindent = hinfo && hinfo->remove_indent;
mrb_bool head = hinfo && hinfo->line_head;
mrb_bool empty = TRUE;
size_t spaces = 0;
size_t pos = -1;
node *escaped = NULL;
node *nspaces = NULL;
if (beg == 0) beg = -3; /* should never happen */
if (end == 0) end = -3;
newtok(p);
while ((c = nextc(p)) != end || nest_level != 0) {
pos++;
if (hinfo && (c == '\n' || c < 0)) {
mrb_bool line_head;
tokadd(p, '\n');
tokfix(p);
p->lineno++;
p->column = 0;
line_head = hinfo->line_head;
hinfo->line_head = TRUE;
if (line_head) {
/* check whether end of heredoc */
const char *s = tok(p);
int len = toklen(p);
if (hinfo->allow_indent) {
while (ISSPACE(*s) && len > 0) {
s++;
len--;
}
}
if (hinfo->term_len > 0 && len-1 == hinfo->term_len && strncmp(s, hinfo->term, len-1) == 0) {
heredoc_remove_indent(p, hinfo);
return tHEREDOC_END;
}
}
if (c < 0) {
char buf[256];
const char s1[] = "can't find heredoc delimiter \"";
const char s2[] = "\" anywhere before EOF";
if (sizeof(s1)+sizeof(s2)+strlen(hinfo->term)+1 >= sizeof(buf)) {
yyerror(NULL, p, "can't find heredoc delimiter anywhere before EOF");
}
else {
strcpy(buf, s1);
strcat(buf, hinfo->term);
strcat(buf, s2);
yyerror(NULL, p, buf);
}
return 0;
}
pylval.nd = new_str_tok(p);
if (unindent && head) {
nspaces = push(nspaces, int_to_node(spaces));
heredoc_push_indented(p, hinfo, pylval.nd, escaped, nspaces, empty && line_head);
}
return tHD_STRING_MID;
}
if (unindent && empty) {
if (c == '\t')
spaces += 8;
else if (ISSPACE(c))
spaces++;
else
empty = FALSE;
}
if (c < 0) {
yyerror(NULL, p, "unterminated string meets end of file");
return 0;
}
else if (c == beg) {
nest_level++;
p->lex_strterm->level = nest_level;
}
else if (c == end) {
nest_level--;
p->lex_strterm->level = nest_level;
}
else if (c == '\\') {
c = nextc(p);
if (type & STR_FUNC_EXPAND) {
if (c == end || c == beg) {
tokadd(p, c);
}
else if (c == '\n') {
p->lineno++;
p->column = 0;
if (unindent) {
nspaces = push(nspaces, int_to_node(spaces));
escaped = push(escaped, int_to_node(pos));
pos--;
empty = TRUE;
spaces = 0;
}
if (type & STR_FUNC_ARRAY) {
tokadd(p, '\n');
}
}
else if (type & STR_FUNC_REGEXP) {
tokadd(p, '\\');
tokadd(p, c);
}
else if (c == 'u' && peek(p, '{')) {
/* \u{xxxx xxxx xxxx} form */
nextc(p);
while (1) {
do c = nextc(p); while (ISSPACE(c));
if (c == '}') break;
pushback(p, c);
c = read_escape_unicode(p, 8);
if (c < 0) break;
tokadd(p, -c);
}
if (hinfo)
hinfo->line_head = FALSE;
}
else {
pushback(p, c);
tokadd(p, read_escape(p));
if (hinfo)
hinfo->line_head = FALSE;
}
}
else {
if (c != beg && c != end) {
if (c == '\n') {
p->lineno++;
p->column = 0;
}
if (!(c == '\\' || ((type & STR_FUNC_ARRAY) && ISSPACE(c)))) {
tokadd(p, '\\');
}
}
tokadd(p, c);
}
continue;
}
else if ((c == '#') && (type & STR_FUNC_EXPAND)) {
c = nextc(p);
if (c == '{') {
tokfix(p);
p->lstate = EXPR_BEG;
p->cmd_start = TRUE;
pylval.nd = new_str_tok(p);
if (hinfo) {
if (unindent && head) {
nspaces = push(nspaces, int_to_node(spaces));
heredoc_push_indented(p, hinfo, pylval.nd, escaped, nspaces, FALSE);
}
hinfo->line_head = FALSE;
return tHD_STRING_PART;
}
return tSTRING_PART;
}
tokadd(p, '#');
pushback(p, c);
continue;
}
if ((type & STR_FUNC_ARRAY) && ISSPACE(c)) {
if (toklen(p) == 0) {
do {
if (c == '\n') {
p->lineno++;
p->column = 0;
heredoc_treat_nextline(p);
if (p->parsing_heredoc != NULL) {
return tHD_LITERAL_DELIM;
}
}
c = nextc(p);
} while (ISSPACE(c));
pushback(p, c);
return tLITERAL_DELIM;
}
else {
pushback(p, c);
tokfix(p);
pylval.nd = new_str_tok(p);
return tSTRING_MID;
}
}
if (c == '\n') {
p->lineno++;
p->column = 0;
}
tokadd(p, c);
}
tokfix(p);
p->lstate = EXPR_END;
end_strterm(p);
if (type & STR_FUNC_XQUOTE) {
pylval.nd = new_str_tok(p);
return tXSTRING;
}
if (type & STR_FUNC_REGEXP) {
int f = 0;
int re_opt;
int pattern_len = toklen(p);
char *s = strndup(tok(p), pattern_len);
char flags[3];
char *flag = flags;
char enc = '\0';
char *encp;
char *dup;
newtok(p);
while (re_opt = nextc(p), re_opt >= 0 && ISALPHA(re_opt)) {
switch (re_opt) {
case 'i': f |= 1; break;
case 'x': f |= 2; break;
case 'm': f |= 4; break;
case 'u': f |= 16; break;
case 'n': f |= 32; break;
case 'o': break;
default: tokadd(p, re_opt); break;
}
}
pushback(p, re_opt);
if (toklen(p)) {
char msg[128];
strcpy(msg, "unknown regexp option");
tokfix(p);
if (toklen(p) > 1) {
strcat(msg, "s");
}
strcat(msg, " - ");
strncat(msg, tok(p), sizeof(msg) - strlen(msg) - 1);
yyerror(NULL, p, msg);
}
if (f != 0) {
if (f & 1) *flag++ = 'i';
if (f & 2) *flag++ = 'x';
if (f & 4) *flag++ = 'm';
if (f & 16) enc = 'u';
if (f & 32) enc = 'n';
}
if (flag > flags) {
dup = strndup(flags, (size_t)(flag - flags));
}
else {
dup = NULL;
}
if (enc) {
encp = strndup(&enc, 1);
}
else {
encp = NULL;
}
pylval.nd = cons(cons(int_to_node(pattern_len), (node*)s), cons((node*)dup, (node*)encp));
return tREGEXP;
}
pylval.nd = new_str_tok(p);
return tSTRING;
}
static int
number_literal_suffix(parser_state *p)
{
int c, result = 0;
node *list = 0;
int column = p->column;
int mask = NUM_SUFFIX_R|NUM_SUFFIX_I;
while ((c = nextc(p)) != -1) {
list = push(list, int_to_node(c));
if ((mask & NUM_SUFFIX_I) && c == 'i') {
result |= (mask & NUM_SUFFIX_I);
mask &= ~NUM_SUFFIX_I;
/* r after i, rational of complex is disallowed */
mask &= ~NUM_SUFFIX_R;
continue;
}
if ((mask & NUM_SUFFIX_R) && c == 'r') {
result |= (mask & NUM_SUFFIX_R);
mask &= ~NUM_SUFFIX_R;
continue;
}
if (!ISASCII(c) || ISALPHA(c) || c == '_') {
p->column = column;
if (p->pb) {
p->pb = append(list, p->pb);
}
else {
p->pb = list;
}
return 0;
}
pushback(p, c);
break;
}
return result;
}
static int
heredoc_identifier(parser_state *p)
{
int c;
int type = str_heredoc;
mrb_bool indent = FALSE;
mrb_bool squiggly = FALSE;
mrb_bool quote = FALSE;
node *newnode;
parser_heredoc_info *info;
c = nextc(p);
if (ISSPACE(c) || c == '=') {
pushback(p, c);
return 0;
}
if (c == '-' || c == '~') {
if (c == '-')
indent = TRUE;
if (c == '~')
squiggly = TRUE;
c = nextc(p);
}
if (c == '\'' || c == '"') {
int term = c;
if (c == '\'')
quote = TRUE;
newtok(p);
while ((c = nextc(p)) >= 0 && c != term) {
if (c == '\n') {
c = -1;
break;
}
tokadd(p, c);
}
if (c < 0) {
yyerror(NULL, p, "unterminated here document identifier");
return 0;
}
}
else {
if (c < 0) {
return 0; /* missing here document identifier */
}
if (! identchar(c)) {
pushback(p, c);
if (indent) pushback(p, '-');
if (squiggly) pushback(p, '~');
return 0;
}
newtok(p);
do {
tokadd(p, c);
} while ((c = nextc(p)) >= 0 && identchar(c));
pushback(p, c);
}
tokfix(p);
newnode = new_heredoc(p, &info);
info->term = strndup(tok(p), toklen(p));
info->term_len = toklen(p);
if (! quote)
type |= STR_FUNC_EXPAND;
info->type = (string_type)type;
info->allow_indent = indent || squiggly;
info->remove_indent = squiggly;
info->indent = ~0U;
info->indented = NULL;
info->line_head = TRUE;
info->doc = NULL;
p->heredocs_from_nextline = push(p->heredocs_from_nextline, newnode);
p->lstate = EXPR_END;
pylval.nd = newnode;
return tHEREDOC_BEG;
}
static int
arg_ambiguous(parser_state *p)
{
yywarning(p, "ambiguous first argument; put parentheses or even spaces");
return 1;
}
#include "lex.def"
static int
parser_yylex(parser_state *p)
{
int32_t c;
int nlines = 1;
int space_seen = 0;
int cmd_state;
enum mrb_lex_state_enum last_state;
int token_column;
if (p->lex_strterm) {
if (is_strterm_type(p, STR_FUNC_HEREDOC)) {
if (p->parsing_heredoc != NULL)
return parse_string(p);
}
else
return parse_string(p);
}
cmd_state = p->cmd_start;
p->cmd_start = FALSE;
retry:
last_state = p->lstate;
switch (c = nextc(p)) {
case '\004': /* ^D */
case '\032': /* ^Z */
case '\0': /* NUL */
case -1: /* end of script. */
if (p->heredocs_from_nextline)
goto maybe_heredoc;
return 0;
/* white spaces */
case ' ': case '\t': case '\f': case '\r':
case '\13': /* '\v' */
space_seen = 1;
goto retry;
case '#': /* it's a comment */
skip(p, '\n');
/* fall through */
case -2: /* end of a file */
case '\n':
maybe_heredoc:
heredoc_treat_nextline(p);
p->column = 0;
switch (p->lstate) {
case EXPR_BEG:
case EXPR_FNAME:
case EXPR_DOT:
case EXPR_CLASS:
case EXPR_VALUE:
p->lineno++;
if (p->parsing_heredoc != NULL) {
if (p->lex_strterm) {
return parse_string(p);
}
}
goto retry;
default:
break;
}
if (p->parsing_heredoc != NULL) {
pylval.num = nlines;
return '\n';
}
while ((c = nextc(p))) {
switch (c) {
case ' ': case '\t': case '\f': case '\r':
case '\13': /* '\v' */
space_seen = 1;
break;
case '#': /* comment as a whitespace */
skip(p, '\n');
nlines++;
break;
case '.':
if (!peek(p, '.')) {
pushback(p, '.');
p->lineno+=nlines; nlines=1;
goto retry;
}
pushback(p, c);
goto normal_newline;
case '&':
if (peek(p, '.')) {
pushback(p, '&');
p->lineno+=nlines; nlines=1;
goto retry;
}
pushback(p, c);
goto normal_newline;
case -1: /* EOF */
case -2: /* end of a file */
goto normal_newline;
default:
pushback(p, c);
goto normal_newline;
}
}
normal_newline:
p->cmd_start = TRUE;
p->lstate = EXPR_BEG;
pylval.num = nlines;
return '\n';
case '*':
if ((c = nextc(p)) == '*') {
if ((c = nextc(p)) == '=') {
pylval.id = intern_op(pow);
p->lstate = EXPR_BEG;
return tOP_ASGN;
}
pushback(p, c);
if (IS_SPCARG(c)) {
yywarning(p, "'**' interpreted as argument prefix");
c = tDSTAR;
}
else if (IS_BEG()) {
c = tDSTAR;
}
else {
c = tPOW; /* "**", "argument prefix" */
}
}
else {
if (c == '=') {
pylval.id = intern_op(mul);
p->lstate = EXPR_BEG;
return tOP_ASGN;
}
pushback(p, c);
if (IS_SPCARG(c)) {
yywarning(p, "'*' interpreted as argument prefix");
c = tSTAR;
}
else if (IS_BEG()) {
c = tSTAR;
}
else {
c = '*';
}
}
if (p->lstate == EXPR_FNAME || p->lstate == EXPR_DOT) {
p->lstate = EXPR_ARG;
}
else {
p->lstate = EXPR_BEG;
}
return c;
case '!':
c = nextc(p);
if (p->lstate == EXPR_FNAME || p->lstate == EXPR_DOT) {
p->lstate = EXPR_ARG;
if (c == '@') {
return '!';
}
}
else {
p->lstate = EXPR_BEG;
}
if (c == '=') {
return tNEQ;
}
if (c == '~') {
return tNMATCH;
}
pushback(p, c);
return '!';
case '=':
if (p->column == 1) {
static const char begin[] = "begin";
static const char end[] = "\n=end";
if (peeks(p, begin)) {
c = peekc_n(p, sizeof(begin)-1);
if (c < 0 || ISSPACE(c)) {
do {
if (!skips(p, end)) {
yyerror(NULL, p, "embedded document meets end of file");
return 0;
}
c = nextc(p);
} while (!(c < 0 || ISSPACE(c)));
if (c != '\n') skip(p, '\n');
p->lineno+=nlines; nlines=1;
p->column = 0;
goto retry;
}
}
}
if (p->lstate == EXPR_FNAME || p->lstate == EXPR_DOT) {
p->lstate = EXPR_ARG;
}
else {
p->lstate = EXPR_BEG;
}
if ((c = nextc(p)) == '=') {
if ((c = nextc(p)) == '=') {
return tEQQ;
}
pushback(p, c);
return tEQ;
}
if (c == '~') {
return tMATCH;
}
else if (c == '>') {
return tASSOC;
}
pushback(p, c);
return '=';
case '<':
c = nextc(p);
if (c == '<' &&
p->lstate != EXPR_DOT &&
p->lstate != EXPR_CLASS &&
!IS_END() &&
(!IS_ARG() || space_seen)) {
int token = heredoc_identifier(p);
if (token)
return token;
}
if (p->lstate == EXPR_FNAME || p->lstate == EXPR_DOT) {
p->lstate = EXPR_ARG;
}
else {
p->lstate = EXPR_BEG;
if (p->lstate == EXPR_CLASS) {
p->cmd_start = TRUE;
}
}
if (c == '=') {
if ((c = nextc(p)) == '>') {
return tCMP;
}
pushback(p, c);
return tLEQ;
}
if (c == '<') {
if ((c = nextc(p)) == '=') {
pylval.id = intern_op(lshift);
p->lstate = EXPR_BEG;
return tOP_ASGN;
}
pushback(p, c);
return tLSHFT;
}
pushback(p, c);
return '<';
case '>':
if (p->lstate == EXPR_FNAME || p->lstate == EXPR_DOT) {
p->lstate = EXPR_ARG;
}
else {
p->lstate = EXPR_BEG;
}
if ((c = nextc(p)) == '=') {
return tGEQ;
}
if (c == '>') {
if ((c = nextc(p)) == '=') {
pylval.id = intern_op(rshift);
p->lstate = EXPR_BEG;
return tOP_ASGN;
}
pushback(p, c);
return tRSHFT;
}
pushback(p, c);
return '>';
case '"':
p->lex_strterm = new_strterm(p, str_dquote, '"', 0);
return tSTRING_BEG;
case '\'':
p->lex_strterm = new_strterm(p, str_squote, '\'', 0);
return parse_string(p);
case '`':
if (p->lstate == EXPR_FNAME) {
p->lstate = EXPR_ENDFN;
return '`';
}
if (p->lstate == EXPR_DOT) {
if (cmd_state)
p->lstate = EXPR_CMDARG;
else
p->lstate = EXPR_ARG;
return '`';
}
p->lex_strterm = new_strterm(p, str_xquote, '`', 0);
return tXSTRING_BEG;
case '?':
if (IS_END()) {
p->lstate = EXPR_VALUE;
return '?';
}
c = nextc(p);
if (c < 0) {
yyerror(NULL, p, "incomplete character syntax");
return 0;
}
if (ISSPACE(c)) {
if (!IS_ARG()) {
int c2;
switch (c) {
case ' ':
c2 = 's';
break;
case '\n':
c2 = 'n';
break;
case '\t':
c2 = 't';
break;
case '\v':
c2 = 'v';
break;
case '\r':
c2 = 'r';
break;
case '\f':
c2 = 'f';
break;
default:
c2 = 0;
break;
}
if (c2) {
char buf[256];
char cc[] = { (char)c2, '\0' };
strcpy(buf, "invalid character syntax; use ?\\");
strncat(buf, cc, 2);
yyerror(NULL, p, buf);
}
}
ternary:
pushback(p, c);
p->lstate = EXPR_VALUE;
return '?';
}
newtok(p);
/* need support UTF-8 if configured */
if ((ISALNUM(c) || c == '_')) {
int c2 = nextc(p);
pushback(p, c2);
if ((ISALNUM(c2) || c2 == '_')) {
goto ternary;
}
}
if (c == '\\') {
c = read_escape(p);
tokadd(p, c);
}
else {
tokadd(p, c);
}
tokfix(p);
pylval.nd = new_str_tok(p);
p->lstate = EXPR_END;
return tCHAR;
case '&':
if ((c = nextc(p)) == '&') {
p->lstate = EXPR_BEG;
if ((c = nextc(p)) == '=') {
pylval.id = intern_op(andand);
p->lstate = EXPR_BEG;
return tOP_ASGN;
}
pushback(p, c);
return tANDOP;
}
else if (c == '.') {
p->lstate = EXPR_DOT;
return tANDDOT;
}
else if (c == '=') {
pylval.id = intern_op(and);
p->lstate = EXPR_BEG;
return tOP_ASGN;
}
pushback(p, c);
if (IS_SPCARG(c)) {
yywarning(p, "'&' interpreted as argument prefix");
c = tAMPER;
}
else if (IS_BEG()) {
c = tAMPER;
}
else {
c = '&';
}
if (p->lstate == EXPR_FNAME || p->lstate == EXPR_DOT) {
p->lstate = EXPR_ARG;
}
else {
p->lstate = EXPR_BEG;
}
return c;
case '|':
if ((c = nextc(p)) == '|') {
p->lstate = EXPR_BEG;
if ((c = nextc(p)) == '=') {
pylval.id = intern_op(oror);
p->lstate = EXPR_BEG;
return tOP_ASGN;
}
pushback(p, c);
return tOROP;
}
if (c == '=') {
pylval.id = intern_op(or);
p->lstate = EXPR_BEG;
return tOP_ASGN;
}
if (p->lstate == EXPR_FNAME || p->lstate == EXPR_DOT) {
p->lstate = EXPR_ARG;
}
else {
p->lstate = EXPR_BEG;
}
pushback(p, c);
return '|';
case '+':
c = nextc(p);
if (p->lstate == EXPR_FNAME || p->lstate == EXPR_DOT) {
p->lstate = EXPR_ARG;
if (c == '@') {
return tUPLUS;
}
pushback(p, c);
return '+';
}
if (c == '=') {
pylval.id = intern_op(add);
p->lstate = EXPR_BEG;
return tOP_ASGN;
}
if (IS_BEG() || (IS_SPCARG(c) && arg_ambiguous(p))) {
p->lstate = EXPR_BEG;
pushback(p, c);
if (c >= 0 && ISDIGIT(c)) {
c = '+';
goto start_num;
}
return tUPLUS;
}
p->lstate = EXPR_BEG;
pushback(p, c);
return '+';
case '-':
c = nextc(p);
if (p->lstate == EXPR_FNAME || p->lstate == EXPR_DOT) {
p->lstate = EXPR_ARG;
if (c == '@') {
return tUMINUS;
}
pushback(p, c);
return '-';
}
if (c == '=') {
pylval.id = intern_op(sub);
p->lstate = EXPR_BEG;
return tOP_ASGN;
}
if (c == '>') {
p->lstate = EXPR_ENDFN;
return tLAMBDA;
}
if (IS_BEG() || (IS_SPCARG(c) && arg_ambiguous(p))) {
p->lstate = EXPR_BEG;
pushback(p, c);
if (c >= 0 && ISDIGIT(c)) {
return tUMINUS_NUM;
}
return tUMINUS;
}
p->lstate = EXPR_BEG;
pushback(p, c);
return '-';
case '.':
{
int is_beg = IS_BEG();
p->lstate = EXPR_MID;
if ((c = nextc(p)) == '.') {
if ((c = nextc(p)) == '.') {
return is_beg ? tBDOT3 : tDOT3;
}
pushback(p, c);
return is_beg ? tBDOT2 : tDOT2;
}
pushback(p, c);
p->lstate = EXPR_BEG;
if (c >= 0 && ISDIGIT(c)) {
yyerror(NULL, p, "no .<digit> floating literal anymore; put 0 before dot");
}
p->lstate = EXPR_DOT;
return '.';
}
start_num:
case '0': case '1': case '2': case '3': case '4':
case '5': case '6': case '7': case '8': case '9':
{
int is_float, seen_point, seen_e, nondigit;
int suffix = 0;
is_float = seen_point = seen_e = nondigit = 0;
p->lstate = EXPR_END;
newtok(p);
if (c == '-') {
tokadd(p, c);
c = nextc(p);
}
else if (c == '+') {
c = nextc(p);
}
if (c == '0') {
#define no_digits() do {yyerror(NULL, p,"numeric literal without digits"); return 0;} while (0)
int start = toklen(p);
c = nextc(p);
if (c == 'x' || c == 'X') {
/* hexadecimal */
c = nextc(p);
if (c >= 0 && ISXDIGIT(c)) {
do {
if (c == '_') {
if (nondigit) break;
nondigit = c;
continue;
}
if (!ISXDIGIT(c)) break;
nondigit = 0;
tokadd(p, tolower(c));
} while ((c = nextc(p)) >= 0);
}
pushback(p, c);
tokfix(p);
if (toklen(p) == start) {
no_digits();
}
else if (nondigit) goto trailing_uc;
suffix = number_literal_suffix(p);
pylval.nd = new_int(p, tok(p), 16, suffix);
return tINTEGER;
}
if (c == 'b' || c == 'B') {
/* binary */
c = nextc(p);
if (c == '0' || c == '1') {
do {
if (c == '_') {
if (nondigit) break;
nondigit = c;
continue;
}
if (c != '0' && c != '1') break;
nondigit = 0;
tokadd(p, c);
} while ((c = nextc(p)) >= 0);
}
pushback(p, c);
tokfix(p);
if (toklen(p) == start) {
no_digits();
}
else if (nondigit) goto trailing_uc;
suffix = number_literal_suffix(p);
pylval.nd = new_int(p, tok(p), 2, suffix);
return tINTEGER;
}
if (c == 'd' || c == 'D') {
/* decimal */
c = nextc(p);
if (c >= 0 && ISDIGIT(c)) {
do {
if (c == '_') {
if (nondigit) break;
nondigit = c;
continue;
}
if (!ISDIGIT(c)) break;
nondigit = 0;
tokadd(p, c);
} while ((c = nextc(p)) >= 0);
}
pushback(p, c);
tokfix(p);
if (toklen(p) == start) {
no_digits();
}
else if (nondigit) goto trailing_uc;
suffix = number_literal_suffix(p);
pylval.nd = new_int(p, tok(p), 10, suffix);
return tINTEGER;
}
if (c == '_') {
/* 0_0 */
goto octal_number;
}
if (c == 'o' || c == 'O') {
/* prefixed octal */
c = nextc(p);
if (c < 0 || c == '_' || !ISDIGIT(c)) {
no_digits();
}
}
if (c >= '0' && c <= '7') {
/* octal */
octal_number:
do {
if (c == '_') {
if (nondigit) break;
nondigit = c;
continue;
}
if (c < '0' || c > '9') break;
if (c > '7') goto invalid_octal;
nondigit = 0;
tokadd(p, c);
} while ((c = nextc(p)) >= 0);
if (toklen(p) > start) {
pushback(p, c);
tokfix(p);
if (nondigit) goto trailing_uc;
suffix = number_literal_suffix(p);
pylval.nd = new_int(p, tok(p), 8, suffix);
return tINTEGER;
}
if (nondigit) {
pushback(p, c);
goto trailing_uc;
}
}
if (c > '7' && c <= '9') {
invalid_octal:
yyerror(NULL, p, "Invalid octal digit");
}
else if (c == '.' || c == 'e' || c == 'E') {
tokadd(p, '0');
}
else {
pushback(p, c);
suffix = number_literal_suffix(p);
pylval.nd = new_int(p, "0", 10, suffix);
return tINTEGER;
}
}
for (;;) {
switch (c) {
case '0': case '1': case '2': case '3': case '4':
case '5': case '6': case '7': case '8': case '9':
nondigit = 0;
tokadd(p, c);
break;
case '.':
if (nondigit) goto trailing_uc;
if (seen_point || seen_e) {
goto decode_num;
}
else {
int c0 = nextc(p);
if (c0 < 0 || !ISDIGIT(c0)) {
pushback(p, c0);
goto decode_num;
}
c = c0;
}
tokadd(p, '.');
tokadd(p, c);
is_float++;
seen_point++;
nondigit = 0;
break;
case 'e':
case 'E':
if (nondigit) {
pushback(p, c);
c = nondigit;
goto decode_num;
}
if (seen_e) {
goto decode_num;
}
tokadd(p, c);
seen_e++;
is_float++;
nondigit = c;
c = nextc(p);
if (c != '-' && c != '+') continue;
tokadd(p, c);
nondigit = c;
break;
case '_': /* '_' in number just ignored */
if (nondigit) goto decode_num;
nondigit = c;
break;
default:
goto decode_num;
}
c = nextc(p);
}
decode_num:
pushback(p, c);
if (nondigit) {
trailing_uc:
yyerror_c(p, "trailing non digit in number: ", (char)nondigit);
}
tokfix(p);
if (is_float) {
#ifdef MRB_NO_FLOAT
yywarning_s(p, "floating-point numbers are not supported", tok(p));
pylval.nd = new_int(p, "0", 10, 0);
return tINTEGER;
#else
double d;
if (!mrb_read_float(tok(p), NULL, &d)) {
yywarning_s(p, "corrupted float value", tok(p));
}
suffix = number_literal_suffix(p);
if (seen_e && (suffix & NUM_SUFFIX_R)) {
pushback(p, 'r');
suffix &= ~NUM_SUFFIX_R;
}
pylval.nd = new_float(p, tok(p), suffix);
return tFLOAT;
#endif
}
suffix = number_literal_suffix(p);
pylval.nd = new_int(p, tok(p), 10, suffix);
return tINTEGER;
}
case ')':
case ']':
p->paren_nest--;
/* fall through */
case '}':
COND_LEXPOP();
CMDARG_LEXPOP();
if (c == ')')
p->lstate = EXPR_ENDFN;
else
p->lstate = EXPR_END;
return c;
case ':':
c = nextc(p);
if (c == ':') {
if (IS_BEG() || p->lstate == EXPR_CLASS || IS_SPCARG(-1)) {
p->lstate = EXPR_BEG;
return tCOLON3;
}
p->lstate = EXPR_DOT;
return tCOLON2;
}
if (!space_seen && IS_END()) {
pushback(p, c);
/* In pattern matching context, use EXPR_ARG so newlines are significant */
p->lstate = p->in_kwarg ? EXPR_ARG : EXPR_BEG;
return tLABEL_TAG;
}
if (IS_END() || ISSPACE(c) || c == '#') {
pushback(p, c);
p->lstate = EXPR_BEG;
return ':';
}
pushback(p, c);
p->lstate = EXPR_FNAME;
return tSYMBEG;
case '/':
if (IS_BEG()) {
p->lex_strterm = new_strterm(p, str_regexp, '/', 0);
return tREGEXP_BEG;
}
if ((c = nextc(p)) == '=') {
pylval.id = intern_op(div);
p->lstate = EXPR_BEG;
return tOP_ASGN;
}
pushback(p, c);
if (IS_SPCARG(c)) {
p->lex_strterm = new_strterm(p, str_regexp, '/', 0);
return tREGEXP_BEG;
}
if (p->lstate == EXPR_FNAME || p->lstate == EXPR_DOT) {
p->lstate = EXPR_ARG;
}
else {
p->lstate = EXPR_BEG;
}
return '/';
case '^':
if ((c = nextc(p)) == '=') {
pylval.id = intern_op(xor);
p->lstate = EXPR_BEG;
return tOP_ASGN;
}
if (p->lstate == EXPR_FNAME || p->lstate == EXPR_DOT) {
p->lstate = EXPR_ARG;
}
else {
p->lstate = EXPR_BEG;
}
pushback(p, c);
return '^';
case ';':
p->lstate = EXPR_BEG;
return ';';
case ',':
p->lstate = EXPR_BEG;
return ',';
case '~':
if (p->lstate == EXPR_FNAME || p->lstate == EXPR_DOT) {
if ((c = nextc(p)) != '@') {
pushback(p, c);
}
p->lstate = EXPR_ARG;
}
else {
p->lstate = EXPR_BEG;
}
return '~';
case '(':
if (IS_BEG()) {
c = tLPAREN;
}
else if (IS_SPCARG(-1)) {
c = tLPAREN_ARG;
}
else if (p->lstate == EXPR_END && space_seen) {
c = tLPAREN_ARG;
}
p->paren_nest++;
COND_PUSH(0);
CMDARG_PUSH(0);
p->lstate = EXPR_BEG;
return c;
case '[':
p->paren_nest++;
if (p->lstate == EXPR_FNAME || p->lstate == EXPR_DOT) {
p->lstate = EXPR_ARG;
p->paren_nest--;
if ((c = nextc(p)) == ']') {
if ((c = nextc(p)) == '=') {
return tASET;
}
pushback(p, c);
return tAREF;
}
pushback(p, c);
return '[';
}
else if (IS_BEG()) {
c = tLBRACK;
}
else if (IS_ARG() && space_seen) {
c = tLBRACK;
}
p->lstate = EXPR_BEG;
COND_PUSH(0);
CMDARG_PUSH(0);
return c;
case '{':
if (p->lpar_beg && p->lpar_beg == p->paren_nest) {
p->lstate = EXPR_BEG;
p->lpar_beg = 0;
p->paren_nest--;
COND_PUSH(0);
CMDARG_PUSH(0);
return tLAMBEG;
}
if (IS_ARG() || p->lstate == EXPR_END || p->lstate == EXPR_ENDFN)
c = '{'; /* block (primary) */
else if (p->lstate == EXPR_ENDARG)
c = tLBRACE_ARG; /* block (expr) */
else
c = tLBRACE; /* hash */
COND_PUSH(0);
CMDARG_PUSH(0);
p->lstate = EXPR_BEG;
return c;
case '\\':
c = nextc(p);
if (c == '\n') {
p->lineno+=nlines; nlines=1;
p->column = 0;
space_seen = 1;
goto retry; /* skip \\n */
}
pushback(p, c);
return '\\';
case '%':
if (IS_BEG()) {
int term;
int paren;
c = nextc(p);
quotation:
if (c < 0 || !ISALNUM(c)) {
term = c;
c = 'Q';
}
else {
term = nextc(p);
if (ISALNUM(term)) {
yyerror(NULL, p, "unknown type of %string");
return 0;
}
}
if (c < 0 || term < 0) {
yyerror(NULL, p, "unterminated quoted string meets end of file");
return 0;
}
paren = term;
if (term == '(') term = ')';
else if (term == '[') term = ']';
else if (term == '{') term = '}';
else if (term == '<') term = '>';
else paren = 0;
switch (c) {
case 'Q':
p->lex_strterm = new_strterm(p, str_dquote, term, paren);
return tSTRING_BEG;
case 'q':
p->lex_strterm = new_strterm(p, str_squote, term, paren);
return parse_string(p);
case 'W':
p->lex_strterm = new_strterm(p, str_dword, term, paren);
return tWORDS_BEG;
case 'w':
p->lex_strterm = new_strterm(p, str_sword, term, paren);
return tWORDS_BEG;
case 'x':
p->lex_strterm = new_strterm(p, str_xquote, term, paren);
return tXSTRING_BEG;
case 'r':
p->lex_strterm = new_strterm(p, str_regexp, term, paren);
return tREGEXP_BEG;
case 's':
p->lex_strterm = new_strterm(p, str_ssym, term, paren);
return tSYMBEG;
case 'I':
p->lex_strterm = new_strterm(p, str_dsymbols, term, paren);
return tSYMBOLS_BEG;
case 'i':
p->lex_strterm = new_strterm(p, str_ssymbols, term, paren);
return tSYMBOLS_BEG;
default:
yyerror(NULL, p, "unknown type of %string");
return 0;
}
}
if ((c = nextc(p)) == '=') {
pylval.id = intern_op(mod);
p->lstate = EXPR_BEG;
return tOP_ASGN;
}
if (IS_SPCARG(c)) {
goto quotation;
}
if (p->lstate == EXPR_FNAME || p->lstate == EXPR_DOT) {
p->lstate = EXPR_ARG;
}
else {
p->lstate = EXPR_BEG;
}
pushback(p, c);
return '%';
case '$':
p->lstate = EXPR_END;
token_column = newtok(p);
c = nextc(p);
if (c < 0) {
yyerror(NULL, p, "incomplete global variable syntax");
return 0;
}
switch (c) {
case '_': /* $_: last read line string */
c = nextc(p);
if (c >= 0 && identchar(c)) { /* if there is more after _ it is a variable */
tokadd(p, '$');
tokadd(p, c);
break;
}
pushback(p, c);
c = '_';
/* fall through */
case '~': /* $~: match-data */
case '*': /* $*: argv */
case '$': /* $$: pid */
case '?': /* $?: last status */
case '!': /* $!: error string */
case '@': /* $@: error position */
case '/': /* $/: input record separator */
case '\\': /* $\: output record separator */
case ';': /* $;: field separator */
case ',': /* $,: output field separator */
case '.': /* $.: last read line number */
case '=': /* $=: ignorecase */
case ':': /* $:: load path */
case '<': /* $<: reading filename */
case '>': /* $>: default output handle */
case '\"': /* $": already loaded files */
tokadd(p, '$');
tokadd(p, c);
tokfix(p);
pylval.id = intern(tok(p), toklen(p));
return tGVAR;
case '-':
tokadd(p, '$');
tokadd(p, c);
c = nextc(p);
pushback(p, c);
gvar:
tokfix(p);
pylval.id = intern(tok(p), toklen(p));
return tGVAR;
case '&': /* $&: last match */
case '`': /* $`: string before last match */
case '\'': /* $': string after last match */
case '+': /* $+: string matches last pattern */
if (last_state == EXPR_FNAME) {
tokadd(p, '$');
tokadd(p, c);
goto gvar;
}
pylval.nd = new_back_ref(p, c);
return tBACK_REF;
case '1': case '2': case '3':
case '4': case '5': case '6':
case '7': case '8': case '9':
do {
tokadd(p, c);
c = nextc(p);
} while (c >= 0 && ISDIGIT(c));
pushback(p, c);
if (last_state == EXPR_FNAME) goto gvar;
tokfix(p);
{
mrb_int n;
if (!mrb_read_int(tok(p), NULL, NULL, &n)) {
yywarning(p, "capture group index too big; always nil");
return keyword_nil;
}
pylval.nd = new_nth_ref(p, (int)n);
}
return tNTH_REF;
default:
if (!identchar(c)) {
pushback(p, c);
return '$';
}
/* fall through */
case '0':
tokadd(p, '$');
}
break;
case '@':
c = nextc(p);
token_column = newtok(p);
tokadd(p, '@');
if (c == '@') {
tokadd(p, '@');
c = nextc(p);
}
if (c < 0) {
if (p->tidx == 1) {
yyerror(NULL, p, "incomplete instance variable syntax");
}
else {
yyerror(NULL, p, "incomplete class variable syntax");
}
return 0;
}
else if (ISDIGIT(c)) {
if (p->tidx == 1) {
yyerror_c(p, "wrong instance variable name: @", c);
}
else {
yyerror_c(p, "wrong class variable name: @@", c);
}
return 0;
}
if (!identchar(c)) {
pushback(p, c);
return '@';
}
break;
case '_':
token_column = newtok(p);
break;
default:
if (!identchar(c)) {
char buf[36];
const char s[] = "Invalid char in expression: 0x";
const char hexdigits[] = "0123456789ABCDEF";
strcpy(buf, s);
buf[sizeof(s)-1] = hexdigits[(c & 0xf0) >> 4];
buf[sizeof(s)] = hexdigits[(c & 0x0f)];
buf[sizeof(s)+1] = 0;
yyerror(NULL, p, buf);
goto retry;
}
token_column = newtok(p);
break;
}
do {
tokadd(p, c);
c = nextc(p);
if (c < 0) break;
} while (identchar(c));
if (token_column == 0 && toklen(p) == 7 && (c < 0 || c == '\n') &&
strncmp(tok(p), "__END__", toklen(p)) == 0)
return -1;
switch (tok(p)[0]) {
case '@': case '$':
pushback(p, c);
break;
default:
if ((c == '!' || c == '?') && !peek(p, '=')) {
tokadd(p, c);
}
else {
pushback(p, c);
}
}
tokfix(p);
{
int result = 0;
switch (tok(p)[0]) {
case '$':
p->lstate = EXPR_END;
result = tGVAR;
break;
case '@':
p->lstate = EXPR_END;
if (tok(p)[1] == '@')
result = tCVAR;
else
result = tIVAR;
break;
case '_':
if (toklen(p) == 2 && ISDIGIT(tok(p)[1]) && p->nvars) {
int n = tok(p)[1] - '0';
int nvar;
if (n > 0) {
nvar = node_to_int(p->nvars->car);
if (nvar != -2) { /* numbered parameters never appear on toplevel */
pylval.num = n;
p->lstate = EXPR_END;
return tNUMPARAM;
}
}
}
/* fall through */
default:
if (toklast(p) == '!' || toklast(p) == '?') {
result = tFID;
}
else {
if (p->lstate == EXPR_FNAME) {
if ((c = nextc(p)) == '=' && !peek(p, '~') && !peek(p, '>') &&
(!peek(p, '=') || (peek_n(p, '>', 1)))) {
result = tIDENTIFIER;
tokadd(p, c);
tokfix(p);
}
else {
pushback(p, c);
}
if ((c = nextc(p)) == '=' && !peek(p, '~') && !peek(p, '>') &&
(!peek(p, '=') || (peek_n(p, '>', 1)))) {
result = tIDENTIFIER;
tokadd(p, c);
tokfix(p);
}
else {
pushback(p, c);
}
}
if (result == 0 && ISUPPER(tok(p)[0])) {
result = tCONSTANT;
}
else {
result = tIDENTIFIER;
}
}
if (IS_LABEL_POSSIBLE()) {
if (IS_LABEL_SUFFIX(0)) {
p->lstate = EXPR_END;
tokfix(p);
pylval.id = intern(tok(p), toklen(p));
return tIDENTIFIER;
}
}
if (p->lstate != EXPR_DOT) {
const struct kwtable *kw;
/* See if it is a reserved word. */
kw = mrb_reserved_word(tok(p), toklen(p));
if (kw) {
enum mrb_lex_state_enum state = p->lstate;
pylval.num = p->lineno;
p->lstate = kw->state;
if (state == EXPR_FNAME) {
pylval.id = intern_cstr(kw->name);
return kw->id[0];
}
if (p->lstate == EXPR_BEG) {
p->cmd_start = TRUE;
}
if (kw->id[0] == keyword_do) {
if (p->lpar_beg && p->lpar_beg == p->paren_nest) {
p->lpar_beg = 0;
p->paren_nest--;
return keyword_do_LAMBDA;
}
if (COND_P()) return keyword_do_cond;
if (CMDARG_P() && state != EXPR_CMDARG)
return keyword_do_block;
if (state == EXPR_ENDARG || state == EXPR_BEG)
return keyword_do_block;
return keyword_do;
}
if (kw->id[0] == keyword_in) {
/* Set in_kwarg for pattern matching context */
p->in_kwarg++;
}
if (state == EXPR_BEG || state == EXPR_VALUE || state == EXPR_CLASS)
return kw->id[0];
else {
if (kw->id[0] != kw->id[1])
p->lstate = EXPR_BEG;
return kw->id[1];
}
}
}
if (IS_BEG() || p->lstate == EXPR_DOT || IS_ARG()) {
if (cmd_state) {
p->lstate = EXPR_CMDARG;
}
else {
p->lstate = EXPR_ARG;
}
}
else if (p->lstate == EXPR_FNAME) {
p->lstate = EXPR_ENDFN;
}
else {
p->lstate = EXPR_END;
}
}
{
mrb_sym ident = intern(tok(p), toklen(p));
pylval.id = ident;
if (last_state != EXPR_DOT && ISLOWER(tok(p)[0]) && local_var_p(p, ident)) {
p->lstate = EXPR_END;
}
}
return result;
}
}
static int
yylex(void *lval, void *lp, parser_state *p)
{
p->ylval = lval;
return parser_yylex(p);
}
static void
parser_init_cxt(parser_state *p, mrb_ccontext *cxt)
{
if (!cxt) return;
if (cxt->filename) mrb_parser_set_filename(p, cxt->filename);
if (cxt->lineno) p->lineno = cxt->lineno;
if (cxt->syms) {
int i;
p->locals = cons(0,0);
for (i=0; i<cxt->slen; i++) {
local_add_f(p, cxt->syms[i]);
}
}
p->capture_errors = cxt->capture_errors;
p->no_optimize = cxt->no_optimize;
p->no_ext_ops = cxt->no_ext_ops;
p->no_return_value = cxt->no_return_value;
p->upper = cxt->upper;
if (cxt->partial_hook) {
p->cxt = cxt;
}
}
static void
parser_update_cxt(parser_state *p, mrb_ccontext *cxt)
{
node *n, *n0;
int i = 0;
if (!cxt) return;
if (!p->tree) return;
if (!node_type_p(p->tree, NODE_SCOPE)) return;
/* Extract locals from variable-sized NODE_SCOPE */
struct mrb_ast_scope_node *scope = scope_node(p->tree);
n0 = n = scope->locals;
while (n) {
i++;
n = n->cdr;
}
cxt->syms = (mrb_sym*)mrbc_realloc(cxt->syms, i*sizeof(mrb_sym));
cxt->slen = i;
for (i=0, n=n0; n; i++,n=n->cdr) {
cxt->syms[i] = node_to_sym(n->car);
}
}
static void dump_node(mrb_state *mrb, node *tree, int offset);
MRB_API void
mrb_parser_parse(parser_state *p, mrb_ccontext *c)
{
struct mrb_jmpbuf buf1;
struct mrb_jmpbuf *prev = p->mrb->jmp;
p->mrb->jmp = &buf1;
MRB_TRY(p->mrb->jmp) {
int n = 1;
p->cmd_start = TRUE;
p->in_def = p->in_single = 0;
p->nerr = p->nwarn = 0;
p->lex_strterm = NULL;
parser_init_cxt(p, c);
n = yyparse(p);
if (n != 0 || p->nerr > 0) {
p->tree = 0;
p->mrb->jmp = prev;
return;
}
parser_update_cxt(p, c);
if (c && c->dump_result) {
dump_node(p->mrb, p->tree, 0);
}
}
MRB_CATCH(p->mrb->jmp) {
p->nerr++;
if (p->mrb->exc == NULL) {
yyerror(NULL, p, "memory allocation error");
p->nerr++;
p->tree = 0;
}
}
MRB_END_EXC(p->jmp);
p->mrb->jmp = prev;
}
MRB_API parser_state*
mrb_parser_new(mrb_state *mrb)
{
mempool *pool;
parser_state *p;
static const parser_state parser_state_zero = { 0 };
pool = mempool_open();
if (!pool) return NULL;
p = (parser_state*)mempool_alloc(pool, sizeof(parser_state));
if (!p) return NULL;
*p = parser_state_zero;
p->mrb = mrb;
p->pool = pool;
p->s = p->send = NULL;
#ifndef MRB_NO_STDIO
p->f = NULL;
#endif
p->cmd_start = TRUE;
p->in_def = p->in_single = 0;
p->capture_errors = FALSE;
p->lineno = 1;
p->column = 0;
#if defined(PARSER_TEST) || defined(PARSER_DEBUG)
yydebug = 1;
#endif
p->tsiz = MRB_PARSER_TOKBUF_SIZE;
p->tokbuf = p->buf;
p->lex_strterm = NULL;
p->current_filename_index = -1;
p->filename_table = NULL;
p->filename_table_length = 0;
return p;
}
MRB_API void
mrb_parser_free(parser_state *p) {
if (p->tokbuf != p->buf) {
mrbc_free(p->tokbuf);
}
mempool_close(p->pool);
}
MRB_API mrb_ccontext*
mrb_ccontext_new(mrb_state *mrb)
{
static const mrb_ccontext cc_zero = { 0 };
mrb_ccontext *cc = (mrb_ccontext*)mrbc_malloc(sizeof(mrb_ccontext));
*cc = cc_zero;
return cc;
}
MRB_API void
mrb_ccontext_free(mrb_state *mrb, mrb_ccontext *cxt)
{
mrbc_free(cxt->filename);
mrbc_free(cxt->syms);
mrbc_free(cxt);
}
MRB_API const char*
mrb_ccontext_filename(mrb_state *mrb, mrb_ccontext *c, const char *s)
{
if (s) {
size_t len = strlen(s);
char *p = (char*)mrbc_malloc(len + 1);
if (p == NULL) return NULL;
memcpy(p, s, len + 1);
if (c->filename) {
mrbc_free(c->filename);
}
c->filename = p;
}
return c->filename;
}
MRB_API void
mrb_ccontext_partial_hook(mrb_ccontext *c, int (*func)(struct mrb_parser_state*), void *data)
{
c->partial_hook = func;
c->partial_data = data;
}
MRB_API void
mrb_ccontext_cleanup_local_variables(mrb_ccontext *c)
{
if (c->syms) {
mrbc_free(c->syms);
c->syms = NULL;
c->slen = 0;
}
c->keep_lv = FALSE;
}
MRB_API void
mrb_parser_set_filename(struct mrb_parser_state *p, const char *f)
{
mrb_sym sym;
uint16_t i;
mrb_sym* new_table;
sym = mrb_intern_cstr(p->mrb, f);
p->filename_sym = sym;
p->lineno = (p->filename_table_length > 0)? 0 : 1;
for (i = 0; i < p->filename_table_length; i++) {
if (p->filename_table[i] == sym) {
p->current_filename_index = i;
return;
}
}
if (p->filename_table_length == UINT16_MAX) {
yyerror(NULL, p, "too many files to compile");
return;
}
p->current_filename_index = p->filename_table_length++;
new_table = (mrb_sym*)parser_palloc(p, sizeof(mrb_sym) * p->filename_table_length);
if (p->filename_table) {
memmove(new_table, p->filename_table, sizeof(mrb_sym) * p->current_filename_index);
}
p->filename_table = new_table;
p->filename_table[p->filename_table_length - 1] = sym;
}
MRB_API mrb_sym
mrb_parser_get_filename(struct mrb_parser_state* p, uint16_t idx) {
if (idx >= p->filename_table_length) return 0;
else {
return p->filename_table[idx];
}
}
#ifndef MRB_NO_STDIO
static struct mrb_parser_state *
mrb_parse_file_continue(mrb_state *mrb, FILE *f, const void *prebuf, size_t prebufsize, mrb_ccontext *c)
{
parser_state *p;
p = mrb_parser_new(mrb);
if (!p) return NULL;
if (prebuf) {
p->s = (const char*)prebuf;
p->send = (const char*)prebuf + prebufsize;
}
else {
p->s = p->send = NULL;
}
p->f = f;
mrb_parser_parse(p, c);
return p;
}
MRB_API parser_state*
mrb_parse_file(mrb_state *mrb, FILE *f, mrb_ccontext *c)
{
return mrb_parse_file_continue(mrb, f, NULL, 0, c);
}
#endif
MRB_API parser_state*
mrb_parse_nstring(mrb_state *mrb, const char *s, size_t len, mrb_ccontext *c)
{
parser_state *p;
p = mrb_parser_new(mrb);
if (!p) return NULL;
p->s = s;
p->send = s + len;
mrb_parser_parse(p, c);
return p;
}
MRB_API parser_state*
mrb_parse_string(mrb_state *mrb, const char *s, mrb_ccontext *c)
{
return mrb_parse_nstring(mrb, s, strlen(s), c);
}
MRB_API mrb_value
mrb_load_exec(mrb_state *mrb, struct mrb_parser_state *p, mrb_ccontext *c)
{
struct RClass *target = mrb->object_class;
struct RProc *proc;
mrb_value v;
mrb_int keep = 0;
if (!p) {
return mrb_undef_value();
}
if (!p->tree || p->nerr) {
if (c) c->parser_nerr = p->nerr;
if (p->capture_errors) {
char buf[256];
strcpy(buf, "line ");
dump_int(p->error_buffer[0].lineno, buf+5);
strcat(buf, ": ");
strncat(buf, p->error_buffer[0].message, sizeof(buf) - strlen(buf) - 1);
mrb->exc = mrb_obj_ptr(mrb_exc_new(mrb, E_SYNTAX_ERROR, buf, strlen(buf)));
mrb_parser_free(p);
return mrb_undef_value();
}
else {
if (mrb->exc == NULL) {
mrb->exc = mrb_obj_ptr(mrb_exc_new_lit(mrb, E_SYNTAX_ERROR, "syntax error"));
}
mrb_parser_free(p);
return mrb_undef_value();
}
}
proc = mrb_generate_code(mrb, p);
mrb_parser_free(p);
if (proc == NULL) {
if (mrb->exc == NULL) {
mrb->exc = mrb_obj_ptr(mrb_exc_new_lit(mrb, E_SCRIPT_ERROR, "codegen error"));
}
return mrb_undef_value();
}
if (c) {
if (c->dump_result) mrb_codedump_all(mrb, proc);
if (c->no_exec) return mrb_obj_value(proc);
if (c->target_class) {
target = c->target_class;
}
if (c->keep_lv) {
keep = c->slen + 1;
}
else {
c->keep_lv = TRUE;
}
}
MRB_PROC_SET_TARGET_CLASS(proc, target);
if (mrb->c->ci) {
mrb_vm_ci_target_class_set(mrb->c->ci, target);
}
v = mrb_top_run(mrb, proc, mrb_top_self(mrb), keep);
if (mrb->exc) return mrb_nil_value();
return v;
}
#ifndef MRB_NO_STDIO
MRB_API mrb_value
mrb_load_file_cxt(mrb_state *mrb, FILE *f, mrb_ccontext *c)
{
return mrb_load_exec(mrb, mrb_parse_file(mrb, f, c), c);
}
MRB_API mrb_value
mrb_load_file(mrb_state *mrb, FILE *f)
{
return mrb_load_file_cxt(mrb, f, NULL);
}
#define DETECT_SIZE 64
/*
* In order to be recognized as a `.mrb` file, the following three points must be satisfied:
* - File starts with "RITE"
* - At least `sizeof(struct rite_binary_header)` bytes can be read
* - `NUL` is included in the first 64 bytes of the file
*/
MRB_API mrb_value
mrb_load_detect_file_cxt(mrb_state *mrb, FILE *fp, mrb_ccontext *c)
{
union {
char b[DETECT_SIZE];
struct rite_binary_header h;
} leading;
size_t bufsize;
if (mrb == NULL || fp == NULL) {
return mrb_nil_value();
}
bufsize = fread(leading.b, sizeof(char), sizeof(leading), fp);
if (bufsize < sizeof(leading.h) ||
memcmp(leading.h.binary_ident, RITE_BINARY_IDENT, sizeof(leading.h.binary_ident)) != 0 ||
memchr(leading.b, '\0', bufsize) == NULL) {
return mrb_load_exec(mrb, mrb_parse_file_continue(mrb, fp, leading.b, bufsize, c), c);
}
else {
mrb_int binsize = bin_to_uint32(leading.h.binary_size);
mrb_value bin_obj = mrb_str_new(mrb, NULL, binsize);
uint8_t *bin = (uint8_t*)RSTRING_PTR(bin_obj);
if ((size_t)binsize > bufsize) {
memcpy(bin, leading.b, bufsize);
if (fread(bin + bufsize, binsize - bufsize, 1, fp) == 0) {
binsize = bufsize;
/* The error is reported by mrb_load_irep_buf_cxt() */
}
}
mrb_value result = mrb_load_irep_buf_cxt(mrb, bin, binsize, c);
if (mrb_string_p(bin_obj)) mrb_str_resize(mrb, bin_obj, 0);
return result;
}
}
#endif
MRB_API mrb_value
mrb_load_nstring_cxt(mrb_state *mrb, const char *s, size_t len, mrb_ccontext *c)
{
return mrb_load_exec(mrb, mrb_parse_nstring(mrb, s, len, c), c);
}
MRB_API mrb_value
mrb_load_nstring(mrb_state *mrb, const char *s, size_t len)
{
return mrb_load_nstring_cxt(mrb, s, len, NULL);
}
MRB_API mrb_value
mrb_load_string_cxt(mrb_state *mrb, const char *s, mrb_ccontext *c)
{
return mrb_load_nstring_cxt(mrb, s, strlen(s), c);
}
MRB_API mrb_value
mrb_load_string(mrb_state *mrb, const char *s)
{
return mrb_load_string_cxt(mrb, s, NULL);
}
#ifndef MRB_NO_STDIO
static void
dump_prefix(int offset, uint16_t lineno)
{
printf("%05d ", lineno);
while (offset--) {
putc(' ', stdout);
putc(' ', stdout);
}
}
static void
dump_recur(mrb_state *mrb, node *tree, int offset)
{
while (tree) {
dump_node(mrb, tree->car, offset);
tree = tree->cdr;
}
}
static void
dump_locals(mrb_state *mrb, node *tree, int offset, uint16_t lineno)
{
if (!tree || (!tree->car && !tree->cdr)) return;
dump_prefix(offset, lineno);
printf("locals:\n");
dump_prefix(offset+1, lineno);
while (tree) {
if (tree->car) {
mrb_sym sym = node_to_sym(tree->car);
if (sym != 0) {
const char *name = mrb_sym_name(mrb, sym);
if (name && strlen(name) > 0 && name[0] != '!' && name[0] != '@' && name[0] != '$') {
printf(" %s", mrb_sym_dump(mrb, sym));
}
else {
printf(" (invalid symbol: %s)", name ? name : "(null)");
}
}
else {
printf(" (anonymous)");
}
}
tree = tree->cdr;
}
printf("\n");
}
static void
dump_cpath(mrb_state *mrb, node *tree, int offset, uint16_t lineno)
{
dump_prefix(offset, lineno);
printf("cpath: ");
if (!tree) {
printf("(null)\n");
}
else if (node_to_int(tree->car) == 0) {
printf("(null)\n");
}
else if (node_to_int(tree->car) == 1) {
printf("Object\n");
}
else {
printf("\n");
dump_node(mrb, tree->car, offset+1);
}
dump_prefix(offset, lineno);
printf("name: %s\n", mrb_sym_dump(mrb, node_to_sym(tree->cdr)));
}
/*
* This function restores the GC arena on return.
* For this reason, if a process that further generates an object is
* performed at the caller, the string pointer returned as the return
* value may become invalid.
*/
static const char*
str_dump(mrb_state *mrb, const char *str, int len)
{
int ai = mrb_gc_arena_save(mrb);
mrb_value s = mrb_str_new(mrb, str, (mrb_int)len);
s = mrb_str_dump(mrb, s);
mrb_gc_arena_restore(mrb, ai);
return RSTRING_PTR(s);
}
static void
dump_str(mrb_state *mrb, node *n, int offset, uint16_t lineno)
{
while (n) {
dump_prefix(offset, lineno);
int len = node_to_int(n->car->car);
if (len >= 0) {
printf("str: %s\n", str_dump(mrb, (char*)n->car->cdr, len));
}
else {
printf("interpolation:\n");
dump_node(mrb, n->car->cdr, offset+1);
}
n = n->cdr;
}
}
static void
dump_args(mrb_state *mrb, struct mrb_ast_args *args, int offset, uint16_t lineno)
{
if (args->mandatory_args) {
dump_prefix(offset, lineno);
printf("mandatory args:\n");
dump_recur(mrb, args->mandatory_args, offset+1);
}
if (args->optional_args) {
dump_prefix(offset, lineno);
printf("optional args:\n");
{
node *n = args->optional_args;
while (n) {
dump_prefix(offset+1, lineno);
printf("%s=\n", mrb_sym_name(mrb, node_to_sym(n->car->car)));
dump_node(mrb, n->car->cdr, offset+2);
n = n->cdr;
}
}
}
if (args->rest_arg) {
mrb_sym rest = args->rest_arg;
dump_prefix(offset, lineno);
if (rest == MRB_OPSYM(mul))
printf("rest=*\n");
else
printf("rest=*%s\n", mrb_sym_name(mrb, rest));
}
if (args->post_mandatory_args) {
dump_prefix(offset, lineno);
printf("post mandatory args:\n");
dump_recur(mrb, args->post_mandatory_args, offset+1);
}
if (args->keyword_args) {
dump_prefix(offset, lineno);
printf("keyword args:\n");
{
node *n = args->keyword_args;
while (n) {
dump_prefix(offset+1, lineno);
printf("%s:\n", mrb_sym_name(mrb, node_to_sym(n->car->car)));
dump_node(mrb, n->car->cdr, offset+2);
n = n->cdr;
}
}
}
if (args->kwrest_arg) {
mrb_sym rest = args->kwrest_arg;
dump_prefix(offset, lineno);
if (rest == MRB_OPSYM(pow))
printf("kwrest=**\n");
else
printf("kwrest=**%s\n", mrb_sym_name(mrb, rest));
}
if (args->block_arg) {
mrb_sym blk = args->block_arg;
dump_prefix(offset, lineno);
if (blk == MRB_OPSYM(and))
printf("blk=&\n");
else
printf("blk=&%s\n", mrb_sym_name(mrb, blk));
}
}
static void
dump_callargs(mrb_state *mrb, node *n, int offset, uint16_t lineno)
{
if (!n) return;
struct mrb_ast_callargs *args = (struct mrb_ast_callargs*)n;
if (args->regular_args) {
dump_prefix(offset+1, lineno);
printf("args:\n");
dump_recur(mrb, args->regular_args, offset+2);
}
if (args->keyword_args) {
dump_prefix(offset+1, lineno);
printf("kw_args:\n");
node *kw = args->keyword_args;
while (kw) {
dump_prefix(offset+2, lineno);
printf("key:\n");
if (node_to_sym(kw->car->car) == MRB_OPSYM(pow)) {
dump_prefix(offset+3, lineno);
printf("**:\n");
}
else {
dump_node(mrb, kw->car->car, offset+3);
}
dump_prefix(offset+2, lineno);
printf("value:\n");
dump_node(mrb, kw->car->cdr, offset+3);
kw = kw->cdr;
}
}
if (args->block_arg) {
dump_prefix(offset+1, lineno);
printf("block:\n");
dump_node(mrb, args->block_arg, offset+2);
}
}
#endif
void
dump_node(mrb_state *mrb, node *tree, int offset)
{
#ifndef MRB_NO_STDIO
enum node_type nodetype;
uint16_t lineno = 0;
if (!tree) return;
/* Extract line number from variable-sized node header */
if (get_node_type(tree) != NODE_LAST) {
lineno = ((struct mrb_ast_var_header*)tree)->lineno;
}
dump_prefix(offset, lineno);
/* All nodes are now variable-sized nodes with headers */
nodetype = get_node_type(tree);
switch (nodetype) {
/* Variable-sized node cases */
case NODE_SCOPE:
printf("NODE_SCOPE:\n");
if (scope_node(tree)->locals) {
dump_locals(mrb, scope_node(tree)->locals, offset+1, lineno);
}
if (scope_node(tree)->body) {
dump_prefix(offset+1, lineno);
printf("body:\n");
dump_node(mrb, scope_node(tree)->body, offset+2);
}
break;
case NODE_INT:
printf("NODE_INT: %d\n", int_node(tree)->value);
break;
case NODE_BIGINT:
printf("NODE_BIGINT: %s (base %d)\n", bigint_node(tree)->string, bigint_node(tree)->base);
break;
case NODE_FLOAT:
printf("NODE_FLOAT: %s\n", float_node(tree)->value);
break;
case NODE_STR:
printf("NODE_STR:\n");
dump_str(mrb, str_node(tree)->list, offset+1, lineno);
break;
case NODE_XSTR:
printf("NODE_XSTR:\n");
dump_str(mrb, xstr_node(tree)->list, offset+1, lineno);
break;
case NODE_SYM:
printf("NODE_SYM: %s\n", mrb_sym_dump(mrb, sym_node(tree)->symbol));
break;
case NODE_DSYM:
printf("NODE_DSYM:\n");
dump_str(mrb, str_node(tree)->list, offset+1, lineno);
break;
case NODE_LVAR:
printf("NODE_LVAR: %s\n", mrb_sym_dump(mrb, var_node(tree)->symbol));
break;
case NODE_GVAR:
printf("NODE_GVAR: %s\n", mrb_sym_dump(mrb, var_node(tree)->symbol));
break;
case NODE_IVAR:
printf("NODE_IVAR: %s\n", mrb_sym_dump(mrb, var_node(tree)->symbol));
break;
case NODE_CVAR:
printf("NODE_CVAR: %s\n", mrb_sym_dump(mrb, var_node(tree)->symbol));
break;
case NODE_NVAR:
printf("NODE_NVAR: %d\n", nvar_node(tree)->num);
break;
case NODE_CONST:
printf("NODE_CONST: %s\n", mrb_sym_dump(mrb, var_node(tree)->symbol));
break;
case NODE_CALL:
printf("NODE_CALL: %s\n", mrb_sym_dump(mrb, call_node(tree)->method_name));
if (call_node(tree)->receiver) {
dump_prefix(offset+1, lineno);
printf("receiver:\n");
dump_node(mrb, call_node(tree)->receiver, offset+2);
}
if (call_node(tree)->args) {
dump_callargs(mrb, call_node(tree)->args, offset, lineno);
}
break;
case NODE_ARRAY:
printf("NODE_ARRAY:\n");
if (array_node(tree)->elements) {
dump_recur(mrb, array_node(tree)->elements, offset+1);
}
break;
case NODE_TRUE:
printf("NODE_TRUE\n");
break;
case NODE_FALSE:
printf("NODE_FALSE\n");
break;
case NODE_NIL:
printf("NODE_NIL\n");
break;
case NODE_SELF:
printf("NODE_SELF\n");
break;
case NODE_IF:
printf("NODE_IF:\n");
if (if_node(tree)->condition) {
dump_prefix(offset+1, lineno);
printf("cond:\n");
dump_node(mrb, if_node(tree)->condition, offset+2);
}
if (if_node(tree)->then_body) {
dump_prefix(offset+1, lineno);
printf("then:\n");
dump_node(mrb, if_node(tree)->then_body, offset+2);
}
if (if_node(tree)->else_body) {
dump_prefix(offset+1, lineno);
printf("else:\n");
dump_node(mrb, if_node(tree)->else_body, offset+2);
}
break;
case NODE_DEF:
printf("NODE_DEF: %s\n", mrb_sym_dump(mrb, def_node(tree)->name));
if (def_node(tree)->args) {
dump_args(mrb, sdef_node(tree)->args, offset+1, lineno);
}
if (def_node(tree)->locals) {
dump_locals(mrb, def_node(tree)->locals, offset+1, lineno);
}
if (def_node(tree)->body) {
dump_prefix(offset+1, lineno);
printf("body:\n");
dump_node(mrb, def_node(tree)->body, offset+2);
}
break;
case NODE_ASGN:
printf("NODE_ASGN:\n");
if (asgn_node(tree)->lhs) {
dump_prefix(offset+1, lineno);
printf("lhs:\n");
dump_node(mrb, asgn_node(tree)->lhs, offset+2);
}
if (asgn_node(tree)->rhs) {
dump_prefix(offset+1, lineno);
printf("rhs:\n");
dump_node(mrb, asgn_node(tree)->rhs, offset+2);
}
break;
case NODE_MASGN:
case NODE_MARG:
printf("%s:\n", get_node_type(tree) == NODE_MASGN ? "NODE_MASGN" : "NODE_MARG");
/* Handle pre-splat variables */
if (masgn_node(tree)->pre) {
dump_prefix(offset+1, lineno);
printf("pre:\n");
dump_recur(mrb, masgn_node(tree)->pre, offset+2);
}
/* Handle splat variable (can be -1 sentinel for anonymous splat) */
if (masgn_node(tree)->rest) {
if ((intptr_t)masgn_node(tree)->rest == -1) {
dump_prefix(offset+1, lineno);
printf("rest: *<anonymous>\n");
}
else {
dump_prefix(offset+1, lineno);
printf("rest:\n");
dump_node(mrb, masgn_node(tree)->rest, offset+2);
}
}
/* Handle post-splat variables */
if (masgn_node(tree)->post) {
dump_prefix(offset+1, lineno);
printf("post:\n");
dump_recur(mrb, masgn_node(tree)->post, offset+2);
}
if (masgn_node(tree)->rhs) {
dump_prefix(offset+1, lineno);
printf("rhs:\n");
dump_node(mrb, masgn_node(tree)->rhs, offset+2);
}
break;
case NODE_RETURN:
printf("NODE_RETURN:\n");
if (return_node(tree)->args) {
dump_node(mrb, return_node(tree)->args, offset);
}
break;
case NODE_BREAK:
printf("NODE_BREAK:\n");
if (break_node(tree)->value) {
dump_prefix(offset+1, lineno);
printf("value:\n");
dump_node(mrb, break_node(tree)->value, offset+2);
}
break;
case NODE_NEXT:
printf("NODE_NEXT:\n");
if (next_node(tree)->value) {
dump_prefix(offset+1, lineno);
printf("value:\n");
dump_node(mrb, next_node(tree)->value, offset+2);
}
break;
case NODE_NEGATE:
printf("NODE_NEGATE:\n");
if (negate_node(tree)->operand) {
dump_prefix(offset+1, lineno);
printf("operand:\n");
dump_node(mrb, negate_node(tree)->operand, offset+2);
}
break;
case NODE_STMTS:
printf("NODE_STMTS:\n");
if (stmts_node(tree)->stmts) {
dump_recur(mrb, stmts_node(tree)->stmts, offset+1);
}
break;
case NODE_BEGIN:
printf("NODE_BEGIN:\n");
if (begin_node(tree)->body) {
dump_node(mrb, begin_node(tree)->body, offset+1);
}
break;
case NODE_RESCUE:
printf("NODE_RESCUE:\n");
if (rescue_node(tree)->body) {
dump_prefix(offset+1, lineno);
printf("body:\n");
dump_node(mrb, rescue_node(tree)->body, offset+2);
}
if (rescue_node(tree)->rescue_clauses) {
node *n2 = rescue_node(tree)->rescue_clauses;
dump_prefix(offset+1, lineno);
printf("rescue:\n");
while (n2) {
node *n3 = n2->car;
if (n3->car) {
dump_prefix(offset+2, lineno);
printf("handle classes:\n");
dump_recur(mrb, n3->car, offset+3);
}
if (n3->cdr->car) {
dump_prefix(offset+2, lineno);
printf("exc_var:\n");
dump_node(mrb, n3->cdr->car, offset+3);
}
if (n3->cdr->cdr->car) {
dump_prefix(offset+2, lineno);
printf("rescue body:\n");
dump_node(mrb, n3->cdr->cdr->car, offset+3);
}
n2 = n2->cdr;
}
}
if (rescue_node(tree)->else_clause) {
dump_prefix(offset+1, lineno);
printf("else:\n");
dump_node(mrb, rescue_node(tree)->else_clause, offset+2);
}
break;
case NODE_ENSURE:
printf("NODE_ENSURE:\n");
if (ensure_node(tree)->body) {
dump_prefix(offset+1, lineno);
printf("body:\n");
dump_node(mrb, ensure_node(tree)->body, offset+2);
}
if (ensure_node(tree)->ensure_clause) {
dump_prefix(offset+1, lineno);
printf("ensure:\n");
dump_node(mrb, ensure_node(tree)->ensure_clause, offset+2);
}
break;
case NODE_LAMBDA:
printf("NODE_LAMBDA:\n");
goto block;
case NODE_BLOCK:
printf("NODE_BLOCK:\n");
block:
if (block_node(tree)->locals) {
dump_locals(mrb, block_node(tree)->locals, offset+1, lineno);
}
if (block_node(tree)->args) {
dump_args(mrb, block_node(tree)->args, offset+1, lineno);
}
dump_prefix(offset+1, lineno);
printf("body:\n");
dump_node(mrb, block_node(tree)->body, offset+2);
break;
case NODE_AND:
printf("NODE_AND:\n");
dump_node(mrb, and_node(tree)->left, offset+1);
dump_node(mrb, and_node(tree)->right, offset+1);
break;
case NODE_OR:
printf("NODE_OR:\n");
dump_node(mrb, or_node(tree)->left, offset+1);
dump_node(mrb, or_node(tree)->right, offset+1);
break;
case NODE_CASE:
printf("NODE_CASE:\n");
if (case_node(tree)->value) {
dump_prefix(offset+1, lineno);
printf("value:\n");
dump_node(mrb, case_node(tree)->value, offset+2);
}
if (case_node(tree)->body) {
node *when_node = case_node(tree)->body;
while (when_node) {
dump_prefix(offset+1, lineno);
printf("when:\n");
node *when_clause = when_node->car;
if (when_clause && when_clause->car) {
dump_prefix(offset+2, lineno);
printf("cond:\n");
dump_recur(mrb, when_clause->car, offset+3);
}
if (when_clause && when_clause->cdr) {
dump_prefix(offset+2, lineno);
printf("body:\n");
dump_node(mrb, when_clause->cdr, offset+3);
}
when_node = when_node->cdr;
}
}
break;
case NODE_WHILE:
printf("NODE_WHILE:\n");
goto dump_loop_node;
case NODE_UNTIL:
printf("NODE_UNTIL:\n");
goto dump_loop_node;
case NODE_WHILE_MOD:
printf("NODE_WHILE_MOD:\n");
goto dump_loop_node;
case NODE_UNTIL_MOD:
printf("NODE_UNTIL_MOD:\n");
dump_loop_node:
dump_prefix(offset+1, lineno);
printf("cond:\n");
dump_node(mrb, while_node(tree)->condition, offset+2);
dump_prefix(offset+1, lineno);
printf("body:\n");
dump_node(mrb, while_node(tree)->body, offset+2);
break;
case NODE_FOR:
printf("NODE_FOR:\n");
if (for_node(tree)->var) {
dump_prefix(offset+1, lineno);
printf("var:\n");
/* FOR_NODE_VAR structure:
* var_list->car: cons-list of pre-splat variables
* var_list->cdr->car: splat varnode (not a cons-list)
* var_list->cdr->cdr->car: cons-list of post-splat variables */
node *var_list = for_node(tree)->var;
if (var_list) {
dump_recur(mrb, var_list->car, offset+2);
if (var_list && var_list->cdr) {
/* Second element is a varnode, not a cons-list */
dump_prefix(offset+1, lineno);
printf("splat var:\n");
dump_node(mrb, var_list->cdr->car, offset+2);
if (var_list->cdr->cdr) {
/* Third element is a cons-list of post-splat variables */
dump_prefix(offset+1, lineno);
printf("post var:\n");
dump_recur(mrb, var_list->cdr->cdr->car, offset+2);
}
}
}
}
if (for_node(tree)->iterable) {
dump_prefix(offset+1, lineno);
printf("iterable:\n");
dump_node(mrb, for_node(tree)->iterable, offset+2);
}
if (for_node(tree)->body) {
dump_prefix(offset+1, lineno);
printf("body:\n");
dump_node(mrb, for_node(tree)->body, offset+2);
}
break;
case NODE_DOT2:
printf("NODE_DOT2:\n");
{
if (dot2_node(tree)->left) {
dump_prefix(offset+1, lineno);
printf("left:\n");
dump_node(mrb, dot2_node(tree)->left, offset+2);
}
if (dot2_node(tree)->right) {
dump_prefix(offset+1, lineno);
printf("right:\n");
dump_node(mrb, dot2_node(tree)->right, offset+2);
}
}
break;
case NODE_DOT3:
printf("NODE_DOT3:\n");
{
if (dot3_node(tree)->left) {
dump_prefix(offset+1, lineno);
printf("left:\n");
dump_node(mrb, dot3_node(tree)->left, offset+2);
}
if (dot3_node(tree)->right) {
dump_prefix(offset+1, lineno);
printf("right:\n");
dump_node(mrb, dot3_node(tree)->right, offset+2);
}
}
break;
case NODE_COLON2:
printf("NODE_COLON2:\n");
if (colon2_node(tree)->base) {
dump_prefix(offset+1, lineno);
printf("base:\n");
dump_node(mrb, colon2_node(tree)->base, offset+2);
}
dump_prefix(offset+1, lineno);
printf("name: %s\n", mrb_sym_name(mrb, colon2_node(tree)->name));
break;
case NODE_COLON3:
printf("NODE_COLON3: ::%s\n", mrb_sym_name(mrb, colon3_node(tree)->name));
break;
case NODE_HASH:
printf("NODE_HASH:\n");
{
node *pairs = hash_node(tree)->pairs;
while (pairs) {
dump_prefix(offset+1, lineno);
printf("key:\n");
if (node_to_sym(pairs->car->car) == MRB_OPSYM(pow)) {
dump_prefix(offset+2, lineno);
printf("**\n");
}
else {
dump_node(mrb, pairs->car->car, offset+2);
}
dump_prefix(offset+1, lineno);
printf("value:\n");
dump_node(mrb, pairs->car->cdr, offset+2);
pairs = pairs->cdr;
}
}
break;
case NODE_SPLAT:
printf("NODE_SPLAT:\n");
dump_node(mrb, splat_node(tree)->value, offset+1);
break;
case NODE_OP_ASGN:
printf("NODE_OP_ASGN:\n");
dump_prefix(offset+1, lineno);
printf("lhs:\n");
dump_node(mrb, op_asgn_node(tree)->lhs, offset+2);
dump_prefix(offset+1, lineno);
printf("op='%s' (%d)\n", mrb_sym_name(mrb, op_asgn_node(tree)->op), (int)op_asgn_node(tree)->op);
dump_node(mrb, op_asgn_node(tree)->rhs, offset+1);
break;
case NODE_SUPER:
printf("NODE_SUPER:\n");
if (super_node(tree)->args) {
dump_callargs(mrb, super_node(tree)->args, offset, lineno);
}
break;
case NODE_ZSUPER:
printf("NODE_ZSUPER:\n");
if (super_node(tree)->args) {
dump_callargs(mrb, super_node(tree)->args, offset, lineno);
}
break;
case NODE_YIELD:
printf("NODE_YIELD:\n");
if (yield_node(tree)->args) {
dump_callargs(mrb, yield_node(tree)->args, offset, lineno);
}
break;
case NODE_REDO:
printf("NODE_REDO\n");
break;
case NODE_RETRY:
printf("NODE_RETRY\n");
break;
case NODE_BACK_REF:
printf("NODE_BACK_REF: $%c\n", node_to_int(tree));
break;
case NODE_NTH_REF:
printf("NODE_NTH_REF: $%d\n", node_to_int(tree));
break;
case NODE_BLOCK_ARG:
printf("NODE_BLOCK_ARG:\n");
dump_node(mrb, block_arg_node(tree)->value, offset+1);
break;
case NODE_REGX:
printf("NODE_REGX:\n");
if (regx_node(tree)->list) {
dump_str(mrb, regx_node(tree)->list, offset+1, lineno);
}
if (regx_node(tree)->flags) {
dump_prefix(offset+1, lineno);
printf("flags: %s\n", regx_node(tree)->flags);
}
if (regx_node(tree)->encoding) {
dump_prefix(offset+1, lineno);
printf("encoding: %s\n", regx_node(tree)->encoding);
}
break;
case NODE_WORDS:
printf("NODE_WORDS:\n");
if (words_node(tree)->args) {
node *list = words_node(tree)->args;
while (list && list->car) {
node *item = list->car;
if (item->car == 0 && item->cdr == 0) {
/* Skip separator (0 . 0) */
}
else if (item->car && item->cdr) {
/* String item: (len . str) */
dump_prefix(offset+1, lineno);
int len = node_to_int(item->car);
if (len >= 0 && len < 1000 && item->cdr) {
printf("word: \"%.*s\"\n", len, (char*)item->cdr);
}
}
list = list->cdr;
}
}
break;
case NODE_SYMBOLS:
printf("NODE_SYMBOLS:\n");
if (symbols_node(tree)->args) {
node *list = symbols_node(tree)->args;
while (list && list->car) {
node *item = list->car;
if (item->car == 0 && item->cdr == 0) {
/* Skip separator (0 . 0) */
} else if (item->car && item->cdr) {
/* String item: (len . str) */
dump_prefix(offset+1, lineno);
int len = node_to_int(item->car);
if (len >= 0 && len < 1000 && item->cdr) {
printf("symbol: \"%.*s\"\n", len, (char*)item->cdr);
}
}
list = list->cdr;
}
}
break;
case NODE_ALIAS:
printf("NODE_ALIAS %s %s:\n",
mrb_sym_dump(mrb, node_to_sym(tree->car)),
mrb_sym_dump(mrb, node_to_sym(tree->cdr)));
break;
case NODE_UNDEF:
printf("NODE_UNDEF");
{
node *t = tree;
while (t) {
printf(" %s", mrb_sym_dump(mrb, node_to_sym(t->car)));
t = t->cdr;
}
}
printf(":\n");
break;
case NODE_CLASS:
printf("NODE_CLASS:\n");
if (class_node(tree)->name) {
dump_cpath(mrb, module_node(tree)->name, offset+1, lineno);
}
if (class_node(tree)->superclass) {
dump_prefix(offset+1, lineno);
printf("super:\n");
dump_node(mrb, class_node(tree)->superclass, offset+2);
}
if (class_node(tree)->body) {
dump_prefix(offset+1, lineno);
printf("body:\n");
dump_node(mrb, class_node(tree)->body->cdr, offset+2);
}
break;
case NODE_MODULE:
printf("NODE_MODULE:\n");
if (module_node(tree)->name) {
dump_cpath(mrb, module_node(tree)->name, offset+1, lineno);
}
if (module_node(tree)->body) {
dump_prefix(offset+1, lineno);
printf("body:\n");
dump_node(mrb, module_node(tree)->body->cdr, offset+2);
}
break;
case NODE_SCLASS:
printf("NODE_SCLASS:\n");
if (sclass_node(tree)->obj) {
dump_prefix(offset+1, lineno);
printf("obj:\n");
dump_node(mrb, sclass_node(tree)->obj, offset+2);
}
if (sclass_node(tree)->body) {
dump_prefix(offset+1, lineno);
printf("body:\n");
dump_node(mrb, sclass_node(tree)->body->cdr, offset+2);
}
break;
case NODE_SDEF:
printf("NODE_SDEF: %s\n", mrb_sym_dump(mrb, def_node(tree)->name));
if (sdef_node(tree)->obj) {
dump_prefix(offset+1, lineno);
printf("recv:\n");
dump_node(mrb, sdef_node(tree)->obj, offset+2);
}
if (sdef_node(tree)->args) {
dump_args(mrb, sdef_node(tree)->args, offset+1, lineno);
}
if (sdef_node(tree)->locals) {
dump_locals(mrb, sdef_node(tree)->locals, offset+1, lineno);
}
if (sdef_node(tree)->body) {
dump_prefix(offset+1, lineno);
printf("body:\n");
dump_node(mrb, sdef_node(tree)->body, offset+2);
}
break;
case NODE_POSTEXE:
printf("NODE_POSTEXE:\n");
dump_node(mrb, tree, offset+1);
break;
case NODE_HEREDOC:
printf("NODE_HEREDOC:\n");
if (heredoc_node(tree)->info.term) {
dump_prefix(offset+1, lineno);
printf("terminator: \"%s\"\n", heredoc_node(tree)->info.term);
}
if (heredoc_node(tree)->info.doc) {
dump_prefix(offset+1, lineno);
printf("body:\n");
dump_str(mrb, heredoc_node(tree)->info.doc, offset+2, lineno);
}
if (heredoc_node(tree)->info.allow_indent) {
dump_prefix(offset+1, lineno);
printf("allow_indent: true\n");
}
if (heredoc_node(tree)->info.remove_indent) {
dump_prefix(offset+1, lineno);
printf("remove_indent: true\n");
}
break;
case NODE_CASE_MATCH:
printf("NODE_CASE_MATCH:\n");
if (case_match_node(tree)->value) {
dump_prefix(offset+1, lineno);
printf("value:\n");
dump_node(mrb, case_match_node(tree)->value, offset+2);
}
if (case_match_node(tree)->in_clauses) {
node *in_clause = case_match_node(tree)->in_clauses;
while (in_clause) {
dump_node(mrb, in_clause->car, offset+1);
in_clause = in_clause->cdr;
}
}
break;
case NODE_IN:
printf("NODE_IN:\n");
if (in_node(tree)->pattern) {
dump_prefix(offset+1, lineno);
printf("pattern:\n");
dump_node(mrb, in_node(tree)->pattern, offset+2);
}
if (in_node(tree)->guard) {
dump_prefix(offset+1, lineno);
printf("guard (%s):\n", in_node(tree)->guard_is_unless ? "unless" : "if");
dump_node(mrb, in_node(tree)->guard, offset+2);
}
if (in_node(tree)->body) {
dump_prefix(offset+1, lineno);
printf("body:\n");
dump_node(mrb, in_node(tree)->body, offset+2);
}
break;
case NODE_PAT_VALUE:
printf("NODE_PAT_VALUE:\n");
if (pat_value_node(tree)->value) {
dump_node(mrb, pat_value_node(tree)->value, offset+1);
}
break;
case NODE_PAT_VAR:
if (pat_var_node(tree)->name) {
printf("NODE_PAT_VAR: %s\n", mrb_sym_dump(mrb, pat_var_node(tree)->name));
}
else {
printf("NODE_PAT_VAR: _ (wildcard)\n");
}
break;
case NODE_PAT_PIN:
printf("NODE_PAT_PIN: ^%s\n", mrb_sym_dump(mrb, pat_pin_node(tree)->name));
break;
case NODE_PAT_AS:
printf("NODE_PAT_AS: => %s\n", mrb_sym_dump(mrb, pat_as_node(tree)->name));
if (pat_as_node(tree)->pattern) {
dump_prefix(offset+1, lineno);
printf("pattern:\n");
dump_node(mrb, pat_as_node(tree)->pattern, offset+2);
}
break;
case NODE_PAT_ALT:
printf("NODE_PAT_ALT:\n");
if (pat_alt_node(tree)->left) {
dump_prefix(offset+1, lineno);
printf("left:\n");
dump_node(mrb, pat_alt_node(tree)->left, offset+2);
}
if (pat_alt_node(tree)->right) {
dump_prefix(offset+1, lineno);
printf("right:\n");
dump_node(mrb, pat_alt_node(tree)->right, offset+2);
}
break;
case NODE_PAT_ARRAY:
printf("NODE_PAT_ARRAY:\n");
if (pat_array_node(tree)->pre) {
dump_prefix(offset+1, lineno);
printf("pre:\n");
dump_recur(mrb, pat_array_node(tree)->pre, offset+2);
}
if (pat_array_node(tree)->rest) {
dump_prefix(offset+1, lineno);
if (pat_array_node(tree)->rest == (node*)-1) {
printf("rest: * (anonymous)\n");
}
else {
printf("rest:\n");
dump_node(mrb, pat_array_node(tree)->rest, offset+2);
}
}
if (pat_array_node(tree)->post) {
dump_prefix(offset+1, lineno);
printf("post:\n");
dump_recur(mrb, pat_array_node(tree)->post, offset+2);
}
break;
case NODE_PAT_HASH:
printf("NODE_PAT_HASH:\n");
if (pat_hash_node(tree)->pairs) {
dump_prefix(offset+1, lineno);
printf("pairs:\n");
dump_recur(mrb, pat_hash_node(tree)->pairs, offset+2);
}
if (pat_hash_node(tree)->rest) {
dump_prefix(offset+1, lineno);
if (pat_hash_node(tree)->rest == (node*)-1) {
printf("rest: **nil\n");
}
else {
printf("rest:\n");
dump_node(mrb, pat_hash_node(tree)->rest, offset+2);
}
}
break;
case NODE_MATCH_PAT:
printf("NODE_MATCH_PAT%s:\n", match_pat_node(tree)->raise_on_fail ? " (=>)" : " (in)");
dump_prefix(offset+1, lineno);
printf("value:\n");
dump_node(mrb, match_pat_node(tree)->value, offset+2);
dump_prefix(offset+1, lineno);
printf("pattern:\n");
dump_node(mrb, match_pat_node(tree)->pattern, offset+2);
break;
default:
/* Fallback: unknown node type - skip like codegen.c does */
printf("unknown node type %d (0x%x)\n", nodetype, (unsigned)nodetype);
break;
}
#endif
}
void
mrb_parser_dump(mrb_state *mrb, node *tree, int offset)
{
dump_node(mrb, tree, offset);
}
typedef mrb_bool mrb_parser_foreach_top_variable_func(mrb_state *mrb, mrb_sym sym, void *user);
void mrb_parser_foreach_top_variable(mrb_state *mrb, struct mrb_parser_state *p, mrb_parser_foreach_top_variable_func *func, void *user);
void
mrb_parser_foreach_top_variable(mrb_state *mrb, struct mrb_parser_state *p, mrb_parser_foreach_top_variable_func *func, void *user)
{
const mrb_ast_node *n = p->tree;
if (node_type_p((node*)n, NODE_SCOPE)) {
/* Extract locals from variable-sized NODE_SCOPE */
struct mrb_ast_scope_node *scope = scope_node(n);
n = scope->locals;
for (; n; n = n->cdr) {
mrb_sym sym = node_to_sym(n->car);
if (sym != 0) {
if (!func(mrb, sym, user)) break;
}
}
}
}