52#define YYBISON_VERSION "3.8.2"
55#define YYSKELETON_NAME "yacc.c"
72# error needs pure parser
75#define YYERROR_VERBOSE 1
76#define YYSTACK_USE_ALLOCA 0
80# include RUBY_EXTCONF_H
83#include "ruby/internal/config.h"
87#ifdef UNIVERSAL_PARSER
89#include "internal/ruby_parser.h"
90#include "parser_node.h"
91#include "universal_parser.c"
94#define STATIC_ID2SYM p->config->static_id2sym
100#include "internal/compile.h"
101#include "internal/compilers.h"
102#include "internal/complex.h"
103#include "internal/encoding.h"
104#include "internal/error.h"
105#include "internal/hash.h"
106#include "internal/io.h"
107#include "internal/numeric.h"
108#include "internal/parse.h"
109#include "internal/rational.h"
110#include "internal/re.h"
111#include "internal/ruby_parser.h"
112#include "internal/symbol.h"
113#include "internal/thread.h"
114#include "internal/variable.h"
116#include "parser_node.h"
120#include "ruby/regex.h"
129syntax_error_new(
void)
135static NODE *reg_named_capture_assign(
struct parser_params* p,
VALUE regexp,
const YYLTYPE *loc, rb_parser_assignable_func assignable);
137#define compile_callback rb_suppress_tracing
140#define NODE_SPECIAL_EMPTY_ARGS ((NODE *)-1)
141#define NODE_EMPTY_ARGS_P(node) ((node) == NODE_SPECIAL_EMPTY_ARGS)
143static int rb_parser_string_hash_cmp(rb_parser_string_t *str1, rb_parser_string_t *str2);
146static rb_parser_string_t *rb_parser_string_deep_copy(
struct parser_params *p,
const rb_parser_string_t *original);
150node_integer_cmp(rb_node_integer_t *n1, rb_node_integer_t *n2)
152 return (n1->minus != n2->minus ||
153 n1->base != n2->base ||
154 strcmp(n1->val, n2->val));
158node_float_cmp(rb_node_float_t *n1, rb_node_float_t *n2)
160 return (n1->minus != n2->minus ||
161 strcmp(n1->val, n2->val));
165node_rational_cmp(rb_node_rational_t *n1, rb_node_rational_t *n2)
167 return (n1->minus != n2->minus ||
168 n1->base != n2->base ||
169 n1->seen_point != n2->seen_point ||
170 strcmp(n1->val, n2->val));
174node_imaginary_cmp(rb_node_imaginary_t *n1, rb_node_imaginary_t *n2)
176 return (n1->minus != n2->minus ||
177 n1->base != n2->base ||
178 n1->seen_point != n2->seen_point ||
179 n1->type != n2->type ||
180 strcmp(n1->val, n2->val));
184rb_parser_regx_hash_cmp(rb_node_regx_t *n1, rb_node_regx_t *n2)
186 return (n1->options != n2->options ||
187 rb_parser_string_hash_cmp(n1->string, n2->string));
190static st_index_t rb_parser_str_hash(rb_parser_string_t *str);
191static st_index_t rb_char_p_hash(
const char *c);
194literal_cmp(st_data_t val, st_data_t lit)
196 if (val == lit)
return 0;
198 NODE *node_val = RNODE(val);
199 NODE *node_lit = RNODE(lit);
200 enum node_type type_val = nd_type(node_val);
201 enum node_type type_lit = nd_type(node_lit);
203 if (type_val != type_lit) {
209 return node_integer_cmp(RNODE_INTEGER(node_val), RNODE_INTEGER(node_lit));
211 return node_float_cmp(RNODE_FLOAT(node_val), RNODE_FLOAT(node_lit));
213 return node_rational_cmp(RNODE_RATIONAL(node_val), RNODE_RATIONAL(node_lit));
215 return node_imaginary_cmp(RNODE_IMAGINARY(node_val), RNODE_IMAGINARY(node_lit));
217 return rb_parser_string_hash_cmp(RNODE_STR(node_val)->
string, RNODE_STR(node_lit)->
string);
219 return rb_parser_string_hash_cmp(RNODE_SYM(node_val)->
string, RNODE_SYM(node_lit)->
string);
221 return rb_parser_regx_hash_cmp(RNODE_REGX(node_val), RNODE_REGX(node_lit));
223 return node_val->nd_loc.beg_pos.lineno != node_lit->nd_loc.beg_pos.lineno;
225 return rb_parser_string_hash_cmp(RNODE_FILE(node_val)->path, RNODE_FILE(node_lit)->path);
227 return RNODE_ENCODING(node_val)->enc != RNODE_ENCODING(node_lit)->enc;
229#ifdef UNIVERSAL_PARSER
232 rb_bug(
"unexpected node: %s, %s", ruby_node_name(type_val), ruby_node_name(type_lit));
238literal_hash(st_data_t a)
240 NODE *node = (NODE *)a;
241 enum node_type
type = nd_type(node);
245 return rb_char_p_hash(RNODE_INTEGER(node)->val);
247 return rb_char_p_hash(RNODE_FLOAT(node)->val);
249 return rb_char_p_hash(RNODE_RATIONAL(node)->val);
251 return rb_char_p_hash(RNODE_IMAGINARY(node)->val);
253 return rb_parser_str_hash(RNODE_STR(node)->
string);
255 return rb_parser_str_hash(RNODE_SYM(node)->
string);
257 return rb_parser_str_hash(RNODE_REGX(node)->
string);
259 return (st_index_t)node->nd_loc.beg_pos.lineno;
261 return rb_parser_str_hash(RNODE_FILE(node)->path);
263 return (st_index_t)RNODE_ENCODING(node)->enc;
265#ifdef UNIVERSAL_PARSER
268 rb_bug(
"unexpected node: %s", ruby_node_name(
type));
276 return '\0' <= c && c <=
'\x7f';
280#define ISASCII parse_isascii
285 return c ==
' ' || (
'\t' <= c && c <=
'\r');
289#define ISSPACE parse_isspace
294 return (
'\0' <= c && c <
' ') || c ==
'\x7f';
298#define ISCNTRL(c) parse_iscntrl(c)
303 return 'A' <= c && c <=
'Z';
309 return 'a' <= c && c <=
'z';
315 return parse_isupper(c) || parse_islower(c);
319#define ISALPHA(c) parse_isalpha(c)
324 return '0' <= c && c <=
'9';
328#define ISDIGIT(c) parse_isdigit(c)
337#define ISALNUM(c) parse_isalnum(c)
342 return ISDIGIT(c) || (
'A' <= c && c <=
'F') || (
'a' <= c && c <=
'f');
346#define ISXDIGIT(c) parse_isxdigit(c)
348#include "parser_st.h"
351#define STRCASECMP rb_parser_st_locale_insensitive_strcasecmp
354#define STRNCASECMP rb_parser_st_locale_insensitive_strncasecmp
357#include "ripper_init.h"
368 unsigned int in_defined: 1;
369 unsigned int in_kwarg: 1;
370 unsigned int in_argdef: 1;
371 unsigned int in_def: 1;
372 unsigned int in_class: 1;
373 unsigned int has_trailing_semicolon: 1;
374 BITFIELD(
enum rb_parser_shareability, shareable_constant_value, 2);
375 BITFIELD(
enum rescue_context, in_rescue, 2);
376 unsigned int cant_return: 1;
377 unsigned int in_alt_pattern: 1;
378 unsigned int capture_in_pattern: 1;
383#if defined(__GNUC__) && !defined(__clang__)
395#define NO_LEX_CTXT (struct lex_context){0}
397#ifndef WARN_PAST_SCOPE
398# define WARN_PAST_SCOPE 0
403#define yydebug (p->debug)
405#define YYFPRINTF(out, ...) rb_parser_printf(p, __VA_ARGS__)
406#define YY_LOCATION_PRINT(File, loc, p) \
407 rb_parser_printf(p, "%d.%d-%d.%d", \
408 (loc).beg_pos.lineno, (loc).beg_pos.column,\
409 (loc).end_pos.lineno, (loc).end_pos.column)
410#define YYLLOC_DEFAULT(Current, Rhs, N) \
414 (Current).beg_pos = YYRHSLOC(Rhs, 1).beg_pos; \
415 (Current).end_pos = YYRHSLOC(Rhs, N).end_pos; \
419 (Current).beg_pos = YYRHSLOC(Rhs, 0).end_pos; \
420 (Current).end_pos = YYRHSLOC(Rhs, 0).end_pos; \
424 (((Msgid)[0] == 'm') && (strcmp((Msgid), "memory exhausted") == 0) ? \
425 "nesting too deep" : (Msgid))
427#define RUBY_SET_YYLLOC_FROM_STRTERM_HEREDOC(Current) \
428 rb_parser_set_location_from_strterm_heredoc(p, &p->lex.strterm->u.heredoc, &(Current))
429#define RUBY_SET_YYLLOC_OF_DELAYED_TOKEN(Current) \
430 rb_parser_set_location_of_delayed_token(p, &(Current))
431#define RUBY_SET_YYLLOC_OF_HEREDOC_END(Current) \
432 rb_parser_set_location_of_heredoc_end(p, &(Current))
433#define RUBY_SET_YYLLOC_OF_DUMMY_END(Current) \
434 rb_parser_set_location_of_dummy_end(p, &(Current))
435#define RUBY_SET_YYLLOC_OF_NONE(Current) \
436 rb_parser_set_location_of_none(p, &(Current))
437#define RUBY_SET_YYLLOC(Current) \
438 rb_parser_set_location(p, &(Current))
439#define RUBY_INIT_YYLLOC() \
441 {p->ruby_sourceline, parser_column(p->lex.ptok - p->lex.pbeg)}, \
442 {p->ruby_sourceline, parser_column(p->lex.pcur - p->lex.pbeg)}, \
447parser_column(
long pos)
449#if SIZEOF_INT < SIZEOF_LONG
450 if (pos > INT_MAX)
return INT_MAX;
455#define IS_lex_state_for(x, ls) ((x) & (ls))
456#define IS_lex_state_all_for(x, ls) (((x) & (ls)) == (ls))
457#define IS_lex_state(ls) IS_lex_state_for(p->lex.state, (ls))
458#define IS_lex_state_all(ls) IS_lex_state_all_for(p->lex.state, (ls))
460# define SET_LEX_STATE(ls) \
461 parser_set_lex_state(p, ls, __LINE__)
462static inline enum lex_state_e parser_set_lex_state(
struct parser_params *p,
enum lex_state_e ls,
int line);
464typedef VALUE stack_type;
466static const rb_code_location_t NULL_LOC = { {0, -1}, {0, -1} };
468# define SHOW_BITSTACK(stack, name) (p->debug ? rb_parser_show_bitstack(p, stack, name, __LINE__) : (void)0)
469# define BITSTACK_PUSH(stack, n) (((p->stack) = ((p->stack)<<1)|((n)&1)), SHOW_BITSTACK(p->stack, #stack"(push)"))
470# define BITSTACK_POP(stack) (((p->stack) = (p->stack) >> 1), SHOW_BITSTACK(p->stack, #stack"(pop)"))
471# define BITSTACK_SET_P(stack) (SHOW_BITSTACK(p->stack, #stack), (p->stack)&1)
472# define BITSTACK_SET(stack, n) ((p->stack)=(n), SHOW_BITSTACK(p->stack, #stack"(set)"))
476#define COND_PUSH(n) BITSTACK_PUSH(cond_stack, (n))
477#define COND_POP() BITSTACK_POP(cond_stack)
478#define COND_P() BITSTACK_SET_P(cond_stack)
479#define COND_SET(n) BITSTACK_SET(cond_stack, (n))
483#define CMDARG_PUSH(n) BITSTACK_PUSH(cmdarg_stack, (n))
484#define CMDARG_POP() BITSTACK_POP(cmdarg_stack)
485#define CMDARG_P() BITSTACK_SET_P(cmdarg_stack)
486#define CMDARG_SET(n) BITSTACK_SET(cmdarg_stack, (n))
504 NODE *outer, *inner, *current;
521#define DVARS_INHERIT ((void*)1)
522#define DVARS_TOPSCOPE NULL
523#define DVARS_TERMINAL_P(tbl) ((tbl) == DVARS_INHERIT || (tbl) == DVARS_TOPSCOPE)
527 rb_code_position_t beg;
534 const rb_code_position_t *pos;
536} end_expect_token_locations_t;
542 rb_parser_string_t *buf[FLEX_ARY_LEN];
543} parser_string_buffer_elem_t;
546 parser_string_buffer_elem_t *head;
547 parser_string_buffer_elem_t *last;
548} parser_string_buffer_t;
550#define AFTER_HEREDOC_WITHOUT_TERMINATOR ((rb_parser_string_t *)1)
566 rb_strterm_t *strterm;
567 rb_parser_lex_gets_func *gets;
568 rb_parser_input_data input;
569 parser_string_buffer_t string_buffer;
570 rb_parser_string_t *lastline;
571 rb_parser_string_t *nextline;
576 enum lex_state_e state;
584 stack_type cond_stack;
585 stack_type cmdarg_stack;
590 int heredoc_line_indent;
597 const char *ruby_sourcefile;
598 VALUE ruby_sourcefile_string;
600 token_info *token_info;
602 rb_node_exits_t *exits;
608 rb_parser_string_t *token;
618 st_table *warn_duplicate_keys_table;
625 NODE *eval_tree_begin;
629#ifdef UNIVERSAL_PARSER
630 const rb_parser_config_t *config;
633 signed int frozen_string_literal:2;
635 unsigned int command_start:1;
636 unsigned int eofp: 1;
637 unsigned int ruby__end__seen: 1;
638 unsigned int debug: 1;
639 unsigned int has_shebang: 1;
640 unsigned int token_seen: 1;
641 unsigned int token_info_enabled: 1;
643 unsigned int past_scope_enabled: 1;
645 unsigned int error_p: 1;
646 unsigned int cr_seen: 1;
651 unsigned int do_print: 1;
652 unsigned int do_loop: 1;
653 unsigned int do_chomp: 1;
654 unsigned int do_split: 1;
655 unsigned int error_tolerant: 1;
656 unsigned int keep_tokens: 1;
659 rb_parser_ary_t *debug_lines;
664 end_expect_token_locations_t *end_expect_token_locations;
668 rb_parser_ary_t *tokens;
674 VALUE parsing_thread;
681#define NUMPARAM_ID_P(id) numparam_id_p(p, id)
682#define NUMPARAM_ID_TO_IDX(id) (unsigned int)(((id) >> ID_SCOPE_SHIFT) - (tNUMPARAM_1 - 1))
683#define NUMPARAM_IDX_TO_ID(idx) TOKEN2LOCALID((tNUMPARAM_1 - 1 + (idx)))
687 if (!is_local_id(
id) ||
id < (tNUMPARAM_1 << ID_SCOPE_SHIFT))
return 0;
688 unsigned int idx = NUMPARAM_ID_TO_IDX(
id);
689 return idx > 0 && idx <= NUMPARAM_MAX;
698 rb_parser_printf(p,
"after-shift: %+"PRIsVALUE
"\n", p->s_value);
714 for (
int i = 0; i <
len; i++) {
717 rb_parser_printf(p,
"after-reduce pop: %+"PRIsVALUE
"\n", tos);
721 rb_parser_printf(p,
"after-reduce push: %+"PRIsVALUE
"\n", p->s_lvalue);
731 rb_parser_printf(p,
"after-shift-error-token:\n");
739 for (
int i = 0; i <
len; i++) {
742 rb_parser_printf(p,
"after-pop-stack pop: %+"PRIsVALUE
"\n", tos);
773#define intern_cstr(n,l,en) rb_intern3(n,l,en)
775#define STRING_NEW0() rb_parser_encoding_string_new(p,0,0,p->enc)
777#define STR_NEW(ptr,len) rb_enc_str_new((ptr),(len),p->enc)
778#define STR_NEW0() rb_enc_str_new(0,0,p->enc)
779#define STR_NEW2(ptr) rb_enc_str_new((ptr),strlen(ptr),p->enc)
780#define STR_NEW3(ptr,len,e,func) parser_str_new(p, (ptr),(len),(e),(func),p->enc)
781#define TOK_INTERN() intern_cstr(tok(p), toklen(p), p->enc)
782#define VALID_SYMNAME_P(s, l, enc, type) (rb_enc_symname_type(s, l, enc, (1U<<(type))) == (int)(type))
788 long len = RSTRING_LEN(str);
789 return len > 0 ? (
unsigned char)RSTRING_PTR(str)[
len-1] : when_empty;
796 st_free_table(p->pvtbl);
803 if (p->pktbl) st_free_table(p->pktbl);
807#define STRING_BUF_DEFAULT_LEN 16
812 parser_string_buffer_t *buf = &p->lex.string_buffer;
813 const size_t size = offsetof(parser_string_buffer_elem_t, buf) +
sizeof(rb_parser_string_t *) * STRING_BUF_DEFAULT_LEN;
815 buf->head = buf->last =
xmalloc(size);
816 buf->head->len = STRING_BUF_DEFAULT_LEN;
818 buf->head->next = NULL;
822string_buffer_append(
struct parser_params *p, rb_parser_string_t *str)
824 parser_string_buffer_t *buf = &p->lex.string_buffer;
826 if (buf->head->used >= buf->head->len) {
827 parser_string_buffer_elem_t *elem;
828 long n = buf->head->len * 2;
829 const size_t size = offsetof(parser_string_buffer_elem_t, buf) +
sizeof(rb_parser_string_t *) * n;
835 buf->last->next = elem;
838 buf->last->buf[buf->last->used++] = str;
844 parser_string_buffer_elem_t *elem = p->lex.string_buffer.head;
847 parser_string_buffer_elem_t *next_elem = elem->next;
849 for (
long i = 0; i < elem->used; i++) {
850 rb_parser_string_free(p, elem->buf[i]);
862debug_end_expect_token_locations(
struct parser_params *p,
const char *name)
865 VALUE mesg = rb_sprintf(
"%s: [", name);
867 for (end_expect_token_locations_t *loc = p->end_expect_token_locations; loc; loc = loc->prev) {
870 rb_str_catf(mesg,
"[%d, %d]", loc->pos->lineno, loc->pos->column);
874 flush_debug_buffer(p, p->debug_output, mesg);
879push_end_expect_token_locations(
struct parser_params *p,
const rb_code_position_t *pos)
881 if(!p->error_tolerant)
return;
883 end_expect_token_locations_t *locations;
884 locations =
ALLOC(end_expect_token_locations_t);
885 locations->pos = pos;
886 locations->prev = p->end_expect_token_locations;
887 p->end_expect_token_locations = locations;
889 debug_end_expect_token_locations(p,
"push_end_expect_token_locations");
895 if(!p->end_expect_token_locations)
return;
897 end_expect_token_locations_t *locations = p->end_expect_token_locations->prev;
898 ruby_sized_xfree(p->end_expect_token_locations,
sizeof(end_expect_token_locations_t));
899 p->end_expect_token_locations = locations;
901 debug_end_expect_token_locations(p,
"pop_end_expect_token_locations");
904static end_expect_token_locations_t *
907 return p->end_expect_token_locations;
911parser_token2char(
struct parser_params *p,
enum yytokentype tok)
914#define TOKEN2CHAR(tok) case tok: return (#tok);
915#define TOKEN2CHAR2(tok, name) case tok: return (name);
916 TOKEN2CHAR2(
' ',
"word_sep");
917 TOKEN2CHAR2(
'!',
"!")
918 TOKEN2CHAR2(
'%',
"%");
919 TOKEN2CHAR2(
'&',
"&");
920 TOKEN2CHAR2(
'*',
"*");
921 TOKEN2CHAR2(
'+',
"+");
922 TOKEN2CHAR2(
'-',
"-");
923 TOKEN2CHAR2(
'/',
"/");
924 TOKEN2CHAR2(
'<',
"<");
925 TOKEN2CHAR2(
'=',
"=");
926 TOKEN2CHAR2(
'>',
">");
927 TOKEN2CHAR2(
'?',
"?");
928 TOKEN2CHAR2(
'^',
"^");
929 TOKEN2CHAR2(
'|',
"|");
930 TOKEN2CHAR2(
'~',
"~");
931 TOKEN2CHAR2(
':',
":");
932 TOKEN2CHAR2(
',',
",");
933 TOKEN2CHAR2(
'.',
".");
934 TOKEN2CHAR2(
';',
";");
935 TOKEN2CHAR2(
'`',
"`");
936 TOKEN2CHAR2(
'\n',
"nl");
937 TOKEN2CHAR2(
'{',
"\"{\"");
938 TOKEN2CHAR2(
'}',
"\"}\"");
939 TOKEN2CHAR2(
'[',
"\"[\"");
940 TOKEN2CHAR2(
']',
"\"]\"");
941 TOKEN2CHAR2(
'(',
"\"(\"");
942 TOKEN2CHAR2(
')',
"\")\"");
943 TOKEN2CHAR2(
'\\',
"backslash");
944 TOKEN2CHAR(keyword_class);
945 TOKEN2CHAR(keyword_module);
946 TOKEN2CHAR(keyword_def);
947 TOKEN2CHAR(keyword_undef);
948 TOKEN2CHAR(keyword_begin);
949 TOKEN2CHAR(keyword_rescue);
950 TOKEN2CHAR(keyword_ensure);
951 TOKEN2CHAR(keyword_end);
952 TOKEN2CHAR(keyword_if);
953 TOKEN2CHAR(keyword_unless);
954 TOKEN2CHAR(keyword_then);
955 TOKEN2CHAR(keyword_elsif);
956 TOKEN2CHAR(keyword_else);
957 TOKEN2CHAR(keyword_case);
958 TOKEN2CHAR(keyword_when);
959 TOKEN2CHAR(keyword_while);
960 TOKEN2CHAR(keyword_until);
961 TOKEN2CHAR(keyword_for);
962 TOKEN2CHAR(keyword_break);
963 TOKEN2CHAR(keyword_next);
964 TOKEN2CHAR(keyword_redo);
965 TOKEN2CHAR(keyword_retry);
966 TOKEN2CHAR(keyword_in);
967 TOKEN2CHAR(keyword_do);
968 TOKEN2CHAR(keyword_do_cond);
969 TOKEN2CHAR(keyword_do_block);
970 TOKEN2CHAR(keyword_do_LAMBDA);
971 TOKEN2CHAR(keyword_return);
972 TOKEN2CHAR(keyword_yield);
973 TOKEN2CHAR(keyword_super);
974 TOKEN2CHAR(keyword_self);
975 TOKEN2CHAR(keyword_nil);
976 TOKEN2CHAR(keyword_true);
977 TOKEN2CHAR(keyword_false);
978 TOKEN2CHAR(keyword_and);
979 TOKEN2CHAR(keyword_or);
980 TOKEN2CHAR(keyword_not);
981 TOKEN2CHAR(modifier_if);
982 TOKEN2CHAR(modifier_unless);
983 TOKEN2CHAR(modifier_while);
984 TOKEN2CHAR(modifier_until);
985 TOKEN2CHAR(modifier_rescue);
986 TOKEN2CHAR(keyword_alias);
987 TOKEN2CHAR(keyword_defined);
988 TOKEN2CHAR(keyword_BEGIN);
989 TOKEN2CHAR(keyword_END);
990 TOKEN2CHAR(keyword__LINE__);
991 TOKEN2CHAR(keyword__FILE__);
992 TOKEN2CHAR(keyword__ENCODING__);
993 TOKEN2CHAR(tIDENTIFIER);
997 TOKEN2CHAR(tCONSTANT);
1000 TOKEN2CHAR(tINTEGER);
1002 TOKEN2CHAR(tRATIONAL);
1003 TOKEN2CHAR(tIMAGINARY);
1005 TOKEN2CHAR(tNTH_REF);
1006 TOKEN2CHAR(tBACK_REF);
1007 TOKEN2CHAR(tSTRING_CONTENT);
1008 TOKEN2CHAR(tREGEXP_END);
1009 TOKEN2CHAR(tDUMNY_END);
1012 TOKEN2CHAR(tUMINUS);
1023 TOKEN2CHAR(tNMATCH);
1032 TOKEN2CHAR(tANDDOT);
1033 TOKEN2CHAR(tCOLON2);
1034 TOKEN2CHAR(tCOLON3);
1035 TOKEN2CHAR(tOP_ASGN);
1037 TOKEN2CHAR(tLPAREN);
1038 TOKEN2CHAR(tLPAREN_ARG);
1039 TOKEN2CHAR(tLBRACK);
1040 TOKEN2CHAR(tLBRACE);
1041 TOKEN2CHAR(tLBRACE_ARG);
1045 TOKEN2CHAR(tLAMBDA);
1046 TOKEN2CHAR(tSYMBEG);
1047 TOKEN2CHAR(tSTRING_BEG);
1048 TOKEN2CHAR(tXSTRING_BEG);
1049 TOKEN2CHAR(tREGEXP_BEG);
1050 TOKEN2CHAR(tWORDS_BEG);
1051 TOKEN2CHAR(tQWORDS_BEG);
1052 TOKEN2CHAR(tSYMBOLS_BEG);
1053 TOKEN2CHAR(tQSYMBOLS_BEG);
1054 TOKEN2CHAR(tSTRING_END);
1055 TOKEN2CHAR(tSTRING_DEND);
1056 TOKEN2CHAR(tSTRING_DBEG);
1057 TOKEN2CHAR(tSTRING_DVAR);
1058 TOKEN2CHAR(tLAMBEG);
1059 TOKEN2CHAR(tLABEL_END);
1060 TOKEN2CHAR(tIGNORED_NL);
1061 TOKEN2CHAR(tCOMMENT);
1062 TOKEN2CHAR(tEMBDOC_BEG);
1063 TOKEN2CHAR(tEMBDOC);
1064 TOKEN2CHAR(tEMBDOC_END);
1065 TOKEN2CHAR(tHEREDOC_BEG);
1066 TOKEN2CHAR(tHEREDOC_END);
1067 TOKEN2CHAR(k__END__);
1068 TOKEN2CHAR(tLOWEST);
1069 TOKEN2CHAR(tUMINUS_NUM);
1070 TOKEN2CHAR(tLAST_TOKEN);
1075 rb_bug(
"parser_token2id: unknown token %d", tok);
1081push_end_expect_token_locations(
struct parser_params *p,
const rb_code_position_t *pos)
1092static
int parser_yyerror(struct
parser_params*, const YYLTYPE *yylloc, const
char*);
1094static
int parser_yyerror0(struct
parser_params*, const
char*);
1095#define yyerror0(msg) parser_yyerror0(p, (msg))
1096#define yyerror1(loc, msg) parser_yyerror(p, (loc), (msg))
1097#define yyerror(yylloc, p, msg) parser_yyerror(p, yylloc, msg)
1098#define token_flush(ptr) ((ptr)->lex.ptok = (ptr)->lex.pcur)
1099#define lex_goto_eol(p) ((p)->lex.pcur = (p)->lex.pend)
1100#define lex_eol_p(p) lex_eol_n_p(p, 0)
1101#define lex_eol_n_p(p,n) lex_eol_ptr_n_p(p, (p)->lex.pcur, n)
1102#define lex_eol_ptr_p(p,ptr) lex_eol_ptr_n_p(p,ptr,0)
1103#define lex_eol_ptr_n_p(p,ptr,n) ((ptr)+(n) >= (p)->lex.pend)
1105static void token_info_setup(
token_info *ptinfo,
const char *
ptr,
const rb_code_location_t *loc);
1106static void token_info_push(
struct parser_params*,
const char *token,
const rb_code_location_t *loc);
1107static void token_info_pop(
struct parser_params*,
const char *token,
const rb_code_location_t *loc);
1108static void token_info_warn(
struct parser_params *p,
const char *token,
token_info *ptinfo_beg,
int same,
const rb_code_location_t *loc);
1109static void token_info_drop(
struct parser_params *p,
const char *token, rb_code_position_t beg_pos);
1112#define compile_for_eval (0)
1114#define compile_for_eval (p->parent_iseq != 0)
1117#define token_column ((int)(p->lex.ptok - p->lex.pbeg))
1119#define CALL_Q_P(q) ((q) == tANDDOT)
1120#define NEW_QCALL(q,r,m,a,loc) (CALL_Q_P(q) ? NEW_QCALL0(r,m,a,loc) : NEW_CALL(r,m,a,loc))
1122#define lambda_beginning_p() (p->lex.lpar_beg == p->lex.paren_nest)
1129 rb_ast_delete_node(p->ast, n);
1132static rb_node_scope_t *rb_node_scope_new(
struct parser_params *p, rb_node_args_t *nd_args, NODE *nd_body, NODE *nd_parent,
const YYLTYPE *loc);
1133static rb_node_scope_t *rb_node_scope_new2(
struct parser_params *p, rb_ast_id_table_t *nd_tbl, rb_node_args_t *nd_args, NODE *nd_body, NODE *nd_parent,
const YYLTYPE *loc);
1134static rb_node_block_t *rb_node_block_new(
struct parser_params *p, NODE *nd_head,
const YYLTYPE *loc);
1135static rb_node_if_t *rb_node_if_new(
struct parser_params *p, NODE *nd_cond, NODE *nd_body, NODE *nd_else,
const YYLTYPE *loc,
const YYLTYPE* if_keyword_loc,
const YYLTYPE* then_keyword_loc,
const YYLTYPE* end_keyword_loc);
1136static rb_node_unless_t *rb_node_unless_new(
struct parser_params *p, NODE *nd_cond, NODE *nd_body, NODE *nd_else,
const YYLTYPE *loc,
const YYLTYPE *keyword_loc,
const YYLTYPE *then_keyword_loc,
const YYLTYPE *end_keyword_loc);
1137static rb_node_case_t *rb_node_case_new(
struct parser_params *p, NODE *nd_head, NODE *nd_body,
const YYLTYPE *loc,
const YYLTYPE *case_keyword_loc,
const YYLTYPE *end_keyword_loc);
1138static rb_node_case2_t *rb_node_case2_new(
struct parser_params *p, NODE *nd_body,
const YYLTYPE *loc,
const YYLTYPE *case_keyword_loc,
const YYLTYPE *end_keyword_loc);
1139static rb_node_case3_t *rb_node_case3_new(
struct parser_params *p, NODE *nd_head, NODE *nd_body,
const YYLTYPE *loc,
const YYLTYPE *case_keyword_loc,
const YYLTYPE *end_keyword_loc);
1140static rb_node_when_t *rb_node_when_new(
struct parser_params *p, NODE *nd_head, NODE *nd_body, NODE *nd_next,
const YYLTYPE *loc,
const YYLTYPE *keyword_loc,
const YYLTYPE *then_keyword_loc);
1141static rb_node_in_t *rb_node_in_new(
struct parser_params *p, NODE *nd_head, NODE *nd_body, NODE *nd_next,
const YYLTYPE *loc,
const YYLTYPE *in_keyword_loc,
const YYLTYPE *then_keyword_loc,
const YYLTYPE *operator_loc);
1142static rb_node_while_t *rb_node_while_new(
struct parser_params *p, NODE *nd_cond, NODE *nd_body,
long nd_state,
const YYLTYPE *loc,
const YYLTYPE *keyword_loc,
const YYLTYPE *closing_loc);
1143static rb_node_until_t *rb_node_until_new(
struct parser_params *p, NODE *nd_cond, NODE *nd_body,
long nd_state,
const YYLTYPE *loc,
const YYLTYPE *keyword_loc,
const YYLTYPE *closing_loc);
1144static rb_node_iter_t *rb_node_iter_new(
struct parser_params *p, rb_node_args_t *nd_args, NODE *nd_body,
const YYLTYPE *loc);
1145static rb_node_for_t *rb_node_for_new(
struct parser_params *p, NODE *nd_iter, NODE *nd_body,
const YYLTYPE *loc,
const YYLTYPE *for_keyword_loc,
const YYLTYPE *in_keyword_loc,
const YYLTYPE *do_keyword_loc,
const YYLTYPE *end_keyword_loc);
1146static rb_node_for_masgn_t *rb_node_for_masgn_new(
struct parser_params *p, NODE *nd_var,
const YYLTYPE *loc);
1147static rb_node_retry_t *rb_node_retry_new(
struct parser_params *p,
const YYLTYPE *loc);
1148static rb_node_begin_t *rb_node_begin_new(
struct parser_params *p, NODE *nd_body,
const YYLTYPE *loc);
1149static rb_node_rescue_t *rb_node_rescue_new(
struct parser_params *p, NODE *nd_head, NODE *nd_resq, NODE *nd_else,
const YYLTYPE *loc);
1150static rb_node_resbody_t *rb_node_resbody_new(
struct parser_params *p, NODE *nd_args, NODE *nd_exc_var, NODE *nd_body, NODE *nd_next,
const YYLTYPE *loc);
1151static rb_node_ensure_t *rb_node_ensure_new(
struct parser_params *p, NODE *nd_head, NODE *nd_ensr,
const YYLTYPE *loc);
1152static rb_node_and_t *rb_node_and_new(
struct parser_params *p, NODE *nd_1st, NODE *nd_2nd,
const YYLTYPE *loc,
const YYLTYPE *operator_loc);
1153static rb_node_or_t *rb_node_or_new(
struct parser_params *p, NODE *nd_1st, NODE *nd_2nd,
const YYLTYPE *loc,
const YYLTYPE *operator_loc);
1154static rb_node_masgn_t *rb_node_masgn_new(
struct parser_params *p, NODE *nd_head, NODE *nd_args,
const YYLTYPE *loc);
1155static rb_node_lasgn_t *rb_node_lasgn_new(
struct parser_params *p,
ID nd_vid, NODE *nd_value,
const YYLTYPE *loc);
1156static rb_node_dasgn_t *rb_node_dasgn_new(
struct parser_params *p,
ID nd_vid, NODE *nd_value,
const YYLTYPE *loc);
1157static rb_node_gasgn_t *rb_node_gasgn_new(
struct parser_params *p,
ID nd_vid, NODE *nd_value,
const YYLTYPE *loc);
1158static rb_node_iasgn_t *rb_node_iasgn_new(
struct parser_params *p,
ID nd_vid, NODE *nd_value,
const YYLTYPE *loc);
1159static rb_node_cdecl_t *rb_node_cdecl_new(
struct parser_params *p,
ID nd_vid, NODE *nd_value, NODE *nd_else,
enum rb_parser_shareability shareability,
const YYLTYPE *loc);
1160static rb_node_cvasgn_t *rb_node_cvasgn_new(
struct parser_params *p,
ID nd_vid, NODE *nd_value,
const YYLTYPE *loc);
1161static rb_node_op_asgn1_t *rb_node_op_asgn1_new(
struct parser_params *p, NODE *nd_recv,
ID nd_mid, NODE *index, NODE *rvalue,
const YYLTYPE *loc,
const YYLTYPE *call_operator_loc,
const YYLTYPE *opening_loc,
const YYLTYPE *closing_loc,
const YYLTYPE *binary_operator_loc);
1162static rb_node_op_asgn2_t *rb_node_op_asgn2_new(
struct parser_params *p, NODE *nd_recv, NODE *nd_value,
ID nd_vid,
ID nd_mid,
bool nd_aid,
const YYLTYPE *loc,
const YYLTYPE *call_operator_loc,
const YYLTYPE *message_loc,
const YYLTYPE *binary_operator_loc);
1163static rb_node_op_asgn_or_t *rb_node_op_asgn_or_new(
struct parser_params *p, NODE *nd_head, NODE *nd_value,
const YYLTYPE *loc);
1164static rb_node_op_asgn_and_t *rb_node_op_asgn_and_new(
struct parser_params *p, NODE *nd_head, NODE *nd_value,
const YYLTYPE *loc);
1165static rb_node_op_cdecl_t *rb_node_op_cdecl_new(
struct parser_params *p, NODE *nd_head, NODE *nd_value,
ID nd_aid,
enum rb_parser_shareability shareability,
const YYLTYPE *loc);
1166static rb_node_call_t *rb_node_call_new(
struct parser_params *p, NODE *nd_recv,
ID nd_mid, NODE *nd_args,
const YYLTYPE *loc);
1167static rb_node_opcall_t *rb_node_opcall_new(
struct parser_params *p, NODE *nd_recv,
ID nd_mid, NODE *nd_args,
const YYLTYPE *loc);
1168static rb_node_fcall_t *rb_node_fcall_new(
struct parser_params *p,
ID nd_mid, NODE *nd_args,
const YYLTYPE *loc);
1169static rb_node_vcall_t *rb_node_vcall_new(
struct parser_params *p,
ID nd_mid,
const YYLTYPE *loc);
1170static rb_node_qcall_t *rb_node_qcall_new(
struct parser_params *p, NODE *nd_recv,
ID nd_mid, NODE *nd_args,
const YYLTYPE *loc);
1171static rb_node_super_t *rb_node_super_new(
struct parser_params *p, NODE *nd_args,
const YYLTYPE *loc,
const YYLTYPE *keyword_loc,
const YYLTYPE *lparen_loc,
const YYLTYPE *rparen_loc);
1172static rb_node_zsuper_t * rb_node_zsuper_new(
struct parser_params *p,
const YYLTYPE *loc);
1173static rb_node_list_t *rb_node_list_new(
struct parser_params *p, NODE *nd_head,
const YYLTYPE *loc);
1174static rb_node_list_t *rb_node_list_new2(
struct parser_params *p, NODE *nd_head,
long nd_alen, NODE *nd_next,
const YYLTYPE *loc);
1175static rb_node_zlist_t *rb_node_zlist_new(
struct parser_params *p,
const YYLTYPE *loc);
1176static rb_node_hash_t *rb_node_hash_new(
struct parser_params *p, NODE *nd_head,
const YYLTYPE *loc);
1177static rb_node_return_t *rb_node_return_new(
struct parser_params *p, NODE *nd_stts,
const YYLTYPE *loc,
const YYLTYPE *keyword_loc);
1178static rb_node_yield_t *rb_node_yield_new(
struct parser_params *p, NODE *nd_head,
const YYLTYPE *loc,
const YYLTYPE *keyword_loc,
const YYLTYPE *lparen_loc,
const YYLTYPE *rparen_loc);
1179static rb_node_lvar_t *rb_node_lvar_new(
struct parser_params *p,
ID nd_vid,
const YYLTYPE *loc);
1180static rb_node_dvar_t *rb_node_dvar_new(
struct parser_params *p,
ID nd_vid,
const YYLTYPE *loc);
1181static rb_node_gvar_t *rb_node_gvar_new(
struct parser_params *p,
ID nd_vid,
const YYLTYPE *loc);
1182static rb_node_ivar_t *rb_node_ivar_new(
struct parser_params *p,
ID nd_vid,
const YYLTYPE *loc);
1183static rb_node_const_t *rb_node_const_new(
struct parser_params *p,
ID nd_vid,
const YYLTYPE *loc);
1184static rb_node_cvar_t *rb_node_cvar_new(
struct parser_params *p,
ID nd_vid,
const YYLTYPE *loc);
1185static rb_node_nth_ref_t *rb_node_nth_ref_new(
struct parser_params *p,
long nd_nth,
const YYLTYPE *loc);
1186static rb_node_back_ref_t *rb_node_back_ref_new(
struct parser_params *p,
long nd_nth,
const YYLTYPE *loc);
1187static rb_node_match2_t *rb_node_match2_new(
struct parser_params *p, NODE *nd_recv, NODE *nd_value,
const YYLTYPE *loc);
1188static rb_node_match3_t *rb_node_match3_new(
struct parser_params *p, NODE *nd_recv, NODE *nd_value,
const YYLTYPE *loc);
1189static rb_node_integer_t * rb_node_integer_new(
struct parser_params *p,
char* val,
int base,
const YYLTYPE *loc);
1190static rb_node_float_t * rb_node_float_new(
struct parser_params *p,
char* val,
const YYLTYPE *loc);
1191static rb_node_rational_t * rb_node_rational_new(
struct parser_params *p,
char* val,
int base,
int seen_point,
const YYLTYPE *loc);
1192static rb_node_imaginary_t * rb_node_imaginary_new(
struct parser_params *p,
char* val,
int base,
int seen_point,
enum rb_numeric_type,
const YYLTYPE *loc);
1193static rb_node_str_t *rb_node_str_new(
struct parser_params *p, rb_parser_string_t *
string,
const YYLTYPE *loc);
1194static rb_node_dstr_t *rb_node_dstr_new0(
struct parser_params *p, rb_parser_string_t *
string,
long nd_alen, NODE *nd_next,
const YYLTYPE *loc);
1195static rb_node_dstr_t *rb_node_dstr_new(
struct parser_params *p, rb_parser_string_t *
string,
const YYLTYPE *loc);
1196static rb_node_xstr_t *rb_node_xstr_new(
struct parser_params *p, rb_parser_string_t *
string,
const YYLTYPE *loc);
1197static rb_node_dxstr_t *rb_node_dxstr_new(
struct parser_params *p, rb_parser_string_t *
string,
long nd_alen, NODE *nd_next,
const YYLTYPE *loc);
1198static rb_node_evstr_t *rb_node_evstr_new(
struct parser_params *p, NODE *nd_body,
const YYLTYPE *loc,
const YYLTYPE *opening_loc,
const YYLTYPE *closing_loc);
1199static rb_node_regx_t *rb_node_regx_new(
struct parser_params *p, rb_parser_string_t *
string,
int options,
const YYLTYPE *loc,
const YYLTYPE *opening_loc,
const YYLTYPE *content_loc,
const YYLTYPE *closing_loc);
1200static rb_node_once_t *rb_node_once_new(
struct parser_params *p, NODE *nd_body,
const YYLTYPE *loc);
1201static rb_node_args_t *rb_node_args_new(
struct parser_params *p,
const YYLTYPE *loc);
1202static rb_node_args_aux_t *rb_node_args_aux_new(
struct parser_params *p,
ID nd_pid,
int nd_plen,
const YYLTYPE *loc);
1203static rb_node_opt_arg_t *rb_node_opt_arg_new(
struct parser_params *p, NODE *nd_body,
const YYLTYPE *loc);
1204static rb_node_kw_arg_t *rb_node_kw_arg_new(
struct parser_params *p, NODE *nd_body,
const YYLTYPE *loc);
1205static rb_node_postarg_t *rb_node_postarg_new(
struct parser_params *p, NODE *nd_1st, NODE *nd_2nd,
const YYLTYPE *loc);
1206static rb_node_argscat_t *rb_node_argscat_new(
struct parser_params *p, NODE *nd_head, NODE *nd_body,
const YYLTYPE *loc);
1207static rb_node_argspush_t *rb_node_argspush_new(
struct parser_params *p, NODE *nd_head, NODE *nd_body,
const YYLTYPE *loc);
1208static rb_node_splat_t *rb_node_splat_new(
struct parser_params *p, NODE *nd_head,
const YYLTYPE *loc,
const YYLTYPE *operator_loc);
1209static rb_node_block_pass_t *rb_node_block_pass_new(
struct parser_params *p, NODE *nd_body,
const YYLTYPE *loc,
const YYLTYPE *operator_loc);
1210static rb_node_defn_t *rb_node_defn_new(
struct parser_params *p,
ID nd_mid, NODE *nd_defn,
const YYLTYPE *loc);
1211static rb_node_defs_t *rb_node_defs_new(
struct parser_params *p, NODE *nd_recv,
ID nd_mid, NODE *nd_defn,
const YYLTYPE *loc);
1212static rb_node_alias_t *rb_node_alias_new(
struct parser_params *p, NODE *nd_1st, NODE *nd_2nd,
const YYLTYPE *loc,
const YYLTYPE *keyword_loc);
1213static rb_node_valias_t *rb_node_valias_new(
struct parser_params *p,
ID nd_alias,
ID nd_orig,
const YYLTYPE *loc,
const YYLTYPE *keyword_loc);
1214static rb_node_undef_t *rb_node_undef_new(
struct parser_params *p, NODE *nd_undef,
const YYLTYPE *loc);
1215static rb_node_class_t *rb_node_class_new(
struct parser_params *p, NODE *nd_cpath, NODE *nd_body, NODE *nd_super,
const YYLTYPE *loc,
const YYLTYPE *class_keyword_loc,
const YYLTYPE *inheritance_operator_loc,
const YYLTYPE *end_keyword_loc);
1216static rb_node_module_t *rb_node_module_new(
struct parser_params *p, NODE *nd_cpath, NODE *nd_body,
const YYLTYPE *loc,
const YYLTYPE *module_keyword_loc,
const YYLTYPE *end_keyword_loc);
1217static rb_node_sclass_t *rb_node_sclass_new(
struct parser_params *p, NODE *nd_recv, NODE *nd_body,
const YYLTYPE *loc,
const YYLTYPE *class_keyword_loc,
const YYLTYPE *operator_loc,
const YYLTYPE *end_keyword_loc);
1218static rb_node_colon2_t *rb_node_colon2_new(
struct parser_params *p, NODE *nd_head,
ID nd_mid,
const YYLTYPE *loc,
const YYLTYPE *delimiter_loc,
const YYLTYPE *name_loc);
1219static rb_node_colon3_t *rb_node_colon3_new(
struct parser_params *p,
ID nd_mid,
const YYLTYPE *loc,
const YYLTYPE *delimiter_loc,
const YYLTYPE *name_loc);
1220static rb_node_dot2_t *rb_node_dot2_new(
struct parser_params *p, NODE *nd_beg, NODE *nd_end,
const YYLTYPE *loc,
const YYLTYPE *operator_loc);
1221static rb_node_dot3_t *rb_node_dot3_new(
struct parser_params *p, NODE *nd_beg, NODE *nd_end,
const YYLTYPE *loc,
const YYLTYPE *operator_loc);
1222static rb_node_self_t *rb_node_self_new(
struct parser_params *p,
const YYLTYPE *loc);
1223static rb_node_nil_t *rb_node_nil_new(
struct parser_params *p,
const YYLTYPE *loc);
1224static rb_node_true_t *rb_node_true_new(
struct parser_params *p,
const YYLTYPE *loc);
1225static rb_node_false_t *rb_node_false_new(
struct parser_params *p,
const YYLTYPE *loc);
1226static rb_node_errinfo_t *rb_node_errinfo_new(
struct parser_params *p,
const YYLTYPE *loc);
1227static rb_node_defined_t *rb_node_defined_new(
struct parser_params *p, NODE *nd_head,
const YYLTYPE *loc,
const YYLTYPE *keyword_loc);
1228static rb_node_postexe_t *rb_node_postexe_new(
struct parser_params *p, NODE *nd_body,
const YYLTYPE *loc,
const YYLTYPE *keyword_loc,
const YYLTYPE *opening_loc,
const YYLTYPE *closing_loc);
1229static rb_node_sym_t *rb_node_sym_new(
struct parser_params *p,
VALUE str,
const YYLTYPE *loc);
1230static rb_node_dsym_t *rb_node_dsym_new(
struct parser_params *p, rb_parser_string_t *
string,
long nd_alen, NODE *nd_next,
const YYLTYPE *loc);
1231static rb_node_attrasgn_t *rb_node_attrasgn_new(
struct parser_params *p, NODE *nd_recv,
ID nd_mid, NODE *nd_args,
const YYLTYPE *loc);
1232static rb_node_lambda_t *rb_node_lambda_new(
struct parser_params *p, rb_node_args_t *nd_args, NODE *nd_body,
const YYLTYPE *loc,
const YYLTYPE *operator_loc,
const YYLTYPE *opening_loc,
const YYLTYPE *closing_loc);
1233static rb_node_aryptn_t *rb_node_aryptn_new(
struct parser_params *p, NODE *pre_args, NODE *rest_arg, NODE *post_args,
const YYLTYPE *loc);
1234static rb_node_hshptn_t *rb_node_hshptn_new(
struct parser_params *p, NODE *nd_pconst, NODE *nd_pkwargs, NODE *nd_pkwrestarg,
const YYLTYPE *loc);
1235static rb_node_fndptn_t *rb_node_fndptn_new(
struct parser_params *p, NODE *pre_rest_arg, NODE *args, NODE *post_rest_arg,
const YYLTYPE *loc);
1236static rb_node_line_t *rb_node_line_new(
struct parser_params *p,
const YYLTYPE *loc);
1237static rb_node_file_t *rb_node_file_new(
struct parser_params *p,
VALUE str,
const YYLTYPE *loc);
1238static rb_node_error_t *rb_node_error_new(
struct parser_params *p,
const YYLTYPE *loc);
1240#define NEW_SCOPE(a,b,c,loc) (NODE *)rb_node_scope_new(p,a,b,c,loc)
1241#define NEW_SCOPE2(t,a,b,c,loc) (NODE *)rb_node_scope_new2(p,t,a,b,c,loc)
1242#define NEW_BLOCK(a,loc) (NODE *)rb_node_block_new(p,a,loc)
1243#define NEW_IF(c,t,e,loc,ik_loc,tk_loc,ek_loc) (NODE *)rb_node_if_new(p,c,t,e,loc,ik_loc,tk_loc,ek_loc)
1244#define NEW_UNLESS(c,t,e,loc,k_loc,t_loc,e_loc) (NODE *)rb_node_unless_new(p,c,t,e,loc,k_loc,t_loc,e_loc)
1245#define NEW_CASE(h,b,loc,ck_loc,ek_loc) (NODE *)rb_node_case_new(p,h,b,loc,ck_loc,ek_loc)
1246#define NEW_CASE2(b,loc,ck_loc,ek_loc) (NODE *)rb_node_case2_new(p,b,loc,ck_loc,ek_loc)
1247#define NEW_CASE3(h,b,loc,ck_loc,ek_loc) (NODE *)rb_node_case3_new(p,h,b,loc,ck_loc,ek_loc)
1248#define NEW_WHEN(c,t,e,loc,k_loc,t_loc) (NODE *)rb_node_when_new(p,c,t,e,loc,k_loc,t_loc)
1249#define NEW_IN(c,t,e,loc,ik_loc,tk_loc,o_loc) (NODE *)rb_node_in_new(p,c,t,e,loc,ik_loc,tk_loc,o_loc)
1250#define NEW_WHILE(c,b,n,loc,k_loc,c_loc) (NODE *)rb_node_while_new(p,c,b,n,loc,k_loc,c_loc)
1251#define NEW_UNTIL(c,b,n,loc,k_loc,c_loc) (NODE *)rb_node_until_new(p,c,b,n,loc,k_loc,c_loc)
1252#define NEW_ITER(a,b,loc) (NODE *)rb_node_iter_new(p,a,b,loc)
1253#define NEW_FOR(i,b,loc,f_loc,i_loc,d_loc,e_loc) (NODE *)rb_node_for_new(p,i,b,loc,f_loc,i_loc,d_loc,e_loc)
1254#define NEW_FOR_MASGN(v,loc) (NODE *)rb_node_for_masgn_new(p,v,loc)
1255#define NEW_RETRY(loc) (NODE *)rb_node_retry_new(p,loc)
1256#define NEW_BEGIN(b,loc) (NODE *)rb_node_begin_new(p,b,loc)
1257#define NEW_RESCUE(b,res,e,loc) (NODE *)rb_node_rescue_new(p,b,res,e,loc)
1258#define NEW_RESBODY(a,v,ex,n,loc) (NODE *)rb_node_resbody_new(p,a,v,ex,n,loc)
1259#define NEW_ENSURE(b,en,loc) (NODE *)rb_node_ensure_new(p,b,en,loc)
1260#define NEW_AND(f,s,loc,op_loc) (NODE *)rb_node_and_new(p,f,s,loc,op_loc)
1261#define NEW_OR(f,s,loc,op_loc) (NODE *)rb_node_or_new(p,f,s,loc,op_loc)
1262#define NEW_MASGN(l,r,loc) rb_node_masgn_new(p,l,r,loc)
1263#define NEW_LASGN(v,val,loc) (NODE *)rb_node_lasgn_new(p,v,val,loc)
1264#define NEW_DASGN(v,val,loc) (NODE *)rb_node_dasgn_new(p,v,val,loc)
1265#define NEW_GASGN(v,val,loc) (NODE *)rb_node_gasgn_new(p,v,val,loc)
1266#define NEW_IASGN(v,val,loc) (NODE *)rb_node_iasgn_new(p,v,val,loc)
1267#define NEW_CDECL(v,val,path,share,loc) (NODE *)rb_node_cdecl_new(p,v,val,path,share,loc)
1268#define NEW_CVASGN(v,val,loc) (NODE *)rb_node_cvasgn_new(p,v,val,loc)
1269#define NEW_OP_ASGN1(r,id,idx,rval,loc,c_op_loc,o_loc,c_loc,b_op_loc) (NODE *)rb_node_op_asgn1_new(p,r,id,idx,rval,loc,c_op_loc,o_loc,c_loc,b_op_loc)
1270#define NEW_OP_ASGN2(r,t,i,o,val,loc,c_op_loc,m_loc,b_op_loc) (NODE *)rb_node_op_asgn2_new(p,r,val,i,o,t,loc,c_op_loc,m_loc,b_op_loc)
1271#define NEW_OP_ASGN_OR(i,val,loc) (NODE *)rb_node_op_asgn_or_new(p,i,val,loc)
1272#define NEW_OP_ASGN_AND(i,val,loc) (NODE *)rb_node_op_asgn_and_new(p,i,val,loc)
1273#define NEW_OP_CDECL(v,op,val,share,loc) (NODE *)rb_node_op_cdecl_new(p,v,val,op,share,loc)
1274#define NEW_CALL(r,m,a,loc) (NODE *)rb_node_call_new(p,r,m,a,loc)
1275#define NEW_OPCALL(r,m,a,loc) (NODE *)rb_node_opcall_new(p,r,m,a,loc)
1276#define NEW_FCALL(m,a,loc) rb_node_fcall_new(p,m,a,loc)
1277#define NEW_VCALL(m,loc) (NODE *)rb_node_vcall_new(p,m,loc)
1278#define NEW_QCALL0(r,m,a,loc) (NODE *)rb_node_qcall_new(p,r,m,a,loc)
1279#define NEW_SUPER(a,loc,k_loc,l_loc,r_loc) (NODE *)rb_node_super_new(p,a,loc,k_loc,l_loc,r_loc)
1280#define NEW_ZSUPER(loc) (NODE *)rb_node_zsuper_new(p,loc)
1281#define NEW_LIST(a,loc) (NODE *)rb_node_list_new(p,a,loc)
1282#define NEW_LIST2(h,l,n,loc) (NODE *)rb_node_list_new2(p,h,l,n,loc)
1283#define NEW_ZLIST(loc) (NODE *)rb_node_zlist_new(p,loc)
1284#define NEW_HASH(a,loc) (NODE *)rb_node_hash_new(p,a,loc)
1285#define NEW_RETURN(s,loc,k_loc) (NODE *)rb_node_return_new(p,s,loc,k_loc)
1286#define NEW_YIELD(a,loc,k_loc,l_loc,r_loc) (NODE *)rb_node_yield_new(p,a,loc,k_loc,l_loc,r_loc)
1287#define NEW_LVAR(v,loc) (NODE *)rb_node_lvar_new(p,v,loc)
1288#define NEW_DVAR(v,loc) (NODE *)rb_node_dvar_new(p,v,loc)
1289#define NEW_GVAR(v,loc) (NODE *)rb_node_gvar_new(p,v,loc)
1290#define NEW_IVAR(v,loc) (NODE *)rb_node_ivar_new(p,v,loc)
1291#define NEW_CONST(v,loc) (NODE *)rb_node_const_new(p,v,loc)
1292#define NEW_CVAR(v,loc) (NODE *)rb_node_cvar_new(p,v,loc)
1293#define NEW_NTH_REF(n,loc) (NODE *)rb_node_nth_ref_new(p,n,loc)
1294#define NEW_BACK_REF(n,loc) (NODE *)rb_node_back_ref_new(p,n,loc)
1295#define NEW_MATCH2(n1,n2,loc) (NODE *)rb_node_match2_new(p,n1,n2,loc)
1296#define NEW_MATCH3(r,n2,loc) (NODE *)rb_node_match3_new(p,r,n2,loc)
1297#define NEW_INTEGER(val, base,loc) (NODE *)rb_node_integer_new(p,val,base,loc)
1298#define NEW_FLOAT(val,loc) (NODE *)rb_node_float_new(p,val,loc)
1299#define NEW_RATIONAL(val,base,seen_point,loc) (NODE *)rb_node_rational_new(p,val,base,seen_point,loc)
1300#define NEW_IMAGINARY(val,base,seen_point,numeric_type,loc) (NODE *)rb_node_imaginary_new(p,val,base,seen_point,numeric_type,loc)
1301#define NEW_STR(s,loc) (NODE *)rb_node_str_new(p,s,loc)
1302#define NEW_DSTR0(s,l,n,loc) (NODE *)rb_node_dstr_new0(p,s,l,n,loc)
1303#define NEW_DSTR(s,loc) (NODE *)rb_node_dstr_new(p,s,loc)
1304#define NEW_XSTR(s,loc) (NODE *)rb_node_xstr_new(p,s,loc)
1305#define NEW_DXSTR(s,l,n,loc) (NODE *)rb_node_dxstr_new(p,s,l,n,loc)
1306#define NEW_EVSTR(n,loc,o_loc,c_loc) (NODE *)rb_node_evstr_new(p,n,loc,o_loc,c_loc)
1307#define NEW_REGX(str,opts,loc,o_loc,ct_loc,c_loc) (NODE *)rb_node_regx_new(p,str,opts,loc,o_loc,ct_loc,c_loc)
1308#define NEW_ONCE(b,loc) (NODE *)rb_node_once_new(p,b,loc)
1309#define NEW_ARGS(loc) rb_node_args_new(p,loc)
1310#define NEW_ARGS_AUX(r,b,loc) rb_node_args_aux_new(p,r,b,loc)
1311#define NEW_OPT_ARG(v,loc) rb_node_opt_arg_new(p,v,loc)
1312#define NEW_KW_ARG(v,loc) rb_node_kw_arg_new(p,v,loc)
1313#define NEW_POSTARG(i,v,loc) (NODE *)rb_node_postarg_new(p,i,v,loc)
1314#define NEW_ARGSCAT(a,b,loc) (NODE *)rb_node_argscat_new(p,a,b,loc)
1315#define NEW_ARGSPUSH(a,b,loc) (NODE *)rb_node_argspush_new(p,a,b,loc)
1316#define NEW_SPLAT(a,loc,op_loc) (NODE *)rb_node_splat_new(p,a,loc,op_loc)
1317#define NEW_BLOCK_PASS(b,loc,o_loc) rb_node_block_pass_new(p,b,loc,o_loc)
1318#define NEW_DEFN(i,s,loc) (NODE *)rb_node_defn_new(p,i,s,loc)
1319#define NEW_DEFS(r,i,s,loc) (NODE *)rb_node_defs_new(p,r,i,s,loc)
1320#define NEW_ALIAS(n,o,loc,k_loc) (NODE *)rb_node_alias_new(p,n,o,loc,k_loc)
1321#define NEW_VALIAS(n,o,loc,k_loc) (NODE *)rb_node_valias_new(p,n,o,loc,k_loc)
1322#define NEW_UNDEF(i,loc) (NODE *)rb_node_undef_new(p,i,loc)
1323#define NEW_CLASS(n,b,s,loc,ck_loc,io_loc,ek_loc) (NODE *)rb_node_class_new(p,n,b,s,loc,ck_loc,io_loc,ek_loc)
1324#define NEW_MODULE(n,b,loc,mk_loc,ek_loc) (NODE *)rb_node_module_new(p,n,b,loc,mk_loc,ek_loc)
1325#define NEW_SCLASS(r,b,loc,ck_loc,op_loc,ek_loc) (NODE *)rb_node_sclass_new(p,r,b,loc,ck_loc,op_loc,ek_loc)
1326#define NEW_COLON2(c,i,loc,d_loc,n_loc) (NODE *)rb_node_colon2_new(p,c,i,loc,d_loc,n_loc)
1327#define NEW_COLON3(i,loc,d_loc,n_loc) (NODE *)rb_node_colon3_new(p,i,loc,d_loc,n_loc)
1328#define NEW_DOT2(b,e,loc,op_loc) (NODE *)rb_node_dot2_new(p,b,e,loc,op_loc)
1329#define NEW_DOT3(b,e,loc,op_loc) (NODE *)rb_node_dot3_new(p,b,e,loc,op_loc)
1330#define NEW_SELF(loc) (NODE *)rb_node_self_new(p,loc)
1331#define NEW_NIL(loc) (NODE *)rb_node_nil_new(p,loc)
1332#define NEW_TRUE(loc) (NODE *)rb_node_true_new(p,loc)
1333#define NEW_FALSE(loc) (NODE *)rb_node_false_new(p,loc)
1334#define NEW_ERRINFO(loc) (NODE *)rb_node_errinfo_new(p,loc)
1335#define NEW_DEFINED(e,loc,k_loc) (NODE *)rb_node_defined_new(p,e,loc, k_loc)
1336#define NEW_POSTEXE(b,loc,k_loc,o_loc,c_loc) (NODE *)rb_node_postexe_new(p,b,loc,k_loc,o_loc,c_loc)
1337#define NEW_SYM(str,loc) (NODE *)rb_node_sym_new(p,str,loc)
1338#define NEW_DSYM(s,l,n,loc) (NODE *)rb_node_dsym_new(p,s,l,n,loc)
1339#define NEW_ATTRASGN(r,m,a,loc) (NODE *)rb_node_attrasgn_new(p,r,m,a,loc)
1340#define NEW_LAMBDA(a,b,loc,op_loc,o_loc,c_loc) (NODE *)rb_node_lambda_new(p,a,b,loc,op_loc,o_loc,c_loc)
1341#define NEW_ARYPTN(pre,r,post,loc) (NODE *)rb_node_aryptn_new(p,pre,r,post,loc)
1342#define NEW_HSHPTN(c,kw,kwrest,loc) (NODE *)rb_node_hshptn_new(p,c,kw,kwrest,loc)
1343#define NEW_FNDPTN(pre,a,post,loc) (NODE *)rb_node_fndptn_new(p,pre,a,post,loc)
1344#define NEW_LINE(loc) (NODE *)rb_node_line_new(p,loc)
1345#define NEW_FILE(str,loc) (NODE *)rb_node_file_new(p,str,loc)
1346#define NEW_ENCODING(loc) (NODE *)rb_node_encoding_new(p,loc)
1347#define NEW_ERROR(loc) (NODE *)rb_node_error_new(p,loc)
1349enum internal_node_type {
1350 NODE_INTERNAL_ONLY = NODE_LAST,
1357parser_node_name(
int node)
1361 return "NODE_DEF_TEMP";
1363 return "NODE_EXITS";
1365 return ruby_node_name(node);
1375 struct RNode *nd_def;
1380 NODE *numparam_save;
1385#define RNODE_DEF_TEMP(node) ((struct RNode_DEF_TEMP *)(node))
1387static rb_node_break_t *rb_node_break_new(
struct parser_params *p, NODE *nd_stts,
const YYLTYPE *loc,
const YYLTYPE *keyword_loc);
1388static rb_node_next_t *rb_node_next_new(
struct parser_params *p, NODE *nd_stts,
const YYLTYPE *loc,
const YYLTYPE *keyword_loc);
1389static rb_node_redo_t *rb_node_redo_new(
struct parser_params *p,
const YYLTYPE *loc,
const YYLTYPE *keyword_loc);
1390static rb_node_def_temp_t *rb_node_def_temp_new(
struct parser_params *p,
const YYLTYPE *loc);
1391static rb_node_def_temp_t *def_head_save(
struct parser_params *p, rb_node_def_temp_t *n);
1393#define NEW_BREAK(s,loc,k_loc) (NODE *)rb_node_break_new(p,s,loc,k_loc)
1394#define NEW_NEXT(s,loc,k_loc) (NODE *)rb_node_next_new(p,s,loc,k_loc)
1395#define NEW_REDO(loc,k_loc) (NODE *)rb_node_redo_new(p,loc,k_loc)
1396#define NEW_DEF_TEMP(loc) rb_node_def_temp_new(p,loc)
1400static NODE* node_new_internal(
struct parser_params *p,
enum node_type
type,
size_t size,
size_t alignment);
1401#define NODE_NEW_INTERNAL(ndtype, type) (type *)node_new_internal(p, (enum node_type)(ndtype), sizeof(type), RUBY_ALIGNOF(type))
1403static NODE *nd_set_loc(NODE *nd,
const YYLTYPE *loc);
1408 int node_id = p->node_id;
1414anddot_multiple_assignment_check(
struct parser_params* p,
const YYLTYPE *loc,
ID id)
1416 if (
id == tANDDOT) {
1417 yyerror1(loc,
"&. inside multiple assignment destination");
1422set_line_body(NODE *body,
int line)
1425 switch (nd_type(body)) {
1428 nd_set_line(body, line);
1433set_embraced_location(NODE *node,
const rb_code_location_t *beg,
const rb_code_location_t *end)
1435 RNODE_ITER(node)->nd_body->nd_loc = code_loc_gen(beg, end);
1436 nd_set_line(node, beg->end_pos.lineno);
1440last_expr_node(NODE *expr)
1443 if (nd_type_p(expr, NODE_BLOCK)) {
1444 expr = RNODE_BLOCK(RNODE_BLOCK(expr)->nd_end)->nd_head;
1446 else if (nd_type_p(expr, NODE_BEGIN) && RNODE_BEGIN(expr)->nd_body) {
1447 expr = RNODE_BEGIN(expr)->nd_body;
1457#define yyparse ruby_yyparse
1460static NODE* cond(
struct parser_params *p, NODE *node,
const YYLTYPE *loc);
1461static NODE* method_cond(
struct parser_params *p, NODE *node,
const YYLTYPE *loc);
1462static NODE *new_nil_at(
struct parser_params *p,
const rb_code_position_t *pos);
1463static NODE *new_if(
struct parser_params*,NODE*,NODE*,NODE*,
const YYLTYPE*,
const YYLTYPE*,
const YYLTYPE*,
const YYLTYPE*);
1464static NODE *new_unless(
struct parser_params*,NODE*,NODE*,NODE*,
const YYLTYPE*,
const YYLTYPE*,
const YYLTYPE*,
const YYLTYPE*);
1465static NODE *logop(
struct parser_params*,
ID,NODE*,NODE*,
const YYLTYPE*,
const YYLTYPE*);
1467static NODE *newline_node(NODE*);
1468static void fixpos(NODE*,NODE*);
1472static NODE *remove_begin(NODE*);
1475static void block_dup_check(
struct parser_params*,NODE*,NODE*);
1477static NODE *block_append(
struct parser_params*,NODE*,NODE*);
1479static NODE *list_concat(NODE*,NODE*);
1480static NODE *arg_append(
struct parser_params*,NODE*,NODE*,
const YYLTYPE*);
1481static NODE *last_arg_append(
struct parser_params *p, NODE *args, NODE *last_arg,
const YYLTYPE *loc);
1482static NODE *rest_arg_append(
struct parser_params *p, NODE *args, NODE *rest_arg,
const YYLTYPE *loc);
1483static NODE *literal_concat(
struct parser_params*,NODE*,NODE*,
const YYLTYPE*);
1484static NODE *new_evstr(
struct parser_params*,NODE*,
const YYLTYPE*,
const YYLTYPE*,
const YYLTYPE*);
1485static NODE *new_dstr(
struct parser_params*,NODE*,
const YYLTYPE*);
1488static NODE *splat_array(NODE*);
1489static void mark_lvar_used(
struct parser_params *p, NODE *rhs);
1491static NODE *call_bin_op(
struct parser_params*,NODE*,
ID,NODE*,
const YYLTYPE*,
const YYLTYPE*);
1492static NODE *call_uni_op(
struct parser_params*,NODE*,
ID,
const YYLTYPE*,
const YYLTYPE*);
1493static NODE *new_qcall(
struct parser_params* p,
ID atype, NODE *recv,
ID mid, NODE *args,
const YYLTYPE *op_loc,
const YYLTYPE *loc);
1494static NODE *new_command_qcall(
struct parser_params* p,
ID atype, NODE *recv,
ID mid, NODE *args, NODE *block,
const YYLTYPE *op_loc,
const YYLTYPE *loc);
1495static NODE *method_add_block(
struct parser_params*p, NODE *m, NODE *b,
const YYLTYPE *loc) {RNODE_ITER(b)->nd_iter = m; b->nd_loc = *loc;
return b;}
1496static NODE *command_add_block(
struct parser_params*p, NODE *m, NODE *b,
const YYLTYPE *loc);
1498static bool args_info_empty_p(
struct rb_args_info *args);
1499static rb_node_args_t *new_args(
struct parser_params*,rb_node_args_aux_t*,rb_node_opt_arg_t*,
ID,rb_node_args_aux_t*,rb_node_args_t*,
const YYLTYPE*);
1500static rb_node_args_t *new_args_tail(
struct parser_params*,rb_node_kw_arg_t*,
ID,
ID,
const YYLTYPE*);
1501static NODE *new_array_pattern(
struct parser_params *p, NODE *constant, NODE *pre_arg, NODE *aryptn,
const YYLTYPE *loc);
1502static NODE *new_array_pattern_tail(
struct parser_params *p, NODE *pre_args,
int has_rest, NODE *rest_arg, NODE *post_args,
const YYLTYPE *loc);
1503static NODE *new_find_pattern(
struct parser_params *p, NODE *constant, NODE *fndptn,
const YYLTYPE *loc);
1504static NODE *new_find_pattern_tail(
struct parser_params *p, NODE *pre_rest_arg, NODE *args, NODE *post_rest_arg,
const YYLTYPE *loc);
1505static NODE *new_hash_pattern(
struct parser_params *p, NODE *constant, NODE *hshptn,
const YYLTYPE *loc);
1506static NODE *new_hash_pattern_tail(
struct parser_params *p, NODE *kw_args,
ID kw_rest_arg,
const YYLTYPE *loc);
1508static rb_node_kw_arg_t *new_kw_arg(
struct parser_params *p, NODE *k,
const YYLTYPE *loc);
1509static rb_node_args_t *args_with_numbered(
struct parser_params*,rb_node_args_t*,
int,
ID);
1511static NODE* negate_lit(
struct parser_params*, NODE*,
const YYLTYPE*);
1514static NODE *arg_blk_pass(NODE*,rb_node_block_pass_t*);
1515static NODE *dsym_node(
struct parser_params*,NODE*,
const YYLTYPE*);
1518static NODE *assignable(
struct parser_params*,
ID,NODE*,
const YYLTYPE*);
1520static NODE *aryset(
struct parser_params*,NODE*,NODE*,
const YYLTYPE*);
1527static NODE *new_ary_op_assign(
struct parser_params *p, NODE *ary, NODE *args,
ID op, NODE *rhs,
const YYLTYPE *args_loc,
const YYLTYPE *loc,
const YYLTYPE *call_operator_loc,
const YYLTYPE *opening_loc,
const YYLTYPE *closing_loc,
const YYLTYPE *binary_operator_loc);
1528static NODE *new_attr_op_assign(
struct parser_params *p, NODE *lhs,
ID atype,
ID attr,
ID op, NODE *rhs,
const YYLTYPE *loc,
const YYLTYPE *call_operator_loc,
const YYLTYPE *message_loc,
const YYLTYPE *binary_operator_loc);
1529static NODE *new_const_op_assign(
struct parser_params *p, NODE *lhs,
ID op, NODE *rhs,
struct lex_context,
const YYLTYPE *loc);
1530static NODE *new_bodystmt(
struct parser_params *p, NODE *head, NODE *rescue, NODE *rescue_else, NODE *ensure,
const YYLTYPE *loc);
1532static NODE *const_decl(
struct parser_params *p, NODE* path,
const YYLTYPE *loc);
1534static rb_node_opt_arg_t *opt_arg_append(rb_node_opt_arg_t*, rb_node_opt_arg_t*);
1535static rb_node_kw_arg_t *kwd_append(rb_node_kw_arg_t*, rb_node_kw_arg_t*);
1537static NODE *new_hash(
struct parser_params *p, NODE *hash,
const YYLTYPE *loc);
1538static NODE *new_unique_key_hash(
struct parser_params *p, NODE *hash,
const YYLTYPE *loc);
1540static NODE *new_defined(
struct parser_params *p, NODE *expr,
const YYLTYPE *loc,
const YYLTYPE *keyword_loc);
1542static NODE *new_regexp(
struct parser_params *, NODE *,
int,
const YYLTYPE *,
const YYLTYPE *,
const YYLTYPE *,
const YYLTYPE *);
1544#define make_list(list, loc) ((list) ? (nd_set_loc(list, loc), list) : NEW_ZLIST(loc))
1546static NODE *new_xstring(
struct parser_params *, NODE *,
const YYLTYPE *loc);
1548static NODE *symbol_append(
struct parser_params *p, NODE *symbols, NODE *symbol);
1550static NODE *match_op(
struct parser_params*,NODE*,NODE*,
const YYLTYPE*,
const YYLTYPE*);
1555static void reg_fragment_setenc(
struct parser_params*, rb_parser_string_t*,
int);
1557static int literal_concat0(
struct parser_params *p, rb_parser_string_t *head, rb_parser_string_t *tail);
1560static void check_literal_when(
struct parser_params *p, NODE *args,
const YYLTYPE *loc);
1565#define get_value(idx) (rb_ary_entry(p->s_value_stack, idx))
1566#define set_value(val) (p->s_lvalue = val)
1571RUBY_SYMBOL_EXPORT_BEGIN
1573int rb_reg_fragment_setenc(
struct parser_params*, rb_parser_string_t *,
int);
1574enum lex_state_e rb_parser_trace_lex_state(
struct parser_params *,
enum lex_state_e,
enum lex_state_e,
int);
1576void rb_parser_show_bitstack(
struct parser_params *, stack_type,
const char *,
int);
1577PRINTF_ARGS(
void rb_parser_fatal(
struct parser_params *p,
const char *fmt, ...), 2, 3);
1578YYLTYPE *rb_parser_set_location_from_strterm_heredoc(
struct parser_params *p, rb_strterm_heredoc_t *here, YYLTYPE *yylloc);
1579YYLTYPE *rb_parser_set_location_of_delayed_token(
struct parser_params *p, YYLTYPE *yylloc);
1580YYLTYPE *rb_parser_set_location_of_heredoc_end(
struct parser_params *p, YYLTYPE *yylloc);
1581YYLTYPE *rb_parser_set_location_of_dummy_end(
struct parser_params *p, YYLTYPE *yylloc);
1582YYLTYPE *rb_parser_set_location_of_none(
struct parser_params *p, YYLTYPE *yylloc);
1583YYLTYPE *rb_parser_set_location(
struct parser_params *p, YYLTYPE *yylloc);
1584void ruby_show_error_line(
struct parser_params *p,
VALUE errbuf,
const YYLTYPE *yylloc,
int lineno, rb_parser_string_t *str);
1585RUBY_SYMBOL_EXPORT_END
1587static void flush_string_content(
struct parser_params *p, rb_encoding *enc,
size_t back);
1588static void error_duplicate_pattern_variable(
struct parser_params *p,
ID id,
const YYLTYPE *loc);
1589static void error_duplicate_pattern_key(
struct parser_params *p,
ID id,
const YYLTYPE *loc);
1600#define internal_id rb_parser_internal_id
1602static NODE *new_args_forward_call(
struct parser_params*, NODE*,
const YYLTYPE*,
const YYLTYPE*);
1605static void forwarding_arg_check(
struct parser_params *p,
ID arg,
ID all,
const char *var);
1610#define dyna_var(p, id) local_var(p, id)
1612#define dvar_defined_ref rb_parser_dvar_defined_ref
1619static void numparam_pop(
struct parser_params *p, NODE *prev_inner);
1621#define METHOD_NOT '!'
1623#define idFWD_REST '*'
1624#define idFWD_KWREST idPow
1625#define idFWD_BLOCK '&'
1626#define idFWD_ALL idDot3
1627#define arg_FWD_BLOCK idFWD_BLOCK
1629#define RE_ONIG_OPTION_IGNORECASE 1
1630#define RE_ONIG_OPTION_EXTEND (RE_ONIG_OPTION_IGNORECASE<<1)
1631#define RE_ONIG_OPTION_MULTILINE (RE_ONIG_OPTION_EXTEND<<1)
1632#define RE_OPTION_ONCE (1<<16)
1633#define RE_OPTION_ENCODING_SHIFT 8
1634#define RE_OPTION_ENCODING(e) (((e)&0xff)<<RE_OPTION_ENCODING_SHIFT)
1635#define RE_OPTION_ENCODING_IDX(o) (((o)>>RE_OPTION_ENCODING_SHIFT)&0xff)
1636#define RE_OPTION_ENCODING_NONE(o) ((o)&RE_OPTION_ARG_ENCODING_NONE)
1637#define RE_OPTION_MASK 0xff
1638#define RE_OPTION_ARG_ENCODING_NONE 32
1640#define CHECK_LITERAL_WHEN (st_table *)1
1641#define CASE_LABELS_ENABLED_P(case_labels) (case_labels && case_labels != CHECK_LITERAL_WHEN)
1643#define yytnamerr(yyres, yystr) (YYSIZE_T)rb_yytnamerr(p, yyres, yystr)
1644RUBY_FUNC_EXPORTED
size_t rb_yytnamerr(
struct parser_params *p,
char *yyres,
const char *yystr);
1646#define TOKEN2ID(tok) ( \
1647 tTOKEN_LOCAL_BEGIN<(tok)&&(tok)<tTOKEN_LOCAL_END ? TOKEN2LOCALID(tok) : \
1648 tTOKEN_INSTANCE_BEGIN<(tok)&&(tok)<tTOKEN_INSTANCE_END ? TOKEN2INSTANCEID(tok) : \
1649 tTOKEN_GLOBAL_BEGIN<(tok)&&(tok)<tTOKEN_GLOBAL_END ? TOKEN2GLOBALID(tok) : \
1650 tTOKEN_CONST_BEGIN<(tok)&&(tok)<tTOKEN_CONST_END ? TOKEN2CONSTID(tok) : \
1651 tTOKEN_CLASS_BEGIN<(tok)&&(tok)<tTOKEN_CLASS_END ? TOKEN2CLASSID(tok) : \
1652 tTOKEN_ATTRSET_BEGIN<(tok)&&(tok)<tTOKEN_ATTRSET_END ? TOKEN2ATTRSETID(tok) : \
1653 ((tok) / ((tok)<tPRESERVED_ID_END && ((tok)>=128 || rb_ispunct(tok)))))
1659#include "eventids1.h"
1660#include "eventids2.h"
1662extern const struct ripper_parser_ids ripper_parser_ids;
1673#define dispatch0(n) ripper_dispatch0(p, RIPPER_ID(n))
1674#define dispatch1(n,a) ripper_dispatch1(p, RIPPER_ID(n), (a))
1675#define dispatch2(n,a,b) ripper_dispatch2(p, RIPPER_ID(n), (a), (b))
1676#define dispatch3(n,a,b,c) ripper_dispatch3(p, RIPPER_ID(n), (a), (b), (c))
1677#define dispatch4(n,a,b,c,d) ripper_dispatch4(p, RIPPER_ID(n), (a), (b), (c), (d))
1678#define dispatch5(n,a,b,c,d,e) ripper_dispatch5(p, RIPPER_ID(n), (a), (b), (c), (d), (e))
1679#define dispatch7(n,a,b,c,d,e,f,g) ripper_dispatch7(p, RIPPER_ID(n), (a), (b), (c), (d), (e), (f), (g))
1681#define yyparse ripper_yyparse
1686 if (!
NIL_P(pre_arg)) {
1687 if (!
NIL_P(pre_args)) {
1688 rb_ary_unshift(pre_args, pre_arg);
1691 pre_args = rb_ary_new_from_args(1, pre_arg);
1697#define ID2VAL(id) STATIC_ID2SYM(id)
1698#define TOKEN2VAL(t) ID2VAL(TOKEN2ID(t))
1701#define KWD2EID(t, v) keyword_##t
1704new_scope_body(
struct parser_params *p, rb_node_args_t *args, NODE *body, NODE *parent,
const YYLTYPE *loc)
1706 body = remove_begin(body);
1707 reduce_nodes(p, &body);
1708 NODE *n = NEW_SCOPE(args, body, parent, loc);
1709 nd_set_line(n, loc->end_pos.lineno);
1710 set_line_body(body, loc->beg_pos.lineno);
1715rescued_expr(
struct parser_params *p, NODE *arg, NODE *rescue,
1716 const YYLTYPE *arg_loc,
const YYLTYPE *mod_loc,
const YYLTYPE *res_loc)
1718 YYLTYPE loc = code_loc_gen(mod_loc, res_loc);
1719 rescue = NEW_RESBODY(0, 0, remove_begin(rescue), 0, &loc);
1720 loc.beg_pos = arg_loc->beg_pos;
1721 return NEW_RESCUE(arg, rescue, 0, &loc);
1724static NODE *add_block_exit(
struct parser_params *p, NODE *node);
1725static rb_node_exits_t *init_block_exit(
struct parser_params *p);
1726static rb_node_exits_t *allow_block_exit(
struct parser_params *p);
1727static void restore_block_exit(
struct parser_params *p, rb_node_exits_t *exits);
1728static void clear_block_exit(
struct parser_params *p,
bool error);
1733 next->in_rescue = outer->in_rescue == after_rescue ? after_rescue : def;
1737restore_defun(
struct parser_params *p, rb_node_def_temp_t *temp)
1741 p->ctxt.in_def = ctxt.in_def;
1742 p->ctxt.shareable_constant_value = ctxt.shareable_constant_value;
1743 p->ctxt.in_rescue = ctxt.in_rescue;
1744 p->max_numparam = temp->save.max_numparam;
1745 numparam_pop(p, temp->save.numparam_save);
1746 clear_block_exit(p,
true);
1750endless_method_name(
struct parser_params *p,
ID mid,
const YYLTYPE *loc)
1752 if (is_attrset_id(mid)) {
1753 yyerror1(loc,
"setter method cannot be defined in an endless method definition");
1755 token_info_drop(p,
"def", loc->beg_pos);
1758#define debug_token_line(p, name, line) do { \
1760 const char *const pcur = p->lex.pcur; \
1761 const char *const ptok = p->lex.ptok; \
1762 rb_parser_printf(p, name ":%d (%d: %"PRIdPTRDIFF"|%"PRIdPTRDIFF"|%"PRIdPTRDIFF")\n", \
1763 line, p->ruby_sourceline, \
1764 ptok - p->lex.pbeg, pcur - ptok, p->lex.pend - pcur); \
1768#define begin_definition(k, loc_beg, loc_end) \
1770 if (!(p->ctxt.in_class = (k)[0] != 0)) { \
1772 p->ctxt.cant_return = !p->ctxt.in_def; \
1773 p->ctxt.in_def = 0; \
1775 else if (p->ctxt.in_def) { \
1776 YYLTYPE loc = code_loc_gen(loc_beg, loc_end); \
1777 yyerror1(&loc, k " definition in method body"); \
1780 p->ctxt.cant_return = 1; \
1786# define ifndef_ripper(x) (x)
1787# define ifdef_ripper(r,x) (x)
1789# define ifndef_ripper(x)
1790# define ifdef_ripper(r,x) (r)
1793# define rb_warn0(fmt) WARN_CALL(WARN_ARGS(fmt, 1))
1794# define rb_warn1(fmt,a) WARN_CALL(WARN_ARGS(fmt, 2), (a))
1795# define rb_warn2(fmt,a,b) WARN_CALL(WARN_ARGS(fmt, 3), (a), (b))
1796# define rb_warn3(fmt,a,b,c) WARN_CALL(WARN_ARGS(fmt, 4), (a), (b), (c))
1797# define rb_warn4(fmt,a,b,c,d) WARN_CALL(WARN_ARGS(fmt, 5), (a), (b), (c), (d))
1798# define rb_warning0(fmt) WARNING_CALL(WARNING_ARGS(fmt, 1))
1799# define rb_warning1(fmt,a) WARNING_CALL(WARNING_ARGS(fmt, 2), (a))
1800# define rb_warning2(fmt,a,b) WARNING_CALL(WARNING_ARGS(fmt, 3), (a), (b))
1801# define rb_warning3(fmt,a,b,c) WARNING_CALL(WARNING_ARGS(fmt, 4), (a), (b), (c))
1802# define rb_warning4(fmt,a,b,c,d) WARNING_CALL(WARNING_ARGS(fmt, 5), (a), (b), (c), (d))
1803# define rb_warn0L(l,fmt) WARN_CALL(WARN_ARGS_L(l, fmt, 1))
1804# define rb_warn1L(l,fmt,a) WARN_CALL(WARN_ARGS_L(l, fmt, 2), (a))
1805# define rb_warn2L(l,fmt,a,b) WARN_CALL(WARN_ARGS_L(l, fmt, 3), (a), (b))
1806# define rb_warn3L(l,fmt,a,b,c) WARN_CALL(WARN_ARGS_L(l, fmt, 4), (a), (b), (c))
1807# define rb_warn4L(l,fmt,a,b,c,d) WARN_CALL(WARN_ARGS_L(l, fmt, 5), (a), (b), (c), (d))
1808# define rb_warning0L(l,fmt) WARNING_CALL(WARNING_ARGS_L(l, fmt, 1))
1809# define rb_warning1L(l,fmt,a) WARNING_CALL(WARNING_ARGS_L(l, fmt, 2), (a))
1810# define rb_warning2L(l,fmt,a,b) WARNING_CALL(WARNING_ARGS_L(l, fmt, 3), (a), (b))
1811# define rb_warning3L(l,fmt,a,b,c) WARNING_CALL(WARNING_ARGS_L(l, fmt, 4), (a), (b), (c))
1812# define rb_warning4L(l,fmt,a,b,c,d) WARNING_CALL(WARNING_ARGS_L(l, fmt, 5), (a), (b), (c), (d))
1814extern const ID id_warn, id_warning, id_gets, id_assoc;
1815# define ERR_MESG() STR_NEW2(mesg)
1816# define WARN_S_L(s,l) STR_NEW(s,l)
1817# define WARN_S(s) STR_NEW2(s)
1818# define WARN_I(i) INT2NUM(i)
1819# define WARN_ID(i) rb_id2str(i)
1820# define PRIsWARN PRIsVALUE
1821# define WARN_ARGS(fmt,n) p->value, id_warn, n, rb_usascii_str_new_lit(fmt)
1822# define WARN_ARGS_L(l,fmt,n) WARN_ARGS(fmt,n)
1823# ifdef HAVE_VA_ARGS_MACRO
1824# define WARN_CALL(...) rb_funcall(__VA_ARGS__)
1826# define WARN_CALL rb_funcall
1828# define WARNING_ARGS(fmt,n) p->value, id_warning, n, rb_usascii_str_new_lit(fmt)
1829# define WARNING_ARGS_L(l, fmt,n) WARNING_ARGS(fmt,n)
1830# ifdef HAVE_VA_ARGS_MACRO
1831# define WARNING_CALL(...) rb_funcall(__VA_ARGS__)
1833# define WARNING_CALL rb_funcall
1835# define compile_error ripper_compile_error
1837# define WARN_S_L(s,l) s
1840# define WARN_ID(i) rb_id2name(i)
1841# define PRIsWARN PRIsVALUE
1842# define WARN_ARGS(fmt,n) WARN_ARGS_L(p->ruby_sourceline,fmt,n)
1843# define WARN_ARGS_L(l,fmt,n) p->ruby_sourcefile, (l), (fmt)
1844# define WARN_CALL rb_compile_warn
1845# define WARNING_ARGS(fmt,n) WARN_ARGS(fmt,n)
1846# define WARNING_ARGS_L(l,fmt,n) WARN_ARGS_L(l,fmt,n)
1847# define WARNING_CALL rb_compile_warning
1848PRINTF_ARGS(
static void parser_compile_error(
struct parser_params*,
const rb_code_location_t *loc,
const char *fmt, ...), 3, 4);
1849# define compile_error(p, ...) parser_compile_error(p, NULL, __VA_ARGS__)
1852#define RNODE_EXITS(node) ((rb_node_exits_t*)(node))
1858 compile_error(p,
"unexpected null node");
1861 switch (nd_type(node)) {
1862 case NODE_BREAK:
case NODE_NEXT:
case NODE_REDO:
break;
1864 compile_error(p,
"add_block_exit: unexpected node: %s", parser_node_name(nd_type(node)));
1867 if (!p->ctxt.in_defined) {
1868 rb_node_exits_t *exits = p->exits;
1870 RNODE_EXITS(exits->nd_stts)->nd_chain = node;
1871 exits->nd_stts = node;
1877static rb_node_exits_t *
1880 rb_node_exits_t *old = p->exits;
1881 rb_node_exits_t *exits = NODE_NEW_INTERNAL(NODE_EXITS, rb_node_exits_t);
1882 exits->nd_chain = 0;
1883 exits->nd_stts = RNODE(exits);
1888static rb_node_exits_t *
1891 rb_node_exits_t *exits = p->exits;
1897restore_block_exit(
struct parser_params *p, rb_node_exits_t *exits)
1905 rb_node_exits_t *exits = p->exits;
1908 for (NODE *e = RNODE(exits); (e = RNODE_EXITS(e)->nd_chain) != 0; ) {
1909 switch (nd_type(e)) {
1911 yyerror1(&e->nd_loc,
"Invalid break");
1914 yyerror1(&e->nd_loc,
"Invalid next");
1917 yyerror1(&e->nd_loc,
"Invalid redo");
1920 yyerror1(&e->nd_loc,
"unexpected node");
1926 exits->nd_stts = RNODE(exits);
1927 exits->nd_chain = 0;
1930#define WARN_EOL(tok) \
1931 (looking_at_eol_p(p) ? \
1932 (void)rb_warning0("'" tok "' at the end of line without an expression") : \
1939 switch (nd_type(node)) {
1941 return RNODE_GASGN(node)->nd_value;
1943 return RNODE_IASGN(node)->nd_value;
1945 return RNODE_LASGN(node)->nd_value;
1947 return RNODE_DASGN(node)->nd_value;
1949 return RNODE_MASGN(node)->nd_value;
1951 return RNODE_CVASGN(node)->nd_value;
1953 return RNODE_CDECL(node)->nd_value;
1955 compile_error(p,
"get_nd_value: unexpected node: %s", parser_node_name(nd_type(node)));
1963 switch (nd_type(node)) {
1965 RNODE_CDECL(node)->nd_value = rhs;
1968 RNODE_GASGN(node)->nd_value = rhs;
1971 RNODE_IASGN(node)->nd_value = rhs;
1974 RNODE_LASGN(node)->nd_value = rhs;
1977 RNODE_DASGN(node)->nd_value = rhs;
1980 RNODE_MASGN(node)->nd_value = rhs;
1983 RNODE_CVASGN(node)->nd_value = rhs;
1986 compile_error(p,
"set_nd_value: unexpected node: %s", parser_node_name(nd_type(node)));
1994 switch (nd_type(node)) {
1996 return RNODE_CDECL(node)->nd_vid;
1998 return RNODE_GASGN(node)->nd_vid;
2000 return RNODE_IASGN(node)->nd_vid;
2002 return RNODE_LASGN(node)->nd_vid;
2004 return RNODE_DASGN(node)->nd_vid;
2006 return RNODE_CVASGN(node)->nd_vid;
2008 compile_error(p,
"get_nd_vid: unexpected node: %s", parser_node_name(nd_type(node)));
2016 switch (nd_type(node)) {
2018 return RNODE_CALL(node)->nd_args;
2020 return RNODE_OPCALL(node)->nd_args;
2022 return RNODE_FCALL(node)->nd_args;
2024 return RNODE_QCALL(node)->nd_args;
2026 return RNODE_SUPER(node)->nd_args;
2035 compile_error(p,
"get_nd_args: unexpected node: %s", parser_node_name(nd_type(node)));
2041djb2(
const uint8_t *str,
size_t len)
2043 st_index_t hash = 5381;
2045 for (
size_t i = 0; i <
len; i++) {
2046 hash = ((hash << 5) + hash) + str[i];
2053parser_memhash(
const void *
ptr,
long len)
2058#define PARSER_STRING_PTR(str) (str->ptr)
2059#define PARSER_STRING_LEN(str) (str->len)
2060#define PARSER_STRING_END(str) (&str->ptr[str->len])
2061#define STRING_SIZE(str) ((size_t)str->len + 1)
2062#define STRING_TERM_LEN(str) (1)
2063#define STRING_TERM_FILL(str) (str->ptr[str->len] = '\0')
2064#define PARSER_STRING_RESIZE_CAPA_TERM(p,str,capacity,termlen) do {\
2065 SIZED_REALLOC_N(str->ptr, char, (size_t)total + termlen, STRING_SIZE(str)); \
2068#define STRING_SET_LEN(str, n) do { \
2071#define PARSER_STRING_GETMEM(str, ptrvar, lenvar) \
2072 ((ptrvar) = str->ptr, \
2073 (lenvar) = str->len)
2076parser_string_char_at_end(
struct parser_params *p, rb_parser_string_t *str,
int when_empty)
2078 return PARSER_STRING_LEN(str) > 0 ? (
unsigned char)PARSER_STRING_END(str)[-1] : when_empty;
2081static rb_parser_string_t *
2082rb_parser_string_new(rb_parser_t *p,
const char *
ptr,
long len)
2084 rb_parser_string_t *str;
2087 rb_bug(
"negative string size (or size too big): %ld",
len);
2090 str =
xcalloc(1,
sizeof(rb_parser_string_t));
2094 memcpy(PARSER_STRING_PTR(str),
ptr,
len);
2096 STRING_SET_LEN(str,
len);
2097 STRING_TERM_FILL(str);
2101static rb_parser_string_t *
2102rb_parser_encoding_string_new(rb_parser_t *p,
const char *
ptr,
long len, rb_encoding *enc)
2104 rb_parser_string_t *str = rb_parser_string_new(p,
ptr,
len);
2105 str->coderange = RB_PARSER_ENC_CODERANGE_UNKNOWN;
2112rb_str_to_parser_string(rb_parser_t *p,
VALUE str)
2115 rb_parser_string_t *ret = rb_parser_encoding_string_new(p, RSTRING_PTR(str), RSTRING_LEN(str), rb_enc_get(str));
2121rb_parser_string_free(rb_parser_t *p, rb_parser_string_t *str)
2124 xfree(PARSER_STRING_PTR(str));
2130rb_parser_str_hash(rb_parser_string_t *str)
2132 return parser_memhash((
const void *)PARSER_STRING_PTR(str), PARSER_STRING_LEN(str));
2136rb_char_p_hash(
const char *c)
2138 return parser_memhash((
const void *)c, strlen(c));
2142rb_parser_str_capacity(rb_parser_string_t *str,
const int termlen)
2144 return PARSER_STRING_LEN(str);
2149rb_parser_string_end(rb_parser_string_t *str)
2151 return &str->ptr[str->len];
2156rb_parser_string_set_encoding(rb_parser_string_t *str, rb_encoding *enc)
2162rb_parser_str_get_encoding(rb_parser_string_t *str)
2169PARSER_ENCODING_IS_ASCII8BIT(
struct parser_params *p, rb_parser_string_t *str)
2171 return rb_parser_str_get_encoding(str) == rb_ascii8bit_encoding();
2176PARSER_ENC_CODERANGE(rb_parser_string_t *str)
2178 return str->coderange;
2182PARSER_ENC_CODERANGE_SET(rb_parser_string_t *str,
int coderange)
2184 str->coderange = coderange;
2188PARSER_ENCODING_CODERANGE_SET(rb_parser_string_t *str, rb_encoding *enc,
enum rb_parser_string_coderange_type cr)
2190 rb_parser_string_set_encoding(str, enc);
2191 PARSER_ENC_CODERANGE_SET(str, cr);
2195PARSER_ENC_CODERANGE_CLEAR(rb_parser_string_t *str)
2197 str->coderange = RB_PARSER_ENC_CODERANGE_UNKNOWN;
2201PARSER_ENC_CODERANGE_ASCIIONLY(rb_parser_string_t *str)
2203 return PARSER_ENC_CODERANGE(str) == RB_PARSER_ENC_CODERANGE_7BIT;
2207PARSER_ENC_CODERANGE_CLEAN_P(
int cr)
2209 return cr == RB_PARSER_ENC_CODERANGE_7BIT || cr == RB_PARSER_ENC_CODERANGE_VALID;
2213rb_parser_search_nonascii(
const char *p,
const char *e)
2217 for (; s < e; s++) {
2218 if (*s & 0x80)
return s;
2225rb_parser_coderange_scan(
struct parser_params *p,
const char *
ptr,
long len, rb_encoding *enc)
2227 const char *e =
ptr +
len;
2229 if (enc == rb_ascii8bit_encoding()) {
2231 ptr = rb_parser_search_nonascii(
ptr, e);
2232 return ptr ? RB_PARSER_ENC_CODERANGE_VALID : RB_PARSER_ENC_CODERANGE_7BIT;
2236 ptr = rb_parser_search_nonascii(
ptr, e);
2237 if (!
ptr)
return RB_PARSER_ENC_CODERANGE_7BIT;
2239 int ret = rb_enc_precise_mbclen(
ptr, e, enc);
2242 if (
ptr == e)
break;
2243 ptr = rb_parser_search_nonascii(
ptr, e);
2247 return RB_PARSER_ENC_CODERANGE_VALID;
2251rb_parser_enc_coderange_scan(
struct parser_params *p, rb_parser_string_t *str, rb_encoding *enc)
2253 return rb_parser_coderange_scan(p, PARSER_STRING_PTR(str), PARSER_STRING_LEN(str), enc);
2257rb_parser_enc_str_coderange(
struct parser_params *p, rb_parser_string_t *str)
2259 int cr = PARSER_ENC_CODERANGE(str);
2261 if (cr == RB_PARSER_ENC_CODERANGE_UNKNOWN) {
2262 cr = rb_parser_enc_coderange_scan(p, str, rb_parser_str_get_encoding(str));
2263 PARSER_ENC_CODERANGE_SET(str, cr);
2269static rb_parser_string_t *
2270rb_parser_enc_associate(
struct parser_params *p, rb_parser_string_t *str, rb_encoding *enc)
2272 if (rb_parser_str_get_encoding(str) == enc)
2274 if (!PARSER_ENC_CODERANGE_ASCIIONLY(str)) {
2275 PARSER_ENC_CODERANGE_CLEAR(str);
2277 rb_parser_string_set_encoding(str, enc);
2282rb_parser_is_ascii_string(
struct parser_params *p, rb_parser_string_t *str)
2284 return rb_parser_enc_str_coderange(p, str) == RB_PARSER_ENC_CODERANGE_7BIT;
2288rb_parser_enc_compatible(
struct parser_params *p, rb_parser_string_t *str1, rb_parser_string_t *str2)
2290 rb_encoding *enc1 = rb_parser_str_get_encoding(str1);
2291 rb_encoding *enc2 = rb_parser_str_get_encoding(str2);
2293 if (enc1 == NULL || enc2 == NULL)
2300 if (PARSER_STRING_LEN(str2) == 0)
2302 if (PARSER_STRING_LEN(str1) == 0)
2303 return rb_parser_is_ascii_string(p, str2) ? enc1 : enc2;
2307 cr1 = rb_parser_enc_str_coderange(p, str1);
2308 cr2 = rb_parser_enc_str_coderange(p, str2);
2311 if (cr1 == RB_PARSER_ENC_CODERANGE_7BIT)
return enc2;
2312 if (cr2 == RB_PARSER_ENC_CODERANGE_7BIT)
return enc1;
2315 if (cr2 == RB_PARSER_ENC_CODERANGE_7BIT) {
2319 if (cr1 == RB_PARSER_ENC_CODERANGE_7BIT) {
2327rb_parser_str_modify(rb_parser_string_t *str)
2329 PARSER_ENC_CODERANGE_CLEAR(str);
2333rb_parser_str_set_len(
struct parser_params *p, rb_parser_string_t *str,
long len)
2336 const int termlen = STRING_TERM_LEN(str);
2338 if (
len > (
capa = (
long)(rb_parser_str_capacity(str, termlen))) ||
len < 0) {
2339 rb_bug(
"probable buffer overflow: %ld for %ld",
len,
capa);
2342 int cr = PARSER_ENC_CODERANGE(str);
2343 if (cr == RB_PARSER_ENC_CODERANGE_UNKNOWN) {
2346 else if (
len > PARSER_STRING_LEN(str)) {
2347 PARSER_ENC_CODERANGE_SET(str, RB_PARSER_ENC_CODERANGE_UNKNOWN);
2349 else if (
len < PARSER_STRING_LEN(str)) {
2350 if (cr != RB_PARSER_ENC_CODERANGE_7BIT) {
2353 PARSER_ENC_CODERANGE_SET(str, RB_PARSER_ENC_CODERANGE_UNKNOWN);
2357 STRING_SET_LEN(str,
len);
2358 STRING_TERM_FILL(str);
2361static rb_parser_string_t *
2362rb_parser_str_buf_cat(
struct parser_params *p, rb_parser_string_t *str,
const char *
ptr,
long len)
2364 rb_parser_str_modify(str);
2365 if (
len == 0)
return 0;
2367 long total, olen,
off = -1;
2369 const int termlen = STRING_TERM_LEN(str);
2371 PARSER_STRING_GETMEM(str, sptr, olen);
2372 if (
ptr >= sptr &&
ptr <= sptr + olen) {
2376 if (olen > LONG_MAX -
len) {
2377 compile_error(p,
"string sizes too big");
2381 PARSER_STRING_RESIZE_CAPA_TERM(p, str, total, termlen);
2382 sptr = PARSER_STRING_PTR(str);
2386 memcpy(sptr + olen,
ptr,
len);
2387 STRING_SET_LEN(str, total);
2388 STRING_TERM_FILL(str);
2393#define parser_str_cat(str, ptr, len) rb_parser_str_buf_cat(p, str, ptr, len)
2394#define parser_str_cat_cstr(str, lit) rb_parser_str_buf_cat(p, str, lit, strlen(lit))
2396static rb_parser_string_t *
2397rb_parser_enc_cr_str_buf_cat(
struct parser_params *p, rb_parser_string_t *str,
const char *
ptr,
long len,
2398 rb_encoding *ptr_enc,
int ptr_cr,
int *ptr_cr_ret)
2401 rb_encoding *str_enc, *res_enc;
2403 str_enc = rb_parser_str_get_encoding(str);
2404 str_cr = PARSER_STRING_LEN(str) ? PARSER_ENC_CODERANGE(str) : RB_PARSER_ENC_CODERANGE_7BIT;
2406 if (str_enc == ptr_enc) {
2407 if (str_cr != RB_PARSER_ENC_CODERANGE_UNKNOWN && ptr_cr == RB_PARSER_ENC_CODERANGE_UNKNOWN) {
2408 ptr_cr = rb_parser_coderange_scan(p,
ptr,
len, ptr_enc);
2413 if (ptr_cr == RB_PARSER_ENC_CODERANGE_UNKNOWN) {
2414 ptr_cr = rb_parser_coderange_scan(p,
ptr,
len, ptr_enc);
2416 if (str_cr == RB_PARSER_ENC_CODERANGE_UNKNOWN) {
2417 if (str_enc == rb_ascii8bit_encoding() || ptr_cr != RB_PARSER_ENC_CODERANGE_7BIT) {
2418 str_cr = rb_parser_enc_str_coderange(p, str);
2423 *ptr_cr_ret = ptr_cr;
2425 if (str_enc != ptr_enc &&
2426 str_cr != RB_PARSER_ENC_CODERANGE_7BIT &&
2427 ptr_cr != RB_PARSER_ENC_CODERANGE_7BIT) {
2431 if (str_cr == RB_PARSER_ENC_CODERANGE_UNKNOWN) {
2433 res_cr = RB_PARSER_ENC_CODERANGE_UNKNOWN;
2435 else if (str_cr == RB_PARSER_ENC_CODERANGE_7BIT) {
2436 if (ptr_cr == RB_PARSER_ENC_CODERANGE_7BIT) {
2438 res_cr = RB_PARSER_ENC_CODERANGE_7BIT;
2445 else if (str_cr == RB_PARSER_ENC_CODERANGE_VALID) {
2447 if (PARSER_ENC_CODERANGE_CLEAN_P(ptr_cr))
2455 if (0 <
len) res_cr = RB_PARSER_ENC_CODERANGE_UNKNOWN;
2459 compile_error(p,
"negative string size (or size too big)");
2462 parser_str_cat(str,
ptr,
len);
2463 PARSER_ENCODING_CODERANGE_SET(str, res_enc, res_cr);
2467 compile_error(p,
"incompatible character encodings: %s and %s",
2468 rb_enc_name(str_enc), rb_enc_name(ptr_enc));
2472static rb_parser_string_t *
2473rb_parser_enc_str_buf_cat(
struct parser_params *p, rb_parser_string_t *str,
const char *
ptr,
long len,
2474 rb_encoding *ptr_enc)
2476 return rb_parser_enc_cr_str_buf_cat(p, str,
ptr,
len, ptr_enc, RB_PARSER_ENC_CODERANGE_UNKNOWN, NULL);
2479static rb_parser_string_t *
2480rb_parser_str_buf_append(
struct parser_params *p, rb_parser_string_t *str, rb_parser_string_t *str2)
2482 int str2_cr = rb_parser_enc_str_coderange(p, str2);
2484 rb_parser_enc_cr_str_buf_cat(p, str, PARSER_STRING_PTR(str2), PARSER_STRING_LEN(str2),
2485 rb_parser_str_get_encoding(str2), str2_cr, &str2_cr);
2487 PARSER_ENC_CODERANGE_SET(str2, str2_cr);
2492static rb_parser_string_t *
2493rb_parser_str_resize(
struct parser_params *p, rb_parser_string_t *str,
long len)
2496 rb_bug(
"negative string size (or size too big)");
2499 long slen = PARSER_STRING_LEN(str);
2501 if (slen >
len && PARSER_ENC_CODERANGE(str) != RB_PARSER_ENC_CODERANGE_7BIT) {
2502 PARSER_ENC_CODERANGE_CLEAR(str);
2507 const int termlen = STRING_TERM_LEN(str);
2510 SIZED_REALLOC_N(str->ptr,
char, (
size_t)
len + termlen, STRING_SIZE(str));
2512 else if (
len == slen)
return str;
2513 STRING_SET_LEN(str,
len);
2514 STRING_TERM_FILL(str);
2519# define PARSER_ENC_STRING_GETMEM(str, ptrvar, lenvar, encvar) \
2520 ((ptrvar) = str->ptr, \
2521 (lenvar) = str->len, \
2522 (encvar) = str->enc)
2525rb_parser_string_hash_cmp(rb_parser_string_t *str1, rb_parser_string_t *str2)
2528 const char *ptr1, *ptr2;
2529 rb_encoding *enc1, *enc2;
2531 PARSER_ENC_STRING_GETMEM(str1, ptr1, len1, enc1);
2532 PARSER_ENC_STRING_GETMEM(str2, ptr2, len2, enc2);
2534 return (len1 != len2 ||
2536 memcmp(ptr1, ptr2, len1) != 0);
2540rb_parser_ary_extend(rb_parser_t *p, rb_parser_ary_t *ary,
long len)
2543 if (ary->capa <
len) {
2545 ary->data = (rb_parser_ary_data *)
xrealloc(ary->data,
sizeof(rb_parser_ary_data) *
len);
2546 for (i = ary->len; i <
len; i++) {
2556static rb_parser_ary_t *
2557parser_ary_new_capa(rb_parser_t *p,
long len)
2560 rb_bug(
"negative array size (or size too big): %ld",
len);
2562 rb_parser_ary_t *ary =
xcalloc(1,
sizeof(rb_parser_ary_t));
2567 ary->data = (rb_parser_ary_data *)
xcalloc(
len,
sizeof(rb_parser_ary_data));
2576static rb_parser_ary_t *
2577rb_parser_ary_new_capa_for_script_line(rb_parser_t *p,
long len)
2579 rb_parser_ary_t *ary = parser_ary_new_capa(p,
len);
2580 ary->data_type = PARSER_ARY_DATA_SCRIPT_LINE;
2584static rb_parser_ary_t *
2585rb_parser_ary_new_capa_for_ast_token(rb_parser_t *p,
long len)
2587 rb_parser_ary_t *ary = parser_ary_new_capa(p,
len);
2588 ary->data_type = PARSER_ARY_DATA_AST_TOKEN;
2593static rb_parser_ary_t *
2594rb_parser_ary_new_capa_for_node(rb_parser_t *p,
long len)
2596 rb_parser_ary_t *ary = parser_ary_new_capa(p,
len);
2597 ary->data_type = PARSER_ARY_DATA_NODE;
2605static rb_parser_ary_t *
2606parser_ary_push(rb_parser_t *p, rb_parser_ary_t *ary, rb_parser_ary_data val)
2608 if (ary->len == ary->capa) {
2609 rb_parser_ary_extend(p, ary, ary->len == 0 ? 1 : ary->len * 2);
2611 ary->data[ary->len++] = val;
2616static rb_parser_ary_t *
2617rb_parser_ary_push_ast_token(rb_parser_t *p, rb_parser_ary_t *ary, rb_parser_ast_token_t *val)
2619 if (ary->data_type != PARSER_ARY_DATA_AST_TOKEN) {
2620 rb_bug(
"unexpected rb_parser_ary_data_type: %d", ary->data_type);
2622 return parser_ary_push(p, ary, val);
2625static rb_parser_ary_t *
2626rb_parser_ary_push_script_line(rb_parser_t *p, rb_parser_ary_t *ary, rb_parser_string_t *val)
2628 if (ary->data_type != PARSER_ARY_DATA_SCRIPT_LINE) {
2629 rb_bug(
"unexpected rb_parser_ary_data_type: %d", ary->data_type);
2631 return parser_ary_push(p, ary, val);
2635static rb_parser_ary_t *
2636rb_parser_ary_push_node(rb_parser_t *p, rb_parser_ary_t *ary, NODE *val)
2638 if (ary->data_type != PARSER_ARY_DATA_NODE) {
2639 rb_bug(
"unexpected rb_parser_ary_data_type: %d", ary->data_type);
2641 return parser_ary_push(p, ary, val);
2646rb_parser_ast_token_free(rb_parser_t *p, rb_parser_ast_token_t *token)
2649 rb_parser_string_free(p, token->str);
2654rb_parser_ary_free(rb_parser_t *p, rb_parser_ary_t *ary)
2656# define foreach_ary(ptr) \
2657 for (rb_parser_ary_data *ptr = ary->data, *const end_ary_data = ptr + ary->len; \
2658 ptr < end_ary_data; ptr++)
2659 switch (ary->data_type) {
2660 case PARSER_ARY_DATA_AST_TOKEN:
2661 foreach_ary(data) {rb_parser_ast_token_free(p, *data);}
2663 case PARSER_ARY_DATA_SCRIPT_LINE:
2664 foreach_ary(data) {rb_parser_string_free(p, *data);}
2666 case PARSER_ARY_DATA_NODE:
2670 rb_bug(
"unexpected rb_parser_ary_data_type: %d", ary->data_type);
2684# define YY_CAST(Type, Val) static_cast<Type> (Val)
2685# define YY_REINTERPRET_CAST(Type, Val) reinterpret_cast<Type> (Val)
2687# define YY_CAST(Type, Val) ((Type) (Val))
2688# define YY_REINTERPRET_CAST(Type, Val) ((Type) (Val))
2692# if defined __cplusplus
2693# if 201103L <= __cplusplus
2694# define YY_NULLPTR nullptr
2696# define YY_NULLPTR 0
2699# define YY_NULLPTR ((void*)0)
2707 YYSYMBOL_YYEMPTY = -2,
2709 YYSYMBOL_YYerror = 1,
2710 YYSYMBOL_YYUNDEF = 2,
2711 YYSYMBOL_keyword_class = 3,
2712 YYSYMBOL_keyword_module = 4,
2713 YYSYMBOL_keyword_def = 5,
2714 YYSYMBOL_keyword_undef = 6,
2715 YYSYMBOL_keyword_begin = 7,
2716 YYSYMBOL_keyword_rescue = 8,
2717 YYSYMBOL_keyword_ensure = 9,
2718 YYSYMBOL_keyword_end = 10,
2719 YYSYMBOL_keyword_if = 11,
2720 YYSYMBOL_keyword_unless = 12,
2721 YYSYMBOL_keyword_then = 13,
2722 YYSYMBOL_keyword_elsif = 14,
2723 YYSYMBOL_keyword_else = 15,
2724 YYSYMBOL_keyword_case = 16,
2725 YYSYMBOL_keyword_when = 17,
2726 YYSYMBOL_keyword_while = 18,
2727 YYSYMBOL_keyword_until = 19,
2728 YYSYMBOL_keyword_for = 20,
2729 YYSYMBOL_keyword_break = 21,
2730 YYSYMBOL_keyword_next = 22,
2731 YYSYMBOL_keyword_redo = 23,
2732 YYSYMBOL_keyword_retry = 24,
2733 YYSYMBOL_keyword_in = 25,
2734 YYSYMBOL_keyword_do = 26,
2735 YYSYMBOL_keyword_do_cond = 27,
2736 YYSYMBOL_keyword_do_block = 28,
2737 YYSYMBOL_keyword_do_LAMBDA = 29,
2738 YYSYMBOL_keyword_return = 30,
2739 YYSYMBOL_keyword_yield = 31,
2740 YYSYMBOL_keyword_super = 32,
2741 YYSYMBOL_keyword_self = 33,
2742 YYSYMBOL_keyword_nil = 34,
2743 YYSYMBOL_keyword_true = 35,
2744 YYSYMBOL_keyword_false = 36,
2745 YYSYMBOL_keyword_and = 37,
2746 YYSYMBOL_keyword_or = 38,
2747 YYSYMBOL_keyword_not = 39,
2748 YYSYMBOL_modifier_if = 40,
2749 YYSYMBOL_modifier_unless = 41,
2750 YYSYMBOL_modifier_while = 42,
2751 YYSYMBOL_modifier_until = 43,
2752 YYSYMBOL_modifier_rescue = 44,
2753 YYSYMBOL_keyword_alias = 45,
2754 YYSYMBOL_keyword_defined = 46,
2755 YYSYMBOL_keyword_BEGIN = 47,
2756 YYSYMBOL_keyword_END = 48,
2757 YYSYMBOL_keyword__LINE__ = 49,
2758 YYSYMBOL_keyword__FILE__ = 50,
2759 YYSYMBOL_keyword__ENCODING__ = 51,
2760 YYSYMBOL_tIDENTIFIER = 52,
2762 YYSYMBOL_tGVAR = 54,
2763 YYSYMBOL_tIVAR = 55,
2764 YYSYMBOL_tCONSTANT = 56,
2765 YYSYMBOL_tCVAR = 57,
2766 YYSYMBOL_tLABEL = 58,
2767 YYSYMBOL_tINTEGER = 59,
2768 YYSYMBOL_tFLOAT = 60,
2769 YYSYMBOL_tRATIONAL = 61,
2770 YYSYMBOL_tIMAGINARY = 62,
2771 YYSYMBOL_tCHAR = 63,
2772 YYSYMBOL_tNTH_REF = 64,
2773 YYSYMBOL_tBACK_REF = 65,
2774 YYSYMBOL_tSTRING_CONTENT = 66,
2775 YYSYMBOL_tREGEXP_END = 67,
2776 YYSYMBOL_tDUMNY_END = 68,
2778 YYSYMBOL_70_backslash_ = 70,
2780 YYSYMBOL_72_escaped_horizontal_tab_ = 72,
2781 YYSYMBOL_73_escaped_form_feed_ = 73,
2782 YYSYMBOL_74_escaped_carriage_return_ = 74,
2783 YYSYMBOL_75_escaped_vertical_tab_ = 75,
2784 YYSYMBOL_tUPLUS = 76,
2785 YYSYMBOL_tUMINUS = 77,
2793 YYSYMBOL_tANDOP = 85,
2794 YYSYMBOL_tOROP = 86,
2795 YYSYMBOL_tMATCH = 87,
2796 YYSYMBOL_tNMATCH = 88,
2797 YYSYMBOL_tDOT2 = 89,
2798 YYSYMBOL_tDOT3 = 90,
2799 YYSYMBOL_tBDOT2 = 91,
2800 YYSYMBOL_tBDOT3 = 92,
2801 YYSYMBOL_tAREF = 93,
2802 YYSYMBOL_tASET = 94,
2803 YYSYMBOL_tLSHFT = 95,
2804 YYSYMBOL_tRSHFT = 96,
2805 YYSYMBOL_tANDDOT = 97,
2806 YYSYMBOL_tCOLON2 = 98,
2807 YYSYMBOL_tCOLON3 = 99,
2808 YYSYMBOL_tOP_ASGN = 100,
2809 YYSYMBOL_tASSOC = 101,
2810 YYSYMBOL_tLPAREN = 102,
2811 YYSYMBOL_tLPAREN_ARG = 103,
2812 YYSYMBOL_tLBRACK = 104,
2813 YYSYMBOL_tLBRACE = 105,
2814 YYSYMBOL_tLBRACE_ARG = 106,
2815 YYSYMBOL_tSTAR = 107,
2816 YYSYMBOL_tDSTAR = 108,
2817 YYSYMBOL_tAMPER = 109,
2818 YYSYMBOL_tLAMBDA = 110,
2819 YYSYMBOL_tSYMBEG = 111,
2820 YYSYMBOL_tSTRING_BEG = 112,
2821 YYSYMBOL_tXSTRING_BEG = 113,
2822 YYSYMBOL_tREGEXP_BEG = 114,
2823 YYSYMBOL_tWORDS_BEG = 115,
2824 YYSYMBOL_tQWORDS_BEG = 116,
2825 YYSYMBOL_tSYMBOLS_BEG = 117,
2826 YYSYMBOL_tQSYMBOLS_BEG = 118,
2827 YYSYMBOL_tSTRING_END = 119,
2828 YYSYMBOL_tSTRING_DEND = 120,
2829 YYSYMBOL_tSTRING_DBEG = 121,
2830 YYSYMBOL_tSTRING_DVAR = 122,
2831 YYSYMBOL_tLAMBEG = 123,
2832 YYSYMBOL_tLABEL_END = 124,
2833 YYSYMBOL_tIGNORED_NL = 125,
2834 YYSYMBOL_tCOMMENT = 126,
2835 YYSYMBOL_tEMBDOC_BEG = 127,
2836 YYSYMBOL_tEMBDOC = 128,
2837 YYSYMBOL_tEMBDOC_END = 129,
2838 YYSYMBOL_tHEREDOC_BEG = 130,
2839 YYSYMBOL_tHEREDOC_END = 131,
2840 YYSYMBOL_k__END__ = 132,
2841 YYSYMBOL_tLOWEST = 133,
2842 YYSYMBOL_134_ = 134,
2843 YYSYMBOL_135_ = 135,
2844 YYSYMBOL_136_ = 136,
2845 YYSYMBOL_137_ = 137,
2846 YYSYMBOL_138_ = 138,
2847 YYSYMBOL_139_ = 139,
2848 YYSYMBOL_140_ = 140,
2849 YYSYMBOL_141_ = 141,
2850 YYSYMBOL_142_ = 142,
2851 YYSYMBOL_143_ = 143,
2852 YYSYMBOL_144_ = 144,
2853 YYSYMBOL_145_ = 145,
2854 YYSYMBOL_146_ = 146,
2855 YYSYMBOL_tUMINUS_NUM = 147,
2856 YYSYMBOL_148_ = 148,
2857 YYSYMBOL_149_ = 149,
2858 YYSYMBOL_tLAST_TOKEN = 150,
2859 YYSYMBOL_151_ = 151,
2860 YYSYMBOL_152_ = 152,
2861 YYSYMBOL_153_ = 153,
2862 YYSYMBOL_154_n_ = 154,
2863 YYSYMBOL_155_ = 155,
2864 YYSYMBOL_156_ = 156,
2865 YYSYMBOL_157_ = 157,
2866 YYSYMBOL_158_ = 158,
2867 YYSYMBOL_159_ = 159,
2868 YYSYMBOL_160_ = 160,
2869 YYSYMBOL_161_ = 161,
2870 YYSYMBOL_YYACCEPT = 162,
2871 YYSYMBOL_option_terms = 163,
2872 YYSYMBOL_compstmt_top_stmts = 164,
2873 YYSYMBOL_165_1 = 165,
2874 YYSYMBOL_program = 166,
2875 YYSYMBOL_top_stmts = 167,
2876 YYSYMBOL_top_stmt = 168,
2877 YYSYMBOL_block_open = 169,
2878 YYSYMBOL_begin_block = 170,
2879 YYSYMBOL_compstmt_stmts = 171,
2880 YYSYMBOL_172_2 = 172,
2881 YYSYMBOL_173_3 = 173,
2882 YYSYMBOL_bodystmt = 174,
2883 YYSYMBOL_175_4 = 175,
2884 YYSYMBOL_stmts = 176,
2885 YYSYMBOL_stmt_or_begin = 177,
2886 YYSYMBOL_178_5 = 178,
2887 YYSYMBOL_allow_exits = 179,
2888 YYSYMBOL_k_END = 180,
2889 YYSYMBOL_181_6 = 181,
2890 YYSYMBOL_stmt = 182,
2891 YYSYMBOL_asgn_mrhs = 183,
2892 YYSYMBOL_asgn_command_rhs = 184,
2893 YYSYMBOL_command_asgn = 185,
2894 YYSYMBOL_op_asgn_command_rhs = 186,
2895 YYSYMBOL_def_endless_method_endless_command = 187,
2896 YYSYMBOL_endless_command = 188,
2897 YYSYMBOL_option__n_ = 189,
2898 YYSYMBOL_command_rhs = 190,
2899 YYSYMBOL_expr = 191,
2900 YYSYMBOL_192_7 = 192,
2901 YYSYMBOL_193_8 = 193,
2902 YYSYMBOL_def_name = 194,
2903 YYSYMBOL_defn_head = 195,
2904 YYSYMBOL_196_9 = 196,
2905 YYSYMBOL_defs_head = 197,
2906 YYSYMBOL_value_expr_expr = 198,
2907 YYSYMBOL_expr_value = 199,
2908 YYSYMBOL_200_10 = 200,
2909 YYSYMBOL_201_11 = 201,
2910 YYSYMBOL_expr_value_do = 202,
2911 YYSYMBOL_command_call = 203,
2912 YYSYMBOL_value_expr_command_call = 204,
2913 YYSYMBOL_command_call_value = 205,
2914 YYSYMBOL_block_command = 206,
2915 YYSYMBOL_cmd_brace_block = 207,
2916 YYSYMBOL_fcall = 208,
2917 YYSYMBOL_command = 209,
2918 YYSYMBOL_mlhs = 210,
2919 YYSYMBOL_mlhs_inner = 211,
2920 YYSYMBOL_mlhs_basic = 212,
2921 YYSYMBOL_mlhs_items_mlhs_item = 213,
2922 YYSYMBOL_mlhs_item = 214,
2923 YYSYMBOL_mlhs_head = 215,
2924 YYSYMBOL_mlhs_node = 216,
2926 YYSYMBOL_cname = 218,
2927 YYSYMBOL_cpath = 219,
2928 YYSYMBOL_fname = 220,
2929 YYSYMBOL_fitem = 221,
2930 YYSYMBOL_undef_list = 222,
2931 YYSYMBOL_223_12 = 223,
2933 YYSYMBOL_reswords = 225,
2934 YYSYMBOL_asgn_arg_rhs = 226,
2936 YYSYMBOL_op_asgn_arg_rhs = 228,
2937 YYSYMBOL_range_expr_arg = 229,
2938 YYSYMBOL_def_endless_method_endless_arg = 230,
2939 YYSYMBOL_ternary = 231,
2940 YYSYMBOL_endless_arg = 232,
2941 YYSYMBOL_relop = 233,
2942 YYSYMBOL_rel_expr = 234,
2943 YYSYMBOL_lex_ctxt = 235,
2944 YYSYMBOL_begin_defined = 236,
2945 YYSYMBOL_after_rescue = 237,
2946 YYSYMBOL_value_expr_arg = 238,
2947 YYSYMBOL_arg_value = 239,
2948 YYSYMBOL_aref_args = 240,
2949 YYSYMBOL_arg_rhs = 241,
2950 YYSYMBOL_paren_args = 242,
2951 YYSYMBOL_opt_paren_args = 243,
2952 YYSYMBOL_opt_call_args = 244,
2953 YYSYMBOL_value_expr_command = 245,
2954 YYSYMBOL_call_args = 246,
2955 YYSYMBOL_247_13 = 247,
2956 YYSYMBOL_command_args = 248,
2957 YYSYMBOL_block_arg = 249,
2958 YYSYMBOL_opt_block_arg = 250,
2959 YYSYMBOL_args = 251,
2960 YYSYMBOL_arg_splat = 252,
2961 YYSYMBOL_mrhs_arg = 253,
2962 YYSYMBOL_mrhs = 254,
2963 YYSYMBOL_primary = 255,
2964 YYSYMBOL_256_14 = 256,
2965 YYSYMBOL_257_15 = 257,
2966 YYSYMBOL_258_16 = 258,
2967 YYSYMBOL_259_17 = 259,
2968 YYSYMBOL_260_18 = 260,
2969 YYSYMBOL_261_19 = 261,
2970 YYSYMBOL_262_20 = 262,
2971 YYSYMBOL_263_21 = 263,
2972 YYSYMBOL_264_22 = 264,
2973 YYSYMBOL_265_23 = 265,
2974 YYSYMBOL_266_24 = 266,
2975 YYSYMBOL_value_expr_primary = 267,
2976 YYSYMBOL_primary_value = 268,
2977 YYSYMBOL_k_begin = 269,
2978 YYSYMBOL_k_if = 270,
2979 YYSYMBOL_k_unless = 271,
2980 YYSYMBOL_k_while = 272,
2981 YYSYMBOL_k_until = 273,
2982 YYSYMBOL_k_case = 274,
2983 YYSYMBOL_k_for = 275,
2984 YYSYMBOL_k_class = 276,
2985 YYSYMBOL_k_module = 277,
2986 YYSYMBOL_k_def = 278,
2987 YYSYMBOL_k_do = 279,
2988 YYSYMBOL_k_do_block = 280,
2989 YYSYMBOL_k_rescue = 281,
2990 YYSYMBOL_k_ensure = 282,
2991 YYSYMBOL_k_when = 283,
2992 YYSYMBOL_k_else = 284,
2993 YYSYMBOL_k_elsif = 285,
2994 YYSYMBOL_k_end = 286,
2995 YYSYMBOL_k_return = 287,
2996 YYSYMBOL_k_return_arg = 288,
2997 YYSYMBOL_k_break_arg = 289,
2998 YYSYMBOL_k_next_arg = 290,
2999 YYSYMBOL_k_yield = 291,
3000 YYSYMBOL_then = 292,
3002 YYSYMBOL_if_tail = 294,
3003 YYSYMBOL_opt_else = 295,
3004 YYSYMBOL_for_var = 296,
3005 YYSYMBOL_f_marg = 297,
3006 YYSYMBOL_mlhs_items_f_marg = 298,
3007 YYSYMBOL_f_margs = 299,
3008 YYSYMBOL_f_rest_marg = 300,
3009 YYSYMBOL_f_any_kwrest = 301,
3010 YYSYMBOL_302_25 = 302,
3011 YYSYMBOL_f_eq = 303,
3012 YYSYMBOL_f_kw_primary_value = 304,
3013 YYSYMBOL_f_kwarg_primary_value = 305,
3014 YYSYMBOL_args_tail_basic_primary_value = 306,
3015 YYSYMBOL_block_args_tail = 307,
3016 YYSYMBOL_excessed_comma = 308,
3017 YYSYMBOL_f_opt_primary_value = 309,
3018 YYSYMBOL_f_opt_arg_primary_value = 310,
3019 YYSYMBOL_opt_args_tail_block_args_tail = 311,
3020 YYSYMBOL_block_param = 312,
3021 YYSYMBOL_opt_block_param_def = 313,
3022 YYSYMBOL_block_param_def = 314,
3023 YYSYMBOL_opt_block_param = 315,
3024 YYSYMBOL_opt_bv_decl = 316,
3025 YYSYMBOL_bv_decls = 317,
3026 YYSYMBOL_bvar = 318,
3027 YYSYMBOL_max_numparam = 319,
3028 YYSYMBOL_numparam = 320,
3029 YYSYMBOL_it_id = 321,
3030 YYSYMBOL_322_26 = 322,
3031 YYSYMBOL_323_27 = 323,
3032 YYSYMBOL_lambda = 324,
3033 YYSYMBOL_f_larglist = 325,
3034 YYSYMBOL_lambda_body = 326,
3035 YYSYMBOL_327_28 = 327,
3036 YYSYMBOL_do_block = 328,
3037 YYSYMBOL_block_call = 329,
3038 YYSYMBOL_method_call = 330,
3039 YYSYMBOL_brace_block = 331,
3040 YYSYMBOL_332_29 = 332,
3041 YYSYMBOL_brace_body = 333,
3042 YYSYMBOL_334_30 = 334,
3043 YYSYMBOL_do_body = 335,
3044 YYSYMBOL_case_args = 336,
3045 YYSYMBOL_case_body = 337,
3046 YYSYMBOL_cases = 338,
3047 YYSYMBOL_p_pvtbl = 339,
3048 YYSYMBOL_p_pktbl = 340,
3049 YYSYMBOL_p_in_kwarg = 341,
3050 YYSYMBOL_342_31 = 342,
3051 YYSYMBOL_p_case_body = 343,
3052 YYSYMBOL_p_cases = 344,
3053 YYSYMBOL_p_top_expr = 345,
3054 YYSYMBOL_p_top_expr_body = 346,
3055 YYSYMBOL_p_expr = 347,
3056 YYSYMBOL_p_as = 348,
3057 YYSYMBOL_349_32 = 349,
3058 YYSYMBOL_p_alt = 350,
3059 YYSYMBOL_p_lparen = 351,
3060 YYSYMBOL_p_lbracket = 352,
3061 YYSYMBOL_p_expr_basic = 353,
3062 YYSYMBOL_354_33 = 354,
3063 YYSYMBOL_p_args = 355,
3064 YYSYMBOL_p_args_head = 356,
3065 YYSYMBOL_p_args_tail = 357,
3066 YYSYMBOL_p_find = 358,
3067 YYSYMBOL_p_rest = 359,
3068 YYSYMBOL_p_args_post = 360,
3069 YYSYMBOL_p_arg = 361,
3070 YYSYMBOL_p_kwargs = 362,
3071 YYSYMBOL_p_kwarg = 363,
3072 YYSYMBOL_p_kw = 364,
3073 YYSYMBOL_p_kw_label = 365,
3074 YYSYMBOL_p_kwrest = 366,
3075 YYSYMBOL_p_kwnorest = 367,
3076 YYSYMBOL_p_any_kwrest = 368,
3077 YYSYMBOL_p_value = 369,
3078 YYSYMBOL_range_expr_p_primitive = 370,
3079 YYSYMBOL_p_primitive = 371,
3080 YYSYMBOL_p_variable = 372,
3081 YYSYMBOL_p_var_ref = 373,
3082 YYSYMBOL_p_expr_ref = 374,
3083 YYSYMBOL_p_const = 375,
3084 YYSYMBOL_opt_rescue = 376,
3085 YYSYMBOL_exc_list = 377,
3086 YYSYMBOL_exc_var = 378,
3087 YYSYMBOL_opt_ensure = 379,
3088 YYSYMBOL_literal = 380,
3089 YYSYMBOL_strings = 381,
3090 YYSYMBOL_string = 382,
3091 YYSYMBOL_string1 = 383,
3092 YYSYMBOL_xstring = 384,
3093 YYSYMBOL_regexp = 385,
3094 YYSYMBOL_nonempty_list__ = 386,
3095 YYSYMBOL_words_tWORDS_BEG_word_list = 387,
3096 YYSYMBOL_words = 388,
3097 YYSYMBOL_word_list = 389,
3098 YYSYMBOL_word = 390,
3099 YYSYMBOL_words_tSYMBOLS_BEG_symbol_list = 391,
3100 YYSYMBOL_symbols = 392,
3101 YYSYMBOL_symbol_list = 393,
3102 YYSYMBOL_words_tQWORDS_BEG_qword_list = 394,
3103 YYSYMBOL_qwords = 395,
3104 YYSYMBOL_words_tQSYMBOLS_BEG_qsym_list = 396,
3105 YYSYMBOL_qsymbols = 397,
3106 YYSYMBOL_qword_list = 398,
3107 YYSYMBOL_qsym_list = 399,
3108 YYSYMBOL_string_contents = 400,
3109 YYSYMBOL_xstring_contents = 401,
3110 YYSYMBOL_regexp_contents = 402,
3111 YYSYMBOL_string_content = 403,
3112 YYSYMBOL_404_34 = 404,
3113 YYSYMBOL_405_35 = 405,
3114 YYSYMBOL_406_36 = 406,
3115 YYSYMBOL_407_37 = 407,
3116 YYSYMBOL_408_38 = 408,
3117 YYSYMBOL_string_dend = 409,
3118 YYSYMBOL_string_dvar = 410,
3119 YYSYMBOL_symbol = 411,
3120 YYSYMBOL_ssym = 412,
3122 YYSYMBOL_dsym = 414,
3123 YYSYMBOL_numeric = 415,
3124 YYSYMBOL_simple_numeric = 416,
3125 YYSYMBOL_nonlocal_var = 417,
3126 YYSYMBOL_user_variable = 418,
3127 YYSYMBOL_keyword_variable = 419,
3128 YYSYMBOL_var_ref = 420,
3129 YYSYMBOL_var_lhs = 421,
3130 YYSYMBOL_backref = 422,
3131 YYSYMBOL_423_39 = 423,
3132 YYSYMBOL_superclass = 424,
3133 YYSYMBOL_f_opt_paren_args = 425,
3134 YYSYMBOL_f_paren_args = 426,
3135 YYSYMBOL_f_arglist = 427,
3136 YYSYMBOL_428_40 = 428,
3137 YYSYMBOL_f_kw_arg_value = 429,
3138 YYSYMBOL_f_kwarg_arg_value = 430,
3139 YYSYMBOL_args_tail_basic_arg_value = 431,
3140 YYSYMBOL_args_tail = 432,
3141 YYSYMBOL_f_opt_arg_value = 433,
3142 YYSYMBOL_f_opt_arg_arg_value = 434,
3143 YYSYMBOL_opt_args_tail_args_tail = 435,
3144 YYSYMBOL_f_args = 436,
3145 YYSYMBOL_args_forward = 437,
3146 YYSYMBOL_f_bad_arg = 438,
3147 YYSYMBOL_f_norm_arg = 439,
3148 YYSYMBOL_f_arg_asgn = 440,
3149 YYSYMBOL_f_arg_item = 441,
3150 YYSYMBOL_f_arg = 442,
3151 YYSYMBOL_f_label = 443,
3152 YYSYMBOL_kwrest_mark = 444,
3153 YYSYMBOL_f_no_kwarg = 445,
3154 YYSYMBOL_f_kwrest = 446,
3155 YYSYMBOL_restarg_mark = 447,
3156 YYSYMBOL_f_rest_arg = 448,
3157 YYSYMBOL_blkarg_mark = 449,
3158 YYSYMBOL_f_block_arg = 450,
3159 YYSYMBOL_opt_f_block_arg = 451,
3160 YYSYMBOL_value_expr_singleton_expr = 452,
3161 YYSYMBOL_singleton = 453,
3162 YYSYMBOL_singleton_expr = 454,
3163 YYSYMBOL_455_41 = 455,
3164 YYSYMBOL_assoc_list = 456,
3165 YYSYMBOL_assocs = 457,
3166 YYSYMBOL_assoc = 458,
3167 YYSYMBOL_operation2 = 459,
3168 YYSYMBOL_operation3 = 460,
3169 YYSYMBOL_dot_or_colon = 461,
3170 YYSYMBOL_call_op = 462,
3171 YYSYMBOL_call_op2 = 463,
3172 YYSYMBOL_rparen = 464,
3173 YYSYMBOL_rbracket = 465,
3174 YYSYMBOL_rbrace = 466,
3175 YYSYMBOL_trailer = 467,
3176 YYSYMBOL_term = 468,
3177 YYSYMBOL_terms = 469,
3180typedef enum yysymbol_kind_t yysymbol_kind_t;
3193#ifndef __PTRDIFF_MAX__
3195# if defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__
3206#ifdef __INT_LEAST8_MAX__
3207typedef __INT_LEAST8_TYPE__ yytype_int8;
3208#elif defined YY_STDINT_H
3209typedef int_least8_t yytype_int8;
3211typedef signed char yytype_int8;
3214#ifdef __INT_LEAST16_MAX__
3215typedef __INT_LEAST16_TYPE__ yytype_int16;
3216#elif defined YY_STDINT_H
3217typedef int_least16_t yytype_int16;
3219typedef short yytype_int16;
3228# undef UINT_LEAST8_MAX
3229# undef UINT_LEAST16_MAX
3230# define UINT_LEAST8_MAX 255
3231# define UINT_LEAST16_MAX 65535
3234#if defined __UINT_LEAST8_MAX__ && __UINT_LEAST8_MAX__ <= __INT_MAX__
3235typedef __UINT_LEAST8_TYPE__ yytype_uint8;
3236#elif (!defined __UINT_LEAST8_MAX__ && defined YY_STDINT_H \
3237 && UINT_LEAST8_MAX <= INT_MAX)
3238typedef uint_least8_t yytype_uint8;
3239#elif !defined __UINT_LEAST8_MAX__ && UCHAR_MAX <= INT_MAX
3240typedef unsigned char yytype_uint8;
3242typedef short yytype_uint8;
3245#if defined __UINT_LEAST16_MAX__ && __UINT_LEAST16_MAX__ <= __INT_MAX__
3246typedef __UINT_LEAST16_TYPE__ yytype_uint16;
3247#elif (!defined __UINT_LEAST16_MAX__ && defined YY_STDINT_H \
3248 && UINT_LEAST16_MAX <= INT_MAX)
3249typedef uint_least16_t yytype_uint16;
3250#elif !defined __UINT_LEAST16_MAX__ && USHRT_MAX <= INT_MAX
3251typedef unsigned short yytype_uint16;
3253typedef int yytype_uint16;
3257# if defined __PTRDIFF_TYPE__ && defined __PTRDIFF_MAX__
3258# define YYPTRDIFF_T __PTRDIFF_TYPE__
3259# define YYPTRDIFF_MAXIMUM __PTRDIFF_MAX__
3260# elif defined PTRDIFF_MAX
3264# define YYPTRDIFF_T ptrdiff_t
3265# define YYPTRDIFF_MAXIMUM PTRDIFF_MAX
3267# define YYPTRDIFF_T long
3268# define YYPTRDIFF_MAXIMUM LONG_MAX
3273# ifdef __SIZE_TYPE__
3274# define YYSIZE_T __SIZE_TYPE__
3275# elif defined size_t
3276# define YYSIZE_T size_t
3277# elif defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__
3279# define YYSIZE_T size_t
3281# define YYSIZE_T unsigned
3285#define YYSIZE_MAXIMUM \
3286 YY_CAST (YYPTRDIFF_T, \
3287 (YYPTRDIFF_MAXIMUM < YY_CAST (YYSIZE_T, -1) \
3288 ? YYPTRDIFF_MAXIMUM \
3289 : YY_CAST (YYSIZE_T, -1)))
3291#define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X))
3295typedef yytype_int16 yy_state_t;
3298typedef int yy_state_fast_t;
3301# if defined YYENABLE_NLS && YYENABLE_NLS
3303# include <libintl.h>
3304# define YY_(Msgid) dgettext ("bison-runtime", Msgid)
3308# define YY_(Msgid) Msgid
3313#ifndef YY_ATTRIBUTE_PURE
3314# if defined __GNUC__ && 2 < __GNUC__ + (96 <= __GNUC_MINOR__)
3315# define YY_ATTRIBUTE_PURE __attribute__ ((__pure__))
3317# define YY_ATTRIBUTE_PURE
3321#ifndef YY_ATTRIBUTE_UNUSED
3322# if defined __GNUC__ && 2 < __GNUC__ + (7 <= __GNUC_MINOR__)
3323# define YY_ATTRIBUTE_UNUSED __attribute__ ((__unused__))
3325# define YY_ATTRIBUTE_UNUSED
3330#if ! defined lint || defined __GNUC__
3331# define YY_USE(E) ((void) (E))
3337#if defined __GNUC__ && ! defined __ICC && 406 <= __GNUC__ * 100 + __GNUC_MINOR__
3338# if __GNUC__ * 100 + __GNUC_MINOR__ < 407
3339# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
3340 _Pragma ("GCC diagnostic push") \
3341 _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")
3343# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
3344 _Pragma ("GCC diagnostic push") \
3345 _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"") \
3346 _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
3348# define YY_IGNORE_MAYBE_UNINITIALIZED_END \
3349 _Pragma ("GCC diagnostic pop")
3351# define YY_INITIAL_VALUE(Value) Value
3353#ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
3354# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
3355# define YY_IGNORE_MAYBE_UNINITIALIZED_END
3357#ifndef YY_INITIAL_VALUE
3358# define YY_INITIAL_VALUE(Value)
3361#if defined __cplusplus && defined __GNUC__ && ! defined __ICC && 6 <= __GNUC__
3362# define YY_IGNORE_USELESS_CAST_BEGIN \
3363 _Pragma ("GCC diagnostic push") \
3364 _Pragma ("GCC diagnostic ignored \"-Wuseless-cast\"")
3365# define YY_IGNORE_USELESS_CAST_END \
3366 _Pragma ("GCC diagnostic pop")
3368#ifndef YY_IGNORE_USELESS_CAST_BEGIN
3369# define YY_IGNORE_USELESS_CAST_BEGIN
3370# define YY_IGNORE_USELESS_CAST_END
3374#define YY_ASSERT(E) ((void) (0 && (E)))
3380# ifdef YYSTACK_USE_ALLOCA
3381# if YYSTACK_USE_ALLOCA
3383# define YYSTACK_ALLOC __builtin_alloca
3384# elif defined __BUILTIN_VA_ARG_INCR
3387# define YYSTACK_ALLOC __alloca
3388# elif defined _MSC_VER
3390# define alloca _alloca
3392# define YYSTACK_ALLOC alloca
3393# if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS
3396# ifndef EXIT_SUCCESS
3397# define EXIT_SUCCESS 0
3404# ifdef YYSTACK_ALLOC
3406# define YYSTACK_FREE(Ptr) do { ; } while (0)
3407# ifndef YYSTACK_ALLOC_MAXIMUM
3412# define YYSTACK_ALLOC_MAXIMUM 4032
3415# define YYSTACK_ALLOC YYMALLOC
3416# define YYSTACK_FREE YYFREE
3417# ifndef YYSTACK_ALLOC_MAXIMUM
3418# define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
3420# if (defined __cplusplus && ! defined EXIT_SUCCESS \
3421 && ! ((defined YYMALLOC || defined malloc) \
3422 && (defined YYFREE || defined free)))
3424# ifndef EXIT_SUCCESS
3425# define EXIT_SUCCESS 0
3429# define YYMALLOC malloc
3430# if ! defined malloc && ! defined EXIT_SUCCESS
3431void *malloc (YYSIZE_T);
3436# if ! defined free && ! defined EXIT_SUCCESS
3443#if (! defined yyoverflow \
3444 && (! defined __cplusplus \
3445 || (defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL \
3446 && defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
3451 yy_state_t yyss_alloc;
3457# define YYSTACK_GAP_MAXIMUM (YYSIZEOF (union yyalloc) - 1)
3461# define YYSTACK_BYTES(N) \
3462 ((N) * (YYSIZEOF (yy_state_t) + YYSIZEOF (YYSTYPE) \
3463 + YYSIZEOF (YYLTYPE)) \
3464 + 2 * YYSTACK_GAP_MAXIMUM)
3466# define YYCOPY_NEEDED 1
3473# define YYSTACK_RELOCATE(Stack_alloc, Stack) \
3476 YYPTRDIFF_T yynewbytes; \
3477 YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
3478 Stack = &yyptr->Stack_alloc; \
3479 yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \
3480 yyptr += yynewbytes / YYSIZEOF (*yyptr); \
3486#if defined YYCOPY_NEEDED && YYCOPY_NEEDED
3490# if defined __GNUC__ && 1 < __GNUC__
3491# define YYCOPY(Dst, Src, Count) \
3492 __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
3494# define YYCOPY(Dst, Src, Count) \
3498 for (yyi = 0; yyi < (Count); yyi++) \
3499 (Dst)[yyi] = (Src)[yyi]; \
3512#define YYNTOKENS 162
3518#define YYNSTATES 1382
3521#define YYMAXUTOK 361
3526#define YYTRANSLATE(YYX) \
3527 (0 <= (YYX) && (YYX) <= YYMAXUTOK \
3528 ? YY_CAST (yysymbol_kind_t, yytranslate[YYX]) \
3533static const yytype_uint8 yytranslate[] =
3535 0, 2, 2, 2, 2, 2, 2, 2, 2, 72,
3536 154, 75, 73, 74, 2, 2, 2, 2, 2, 2,
3537 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
3538 2, 2, 161, 148, 2, 2, 2, 146, 141, 2,
3539 157, 158, 144, 142, 155, 143, 69, 145, 2, 2,
3540 2, 2, 2, 2, 2, 2, 2, 2, 136, 160,
3541 138, 134, 137, 135, 2, 2, 2, 2, 2, 2,
3542 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
3543 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
3544 2, 153, 70, 159, 140, 2, 156, 2, 2, 2,
3545 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
3546 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
3547 2, 2, 2, 151, 139, 152, 149, 2, 89, 90,
3548 91, 92, 76, 77, 78, 79, 95, 96, 84, 83,
3549 80, 81, 82, 87, 88, 93, 94, 98, 85, 86,
3550 97, 2, 2, 2, 2, 2, 2, 2, 2, 2,
3551 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
3552 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
3553 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
3554 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
3555 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
3556 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
3557 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
3558 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
3559 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
3560 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
3561 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
3562 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
3563 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
3564 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
3565 45, 46, 47, 48, 49, 50, 51, 52, 53, 54,
3566 55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
3567 65, 66, 67, 68, 71, 99, 100, 101, 102, 103,
3568 104, 105, 106, 107, 108, 109, 110, 111, 112, 113,
3569 114, 115, 116, 117, 118, 119, 120, 121, 122, 123,
3570 124, 125, 126, 127, 128, 129, 130, 131, 132, 133,
3576static const yytype_int16 yyrline[] =
3578 0, 3176, 3170, 3176, 3176, 3176, 3176, 3196, 3201, 3206,
3579 3213, 3218, 3225, 3227, 3245, 3241, 3246, 3245, 3257, 3254,
3580 3267, 3272, 3277, 3284, 3286, 3285, 3295, 3297, 3304, 3304,
3581 3309, 3314, 3322, 3331, 3338, 3344, 3350, 3361, 3372, 3381,
3582 3395, 3396, 3401, 3401, 3402, 3413, 3418, 3419, 3426, 3426,
3583 3427, 3427, 3427, 3427, 3427, 3427, 3427, 3427, 3427, 3428,
3584 3428, 3428, 3431, 3432, 3438, 3438, 3438, 3445, 3446, 3453,
3585 3456, 3457, 3462, 3467, 3472, 3478, 3477, 3493, 3492, 3507,
3586 3510, 3521, 3531, 3530, 3544, 3544, 3545, 3551, 3551, 3551,
3587 3558, 3559, 3562, 3562, 3565, 3566, 3573, 3581, 3581, 3581,
3588 3588, 3595, 3604, 3609, 3614, 3619, 3624, 3630, 3636, 3642,
3589 3648, 3656, 3666, 3667, 3674, 3675, 3682, 3687, 3692, 3697,
3590 3697, 3697, 3702, 3707, 3712, 3717, 3722, 3727, 3734, 3735,
3591 3742, 3747, 3755, 3755, 3760, 3765, 3765, 3771, 3776, 3781,
3592 3786, 3794, 3794, 3799, 3804, 3804, 3809, 3814, 3819, 3824,
3593 3832, 3840, 3843, 3848, 3853, 3860, 3860, 3860, 3861, 3866,
3594 3869, 3874, 3877, 3882, 3882, 3890, 3891, 3892, 3893, 3894,
3595 3895, 3896, 3897, 3898, 3899, 3900, 3901, 3902, 3903, 3904,
3596 3905, 3906, 3907, 3908, 3909, 3910, 3911, 3912, 3913, 3914,
3597 3915, 3916, 3917, 3918, 3919, 3922, 3922, 3922, 3923, 3923,
3598 3924, 3924, 3924, 3925, 3925, 3925, 3925, 3926, 3926, 3926,
3599 3926, 3927, 3927, 3927, 3928, 3928, 3928, 3928, 3929, 3929,
3600 3929, 3929, 3930, 3930, 3930, 3930, 3931, 3931, 3931, 3931,
3601 3932, 3932, 3932, 3932, 3933, 3933, 3936, 3936, 3937, 3937,
3602 3937, 3937, 3937, 3937, 3937, 3937, 3937, 3938, 3938, 3938,
3603 3938, 3938, 3938, 3938, 3939, 3944, 3949, 3954, 3959, 3964,
3604 3969, 3974, 3979, 3984, 3989, 3994, 3999, 4004, 4005, 4010,
3605 4015, 4020, 4025, 4030, 4035, 4040, 4045, 4050, 4055, 4060,
3606 4067, 4067, 4067, 4068, 4069, 4072, 4081, 4082, 4088, 4095,
3607 4096, 4097, 4098, 4101, 4106, 4114, 4120, 4127, 4134, 4134,
3608 4137, 4138, 4139, 4144, 4151, 4156, 4165, 4170, 4180, 4192,
3609 4193, 4199, 4200, 4201, 4202, 4207, 4214, 4214, 4219, 4224,
3610 4229, 4235, 4241, 4245, 4245, 4283, 4288, 4296, 4301, 4309,
3611 4314, 4319, 4324, 4332, 4337, 4346, 4347, 4351, 4356, 4361,
3612 4379, 4379, 4379, 4379, 4379, 4379, 4379, 4379, 4380, 4381,
3613 4382, 4388, 4387, 4400, 4400, 4406, 4412, 4417, 4422, 4427,
3614 4433, 4438, 4443, 4448, 4453, 4460, 4465, 4470, 4475, 4476,
3615 4482, 4484, 4496, 4505, 4514, 4523, 4522, 4537, 4536, 4549,
3616 4557, 4557, 4558, 4602, 4601, 4625, 4624, 4645, 4644, 4664,
3617 4662, 4679, 4677, 4692, 4697, 4702, 4707, 4722, 4722, 4725,
3618 4732, 4750, 4757, 4765, 4773, 4780, 4788, 4797, 4806, 4814,
3619 4821, 4828, 4836, 4843, 4849, 4864, 4871, 4876, 4882, 4889,
3620 4895, 4901, 4907, 4914, 4915, 4916, 4919, 4920, 4923, 4925,
3621 4934, 4935, 4942, 4943, 4946, 4951, 4959, 4959, 4959, 4964,
3622 4969, 4974, 4979, 4986, 4992, 4999, 5000, 5007, 5007, 5009,
3623 5009, 5009, 5009, 5009, 5009, 5009, 5009, 5009, 5012, 5020,
3624 5020, 5020, 5020, 5020, 5020, 5025, 5030, 5035, 5040, 5045,
3625 5051, 5056, 5061, 5066, 5071, 5076, 5081, 5086, 5091, 5098,
3626 5099, 5105, 5115, 5119, 5122, 5127, 5134, 5136, 5140, 5145,
3627 5148, 5154, 5159, 5166, 5172, 5165, 5199, 5206, 5215, 5222,
3628 5221, 5232, 5240, 5246, 5256, 5262, 5267, 5275, 5282, 5293,
3629 5299, 5304, 5310, 5320, 5325, 5333, 5339, 5347, 5349, 5364,
3630 5364, 5385, 5391, 5396, 5402, 5410, 5419, 5420, 5423, 5424,
3631 5426, 5439, 5446, 5454, 5455, 5458, 5459, 5465, 5473, 5474,
3632 5480, 5486, 5491, 5496, 5503, 5506, 5513, 5517, 5516, 5529,
3633 5532, 5539, 5546, 5547, 5548, 5555, 5562, 5569, 5575, 5582,
3634 5589, 5596, 5602, 5607, 5612, 5619, 5618, 5629, 5635, 5643,
3635 5649, 5654, 5659, 5664, 5669, 5672, 5673, 5680, 5685, 5692,
3636 5700, 5706, 5713, 5714, 5721, 5728, 5733, 5738, 5743, 5750,
3637 5752, 5759, 5765, 5777, 5778, 5793, 5798, 5805, 5811, 5812,
3638 5819, 5820, 5820, 5820, 5820, 5820, 5820, 5820, 5821, 5822,
3639 5823, 5826, 5826, 5826, 5826, 5826, 5826, 5826, 5826, 5827,
3640 5832, 5835, 5843, 5855, 5862, 5869, 5874, 5879, 5887, 5907,
3641 5910, 5915, 5919, 5922, 5927, 5930, 5937, 5940, 5941, 5944,
3642 5956, 5957, 5958, 5965, 5978, 5990, 5997, 5997, 5997, 5997,
3643 6001, 6005, 6012, 6014, 6021, 6021, 6025, 6029, 6036, 6036,
3644 6039, 6039, 6043, 6047, 6055, 6059, 6067, 6071, 6079, 6083,
3645 6091, 6095, 6121, 6124, 6123, 6138, 6146, 6150, 6154, 6158,
3646 6174, 6175, 6178, 6183, 6186, 6187, 6190, 6206, 6207, 6210,
3647 6218, 6219, 6227, 6228, 6229, 6230, 6233, 6234, 6235, 6238,
3648 6238, 6239, 6242, 6243, 6244, 6245, 6246, 6247, 6248, 6251,
3649 6261, 6268, 6268, 6275, 6276, 6280, 6279, 6289, 6292, 6293,
3650 6302, 6312, 6313, 6313, 6330, 6330, 6330, 6330, 6330, 6330,
3651 6330, 6330, 6330, 6331, 6348, 6348, 6348, 6348, 6348, 6348,
3652 6353, 6358, 6363, 6368, 6373, 6378, 6383, 6388, 6393, 6398,
3653 6403, 6408, 6413, 6419, 6426, 6433, 6442, 6451, 6460, 6471,
3654 6472, 6482, 6489, 6494, 6513, 6515, 6526, 6546, 6547, 6550,
3655 6556, 6562, 6570, 6571, 6574, 6580, 6588, 6589, 6592, 6598,
3656 6606, 6611, 6615, 6615, 6645, 6647, 6646, 6659, 6660, 6667,
3657 6669, 6692, 6697, 6702, 6709, 6715, 6720, 6733, 6733, 6733,
3658 6734, 6737, 6738, 6739, 6742, 6743, 6746, 6747, 6750, 6751,
3659 6754, 6757, 6760, 6763, 6764, 6767, 6775, 6782, 6783, 6787
3664#define YY_ACCESSING_SYMBOL(State) YY_CAST (yysymbol_kind_t, yystos[State])
3669static const char *yysymbol_name (yysymbol_kind_t yysymbol) YY_ATTRIBUTE_UNUSED;
3673static const char *
const yytname[] =
3675 "\"end-of-input\"",
"error",
"\"invalid token\"",
"\"'class'\"",
3676 "\"'module'\"",
"\"'def'\"",
"\"'undef'\"",
"\"'begin'\"",
3677 "\"'rescue'\"",
"\"'ensure'\"",
"\"'end'\"",
"\"'if'\"",
"\"'unless'\"",
3678 "\"'then'\"",
"\"'elsif'\"",
"\"'else'\"",
"\"'case'\"",
"\"'when'\"",
3679 "\"'while'\"",
"\"'until'\"",
"\"'for'\"",
"\"'break'\"",
"\"'next'\"",
3680 "\"'redo'\"",
"\"'retry'\"",
"\"'in'\"",
"\"'do'\"",
3681 "\"'do' for condition\"",
"\"'do' for block\"",
"\"'do' for lambda\"",
3682 "\"'return'\"",
"\"'yield'\"",
"\"'super'\"",
"\"'self'\"",
"\"'nil'\"",
3683 "\"'true'\"",
"\"'false'\"",
"\"'and'\"",
"\"'or'\"",
"\"'not'\"",
3684 "\"'if' modifier\"",
"\"'unless' modifier\"",
"\"'while' modifier\"",
3685 "\"'until' modifier\"",
"\"'rescue' modifier\"",
"\"'alias'\"",
3686 "\"'defined?'\"",
"\"'BEGIN'\"",
"\"'END'\"",
"\"'__LINE__'\"",
3687 "\"'__FILE__'\"",
"\"'__ENCODING__'\"",
"\"local variable or method\"",
3688 "\"method\"",
"\"global variable\"",
"\"instance variable\"",
3689 "\"constant\"",
"\"class variable\"",
"\"label\"",
"\"integer literal\"",
3690 "\"float literal\"",
"\"rational literal\"",
"\"imaginary literal\"",
3691 "\"char literal\"",
"\"numbered reference\"",
"\"back reference\"",
3692 "\"literal content\"",
"tREGEXP_END",
"\"dummy end\"",
"'.'",
3693 "\"backslash\"",
"\"escaped space\"",
"\"escaped horizontal tab\"",
3694 "\"escaped form feed\"",
"\"escaped carriage return\"",
3695 "\"escaped vertical tab\"",
"\"unary+\"",
"\"unary-\"",
"\"**\"",
3696 "\"<=>\"",
"\"==\"",
"\"===\"",
"\"!=\"",
"\">=\"",
"\"<=\"",
"\"&&\"",
3697 "\"||\"",
"\"=~\"",
"\"!~\"",
"\"..\"",
"\"...\"",
"\"(..\"",
"\"(...\"",
3698 "\"[]\"",
"\"[]=\"",
"\"<<\"",
"\">>\"",
"\"&.\"",
"\"::\"",
3699 "\":: at EXPR_BEG\"",
"\"operator-assignment\"",
"\"=>\"",
"\"(\"",
3700 "\"( arg\"",
"\"[\"",
"\"{\"",
"\"{ arg\"",
"\"*\"",
"\"**arg\"",
3701 "\"&\"",
"\"->\"",
"\"symbol literal\"",
"\"string literal\"",
3702 "\"backtick literal\"",
"\"regexp literal\"",
"\"word list\"",
3703 "\"verbatim word list\"",
"\"symbol list\"",
"\"verbatim symbol list\"",
3704 "\"terminator\"",
"\"'}'\"",
"\"'#{'\"",
"tSTRING_DVAR",
"tLAMBEG",
3705 "tLABEL_END",
"tIGNORED_NL",
"tCOMMENT",
"tEMBDOC_BEG",
"tEMBDOC",
3706 "tEMBDOC_END",
"tHEREDOC_BEG",
"tHEREDOC_END",
"k__END__",
"tLOWEST",
3707 "'='",
"'?'",
"':'",
"'>'",
"'<'",
"'|'",
"'^'",
"'&'",
"'+'",
"'-'",
3708 "'*'",
"'/'",
"'%'",
"tUMINUS_NUM",
"'!'",
"'~'",
"tLAST_TOKEN",
"'{'",
3709 "'}'",
"'['",
"'\\n'",
"','",
"'`'",
"'('",
"')'",
"']'",
"';'",
"' '",
3710 "$accept",
"option_terms",
"compstmt_top_stmts",
"$@1",
"program",
3711 "top_stmts",
"top_stmt",
"block_open",
"begin_block",
"compstmt_stmts",
3712 "$@2",
"$@3",
"bodystmt",
"$@4",
"stmts",
"stmt_or_begin",
"$@5",
3713 "allow_exits",
"k_END",
"$@6",
"stmt",
"asgn_mrhs",
"asgn_command_rhs",
3714 "command_asgn",
"op_asgn_command_rhs",
3715 "def_endless_method_endless_command",
"endless_command",
"option_'\\n'",
3716 "command_rhs",
"expr",
"$@7",
"$@8",
"def_name",
"defn_head",
"$@9",
3717 "defs_head",
"value_expr_expr",
"expr_value",
"$@10",
"$@11",
3718 "expr_value_do",
"command_call",
"value_expr_command_call",
3719 "command_call_value",
"block_command",
"cmd_brace_block",
"fcall",
3720 "command",
"mlhs",
"mlhs_inner",
"mlhs_basic",
"mlhs_items_mlhs_item",
3721 "mlhs_item",
"mlhs_head",
"mlhs_node",
"lhs",
"cname",
"cpath",
"fname",
3722 "fitem",
"undef_list",
"$@12",
"op",
"reswords",
"asgn_arg_rhs",
"arg",
3723 "op_asgn_arg_rhs",
"range_expr_arg",
"def_endless_method_endless_arg",
3724 "ternary",
"endless_arg",
"relop",
"rel_expr",
"lex_ctxt",
3725 "begin_defined",
"after_rescue",
"value_expr_arg",
"arg_value",
3726 "aref_args",
"arg_rhs",
"paren_args",
"opt_paren_args",
"opt_call_args",
3727 "value_expr_command",
"call_args",
"$@13",
"command_args",
"block_arg",
3728 "opt_block_arg",
"args",
"arg_splat",
"mrhs_arg",
"mrhs",
"primary",
3729 "$@14",
"$@15",
"@16",
"@17",
"$@18",
"$@19",
"$@20",
"$@21",
"$@22",
3730 "$@23",
"$@24",
"value_expr_primary",
"primary_value",
"k_begin",
"k_if",
3731 "k_unless",
"k_while",
"k_until",
"k_case",
"k_for",
"k_class",
3732 "k_module",
"k_def",
"k_do",
"k_do_block",
"k_rescue",
"k_ensure",
3733 "k_when",
"k_else",
"k_elsif",
"k_end",
"k_return",
"k_return_arg",
3734 "k_break_arg",
"k_next_arg",
"k_yield",
"then",
"do",
"if_tail",
3735 "opt_else",
"for_var",
"f_marg",
"mlhs_items_f_marg",
"f_margs",
3736 "f_rest_marg",
"f_any_kwrest",
"$@25",
"f_eq",
"f_kw_primary_value",
3737 "f_kwarg_primary_value",
"args_tail_basic_primary_value",
3738 "block_args_tail",
"excessed_comma",
"f_opt_primary_value",
3739 "f_opt_arg_primary_value",
"opt_args_tail_block_args_tail",
3740 "block_param",
"opt_block_param_def",
"block_param_def",
3741 "opt_block_param",
"opt_bv_decl",
"bv_decls",
"bvar",
"max_numparam",
3742 "numparam",
"it_id",
"@26",
"$@27",
"lambda",
"f_larglist",
3743 "lambda_body",
"$@28",
"do_block",
"block_call",
"method_call",
3744 "brace_block",
"@29",
"brace_body",
"@30",
"do_body",
"case_args",
3745 "case_body",
"cases",
"p_pvtbl",
"p_pktbl",
"p_in_kwarg",
"$@31",
3746 "p_case_body",
"p_cases",
"p_top_expr",
"p_top_expr_body",
"p_expr",
3747 "p_as",
"$@32",
"p_alt",
"p_lparen",
"p_lbracket",
"p_expr_basic",
3748 "$@33",
"p_args",
"p_args_head",
"p_args_tail",
"p_find",
"p_rest",
3749 "p_args_post",
"p_arg",
"p_kwargs",
"p_kwarg",
"p_kw",
"p_kw_label",
3750 "p_kwrest",
"p_kwnorest",
"p_any_kwrest",
"p_value",
3751 "range_expr_p_primitive",
"p_primitive",
"p_variable",
"p_var_ref",
3752 "p_expr_ref",
"p_const",
"opt_rescue",
"exc_list",
"exc_var",
3753 "opt_ensure",
"literal",
"strings",
"string",
"string1",
"xstring",
3754 "regexp",
"nonempty_list_' '",
"words_tWORDS_BEG_word_list",
"words",
3755 "word_list",
"word",
"words_tSYMBOLS_BEG_symbol_list",
"symbols",
3756 "symbol_list",
"words_tQWORDS_BEG_qword_list",
"qwords",
3757 "words_tQSYMBOLS_BEG_qsym_list",
"qsymbols",
"qword_list",
"qsym_list",
3758 "string_contents",
"xstring_contents",
"regexp_contents",
3759 "string_content",
"@34",
"@35",
"@36",
"@37",
"@38",
"string_dend",
3760 "string_dvar",
"symbol",
"ssym",
"sym",
"dsym",
"numeric",
3761 "simple_numeric",
"nonlocal_var",
"user_variable",
"keyword_variable",
3762 "var_ref",
"var_lhs",
"backref",
"$@39",
"superclass",
3763 "f_opt_paren_args",
"f_paren_args",
"f_arglist",
"@40",
"f_kw_arg_value",
3764 "f_kwarg_arg_value",
"args_tail_basic_arg_value",
"args_tail",
3765 "f_opt_arg_value",
"f_opt_arg_arg_value",
"opt_args_tail_args_tail",
3766 "f_args",
"args_forward",
"f_bad_arg",
"f_norm_arg",
"f_arg_asgn",
3767 "f_arg_item",
"f_arg",
"f_label",
"kwrest_mark",
"f_no_kwarg",
3768 "f_kwrest",
"restarg_mark",
"f_rest_arg",
"blkarg_mark",
"f_block_arg",
3769 "opt_f_block_arg",
"value_expr_singleton_expr",
"singleton",
3770 "singleton_expr",
"$@41",
"assoc_list",
"assocs",
"assoc",
"operation2",
3771 "operation3",
"dot_or_colon",
"call_op",
"call_op2",
"rparen",
3772 "rbracket",
"rbrace",
"trailer",
"term",
"terms",
"none", YY_NULLPTR
3776yysymbol_name (yysymbol_kind_t yysymbol)
3778 return yytname[yysymbol];
3782#define YYPACT_NINF (-1161)
3784#define yypact_value_is_default(Yyn) \
3785 ((Yyn) == YYPACT_NINF)
3787#define YYTABLE_NINF (-820)
3789#define yytable_value_is_error(Yyn) \
3790 ((Yyn) == YYTABLE_NINF)
3794static const yytype_int16 yypact[] =
3796 -1161, 6233, 139, -1161, -1161, -1161, -1161, 11316, -1161, -1161,
3797 -1161, -1161, -1161, -1161, -1161, 8073, 8229, -1161, -1161, -1161,
3798 -1161, 7293, -1161, -1161, -1161, -1161, 259, 11162, 37, 24,
3799 -1161, -1161, -1161, -1161, 6669, 7449, -1161, -1161, 6825, -1161,
3800 -1161, -1161, -1161, -1161, -1161, -1161, -1161, 13813, 13813, 13813,
3801 13813, 154, 10075, 10233, 12733, 12973, 5330, -1161, 11008, -1161,
3802 -1161, -1161, 216, 216, 216, 216, 1176, 13933, 13813, -1161,
3803 113, -1161, -1161, 1327, -1161, -1161, -1161, -1161, -1161, 770,
3804 481, 481, -1161, -1161, 372, 225, 281, -1161, 246, 14533,
3805 -1161, 353, -1161, 2214, -1161, -1161, -1161, -1161, 83, 519,
3806 -1161, 573, -1161, 12133, 12133, -1161, -1161, 10695, 14651, 14769,
3807 14887, 10853, 8385, 12253, 12253, 12253, 7917, -1161, 588, 75,
3808 -1161, -1161, 390, -1161, -1161, -1161, -1161, -1161, -1161, -1161,
3809 -1161, -1161, -1161, -1161, -1161, -1161, -1161, -1161, -1161, -1161,
3810 302, 381, -1161, 463, 443, -1161, -1161, -1161, -1161, -1161,
3811 -1161, -1161, -1161, -1161, -1161, -1161, -1161, -1161, -1161, -1161,
3812 -1161, -1161, -1161, -1161, -1161, -1161, -1161, -1161, -1161, -1161,
3813 -1161, -1161, -1161, -1161, -1161, -1161, -1161, -1161, -1161, -1161,
3814 -1161, -1161, -1161, -1161, -1161, -1161, -1161, -1161, -1161, -1161,
3815 -1161, -1161, -1161, -1161, -1161, -1161, -1161, -1161, -1161, -1161,
3816 -1161, -1161, -1161, -1161, -1161, -1161, -1161, -1161, -1161, -1161,
3817 -1161, -1161, -1161, -1161, -1161, -1161, -1161, -1161, -1161, -1161,
3818 -1161, -1161, -1161, 435, -1161, -1161, -1161, -1161, -1161, -1161,
3819 12373, -1161, 12253, -1161, -1161, 11874, 14053, 836, -1161, 439,
3820 -1161, 10391, -1161, -1161, -1161, -1161, -1161, 475, 484, 619,
3821 10233, 13813, 481, 481, 372, 591, -1161, 604, -1161, 524,
3822 46, 48, 632, 320, 666, 6639, 6639, 479, -1161, 10075,
3823 625, 113, -1161, 1327, 37, 643, -1161, -1161, 13813, 13813,
3824 13813, -1161, 6483, -1161, 693, 637, 662, -1161, 684, -1161,
3825 -1161, 693, 647, 684, -1161, 37, 746, 1176, 15005, 665,
3826 665, 692, -1161, 689, 721, 729, 731, -1161, -1161, 810,
3827 -1161, -1161, 960, 1072, 814, -1161, 696, 696, 696, 696,
3828 781, -1161, -1161, 780, -1161, -1161, -1161, -1161, -1161, 6385,
3829 732, 12133, 12133, 12133, 12133, -1161, 14053, 14053, 1850, 753,
3830 762, -1161, 1850, -1161, 772, -1161, -1161, -1161, -1161, 802,
3831 -1161, -1161, -1161, -1161, -1161, -1161, -1161, 10075, 11617, 758,
3832 -1161, -1161, 13813, 13813, 13813, 13813, 13813, -1161, -1161, 13813,
3833 13813, 13813, 13813, 13813, 13813, 13813, 13813, -1161, 13813, -1161,
3834 -1161, 13813, 13813, 13813, 13813, 13813, 13813, 13813, 13813, 13813,
3835 13813, -1161, -1161, 15285, 12253, 15383, 475, 9011, -1161, 770,
3836 -1161, 121, 121, 12133, 9923, 9923, -1161, 113, 761, 871,
3837 -1161, -1161, 859, 905, 92, 108, 111, 638, 653, 12133,
3838 411, -1161, 801, 894, -1161, -1161, -1161, -1161, 66, 86,
3839 341, 409, 495, 505, 645, 703, 745, -1161, -1161, -1161,
3840 -1161, -1161, 825, -1161, 13813, -1161, -1161, -1161, -1161, -1161,
3841 795, 798, -1161, -1161, 11735, -1161, -1161, -1161, 4452, -1161,
3842 -1161, -1161, -1161, -1161, 13813, 37, -1161, 800, 37, 803,
3843 -1161, -1161, 784, 135, -1161, -1161, -1161, -1161, -1161, 11316,
3844 -1161, -1161, 13813, 812, 343, 828, 835, -1161, 15481, 12253,
3845 15579, -1161, -1161, -1161, 24, 37, -1161, -1161, 5763, 816,
3846 818, -1161, -1161, -1161, 712, 13813, -1161, 12733, -1161, -1161,
3847 12973, -1161, -1161, -1161, 439, 906, -1161, 831, -1161, -1161,
3848 15005, 15677, 12253, 15775, -1161, -1161, -1161, -1161, -1161, -1161,
3849 -1161, -1161, -1161, -1161, -1161, -1161, 1179, 110, 1203, 287,
3850 13813, 15873, 15579, -1161, -1161, 10543, -1161, -1161, -1161, -1161,
3851 -1161, 12013, -1161, -1161, -1161, -1161, -1161, -1161, -1161, -1161,
3852 -1161, -1161, 1418, -1161, -1161, -1161, -1161, -1161, 838, -1161,
3853 -1161, 847, -1161, -1161, -1161, 850, 37, -1161, -1161, -1161,
3854 849, -1161, 855, 13813, 587, -1161, -1161, 964, 863, 976,
3855 -1161, 14173, 9011, 113, 14173, 9011, -1161, 881, -1161, -1161,
3856 -1161, 144, 144, 13093, 37, 15005, 886, -1161, 13213, -1161,
3857 666, 4278, 4278, 4278, 4278, 4577, 3442, 4278, 4278, 6639,
3858 6639, 970, 970, -1161, 4841, 1165, 1165, 1184, 425, 425,
3859 666, 666, 666, 1550, 1550, 5512, 6981, 8697, 7137, 475,
3860 -1161, 37, 898, 556, -1161, 621, -1161, 7605, -1161, -1161,
3861 144, -1161, 9163, 1051, 9619, 221, 144, 144, 1053, 1048,
3862 127, 15971, 12253, 16069, -1161, -1161, -1161, 906, -1161, -1161,
3863 -1161, -1161, 16167, 12253, 16265, 9011, 14053, -1161, -1161, -1161,
3864 -1161, 12493, -1161, -1161, 12853, -1161, 37, -1161, -1161, -1161,
3865 -1161, 3988, 14293, 14293, 11316, -1161, 12613, -1161, 12853, -1161,
3866 -1161, -1161, 14053, 6483, -1161, -1161, 14413, 14413, 13813, 6513,
3867 291, 475, 37, 362, 365, 475, 13813, 13813, 14293, -1161,
3868 203, -1161, -1161, 13813, -1161, 693, -1161, 684, -1161, 15005,
3869 831, 283, 52, 37, 354, 387, -1161, -1161, 1290, -1161,
3870 339, -1161, 216, -1161, -1161, 339, 216, -1161, 666, 7761,
3871 923, -1161, 1418, 1152, -1161, 922, 37, 928, -1161, 451,
3872 -1161, -1161, 651, -1161, 1850, -1161, -1161, 955, 13813, 1850,
3873 -1161, -1161, -1161, -1161, -1161, 1359, -1161, -1161, 259, 1057,
3874 -1161, 6483, 1063, 144, -1161, 1057, 1063, 144, -1161, -1161,
3875 940, -1161, -1161, -1161, -1161, -1161, 13813, -1161, -1161, -1161,
3876 967, 972, 1075, -1161, -1161, 831, 15005, 1069, -1161, -1161,
3877 1088, 1000, 3724, -1161, -1161, -1161, 910, 406, -1161, -1161,
3878 1003, -1161, -1161, -1161, -1161, 802, 984, 648, 12493, -1161,
3879 -1161, -1161, -1161, 802, -1161, 1136, -1161, 959, -1161, 1134,
3880 -1161, -1161, -1161, -1161, -1161, -1161, 13333, 144, -1161, 1053,
3881 144, 179, 227, 37, 128, 169, 12133, 113, 12133, 9011,
3882 715, 52, -1161, 37, 144, 135, 11470, -1161, 798, -1161,
3883 75, 225, -1161, 5806, -1161, -1161, -1161, -1161, 37, 1006,
3884 135, 13813, 259, -1161, -1161, 431, -1161, -1161, -1161, -1161,
3885 -1161, -1161, -1161, 404, -1161, -1161, -1161, -1161, -1161, 696,
3886 -1161, 696, 696, 696, -1161, 37, -1161, 1418, -1161, 1232,
3887 -1161, -1161, 1114, 838, -1161, -1161, 1012, 1013, -1161, -1161,
3888 1015, -1161, 1016, -1161, 1012, 14173, -1161, -1161, -1161, -1161,
3889 -1161, -1161, -1161, 1018, 13453, -1161, 831, 455, -1161, -1161,
3890 -1161, 16363, 12253, 16461, -1161, -1161, 13813, 14293, 14293, 1024,
3891 -1161, -1161, -1161, 14293, 14293, -1161, -1161, 13573, 1134, -1161,
3892 -1161, -1161, 9923, 12133, 144, -1161, -1161, 144, -1161, 13813,
3893 -1161, 209, -1161, -1161, 144, -1161, 186, 221, 9011, 113,
3894 144, -1161, -1161, -1161, -1161, -1161, -1161, -1161, -1161, 12853,
3895 -1161, 14413, 13813, 13813, -1161, 13813, 13813, 1791, -1161, -1161,
3896 -1161, 1022, 1025, -1161, 1359, -1161, 1359, -1161, 1850, -1161,
3897 1359, -1161, -1161, 1057, 1063, 13813, 13813, -1161, -1161, 13813,
3898 1028, 12013, 12013, 14293, 13813, 8541, 8853, 37, 478, 480,
3899 4767, 4767, 6483, -1161, -1161, -1161, -1161, -1161, 14293, -1161,
3900 -1161, -1161, -1161, 967, -1161, 1086, -1161, 1188, -1161, -1161,
3901 121, -1161, -1161, -1161, 13693, 9315, -1161, -1161, -1161, 144,
3902 -1161, -1161, 13813, 1850, -1161, -1161, 6081, 1232, 1232, 1012,
3903 1012, 1033, 1012, 6483, 6483, 1074, 1074, 1018, -1161, -1161,
3904 6483, 518, -1161, -1161, -1161, 1520, 1520, 664, -1161, 4223,
3905 84, 1150, -1161, 988, -1161, -1161, 31, -1161, 1079, -1161,
3906 -1161, -1161, 1064, -1161, 1071, -1161, 3272, -1161, -1161, -1161,
3907 -1161, -1161, 891, -1161, -1161, -1161, 43, -1161, -1161, -1161,
3908 -1161, -1161, -1161, -1161, -1161, -1161, 672, -1161, -1161, -1161,
3909 15123, 121, -1161, -1161, 9923, -1161, -1161, 9771, 9163, 13813,
3910 -1161, 722, 4767, 9923, -1161, 37, 74, 98, 1025, -1161,
3911 -1161, 1359, -1161, -1161, 1955, 10543, -1161, -1161, 9011, -1161,
3912 -1161, -1161, -1161, 3272, 69, 37, 5144, -1161, 37, 1073,
3913 -1161, 1089, -1161, -1161, -1161, 1029, -1161, 12133, -1161, 1172,
3914 5144, -1161, 3272, 547, 1141, 1520, 1520, 664, 559, 598,
3915 4767, 4767, -1161, 1191, -1161, 927, 130, 165, 190, 9011,
3916 113, -1161, 959, -1161, -1161, -1161, -1161, 121, 948, 144,
3917 1090, 1093, -1161, 10543, -1161, -1161, -1161, -1161, 1012, 838,
3918 -1161, 1097, -1161, -1161, -1161, 1103, -1161, 37, 849, 1104,
3919 15241, 1109, -1161, -1161, -1161, 73, -1161, 1141, 1110, 1112,
3920 -1161, -1161, -1161, -1161, -1161, 37, -1161, -1161, 1113, 3272,
3921 1115, -1161, -1161, -1161, -1161, -1161, -1161, -1161, -1161, -1161,
3922 -1161, -1161, 37, 37, 37, 37, 37, 37, 267, 16559,
3923 12253, 16657, 1136, -1161, 1188, -1161, -1161, 12133, 12133, -1161,
3924 1304, -1161, 9011, 1119, -1161, -1161, 651, -1161, 1955, -1161,
3925 1137, 15241, 1955, -1161, -1161, 1219, 1005, 1562, -1161, -1161,
3926 3272, -1161, 547, -1161, 3272, -1161, 5144, 743, -1161, -1161,
3927 -1161, -1161, -1161, -1161, 147, 229, 37, 296, 319, -1161,
3928 -1161, 9467, -1161, -1161, -1161, 877, -1161, -1161, 144, -1161,
3929 -1161, 838, -1161, -1161, 1123, 1127, -1161, 1005, 1139, 1140,
3930 -1161, 16755, 1123, 1149, 37, 1149, -1161, -1161, 326, 551,
3931 1304, -1161, -1161, -1161, 1562, -1161, 1562, -1161, 1955, -1161,
3932 1562, -1161, 1156, 1157, -1161, 3272, -1161, -1161, -1161, -1161,
3933 -1161, 1123, 1123, 1162, 1123, -1161, -1161, 1562, -1161, -1161,
3940static const yytype_int16 yydefact[] =
3942 2, 0, 0, 47, 406, 407, 408, 0, 399, 400,
3943 401, 404, 26, 26, 26, 420, 421, 395, 396, 418,
3944 422, 323, 703, 702, 704, 705, 64, 0, 64, 0,
3945 819, 707, 706, 708, 97, 99, 697, 696, 98, 698,
3946 692, 693, 694, 695, 640, 713, 714, 0, 0, 0,
3947 0, 0, 0, 0, 819, 819, 126, 493, 666, 666,
3948 668, 670, 0, 0, 0, 0, 0, 0, 0, 6,
3949 3, 8, 26, 10, 43, 49, 40, 58, 61, 46,
3950 722, 722, 70, 91, 323, 90, 0, 112, 0, 116,
3951 128, 0, 237, 79, 246, 253, 282, 283, 267, 284,
3952 398, 0, 351, 0, 0, 87, 87, 0, 0, 0,
3953 0, 0, 419, 0, 0, 0, 323, 370, 94, 368,
3954 340, 341, 639, 641, 342, 343, 649, 344, 655, 346,
3955 659, 345, 661, 347, 638, 684, 685, 637, 690, 701,
3956 709, 710, 348, 0, 349, 7, 1, 205, 216, 206,
3957 229, 202, 222, 212, 211, 232, 233, 227, 210, 209,
3958 204, 230, 234, 235, 214, 203, 217, 221, 223, 215,
3959 208, 224, 231, 226, 225, 218, 228, 213, 201, 220,
3960 219, 200, 207, 198, 199, 195, 196, 197, 155, 157,
3961 156, 190, 191, 186, 168, 169, 170, 177, 174, 176,
3962 171, 172, 192, 193, 178, 179, 183, 187, 173, 175,
3963 165, 166, 167, 180, 181, 182, 184, 185, 188, 189,
3964 194, 160, 162, 33, 158, 159, 161, 402, 403, 405,
3965 819, 512, 0, 107, 65, 64, 0, 0, 28, 819,
3966 12, 0, 11, 27, 295, 393, 394, 513, 0, 0,
3967 0, 0, 722, 722, 0, 0, 261, 0, 360, 363,
3968 709, 710, 0, 349, 262, 251, 252, 357, 24, 0,
3969 0, 3, 21, 23, 64, 114, 20, 353, 793, 334,
3970 796, 666, 298, 299, 329, 0, 64, 330, 64, 789,
3971 300, 0, 0, 64, 787, 64, 0, 0, 0, 722,
3972 722, 124, 397, 0, 132, 133, 140, 490, 687, 0,
3973 686, 688, 0, 0, 0, 646, 650, 662, 656, 664,
3974 691, 74, 273, 0, 274, 816, 815, 5, 817, 0,
3975 0, 0, 0, 0, 0, 819, 0, 0, 753, 0,
3976 721, 389, 753, 719, 0, 391, 409, 517, 507, 100,
3977 519, 367, 410, 519, 502, 819, 130, 0, 122, 117,
3978 819, 77, 0, 0, 0, 0, 0, 291, 292, 0,
3979 0, 0, 0, 249, 250, 0, 0, 75, 0, 289,
3980 290, 0, 0, 0, 0, 0, 0, 0, 0, 0,
3981 0, 806, 807, 809, 819, 808, 0, 0, 86, 84,
3982 85, 0, 0, 0, 0, 0, 377, 3, 4, 0,
3983 433, 432, 0, 0, 709, 710, 349, 150, 151, 0,
3984 0, 153, 819, 0, 709, 710, 349, 387, 225, 218,
3985 228, 213, 195, 196, 197, 155, 156, 785, 81, 80,
3986 784, 783, 0, 782, 326, 318, 316, 317, 109, 322,
3987 819, 819, 110, 111, 64, 108, 809, 808, 0, 369,
3988 642, 819, 819, 163, 754, 64, 312, 819, 64, 819,
3989 311, 324, 0, 64, 366, 73, 30, 32, 31, 0,
3990 819, 296, 0, 0, 357, 0, 0, 819, 809, 819,
3991 808, 819, 819, 819, 0, 64, 355, 14, 0, 113,
3992 0, 792, 333, 795, 0, 0, 358, 814, 813, 301,
3993 814, 303, 359, 788, 0, 139, 691, 127, 119, 721,
3994 0, 809, 819, 808, 491, 672, 689, 675, 673, 667,
3995 643, 644, 669, 645, 671, 647, 0, 0, 0, 0,
3996 0, 809, 808, 818, 9, 0, 34, 35, 36, 37,
3997 297, 0, 71, 72, 760, 757, 756, 755, 758, 766,
3998 767, 754, 0, 773, 768, 777, 776, 772, 819, 769,
3999 726, 819, 732, 752, 735, 738, 64, 733, 759, 761,
4000 762, 764, 738, 725, 771, 446, 445, 775, 738, 779,
4001 731, 0, 0, 0, 0, 0, 490, 0, 517, 101,
4002 490, 0, 0, 0, 64, 0, 118, 131, 0, 530,
4003 259, 266, 268, 269, 270, 277, 278, 271, 272, 247,
4004 248, 275, 276, 530, 64, 263, 264, 265, 254, 255,
4005 256, 257, 258, 293, 294, 797, 799, 798, 800, 323,
4006 510, 64, 819, 797, 799, 798, 800, 323, 511, 819,
4007 0, 424, 0, 423, 0, 0, 0, 0, 0, 375,
4008 357, 809, 819, 808, 380, 385, 150, 151, 152, 715,
4009 383, 717, 809, 819, 808, 0, 0, 804, 805, 82,
4010 325, 0, 319, 328, 0, 320, 64, 362, 797, 798,
4011 506, 323, 0, 0, 0, 306, 313, 308, 315, 810,
4012 365, 29, 0, 279, 13, 819, 0, 0, 0, 797,
4013 356, 0, 64, 797, 798, 819, 0, 0, 0, 25,
4014 115, 22, 354, 0, 791, 331, 332, 64, 790, 0,
4015 125, 801, 138, 64, 797, 798, 492, 676, 0, 648,
4016 0, 652, 0, 658, 654, 0, 0, 660, 260, 798,
4017 0, 38, 0, 444, 436, 438, 64, 441, 434, 0,
4018 730, 781, 0, 729, 0, 748, 720, 0, 0, 0,
4019 745, 724, 597, 770, 774, 0, 750, 778, 64, 59,
4020 62, 286, 280, 0, 723, 60, 281, 0, 491, 515,
4021 0, 491, 416, 417, 516, 501, 334, 92, 93, 41,
4022 336, 0, 45, 335, 129, 123, 0, 0, 69, 48,
4023 67, 0, 304, 329, 236, 42, 0, 349, 528, 528,
4024 0, 819, 819, 517, 509, 104, 0, 514, 313, 819,
4025 819, 310, 508, 102, 309, 819, 352, 819, 425, 819,
4026 427, 88, 426, 373, 374, 413, 0, 0, 530, 0,
4027 0, 801, 356, 64, 797, 798, 0, 0, 0, 0,
4028 150, 151, 154, 64, 0, 64, 0, 327, 819, 361,
4029 503, 95, 50, 304, 238, 57, 245, 164, 64, 819,
4030 64, 0, 64, 819, 819, 514, 819, 819, 56, 244,
4031 794, 302, 120, 514, 26, 677, 674, 682, 683, 651,
4032 653, 663, 657, 665, 39, 64, 443, 0, 763, 0,
4033 780, 727, 771, 819, 737, 736, 738, 738, 448, 734,
4034 738, 765, 738, 762, 738, 0, 819, 819, 390, 392,
4035 492, 96, 492, 339, 0, 819, 121, 357, 819, 819,
4036 819, 809, 819, 808, 529, 529, 0, 0, 0, 0,
4037 105, 811, 819, 0, 0, 103, 411, 819, 18, 629,
4038 415, 414, 0, 0, 0, 428, 430, 0, 89, 0,
4039 521, 0, 378, 528, 0, 379, 514, 0, 0, 0,
4040 0, 514, 388, 786, 83, 321, 504, 505, 307, 314,
4041 364, 0, 0, 0, 819, 0, 0, 753, 678, 435,
4042 437, 439, 442, 728, 0, 749, 0, 746, 0, 741,
4043 0, 743, 751, 66, 288, 0, 0, 26, 26, 334,
4044 337, 0, 0, 0, 0, 797, 798, 64, 797, 798,
4045 0, 0, 285, 54, 242, 55, 243, 106, 0, 52,
4046 240, 53, 241, 630, 631, 819, 632, 819, 15, 431,
4047 0, 371, 372, 522, 0, 0, 529, 376, 381, 0,
4048 716, 384, 0, 753, 494, 497, 0, 0, 0, 738,
4049 738, 738, 738, 63, 287, 819, 819, 338, 44, 68,
4050 305, 514, 621, 627, 593, 0, 0, 0, 529, 64,
4051 529, 581, 666, 0, 620, 78, 538, 544, 546, 549,
4052 542, 541, 577, 543, 586, 589, 592, 598, 599, 588,
4053 552, 607, 600, 553, 608, 609, 610, 611, 612, 613,
4054 614, 615, 617, 616, 618, 619, 596, 76, 51, 239,
4055 0, 0, 634, 412, 0, 19, 636, 0, 0, 0,
4056 523, 819, 0, 0, 386, 64, 0, 0, 440, 747,
4057 742, 0, 739, 744, 482, 0, 480, 479, 0, 605,
4058 606, 151, 625, 0, 569, 64, 570, 574, 64, 0,
4059 564, 0, 819, 567, 580, 0, 622, 0, 623, 0,
4060 539, 547, 0, 587, 591, 603, 604, 0, 529, 529,
4061 0, 0, 595, 0, 633, 0, 709, 710, 349, 0,
4062 3, 16, 819, 524, 526, 527, 525, 0, 535, 0,
4063 484, 0, 499, 0, 495, 681, 680, 679, 738, 819,
4064 451, 819, 457, 478, 460, 463, 483, 64, 762, 463,
4065 450, 463, 456, 518, 520, 64, 562, 584, 572, 571,
4066 563, 575, 812, 565, 594, 64, 545, 540, 577, 0,
4067 578, 582, 666, 590, 585, 601, 602, 626, 551, 561,
4068 550, 557, 64, 64, 64, 64, 64, 64, 357, 809,
4069 819, 808, 819, 635, 819, 429, 531, 0, 0, 382,
4070 0, 496, 0, 0, 740, 455, 0, 454, 0, 474,
4071 0, 0, 458, 469, 471, 0, 449, 0, 476, 568,
4072 0, 576, 0, 624, 0, 548, 0, 0, 554, 555,
4073 556, 558, 559, 560, 801, 356, 64, 797, 798, 628,
4074 17, 0, 536, 537, 488, 64, 486, 489, 0, 498,
4075 452, 819, 462, 461, 463, 463, 481, 459, 463, 463,
4076 357, 809, 463, 573, 64, 578, 579, 583, 514, 819,
4077 0, 485, 500, 453, 0, 475, 0, 472, 0, 466,
4078 0, 468, 801, 356, 477, 0, 566, 533, 534, 532,
4079 487, 463, 463, 463, 463, 473, 467, 0, 464, 470,
4084static const yytype_int16 yypgoto[] =
4086 -1161, -102, 1050, -1161, -1161, -1161, 989, -1161, 837, -44,
4087 -1161, -1161, -514, -1161, 162, 840, -1161, 51, -1161, -1161,
4088 30, -1161, -1161, 12, -1161, -67, -540, 7, -580, 15,
4089 -1161, -1161, 469, 2822, -1161, 3021, -1161, -77, -1161, -1161,
4090 1234, -56, -1161, 738, -1161, -374, 1484, -40, 1238, -138,
4091 8, -434, -75, -1161, 20, 4054, -407, 1239, -42, -10,
4092 -1161, -1161, -5, -1161, -1161, 5036, -1161, -1161, -1161, -1161,
4093 -545, 1252, -1161, 33, 872, 183, -1161, -35, -1161, 539,
4094 56, 671, -375, -1161, 44, -1161, 21, -554, -340, -47,
4095 -417, -1161, -565, -52, -1161, -1161, -1161, -1161, -1161, -1161,
4096 -1161, -1161, -1161, -1161, -1161, -1161, 1107, -1161, -1161, -1161,
4097 -1161, -1161, -1161, -1161, -1161, -1161, -1161, -1161, -1161, -1161,
4098 -1161, -1161, 395, -1161, 399, 1872, -1161, -1161, -1161, 2510,
4099 -384, 388, 170, -803, -1161, -827, -807, 622, 468, -230,
4100 -1161, 155, 96, -1161, -1161, 230, -1161, -1160, 93, 54,
4101 -1161, 310, -1161, -1161, 160, -1161, 40, 344, -148, -168,
4102 -1161, -1161, 377, -1161, -1161, -1161, 523, -1161, -1161, -104,
4103 -1161, -511, -1161, 1042, -1161, -779, -1161, -734, -794, -534,
4104 -1161, 49, -1161, -1161, -698, -119, -1161, -1161, -1161, -1161,
4105 -1161, 151, -1161, -276, -1161, -843, -974, -985, -352, -989,
4106 -791, -1161, 219, -1161, -1161, -905, 220, -1161, -1161, -653,
4107 231, -1161, -1161, -1161, 132, -1161, -1161, 138, 580, 861,
4108 -1161, 1287, 1008, 1302, 29, -1161, 1467, -1161, 880, -1161,
4109 1776, -1161, -1161, 2010, -1161, 2102, -1161, -1161, -53, -1161,
4110 -1161, -218, -1161, -1161, -1161, -1161, -1161, -1161, -1161, 14,
4111 -1161, -1161, -1161, -1161, 25, -55, 3834, -1, 1311, 4076,
4112 3549, -1161, -1161, 39, 787, 35, -1161, 661, -1161, -1161,
4113 -300, -692, 655, -72, -310, -191, -1135, -483, -298, -743,
4114 -409, -451, -700, -1161, -752, -1161, -665, -1161, -662, -543,
4115 -1161, -1161, -1161, -1161, -1161, -31, -485, -334, -1161, -1161,
4116 -89, 1312, 541, 213, 85, -243, -36, -69, 178
4120static const yytype_int16 yydefgoto[] =
4122 0, 327, 69, 1, 2, 70, 71, 241, 242, 649,
4123 1137, 1274, 650, 1047, 271, 272, 494, 227, 72, 479,
4124 273, 74, 75, 76, 77, 78, 779, 472, 809, 79,
4125 623, 609, 438, 252, 866, 253, 400, 401, 403, 968,
4126 404, 82, 798, 810, 83, 599, 254, 85, 86, 274,
4127 87, 517, 88, 89, 90, 255, 421, 422, 221, 222,
4128 223, 694, 638, 225, 92, 93, 94, 95, 96, 97,
4129 782, 389, 98, 550, 482, 551, 283, 284, 285, 814,
4130 831, 832, 465, 447, 466, 232, 233, 449, 682, 642,
4131 287, 802, 803, 99, 397, 500, 849, 658, 856, 1143,
4132 859, 857, 675, 592, 595, 100, 257, 102, 103, 104,
4133 105, 106, 107, 108, 109, 110, 111, 350, 353, 957,
4134 1134, 846, 962, 963, 794, 258, 113, 114, 115, 259,
4135 652, 841, 964, 965, 413, 754, 755, 756, 757, 568,
4136 767, 768, 1220, 1221, 1222, 1332, 1293, 1224, 1225, 1289,
4137 1226, 1155, 1156, 1227, 1211, 1325, 1326, 524, 736, 894,
4138 307, 1146, 117, 1064, 1214, 1282, 354, 118, 119, 351,
4139 596, 597, 600, 601, 971, 847, 1206, 944, 1030, 818,
4140 1321, 850, 1369, 1207, 1095, 1237, 1097, 1249, 1098, 1190,
4141 1191, 1099, 1302, 1165, 1166, 1167, 1101, 1102, 1250, 1169,
4142 1103, 1104, 1105, 1106, 1107, 569, 1109, 1110, 1111, 1112,
4143 1113, 1114, 1115, 1116, 958, 1045, 1131, 1135, 120, 121,
4144 122, 123, 124, 125, 316, 126, 127, 536, 740, 128,
4145 129, 538, 130, 131, 132, 133, 537, 539, 309, 313,
4146 314, 529, 738, 737, 895, 998, 1066, 1217, 896, 134,
4147 135, 310, 136, 137, 138, 139, 260, 261, 142, 262,
4148 263, 858, 670, 339, 340, 341, 342, 570, 571, 572,
4149 914, 574, 575, 765, 576, 577, 578, 579, 923, 581,
4150 582, 583, 584, 585, 586, 587, 588, 589, 590, 760,
4151 441, 442, 443, 676, 292, 469, 289, 711, 640, 679,
4152 674, 396, 474, 827, 1173, 509, 653, 408, 244
4158static const yytype_int16 yytable[] =
4160 141, 329, 224, 311, 302, 406, 312, 286, 270, 277,
4161 913, 321, 395, 668, 359, 459, 308, 238, 654, 641,
4162 291, 226, 224, 288, 293, 728, 921, 402, 763, 457,
4163 407, 73, 593, 236, 328, 239, 967, 302, 573, 468,
4164 580, 226, 573, 815, 580, 511, 445, 445, 445, 786,
4165 513, 141, 141, 224, 785, 305, 302, 302, 302, 639,
4166 275, 647, 912, 243, 228, 229, 450, 450, 450, 439,
4167 974, 328, 915, 446, 446, 446, 301, 231, 783, 758,
4168 1000, 787, 451, 451, 451, 945, 730, 790, 305, 819,
4169 726, 320, 317, 318, 319, 532, 534, 910, 1215, 917,
4170 910, 346, 1002, 1212, 922, 349, 224, 415, 425, 425,
4171 425, 685, 872, 875, 712, 1168, 345, -141, 399, 399,
4172 344, -356, 399, 330, 691, 1108, 1108, 867, 1333, 685,
4173 867, 495, 1179, -142, 651, -703, -149, 455, 888, 146,
4174 348, 1187, 867, -141, 867, 1327, -711, 733, -712, -356,
4175 -356, 1031, -148, -144, 792, -702, 715, 448, 452, 453,
4176 -146, 864, 786, 445, -703, 445, 367, 368, 490, 497,
4177 1179, 805, 336, 337, 1179, 240, 742, 1239, -142, 145,
4178 -141, 1238, -142, 467, -702, 450, 1180, 1100, 1100, 715,
4179 446, 234, 446, 1251, -145, 1248, 1188, 1213, 1333, 728,
4180 1189, 451, 498, -149, -146, -356, 270, 639, 647, -798,
4181 267, -143, 793, 728, 523, 1327, 1263, 1266, 1216, 604,
4182 379, 380, 651, 518, -584, 270, 347, 234, 504, 743,
4183 276, 276, 290, 294, 542, 328, -64, 1108, 234, 1056,
4184 141, 1000, -147, 501, 502, 503, 302, -132, 840, 141,
4185 473, 475, -147, 352, 546, 547, 548, 549, 343, 343,
4186 1148, 921, 1142, -133, 726, 862, -140, 325, 141, 758,
4187 906, 73, 481, 326, 867, 325, 471, 275, 1108, 726,
4188 -148, 326, -139, -135, -141, 1108, 1108, 853, 345, 234,
4189 -141, 485, 486, 508, 1163, 508, 1172, 305, 863, 1100,
4190 508, -146, 514, 231, -797, 659, 302, -146, -137, -144,
4191 348, 1251, 949, 270, 973, 1251, 915, 1347, 741, -142,
4192 741, 1346, 516, 663, -136, -142, 655, 445, 141, 715,
4193 1126, 1126, -145, 1127, -137, 345, -797, -113, 1204, -143,
4194 715, -134, 665, 1071, -149, 980, 399, 399, 399, 399,
4195 -149, 552, 553, 746, 446, 916, 141, 305, -129, 73,
4196 656, 657, 1205, 325, 1054, 275, 924, 1033, 1035, 326,
4197 1003, 328, 936, 1039, 1041, 325, 1347, 315, 606, -135,
4198 1014, 326, -138, -147, -798, 1013, -798, 445, 603, -147,
4199 646, 884, 1044, 608, 1258, 1260, 141, 1108, 346, 1264,
4200 1267, 356, -711, 141, 141, 525, 747, 450, 470, 680,
4201 -704, 726, -136, 234, 446, 355, 235, -137, 399, 145,
4202 492, -148, 445, 451, 758, -147, 758, -148, 276, -134,
4203 343, 343, 1159, 1160, 399, 867, -141, -137, -137, -704,
4204 -797, -137, 1126, 705, 1208, 518, 1014, 276, -798, 446,
4205 -144, 950, 648, 646, -149, 445, -144, -132, 1128, 955,
4206 527, 528, 886, 666, 1059, 887, 580, 667, 302, 701,
4207 724, 580, 725, -145, 224, 291, 727, -148, -705, -145,
4208 -143, -712, 446, 1126, 891, 646, -143, 360, -135, 1231,
4209 1126, 1126, 1232, 226, 692, 693, -144, 141, 686, -145,
4210 315, 750, 59, 362, 728, 878, 462, -705, -135, -135,
4211 770, 1344, -135, 481, 690, -142, 776, 726, 646, 305,
4212 708, -136, 900, 347, 716, 717, 718, 900, 985, 230,
4213 518, 994, 1255, 1256, 1331, 276, -133, 646, -134, 985,
4214 -149, -136, -136, 462, 141, -136, 1367, 797, 771, 921,
4215 141, 780, 797, 302, 780, 493, 801, 784, -134, -134,
4216 565, 801, -134, 461, -707, -143, 961, 1027, 800, 386,
4217 387, 388, 470, 813, -706, 276, 848, -149, 829, 493,
4218 830, 751, 276, 276, 758, 758, 912, 1055, -397, -148,
4219 463, 141, 566, -707, 141, 445, 480, 1069, -140, 1070,
4220 671, 1072, 1126, -706, 305, 1084, 445, 639, 837, 647,
4221 839, 921, -144, -148, -145, -819, -397, -397, 952, 842,
4222 808, 772, 446, 1335, 910, 560, 1232, 1339, 683, 683,
4223 1232, 820, 230, 446, -139, 1232, 797, 797, 338, 773,
4224 930, 235, 391, 932, 1234, 683, 725, 683, 826, 291,
4225 868, 141, -143, 141, 892, 564, 829, 391, 646, 1252,
4226 825, 725, 797, 291, -97, 879, 1138, 470, 833, 646,
4227 392, 393, -397, 391, 141, 484, 1285, 302, 1287, -98,
4228 1162, 454, 835, 897, 877, 392, 456, 1065, 890, 224,
4229 -144, 865, 1232, 1373, 1232, 824, 1232, 573, 1232, 580,
4230 470, 392, 488, 1230, 808, 808, 772, -699, 226, 559,
4231 580, -135, 871, 234, -708, 1232, 666, 880, -64, 826,
4232 1161, 830, -700, 276, 1192, 487, 394, 943, 305, 560,
4233 808, 518, 491, 919, 508, -699, -699, 961, 881, 845,
4234 826, -801, 1218, -708, 362, 1229, 761, 1199, 952, 761,
4235 -700, -700, 234, 1145, 302, -145, -64, 489, 391, 564,
4236 565, 933, 1017, 573, 1018, 580, 986, 824, 1328, 899,
4237 276, 901, -699, 276, 902, 903, -136, -112, 525, 977,
4238 1257, 979, -143, 496, -801, 925, 392, 521, 1353, -97,
4239 -709, -699, 566, 725, 505, -97, 506, 879, -710, 512,
4240 -349, -699, 515, -134, -98, 305, -700, 336, 337, 525,
4241 -98, 970, -801, -801, -700, 499, 234, 507, -709, -709,
4242 683, 978, 338, 1276, 439, 834, -710, -710, -349, -349,
4243 276, 530, 276, 527, 528, 1230, 723, 1230, 234, 510,
4244 470, 1230, 522, -700, 1005, 1007, 1230, 520, 1009, 391,
4245 1011, 470, 1012, 276, 947, 948, 1228, 535, 141, 540,
4246 826, 224, 953, 954, 527, 528, -801, 1244, -801, 834,
4247 826, 399, -797, 399, -709, 445, 525, 392, 541, 1334,
4248 525, 533, -710, 545, -349, 780, 1050, 591, 1342, 991,
4249 476, 797, 797, 834, 677, 1316, -718, 797, 797, 1020,
4250 477, 478, 446, 1230, 1247, 1230, 594, 1230, 598, 1230,
4251 801, 1096, 1096, 607, 1262, 1265, 992, 993, 1049, 995,
4252 996, 543, 1043, 678, 1219, 885, 1230, 660, 391, 526,
4253 664, 527, 528, 489, 1053, 527, 528, 715, 646, 669,
4254 788, 842, 699, 1060, 791, 997, 893, 1371, 1343, 1372,
4255 681, 1374, 1345, 684, 291, 696, 392, 661, 698, 808,
4256 808, 141, 706, 391, 704, 808, 808, 797, 1380, 707,
4257 1164, -129, 1023, 960, 961, -357, 722, 141, 399, 391,
4258 1185, 1186, 797, -447, 1077, 1038, 729, 1184, 1277, 1278,
4259 1228, 392, 672, 759, 1228, 687, 391, 1149, 1150, 1152,
4260 1153, 795, 762, -357, -357, 764, 695, 392, 941, 697,
4261 769, 1141, 662, 959, 700, 966, 774, 966, 775, 1140,
4262 141, 141, 1147, 1096, 392, 1269, 525, 1062, 777, 1125,
4263 1125, 234, 1350, 789, 826, 808, 720, 276, 1178, 1175,
4264 1176, 806, 36, 37, 1235, 39, 683, 673, 362, 836,
4265 808, 1078, 1079, 828, 141, 843, 844, 683, 1219, -357,
4266 1228, 1164, 1219, 942, 838, 141, 976, 1219, 1075, 1076,
4267 845, 1164, 1164, 848, 391, 904, 981, 907, 302, 530,
4268 1270, 527, 528, 909, 1125, 1125, 519, 519, 1125, 918,
4269 1177, 761, 931, 1201, 1202, 525, 826, 1171, 1273, 1209,
4270 1245, 926, 392, 1341, 1203, 1125, 1271, 927, 101, 1015,
4271 1016, 1233, 384, 385, 386, 387, 388, 766, 1021, 935,
4272 470, 1022, -329, 1024, 1219, 937, 1219, 934, 1219, 1197,
4273 1219, 498, 938, 141, 939, 1046, 141, 141, 525, 946,
4274 276, 1125, 141, 951, 956, 804, 1284, 1219, 530, 961,
4275 527, 528, 1210, 1244, 141, 1272, 276, 141, 673, 101,
4276 101, 989, 1125, 303, 328, 1125, 773, 1004, 1006, 1283,
4277 1008, 1010, 826, -333, 323, 826, 1037, 1067, 302, 1125,
4278 1068, 1125, 928, -331, 1125, 1125, 929, 1130, 1151, 1125,
4279 1125, 531, 399, 527, 528, 826, 303, 1133, 141, 1307,
4280 1322, 1323, 1174, 445, 554, 1243, 555, 556, 557, 558,
4281 323, 323, 141, 1154, 323, 412, 423, 423, 1181, 1182,
4282 323, 323, 323, 1132, 1082, 1136, 1183, 869, 1241, 425,
4283 446, 874, 876, 276, 1210, 40, 41, 42, 43, 302,
4284 1081, 1242, 1179, 362, 276, 525, 972, 1268, 1125, 975,
4285 1280, 1281, 1286, 1157, 1157, 874, 876, 889, 1288, 1292,
4286 375, 376, 362, 982, 1297, 1300, 646, 1301, 1304, 525,
4287 1306, 1329, 826, 826, 826, 1340, 1336, 1349, 1354, 375,
4288 376, 141, 1356, 1294, 554, 1298, 555, 556, 557, 558,
4289 425, 483, 399, 399, 1358, 1360, 1200, 908, 739, 1125,
4290 527, 528, 1170, 1125, 1365, 1125, 383, 384, 385, 386,
4291 387, 388, 276, -797, -798, 276, 276, 1377, 544, 966,
4292 141, 276, 744, 826, 527, 528, 384, 385, 386, 387,
4293 388, 719, 1351, 276, 752, 984, 276, 323, 721, 323,
4294 405, 799, 323, 323, 36, 37, 410, 39, 101, 427,
4295 390, 1171, 702, 1048, 45, 46, 1324, 101, 555, 556,
4296 557, 558, 870, 1051, 1125, 1058, 1052, 331, 332, 333,
4297 334, 335, 1275, 1057, 905, 1001, 101, 276, 1236, 1061,
4298 966, 1240, 1330, 1291, 1223, 1338, 1158, 1290, 1355, 1357,
4299 1370, 276, 1359, 1361, 987, 602, 1364, 761, 1368, 761,
4300 1305, 1259, 1253, 1254, 1319, 303, 983, 1094, 1094, 460,
4301 1246, 554, 1320, 555, 556, 557, 558, 559, 745, 988,
4302 889, 990, 440, 911, 920, 1375, 1376, 1378, 1379, 1366,
4303 458, 0, 0, 0, 1381, 0, 101, 560, 323, 323,
4304 323, 323, 0, 323, 323, 0, 999, 0, 470, 0,
4305 959, 561, 1136, 0, 0, 0, 0, 0, 1144, 0,
4306 276, 562, 1094, 1094, 101, 303, 1094, 564, 565, 0,
4307 554, 0, 555, 556, 557, 558, 0, 0, 1311, 1312,
4308 1313, 0, 0, 1094, 0, 84, 1034, 1036, 0, 0,
4309 0, 0, 1040, 1042, 0, 0, 0, 0, 0, 276,
4310 566, 323, 0, 0, 101, 0, 0, 0, 0, 761,
4311 323, 101, 101, 0, 0, 0, 0, 0, 0, 1094,
4312 752, 0, 0, 0, 0, 753, 323, 966, 0, 1348,
4313 0, 1034, 1036, 0, 1040, 1042, 84, 84, 0, 0,
4314 1094, 0, 0, 1094, 0, 0, 0, 0, 0, 0,
4315 0, 84, 0, 22, 23, 24, 25, 1094, 0, 1094,
4316 0, 323, 1094, 1094, 0, 0, 0, 1094, 1094, 31,
4317 32, 33, 0, 0, 0, 0, 0, 1129, 0, 40,
4318 41, 42, 43, 44, 0, 0, 0, 84, 84, 0,
4319 0, 84, 0, 0, 0, 0, 323, 84, 84, 84,
4320 0, 1129, 0, 0, 0, 101, 0, 0, 1279, 0,
4321 1117, 1117, 0, 0, 554, 0, 555, 556, 557, 558,
4322 559, 0, 0, 0, 0, 0, 1094, 303, 362, 323,
4323 57, 58, 59, 60, 61, 62, 63, 64, 65, 0,
4324 560, 0, 0, 0, 0, 375, 376, 0, 0, 0,
4325 0, 0, 101, 0, 0, 0, 0, 0, 101, 0,
4326 0, 0, 0, 0, 562, 1117, 1117, 297, 0, 1117,
4327 564, 565, 0, 0, 0, 0, 0, 1094, 0, 0,
4328 0, 1094, 0, 1094, 0, 0, 1117, 0, 0, 381,
4329 382, 383, 384, 385, 386, 387, 388, 0, 323, 101,
4330 0, 323, 101, 566, 0, 0, 0, 0, 0, 0,
4331 323, 0, 303, 0, 84, 816, 84, 0, 0, 84,
4332 84, 0, 1117, 0, 0, 84, 0, 1352, 0, 0,
4333 1261, 0, 0, 0, 84, 0, 0, 0, 0, 0,
4334 0, 0, 1094, 1117, 0, 0, 1117, 0, 0, 0,
4335 0, 0, 0, 84, 0, 0, 0, 0, 0, 101,
4336 1117, 101, 1117, 0, 0, 1117, 1117, 0, 0, 323,
4337 1117, 1117, 0, 0, 0, 0, 1299, 0, 0, 0,
4338 323, 0, 101, 323, 0, 0, 1303, 0, 0, 0,
4339 0, 0, 0, 0, 0, 0, 0, 0, 0, 816,
4340 816, 0, 0, 1308, 1309, 1310, 0, 0, 0, 323,
4341 0, 0, 0, 84, 0, 84, 84, 84, 84, 0,
4342 84, 84, 0, 0, 0, 816, 0, 0, 0, 1117,
4343 0, 0, 0, 0, 0, 0, 303, 0, 0, 0,
4344 0, 84, 0, 554, 0, 555, 556, 557, 558, 559,
4345 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4346 0, 0, 0, 0, 0, 0, 0, 0, 0, 560,
4347 0, 0, 0, 112, 0, 0, 0, 0, 84, 0,
4348 1117, 84, 0, 561, 1117, 0, 1117, 84, 84, 84,
4349 0, 1118, 1118, 562, 0, 0, 0, 0, 563, 564,
4350 565, 0, 554, 84, 555, 556, 557, 558, 559, 0,
4351 0, 0, 0, 303, 0, 0, 0, 0, 0, 0,
4352 0, 0, 0, 0, 112, 112, 0, 0, 560, 0,
4353 0, 0, 566, 0, 0, 567, 0, 0, 84, 112,
4354 0, 0, 561, 0, 0, 1117, 1118, 1118, 1063, 0,
4355 1118, 0, 562, 0, 0, 0, 0, 563, 564, 565,
4356 0, 0, 0, 323, 0, 323, 101, 1118, 0, 0,
4357 0, 0, 0, 84, 0, 112, 112, 0, 0, 112,
4358 0, 0, 84, 0, 0, 112, 112, 112, 0, 0,
4359 0, 566, 0, 0, 567, 0, 0, 0, 0, 0,
4360 0, 0, 0, 1118, 0, 0, 84, 554, 0, 555,
4361 556, 557, 558, 559, 0, 0, 0, 0, 0, 0,
4362 0, 0, 0, 0, 1118, 0, 0, 1118, 0, 84,
4363 0, 0, 323, 560, 0, 84, 0, 0, 1119, 1119,
4364 0, 1118, 0, 1118, 0, 0, 1118, 1118, 0, 323,
4365 0, 1118, 1118, 0, 816, 816, 0, 562, 0, 0,
4366 816, 816, 563, 564, 565, 0, 0, 0, 0, 101,
4367 323, 0, 0, 0, 0, 84, 84, 0, 84, 84,
4368 0, 0, 0, 0, 0, 101, 0, 84, 0, 0,
4369 0, 0, 84, 1119, 1119, 0, 566, 1119, 0, 567,
4370 0, 0, 112, 0, 112, 0, 0, 112, 112, 0,
4371 1118, 0, 0, 112, 1119, 0, 0, 0, 0, 0,
4372 0, 0, 112, 0, 0, 0, 0, 0, 101, 101,
4373 816, 0, 0, 0, 0, 0, 84, 0, 84, 0,
4374 0, 112, 0, 0, 0, 816, 84, 0, 0, 0,
4375 1119, 0, 0, 0, 0, 0, 0, 84, 0, 84,
4376 84, 1118, 101, 0, 0, 1118, 0, 1118, 0, 0,
4377 0, 1119, 0, 101, 1119, 0, 84, 84, 0, 0,
4378 0, 0, 0, 0, 0, 0, 84, 0, 1119, 0,
4379 1119, 0, 0, 1119, 1119, 0, 0, 0, 1119, 1119,
4380 0, 112, 84, 112, 112, 112, 112, 0, 112, 112,
4381 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4382 0, 0, 0, 0, 0, 0, 1118, 0, 0, 112,
4383 0, 0, 0, 0, 0, 0, 0, 1195, 0, 361,
4384 0, 101, 0, 0, 101, 101, 0, 0, 0, 0,
4385 101, 0, 0, 0, 0, 0, 0, 1119, 0, 0,
4386 0, 0, 101, 0, 0, 101, 112, 0, 0, 112,
4387 0, 0, 0, 0, 0, 112, 112, 112, 0, 0,
4388 0, 0, 0, 0, 323, 0, 0, 0, 0, 0,
4389 0, 112, 362, 363, 364, 365, 366, 367, 368, 369,
4390 370, 371, 372, 373, 374, 0, 101, 0, 1119, 375,
4391 376, 0, 1119, 0, 1119, 377, 0, 0, 0, 0,
4392 101, 0, 0, 0, 0, 0, 112, 0, 0, 0,
4393 0, 0, 1120, 1120, 0, 0, 0, 1296, 0, 0,
4394 84, 0, 84, 84, 0, 0, 0, 0, 0, 378,
4395 0, 379, 380, 381, 382, 383, 384, 385, 386, 387,
4396 388, 112, 0, 0, 0, 0, 0, 0, 0, 0,
4397 112, 0, 0, 1119, 0, 0, 0, 323, 0, 0,
4398 0, 0, 0, 0, 323, 323, 0, 1120, 1120, 101,
4399 0, 1120, 0, 0, 112, 0, 0, 0, 1337, 0,
4400 0, 0, 0, 0, 0, 0, 0, 0, 1120, 84,
4401 0, 0, 0, 0, 0, 0, 0, 112, 0, 0,
4402 0, 0, 0, 112, 0, 0, 84, 0, 101, 0,
4403 0, 84, 84, 0, 0, 0, 0, 84, 84, 0,
4404 0, 0, 0, 0, 1120, 0, 84, 84, 0, 0,
4405 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4406 0, 0, 84, 112, 112, 1120, 112, 112, 1120, 0,
4407 0, 0, 0, 0, 0, 112, 0, 0, 0, 0,
4408 112, 0, 1120, 0, 1120, 0, 0, 1120, 1120, 0,
4409 0, 0, 1120, 1120, 0, 0, 0, 1121, 1121, 0,
4410 0, 0, 0, 0, 0, 84, 84, 84, 0, 0,
4411 0, 116, 0, 0, 0, 0, 0, 0, 0, 0,
4412 0, 0, 84, 0, 112, 0, 112, 0, 0, 0,
4413 0, 0, 0, 0, 112, 0, 0, 0, 0, 84,
4414 0, 0, 0, 0, 0, 112, 0, 112, 112, 0,
4415 84, 1120, 1121, 1121, 0, 0, 1121, 0, 0, 0,
4416 0, 0, 116, 116, 112, 112, 0, 0, 0, 0,
4417 0, 0, 0, 1121, 112, 0, 0, 116, 0, 0,
4418 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4419 112, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4420 0, 0, 1120, 0, 0, 0, 1120, 0, 1120, 1121,
4421 0, 0, 0, 116, 116, 0, 0, 116, 84, 0,
4422 0, 84, 84, 116, 116, 116, 0, 84, 0, 0,
4423 1121, 0, 0, 1121, 0, 0, 0, 0, 0, 84,
4424 0, 0, 84, 0, 0, 0, 0, 1121, 0, 1121,
4425 0, 0, 1121, 1121, 0, 0, 0, 1121, 1121, 0,
4426 0, 84, 0, 0, 0, 0, 0, 1120, 0, 0,
4427 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4428 0, 0, 0, 84, 0, 0, 0, 0, 0, 0,
4429 0, 0, 0, 0, 0, 0, 0, 84, 0, 0,
4430 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4431 0, 0, 0, 0, 0, 0, 1121, 0, 0, 0,
4432 0, 0, 0, 0, 0, 0, 0, 0, 112, 0,
4433 112, 112, 0, 0, 0, 0, 0, 0, 0, 0,
4434 116, 0, 116, 0, 0, 116, 116, 0, 0, 0,
4435 0, 116, 0, 0, 84, 0, 0, 0, 0, 0,
4436 116, 84, 84, 0, 0, 0, 84, 1121, 0, 0,
4437 0, 1121, 0, 1121, 0, 0, 0, 0, 0, 116,
4438 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4439 0, 0, 0, 0, 0, 0, 0, 112, 0, 0,
4440 0, 0, 0, 0, 0, 84, 1122, 1122, 0, 0,
4441 0, 0, 0, 0, 112, 0, 0, 0, 0, 112,
4442 112, 0, 0, 80, 0, 112, 112, 0, 0, 0,
4443 0, 0, 1121, 0, 112, 112, 0, 0, 0, 116,
4444 0, 116, 116, 116, 116, 0, 116, 116, 0, 0,
4445 112, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4446 0, 1122, 1122, 0, 0, 1122, 0, 116, 0, 0,
4447 0, 0, 0, 0, 80, 80, 0, 0, 299, 0,
4448 0, 0, 1122, 0, 0, 0, 0, 0, 0, 0,
4449 0, 0, 0, 112, 112, 112, 0, 0, 0, 0,
4450 0, 0, 0, 0, 116, 0, 0, 116, 0, 0,
4451 112, 299, 0, 116, 116, 116, 0, 0, 1122, 0,
4452 0, 0, 0, 0, 0, 0, 0, 112, 0, 116,
4453 299, 299, 299, 0, 0, 80, 80, 80, 112, 1122,
4454 0, 0, 1122, 0, 0, 0, 0, 0, 0, 0,
4455 0, 0, 0, 0, 0, 0, 1122, 0, 1122, 0,
4456 0, 1122, 1122, 0, 116, 0, 1122, 1122, 0, 0,
4457 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4458 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4459 0, 0, 0, 0, 0, 0, 0, 0, 0, 116,
4460 0, 0, 0, 0, 0, 0, 112, 0, 116, 112,
4461 112, 0, 0, 0, 0, 112, 0, 0, 0, 0,
4462 0, 0, 81, 0, 0, 1122, 0, 112, 0, 0,
4463 112, 0, 116, 0, 0, 0, 0, 0, 0, 0,
4464 1123, 1123, 0, 0, 0, 0, 0, 0, 0, 112,
4465 0, 0, 80, 0, 80, 116, 0, 0, 0, 0,
4466 0, 116, 0, 80, 0, 0, 0, 0, 0, 0,
4467 0, 112, 80, 81, 81, 0, 1122, 300, 0, 0,
4468 1122, 0, 1122, 0, 0, 112, 0, 0, 0, 0,
4469 0, 80, 0, 0, 0, 1123, 1123, 0, 0, 1123,
4470 0, 116, 116, 0, 116, 116, 0, 0, 0, 0,
4471 300, 0, 0, 116, 0, 0, 1123, 0, 116, 0,
4472 299, 0, 0, 0, 0, 0, 0, 0, 0, 300,
4473 300, 300, 1124, 1124, 81, 81, 81, 0, 0, 0,
4474 0, 1122, 112, 0, 0, 0, 0, 0, 0, 112,
4475 112, 80, 1123, 0, 112, 0, 0, 0, 0, 0,
4476 0, 0, 116, 0, 116, 0, 0, 0, 0, 0,
4477 0, 0, 116, 1123, 0, 0, 1123, 0, 0, 80,
4478 299, 0, 0, 116, 0, 116, 116, 1124, 1124, 0,
4479 1123, 1124, 1123, 112, 0, 1123, 1123, 0, 0, 0,
4480 1123, 1123, 116, 116, 0, 0, 0, 0, 1124, 0,
4481 0, 0, 116, 0, 0, 0, 80, 0, 0, 80,
4482 0, 0, 0, 0, 0, 0, 80, 80, 116, 0,
4483 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4484 0, 0, 0, 0, 1124, 0, 0, 0, 0, 0,
4485 0, 81, 0, 81, 0, 0, 0, 0, 0, 1123,
4486 0, 0, 81, 0, 0, 1124, 0, 0, 1124, 0,
4487 0, 81, 0, 0, 0, 0, 80, 0, 0, 0,
4488 0, 0, 1124, 0, 1124, 0, 0, 1124, 1124, 0,
4489 81, 0, 1124, 1124, 0, 0, 0, 0, 0, 0,
4490 0, 0, 0, 0, 0, 22, 23, 24, 25, 0,
4491 1123, 80, 0, 0, 1123, 0, 1123, 0, 0, 300,
4492 80, 31, 32, 33, 1082, 0, 0, 0, 1083, 0,
4493 0, 40, 41, 42, 43, 44, 0, 0, 0, 0,
4494 0, 0, 299, 0, 80, 0, 0, 0, 0, 0,
4495 81, 1124, 0, 0, 0, 0, 0, 0, 0, 0,
4496 0, 0, 0, 1085, 1086, 0, 116, 80, 116, 116,
4497 0, 1087, 0, 80, 1088, 1123, 1089, 1090, 81, 300,
4498 0, 0, 57, 58, 59, 60, 61, 62, 63, 64,
4499 65, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4500 0, 0, 1124, 0, 0, 0, 1124, 0, 1124, 0,
4501 0, 0, 1093, 0, 80, 81, 0, 80, 81, 297,
4502 0, 0, 0, 0, 0, 81, 81, 299, 0, 0,
4503 80, 0, 0, 0, 0, 116, 0, 0, 0, 0,
4504 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4505 0, 0, 116, 0, 0, 0, 0, 116, 116, 0,
4506 0, 0, 0, 116, 116, 0, 0, 1124, 0, 0,
4507 0, 0, 116, 116, 80, 81, 80, 0, 0, 0,
4508 0, 0, 0, 0, 80, 0, 0, 0, 116, 0,
4509 0, 0, 0, 0, 0, 80, 0, 80, 0, 0,
4510 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4511 81, 0, 0, 0, 80, 80, 0, 0, 0, 81,
4512 362, 363, 364, 365, 366, 367, 368, 369, 0, 371,
4513 372, 116, 116, 116, 0, 0, 0, 375, 376, 0,
4514 80, 300, 0, 81, 0, 0, 0, 0, 116, 0,
4515 144, 299, 0, 0, 0, 0, 0, 0, 0, 0,
4516 0, 0, 0, 0, 0, 116, 81, 0, 0, 0,
4517 0, 0, 81, 0, 0, 0, 116, 0, 0, 379,
4518 380, 381, 382, 383, 384, 385, 386, 387, 388, 0,
4519 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4520 0, 144, 144, 0, 0, 306, 0, 0, 0, 0,
4521 0, 0, 0, 81, 0, 0, 81, 0, 0, 0,
4522 0, 0, 0, 0, 0, 0, 300, 0, 299, 81,
4523 0, 0, 0, 0, 0, 0, 0, 0, 306, 0,
4524 0, 0, 0, 0, 116, 0, 0, 116, 116, 0,
4525 0, 0, 0, 116, 0, 0, 0, 416, 426, 426,
4526 0, 0, 0, 0, 0, 116, 0, 0, 116, 0,
4527 0, 0, 0, 81, 0, 81, 0, 0, 0, 0,
4528 0, 80, 0, 81, 0, 0, 0, 116, 0, 0,
4529 0, 0, 0, 0, 81, 0, 81, 0, 0, 0,
4530 0, 0, 0, 0, 0, 0, 0, 0, 0, 116,
4531 0, 0, 0, 81, 81, 0, 0, 0, 0, 0,
4532 0, 0, 0, 116, 0, 0, 0, 0, 0, 0,
4533 0, 0, 0, 0, 0, 0, 0, 0, 0, 81,
4534 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4535 300, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4536 0, 0, 0, 0, 80, 0, 0, 0, 940, 80,
4537 80, 0, 0, 0, 0, 80, 80, 0, 0, 0,
4538 116, 0, 0, 0, 80, 0, 0, 116, 116, 0,
4539 144, 0, 116, 0, 0, 0, 0, 0, 0, 144,
4540 80, 0, 362, 363, 364, 365, 366, 367, 368, 369,
4541 370, 371, 372, 373, 374, 0, 0, 0, 144, 375,
4542 376, 0, 0, 0, 0, 0, 0, 300, 0, 0,
4543 0, 116, 0, 0, 0, 140, 0, 0, 0, 0,
4544 0, 0, 0, 80, 80, 80, 0, 306, 0, 0,
4545 0, 0, 0, 0, 0, 0, 0, 0, 0, 378,
4546 80, 379, 380, 381, 382, 383, 384, 385, 386, 387,
4547 388, 0, 0, 0, 0, 0, 0, 80, 144, -298,
4548 81, 0, 0, 0, 0, 0, 140, 140, 80, 0,
4549 304, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4550 0, 0, 0, 0, 0, 0, 144, 306, 0, 0,
4551 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4552 0, 0, 0, 304, 0, 0, 0, 0, 0, 0,
4553 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4554 0, 0, 414, 424, 424, 424, 144, 0, 0, 0,
4555 0, 0, 299, 144, 144, 0, 80, 0, 0, 80,
4556 80, 0, 0, 81, 0, 80, 0, 0, 81, 81,
4557 0, 0, 0, 0, 81, 81, 0, 80, 0, 0,
4558 80, 0, 0, 81, 0, 0, 0, 0, -819, 0,
4559 0, 0, 0, 0, 0, 0, -819, -819, -819, 81,
4560 0, -819, -819, -819, 0, -819, 0, 0, 0, 0,
4561 0, 0, 0, -819, -819, -819, 0, 0, 0, 0,
4562 0, 80, 0, 0, 0, -819, -819, 0, -819, -819,
4563 -819, -819, -819, 0, 0, 80, 0, 0, 0, 0,
4564 0, 0, 81, 81, 81, 0, 0, 144, 0, 0,
4565 0, 0, 299, 0, 0, 91, -819, -819, 0, 81,
4566 0, 0, 0, 0, 0, 0, 0, 0, 0, 306,
4567 0, 0, 0, 0, 0, 140, 81, 143, 0, 0,
4568 0, 0, 0, 0, 140, -819, -819, 81, 0, 0,
4569 0, 0, 80, 0, 144, 0, 0, 0, 0, 0,
4570 144, 0, 0, 140, 80, 0, 91, 91, -819, 0,
4571 0, 0, 0, 299, 0, 0, 0, 0, 0, 0,
4572 0, 0, 0, 0, 0, 0, 0, 0, 143, 143,
4573 0, 0, 304, 0, 0, 0, 0, 0, 0, -819,
4574 -819, 144, -819, 80, 144, 230, -819, 0, -819, 0,
4575 0, 300, 0, 0, 306, 81, 0, 817, 81, 81,
4576 0, 0, 411, 140, 81, 0, 0, 0, 0, 0,
4577 0, 0, 0, 0, 0, 0, 81, 0, 0, 81,
4578 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4579 0, 140, 304, 0, 0, 0, 0, 0, 0, 0,
4580 0, 144, 0, 144, 0, 0, 0, 0, 0, 0,
4581 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4582 81, 0, 0, 0, 144, 0, 0, 0, 0, 0,
4583 0, 140, 0, 0, 81, 0, 0, 0, 140, 140,
4584 0, 817, 817, 0, 0, 0, 0, 0, 0, 0,
4585 0, 300, 0, 0, 0, 0, 22, 23, 24, 25,
4586 0, 0, 0, 0, 0, 0, 0, 817, 0, 0,
4587 0, 0, 31, 32, 33, 1082, 0, 0, 306, 1083,
4588 0, 0, 40, 41, 42, 43, 44, 898, 0, 0,
4589 0, 81, 0, 0, 0, 91, 0, 0, 0, 0,
4590 0, 0, 0, 81, 91, 0, 0, 0, 0, 0,
4591 0, 0, 300, 0, 1085, 1086, 0, 143, 0, 0,
4592 0, 0, 1087, 91, 0, 1088, 143, 1089, 1090, 0,
4593 1091, 0, 140, 57, 58, 59, 60, 61, 62, 63,
4594 64, 65, 81, 0, 0, 143, 0, 0, 0, 0,
4595 0, 0, 0, 0, 304, 306, 362, -820, -820, -820,
4596 -820, 367, 368, 1093, 0, -820, -820, 0, 0, 0,
4597 297, 0, 0, 375, 376, 0, 0, 234, 0, 140,
4598 0, 0, 0, 91, 0, 140, 0, 0, 0, 0,
4599 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4600 0, 0, 0, 0, 0, 143, 0, 0, 144, 0,
4601 0, 91, 0, 0, 0, 379, 380, 381, 382, 383,
4602 384, 385, 386, 387, 388, 0, 140, 0, 0, 140,
4603 0, 0, 0, 143, 0, 0, 0, 0, 0, 304,
4604 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4605 0, 91, 0, 0, 0, 0, 0, 0, 91, 91,
4606 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4607 0, 0, 0, 143, 0, 0, 0, 0, 0, 0,
4608 143, 143, 0, 0, 0, 0, 140, 0, 140, 0,
4609 0, 0, 0, 0, 0, 0, 817, 817, 0, 0,
4610 0, 0, 817, 817, 688, 644, 0, 0, 689, 140,
4611 0, 144, 0, 0, 0, 0, 0, 0, 0, 0,
4612 0, 0, 0, 0, 0, 0, 0, 144, 191, 192,
4613 193, 194, 195, 196, 197, 198, 199, 0, 0, 200,
4614 201, 0, 0, 0, 0, 202, 203, 204, 205, 0,
4615 0, 0, 91, 0, 0, 0, 0, 0, 0, 206,
4616 207, 0, 0, 304, 0, 0, 0, 0, 0, 0,
4617 144, 144, 817, 0, 143, 0, 0, 0, 0, 0,
4618 0, 0, 0, 0, 0, 0, 0, 817, 0, 208,
4619 209, 210, 211, 212, 213, 214, 215, 216, 217, 91,
4620 218, 219, 0, 0, 144, 91, 0, 0, 220, 230,
4621 0, 0, 0, 0, 0, 144, 0, 0, 0, 0,
4622 0, 143, 0, 0, 0, 0, 0, 143, 0, 0,
4623 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4624 304, 0, 0, 0, 0, 0, 91, 0, 0, 91,
4625 0, 0, 0, 0, 0, 362, 363, 364, 365, 366,
4626 367, 368, 811, 0, 371, 372, 0, 0, 143, 0,
4627 0, 143, 375, 376, 0, 0, 0, 0, 0, 1198,
4628 0, 0, 0, 144, 143, 0, 144, 144, 0, 0,
4629 0, 0, 144, 140, 0, 0, 0, 0, 0, 0,
4630 0, 0, 0, 0, 144, 0, 91, 144, 91, 0,
4631 0, 0, 0, 0, 379, 380, 381, 382, 383, 384,
4632 385, 386, 387, 388, 0, 0, 0, 0, 143, 91,
4633 143, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4634 0, 0, 0, 0, 0, 0, 811, 811, 144, 0,
4635 0, 143, 0, 0, 0, 0, 0, 0, 0, 0,
4636 0, 0, 144, 0, 0, 0, 0, 0, 143, 143,
4637 0, 0, 811, 0, 0, 0, 0, 0, 0, 426,
4638 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4639 0, 0, 0, 0, 143, 0, 140, 0, 0, 0,
4640 22, 23, 24, 25, 0, 0, 0, 0, 0, 0,
4641 0, 0, 140, 0, 0, 0, 31, 32, 33, 1082,
4642 0, 0, 0, 1083, 0, 1084, 40, 41, 42, 43,
4643 44, 144, 0, 0, 0, 0, 0, 0, 0, 0,
4644 426, 0, 0, 0, 0, 560, 0, 0, 0, 0,
4645 0, 0, 0, 0, 0, 140, 140, 0, 1085, 1086,
4646 0, 0, 0, 0, 0, 0, 1087, 0, 0, 1088,
4647 144, 1089, 1090, 0, 1091, 564, 0, 57, 58, 1092,
4648 60, 61, 62, 63, 64, 65, 0, 0, 0, 140,
4649 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4650 140, 0, 0, 0, 0, 0, 0, 1093, 0, 0,
4651 0, 0, 0, 91, 297, 0, 0, 0, 0, 362,
4652 363, 364, 365, 366, 367, 368, 369, 370, 371, 372,
4653 373, 374, 0, 0, 0, 143, 375, 376, 0, 0,
4654 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4655 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4656 0, 0, 0, 0, 1196, 0, 0, 0, 140, 0,
4657 0, 140, 140, 0, 0, 0, 378, 140, 379, 380,
4658 381, 382, 383, 384, 385, 386, 387, 388, 0, 140,
4659 0, 0, 140, 0, 0, 234, 0, 0, 0, 0,
4660 0, 811, 811, 0, 0, 0, 0, 811, 811, 0,
4661 0, 0, 0, 0, 0, 0, 91, 0, 0, 0,
4662 0, 0, 0, 143, 143, 0, 0, 0, 0, 143,
4663 143, 0, 91, 140, 0, 0, 0, 0, 143, 0,
4664 0, 0, 0, 0, 0, 0, 0, 140, 0, 0,
4665 0, 0, 0, 0, 143, 0, 0, 0, 0, 0,
4666 0, 0, 0, 0, 424, 0, 0, 0, 0, 0,
4667 0, 0, 0, 0, 0, 91, 91, 811, 0, 0,
4668 0, 0, 0, 256, 264, 265, 266, 0, 0, 0,
4669 282, 282, 811, 0, 0, 0, 0, 143, 143, 143,
4670 0, 0, 0, 322, 324, 0, 0, 0, 0, 91,
4671 0, 0, 0, 0, 143, 0, 140, 0, 0, 0,
4672 91, 0, 0, 0, 0, 424, 0, 0, 0, 0,
4673 0, 143, 0, 0, 0, 0, 0, 0, 0, 0,
4674 0, 0, 143, 0, 0, 0, 0, 0, 0, 282,
4675 282, 282, 0, 0, 0, 140, 0, 0, 0, 0,
4676 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4677 0, 0, 0, 0, 0, 0, 0, 22, 23, 24,
4678 25, 0, 0, 0, 1194, 0, 0, 0, 91, 0,
4679 0, 91, 91, 31, 32, 33, 1082, 91, 0, 0,
4680 1083, 0, 0, 40, 41, 42, 43, 44, 0, 91,
4681 143, 0, 91, 143, 143, 0, 0, 0, 0, 143,
4682 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4683 0, 143, 0, 0, 143, 1085, 1086, 0, 0, 0,
4684 0, 0, 0, 1087, 0, 0, 1088, 0, 1089, 1090,
4685 0, 1091, 0, 91, 57, 58, 59, 60, 61, 62,
4686 63, 64, 65, 0, 0, 0, 282, 91, 282, 0,
4687 0, 0, 0, 0, 0, 143, 0, 0, 0, 0,
4688 0, 0, 0, 0, 1093, 0, 0, 322, 0, 143,
4689 0, 297, 0, 0, 0, 0, 0, 0, 0, 0,
4690 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4691 0, 0, 0, 0, 282, 282, 282, 0, 0, 0,
4692 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4693 0, 0, 0, 4, 5, 6, 91, 8, 0, 0,
4694 0, 9, 10, 0, 0, 0, 11, 0, 12, 13,
4695 14, 245, 246, 17, 18, 0, 0, 0, 143, 0,
4696 19, 20, 247, 22, 23, 24, 25, 0, 0, 248,
4697 0, 0, 0, 0, 0, 91, 295, 0, 0, 31,
4698 32, 33, 34, 35, 36, 37, 38, 39, 0, 40,
4699 41, 42, 43, 44, 45, 46, 0, 143, 610, 611,
4700 612, 613, 614, 0, 0, 615, 616, 617, 618, 619,
4701 620, 621, 622, 0, 624, 0, 0, 625, 626, 627,
4702 628, 629, 630, 631, 632, 633, 634, 0, 0, 296,
4703 282, 0, 250, 53, 54, 55, 0, 0, 0, 0,
4704 57, 58, 59, 60, 61, 62, 63, 64, 65, 0,
4705 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4706 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4707 0, 0, 0, 0, 0, 0, 0, 297, 0, 0,
4708 282, 0, 0, 0, 0, 298, 0, 0, 0, 0,
4709 282, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4710 266, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4711 0, 0, -801, 0, 0, 0, 0, 0, 703, 0,
4712 -801, -801, -801, 0, 0, 282, -801, -801, 0, -801,
4713 0, 0, 0, 0, 0, 0, 0, -801, -801, 0,
4714 0, 282, 0, 282, 0, 0, 282, 0, 0, -801,
4715 -801, 0, -801, -801, -801, -801, -801, 0, 282, 0,
4716 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4717 0, 0, 0, 0, 0, 0, 748, 0, 0, 0,
4718 -801, -801, 0, 0, 0, 0, 0, 0, 0, 0,
4719 -801, -801, -801, -801, -801, -801, -801, -801, -801, -801,
4720 -801, -801, -801, 0, 0, 0, 0, -801, -801, -801,
4721 -801, 0, 821, -801, 0, 0, 0, 0, 0, 282,
4722 0, 0, 0, 0, 0, 0, 0, 781, 0, 0,
4723 781, 0, -801, 0, 0, 0, 0, 0, 0, 282,
4724 0, 0, 0, 0, 812, 0, -146, -801, 0, -801,
4725 -801, -801, -801, -801, -801, -801, -801, -801, -801, 0,
4726 0, 0, 0, -801, -801, -801, -801, -137, 0, 0,
4727 -801, 0, -801, 0, 0, 0, 0, 0, 0, 0,
4728 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4729 0, 0, 0, 0, 0, 0, 0, 0, 282, 0,
4730 0, 0, 0, 0, 0, 0, 0, 0, 0, 282,
4731 0, 0, 0, 0, 0, 0, 0, 282, 0, 0,
4732 282, 0, 0, 0, 0, 0, 0, 0, 873, 873,
4733 0, 0, 282, 0, 282, 0, 0, 0, 0, 0,
4734 0, 0, 781, 781, 873, 0, 0, 0, 0, 0,
4735 0, 0, 873, 873, 873, 0, 0, 0, 0, 282,
4736 0, 0, 0, -4, 3, 0, 4, 5, 6, 7,
4737 8, -4, -4, -4, 9, 10, 0, -4, -4, 11,
4738 -4, 12, 13, 14, 15, 16, 17, 18, -4, 0,
4739 0, 0, 0, 19, 20, 21, 22, 23, 24, 25,
4740 0, 0, 26, 0, 282, 0, 0, 0, 27, 28,
4741 268, 30, 31, 32, 33, 34, 35, 36, 37, 38,
4742 39, 0, 40, 41, 42, 43, 44, 45, 46, 0,
4743 0, -4, 282, 0, 0, 0, 0, 0, 0, 47,
4744 48, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4745 940, 0, 0, 0, 49, 50, 0, 0, 0, 0,
4746 0, 0, 51, 0, 282, 52, 53, 54, 55, 0,
4747 56, 0, 0, 57, 58, 59, 60, 61, 62, 63,
4748 64, 65, 282, -4, 362, 363, 364, 365, 366, 367,
4749 368, 369, 370, 371, 372, 373, 374, 0, 0, 0,
4750 0, 375, 376, 0, 0, 0, 0, 0, 0, 0,
4751 66, 67, 68, 0, 0, -4, 0, 873, 0, 0,
4752 0, -4, 0, 543, 0, 0, 0, 0, 0, 0,
4753 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4754 0, 378, 0, 379, 380, 381, 382, 383, 384, 385,
4755 386, 387, 388, 0, 0, 0, 0, 0, 0, 0,
4756 0, 781, 0, 0, 0, 0, 0, 0, 0, 0,
4757 282, 0, 0, 0, 0, 0, 0, 0, 282, 0,
4758 0, 0, 1032, 873, 873, 0, 0, 0, 0, 873,
4759 873, 0, 0, 282, 0, 0, 0, 0, 0, 0,
4760 0, 0, 0, 0, 0, 282, 0, 0, 0, 0,
4761 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4762 0, 0, 0, 0, 0, 282, 0, 781, 873, 873,
4763 0, 873, 873, 0, 0, 0, 0, 0, 0, 0,
4764 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4765 0, 1073, 1074, 0, 0, 282, 0, 0, 0, 873,
4766 1080, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4767 0, 0, 0, 0, 873, 0, 0, 0, 0, 0,
4768 0, -819, 3, 0, 4, 5, 6, 7, 8, 0,
4769 282, 0, 9, 10, 0, 0, 0, 11, 873, 12,
4770 13, 14, 15, 16, 17, 18, 0, 0, 0, 0,
4771 0, 19, 20, 21, 22, 23, 24, 25, 0, 0,
4772 26, 0, 0, 0, 0, 0, 27, 28, 268, 30,
4773 31, 32, 33, 34, 35, 36, 37, 38, 39, 0,
4774 40, 41, 42, 43, 44, 45, 46, 0, 0, 0,
4775 0, 0, 0, 0, 0, 0, 0, 47, 48, 0,
4776 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4777 0, 0, 49, 50, 0, 282, 0, 0, 0, 0,
4778 51, 0, 0, 52, 53, 54, 55, 0, 56, 0,
4779 0, 57, 58, 59, 60, 61, 62, 63, 64, 65,
4780 0, -819, 0, 0, 0, 0, 0, 0, 0, 0,
4781 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4782 0, 0, 0, 0, 0, 0, 0, 0, 66, 67,
4783 68, 0, 0, -819, 3, -819, 4, 5, 6, 7,
4784 8, -819, 0, 0, 9, 10, 0, 0, 0, 11,
4785 0, 12, 13, 14, 15, 16, 17, 18, 0, 0,
4786 0, 0, 0, 19, 20, 21, 22, 23, 24, 25,
4787 0, 0, 26, 0, 0, 0, 0, 0, 27, 28,
4788 29, 30, 31, 32, 33, 34, 35, 36, 37, 38,
4789 39, 0, 40, 41, 42, 43, 44, 45, 46, 0,
4790 0, 0, 0, 0, 0, 0, 282, 0, 0, 47,
4791 48, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4792 0, 0, 0, 0, 49, 50, 0, 0, 0, 0,
4793 0, 0, 51, 0, 0, 52, 53, 54, 55, 0,
4794 56, 0, 0, 57, 58, 59, 60, 61, 62, 63,
4795 64, 65, 0, 0, 0, 0, 0, 0, 0, 0,
4796 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4797 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4798 66, 67, 68, 0, 0, -4, 3, -819, 4, 5,
4799 6, 7, 8, -819, 0, 0, 9, 10, 0, 0,
4800 0, 11, 0, 12, 13, 14, 15, 16, 17, 18,
4801 0, 0, 0, 0, 0, 19, 20, 21, 22, 23,
4802 24, 25, 0, 0, 26, 0, 0, 0, 0, 0,
4803 27, 28, 29, 30, 31, 32, 33, 34, 35, 36,
4804 37, 38, 39, 0, 40, 41, 42, 43, 44, 45,
4805 46, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4806 0, 47, 48, 0, 0, 0, 0, 0, 0, 0,
4807 0, 0, 0, 0, 0, 0, 49, 50, 0, 0,
4808 0, 0, 0, 0, 51, 0, 0, 52, 53, 54,
4809 55, 0, 56, 0, 0, 57, 58, 59, 60, 61,
4810 62, 63, 64, 65, 0, 0, 0, 0, 0, 0,
4811 0, 0, 0, -801, 0, 0, 0, 0, 0, 0,
4812 0, -801, -801, -801, 0, 0, -801, -801, -801, 0,
4813 -801, 0, 66, 67, 68, 0, 0, -4, -801, -801,
4814 -801, -801, -801, 0, 0, 543, 0, 0, 0, 0,
4815 -801, -801, 0, -801, -801, -801, -801, -801, 0, 0,
4816 0, 362, 363, 364, 365, 366, 367, 368, 369, 370,
4817 371, 372, 373, 374, 0, 0, 0, 0, 375, 376,
4818 0, -801, -801, 0, 0, 0, 0, 0, 0, 0,
4819 0, -801, -801, -801, -801, -801, -801, -801, -801, -801,
4820 -801, -801, -801, -801, 0, 0, 0, 0, -801, -801,
4821 -801, -801, 0, 883, -801, 0, 0, 0, 378, -801,
4822 379, 380, 381, 382, 383, 384, 385, 386, 387, 388,
4823 0, 0, 0, -801, 0, 0, -801, 0, 0, 0,
4824 0, 0, 0, 0, 0, 0, 0, -146, -801, -801,
4825 -801, -801, -801, -801, -801, -801, -801, -801, -801, -801,
4826 0, 0, 0, 0, -801, -801, -801, -801, -801, -699,
4827 0, -801, -801, -801, 0, 0, 0, -699, -699, -699,
4828 0, 0, -699, -699, -699, 0, -699, 0, 0, 0,
4829 0, 0, 0, 0, -699, 0, -699, -699, -699, 0,
4830 0, 0, 0, 0, 0, 0, -699, -699, 0, -699,
4831 -699, -699, -699, -699, 0, 0, 0, 362, 363, 364,
4832 365, 366, 367, 368, 369, 370, 371, 372, -820, -820,
4833 0, 0, 0, 0, 375, 376, 0, -699, -699, 0,
4834 0, 0, 0, 0, 0, 0, 0, -699, -699, -699,
4835 -699, -699, -699, -699, -699, -699, -699, -699, -699, -699,
4836 0, 0, 0, 0, -699, -699, -699, -699, 0, -699,
4837 -699, 0, 0, 0, 0, -699, 379, 380, 381, 382,
4838 383, 384, 385, 386, 387, 388, 0, 0, 0, -699,
4839 0, 0, -699, 0, 0, 0, 0, 0, 0, 0,
4840 0, 0, 0, -699, -699, -699, -699, -699, -699, -699,
4841 -699, -699, -699, -699, -699, -699, 0, 0, 0, 0,
4842 0, -699, -699, -699, -699, -700, 0, -699, -699, -699,
4843 0, 0, 0, -700, -700, -700, 0, 0, -700, -700,
4844 -700, 0, -700, 0, 0, 0, 0, 0, 0, 0,
4845 -700, 0, -700, -700, -700, 0, 0, 0, 0, 0,
4846 0, 0, -700, -700, 0, -700, -700, -700, -700, -700,
4847 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4848 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4849 0, 0, 0, -700, -700, 0, 0, 0, 0, 0,
4850 0, 0, 0, -700, -700, -700, -700, -700, -700, -700,
4851 -700, -700, -700, -700, -700, -700, 0, 0, 0, 0,
4852 -700, -700, -700, -700, 0, -700, -700, 0, 0, 0,
4853 0, -700, 0, 0, 0, 0, 0, 0, 0, 0,
4854 0, 0, 0, 0, 0, -700, 0, 0, -700, 0,
4855 0, 0, 0, 0, 0, 0, 0, 0, 0, -700,
4856 -700, -700, -700, -700, -700, -700, -700, -700, -700, -700,
4857 -700, -700, 0, 0, 0, 0, 0, -700, -700, -700,
4858 -700, -802, 0, -700, -700, -700, 0, 0, 0, -802,
4859 -802, -802, 0, 0, -802, -802, -802, 0, -802, 0,
4860 0, 0, 0, 0, 0, 0, -802, -802, -802, -802,
4861 -802, 0, 0, 0, 0, 0, 0, 0, -802, -802,
4862 0, -802, -802, -802, -802, -802, 0, 0, 0, 0,
4863 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4864 0, 0, 0, 0, 0, 0, 0, 0, 0, -802,
4865 -802, 0, 0, 0, 0, 0, 0, 0, 0, -802,
4866 -802, -802, -802, -802, -802, -802, -802, -802, -802, -802,
4867 -802, -802, 0, 0, 0, 0, -802, -802, -802, -802,
4868 0, 0, -802, 0, 0, 0, 0, -802, 0, 0,
4869 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4870 0, -802, 0, 0, -802, 0, 0, 0, 0, 0,
4871 0, 0, 0, 0, 0, 0, -802, -802, -802, -802,
4872 -802, -802, -802, -802, -802, -802, -802, -802, 0, 0,
4873 0, 0, -802, -802, -802, -802, -802, -803, 0, -802,
4874 -802, -802, 0, 0, 0, -803, -803, -803, 0, 0,
4875 -803, -803, -803, 0, -803, 0, 0, 0, 0, 0,
4876 0, 0, -803, -803, -803, -803, -803, 0, 0, 0,
4877 0, 0, 0, 0, -803, -803, 0, -803, -803, -803,
4878 -803, -803, 0, 0, 0, 0, 0, 0, 0, 0,
4879 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4880 0, 0, 0, 0, 0, -803, -803, 0, 0, 0,
4881 0, 0, 0, 0, 0, -803, -803, -803, -803, -803,
4882 -803, -803, -803, -803, -803, -803, -803, -803, 0, 0,
4883 0, 0, -803, -803, -803, -803, 0, 0, -803, 0,
4884 0, 0, 0, -803, 0, 0, 0, 0, 0, 0,
4885 0, 0, 0, 0, 0, 0, 0, -803, 0, 0,
4886 -803, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4887 0, 0, -803, -803, -803, -803, -803, -803, -803, -803,
4888 -803, -803, -803, -803, 0, 0, 0, 0, -803, -803,
4889 -803, -803, -803, -513, 0, -803, -803, -803, 0, 0,
4890 0, -513, -513, -513, 0, 0, -513, -513, -513, 0,
4891 -513, 0, 0, 0, 0, 0, 0, 0, -513, -513,
4892 -513, -513, 0, 0, 0, 0, 0, 0, 0, 0,
4893 -513, -513, 0, -513, -513, -513, -513, -513, 0, 0,
4894 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4895 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4896 0, -513, -513, 0, 0, 0, 0, 0, 0, 0,
4897 0, -513, -513, -513, -513, -513, -513, -513, -513, -513,
4898 -513, -513, -513, -513, 0, 0, 0, 0, -513, -513,
4899 -513, -513, 0, 0, -513, 0, 0, 0, 0, -513,
4900 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4901 0, 0, 0, -513, 0, 0, 0, 0, 0, 0,
4902 0, 0, 0, 0, 0, 0, 0, 0, -513, 0,
4903 -513, -513, -513, -513, -513, -513, -513, -513, -513, -513,
4904 0, 0, 0, 0, -513, -513, -513, -513, -513, -350,
4905 230, -513, -513, -513, 0, 0, 0, -350, -350, -350,
4906 0, 0, -350, -350, -350, 0, -350, 0, 0, 0,
4907 0, 0, 0, 0, -350, 0, -350, -350, -350, 0,
4908 0, 0, 0, 0, 0, 0, -350, -350, 0, -350,
4909 -350, -350, -350, -350, 0, 0, 0, 0, 0, 0,
4910 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4911 0, 0, 0, 0, 0, 0, 0, -350, -350, 0,
4912 0, 0, 0, 0, 0, 0, 0, -350, -350, -350,
4913 -350, -350, -350, -350, -350, -350, -350, -350, -350, -350,
4914 0, 0, 0, 0, -350, -350, -350, -350, 0, 0,
4915 -350, 0, 0, 0, 0, -350, 0, 0, 0, 0,
4916 0, 0, 0, 0, 0, 0, 0, 0, 0, -350,
4917 0, 0, -350, 0, 0, 0, 0, 0, 0, 0,
4918 0, 0, 0, 0, -350, -350, -350, -350, -350, -350,
4919 -350, -350, -350, -350, -350, -350, 0, 0, 0, 0,
4920 0, -350, -350, -350, -350, -819, 0, -350, -350, -350,
4921 0, 0, 0, -819, -819, -819, 0, 0, -819, -819,
4922 -819, 0, -819, 0, 0, 0, 0, 0, 0, 0,
4923 -819, -819, -819, -819, 0, 0, 0, 0, 0, 0,
4924 0, 0, -819, -819, 0, -819, -819, -819, -819, -819,
4925 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4926 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4927 0, 0, 0, -819, -819, 0, 0, 0, 0, 0,
4928 0, 0, 0, -819, -819, -819, -819, -819, -819, -819,
4929 -819, -819, -819, -819, -819, -819, 0, 0, 0, 0,
4930 -819, -819, -819, -819, 0, 0, -819, 0, 0, 0,
4931 0, -819, 0, 0, 0, 0, 0, 0, 0, 0,
4932 0, 0, 0, 0, 0, -819, 0, 0, 0, 0,
4933 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4934 -819, 0, -819, -819, -819, -819, -819, -819, -819, -819,
4935 -819, -819, 0, 0, 0, 0, -819, -819, -819, -819,
4936 -819, -356, 230, -819, -819, -819, 0, 0, 0, -356,
4937 -356, -356, 0, 0, -356, -356, -356, 0, -356, 0,
4938 0, 0, 0, 0, 0, 0, -356, 0, -356, -356,
4939 0, 0, 0, 0, 0, 0, 0, 0, -356, -356,
4940 0, -356, -356, -356, -356, -356, 0, 0, 0, 0,
4941 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4942 0, 0, 0, 0, 0, 0, 0, 0, 0, -356,
4943 -356, 0, 0, 0, 0, 0, 0, 0, 0, -356,
4944 -356, -356, -356, -356, -356, -356, -356, -356, -356, -356,
4945 -356, -356, 0, 0, 0, 0, -356, -356, -356, -356,
4946 0, 884, -356, 0, 0, 0, 0, -356, 0, 0,
4947 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4948 0, -356, 0, 0, 0, 0, 0, 0, 0, 0,
4949 0, 0, 0, 0, 0, -147, -356, 0, -356, -356,
4950 -356, -356, -356, -356, -356, -356, -356, -356, 0, 0,
4951 0, 0, 823, -356, -356, -356, -356, -363, 0, -356,
4952 -356, -356, 0, 0, 0, -363, -363, -363, 0, 0,
4953 -363, -363, -363, 0, -363, 0, 0, 0, 0, 0,
4954 0, 0, -363, 0, -363, -363, 0, 0, 0, 0,
4955 0, 0, 0, 0, -363, -363, 0, -363, -363, -363,
4956 -363, -363, 0, 0, 0, 0, 0, 0, 0, 0,
4957 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4958 0, 0, 0, 0, 0, -363, -363, 0, 0, 0,
4959 0, 0, 0, 0, 0, -363, -363, -363, -363, -363,
4960 -363, -363, -363, -363, -363, -363, -363, -363, 0, 0,
4961 0, 0, -363, -363, -363, -363, 0, 0, -363, 0,
4962 0, 0, 0, -363, 0, 0, 0, 0, 0, 0,
4963 0, 0, 0, 0, 0, 0, 0, -363, 0, 0,
4964 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4965 0, 0, -363, 0, -363, -363, -363, -363, -363, -363,
4966 -363, -363, -363, -363, 0, 0, 0, 0, 0, -363,
4967 -363, -363, -363, -393, 454, -363, -363, -363, 0, 0,
4968 0, -393, -393, -393, 0, 0, -393, -393, -393, 0,
4969 -393, 0, 0, 0, 0, 0, 0, 0, -393, 0,
4970 -393, -393, 0, 0, 0, 0, 0, 0, 0, 0,
4971 -393, -393, 0, -393, -393, -393, -393, -393, 0, 0,
4972 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4973 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4974 0, -393, -393, 0, 0, 0, 0, 0, 0, 0,
4975 0, -393, -393, -393, -393, -393, -393, -393, -393, -393,
4976 -393, -393, -393, -393, 0, 0, 0, 0, -393, -393,
4977 -393, -393, 0, 0, -393, 0, 0, 0, 0, -393,
4978 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4979 0, 0, 0, -393, 0, 0, 0, 0, 0, 0,
4980 0, 0, 0, 0, 0, 0, 0, 0, -393, 0,
4981 -393, -393, -393, -393, -393, -393, -393, -393, -393, -393,
4982 0, 0, 0, 0, 0, -393, -393, -393, -393, -394,
4983 0, -393, -393, -393, 0, 0, 0, -394, -394, -394,
4984 0, 0, -394, -394, -394, 0, -394, 0, 0, 0,
4985 0, 0, 0, 0, -394, 0, -394, -394, 0, 0,
4986 0, 0, 0, 0, 0, 0, -394, -394, 0, -394,
4987 -394, -394, -394, -394, 0, 0, 0, 0, 0, 0,
4988 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4989 0, 0, 0, 0, 0, 0, 0, -394, -394, 0,
4990 0, 0, 0, 0, 0, 0, 0, -394, -394, -394,
4991 -394, -394, -394, -394, -394, -394, -394, -394, -394, -394,
4992 0, 0, 0, 0, -394, -394, -394, -394, 0, 0,
4993 -394, 0, 0, 0, 0, -394, 0, 0, 0, 0,
4994 0, 0, 0, 0, 0, 0, 0, 0, 0, -394,
4995 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
4996 0, 0, 0, 0, -394, 0, -394, -394, -394, -394,
4997 -394, -394, -394, -394, -394, -394, 0, 0, 0, 0,
4998 0, -394, -394, -394, -394, -360, 0, -394, -394, -394,
4999 0, 0, 0, -360, -360, -360, 0, 0, -360, -360,
5000 -360, 0, -360, 0, 0, 0, 0, 0, 0, 0,
5001 -360, 0, -360, -360, 0, 0, 0, 0, 0, 0,
5002 0, 0, -360, -360, 0, -360, -360, -360, -360, -360,
5003 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5004 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5005 0, 0, 0, -360, -360, 0, 0, 0, 0, 0,
5006 0, 0, 0, -360, -360, -360, -360, -360, -360, -360,
5007 -360, -360, -360, -360, -360, -360, 0, 0, 0, 0,
5008 -360, -360, -360, -360, 0, 0, -360, 0, 0, 0,
5009 0, -360, 0, 0, 0, 0, 0, 0, 0, 0,
5010 0, 0, 0, 0, 0, -360, 0, 0, 0, 0,
5011 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5012 -360, 0, -360, -360, -360, -360, -360, -360, -360, -360,
5013 -360, -360, 0, 0, 0, 0, 0, -360, -360, -360,
5014 -360, -801, 0, -360, -360, -360, 0, 0, 0, -801,
5015 -801, -801, 0, 0, 0, -801, -801, 0, -801, 0,
5016 0, 0, 0, 0, 0, 0, -801, -801, 0, 0,
5017 0, 0, 0, 0, 0, 0, 0, 0, -801, -801,
5018 0, -801, -801, -801, -801, -801, 0, 0, 0, 0,
5019 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5020 0, 0, 0, 0, 0, 0, 0, 0, 0, -801,
5021 -801, 0, 0, 0, 0, 0, 0, 0, 0, -801,
5022 -801, -801, -801, -801, -801, -801, -801, -801, -801, -801,
5023 -801, -801, 0, 0, 0, 0, -801, -801, -801, -801,
5024 0, 821, -801, 0, 0, 0, 0, 0, 0, 0,
5025 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5026 0, -801, 0, 0, 0, 0, 0, 0, 0, 0,
5027 0, 0, 0, 0, 0, -146, -801, 0, -801, -801,
5028 -801, -801, -801, -801, -801, -801, -801, -801, 0, 0,
5029 0, 0, -801, -801, -801, -801, -801, -356, 0, -801,
5030 0, -801, 0, 0, 0, -356, -356, -356, 0, 0,
5031 0, -356, -356, 0, -356, 0, 0, 0, 0, 0,
5032 0, 0, -356, 0, 0, 0, 0, 0, 0, 0,
5033 0, 0, 0, 0, -356, -356, 0, -356, -356, -356,
5034 -356, -356, 0, 0, 0, 0, 0, 0, 0, 0,
5035 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5036 0, 0, 0, 0, 0, -356, -356, 0, 0, 0,
5037 0, 0, 0, 0, 0, -356, -356, -356, -356, -356,
5038 -356, -356, -356, -356, -356, -356, -356, -356, 0, 0,
5039 0, 0, -356, -356, -356, -356, 0, 822, -356, 0,
5040 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5041 0, 0, 0, 0, 0, 0, 0, -356, 0, 0,
5042 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5043 0, -147, -356, 0, -356, -356, -356, -356, -356, -356,
5044 -356, -356, -356, -356, 0, 0, 0, 0, 823, -356,
5045 -356, -356, -138, -356, 0, -356, 0, -356, 0, 0,
5046 0, -356, -356, -356, 0, 0, 0, -356, -356, 0,
5047 -356, 0, 0, 0, 0, 0, 0, 0, -356, 0,
5048 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5049 -356, -356, 0, -356, -356, -356, -356, -356, 0, 0,
5050 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5051 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5052 0, -356, -356, 0, 0, 0, 0, 0, 0, 0,
5053 0, -356, -356, -356, -356, -356, -356, -356, -356, -356,
5054 -356, -356, -356, -356, 0, 0, 0, 0, -356, -356,
5055 -356, -356, 0, 822, -356, 0, 0, 0, 0, 0,
5056 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5057 0, 0, 0, -356, 0, 0, 0, 0, 0, 0,
5058 0, 0, 0, 0, 0, 0, 0, -147, -356, 0,
5059 -356, -356, -356, -356, -356, -356, -356, -356, -356, -356,
5060 0, 0, 0, 0, 823, -356, -356, -356, -356, 0,
5061 0, -356, 3, -356, 4, 5, 6, 7, 8, -819,
5062 -819, -819, 9, 10, 0, 0, -819, 11, 0, 12,
5063 13, 14, 15, 16, 17, 18, 0, 0, 0, 0,
5064 0, 19, 20, 21, 22, 23, 24, 25, 0, 0,
5065 26, 0, 0, 0, 0, 0, 27, 28, 268, 30,
5066 31, 32, 33, 34, 35, 36, 37, 38, 39, 0,
5067 40, 41, 42, 43, 44, 45, 46, 0, 0, -819,
5068 0, 0, 0, 0, 0, 0, 0, 47, 48, 0,
5069 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5070 0, 0, 49, 50, 0, 0, 0, 0, 0, 0,
5071 51, 0, 0, 52, 53, 54, 55, 0, 56, 0,
5072 0, 57, 58, 59, 60, 61, 62, 63, 64, 65,
5073 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5074 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5075 0, 0, 0, 0, 0, 0, 0, 0, 66, 67,
5076 68, 0, 0, 0, 3, -819, 4, 5, 6, 7,
5077 8, -819, 0, -819, 9, 10, 0, -819, -819, 11,
5078 0, 12, 13, 14, 15, 16, 17, 18, 0, 0,
5079 0, 0, 0, 19, 20, 21, 22, 23, 24, 25,
5080 0, 0, 26, 0, 0, 0, 0, 0, 27, 28,
5081 268, 30, 31, 32, 33, 34, 35, 36, 37, 38,
5082 39, 0, 40, 41, 42, 43, 44, 45, 46, 0,
5083 0, -819, 0, 0, 0, 0, 0, 0, 0, 47,
5084 48, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5085 0, 0, 0, 0, 49, 50, 0, 0, 0, 0,
5086 0, 0, 51, 0, 0, 52, 53, 54, 55, 0,
5087 56, 0, 0, 57, 58, 59, 60, 61, 62, 63,
5088 64, 65, 0, 0, 0, 0, 0, 0, 0, 0,
5089 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5090 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5091 66, 67, 68, 0, 0, 0, 3, -819, 4, 5,
5092 6, 7, 8, -819, 0, -819, 9, 10, 0, 0,
5093 -819, 11, -819, 12, 13, 14, 15, 16, 17, 18,
5094 0, 0, 0, 0, 0, 19, 20, 21, 22, 23,
5095 24, 25, 0, 0, 26, 0, 0, 0, 0, 0,
5096 27, 28, 268, 30, 31, 32, 33, 34, 35, 36,
5097 37, 38, 39, 0, 40, 41, 42, 43, 44, 45,
5098 46, 0, 0, -819, 0, 0, 0, 0, 0, 0,
5099 0, 47, 48, 0, 0, 0, 0, 0, 0, 0,
5100 0, 0, 0, 0, 0, 0, 49, 50, 0, 0,
5101 0, 0, 0, 0, 51, 0, 0, 52, 53, 54,
5102 55, 0, 56, 0, 0, 57, 58, 59, 60, 61,
5103 62, 63, 64, 65, 0, 0, 0, 0, 0, 0,
5104 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5105 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5106 0, 0, 66, 67, 68, 0, 0, 0, 3, -819,
5107 4, 5, 6, 7, 8, -819, 0, -819, 9, 10,
5108 0, 0, -819, 11, 0, 12, 13, 14, 15, 16,
5109 17, 18, -819, 0, 0, 0, 0, 19, 20, 21,
5110 22, 23, 24, 25, 0, 0, 26, 0, 0, 0,
5111 0, 0, 27, 28, 268, 30, 31, 32, 33, 34,
5112 35, 36, 37, 38, 39, 0, 40, 41, 42, 43,
5113 44, 45, 46, 0, 0, -819, 0, 0, 0, 0,
5114 0, 0, 0, 47, 48, 0, 0, 0, 0, 0,
5115 0, 0, 0, 0, 0, 0, 0, 0, 49, 50,
5116 0, 0, 0, 0, 0, 0, 51, 0, 0, 52,
5117 53, 54, 55, 0, 56, 0, 0, 57, 58, 59,
5118 60, 61, 62, 63, 64, 65, 0, 0, 0, 0,
5119 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5120 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5121 0, 0, 0, 0, 66, 67, 68, 0, 0, 0,
5122 3, -819, 4, 5, 6, 7, 8, -819, 0, -819,
5123 9, 10, 0, 0, -819, 11, 0, 12, 13, 14,
5124 15, 16, 17, 18, 0, 0, 0, 0, 0, 19,
5125 20, 21, 22, 23, 24, 25, 0, 0, 26, 0,
5126 0, 0, 0, 0, 27, 28, 268, 30, 31, 32,
5127 33, 34, 35, 36, 37, 38, 39, 0, 40, 41,
5128 42, 43, 44, 45, 46, 0, 0, -819, 0, 0,
5129 0, 0, 0, 0, 0, 47, 48, 0, 0, 0,
5130 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5131 49, 50, 0, 0, 0, 0, 0, 0, 51, 0,
5132 0, 52, 53, 54, 55, 0, 56, 0, 0, 57,
5133 58, 59, 60, 61, 62, 63, 64, 65, 0, 0,
5134 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5135 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5136 0, 0, 0, 0, 0, 0, 66, 67, 68, 0,
5137 0, 0, 3, -819, 4, 5, 6, 7, 8, -819,
5138 -819, -819, 9, 10, 0, 0, 0, 11, 0, 12,
5139 13, 14, 15, 16, 17, 18, 0, 0, 0, 0,
5140 0, 19, 20, 21, 22, 23, 24, 25, 0, 0,
5141 26, 0, 0, 0, 0, 0, 27, 28, 268, 30,
5142 31, 32, 33, 34, 35, 36, 37, 38, 39, 0,
5143 40, 41, 42, 43, 44, 45, 46, 0, 0, -819,
5144 0, 0, 0, 0, 0, 0, 0, 47, 48, 0,
5145 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5146 0, 0, 49, 50, 0, 0, 0, 0, 0, 0,
5147 51, 0, 0, 52, 53, 54, 55, 0, 56, 0,
5148 0, 57, 58, 59, 60, 61, 62, 63, 64, 65,
5149 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5150 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5151 0, 0, 0, 0, 0, 0, 0, 0, 66, 67,
5152 68, 0, 0, 0, 3, -819, 4, 5, 6, 7,
5153 8, -819, 0, -819, 9, 10, 0, 0, 0, 11,
5154 0, 12, 13, 14, 15, 16, 17, 18, 0, 0,
5155 0, 0, 0, 19, 20, 21, 22, 23, 24, 25,
5156 0, 0, 26, 0, 0, 0, 0, 0, 27, 28,
5157 268, 30, 31, 32, 33, 34, 35, 36, 37, 38,
5158 39, 0, 40, 41, 42, 43, 44, 45, 46, 0,
5159 0, -819, 0, 0, 0, 0, 0, 0, 0, 47,
5160 48, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5161 0, 0, 0, 0, 49, 50, 0, 0, 0, 0,
5162 0, 0, 51, 0, 0, 52, 53, 54, 55, 0,
5163 56, 0, 0, 57, 58, 59, 60, 61, 62, 63,
5164 64, 65, 0, 0, 0, 0, 0, 0, 0, 0,
5165 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5166 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5167 66, 67, 68, 0, 0, 0, 3, -819, 4, 5,
5168 6, 7, 8, -819, 0, 0, 9, 10, 0, 0,
5169 0, 11, 0, 12, 13, 14, 15, 16, 17, 18,
5170 0, 0, 0, 0, 0, 19, 20, 21, 22, 23,
5171 24, 25, 0, 0, 26, 0, 0, 0, 0, 0,
5172 27, 28, 268, 30, 31, 32, 33, 34, 35, 36,
5173 37, 38, 39, 0, 40, 41, 42, 43, 44, 45,
5174 46, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5175 0, 47, 48, 0, 0, 0, 0, 0, 0, 0,
5176 0, 0, 0, 0, 0, 0, 49, 50, 0, 0,
5177 0, 0, 0, 0, 51, 0, 0, 269, 53, 54,
5178 55, 0, 56, 0, 0, 57, 58, 59, 60, 61,
5179 62, 63, 64, 65, 0, 0, 0, 0, 0, 0,
5180 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5181 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5182 0, 0, 66, 67, 68, 0, 0, 0, 0, -819,
5183 0, 0, 0, -819, 3, -819, 4, 5, 6, 7,
5184 8, 0, 0, 0, 9, 10, 0, 0, 0, 11,
5185 0, 12, 13, 14, 15, 16, 17, 18, 0, 0,
5186 0, 0, 0, 19, 20, 21, 22, 23, 24, 25,
5187 0, 0, 26, 0, 0, 0, 0, 0, 27, 28,
5188 268, 30, 31, 32, 33, 34, 35, 36, 37, 38,
5189 39, 0, 40, 41, 42, 43, 44, 45, 46, 0,
5190 0, 0, 0, 0, 0, 0, 0, 0, 0, 47,
5191 48, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5192 0, 0, 0, 0, 49, 50, 0, 0, 0, 0,
5193 0, 0, 51, 0, 0, 52, 53, 54, 55, 0,
5194 56, 0, 0, 57, 58, 59, 60, 61, 62, 63,
5195 64, 65, 0, 0, 0, 0, 0, 0, 0, 0,
5196 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5197 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5198 66, 67, 68, 0, 0, 0, 0, -819, 0, 0,
5199 0, -819, 3, -819, 4, 5, 6, 7, 8, 0,
5200 0, 0, 9, 10, 0, 0, 0, 11, 0, 12,
5201 13, 14, 15, 16, 17, 18, 0, 0, 0, 0,
5202 0, 19, 20, 21, 22, 23, 24, 25, 0, 0,
5203 26, 0, 0, 0, 0, 0, 27, 28, 29, 30,
5204 31, 32, 33, 34, 35, 36, 37, 38, 39, 0,
5205 40, 41, 42, 43, 44, 45, 46, 0, 0, 0,
5206 0, 0, 0, 0, 0, 0, 0, 47, 48, 0,
5207 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5208 0, 0, 49, 50, 0, 0, 0, 0, 0, 0,
5209 51, 0, 0, 52, 53, 54, 55, 0, 56, 0,
5210 0, 57, 58, 59, 60, 61, 62, 63, 64, 65,
5211 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5212 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5213 0, 0, 0, 0, 0, 0, 0, 0, 66, 67,
5214 68, 0, 0, -819, 3, -819, 4, 5, 6, 7,
5215 8, -819, 0, 0, 9, 10, 0, 0, 0, 11,
5216 0, 12, 13, 14, 15, 16, 17, 18, 0, 0,
5217 0, 0, 0, 19, 20, 21, 22, 23, 24, 25,
5218 0, 0, 26, 0, 0, 0, 0, 0, 27, 28,
5219 268, 30, 31, 32, 33, 34, 35, 36, 37, 38,
5220 39, 0, 40, 41, 42, 43, 44, 45, 46, 0,
5221 0, 0, 0, 0, 0, 0, 0, 0, 0, 47,
5222 48, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5223 0, 0, 0, 0, 49, 50, 0, 0, 0, 0,
5224 0, 0, 51, 0, 0, 52, 53, 54, 55, 0,
5225 56, 0, 0, 57, 58, 59, 60, 61, 62, 63,
5226 64, 65, 0, 0, 0, 0, 0, 0, 0, 0,
5227 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5228 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5229 66, 67, 68, 0, 0, -819, 398, -819, 4, 5,
5230 6, 0, 8, -819, 0, 0, 9, 10, 0, 0,
5231 0, 11, -3, 12, 13, 14, 15, 16, 17, 18,
5232 0, 0, 0, 0, 0, 19, 20, 21, 22, 23,
5233 24, 25, 0, 0, 26, 0, 0, 0, 0, 0,
5234 0, 28, 0, 0, 31, 32, 33, 34, 35, 36,
5235 37, 38, 39, 0, 40, 41, 42, 43, 44, 45,
5236 46, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5237 0, 47, 48, 0, 0, 0, 0, 0, 0, 0,
5238 0, 0, 0, 0, 0, 0, 49, 50, 0, 0,
5239 0, 0, 0, 0, 249, 0, 0, 250, 53, 54,
5240 55, 0, 0, 0, 0, 57, 58, 59, 60, 61,
5241 62, 63, 64, 65, 0, 0, 0, 0, 0, 0,
5242 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5243 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5244 0, 0, 66, 67, 68, 0, 0, 0, 0, 325,
5245 0, 0, 0, 0, 0, 326, 147, 148, 149, 150,
5246 151, 152, 153, 154, 155, 156, 157, 158, 159, 160,
5247 161, 162, 163, 164, 165, 166, 167, 168, 169, 170,
5248 0, 0, 0, 171, 172, 173, 428, 429, 430, 431,
5249 178, 179, 180, 0, 0, 0, 0, 0, 181, 182,
5250 183, 184, 432, 433, 434, 435, 189, 36, 37, 436,
5251 39, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5252 0, 0, 0, 0, 0, 0, 0, 0, 0, 191,
5253 192, 193, 194, 195, 196, 197, 198, 199, 0, 0,
5254 200, 201, 0, 0, 0, 0, 202, 203, 204, 205,
5255 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5256 206, 207, 0, 0, 0, 0, 0, 0, 0, 0,
5257 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5258 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5259 208, 209, 210, 211, 212, 213, 214, 215, 216, 217,
5260 0, 218, 219, 0, 0, 0, 0, 0, 0, 220,
5261 437, 147, 148, 149, 150, 151, 152, 153, 154, 155,
5262 156, 157, 158, 159, 160, 161, 162, 163, 164, 165,
5263 166, 167, 168, 169, 170, 0, 0, 0, 171, 172,
5264 173, 174, 175, 176, 177, 178, 179, 180, 0, 0,
5265 0, 0, 0, 181, 182, 183, 184, 185, 186, 187,
5266 188, 189, 36, 37, 190, 39, 0, 0, 0, 0,
5267 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5268 0, 0, 0, 0, 191, 192, 193, 194, 195, 196,
5269 197, 198, 199, 0, 0, 200, 201, 0, 0, 0,
5270 0, 202, 203, 204, 205, 0, 0, 0, 0, 0,
5271 0, 0, 0, 0, 0, 206, 207, 0, 0, 0,
5272 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5273 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5274 0, 0, 0, 0, 0, 208, 209, 210, 211, 212,
5275 213, 214, 215, 216, 217, 0, 218, 219, 0, 0,
5276 0, 0, 0, 0, 220, 147, 148, 149, 150, 151,
5277 152, 153, 154, 155, 156, 157, 158, 159, 160, 161,
5278 162, 163, 164, 165, 166, 167, 168, 169, 170, 0,
5279 0, 0, 171, 172, 173, 174, 175, 176, 177, 178,
5280 179, 180, 0, 0, 0, 0, 0, 181, 182, 183,
5281 184, 185, 186, 187, 188, 189, 237, 0, 190, 0,
5282 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5283 0, 0, 0, 0, 0, 0, 0, 0, 191, 192,
5284 193, 194, 195, 196, 197, 198, 199, 0, 0, 200,
5285 201, 0, 0, 0, 0, 202, 203, 204, 205, 0,
5286 0, 0, 0, 0, 0, 0, 0, 0, 0, 206,
5287 207, 0, 0, 58, 0, 0, 0, 0, 0, 0,
5288 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5289 0, 0, 0, 0, 0, 0, 0, 0, 0, 208,
5290 209, 210, 211, 212, 213, 214, 215, 216, 217, 0,
5291 218, 219, 0, 0, 0, 0, 0, 0, 220, 147,
5292 148, 149, 150, 151, 152, 153, 154, 155, 156, 157,
5293 158, 159, 160, 161, 162, 163, 164, 165, 166, 167,
5294 168, 169, 170, 0, 0, 0, 171, 172, 173, 174,
5295 175, 176, 177, 178, 179, 180, 0, 0, 0, 0,
5296 0, 181, 182, 183, 184, 185, 186, 187, 188, 189,
5297 0, 0, 190, 0, 0, 0, 0, 0, 0, 0,
5298 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5299 0, 0, 191, 192, 193, 194, 195, 196, 197, 198,
5300 199, 0, 0, 200, 201, 0, 0, 0, 0, 202,
5301 203, 204, 205, 0, 0, 0, 0, 0, 0, 0,
5302 0, 0, 0, 206, 207, 0, 0, 58, 0, 0,
5303 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5304 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5305 0, 0, 0, 208, 209, 210, 211, 212, 213, 214,
5306 215, 216, 217, 0, 218, 219, 0, 0, 0, 0,
5307 0, 0, 220, 147, 148, 149, 150, 151, 152, 153,
5308 154, 155, 156, 157, 158, 159, 160, 161, 162, 163,
5309 164, 165, 166, 167, 168, 169, 170, 0, 0, 0,
5310 171, 172, 173, 174, 175, 176, 177, 178, 179, 180,
5311 0, 0, 0, 0, 0, 181, 182, 183, 184, 185,
5312 186, 187, 188, 189, 0, 0, 190, 0, 0, 0,
5313 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5314 0, 0, 0, 0, 0, 0, 191, 192, 193, 194,
5315 195, 196, 197, 198, 199, 0, 0, 200, 201, 0,
5316 0, 0, 0, 202, 203, 204, 205, 0, 0, 0,
5317 0, 0, 0, 0, 0, 0, 0, 206, 207, 0,
5318 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5319 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5320 0, 0, 0, 0, 0, 0, 0, 208, 209, 210,
5321 211, 212, 213, 214, 215, 216, 217, 0, 218, 219,
5322 4, 5, 6, 0, 8, 0, 220, 0, 9, 10,
5323 0, 0, 0, 11, 0, 12, 13, 14, 245, 246,
5324 17, 18, 0, 0, 0, 0, 0, 19, 20, 247,
5325 22, 23, 24, 25, 0, 0, 248, 0, 0, 0,
5326 0, 0, 0, 295, 0, 0, 31, 32, 33, 34,
5327 35, 36, 37, 38, 39, 0, 40, 41, 42, 43,
5328 44, 45, 46, 0, 0, 0, 0, 0, 0, 0,
5329 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5330 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5331 0, 0, 0, 0, 0, 0, 296, 0, 0, 250,
5332 53, 54, 55, 0, 0, 0, 0, 57, 58, 59,
5333 60, 61, 62, 63, 64, 65, 0, 0, 4, 5,
5334 6, 0, 8, 0, 0, 0, 9, 10, 0, 0,
5335 0, 11, 0, 12, 13, 14, 15, 16, 17, 18,
5336 0, 0, 0, 0, 297, 19, 20, 21, 22, 23,
5337 24, 25, 605, 0, 248, 0, 0, 0, 0, 0,
5338 0, 28, 0, 0, 31, 32, 33, 34, 35, 36,
5339 37, 38, 39, 278, 40, 41, 42, 43, 44, 45,
5340 46, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5341 0, 47, 48, 0, 0, 0, 0, 0, 0, 0,
5342 0, 0, 0, 0, 0, 0, 49, 50, 0, 0,
5343 0, 0, 0, 0, 249, 0, 0, 250, 53, 54,
5344 55, 0, 279, 280, 444, 57, 58, 281, 60, 61,
5345 62, 63, 64, 65, 0, 0, 0, 0, 0, 0,
5346 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5347 0, 0, 0, 0, 0, 0, 0, 4, 5, 6,
5348 0, 8, 66, 251, 68, 9, 10, 0, 0, 234,
5349 11, 0, 12, 13, 14, 15, 16, 17, 18, 0,
5350 0, 0, 0, 0, 19, 20, 21, 22, 23, 24,
5351 25, 0, 0, 26, 0, 0, 0, 0, 0, 0,
5352 28, 0, 0, 31, 32, 33, 34, 35, 36, 37,
5353 38, 39, 0, 40, 41, 42, 43, 44, 45, 46,
5354 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5355 47, 48, 0, 0, 0, 0, 0, 0, 0, 0,
5356 0, 0, 0, 0, 0, 49, 50, 0, 0, 0,
5357 0, 0, 0, 249, 0, 0, 250, 53, 54, 55,
5358 0, 0, 0, 0, 57, 58, 59, 60, 61, 62,
5359 63, 64, 65, 0, 0, 0, 0, 0, 0, 0,
5360 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5361 0, 0, 0, 0, 3, 0, 4, 5, 6, 7,
5362 8, 66, 67, 68, 9, 10, 0, 0, 234, 11,
5363 0, 12, 13, 14, 15, 16, 17, 18, 0, 0,
5364 0, 0, 0, 19, 20, 21, 22, 23, 24, 25,
5365 0, 0, 26, 0, 0, 0, 0, 0, 27, 28,
5366 0, 30, 31, 32, 33, 34, 35, 36, 37, 38,
5367 39, 0, 40, 41, 42, 43, 44, 45, 46, 0,
5368 0, 0, 0, 0, 0, 0, 0, 0, 0, 47,
5369 48, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5370 0, 0, 0, 0, 49, 50, 0, 0, 0, 0,
5371 0, 0, 51, 0, 0, 52, 53, 54, 55, 0,
5372 56, 0, 0, 57, 58, 59, 60, 61, 62, 63,
5373 64, 65, 0, 0, 398, 0, 4, 5, 6, 0,
5374 8, 0, 0, 0, 9, 10, 0, 0, 0, 11,
5375 0, 12, 13, 14, 15, 16, 17, 18, 0, 0,
5376 66, 67, 68, 19, 20, 21, 22, 23, 24, 25,
5377 0, 0, 26, 0, 0, 0, 0, 0, 0, 28,
5378 0, 0, 31, 32, 33, 34, 35, 36, 37, 38,
5379 39, 0, 40, 41, 42, 43, 44, 45, 46, 0,
5380 0, 0, 0, 0, 0, 0, 0, 0, 0, 47,
5381 48, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5382 0, 0, 0, 0, 49, 50, 0, 0, 0, 0,
5383 0, 0, 249, 0, 0, 250, 53, 54, 55, 0,
5384 0, 0, 0, 57, 58, 59, 60, 61, 62, 63,
5385 64, 65, 0, 0, 0, 0, 4, 5, 6, 0,
5386 8, 0, 0, 0, 9, 10, 0, 0, 0, 11,
5387 0, 12, 13, 14, 15, 16, 17, 18, 0, 0,
5388 66, 67, 68, 19, 20, 21, 22, 23, 24, 25,
5389 0, 0, 248, 0, 0, 0, 0, 0, 0, 28,
5390 0, 0, 31, 32, 33, 34, 35, 36, 37, 38,
5391 39, 278, 40, 41, 42, 43, 44, 45, 46, 0,
5392 0, 0, 0, 0, 0, 0, 0, 0, 0, 47,
5393 48, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5394 0, 0, 0, 0, 49, 50, 0, 0, 0, 0,
5395 0, 0, 249, 0, 0, 250, 53, 54, 55, 0,
5396 279, 280, 444, 57, 58, 281, 60, 61, 62, 63,
5397 64, 65, 0, 0, 0, 0, 4, 5, 6, 0,
5398 8, 0, 0, 0, 9, 10, 0, 0, 0, 11,
5399 0, 12, 13, 14, 15, 16, 17, 18, 0, 0,
5400 66, 251, 68, 19, 20, 21, 22, 23, 24, 25,
5401 0, 0, 248, 0, 0, 0, 0, 0, 0, 28,
5402 0, 0, 31, 32, 33, 34, 35, 36, 37, 38,
5403 39, 278, 40, 41, 42, 43, 44, 45, 46, 0,
5404 0, 0, 0, 0, 0, 0, 0, 0, 0, 47,
5405 48, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5406 0, 0, 0, 0, 49, 464, 0, 0, 0, 0,
5407 0, 0, 249, 0, 0, 250, 53, 54, 55, 0,
5408 279, 280, 444, 57, 58, 281, 60, 61, 62, 63,
5409 64, 65, 0, 0, 0, 0, 4, 5, 6, 0,
5410 8, 0, 0, 0, 9, 10, 0, 0, 0, 11,
5411 0, 12, 13, 14, 245, 246, 17, 18, 0, 0,
5412 66, 251, 68, 19, 20, 247, 22, 23, 24, 25,
5413 0, 0, 248, 0, 0, 0, 0, 0, 0, 28,
5414 0, 0, 31, 32, 33, 34, 35, 36, 37, 38,
5415 39, 278, 40, 41, 42, 43, 44, 45, 46, 0,
5416 0, 0, 0, 0, 0, 0, 0, 0, 0, 47,
5417 48, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5418 0, 0, 0, 0, 49, 50, 0, 0, 0, 0,
5419 0, 0, 249, 0, 0, 250, 53, 54, 55, 0,
5420 279, 280, 444, 57, 58, 281, 60, 61, 62, 63,
5421 64, 65, 0, 0, 0, 0, 4, 5, 6, 0,
5422 8, 0, 0, 0, 9, 10, 0, 0, 0, 11,
5423 0, 12, 13, 14, 245, 246, 17, 18, 0, 0,
5424 66, 251, 68, 19, 20, 247, 22, 23, 24, 25,
5425 0, 0, 248, 0, 0, 0, 0, 0, 0, 28,
5426 0, 0, 31, 32, 33, 34, 35, 36, 37, 38,
5427 39, 278, 40, 41, 42, 43, 44, 45, 46, 0,
5428 0, 0, 0, 0, 0, 0, 0, 0, 0, 47,
5429 48, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5430 0, 0, 0, 0, 49, 464, 0, 0, 0, 0,
5431 0, 0, 249, 0, 0, 250, 53, 54, 55, 0,
5432 279, 280, 444, 57, 58, 281, 60, 61, 62, 63,
5433 64, 65, 0, 0, 0, 0, 4, 5, 6, 0,
5434 8, 0, 0, 0, 9, 10, 0, 0, 0, 11,
5435 0, 12, 13, 14, 245, 246, 17, 18, 0, 0,
5436 66, 251, 68, 19, 20, 247, 22, 23, 24, 25,
5437 0, 0, 248, 0, 0, 0, 0, 0, 0, 28,
5438 0, 0, 31, 32, 33, 34, 35, 36, 37, 38,
5439 39, 278, 40, 41, 42, 43, 44, 45, 46, 0,
5440 0, 0, 0, 0, 0, 0, 0, 0, 0, 47,
5441 48, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5442 0, 0, 0, 0, 49, 50, 0, 0, 0, 0,
5443 0, 0, 249, 0, 0, 250, 53, 54, 55, 0,
5444 279, 280, 0, 57, 58, 281, 60, 61, 62, 63,
5445 64, 65, 0, 0, 0, 0, 4, 5, 6, 0,
5446 8, 0, 0, 0, 9, 10, 0, 0, 0, 11,
5447 0, 12, 13, 14, 245, 246, 17, 18, 0, 0,
5448 66, 251, 68, 19, 20, 247, 22, 23, 24, 25,
5449 0, 0, 248, 0, 0, 0, 0, 0, 0, 28,
5450 0, 0, 31, 32, 33, 34, 35, 36, 37, 38,
5451 39, 278, 40, 41, 42, 43, 44, 45, 46, 0,
5452 0, 0, 0, 0, 0, 0, 0, 0, 0, 47,
5453 48, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5454 0, 0, 0, 0, 49, 50, 0, 0, 0, 0,
5455 0, 0, 249, 0, 0, 250, 53, 54, 55, 0,
5456 0, 280, 444, 57, 58, 281, 60, 61, 62, 63,
5457 64, 65, 0, 0, 0, 0, 4, 5, 6, 0,
5458 8, 0, 0, 0, 9, 10, 0, 0, 0, 11,
5459 0, 12, 13, 14, 245, 246, 17, 18, 0, 0,
5460 66, 251, 68, 19, 20, 247, 22, 23, 24, 25,
5461 0, 0, 248, 0, 0, 0, 0, 0, 0, 28,
5462 0, 0, 31, 32, 33, 34, 35, 36, 37, 38,
5463 39, 278, 40, 41, 42, 43, 44, 45, 46, 0,
5464 0, 0, 0, 0, 0, 0, 0, 0, 0, 47,
5465 48, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5466 0, 0, 0, 0, 49, 50, 0, 0, 0, 0,
5467 0, 0, 249, 0, 0, 250, 53, 54, 55, 0,
5468 0, 280, 0, 57, 58, 281, 60, 61, 62, 63,
5469 64, 65, 0, 0, 0, 0, 4, 5, 6, 0,
5470 8, 0, 0, 0, 9, 10, 0, 0, 0, 11,
5471 0, 12, 13, 14, 15, 16, 17, 18, 0, 0,
5472 66, 251, 68, 19, 20, 21, 22, 23, 24, 25,
5473 0, 0, 248, 0, 0, 0, 0, 0, 0, 28,
5474 0, 0, 31, 32, 33, 34, 35, 36, 37, 38,
5475 39, 0, 40, 41, 42, 43, 44, 45, 46, 0,
5476 0, 0, 0, 0, 0, 0, 0, 0, 0, 47,
5477 48, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5478 0, 0, 0, 0, 49, 50, 0, 0, 0, 0,
5479 0, 0, 249, 0, 0, 250, 53, 54, 55, 0,
5480 796, 0, 0, 57, 58, 59, 60, 61, 62, 63,
5481 64, 65, 0, 0, 0, 0, 4, 5, 6, 0,
5482 8, 0, 0, 0, 9, 10, 0, 0, 0, 11,
5483 0, 12, 13, 14, 15, 16, 17, 18, 0, 0,
5484 66, 251, 68, 19, 20, 21, 22, 23, 24, 25,
5485 0, 0, 248, 0, 0, 0, 0, 0, 0, 28,
5486 0, 0, 31, 32, 33, 34, 35, 36, 37, 38,
5487 39, 0, 40, 41, 42, 43, 44, 45, 46, 0,
5488 0, 0, 0, 0, 0, 0, 0, 0, 0, 47,
5489 48, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5490 0, 0, 0, 0, 49, 50, 0, 0, 0, 0,
5491 0, 0, 807, 0, 0, 250, 53, 54, 55, 0,
5492 796, 0, 0, 57, 58, 59, 60, 61, 62, 63,
5493 64, 65, 0, 0, 0, 0, 4, 5, 6, 0,
5494 8, 0, 0, 0, 9, 10, 0, 0, 0, 11,
5495 0, 12, 13, 14, 245, 246, 17, 18, 0, 0,
5496 66, 251, 68, 19, 20, 247, 22, 23, 24, 25,
5497 0, 0, 248, 0, 0, 0, 0, 0, 0, 28,
5498 0, 0, 31, 32, 33, 34, 35, 36, 37, 38,
5499 39, 0, 40, 41, 42, 43, 44, 45, 46, 0,
5500 0, 0, 0, 0, 0, 0, 0, 0, 0, 47,
5501 48, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5502 0, 0, 0, 0, 49, 50, 0, 0, 0, 0,
5503 0, 0, 249, 0, 0, 250, 53, 54, 55, 0,
5504 969, 0, 0, 57, 58, 59, 60, 61, 62, 63,
5505 64, 65, 0, 0, 0, 0, 4, 5, 6, 0,
5506 8, 0, 0, 0, 9, 10, 0, 0, 0, 11,
5507 0, 12, 13, 14, 245, 246, 17, 18, 0, 0,
5508 66, 251, 68, 19, 20, 247, 22, 23, 24, 25,
5509 0, 0, 248, 0, 0, 0, 0, 0, 0, 28,
5510 0, 0, 31, 32, 33, 34, 35, 36, 37, 38,
5511 39, 0, 40, 41, 42, 43, 44, 45, 46, 0,
5512 0, 0, 0, 0, 0, 0, 0, 0, 0, 47,
5513 48, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5514 0, 0, 0, 0, 49, 50, 0, 0, 0, 0,
5515 0, 0, 249, 0, 0, 250, 53, 54, 55, 0,
5516 1019, 0, 0, 57, 58, 59, 60, 61, 62, 63,
5517 64, 65, 0, 0, 0, 0, 4, 5, 6, 0,
5518 8, 0, 0, 0, 9, 10, 0, 0, 0, 11,
5519 0, 12, 13, 14, 245, 246, 17, 18, 0, 0,
5520 66, 251, 68, 19, 20, 247, 22, 23, 24, 25,
5521 0, 0, 248, 0, 0, 0, 0, 0, 0, 28,
5522 0, 0, 31, 32, 33, 34, 35, 36, 37, 38,
5523 39, 0, 40, 41, 42, 43, 44, 45, 46, 0,
5524 0, 0, 0, 0, 0, 0, 0, 0, 0, 47,
5525 48, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5526 0, 0, 0, 0, 49, 50, 0, 0, 0, 0,
5527 0, 0, 249, 0, 0, 250, 53, 54, 55, 0,
5528 796, 0, 0, 57, 58, 59, 60, 61, 62, 63,
5529 64, 65, 0, 0, 0, 0, 4, 5, 6, 0,
5530 8, 0, 0, 0, 9, 10, 0, 0, 0, 11,
5531 0, 12, 13, 14, 245, 246, 17, 18, 0, 0,
5532 66, 251, 68, 19, 20, 247, 22, 23, 24, 25,
5533 0, 0, 248, 0, 0, 0, 0, 0, 0, 28,
5534 0, 0, 31, 32, 33, 34, 35, 36, 37, 38,
5535 39, 0, 40, 41, 42, 43, 44, 45, 46, 0,
5536 0, 0, 0, 0, 0, 0, 0, 0, 0, 47,
5537 48, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5538 0, 0, 0, 0, 49, 50, 0, 0, 0, 0,
5539 0, 0, 249, 0, 0, 250, 53, 54, 55, 0,
5540 1139, 0, 0, 57, 58, 59, 60, 61, 62, 63,
5541 64, 65, 0, 0, 0, 0, 4, 5, 6, 0,
5542 8, 0, 0, 0, 9, 10, 0, 0, 0, 11,
5543 0, 12, 13, 14, 245, 246, 17, 18, 0, 0,
5544 66, 251, 68, 19, 20, 247, 22, 23, 24, 25,
5545 0, 0, 248, 0, 0, 0, 0, 0, 0, 28,
5546 0, 0, 31, 32, 33, 34, 35, 36, 37, 38,
5547 39, 0, 40, 41, 42, 43, 44, 45, 46, 0,
5548 0, 0, 0, 0, 0, 0, 0, 0, 0, 47,
5549 48, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5550 0, 0, 0, 0, 49, 50, 0, 0, 0, 0,
5551 0, 0, 249, 0, 0, 250, 53, 54, 55, 0,
5552 0, 0, 0, 57, 58, 59, 60, 61, 62, 63,
5553 64, 65, 0, 0, 0, 0, 4, 5, 6, 0,
5554 8, 0, 0, 0, 9, 10, 0, 0, 0, 11,
5555 0, 12, 13, 14, 15, 16, 17, 18, 0, 0,
5556 66, 251, 68, 19, 20, 21, 22, 23, 24, 25,
5557 0, 0, 248, 0, 0, 0, 0, 0, 0, 28,
5558 0, 0, 31, 32, 33, 34, 35, 36, 37, 38,
5559 39, 0, 40, 41, 42, 43, 44, 45, 46, 0,
5560 0, 0, 0, 0, 0, 0, 0, 0, 0, 47,
5561 48, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5562 0, 0, 0, 0, 49, 50, 0, 0, 0, 0,
5563 0, 0, 249, 0, 0, 250, 53, 54, 55, 0,
5564 0, 0, 0, 57, 58, 59, 60, 61, 62, 63,
5565 64, 65, 0, 0, 0, 0, 4, 5, 6, 0,
5566 8, 0, 0, 0, 9, 10, 0, 0, 0, 11,
5567 0, 12, 13, 14, 15, 16, 17, 18, 0, 0,
5568 66, 251, 68, 19, 20, 21, 22, 23, 24, 25,
5569 0, 0, 26, 0, 0, 0, 0, 0, 0, 28,
5570 0, 0, 31, 32, 33, 34, 35, 36, 37, 38,
5571 39, 0, 40, 41, 42, 43, 44, 45, 46, 0,
5572 0, 0, 0, 0, 0, 0, 0, 0, 0, 47,
5573 48, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5574 0, 0, 0, 0, 49, 50, 0, 0, 0, 0,
5575 0, 0, 249, 0, 0, 250, 53, 54, 55, 0,
5576 0, 0, 0, 57, 58, 59, 60, 61, 62, 63,
5577 64, 65, 0, 0, 0, 0, 4, 5, 6, 0,
5578 8, 0, 0, 0, 9, 10, 0, 0, 0, 11,
5579 0, 12, 13, 14, 15, 16, 17, 18, 0, 0,
5580 66, 67, 68, 19, 20, 21, 22, 23, 24, 25,
5581 0, 0, 778, 0, 0, 0, 0, 0, 0, 28,
5582 0, 0, 31, 32, 33, 34, 35, 36, 37, 38,
5583 39, 0, 40, 41, 42, 43, 44, 45, 46, 0,
5584 0, 0, 0, 0, 0, 0, 0, 0, 0, 47,
5585 48, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5586 0, 0, 0, 0, 49, 50, 0, 0, 0, 0,
5587 0, 0, 249, 0, 0, 250, 53, 54, 55, 0,
5588 0, 0, 0, 57, 58, 59, 60, 61, 62, 63,
5589 64, 65, 0, 0, 0, 0, 4, 5, 6, 0,
5590 8, 0, 0, 0, 9, 10, 0, 0, 0, 11,
5591 0, 12, 13, 14, 15, 16, 17, 18, 0, 0,
5592 66, 251, 68, 19, 20, 21, 22, 23, 24, 25,
5593 0, 0, 248, 0, 0, 0, 0, 0, 0, 28,
5594 0, 0, 31, 32, 33, 34, 35, 36, 37, 38,
5595 39, 0, 40, 41, 42, 43, 44, 45, 46, 0,
5596 0, 0, 0, 0, 0, 0, 0, 0, 0, 47,
5597 48, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5598 0, 0, 0, 0, 49, 50, 0, 0, 0, 0,
5599 0, 0, 807, 0, 0, 250, 53, 54, 55, 0,
5600 0, 0, 0, 57, 58, 59, 60, 61, 62, 63,
5601 64, 65, 0, 0, 0, 0, 4, 5, 6, 0,
5602 8, 0, 0, 0, 9, 10, 0, 0, 0, 11,
5603 0, 12, 13, 14, 245, 246, 17, 18, 0, 0,
5604 66, 251, 68, 19, 20, 247, 22, 23, 24, 25,
5605 0, 0, 882, 0, 0, 0, 0, 0, 0, 28,
5606 0, 0, 31, 32, 33, 34, 35, 36, 37, 38,
5607 39, 0, 40, 41, 42, 43, 44, 45, 46, 0,
5608 0, 0, 0, 0, 0, 0, 0, 0, 0, 47,
5609 48, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5610 0, 0, 0, 0, 49, 50, 0, 0, 0, 0,
5611 0, 0, 249, 0, 0, 250, 53, 54, 55, 0,
5612 0, 0, 0, 57, 58, 59, 60, 61, 62, 63,
5613 64, 65, 0, 0, 0, 0, 4, 5, 6, 0,
5614 8, 0, 0, 0, 9, 10, 0, 0, 0, 11,
5615 0, 12, 13, 14, 245, 246, 17, 18, 0, 0,
5616 66, 251, 68, 19, 20, 247, 22, 23, 24, 25,
5617 0, 0, 248, 0, 0, 0, 0, 0, 0, 295,
5618 0, 0, 31, 32, 33, 34, 35, 36, 37, 38,
5619 39, 0, 40, 41, 42, 43, 44, 45, 46, 0,
5620 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5621 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5622 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5623 0, 0, 296, 0, 0, 357, 53, 54, 55, 0,
5624 358, 0, 0, 57, 58, 59, 60, 61, 62, 63,
5625 64, 65, 0, 0, 4, 5, 6, 0, 8, 0,
5626 0, 0, 9, 10, 0, 0, 0, 11, 0, 12,
5627 13, 14, 245, 246, 17, 18, 0, 0, 0, 0,
5628 297, 19, 20, 247, 22, 23, 24, 25, 0, 0,
5629 248, 0, 0, 0, 0, 0, 0, 295, 0, 0,
5630 31, 32, 33, 34, 35, 36, 37, 38, 39, 0,
5631 40, 41, 42, 43, 44, 45, 46, 0, 0, 0,
5632 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5633 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5634 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5635 409, 0, 0, 52, 53, 54, 55, 0, 56, 0,
5636 0, 57, 58, 59, 60, 61, 62, 63, 64, 65,
5637 0, 0, 4, 5, 6, 0, 8, 0, 0, 0,
5638 9, 10, 0, 0, 0, 11, 0, 12, 13, 14,
5639 245, 246, 17, 18, 0, 0, 0, 0, 297, 19,
5640 20, 247, 22, 23, 24, 25, 0, 0, 248, 0,
5641 0, 0, 0, 0, 0, 295, 0, 0, 31, 32,
5642 33, 417, 35, 36, 37, 418, 39, 0, 40, 41,
5643 42, 43, 44, 45, 46, 0, 0, 0, 0, 0,
5644 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5645 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5646 0, 0, 0, 0, 419, 0, 0, 0, 420, 0,
5647 0, 250, 53, 54, 55, 0, 0, 0, 0, 57,
5648 58, 59, 60, 61, 62, 63, 64, 65, 0, 0,
5649 4, 5, 6, 0, 8, 0, 0, 0, 9, 10,
5650 0, 0, 0, 11, 0, 12, 13, 14, 245, 246,
5651 17, 18, 0, 0, 0, 0, 297, 19, 20, 247,
5652 22, 23, 24, 25, 0, 0, 248, 0, 0, 0,
5653 0, 0, 0, 295, 0, 0, 31, 32, 33, 417,
5654 35, 36, 37, 418, 39, 0, 40, 41, 42, 43,
5655 44, 45, 46, 0, 0, 0, 0, 0, 0, 0,
5656 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5657 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5658 0, 0, 0, 0, 0, 0, 420, 0, 0, 250,
5659 53, 54, 55, 0, 0, 0, 0, 57, 58, 59,
5660 60, 61, 62, 63, 64, 65, 0, 0, 4, 5,
5661 6, 0, 8, 0, 0, 0, 9, 10, 0, 0,
5662 0, 11, 0, 12, 13, 14, 245, 246, 17, 18,
5663 0, 0, 0, 0, 297, 19, 20, 247, 22, 23,
5664 24, 25, 0, 0, 248, 0, 0, 0, 0, 0,
5665 0, 295, 0, 0, 31, 32, 33, 34, 35, 36,
5666 37, 38, 39, 0, 40, 41, 42, 43, 44, 45,
5667 46, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5668 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5669 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5670 0, 0, 0, 0, 296, 0, 0, 357, 53, 54,
5671 55, 0, 0, 0, 0, 57, 58, 59, 60, 61,
5672 62, 63, 64, 65, 0, 0, 4, 5, 6, 0,
5673 8, 0, 0, 0, 9, 10, 0, 0, 0, 11,
5674 0, 12, 13, 14, 245, 246, 17, 18, 0, 0,
5675 0, 0, 297, 19, 20, 247, 22, 23, 24, 25,
5676 0, 0, 248, 0, 0, 0, 0, 0, 0, 295,
5677 0, 0, 31, 32, 33, 34, 35, 36, 37, 38,
5678 39, 0, 40, 41, 42, 43, 44, 45, 46, 0,
5679 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5680 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5681 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5682 0, 0, 1193, 0, 0, 250, 53, 54, 55, 0,
5683 0, 0, 0, 57, 58, 59, 60, 61, 62, 63,
5684 64, 65, 0, 0, 4, 5, 6, 0, 8, 0,
5685 0, 0, 9, 10, 0, 0, 0, 11, 0, 12,
5686 13, 14, 245, 246, 17, 18, 0, 0, 0, 0,
5687 297, 19, 20, 247, 22, 23, 24, 25, 0, 0,
5688 248, 0, 0, 0, 0, 0, 0, 295, 0, 0,
5689 31, 32, 33, 34, 35, 36, 37, 38, 39, 0,
5690 40, 41, 42, 43, 44, 45, 46, 0, 0, 0,
5691 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5692 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5693 0, 0, 0, 0, 0, 0, 0, 635, 636, 0,
5694 1295, 637, 0, 250, 53, 54, 55, 0, 0, 0,
5695 0, 57, 58, 59, 60, 61, 62, 63, 64, 65,
5696 0, 191, 192, 193, 194, 195, 196, 197, 198, 199,
5697 0, 0, 200, 201, 0, 0, 0, 0, 202, 203,
5698 204, 205, 0, 0, 0, 0, 0, 0, 297, 0,
5699 0, 0, 206, 207, 0, 0, 0, 0, 0, 0,
5700 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5701 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5702 0, 0, 208, 209, 210, 211, 212, 213, 214, 215,
5703 216, 217, 0, 218, 219, 643, 644, 0, 0, 645,
5704 0, 220, 0, 0, 0, 0, 0, 0, 0, 0,
5705 0, 0, 0, 0, 0, 0, 0, 0, 0, 191,
5706 192, 193, 194, 195, 196, 197, 198, 199, 0, 0,
5707 200, 201, 0, 0, 0, 0, 202, 203, 204, 205,
5708 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5709 206, 207, 0, 0, 0, 0, 0, 0, 0, 0,
5710 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5711 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5712 208, 209, 210, 211, 212, 213, 214, 215, 216, 217,
5713 0, 218, 219, 709, 636, 0, 0, 710, 0, 220,
5714 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5715 0, 0, 0, 0, 0, 0, 0, 191, 192, 193,
5716 194, 195, 196, 197, 198, 199, 0, 0, 200, 201,
5717 0, 0, 0, 0, 202, 203, 204, 205, 0, 0,
5718 0, 0, 0, 0, 0, 0, 0, 0, 206, 207,
5719 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5720 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5721 0, 0, 0, 0, 0, 0, 0, 0, 208, 209,
5722 210, 211, 212, 213, 214, 215, 216, 217, 0, 218,
5723 219, 713, 644, 0, 0, 714, 0, 220, 0, 0,
5724 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5725 0, 0, 0, 0, 0, 191, 192, 193, 194, 195,
5726 196, 197, 198, 199, 0, 0, 200, 201, 0, 0,
5727 0, 0, 202, 203, 204, 205, 0, 0, 0, 0,
5728 0, 0, 0, 0, 0, 0, 206, 207, 0, 0,
5729 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5730 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5731 0, 0, 0, 0, 0, 0, 208, 209, 210, 211,
5732 212, 213, 214, 215, 216, 217, 0, 218, 219, 731,
5733 636, 0, 0, 732, 0, 220, 0, 0, 0, 0,
5734 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5735 0, 0, 0, 191, 192, 193, 194, 195, 196, 197,
5736 198, 199, 0, 0, 200, 201, 0, 0, 0, 0,
5737 202, 203, 204, 205, 0, 0, 0, 0, 0, 0,
5738 0, 0, 0, 0, 206, 207, 0, 0, 0, 0,
5739 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5740 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5741 0, 0, 0, 0, 208, 209, 210, 211, 212, 213,
5742 214, 215, 216, 217, 0, 218, 219, 734, 644, 0,
5743 0, 735, 0, 220, 0, 0, 0, 0, 0, 0,
5744 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5745 0, 191, 192, 193, 194, 195, 196, 197, 198, 199,
5746 0, 0, 200, 201, 0, 0, 0, 0, 202, 203,
5747 204, 205, 0, 0, 0, 0, 0, 0, 0, 0,
5748 0, 0, 206, 207, 0, 0, 0, 0, 0, 0,
5749 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5750 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5751 0, 0, 208, 209, 210, 211, 212, 213, 214, 215,
5752 216, 217, 0, 218, 219, 709, 636, 0, 0, 749,
5753 0, 220, 0, 0, 0, 0, 0, 0, 0, 0,
5754 0, 0, 0, 0, 0, 0, 0, 0, 0, 191,
5755 192, 193, 194, 195, 196, 197, 198, 199, 0, 0,
5756 200, 201, 0, 0, 0, 0, 202, 203, 204, 205,
5757 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5758 206, 207, 0, 0, 0, 0, 0, 0, 0, 0,
5759 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5760 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5761 208, 209, 210, 211, 212, 213, 214, 215, 216, 217,
5762 0, 218, 219, 851, 636, 0, 0, 852, 0, 220,
5763 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5764 0, 0, 0, 0, 0, 0, 0, 191, 192, 193,
5765 194, 195, 196, 197, 198, 199, 0, 0, 200, 201,
5766 0, 0, 0, 0, 202, 203, 204, 205, 0, 0,
5767 0, 0, 0, 0, 0, 0, 0, 0, 206, 207,
5768 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5769 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5770 0, 0, 0, 0, 0, 0, 0, 0, 208, 209,
5771 210, 211, 212, 213, 214, 215, 216, 217, 0, 218,
5772 219, 854, 644, 0, 0, 855, 0, 220, 0, 0,
5773 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5774 0, 0, 0, 0, 0, 191, 192, 193, 194, 195,
5775 196, 197, 198, 199, 0, 0, 200, 201, 0, 0,
5776 0, 0, 202, 203, 204, 205, 0, 0, 0, 0,
5777 0, 0, 0, 0, 0, 0, 206, 207, 0, 0,
5778 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5779 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5780 0, 0, 0, 0, 0, 0, 208, 209, 210, 211,
5781 212, 213, 214, 215, 216, 217, 0, 218, 219, 860,
5782 636, 0, 0, 861, 0, 220, 0, 0, 0, 0,
5783 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5784 0, 0, 0, 191, 192, 193, 194, 195, 196, 197,
5785 198, 199, 0, 0, 200, 201, 0, 0, 0, 0,
5786 202, 203, 204, 205, 0, 0, 0, 0, 0, 0,
5787 0, 0, 0, 0, 206, 207, 0, 0, 0, 0,
5788 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5789 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5790 0, 0, 0, 0, 208, 209, 210, 211, 212, 213,
5791 214, 215, 216, 217, 0, 218, 219, 688, 644, 0,
5792 0, 689, 0, 220, 0, 0, 0, 0, 0, 0,
5793 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5794 0, 191, 192, 193, 194, 195, 196, 197, 198, 199,
5795 0, 0, 200, 201, 0, 0, 0, 0, 202, 203,
5796 204, 205, 0, 0, 0, 0, 0, 0, 0, 0,
5797 0, 0, 206, 207, 0, 0, 0, 0, 0, 0,
5798 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5799 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5800 0, 0, 208, 209, 210, 211, 212, 213, 214, 215,
5801 216, 217, 0, 218, 219, 1025, 636, 0, 0, 1026,
5802 0, 220, 0, 0, 0, 0, 0, 0, 0, 0,
5803 0, 0, 0, 0, 0, 0, 0, 0, 0, 191,
5804 192, 193, 194, 195, 196, 197, 198, 199, 0, 0,
5805 200, 201, 0, 0, 0, 0, 202, 203, 204, 205,
5806 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5807 206, 207, 0, 0, 0, 0, 0, 0, 0, 0,
5808 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5809 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5810 208, 209, 210, 211, 212, 213, 214, 215, 216, 217,
5811 0, 218, 219, 1028, 644, 0, 0, 1029, 0, 220,
5812 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5813 0, 0, 0, 0, 0, 0, 0, 191, 192, 193,
5814 194, 195, 196, 197, 198, 199, 0, 0, 200, 201,
5815 0, 0, 0, 0, 202, 203, 204, 205, 0, 0,
5816 0, 0, 0, 0, 0, 0, 0, 0, 206, 207,
5817 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5818 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5819 0, 0, 0, 0, 0, 0, 0, 0, 208, 209,
5820 210, 211, 212, 213, 214, 215, 216, 217, 0, 218,
5821 219, 1314, 636, 0, 0, 1315, 0, 220, 0, 0,
5822 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5823 0, 0, 0, 0, 0, 191, 192, 193, 194, 195,
5824 196, 197, 198, 199, 0, 0, 200, 201, 0, 0,
5825 0, 0, 202, 203, 204, 205, 0, 0, 0, 0,
5826 0, 0, 0, 0, 0, 0, 206, 207, 0, 0,
5827 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5828 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5829 0, 0, 0, 0, 0, 0, 208, 209, 210, 211,
5830 212, 213, 214, 215, 216, 217, 0, 218, 219, 1317,
5831 644, 0, 0, 1318, 0, 220, 0, 0, 0, 0,
5832 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5833 0, 0, 0, 191, 192, 193, 194, 195, 196, 197,
5834 198, 199, 0, 0, 200, 201, 0, 0, 0, 0,
5835 202, 203, 204, 205, 0, 0, 0, 0, 0, 0,
5836 0, 0, 0, 0, 206, 207, 0, 0, 0, 0,
5837 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5838 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5839 0, 0, 0, 0, 208, 209, 210, 211, 212, 213,
5840 214, 215, 216, 217, 0, 218, 219, 1362, 636, 0,
5841 0, 1363, 0, 220, 0, 0, 0, 0, 0, 0,
5842 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5843 0, 191, 192, 193, 194, 195, 196, 197, 198, 199,
5844 0, 0, 200, 201, 0, 0, 0, 0, 202, 203,
5845 204, 205, 0, 0, 0, 0, 0, 0, 0, 0,
5846 0, 0, 206, 207, 0, 0, 0, 0, 0, 0,
5847 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5848 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5849 0, 0, 208, 209, 210, 211, 212, 213, 214, 215,
5850 216, 217, 0, 218, 219, 0, 0, 0, 0, 0,
5854static const yytype_int16 yycheck[] =
5856 1, 70, 7, 58, 56, 107, 59, 54, 52, 53,
5857 762, 67, 101, 420, 89, 119, 58, 27, 402, 394,
5858 55, 7, 27, 54, 55, 510, 769, 104, 571, 118,
5859 107, 1, 342, 26, 70, 28, 839, 89, 338, 230,
5860 338, 27, 342, 608, 342, 288, 113, 114, 115, 594,
5861 293, 52, 53, 58, 594, 56, 108, 109, 110, 393,
5862 52, 395, 762, 30, 13, 14, 113, 114, 115, 111,
5863 849, 107, 764, 113, 114, 115, 56, 21, 592, 562,
5864 907, 595, 113, 114, 115, 819, 520, 598, 89, 623,
5865 507, 66, 63, 64, 65, 313, 314, 759, 0, 764,
5866 762, 26, 909, 29, 769, 84, 111, 108, 109, 110,
5867 111, 451, 692, 693, 489, 1089, 81, 25, 103, 104,
5868 81, 69, 107, 72, 458, 1030, 1031, 681, 1288, 469,
5869 684, 269, 101, 25, 13, 69, 25, 116, 718, 0,
5870 84, 98, 696, 13, 698, 1280, 100, 522, 100, 97,
5871 98, 945, 25, 25, 10, 69, 490, 113, 114, 115,
5872 13, 675, 707, 230, 98, 232, 83, 84, 257, 271,
5873 101, 605, 37, 38, 101, 151, 66, 1166, 13, 1,
5874 134, 1166, 134, 230, 98, 232, 155, 1030, 1031, 523,
5875 230, 154, 232, 1182, 25, 1180, 153, 123, 1358, 684,
5876 157, 232, 271, 13, 25, 153, 250, 541, 542, 157,
5877 56, 25, 68, 698, 303, 1350, 1190, 1191, 120, 357,
5878 137, 138, 13, 298, 155, 269, 151, 154, 281, 119,
5879 52, 53, 54, 55, 323, 271, 152, 1142, 154, 973,
5880 241, 1068, 13, 278, 279, 280, 298, 155, 27, 250,
5881 235, 236, 25, 28, 331, 332, 333, 334, 80, 81,
5882 1067, 1004, 1056, 155, 681, 672, 155, 154, 269, 752,
5883 753, 241, 239, 160, 828, 154, 232, 269, 1183, 696,
5884 13, 160, 155, 155, 154, 1190, 1191, 662, 253, 154,
5885 160, 252, 253, 286, 1088, 288, 1090, 298, 673, 1142,
5886 293, 154, 295, 247, 157, 407, 358, 160, 25, 13,
5887 254, 1300, 823, 357, 848, 1304, 1008, 1306, 536, 154,
5888 538, 1306, 297, 412, 155, 160, 403, 394, 329, 663,
5889 1030, 1031, 13, 1031, 155, 300, 157, 134, 1141, 13,
5890 674, 155, 419, 1008, 154, 859, 331, 332, 333, 334,
5891 160, 336, 337, 66, 394, 764, 357, 358, 155, 329,
5892 404, 405, 1141, 154, 155, 357, 775, 947, 948, 160,
5893 913, 407, 806, 953, 954, 154, 1365, 161, 358, 25,
5894 925, 160, 155, 154, 157, 925, 157, 454, 355, 160,
5895 395, 100, 957, 360, 1188, 1189, 397, 1302, 26, 1190,
5896 1191, 155, 100, 404, 405, 66, 119, 454, 230, 444,
5897 69, 828, 25, 154, 454, 134, 157, 134, 403, 241,
5898 100, 154, 489, 454, 907, 134, 909, 160, 250, 25,
5899 252, 253, 1085, 1086, 419, 989, 134, 154, 155, 98,
5900 157, 158, 1142, 100, 1142, 520, 991, 269, 157, 489,
5901 154, 825, 396, 458, 134, 522, 160, 155, 1038, 833,
5902 121, 122, 100, 52, 978, 100, 764, 56, 520, 479,
5903 505, 769, 507, 154, 479, 510, 507, 134, 69, 160,
5904 154, 100, 522, 1183, 727, 490, 160, 134, 134, 1154,
5905 1190, 1191, 1154, 479, 461, 462, 134, 498, 454, 134,
5906 161, 545, 112, 78, 989, 696, 100, 98, 154, 155,
5907 582, 1302, 158, 480, 458, 134, 588, 934, 523, 520,
5908 487, 134, 740, 151, 491, 492, 493, 745, 868, 157,
5909 605, 100, 1185, 1186, 1286, 357, 155, 542, 134, 879,
5910 134, 154, 155, 100, 545, 158, 1349, 603, 583, 1292,
5911 551, 591, 608, 605, 594, 100, 603, 593, 154, 155,
5912 109, 608, 158, 100, 69, 134, 15, 942, 603, 144,
5913 145, 146, 394, 608, 69, 397, 25, 134, 100, 100,
5914 100, 551, 404, 405, 1067, 1068, 1286, 971, 69, 134,
5915 155, 592, 141, 98, 595, 662, 157, 1006, 155, 1008,
5916 422, 1010, 1302, 98, 605, 58, 673, 941, 652, 943,
5917 654, 1354, 134, 134, 134, 134, 97, 98, 100, 655,
5918 608, 34, 662, 1288, 1286, 78, 1288, 1292, 450, 451,
5919 1292, 624, 157, 673, 155, 1297, 692, 693, 157, 52,
5920 788, 157, 69, 791, 1158, 467, 681, 469, 641, 684,
5921 681, 652, 134, 654, 729, 108, 100, 69, 663, 112,
5922 639, 696, 718, 698, 26, 696, 1050, 489, 647, 674,
5923 97, 98, 153, 69, 675, 56, 1219, 729, 1221, 26,
5924 1087, 157, 649, 738, 694, 97, 98, 997, 723, 694,
5925 134, 676, 1354, 1358, 1356, 639, 1358, 997, 1360, 997,
5926 522, 97, 98, 1154, 692, 693, 34, 69, 694, 58,
5927 1008, 155, 691, 154, 69, 1377, 52, 702, 159, 712,
5928 56, 100, 69, 545, 52, 134, 153, 816, 729, 78,
5929 718, 806, 100, 768, 727, 97, 98, 15, 705, 17,
5930 733, 26, 1151, 98, 78, 1154, 568, 1131, 100, 571,
5931 97, 98, 154, 1063, 806, 134, 158, 153, 69, 108,
5932 109, 796, 930, 1063, 932, 1063, 870, 711, 1282, 740,
5933 592, 742, 69, 595, 745, 746, 155, 134, 66, 856,
5934 1187, 858, 134, 158, 69, 778, 97, 98, 1331, 151,
5935 69, 153, 141, 828, 101, 157, 159, 828, 69, 152,
5936 69, 98, 56, 155, 151, 806, 153, 37, 38, 66,
5937 157, 846, 97, 98, 69, 274, 154, 155, 97, 98,
5938 642, 857, 157, 1207, 866, 647, 97, 98, 97, 98,
5939 652, 119, 654, 121, 122, 1286, 124, 1288, 154, 155,
5940 662, 1292, 153, 98, 916, 917, 1297, 155, 920, 69,
5941 922, 673, 924, 675, 821, 822, 1154, 161, 859, 78,
5942 853, 866, 829, 830, 121, 122, 151, 124, 153, 691,
5943 863, 856, 157, 858, 153, 942, 66, 97, 98, 1288,
5944 66, 67, 153, 151, 153, 925, 963, 134, 1297, 882,
5945 54, 947, 948, 715, 69, 1270, 134, 953, 954, 934,
5946 64, 65, 942, 1354, 1180, 1356, 134, 1358, 106, 1360,
5947 957, 1030, 1031, 155, 1190, 1191, 883, 884, 962, 886,
5948 887, 160, 957, 98, 1154, 712, 1377, 56, 69, 119,
5949 25, 121, 122, 153, 969, 121, 122, 1271, 943, 138,
5950 596, 977, 158, 979, 600, 894, 733, 1356, 1300, 1358,
5951 155, 1360, 1304, 155, 989, 155, 97, 98, 155, 947,
5952 948, 962, 134, 69, 152, 953, 954, 1023, 1377, 134,
5953 1089, 155, 939, 14, 15, 69, 158, 978, 963, 69,
5954 89, 90, 1038, 134, 1019, 952, 155, 1106, 40, 41,
5955 1288, 97, 98, 155, 1292, 454, 69, 1069, 1070, 1071,
5956 1072, 602, 155, 97, 98, 155, 465, 97, 98, 468,
5957 155, 1055, 153, 835, 473, 837, 52, 839, 155, 1054,
5958 1021, 1022, 1066, 1142, 97, 98, 66, 994, 52, 1030,
5959 1031, 154, 155, 152, 1027, 1023, 495, 859, 1093, 1092,
5960 52, 155, 54, 55, 1163, 57, 868, 153, 78, 650,
5961 1038, 1021, 1022, 155, 1055, 656, 657, 879, 1288, 153,
5962 1358, 1180, 1292, 153, 13, 1066, 853, 1297, 1017, 1018,
5963 17, 1190, 1191, 25, 69, 152, 863, 155, 1130, 119,
5964 153, 121, 122, 155, 1085, 1086, 299, 300, 1089, 134,
5965 102, 913, 152, 1137, 1138, 66, 1089, 1090, 1200, 1143,
5966 1177, 44, 97, 98, 1139, 1106, 1195, 44, 1, 926,
5967 927, 1155, 142, 143, 144, 145, 146, 576, 935, 44,
5968 942, 938, 155, 940, 1354, 56, 1356, 155, 1358, 1130,
5969 1360, 1200, 44, 1134, 134, 957, 1137, 1138, 66, 136,
5970 962, 1142, 1143, 159, 8, 604, 1218, 1377, 119, 15,
5971 121, 122, 1145, 124, 1155, 1199, 978, 1158, 153, 52,
5972 53, 155, 1163, 56, 1200, 1166, 52, 155, 155, 1213,
5973 155, 155, 1165, 155, 67, 1168, 152, 155, 1230, 1180,
5974 155, 1182, 783, 155, 1185, 1186, 787, 101, 155, 1190,
5975 1191, 119, 1177, 121, 122, 1188, 89, 9, 1199, 1252,
5976 1277, 1278, 52, 1270, 52, 1172, 54, 55, 56, 57,
5977 103, 104, 1213, 139, 107, 108, 109, 110, 139, 155,
5978 113, 114, 115, 1045, 52, 1047, 155, 686, 155, 1230,
5979 1270, 692, 693, 1055, 1227, 59, 60, 61, 62, 1291,
5980 1027, 152, 101, 78, 1066, 66, 847, 56, 1249, 850,
5981 160, 158, 155, 1075, 1076, 716, 717, 718, 155, 155,
5982 95, 96, 78, 864, 155, 155, 1271, 155, 155, 66,
5983 155, 152, 1265, 1266, 1267, 56, 139, 1321, 155, 95,
5984 96, 1282, 155, 1229, 52, 1231, 54, 55, 56, 57,
5985 1291, 241, 1277, 1278, 155, 155, 1134, 756, 119, 1300,
5986 121, 122, 1089, 1304, 155, 1306, 141, 142, 143, 144,
5987 145, 146, 1134, 157, 157, 1137, 1138, 155, 329, 1141,
5988 1321, 1143, 119, 1316, 121, 122, 142, 143, 144, 145,
5989 146, 494, 1325, 1155, 102, 866, 1158, 230, 498, 232,
5990 106, 603, 235, 236, 54, 55, 108, 57, 241, 110,
5991 98, 1344, 480, 958, 64, 65, 52, 250, 54, 55,
5992 56, 57, 691, 964, 1365, 977, 967, 40, 41, 42,
5993 43, 44, 1202, 974, 752, 907, 269, 1199, 1165, 980,
5994 1202, 1168, 1286, 1228, 1154, 1292, 1076, 1227, 1334, 1335,
5995 1350, 1213, 1338, 1339, 871, 353, 1342, 1219, 1349, 1221,
5996 1249, 1188, 1183, 1183, 1272, 298, 865, 1030, 1031, 122,
5997 1179, 52, 1274, 54, 55, 56, 57, 58, 538, 878,
5998 881, 880, 111, 762, 769, 1371, 1372, 1373, 1374, 1344,
5999 118, -1, -1, -1, 1380, -1, 329, 78, 331, 332,
6000 333, 334, -1, 336, 337, -1, 905, -1, 1270, -1,
6001 1272, 92, 1274, -1, -1, -1, -1, -1, 1059, -1,
6002 1282, 102, 1085, 1086, 357, 358, 1089, 108, 109, -1,
6003 52, -1, 54, 55, 56, 57, -1, -1, 1265, 1266,
6004 1267, -1, -1, 1106, -1, 1, 947, 948, -1, -1,
6005 -1, -1, 953, 954, -1, -1, -1, -1, -1, 1321,
6006 141, 394, -1, -1, 397, -1, -1, -1, -1, 1331,
6007 403, 404, 405, -1, -1, -1, -1, -1, -1, 1142,
6008 102, -1, -1, -1, -1, 107, 419, 1349, -1, 1316,
6009 -1, 992, 993, -1, 995, 996, 52, 53, -1, -1,
6010 1163, -1, -1, 1166, -1, -1, -1, -1, -1, -1,
6011 -1, 67, -1, 33, 34, 35, 36, 1180, -1, 1182,
6012 -1, 454, 1185, 1186, -1, -1, -1, 1190, 1191, 49,
6013 50, 51, -1, -1, -1, -1, -1, 1038, -1, 59,
6014 60, 61, 62, 63, -1, -1, -1, 103, 104, -1,
6015 -1, 107, -1, -1, -1, -1, 489, 113, 114, 115,
6016 -1, 1062, -1, -1, -1, 498, -1, -1, 1209, -1,
6017 1030, 1031, -1, -1, 52, -1, 54, 55, 56, 57,
6018 58, -1, -1, -1, -1, -1, 1249, 520, 78, 522,
6019 110, 111, 112, 113, 114, 115, 116, 117, 118, -1,
6020 78, -1, -1, -1, -1, 95, 96, -1, -1, -1,
6021 -1, -1, 545, -1, -1, -1, -1, -1, 551, -1,
6022 -1, -1, -1, -1, 102, 1085, 1086, 147, -1, 1089,
6023 108, 109, -1, -1, -1, -1, -1, 1300, -1, -1,
6024 -1, 1304, -1, 1306, -1, -1, 1106, -1, -1, 139,
6025 140, 141, 142, 143, 144, 145, 146, -1, 591, 592,
6026 -1, 594, 595, 141, -1, -1, -1, -1, -1, -1,
6027 603, -1, 605, -1, 230, 608, 232, -1, -1, 235,
6028 236, -1, 1142, -1, -1, 241, -1, 1328, -1, -1,
6029 1189, -1, -1, -1, 250, -1, -1, -1, -1, -1,
6030 -1, -1, 1365, 1163, -1, -1, 1166, -1, -1, -1,
6031 -1, -1, -1, 269, -1, -1, -1, -1, -1, 652,
6032 1180, 654, 1182, -1, -1, 1185, 1186, -1, -1, 662,
6033 1190, 1191, -1, -1, -1, -1, 1235, -1, -1, -1,
6034 673, -1, 675, 676, -1, -1, 1245, -1, -1, -1,
6035 -1, -1, -1, -1, -1, -1, -1, -1, -1, 692,
6036 693, -1, -1, 1262, 1263, 1264, -1, -1, -1, 702,
6037 -1, -1, -1, 329, -1, 331, 332, 333, 334, -1,
6038 336, 337, -1, -1, -1, 718, -1, -1, -1, 1249,
6039 -1, -1, -1, -1, -1, -1, 729, -1, -1, -1,
6040 -1, 357, -1, 52, -1, 54, 55, 56, 57, 58,
6041 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6042 -1, -1, -1, -1, -1, -1, -1, -1, -1, 78,
6043 -1, -1, -1, 1, -1, -1, -1, -1, 394, -1,
6044 1300, 397, -1, 92, 1304, -1, 1306, 403, 404, 405,
6045 -1, 1030, 1031, 102, -1, -1, -1, -1, 107, 108,
6046 109, -1, 52, 419, 54, 55, 56, 57, 58, -1,
6047 -1, -1, -1, 806, -1, -1, -1, -1, -1, -1,
6048 -1, -1, -1, -1, 52, 53, -1, -1, 78, -1,
6049 -1, -1, 141, -1, -1, 144, -1, -1, 454, 67,
6050 -1, -1, 92, -1, -1, 1365, 1085, 1086, 157, -1,
6051 1089, -1, 102, -1, -1, -1, -1, 107, 108, 109,
6052 -1, -1, -1, 856, -1, 858, 859, 1106, -1, -1,
6053 -1, -1, -1, 489, -1, 103, 104, -1, -1, 107,
6054 -1, -1, 498, -1, -1, 113, 114, 115, -1, -1,
6055 -1, 141, -1, -1, 144, -1, -1, -1, -1, -1,
6056 -1, -1, -1, 1142, -1, -1, 522, 52, -1, 54,
6057 55, 56, 57, 58, -1, -1, -1, -1, -1, -1,
6058 -1, -1, -1, -1, 1163, -1, -1, 1166, -1, 545,
6059 -1, -1, 925, 78, -1, 551, -1, -1, 1030, 1031,
6060 -1, 1180, -1, 1182, -1, -1, 1185, 1186, -1, 942,
6061 -1, 1190, 1191, -1, 947, 948, -1, 102, -1, -1,
6062 953, 954, 107, 108, 109, -1, -1, -1, -1, 962,
6063 963, -1, -1, -1, -1, 591, 592, -1, 594, 595,
6064 -1, -1, -1, -1, -1, 978, -1, 603, -1, -1,
6065 -1, -1, 608, 1085, 1086, -1, 141, 1089, -1, 144,
6066 -1, -1, 230, -1, 232, -1, -1, 235, 236, -1,
6067 1249, -1, -1, 241, 1106, -1, -1, -1, -1, -1,
6068 -1, -1, 250, -1, -1, -1, -1, -1, 1021, 1022,
6069 1023, -1, -1, -1, -1, -1, 652, -1, 654, -1,
6070 -1, 269, -1, -1, -1, 1038, 662, -1, -1, -1,
6071 1142, -1, -1, -1, -1, -1, -1, 673, -1, 675,
6072 676, 1300, 1055, -1, -1, 1304, -1, 1306, -1, -1,
6073 -1, 1163, -1, 1066, 1166, -1, 692, 693, -1, -1,
6074 -1, -1, -1, -1, -1, -1, 702, -1, 1180, -1,
6075 1182, -1, -1, 1185, 1186, -1, -1, -1, 1190, 1191,
6076 -1, 329, 718, 331, 332, 333, 334, -1, 336, 337,
6077 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6078 -1, -1, -1, -1, -1, -1, 1365, -1, -1, 357,
6079 -1, -1, -1, -1, -1, -1, -1, 1130, -1, 25,
6080 -1, 1134, -1, -1, 1137, 1138, -1, -1, -1, -1,
6081 1143, -1, -1, -1, -1, -1, -1, 1249, -1, -1,
6082 -1, -1, 1155, -1, -1, 1158, 394, -1, -1, 397,
6083 -1, -1, -1, -1, -1, 403, 404, 405, -1, -1,
6084 -1, -1, -1, -1, 1177, -1, -1, -1, -1, -1,
6085 -1, 419, 78, 79, 80, 81, 82, 83, 84, 85,
6086 86, 87, 88, 89, 90, -1, 1199, -1, 1300, 95,
6087 96, -1, 1304, -1, 1306, 101, -1, -1, -1, -1,
6088 1213, -1, -1, -1, -1, -1, 454, -1, -1, -1,
6089 -1, -1, 1030, 1031, -1, -1, -1, 1230, -1, -1,
6090 856, -1, 858, 859, -1, -1, -1, -1, -1, 135,
6091 -1, 137, 138, 139, 140, 141, 142, 143, 144, 145,
6092 146, 489, -1, -1, -1, -1, -1, -1, -1, -1,
6093 498, -1, -1, 1365, -1, -1, -1, 1270, -1, -1,
6094 -1, -1, -1, -1, 1277, 1278, -1, 1085, 1086, 1282,
6095 -1, 1089, -1, -1, 522, -1, -1, -1, 1291, -1,
6096 -1, -1, -1, -1, -1, -1, -1, -1, 1106, 925,
6097 -1, -1, -1, -1, -1, -1, -1, 545, -1, -1,
6098 -1, -1, -1, 551, -1, -1, 942, -1, 1321, -1,
6099 -1, 947, 948, -1, -1, -1, -1, 953, 954, -1,
6100 -1, -1, -1, -1, 1142, -1, 962, 963, -1, -1,
6101 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6102 -1, -1, 978, 591, 592, 1163, 594, 595, 1166, -1,
6103 -1, -1, -1, -1, -1, 603, -1, -1, -1, -1,
6104 608, -1, 1180, -1, 1182, -1, -1, 1185, 1186, -1,
6105 -1, -1, 1190, 1191, -1, -1, -1, 1030, 1031, -1,
6106 -1, -1, -1, -1, -1, 1021, 1022, 1023, -1, -1,
6107 -1, 1, -1, -1, -1, -1, -1, -1, -1, -1,
6108 -1, -1, 1038, -1, 652, -1, 654, -1, -1, -1,
6109 -1, -1, -1, -1, 662, -1, -1, -1, -1, 1055,
6110 -1, -1, -1, -1, -1, 673, -1, 675, 676, -1,
6111 1066, 1249, 1085, 1086, -1, -1, 1089, -1, -1, -1,
6112 -1, -1, 52, 53, 692, 693, -1, -1, -1, -1,
6113 -1, -1, -1, 1106, 702, -1, -1, 67, -1, -1,
6114 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6115 718, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6116 -1, -1, 1300, -1, -1, -1, 1304, -1, 1306, 1142,
6117 -1, -1, -1, 103, 104, -1, -1, 107, 1134, -1,
6118 -1, 1137, 1138, 113, 114, 115, -1, 1143, -1, -1,
6119 1163, -1, -1, 1166, -1, -1, -1, -1, -1, 1155,
6120 -1, -1, 1158, -1, -1, -1, -1, 1180, -1, 1182,
6121 -1, -1, 1185, 1186, -1, -1, -1, 1190, 1191, -1,
6122 -1, 1177, -1, -1, -1, -1, -1, 1365, -1, -1,
6123 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6124 -1, -1, -1, 1199, -1, -1, -1, -1, -1, -1,
6125 -1, -1, -1, -1, -1, -1, -1, 1213, -1, -1,
6126 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6127 -1, -1, -1, -1, -1, -1, 1249, -1, -1, -1,
6128 -1, -1, -1, -1, -1, -1, -1, -1, 856, -1,
6129 858, 859, -1, -1, -1, -1, -1, -1, -1, -1,
6130 230, -1, 232, -1, -1, 235, 236, -1, -1, -1,
6131 -1, 241, -1, -1, 1270, -1, -1, -1, -1, -1,
6132 250, 1277, 1278, -1, -1, -1, 1282, 1300, -1, -1,
6133 -1, 1304, -1, 1306, -1, -1, -1, -1, -1, 269,
6134 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6135 -1, -1, -1, -1, -1, -1, -1, 925, -1, -1,
6136 -1, -1, -1, -1, -1, 1321, 1030, 1031, -1, -1,
6137 -1, -1, -1, -1, 942, -1, -1, -1, -1, 947,
6138 948, -1, -1, 1, -1, 953, 954, -1, -1, -1,
6139 -1, -1, 1365, -1, 962, 963, -1, -1, -1, 329,
6140 -1, 331, 332, 333, 334, -1, 336, 337, -1, -1,
6141 978, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6142 -1, 1085, 1086, -1, -1, 1089, -1, 357, -1, -1,
6143 -1, -1, -1, -1, 52, 53, -1, -1, 56, -1,
6144 -1, -1, 1106, -1, -1, -1, -1, -1, -1, -1,
6145 -1, -1, -1, 1021, 1022, 1023, -1, -1, -1, -1,
6146 -1, -1, -1, -1, 394, -1, -1, 397, -1, -1,
6147 1038, 89, -1, 403, 404, 405, -1, -1, 1142, -1,
6148 -1, -1, -1, -1, -1, -1, -1, 1055, -1, 419,
6149 108, 109, 110, -1, -1, 113, 114, 115, 1066, 1163,
6150 -1, -1, 1166, -1, -1, -1, -1, -1, -1, -1,
6151 -1, -1, -1, -1, -1, -1, 1180, -1, 1182, -1,
6152 -1, 1185, 1186, -1, 454, -1, 1190, 1191, -1, -1,
6153 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6154 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6155 -1, -1, -1, -1, -1, -1, -1, -1, -1, 489,
6156 -1, -1, -1, -1, -1, -1, 1134, -1, 498, 1137,
6157 1138, -1, -1, -1, -1, 1143, -1, -1, -1, -1,
6158 -1, -1, 1, -1, -1, 1249, -1, 1155, -1, -1,
6159 1158, -1, 522, -1, -1, -1, -1, -1, -1, -1,
6160 1030, 1031, -1, -1, -1, -1, -1, -1, -1, 1177,
6161 -1, -1, 230, -1, 232, 545, -1, -1, -1, -1,
6162 -1, 551, -1, 241, -1, -1, -1, -1, -1, -1,
6163 -1, 1199, 250, 52, 53, -1, 1300, 56, -1, -1,
6164 1304, -1, 1306, -1, -1, 1213, -1, -1, -1, -1,
6165 -1, 269, -1, -1, -1, 1085, 1086, -1, -1, 1089,
6166 -1, 591, 592, -1, 594, 595, -1, -1, -1, -1,
6167 89, -1, -1, 603, -1, -1, 1106, -1, 608, -1,
6168 298, -1, -1, -1, -1, -1, -1, -1, -1, 108,
6169 109, 110, 1030, 1031, 113, 114, 115, -1, -1, -1,
6170 -1, 1365, 1270, -1, -1, -1, -1, -1, -1, 1277,
6171 1278, 329, 1142, -1, 1282, -1, -1, -1, -1, -1,
6172 -1, -1, 652, -1, 654, -1, -1, -1, -1, -1,
6173 -1, -1, 662, 1163, -1, -1, 1166, -1, -1, 357,
6174 358, -1, -1, 673, -1, 675, 676, 1085, 1086, -1,
6175 1180, 1089, 1182, 1321, -1, 1185, 1186, -1, -1, -1,
6176 1190, 1191, 692, 693, -1, -1, -1, -1, 1106, -1,
6177 -1, -1, 702, -1, -1, -1, 394, -1, -1, 397,
6178 -1, -1, -1, -1, -1, -1, 404, 405, 718, -1,
6179 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6180 -1, -1, -1, -1, 1142, -1, -1, -1, -1, -1,
6181 -1, 230, -1, 232, -1, -1, -1, -1, -1, 1249,
6182 -1, -1, 241, -1, -1, 1163, -1, -1, 1166, -1,
6183 -1, 250, -1, -1, -1, -1, 454, -1, -1, -1,
6184 -1, -1, 1180, -1, 1182, -1, -1, 1185, 1186, -1,
6185 269, -1, 1190, 1191, -1, -1, -1, -1, -1, -1,
6186 -1, -1, -1, -1, -1, 33, 34, 35, 36, -1,
6187 1300, 489, -1, -1, 1304, -1, 1306, -1, -1, 298,
6188 498, 49, 50, 51, 52, -1, -1, -1, 56, -1,
6189 -1, 59, 60, 61, 62, 63, -1, -1, -1, -1,
6190 -1, -1, 520, -1, 522, -1, -1, -1, -1, -1,
6191 329, 1249, -1, -1, -1, -1, -1, -1, -1, -1,
6192 -1, -1, -1, 91, 92, -1, 856, 545, 858, 859,
6193 -1, 99, -1, 551, 102, 1365, 104, 105, 357, 358,
6194 -1, -1, 110, 111, 112, 113, 114, 115, 116, 117,
6195 118, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6196 -1, -1, 1300, -1, -1, -1, 1304, -1, 1306, -1,
6197 -1, -1, 140, -1, 592, 394, -1, 595, 397, 147,
6198 -1, -1, -1, -1, -1, 404, 405, 605, -1, -1,
6199 608, -1, -1, -1, -1, 925, -1, -1, -1, -1,
6200 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6201 -1, -1, 942, -1, -1, -1, -1, 947, 948, -1,
6202 -1, -1, -1, 953, 954, -1, -1, 1365, -1, -1,
6203 -1, -1, 962, 963, 652, 454, 654, -1, -1, -1,
6204 -1, -1, -1, -1, 662, -1, -1, -1, 978, -1,
6205 -1, -1, -1, -1, -1, 673, -1, 675, -1, -1,
6206 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6207 489, -1, -1, -1, 692, 693, -1, -1, -1, 498,
6208 78, 79, 80, 81, 82, 83, 84, 85, -1, 87,
6209 88, 1021, 1022, 1023, -1, -1, -1, 95, 96, -1,
6210 718, 520, -1, 522, -1, -1, -1, -1, 1038, -1,
6211 1, 729, -1, -1, -1, -1, -1, -1, -1, -1,
6212 -1, -1, -1, -1, -1, 1055, 545, -1, -1, -1,
6213 -1, -1, 551, -1, -1, -1, 1066, -1, -1, 137,
6214 138, 139, 140, 141, 142, 143, 144, 145, 146, -1,
6215 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6216 -1, 52, 53, -1, -1, 56, -1, -1, -1, -1,
6217 -1, -1, -1, 592, -1, -1, 595, -1, -1, -1,
6218 -1, -1, -1, -1, -1, -1, 605, -1, 806, 608,
6219 -1, -1, -1, -1, -1, -1, -1, -1, 89, -1,
6220 -1, -1, -1, -1, 1134, -1, -1, 1137, 1138, -1,
6221 -1, -1, -1, 1143, -1, -1, -1, 108, 109, 110,
6222 -1, -1, -1, -1, -1, 1155, -1, -1, 1158, -1,
6223 -1, -1, -1, 652, -1, 654, -1, -1, -1, -1,
6224 -1, 859, -1, 662, -1, -1, -1, 1177, -1, -1,
6225 -1, -1, -1, -1, 673, -1, 675, -1, -1, -1,
6226 -1, -1, -1, -1, -1, -1, -1, -1, -1, 1199,
6227 -1, -1, -1, 692, 693, -1, -1, -1, -1, -1,
6228 -1, -1, -1, 1213, -1, -1, -1, -1, -1, -1,
6229 -1, -1, -1, -1, -1, -1, -1, -1, -1, 718,
6230 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6231 729, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6232 -1, -1, -1, -1, 942, -1, -1, -1, 44, 947,
6233 948, -1, -1, -1, -1, 953, 954, -1, -1, -1,
6234 1270, -1, -1, -1, 962, -1, -1, 1277, 1278, -1,
6235 241, -1, 1282, -1, -1, -1, -1, -1, -1, 250,
6236 978, -1, 78, 79, 80, 81, 82, 83, 84, 85,
6237 86, 87, 88, 89, 90, -1, -1, -1, 269, 95,
6238 96, -1, -1, -1, -1, -1, -1, 806, -1, -1,
6239 -1, 1321, -1, -1, -1, 1, -1, -1, -1, -1,
6240 -1, -1, -1, 1021, 1022, 1023, -1, 298, -1, -1,
6241 -1, -1, -1, -1, -1, -1, -1, -1, -1, 135,
6242 1038, 137, 138, 139, 140, 141, 142, 143, 144, 145,
6243 146, -1, -1, -1, -1, -1, -1, 1055, 329, 155,
6244 859, -1, -1, -1, -1, -1, 52, 53, 1066, -1,
6245 56, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6246 -1, -1, -1, -1, -1, -1, 357, 358, -1, -1,
6247 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6248 -1, -1, -1, 89, -1, -1, -1, -1, -1, -1,
6249 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6250 -1, -1, 108, 109, 110, 111, 397, -1, -1, -1,
6251 -1, -1, 1130, 404, 405, -1, 1134, -1, -1, 1137,
6252 1138, -1, -1, 942, -1, 1143, -1, -1, 947, 948,
6253 -1, -1, -1, -1, 953, 954, -1, 1155, -1, -1,
6254 1158, -1, -1, 962, -1, -1, -1, -1, 0, -1,
6255 -1, -1, -1, -1, -1, -1, 8, 9, 10, 978,
6256 -1, 13, 14, 15, -1, 17, -1, -1, -1, -1,
6257 -1, -1, -1, 25, 26, 27, -1, -1, -1, -1,
6258 -1, 1199, -1, -1, -1, 37, 38, -1, 40, 41,
6259 42, 43, 44, -1, -1, 1213, -1, -1, -1, -1,
6260 -1, -1, 1021, 1022, 1023, -1, -1, 498, -1, -1,
6261 -1, -1, 1230, -1, -1, 1, 68, 69, -1, 1038,
6262 -1, -1, -1, -1, -1, -1, -1, -1, -1, 520,
6263 -1, -1, -1, -1, -1, 241, 1055, 1, -1, -1,
6264 -1, -1, -1, -1, 250, 97, 98, 1066, -1, -1,
6265 -1, -1, 1270, -1, 545, -1, -1, -1, -1, -1,
6266 551, -1, -1, 269, 1282, -1, 52, 53, 120, -1,
6267 -1, -1, -1, 1291, -1, -1, -1, -1, -1, -1,
6268 -1, -1, -1, -1, -1, -1, -1, -1, 52, 53,
6269 -1, -1, 298, -1, -1, -1, -1, -1, -1, 151,
6270 152, 592, 154, 1321, 595, 157, 158, -1, 160, -1,
6271 -1, 1130, -1, -1, 605, 1134, -1, 608, 1137, 1138,
6272 -1, -1, 108, 329, 1143, -1, -1, -1, -1, -1,
6273 -1, -1, -1, -1, -1, -1, 1155, -1, -1, 1158,
6274 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6275 -1, 357, 358, -1, -1, -1, -1, -1, -1, -1,
6276 -1, 652, -1, 654, -1, -1, -1, -1, -1, -1,
6277 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6278 1199, -1, -1, -1, 675, -1, -1, -1, -1, -1,
6279 -1, 397, -1, -1, 1213, -1, -1, -1, 404, 405,
6280 -1, 692, 693, -1, -1, -1, -1, -1, -1, -1,
6281 -1, 1230, -1, -1, -1, -1, 33, 34, 35, 36,
6282 -1, -1, -1, -1, -1, -1, -1, 718, -1, -1,
6283 -1, -1, 49, 50, 51, 52, -1, -1, 729, 56,
6284 -1, -1, 59, 60, 61, 62, 63, 738, -1, -1,
6285 -1, 1270, -1, -1, -1, 241, -1, -1, -1, -1,
6286 -1, -1, -1, 1282, 250, -1, -1, -1, -1, -1,
6287 -1, -1, 1291, -1, 91, 92, -1, 241, -1, -1,
6288 -1, -1, 99, 269, -1, 102, 250, 104, 105, -1,
6289 107, -1, 498, 110, 111, 112, 113, 114, 115, 116,
6290 117, 118, 1321, -1, -1, 269, -1, -1, -1, -1,
6291 -1, -1, -1, -1, 520, 806, 78, 79, 80, 81,
6292 82, 83, 84, 140, -1, 87, 88, -1, -1, -1,
6293 147, -1, -1, 95, 96, -1, -1, 154, -1, 545,
6294 -1, -1, -1, 329, -1, 551, -1, -1, -1, -1,
6295 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6296 -1, -1, -1, -1, -1, 329, -1, -1, 859, -1,
6297 -1, 357, -1, -1, -1, 137, 138, 139, 140, 141,
6298 142, 143, 144, 145, 146, -1, 592, -1, -1, 595,
6299 -1, -1, -1, 357, -1, -1, -1, -1, -1, 605,
6300 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6301 -1, 397, -1, -1, -1, -1, -1, -1, 404, 405,
6302 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6303 -1, -1, -1, 397, -1, -1, -1, -1, -1, -1,
6304 404, 405, -1, -1, -1, -1, 652, -1, 654, -1,
6305 -1, -1, -1, -1, -1, -1, 947, 948, -1, -1,
6306 -1, -1, 953, 954, 52, 53, -1, -1, 56, 675,
6307 -1, 962, -1, -1, -1, -1, -1, -1, -1, -1,
6308 -1, -1, -1, -1, -1, -1, -1, 978, 76, 77,
6309 78, 79, 80, 81, 82, 83, 84, -1, -1, 87,
6310 88, -1, -1, -1, -1, 93, 94, 95, 96, -1,
6311 -1, -1, 498, -1, -1, -1, -1, -1, -1, 107,
6312 108, -1, -1, 729, -1, -1, -1, -1, -1, -1,
6313 1021, 1022, 1023, -1, 498, -1, -1, -1, -1, -1,
6314 -1, -1, -1, -1, -1, -1, -1, 1038, -1, 137,
6315 138, 139, 140, 141, 142, 143, 144, 145, 146, 545,
6316 148, 149, -1, -1, 1055, 551, -1, -1, 156, 157,
6317 -1, -1, -1, -1, -1, 1066, -1, -1, -1, -1,
6318 -1, 545, -1, -1, -1, -1, -1, 551, -1, -1,
6319 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6320 806, -1, -1, -1, -1, -1, 592, -1, -1, 595,
6321 -1, -1, -1, -1, -1, 78, 79, 80, 81, 82,
6322 83, 84, 608, -1, 87, 88, -1, -1, 592, -1,
6323 -1, 595, 95, 96, -1, -1, -1, -1, -1, 1130,
6324 -1, -1, -1, 1134, 608, -1, 1137, 1138, -1, -1,
6325 -1, -1, 1143, 859, -1, -1, -1, -1, -1, -1,
6326 -1, -1, -1, -1, 1155, -1, 652, 1158, 654, -1,
6327 -1, -1, -1, -1, 137, 138, 139, 140, 141, 142,
6328 143, 144, 145, 146, -1, -1, -1, -1, 652, 675,
6329 654, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6330 -1, -1, -1, -1, -1, -1, 692, 693, 1199, -1,
6331 -1, 675, -1, -1, -1, -1, -1, -1, -1, -1,
6332 -1, -1, 1213, -1, -1, -1, -1, -1, 692, 693,
6333 -1, -1, 718, -1, -1, -1, -1, -1, -1, 1230,
6334 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6335 -1, -1, -1, -1, 718, -1, 962, -1, -1, -1,
6336 33, 34, 35, 36, -1, -1, -1, -1, -1, -1,
6337 -1, -1, 978, -1, -1, -1, 49, 50, 51, 52,
6338 -1, -1, -1, 56, -1, 58, 59, 60, 61, 62,
6339 63, 1282, -1, -1, -1, -1, -1, -1, -1, -1,
6340 1291, -1, -1, -1, -1, 78, -1, -1, -1, -1,
6341 -1, -1, -1, -1, -1, 1021, 1022, -1, 91, 92,
6342 -1, -1, -1, -1, -1, -1, 99, -1, -1, 102,
6343 1321, 104, 105, -1, 107, 108, -1, 110, 111, 112,
6344 113, 114, 115, 116, 117, 118, -1, -1, -1, 1055,
6345 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6346 1066, -1, -1, -1, -1, -1, -1, 140, -1, -1,
6347 -1, -1, -1, 859, 147, -1, -1, -1, -1, 78,
6348 79, 80, 81, 82, 83, 84, 85, 86, 87, 88,
6349 89, 90, -1, -1, -1, 859, 95, 96, -1, -1,
6350 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6351 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6352 -1, -1, -1, -1, 1130, -1, -1, -1, 1134, -1,
6353 -1, 1137, 1138, -1, -1, -1, 135, 1143, 137, 138,
6354 139, 140, 141, 142, 143, 144, 145, 146, -1, 1155,
6355 -1, -1, 1158, -1, -1, 154, -1, -1, -1, -1,
6356 -1, 947, 948, -1, -1, -1, -1, 953, 954, -1,
6357 -1, -1, -1, -1, -1, -1, 962, -1, -1, -1,
6358 -1, -1, -1, 947, 948, -1, -1, -1, -1, 953,
6359 954, -1, 978, 1199, -1, -1, -1, -1, 962, -1,
6360 -1, -1, -1, -1, -1, -1, -1, 1213, -1, -1,
6361 -1, -1, -1, -1, 978, -1, -1, -1, -1, -1,
6362 -1, -1, -1, -1, 1230, -1, -1, -1, -1, -1,
6363 -1, -1, -1, -1, -1, 1021, 1022, 1023, -1, -1,
6364 -1, -1, -1, 47, 48, 49, 50, -1, -1, -1,
6365 54, 55, 1038, -1, -1, -1, -1, 1021, 1022, 1023,
6366 -1, -1, -1, 67, 68, -1, -1, -1, -1, 1055,
6367 -1, -1, -1, -1, 1038, -1, 1282, -1, -1, -1,
6368 1066, -1, -1, -1, -1, 1291, -1, -1, -1, -1,
6369 -1, 1055, -1, -1, -1, -1, -1, -1, -1, -1,
6370 -1, -1, 1066, -1, -1, -1, -1, -1, -1, 113,
6371 114, 115, -1, -1, -1, 1321, -1, -1, -1, -1,
6372 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6373 -1, -1, -1, -1, -1, -1, -1, 33, 34, 35,
6374 36, -1, -1, -1, 1130, -1, -1, -1, 1134, -1,
6375 -1, 1137, 1138, 49, 50, 51, 52, 1143, -1, -1,
6376 56, -1, -1, 59, 60, 61, 62, 63, -1, 1155,
6377 1134, -1, 1158, 1137, 1138, -1, -1, -1, -1, 1143,
6378 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6379 -1, 1155, -1, -1, 1158, 91, 92, -1, -1, -1,
6380 -1, -1, -1, 99, -1, -1, 102, -1, 104, 105,
6381 -1, 107, -1, 1199, 110, 111, 112, 113, 114, 115,
6382 116, 117, 118, -1, -1, -1, 230, 1213, 232, -1,
6383 -1, -1, -1, -1, -1, 1199, -1, -1, -1, -1,
6384 -1, -1, -1, -1, 140, -1, -1, 251, -1, 1213,
6385 -1, 147, -1, -1, -1, -1, -1, -1, -1, -1,
6386 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6387 -1, -1, -1, -1, 278, 279, 280, -1, -1, -1,
6388 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6389 -1, -1, -1, 3, 4, 5, 1282, 7, -1, -1,
6390 -1, 11, 12, -1, -1, -1, 16, -1, 18, 19,
6391 20, 21, 22, 23, 24, -1, -1, -1, 1282, -1,
6392 30, 31, 32, 33, 34, 35, 36, -1, -1, 39,
6393 -1, -1, -1, -1, -1, 1321, 46, -1, -1, 49,
6394 50, 51, 52, 53, 54, 55, 56, 57, -1, 59,
6395 60, 61, 62, 63, 64, 65, -1, 1321, 362, 363,
6396 364, 365, 366, -1, -1, 369, 370, 371, 372, 373,
6397 374, 375, 376, -1, 378, -1, -1, 381, 382, 383,
6398 384, 385, 386, 387, 388, 389, 390, -1, -1, 99,
6399 394, -1, 102, 103, 104, 105, -1, -1, -1, -1,
6400 110, 111, 112, 113, 114, 115, 116, 117, 118, -1,
6401 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6402 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6403 -1, -1, -1, -1, -1, -1, -1, 147, -1, -1,
6404 444, -1, -1, -1, -1, 155, -1, -1, -1, -1,
6405 454, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6406 464, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6407 -1, -1, 0, -1, -1, -1, -1, -1, 482, -1,
6408 8, 9, 10, -1, -1, 489, 14, 15, -1, 17,
6409 -1, -1, -1, -1, -1, -1, -1, 25, 26, -1,
6410 -1, 505, -1, 507, -1, -1, 510, -1, -1, 37,
6411 38, -1, 40, 41, 42, 43, 44, -1, 522, -1,
6412 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6413 -1, -1, -1, -1, -1, -1, 540, -1, -1, -1,
6414 68, 69, -1, -1, -1, -1, -1, -1, -1, -1,
6415 78, 79, 80, 81, 82, 83, 84, 85, 86, 87,
6416 88, 89, 90, -1, -1, -1, -1, 95, 96, 97,
6417 98, -1, 100, 101, -1, -1, -1, -1, -1, 583,
6418 -1, -1, -1, -1, -1, -1, -1, 591, -1, -1,
6419 594, -1, 120, -1, -1, -1, -1, -1, -1, 603,
6420 -1, -1, -1, -1, 608, -1, 134, 135, -1, 137,
6421 138, 139, 140, 141, 142, 143, 144, 145, 146, -1,
6422 -1, -1, -1, 151, 152, 153, 154, 155, -1, -1,
6423 158, -1, 160, -1, -1, -1, -1, -1, -1, -1,
6424 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6425 -1, -1, -1, -1, -1, -1, -1, -1, 662, -1,
6426 -1, -1, -1, -1, -1, -1, -1, -1, -1, 673,
6427 -1, -1, -1, -1, -1, -1, -1, 681, -1, -1,
6428 684, -1, -1, -1, -1, -1, -1, -1, 692, 693,
6429 -1, -1, 696, -1, 698, -1, -1, -1, -1, -1,
6430 -1, -1, 706, 707, 708, -1, -1, -1, -1, -1,
6431 -1, -1, 716, 717, 718, -1, -1, -1, -1, 723,
6432 -1, -1, -1, 0, 1, -1, 3, 4, 5, 6,
6433 7, 8, 9, 10, 11, 12, -1, 14, 15, 16,
6434 17, 18, 19, 20, 21, 22, 23, 24, 25, -1,
6435 -1, -1, -1, 30, 31, 32, 33, 34, 35, 36,
6436 -1, -1, 39, -1, 768, -1, -1, -1, 45, 46,
6437 47, 48, 49, 50, 51, 52, 53, 54, 55, 56,
6438 57, -1, 59, 60, 61, 62, 63, 64, 65, -1,
6439 -1, 68, 796, -1, -1, -1, -1, -1, -1, 76,
6440 77, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6441 44, -1, -1, -1, 91, 92, -1, -1, -1, -1,
6442 -1, -1, 99, -1, 828, 102, 103, 104, 105, -1,
6443 107, -1, -1, 110, 111, 112, 113, 114, 115, 116,
6444 117, 118, 846, 120, 78, 79, 80, 81, 82, 83,
6445 84, 85, 86, 87, 88, 89, 90, -1, -1, -1,
6446 -1, 95, 96, -1, -1, -1, -1, -1, -1, -1,
6447 147, 148, 149, -1, -1, 152, -1, 881, -1, -1,
6448 -1, 158, -1, 160, -1, -1, -1, -1, -1, -1,
6449 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6450 -1, 135, -1, 137, 138, 139, 140, 141, 142, 143,
6451 144, 145, 146, -1, -1, -1, -1, -1, -1, -1,
6452 -1, 925, -1, -1, -1, -1, -1, -1, -1, -1,
6453 934, -1, -1, -1, -1, -1, -1, -1, 942, -1,
6454 -1, -1, 946, 947, 948, -1, -1, -1, -1, 953,
6455 954, -1, -1, 957, -1, -1, -1, -1, -1, -1,
6456 -1, -1, -1, -1, -1, 969, -1, -1, -1, -1,
6457 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6458 -1, -1, -1, -1, -1, 989, -1, 991, 992, 993,
6459 -1, 995, 996, -1, -1, -1, -1, -1, -1, -1,
6460 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6461 -1, 1015, 1016, -1, -1, 1019, -1, -1, -1, 1023,
6462 1024, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6463 -1, -1, -1, -1, 1038, -1, -1, -1, -1, -1,
6464 -1, 0, 1, -1, 3, 4, 5, 6, 7, -1,
6465 1054, -1, 11, 12, -1, -1, -1, 16, 1062, 18,
6466 19, 20, 21, 22, 23, 24, -1, -1, -1, -1,
6467 -1, 30, 31, 32, 33, 34, 35, 36, -1, -1,
6468 39, -1, -1, -1, -1, -1, 45, 46, 47, 48,
6469 49, 50, 51, 52, 53, 54, 55, 56, 57, -1,
6470 59, 60, 61, 62, 63, 64, 65, -1, -1, -1,
6471 -1, -1, -1, -1, -1, -1, -1, 76, 77, -1,
6472 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6473 -1, -1, 91, 92, -1, 1139, -1, -1, -1, -1,
6474 99, -1, -1, 102, 103, 104, 105, -1, 107, -1,
6475 -1, 110, 111, 112, 113, 114, 115, 116, 117, 118,
6476 -1, 120, -1, -1, -1, -1, -1, -1, -1, -1,
6477 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6478 -1, -1, -1, -1, -1, -1, -1, -1, 147, 148,
6479 149, -1, -1, 0, 1, 154, 3, 4, 5, 6,
6480 7, 160, -1, -1, 11, 12, -1, -1, -1, 16,
6481 -1, 18, 19, 20, 21, 22, 23, 24, -1, -1,
6482 -1, -1, -1, 30, 31, 32, 33, 34, 35, 36,
6483 -1, -1, 39, -1, -1, -1, -1, -1, 45, 46,
6484 47, 48, 49, 50, 51, 52, 53, 54, 55, 56,
6485 57, -1, 59, 60, 61, 62, 63, 64, 65, -1,
6486 -1, -1, -1, -1, -1, -1, 1270, -1, -1, 76,
6487 77, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6488 -1, -1, -1, -1, 91, 92, -1, -1, -1, -1,
6489 -1, -1, 99, -1, -1, 102, 103, 104, 105, -1,
6490 107, -1, -1, 110, 111, 112, 113, 114, 115, 116,
6491 117, 118, -1, -1, -1, -1, -1, -1, -1, -1,
6492 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6493 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6494 147, 148, 149, -1, -1, 0, 1, 154, 3, 4,
6495 5, 6, 7, 160, -1, -1, 11, 12, -1, -1,
6496 -1, 16, -1, 18, 19, 20, 21, 22, 23, 24,
6497 -1, -1, -1, -1, -1, 30, 31, 32, 33, 34,
6498 35, 36, -1, -1, 39, -1, -1, -1, -1, -1,
6499 45, 46, 47, 48, 49, 50, 51, 52, 53, 54,
6500 55, 56, 57, -1, 59, 60, 61, 62, 63, 64,
6501 65, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6502 -1, 76, 77, -1, -1, -1, -1, -1, -1, -1,
6503 -1, -1, -1, -1, -1, -1, 91, 92, -1, -1,
6504 -1, -1, -1, -1, 99, -1, -1, 102, 103, 104,
6505 105, -1, 107, -1, -1, 110, 111, 112, 113, 114,
6506 115, 116, 117, 118, -1, -1, -1, -1, -1, -1,
6507 -1, -1, -1, 0, -1, -1, -1, -1, -1, -1,
6508 -1, 8, 9, 10, -1, -1, 13, 14, 15, -1,
6509 17, -1, 147, 148, 149, -1, -1, 152, 25, 26,
6510 27, 28, 29, -1, -1, 160, -1, -1, -1, -1,
6511 37, 38, -1, 40, 41, 42, 43, 44, -1, -1,
6512 -1, 78, 79, 80, 81, 82, 83, 84, 85, 86,
6513 87, 88, 89, 90, -1, -1, -1, -1, 95, 96,
6514 -1, 68, 69, -1, -1, -1, -1, -1, -1, -1,
6515 -1, 78, 79, 80, 81, 82, 83, 84, 85, 86,
6516 87, 88, 89, 90, -1, -1, -1, -1, 95, 96,
6517 97, 98, -1, 100, 101, -1, -1, -1, 135, 106,
6518 137, 138, 139, 140, 141, 142, 143, 144, 145, 146,
6519 -1, -1, -1, 120, -1, -1, 123, -1, -1, -1,
6520 -1, -1, -1, -1, -1, -1, -1, 134, 135, 136,
6521 137, 138, 139, 140, 141, 142, 143, 144, 145, 146,
6522 -1, -1, -1, -1, 151, 152, 153, 154, 155, 0,
6523 -1, 158, 159, 160, -1, -1, -1, 8, 9, 10,
6524 -1, -1, 13, 14, 15, -1, 17, -1, -1, -1,
6525 -1, -1, -1, -1, 25, -1, 27, 28, 29, -1,
6526 -1, -1, -1, -1, -1, -1, 37, 38, -1, 40,
6527 41, 42, 43, 44, -1, -1, -1, 78, 79, 80,
6528 81, 82, 83, 84, 85, 86, 87, 88, 89, 90,
6529 -1, -1, -1, -1, 95, 96, -1, 68, 69, -1,
6530 -1, -1, -1, -1, -1, -1, -1, 78, 79, 80,
6531 81, 82, 83, 84, 85, 86, 87, 88, 89, 90,
6532 -1, -1, -1, -1, 95, 96, 97, 98, -1, 100,
6533 101, -1, -1, -1, -1, 106, 137, 138, 139, 140,
6534 141, 142, 143, 144, 145, 146, -1, -1, -1, 120,
6535 -1, -1, 123, -1, -1, -1, -1, -1, -1, -1,
6536 -1, -1, -1, 134, 135, 136, 137, 138, 139, 140,
6537 141, 142, 143, 144, 145, 146, -1, -1, -1, -1,
6538 -1, 152, 153, 154, 155, 0, -1, 158, 159, 160,
6539 -1, -1, -1, 8, 9, 10, -1, -1, 13, 14,
6540 15, -1, 17, -1, -1, -1, -1, -1, -1, -1,
6541 25, -1, 27, 28, 29, -1, -1, -1, -1, -1,
6542 -1, -1, 37, 38, -1, 40, 41, 42, 43, 44,
6543 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6544 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6545 -1, -1, -1, 68, 69, -1, -1, -1, -1, -1,
6546 -1, -1, -1, 78, 79, 80, 81, 82, 83, 84,
6547 85, 86, 87, 88, 89, 90, -1, -1, -1, -1,
6548 95, 96, 97, 98, -1, 100, 101, -1, -1, -1,
6549 -1, 106, -1, -1, -1, -1, -1, -1, -1, -1,
6550 -1, -1, -1, -1, -1, 120, -1, -1, 123, -1,
6551 -1, -1, -1, -1, -1, -1, -1, -1, -1, 134,
6552 135, 136, 137, 138, 139, 140, 141, 142, 143, 144,
6553 145, 146, -1, -1, -1, -1, -1, 152, 153, 154,
6554 155, 0, -1, 158, 159, 160, -1, -1, -1, 8,
6555 9, 10, -1, -1, 13, 14, 15, -1, 17, -1,
6556 -1, -1, -1, -1, -1, -1, 25, 26, 27, 28,
6557 29, -1, -1, -1, -1, -1, -1, -1, 37, 38,
6558 -1, 40, 41, 42, 43, 44, -1, -1, -1, -1,
6559 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6560 -1, -1, -1, -1, -1, -1, -1, -1, -1, 68,
6561 69, -1, -1, -1, -1, -1, -1, -1, -1, 78,
6562 79, 80, 81, 82, 83, 84, 85, 86, 87, 88,
6563 89, 90, -1, -1, -1, -1, 95, 96, 97, 98,
6564 -1, -1, 101, -1, -1, -1, -1, 106, -1, -1,
6565 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6566 -1, 120, -1, -1, 123, -1, -1, -1, -1, -1,
6567 -1, -1, -1, -1, -1, -1, 135, 136, 137, 138,
6568 139, 140, 141, 142, 143, 144, 145, 146, -1, -1,
6569 -1, -1, 151, 152, 153, 154, 155, 0, -1, 158,
6570 159, 160, -1, -1, -1, 8, 9, 10, -1, -1,
6571 13, 14, 15, -1, 17, -1, -1, -1, -1, -1,
6572 -1, -1, 25, 26, 27, 28, 29, -1, -1, -1,
6573 -1, -1, -1, -1, 37, 38, -1, 40, 41, 42,
6574 43, 44, -1, -1, -1, -1, -1, -1, -1, -1,
6575 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6576 -1, -1, -1, -1, -1, 68, 69, -1, -1, -1,
6577 -1, -1, -1, -1, -1, 78, 79, 80, 81, 82,
6578 83, 84, 85, 86, 87, 88, 89, 90, -1, -1,
6579 -1, -1, 95, 96, 97, 98, -1, -1, 101, -1,
6580 -1, -1, -1, 106, -1, -1, -1, -1, -1, -1,
6581 -1, -1, -1, -1, -1, -1, -1, 120, -1, -1,
6582 123, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6583 -1, -1, 135, 136, 137, 138, 139, 140, 141, 142,
6584 143, 144, 145, 146, -1, -1, -1, -1, 151, 152,
6585 153, 154, 155, 0, -1, 158, 159, 160, -1, -1,
6586 -1, 8, 9, 10, -1, -1, 13, 14, 15, -1,
6587 17, -1, -1, -1, -1, -1, -1, -1, 25, 26,
6588 27, 28, -1, -1, -1, -1, -1, -1, -1, -1,
6589 37, 38, -1, 40, 41, 42, 43, 44, -1, -1,
6590 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6591 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6592 -1, 68, 69, -1, -1, -1, -1, -1, -1, -1,
6593 -1, 78, 79, 80, 81, 82, 83, 84, 85, 86,
6594 87, 88, 89, 90, -1, -1, -1, -1, 95, 96,
6595 97, 98, -1, -1, 101, -1, -1, -1, -1, 106,
6596 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6597 -1, -1, -1, 120, -1, -1, -1, -1, -1, -1,
6598 -1, -1, -1, -1, -1, -1, -1, -1, 135, -1,
6599 137, 138, 139, 140, 141, 142, 143, 144, 145, 146,
6600 -1, -1, -1, -1, 151, 152, 153, 154, 155, 0,
6601 157, 158, 159, 160, -1, -1, -1, 8, 9, 10,
6602 -1, -1, 13, 14, 15, -1, 17, -1, -1, -1,
6603 -1, -1, -1, -1, 25, -1, 27, 28, 29, -1,
6604 -1, -1, -1, -1, -1, -1, 37, 38, -1, 40,
6605 41, 42, 43, 44, -1, -1, -1, -1, -1, -1,
6606 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6607 -1, -1, -1, -1, -1, -1, -1, 68, 69, -1,
6608 -1, -1, -1, -1, -1, -1, -1, 78, 79, 80,
6609 81, 82, 83, 84, 85, 86, 87, 88, 89, 90,
6610 -1, -1, -1, -1, 95, 96, 97, 98, -1, -1,
6611 101, -1, -1, -1, -1, 106, -1, -1, -1, -1,
6612 -1, -1, -1, -1, -1, -1, -1, -1, -1, 120,
6613 -1, -1, 123, -1, -1, -1, -1, -1, -1, -1,
6614 -1, -1, -1, -1, 135, 136, 137, 138, 139, 140,
6615 141, 142, 143, 144, 145, 146, -1, -1, -1, -1,
6616 -1, 152, 153, 154, 155, 0, -1, 158, 159, 160,
6617 -1, -1, -1, 8, 9, 10, -1, -1, 13, 14,
6618 15, -1, 17, -1, -1, -1, -1, -1, -1, -1,
6619 25, 26, 27, 28, -1, -1, -1, -1, -1, -1,
6620 -1, -1, 37, 38, -1, 40, 41, 42, 43, 44,
6621 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6622 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6623 -1, -1, -1, 68, 69, -1, -1, -1, -1, -1,
6624 -1, -1, -1, 78, 79, 80, 81, 82, 83, 84,
6625 85, 86, 87, 88, 89, 90, -1, -1, -1, -1,
6626 95, 96, 97, 98, -1, -1, 101, -1, -1, -1,
6627 -1, 106, -1, -1, -1, -1, -1, -1, -1, -1,
6628 -1, -1, -1, -1, -1, 120, -1, -1, -1, -1,
6629 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6630 135, -1, 137, 138, 139, 140, 141, 142, 143, 144,
6631 145, 146, -1, -1, -1, -1, 151, 152, 153, 154,
6632 155, 0, 157, 158, 159, 160, -1, -1, -1, 8,
6633 9, 10, -1, -1, 13, 14, 15, -1, 17, -1,
6634 -1, -1, -1, -1, -1, -1, 25, -1, 27, 28,
6635 -1, -1, -1, -1, -1, -1, -1, -1, 37, 38,
6636 -1, 40, 41, 42, 43, 44, -1, -1, -1, -1,
6637 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6638 -1, -1, -1, -1, -1, -1, -1, -1, -1, 68,
6639 69, -1, -1, -1, -1, -1, -1, -1, -1, 78,
6640 79, 80, 81, 82, 83, 84, 85, 86, 87, 88,
6641 89, 90, -1, -1, -1, -1, 95, 96, 97, 98,
6642 -1, 100, 101, -1, -1, -1, -1, 106, -1, -1,
6643 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6644 -1, 120, -1, -1, -1, -1, -1, -1, -1, -1,
6645 -1, -1, -1, -1, -1, 134, 135, -1, 137, 138,
6646 139, 140, 141, 142, 143, 144, 145, 146, -1, -1,
6647 -1, -1, 151, 152, 153, 154, 155, 0, -1, 158,
6648 159, 160, -1, -1, -1, 8, 9, 10, -1, -1,
6649 13, 14, 15, -1, 17, -1, -1, -1, -1, -1,
6650 -1, -1, 25, -1, 27, 28, -1, -1, -1, -1,
6651 -1, -1, -1, -1, 37, 38, -1, 40, 41, 42,
6652 43, 44, -1, -1, -1, -1, -1, -1, -1, -1,
6653 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6654 -1, -1, -1, -1, -1, 68, 69, -1, -1, -1,
6655 -1, -1, -1, -1, -1, 78, 79, 80, 81, 82,
6656 83, 84, 85, 86, 87, 88, 89, 90, -1, -1,
6657 -1, -1, 95, 96, 97, 98, -1, -1, 101, -1,
6658 -1, -1, -1, 106, -1, -1, -1, -1, -1, -1,
6659 -1, -1, -1, -1, -1, -1, -1, 120, -1, -1,
6660 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6661 -1, -1, 135, -1, 137, 138, 139, 140, 141, 142,
6662 143, 144, 145, 146, -1, -1, -1, -1, -1, 152,
6663 153, 154, 155, 0, 157, 158, 159, 160, -1, -1,
6664 -1, 8, 9, 10, -1, -1, 13, 14, 15, -1,
6665 17, -1, -1, -1, -1, -1, -1, -1, 25, -1,
6666 27, 28, -1, -1, -1, -1, -1, -1, -1, -1,
6667 37, 38, -1, 40, 41, 42, 43, 44, -1, -1,
6668 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6669 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6670 -1, 68, 69, -1, -1, -1, -1, -1, -1, -1,
6671 -1, 78, 79, 80, 81, 82, 83, 84, 85, 86,
6672 87, 88, 89, 90, -1, -1, -1, -1, 95, 96,
6673 97, 98, -1, -1, 101, -1, -1, -1, -1, 106,
6674 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6675 -1, -1, -1, 120, -1, -1, -1, -1, -1, -1,
6676 -1, -1, -1, -1, -1, -1, -1, -1, 135, -1,
6677 137, 138, 139, 140, 141, 142, 143, 144, 145, 146,
6678 -1, -1, -1, -1, -1, 152, 153, 154, 155, 0,
6679 -1, 158, 159, 160, -1, -1, -1, 8, 9, 10,
6680 -1, -1, 13, 14, 15, -1, 17, -1, -1, -1,
6681 -1, -1, -1, -1, 25, -1, 27, 28, -1, -1,
6682 -1, -1, -1, -1, -1, -1, 37, 38, -1, 40,
6683 41, 42, 43, 44, -1, -1, -1, -1, -1, -1,
6684 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6685 -1, -1, -1, -1, -1, -1, -1, 68, 69, -1,
6686 -1, -1, -1, -1, -1, -1, -1, 78, 79, 80,
6687 81, 82, 83, 84, 85, 86, 87, 88, 89, 90,
6688 -1, -1, -1, -1, 95, 96, 97, 98, -1, -1,
6689 101, -1, -1, -1, -1, 106, -1, -1, -1, -1,
6690 -1, -1, -1, -1, -1, -1, -1, -1, -1, 120,
6691 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6692 -1, -1, -1, -1, 135, -1, 137, 138, 139, 140,
6693 141, 142, 143, 144, 145, 146, -1, -1, -1, -1,
6694 -1, 152, 153, 154, 155, 0, -1, 158, 159, 160,
6695 -1, -1, -1, 8, 9, 10, -1, -1, 13, 14,
6696 15, -1, 17, -1, -1, -1, -1, -1, -1, -1,
6697 25, -1, 27, 28, -1, -1, -1, -1, -1, -1,
6698 -1, -1, 37, 38, -1, 40, 41, 42, 43, 44,
6699 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6700 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6701 -1, -1, -1, 68, 69, -1, -1, -1, -1, -1,
6702 -1, -1, -1, 78, 79, 80, 81, 82, 83, 84,
6703 85, 86, 87, 88, 89, 90, -1, -1, -1, -1,
6704 95, 96, 97, 98, -1, -1, 101, -1, -1, -1,
6705 -1, 106, -1, -1, -1, -1, -1, -1, -1, -1,
6706 -1, -1, -1, -1, -1, 120, -1, -1, -1, -1,
6707 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6708 135, -1, 137, 138, 139, 140, 141, 142, 143, 144,
6709 145, 146, -1, -1, -1, -1, -1, 152, 153, 154,
6710 155, 0, -1, 158, 159, 160, -1, -1, -1, 8,
6711 9, 10, -1, -1, -1, 14, 15, -1, 17, -1,
6712 -1, -1, -1, -1, -1, -1, 25, 26, -1, -1,
6713 -1, -1, -1, -1, -1, -1, -1, -1, 37, 38,
6714 -1, 40, 41, 42, 43, 44, -1, -1, -1, -1,
6715 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6716 -1, -1, -1, -1, -1, -1, -1, -1, -1, 68,
6717 69, -1, -1, -1, -1, -1, -1, -1, -1, 78,
6718 79, 80, 81, 82, 83, 84, 85, 86, 87, 88,
6719 89, 90, -1, -1, -1, -1, 95, 96, 97, 98,
6720 -1, 100, 101, -1, -1, -1, -1, -1, -1, -1,
6721 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6722 -1, 120, -1, -1, -1, -1, -1, -1, -1, -1,
6723 -1, -1, -1, -1, -1, 134, 135, -1, 137, 138,
6724 139, 140, 141, 142, 143, 144, 145, 146, -1, -1,
6725 -1, -1, 151, 152, 153, 154, 155, 0, -1, 158,
6726 -1, 160, -1, -1, -1, 8, 9, 10, -1, -1,
6727 -1, 14, 15, -1, 17, -1, -1, -1, -1, -1,
6728 -1, -1, 25, -1, -1, -1, -1, -1, -1, -1,
6729 -1, -1, -1, -1, 37, 38, -1, 40, 41, 42,
6730 43, 44, -1, -1, -1, -1, -1, -1, -1, -1,
6731 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6732 -1, -1, -1, -1, -1, 68, 69, -1, -1, -1,
6733 -1, -1, -1, -1, -1, 78, 79, 80, 81, 82,
6734 83, 84, 85, 86, 87, 88, 89, 90, -1, -1,
6735 -1, -1, 95, 96, 97, 98, -1, 100, 101, -1,
6736 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6737 -1, -1, -1, -1, -1, -1, -1, 120, -1, -1,
6738 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6739 -1, 134, 135, -1, 137, 138, 139, 140, 141, 142,
6740 143, 144, 145, 146, -1, -1, -1, -1, 151, 152,
6741 153, 154, 155, 0, -1, 158, -1, 160, -1, -1,
6742 -1, 8, 9, 10, -1, -1, -1, 14, 15, -1,
6743 17, -1, -1, -1, -1, -1, -1, -1, 25, -1,
6744 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6745 37, 38, -1, 40, 41, 42, 43, 44, -1, -1,
6746 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6747 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6748 -1, 68, 69, -1, -1, -1, -1, -1, -1, -1,
6749 -1, 78, 79, 80, 81, 82, 83, 84, 85, 86,
6750 87, 88, 89, 90, -1, -1, -1, -1, 95, 96,
6751 97, 98, -1, 100, 101, -1, -1, -1, -1, -1,
6752 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6753 -1, -1, -1, 120, -1, -1, -1, -1, -1, -1,
6754 -1, -1, -1, -1, -1, -1, -1, 134, 135, -1,
6755 137, 138, 139, 140, 141, 142, 143, 144, 145, 146,
6756 -1, -1, -1, -1, 151, 152, 153, 154, 155, -1,
6757 -1, 158, 1, 160, 3, 4, 5, 6, 7, 8,
6758 9, 10, 11, 12, -1, -1, 15, 16, -1, 18,
6759 19, 20, 21, 22, 23, 24, -1, -1, -1, -1,
6760 -1, 30, 31, 32, 33, 34, 35, 36, -1, -1,
6761 39, -1, -1, -1, -1, -1, 45, 46, 47, 48,
6762 49, 50, 51, 52, 53, 54, 55, 56, 57, -1,
6763 59, 60, 61, 62, 63, 64, 65, -1, -1, 68,
6764 -1, -1, -1, -1, -1, -1, -1, 76, 77, -1,
6765 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6766 -1, -1, 91, 92, -1, -1, -1, -1, -1, -1,
6767 99, -1, -1, 102, 103, 104, 105, -1, 107, -1,
6768 -1, 110, 111, 112, 113, 114, 115, 116, 117, 118,
6769 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6770 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6771 -1, -1, -1, -1, -1, -1, -1, -1, 147, 148,
6772 149, -1, -1, -1, 1, 154, 3, 4, 5, 6,
6773 7, 160, -1, 10, 11, 12, -1, 14, 15, 16,
6774 -1, 18, 19, 20, 21, 22, 23, 24, -1, -1,
6775 -1, -1, -1, 30, 31, 32, 33, 34, 35, 36,
6776 -1, -1, 39, -1, -1, -1, -1, -1, 45, 46,
6777 47, 48, 49, 50, 51, 52, 53, 54, 55, 56,
6778 57, -1, 59, 60, 61, 62, 63, 64, 65, -1,
6779 -1, 68, -1, -1, -1, -1, -1, -1, -1, 76,
6780 77, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6781 -1, -1, -1, -1, 91, 92, -1, -1, -1, -1,
6782 -1, -1, 99, -1, -1, 102, 103, 104, 105, -1,
6783 107, -1, -1, 110, 111, 112, 113, 114, 115, 116,
6784 117, 118, -1, -1, -1, -1, -1, -1, -1, -1,
6785 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6786 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6787 147, 148, 149, -1, -1, -1, 1, 154, 3, 4,
6788 5, 6, 7, 160, -1, 10, 11, 12, -1, -1,
6789 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
6790 -1, -1, -1, -1, -1, 30, 31, 32, 33, 34,
6791 35, 36, -1, -1, 39, -1, -1, -1, -1, -1,
6792 45, 46, 47, 48, 49, 50, 51, 52, 53, 54,
6793 55, 56, 57, -1, 59, 60, 61, 62, 63, 64,
6794 65, -1, -1, 68, -1, -1, -1, -1, -1, -1,
6795 -1, 76, 77, -1, -1, -1, -1, -1, -1, -1,
6796 -1, -1, -1, -1, -1, -1, 91, 92, -1, -1,
6797 -1, -1, -1, -1, 99, -1, -1, 102, 103, 104,
6798 105, -1, 107, -1, -1, 110, 111, 112, 113, 114,
6799 115, 116, 117, 118, -1, -1, -1, -1, -1, -1,
6800 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6801 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6802 -1, -1, 147, 148, 149, -1, -1, -1, 1, 154,
6803 3, 4, 5, 6, 7, 160, -1, 10, 11, 12,
6804 -1, -1, 15, 16, -1, 18, 19, 20, 21, 22,
6805 23, 24, 25, -1, -1, -1, -1, 30, 31, 32,
6806 33, 34, 35, 36, -1, -1, 39, -1, -1, -1,
6807 -1, -1, 45, 46, 47, 48, 49, 50, 51, 52,
6808 53, 54, 55, 56, 57, -1, 59, 60, 61, 62,
6809 63, 64, 65, -1, -1, 68, -1, -1, -1, -1,
6810 -1, -1, -1, 76, 77, -1, -1, -1, -1, -1,
6811 -1, -1, -1, -1, -1, -1, -1, -1, 91, 92,
6812 -1, -1, -1, -1, -1, -1, 99, -1, -1, 102,
6813 103, 104, 105, -1, 107, -1, -1, 110, 111, 112,
6814 113, 114, 115, 116, 117, 118, -1, -1, -1, -1,
6815 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6816 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6817 -1, -1, -1, -1, 147, 148, 149, -1, -1, -1,
6818 1, 154, 3, 4, 5, 6, 7, 160, -1, 10,
6819 11, 12, -1, -1, 15, 16, -1, 18, 19, 20,
6820 21, 22, 23, 24, -1, -1, -1, -1, -1, 30,
6821 31, 32, 33, 34, 35, 36, -1, -1, 39, -1,
6822 -1, -1, -1, -1, 45, 46, 47, 48, 49, 50,
6823 51, 52, 53, 54, 55, 56, 57, -1, 59, 60,
6824 61, 62, 63, 64, 65, -1, -1, 68, -1, -1,
6825 -1, -1, -1, -1, -1, 76, 77, -1, -1, -1,
6826 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6827 91, 92, -1, -1, -1, -1, -1, -1, 99, -1,
6828 -1, 102, 103, 104, 105, -1, 107, -1, -1, 110,
6829 111, 112, 113, 114, 115, 116, 117, 118, -1, -1,
6830 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6831 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6832 -1, -1, -1, -1, -1, -1, 147, 148, 149, -1,
6833 -1, -1, 1, 154, 3, 4, 5, 6, 7, 160,
6834 9, 10, 11, 12, -1, -1, -1, 16, -1, 18,
6835 19, 20, 21, 22, 23, 24, -1, -1, -1, -1,
6836 -1, 30, 31, 32, 33, 34, 35, 36, -1, -1,
6837 39, -1, -1, -1, -1, -1, 45, 46, 47, 48,
6838 49, 50, 51, 52, 53, 54, 55, 56, 57, -1,
6839 59, 60, 61, 62, 63, 64, 65, -1, -1, 68,
6840 -1, -1, -1, -1, -1, -1, -1, 76, 77, -1,
6841 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6842 -1, -1, 91, 92, -1, -1, -1, -1, -1, -1,
6843 99, -1, -1, 102, 103, 104, 105, -1, 107, -1,
6844 -1, 110, 111, 112, 113, 114, 115, 116, 117, 118,
6845 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6846 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6847 -1, -1, -1, -1, -1, -1, -1, -1, 147, 148,
6848 149, -1, -1, -1, 1, 154, 3, 4, 5, 6,
6849 7, 160, -1, 10, 11, 12, -1, -1, -1, 16,
6850 -1, 18, 19, 20, 21, 22, 23, 24, -1, -1,
6851 -1, -1, -1, 30, 31, 32, 33, 34, 35, 36,
6852 -1, -1, 39, -1, -1, -1, -1, -1, 45, 46,
6853 47, 48, 49, 50, 51, 52, 53, 54, 55, 56,
6854 57, -1, 59, 60, 61, 62, 63, 64, 65, -1,
6855 -1, 68, -1, -1, -1, -1, -1, -1, -1, 76,
6856 77, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6857 -1, -1, -1, -1, 91, 92, -1, -1, -1, -1,
6858 -1, -1, 99, -1, -1, 102, 103, 104, 105, -1,
6859 107, -1, -1, 110, 111, 112, 113, 114, 115, 116,
6860 117, 118, -1, -1, -1, -1, -1, -1, -1, -1,
6861 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6862 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6863 147, 148, 149, -1, -1, -1, 1, 154, 3, 4,
6864 5, 6, 7, 160, -1, -1, 11, 12, -1, -1,
6865 -1, 16, -1, 18, 19, 20, 21, 22, 23, 24,
6866 -1, -1, -1, -1, -1, 30, 31, 32, 33, 34,
6867 35, 36, -1, -1, 39, -1, -1, -1, -1, -1,
6868 45, 46, 47, 48, 49, 50, 51, 52, 53, 54,
6869 55, 56, 57, -1, 59, 60, 61, 62, 63, 64,
6870 65, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6871 -1, 76, 77, -1, -1, -1, -1, -1, -1, -1,
6872 -1, -1, -1, -1, -1, -1, 91, 92, -1, -1,
6873 -1, -1, -1, -1, 99, -1, -1, 102, 103, 104,
6874 105, -1, 107, -1, -1, 110, 111, 112, 113, 114,
6875 115, 116, 117, 118, -1, -1, -1, -1, -1, -1,
6876 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6877 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6878 -1, -1, 147, 148, 149, -1, -1, -1, -1, 154,
6879 -1, -1, -1, 158, 1, 160, 3, 4, 5, 6,
6880 7, -1, -1, -1, 11, 12, -1, -1, -1, 16,
6881 -1, 18, 19, 20, 21, 22, 23, 24, -1, -1,
6882 -1, -1, -1, 30, 31, 32, 33, 34, 35, 36,
6883 -1, -1, 39, -1, -1, -1, -1, -1, 45, 46,
6884 47, 48, 49, 50, 51, 52, 53, 54, 55, 56,
6885 57, -1, 59, 60, 61, 62, 63, 64, 65, -1,
6886 -1, -1, -1, -1, -1, -1, -1, -1, -1, 76,
6887 77, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6888 -1, -1, -1, -1, 91, 92, -1, -1, -1, -1,
6889 -1, -1, 99, -1, -1, 102, 103, 104, 105, -1,
6890 107, -1, -1, 110, 111, 112, 113, 114, 115, 116,
6891 117, 118, -1, -1, -1, -1, -1, -1, -1, -1,
6892 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6893 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6894 147, 148, 149, -1, -1, -1, -1, 154, -1, -1,
6895 -1, 158, 1, 160, 3, 4, 5, 6, 7, -1,
6896 -1, -1, 11, 12, -1, -1, -1, 16, -1, 18,
6897 19, 20, 21, 22, 23, 24, -1, -1, -1, -1,
6898 -1, 30, 31, 32, 33, 34, 35, 36, -1, -1,
6899 39, -1, -1, -1, -1, -1, 45, 46, 47, 48,
6900 49, 50, 51, 52, 53, 54, 55, 56, 57, -1,
6901 59, 60, 61, 62, 63, 64, 65, -1, -1, -1,
6902 -1, -1, -1, -1, -1, -1, -1, 76, 77, -1,
6903 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6904 -1, -1, 91, 92, -1, -1, -1, -1, -1, -1,
6905 99, -1, -1, 102, 103, 104, 105, -1, 107, -1,
6906 -1, 110, 111, 112, 113, 114, 115, 116, 117, 118,
6907 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6908 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6909 -1, -1, -1, -1, -1, -1, -1, -1, 147, 148,
6910 149, -1, -1, 152, 1, 154, 3, 4, 5, 6,
6911 7, 160, -1, -1, 11, 12, -1, -1, -1, 16,
6912 -1, 18, 19, 20, 21, 22, 23, 24, -1, -1,
6913 -1, -1, -1, 30, 31, 32, 33, 34, 35, 36,
6914 -1, -1, 39, -1, -1, -1, -1, -1, 45, 46,
6915 47, 48, 49, 50, 51, 52, 53, 54, 55, 56,
6916 57, -1, 59, 60, 61, 62, 63, 64, 65, -1,
6917 -1, -1, -1, -1, -1, -1, -1, -1, -1, 76,
6918 77, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6919 -1, -1, -1, -1, 91, 92, -1, -1, -1, -1,
6920 -1, -1, 99, -1, -1, 102, 103, 104, 105, -1,
6921 107, -1, -1, 110, 111, 112, 113, 114, 115, 116,
6922 117, 118, -1, -1, -1, -1, -1, -1, -1, -1,
6923 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6924 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6925 147, 148, 149, -1, -1, 152, 1, 154, 3, 4,
6926 5, -1, 7, 160, -1, -1, 11, 12, -1, -1,
6927 -1, 16, 17, 18, 19, 20, 21, 22, 23, 24,
6928 -1, -1, -1, -1, -1, 30, 31, 32, 33, 34,
6929 35, 36, -1, -1, 39, -1, -1, -1, -1, -1,
6930 -1, 46, -1, -1, 49, 50, 51, 52, 53, 54,
6931 55, 56, 57, -1, 59, 60, 61, 62, 63, 64,
6932 65, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6933 -1, 76, 77, -1, -1, -1, -1, -1, -1, -1,
6934 -1, -1, -1, -1, -1, -1, 91, 92, -1, -1,
6935 -1, -1, -1, -1, 99, -1, -1, 102, 103, 104,
6936 105, -1, -1, -1, -1, 110, 111, 112, 113, 114,
6937 115, 116, 117, 118, -1, -1, -1, -1, -1, -1,
6938 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6939 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6940 -1, -1, 147, 148, 149, -1, -1, -1, -1, 154,
6941 -1, -1, -1, -1, -1, 160, 3, 4, 5, 6,
6942 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
6943 17, 18, 19, 20, 21, 22, 23, 24, 25, 26,
6944 -1, -1, -1, 30, 31, 32, 33, 34, 35, 36,
6945 37, 38, 39, -1, -1, -1, -1, -1, 45, 46,
6946 47, 48, 49, 50, 51, 52, 53, 54, 55, 56,
6947 57, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6948 -1, -1, -1, -1, -1, -1, -1, -1, -1, 76,
6949 77, 78, 79, 80, 81, 82, 83, 84, -1, -1,
6950 87, 88, -1, -1, -1, -1, 93, 94, 95, 96,
6951 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6952 107, 108, -1, -1, -1, -1, -1, -1, -1, -1,
6953 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6954 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6955 137, 138, 139, 140, 141, 142, 143, 144, 145, 146,
6956 -1, 148, 149, -1, -1, -1, -1, -1, -1, 156,
6957 157, 3, 4, 5, 6, 7, 8, 9, 10, 11,
6958 12, 13, 14, 15, 16, 17, 18, 19, 20, 21,
6959 22, 23, 24, 25, 26, -1, -1, -1, 30, 31,
6960 32, 33, 34, 35, 36, 37, 38, 39, -1, -1,
6961 -1, -1, -1, 45, 46, 47, 48, 49, 50, 51,
6962 52, 53, 54, 55, 56, 57, -1, -1, -1, -1,
6963 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6964 -1, -1, -1, -1, 76, 77, 78, 79, 80, 81,
6965 82, 83, 84, -1, -1, 87, 88, -1, -1, -1,
6966 -1, 93, 94, 95, 96, -1, -1, -1, -1, -1,
6967 -1, -1, -1, -1, -1, 107, 108, -1, -1, -1,
6968 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6969 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6970 -1, -1, -1, -1, -1, 137, 138, 139, 140, 141,
6971 142, 143, 144, 145, 146, -1, 148, 149, -1, -1,
6972 -1, -1, -1, -1, 156, 3, 4, 5, 6, 7,
6973 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,
6974 18, 19, 20, 21, 22, 23, 24, 25, 26, -1,
6975 -1, -1, 30, 31, 32, 33, 34, 35, 36, 37,
6976 38, 39, -1, -1, -1, -1, -1, 45, 46, 47,
6977 48, 49, 50, 51, 52, 53, 54, -1, 56, -1,
6978 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6979 -1, -1, -1, -1, -1, -1, -1, -1, 76, 77,
6980 78, 79, 80, 81, 82, 83, 84, -1, -1, 87,
6981 88, -1, -1, -1, -1, 93, 94, 95, 96, -1,
6982 -1, -1, -1, -1, -1, -1, -1, -1, -1, 107,
6983 108, -1, -1, 111, -1, -1, -1, -1, -1, -1,
6984 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6985 -1, -1, -1, -1, -1, -1, -1, -1, -1, 137,
6986 138, 139, 140, 141, 142, 143, 144, 145, 146, -1,
6987 148, 149, -1, -1, -1, -1, -1, -1, 156, 3,
6988 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,
6989 14, 15, 16, 17, 18, 19, 20, 21, 22, 23,
6990 24, 25, 26, -1, -1, -1, 30, 31, 32, 33,
6991 34, 35, 36, 37, 38, 39, -1, -1, -1, -1,
6992 -1, 45, 46, 47, 48, 49, 50, 51, 52, 53,
6993 -1, -1, 56, -1, -1, -1, -1, -1, -1, -1,
6994 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
6995 -1, -1, 76, 77, 78, 79, 80, 81, 82, 83,
6996 84, -1, -1, 87, 88, -1, -1, -1, -1, 93,
6997 94, 95, 96, -1, -1, -1, -1, -1, -1, -1,
6998 -1, -1, -1, 107, 108, -1, -1, 111, -1, -1,
6999 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7000 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7001 -1, -1, -1, 137, 138, 139, 140, 141, 142, 143,
7002 144, 145, 146, -1, 148, 149, -1, -1, -1, -1,
7003 -1, -1, 156, 3, 4, 5, 6, 7, 8, 9,
7004 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
7005 20, 21, 22, 23, 24, 25, 26, -1, -1, -1,
7006 30, 31, 32, 33, 34, 35, 36, 37, 38, 39,
7007 -1, -1, -1, -1, -1, 45, 46, 47, 48, 49,
7008 50, 51, 52, 53, -1, -1, 56, -1, -1, -1,
7009 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7010 -1, -1, -1, -1, -1, -1, 76, 77, 78, 79,
7011 80, 81, 82, 83, 84, -1, -1, 87, 88, -1,
7012 -1, -1, -1, 93, 94, 95, 96, -1, -1, -1,
7013 -1, -1, -1, -1, -1, -1, -1, 107, 108, -1,
7014 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7015 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7016 -1, -1, -1, -1, -1, -1, -1, 137, 138, 139,
7017 140, 141, 142, 143, 144, 145, 146, -1, 148, 149,
7018 3, 4, 5, -1, 7, -1, 156, -1, 11, 12,
7019 -1, -1, -1, 16, -1, 18, 19, 20, 21, 22,
7020 23, 24, -1, -1, -1, -1, -1, 30, 31, 32,
7021 33, 34, 35, 36, -1, -1, 39, -1, -1, -1,
7022 -1, -1, -1, 46, -1, -1, 49, 50, 51, 52,
7023 53, 54, 55, 56, 57, -1, 59, 60, 61, 62,
7024 63, 64, 65, -1, -1, -1, -1, -1, -1, -1,
7025 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7026 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7027 -1, -1, -1, -1, -1, -1, 99, -1, -1, 102,
7028 103, 104, 105, -1, -1, -1, -1, 110, 111, 112,
7029 113, 114, 115, 116, 117, 118, -1, -1, 3, 4,
7030 5, -1, 7, -1, -1, -1, 11, 12, -1, -1,
7031 -1, 16, -1, 18, 19, 20, 21, 22, 23, 24,
7032 -1, -1, -1, -1, 147, 30, 31, 32, 33, 34,
7033 35, 36, 155, -1, 39, -1, -1, -1, -1, -1,
7034 -1, 46, -1, -1, 49, 50, 51, 52, 53, 54,
7035 55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
7036 65, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7037 -1, 76, 77, -1, -1, -1, -1, -1, -1, -1,
7038 -1, -1, -1, -1, -1, -1, 91, 92, -1, -1,
7039 -1, -1, -1, -1, 99, -1, -1, 102, 103, 104,
7040 105, -1, 107, 108, 109, 110, 111, 112, 113, 114,
7041 115, 116, 117, 118, -1, -1, -1, -1, -1, -1,
7042 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7043 -1, -1, -1, -1, -1, -1, -1, 3, 4, 5,
7044 -1, 7, 147, 148, 149, 11, 12, -1, -1, 154,
7045 16, -1, 18, 19, 20, 21, 22, 23, 24, -1,
7046 -1, -1, -1, -1, 30, 31, 32, 33, 34, 35,
7047 36, -1, -1, 39, -1, -1, -1, -1, -1, -1,
7048 46, -1, -1, 49, 50, 51, 52, 53, 54, 55,
7049 56, 57, -1, 59, 60, 61, 62, 63, 64, 65,
7050 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7051 76, 77, -1, -1, -1, -1, -1, -1, -1, -1,
7052 -1, -1, -1, -1, -1, 91, 92, -1, -1, -1,
7053 -1, -1, -1, 99, -1, -1, 102, 103, 104, 105,
7054 -1, -1, -1, -1, 110, 111, 112, 113, 114, 115,
7055 116, 117, 118, -1, -1, -1, -1, -1, -1, -1,
7056 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7057 -1, -1, -1, -1, 1, -1, 3, 4, 5, 6,
7058 7, 147, 148, 149, 11, 12, -1, -1, 154, 16,
7059 -1, 18, 19, 20, 21, 22, 23, 24, -1, -1,
7060 -1, -1, -1, 30, 31, 32, 33, 34, 35, 36,
7061 -1, -1, 39, -1, -1, -1, -1, -1, 45, 46,
7062 -1, 48, 49, 50, 51, 52, 53, 54, 55, 56,
7063 57, -1, 59, 60, 61, 62, 63, 64, 65, -1,
7064 -1, -1, -1, -1, -1, -1, -1, -1, -1, 76,
7065 77, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7066 -1, -1, -1, -1, 91, 92, -1, -1, -1, -1,
7067 -1, -1, 99, -1, -1, 102, 103, 104, 105, -1,
7068 107, -1, -1, 110, 111, 112, 113, 114, 115, 116,
7069 117, 118, -1, -1, 1, -1, 3, 4, 5, -1,
7070 7, -1, -1, -1, 11, 12, -1, -1, -1, 16,
7071 -1, 18, 19, 20, 21, 22, 23, 24, -1, -1,
7072 147, 148, 149, 30, 31, 32, 33, 34, 35, 36,
7073 -1, -1, 39, -1, -1, -1, -1, -1, -1, 46,
7074 -1, -1, 49, 50, 51, 52, 53, 54, 55, 56,
7075 57, -1, 59, 60, 61, 62, 63, 64, 65, -1,
7076 -1, -1, -1, -1, -1, -1, -1, -1, -1, 76,
7077 77, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7078 -1, -1, -1, -1, 91, 92, -1, -1, -1, -1,
7079 -1, -1, 99, -1, -1, 102, 103, 104, 105, -1,
7080 -1, -1, -1, 110, 111, 112, 113, 114, 115, 116,
7081 117, 118, -1, -1, -1, -1, 3, 4, 5, -1,
7082 7, -1, -1, -1, 11, 12, -1, -1, -1, 16,
7083 -1, 18, 19, 20, 21, 22, 23, 24, -1, -1,
7084 147, 148, 149, 30, 31, 32, 33, 34, 35, 36,
7085 -1, -1, 39, -1, -1, -1, -1, -1, -1, 46,
7086 -1, -1, 49, 50, 51, 52, 53, 54, 55, 56,
7087 57, 58, 59, 60, 61, 62, 63, 64, 65, -1,
7088 -1, -1, -1, -1, -1, -1, -1, -1, -1, 76,
7089 77, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7090 -1, -1, -1, -1, 91, 92, -1, -1, -1, -1,
7091 -1, -1, 99, -1, -1, 102, 103, 104, 105, -1,
7092 107, 108, 109, 110, 111, 112, 113, 114, 115, 116,
7093 117, 118, -1, -1, -1, -1, 3, 4, 5, -1,
7094 7, -1, -1, -1, 11, 12, -1, -1, -1, 16,
7095 -1, 18, 19, 20, 21, 22, 23, 24, -1, -1,
7096 147, 148, 149, 30, 31, 32, 33, 34, 35, 36,
7097 -1, -1, 39, -1, -1, -1, -1, -1, -1, 46,
7098 -1, -1, 49, 50, 51, 52, 53, 54, 55, 56,
7099 57, 58, 59, 60, 61, 62, 63, 64, 65, -1,
7100 -1, -1, -1, -1, -1, -1, -1, -1, -1, 76,
7101 77, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7102 -1, -1, -1, -1, 91, 92, -1, -1, -1, -1,
7103 -1, -1, 99, -1, -1, 102, 103, 104, 105, -1,
7104 107, 108, 109, 110, 111, 112, 113, 114, 115, 116,
7105 117, 118, -1, -1, -1, -1, 3, 4, 5, -1,
7106 7, -1, -1, -1, 11, 12, -1, -1, -1, 16,
7107 -1, 18, 19, 20, 21, 22, 23, 24, -1, -1,
7108 147, 148, 149, 30, 31, 32, 33, 34, 35, 36,
7109 -1, -1, 39, -1, -1, -1, -1, -1, -1, 46,
7110 -1, -1, 49, 50, 51, 52, 53, 54, 55, 56,
7111 57, 58, 59, 60, 61, 62, 63, 64, 65, -1,
7112 -1, -1, -1, -1, -1, -1, -1, -1, -1, 76,
7113 77, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7114 -1, -1, -1, -1, 91, 92, -1, -1, -1, -1,
7115 -1, -1, 99, -1, -1, 102, 103, 104, 105, -1,
7116 107, 108, 109, 110, 111, 112, 113, 114, 115, 116,
7117 117, 118, -1, -1, -1, -1, 3, 4, 5, -1,
7118 7, -1, -1, -1, 11, 12, -1, -1, -1, 16,
7119 -1, 18, 19, 20, 21, 22, 23, 24, -1, -1,
7120 147, 148, 149, 30, 31, 32, 33, 34, 35, 36,
7121 -1, -1, 39, -1, -1, -1, -1, -1, -1, 46,
7122 -1, -1, 49, 50, 51, 52, 53, 54, 55, 56,
7123 57, 58, 59, 60, 61, 62, 63, 64, 65, -1,
7124 -1, -1, -1, -1, -1, -1, -1, -1, -1, 76,
7125 77, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7126 -1, -1, -1, -1, 91, 92, -1, -1, -1, -1,
7127 -1, -1, 99, -1, -1, 102, 103, 104, 105, -1,
7128 107, 108, 109, 110, 111, 112, 113, 114, 115, 116,
7129 117, 118, -1, -1, -1, -1, 3, 4, 5, -1,
7130 7, -1, -1, -1, 11, 12, -1, -1, -1, 16,
7131 -1, 18, 19, 20, 21, 22, 23, 24, -1, -1,
7132 147, 148, 149, 30, 31, 32, 33, 34, 35, 36,
7133 -1, -1, 39, -1, -1, -1, -1, -1, -1, 46,
7134 -1, -1, 49, 50, 51, 52, 53, 54, 55, 56,
7135 57, 58, 59, 60, 61, 62, 63, 64, 65, -1,
7136 -1, -1, -1, -1, -1, -1, -1, -1, -1, 76,
7137 77, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7138 -1, -1, -1, -1, 91, 92, -1, -1, -1, -1,
7139 -1, -1, 99, -1, -1, 102, 103, 104, 105, -1,
7140 107, 108, -1, 110, 111, 112, 113, 114, 115, 116,
7141 117, 118, -1, -1, -1, -1, 3, 4, 5, -1,
7142 7, -1, -1, -1, 11, 12, -1, -1, -1, 16,
7143 -1, 18, 19, 20, 21, 22, 23, 24, -1, -1,
7144 147, 148, 149, 30, 31, 32, 33, 34, 35, 36,
7145 -1, -1, 39, -1, -1, -1, -1, -1, -1, 46,
7146 -1, -1, 49, 50, 51, 52, 53, 54, 55, 56,
7147 57, 58, 59, 60, 61, 62, 63, 64, 65, -1,
7148 -1, -1, -1, -1, -1, -1, -1, -1, -1, 76,
7149 77, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7150 -1, -1, -1, -1, 91, 92, -1, -1, -1, -1,
7151 -1, -1, 99, -1, -1, 102, 103, 104, 105, -1,
7152 -1, 108, 109, 110, 111, 112, 113, 114, 115, 116,
7153 117, 118, -1, -1, -1, -1, 3, 4, 5, -1,
7154 7, -1, -1, -1, 11, 12, -1, -1, -1, 16,
7155 -1, 18, 19, 20, 21, 22, 23, 24, -1, -1,
7156 147, 148, 149, 30, 31, 32, 33, 34, 35, 36,
7157 -1, -1, 39, -1, -1, -1, -1, -1, -1, 46,
7158 -1, -1, 49, 50, 51, 52, 53, 54, 55, 56,
7159 57, 58, 59, 60, 61, 62, 63, 64, 65, -1,
7160 -1, -1, -1, -1, -1, -1, -1, -1, -1, 76,
7161 77, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7162 -1, -1, -1, -1, 91, 92, -1, -1, -1, -1,
7163 -1, -1, 99, -1, -1, 102, 103, 104, 105, -1,
7164 -1, 108, -1, 110, 111, 112, 113, 114, 115, 116,
7165 117, 118, -1, -1, -1, -1, 3, 4, 5, -1,
7166 7, -1, -1, -1, 11, 12, -1, -1, -1, 16,
7167 -1, 18, 19, 20, 21, 22, 23, 24, -1, -1,
7168 147, 148, 149, 30, 31, 32, 33, 34, 35, 36,
7169 -1, -1, 39, -1, -1, -1, -1, -1, -1, 46,
7170 -1, -1, 49, 50, 51, 52, 53, 54, 55, 56,
7171 57, -1, 59, 60, 61, 62, 63, 64, 65, -1,
7172 -1, -1, -1, -1, -1, -1, -1, -1, -1, 76,
7173 77, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7174 -1, -1, -1, -1, 91, 92, -1, -1, -1, -1,
7175 -1, -1, 99, -1, -1, 102, 103, 104, 105, -1,
7176 107, -1, -1, 110, 111, 112, 113, 114, 115, 116,
7177 117, 118, -1, -1, -1, -1, 3, 4, 5, -1,
7178 7, -1, -1, -1, 11, 12, -1, -1, -1, 16,
7179 -1, 18, 19, 20, 21, 22, 23, 24, -1, -1,
7180 147, 148, 149, 30, 31, 32, 33, 34, 35, 36,
7181 -1, -1, 39, -1, -1, -1, -1, -1, -1, 46,
7182 -1, -1, 49, 50, 51, 52, 53, 54, 55, 56,
7183 57, -1, 59, 60, 61, 62, 63, 64, 65, -1,
7184 -1, -1, -1, -1, -1, -1, -1, -1, -1, 76,
7185 77, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7186 -1, -1, -1, -1, 91, 92, -1, -1, -1, -1,
7187 -1, -1, 99, -1, -1, 102, 103, 104, 105, -1,
7188 107, -1, -1, 110, 111, 112, 113, 114, 115, 116,
7189 117, 118, -1, -1, -1, -1, 3, 4, 5, -1,
7190 7, -1, -1, -1, 11, 12, -1, -1, -1, 16,
7191 -1, 18, 19, 20, 21, 22, 23, 24, -1, -1,
7192 147, 148, 149, 30, 31, 32, 33, 34, 35, 36,
7193 -1, -1, 39, -1, -1, -1, -1, -1, -1, 46,
7194 -1, -1, 49, 50, 51, 52, 53, 54, 55, 56,
7195 57, -1, 59, 60, 61, 62, 63, 64, 65, -1,
7196 -1, -1, -1, -1, -1, -1, -1, -1, -1, 76,
7197 77, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7198 -1, -1, -1, -1, 91, 92, -1, -1, -1, -1,
7199 -1, -1, 99, -1, -1, 102, 103, 104, 105, -1,
7200 107, -1, -1, 110, 111, 112, 113, 114, 115, 116,
7201 117, 118, -1, -1, -1, -1, 3, 4, 5, -1,
7202 7, -1, -1, -1, 11, 12, -1, -1, -1, 16,
7203 -1, 18, 19, 20, 21, 22, 23, 24, -1, -1,
7204 147, 148, 149, 30, 31, 32, 33, 34, 35, 36,
7205 -1, -1, 39, -1, -1, -1, -1, -1, -1, 46,
7206 -1, -1, 49, 50, 51, 52, 53, 54, 55, 56,
7207 57, -1, 59, 60, 61, 62, 63, 64, 65, -1,
7208 -1, -1, -1, -1, -1, -1, -1, -1, -1, 76,
7209 77, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7210 -1, -1, -1, -1, 91, 92, -1, -1, -1, -1,
7211 -1, -1, 99, -1, -1, 102, 103, 104, 105, -1,
7212 107, -1, -1, 110, 111, 112, 113, 114, 115, 116,
7213 117, 118, -1, -1, -1, -1, 3, 4, 5, -1,
7214 7, -1, -1, -1, 11, 12, -1, -1, -1, 16,
7215 -1, 18, 19, 20, 21, 22, 23, 24, -1, -1,
7216 147, 148, 149, 30, 31, 32, 33, 34, 35, 36,
7217 -1, -1, 39, -1, -1, -1, -1, -1, -1, 46,
7218 -1, -1, 49, 50, 51, 52, 53, 54, 55, 56,
7219 57, -1, 59, 60, 61, 62, 63, 64, 65, -1,
7220 -1, -1, -1, -1, -1, -1, -1, -1, -1, 76,
7221 77, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7222 -1, -1, -1, -1, 91, 92, -1, -1, -1, -1,
7223 -1, -1, 99, -1, -1, 102, 103, 104, 105, -1,
7224 107, -1, -1, 110, 111, 112, 113, 114, 115, 116,
7225 117, 118, -1, -1, -1, -1, 3, 4, 5, -1,
7226 7, -1, -1, -1, 11, 12, -1, -1, -1, 16,
7227 -1, 18, 19, 20, 21, 22, 23, 24, -1, -1,
7228 147, 148, 149, 30, 31, 32, 33, 34, 35, 36,
7229 -1, -1, 39, -1, -1, -1, -1, -1, -1, 46,
7230 -1, -1, 49, 50, 51, 52, 53, 54, 55, 56,
7231 57, -1, 59, 60, 61, 62, 63, 64, 65, -1,
7232 -1, -1, -1, -1, -1, -1, -1, -1, -1, 76,
7233 77, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7234 -1, -1, -1, -1, 91, 92, -1, -1, -1, -1,
7235 -1, -1, 99, -1, -1, 102, 103, 104, 105, -1,
7236 107, -1, -1, 110, 111, 112, 113, 114, 115, 116,
7237 117, 118, -1, -1, -1, -1, 3, 4, 5, -1,
7238 7, -1, -1, -1, 11, 12, -1, -1, -1, 16,
7239 -1, 18, 19, 20, 21, 22, 23, 24, -1, -1,
7240 147, 148, 149, 30, 31, 32, 33, 34, 35, 36,
7241 -1, -1, 39, -1, -1, -1, -1, -1, -1, 46,
7242 -1, -1, 49, 50, 51, 52, 53, 54, 55, 56,
7243 57, -1, 59, 60, 61, 62, 63, 64, 65, -1,
7244 -1, -1, -1, -1, -1, -1, -1, -1, -1, 76,
7245 77, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7246 -1, -1, -1, -1, 91, 92, -1, -1, -1, -1,
7247 -1, -1, 99, -1, -1, 102, 103, 104, 105, -1,
7248 -1, -1, -1, 110, 111, 112, 113, 114, 115, 116,
7249 117, 118, -1, -1, -1, -1, 3, 4, 5, -1,
7250 7, -1, -1, -1, 11, 12, -1, -1, -1, 16,
7251 -1, 18, 19, 20, 21, 22, 23, 24, -1, -1,
7252 147, 148, 149, 30, 31, 32, 33, 34, 35, 36,
7253 -1, -1, 39, -1, -1, -1, -1, -1, -1, 46,
7254 -1, -1, 49, 50, 51, 52, 53, 54, 55, 56,
7255 57, -1, 59, 60, 61, 62, 63, 64, 65, -1,
7256 -1, -1, -1, -1, -1, -1, -1, -1, -1, 76,
7257 77, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7258 -1, -1, -1, -1, 91, 92, -1, -1, -1, -1,
7259 -1, -1, 99, -1, -1, 102, 103, 104, 105, -1,
7260 -1, -1, -1, 110, 111, 112, 113, 114, 115, 116,
7261 117, 118, -1, -1, -1, -1, 3, 4, 5, -1,
7262 7, -1, -1, -1, 11, 12, -1, -1, -1, 16,
7263 -1, 18, 19, 20, 21, 22, 23, 24, -1, -1,
7264 147, 148, 149, 30, 31, 32, 33, 34, 35, 36,
7265 -1, -1, 39, -1, -1, -1, -1, -1, -1, 46,
7266 -1, -1, 49, 50, 51, 52, 53, 54, 55, 56,
7267 57, -1, 59, 60, 61, 62, 63, 64, 65, -1,
7268 -1, -1, -1, -1, -1, -1, -1, -1, -1, 76,
7269 77, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7270 -1, -1, -1, -1, 91, 92, -1, -1, -1, -1,
7271 -1, -1, 99, -1, -1, 102, 103, 104, 105, -1,
7272 -1, -1, -1, 110, 111, 112, 113, 114, 115, 116,
7273 117, 118, -1, -1, -1, -1, 3, 4, 5, -1,
7274 7, -1, -1, -1, 11, 12, -1, -1, -1, 16,
7275 -1, 18, 19, 20, 21, 22, 23, 24, -1, -1,
7276 147, 148, 149, 30, 31, 32, 33, 34, 35, 36,
7277 -1, -1, 39, -1, -1, -1, -1, -1, -1, 46,
7278 -1, -1, 49, 50, 51, 52, 53, 54, 55, 56,
7279 57, -1, 59, 60, 61, 62, 63, 64, 65, -1,
7280 -1, -1, -1, -1, -1, -1, -1, -1, -1, 76,
7281 77, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7282 -1, -1, -1, -1, 91, 92, -1, -1, -1, -1,
7283 -1, -1, 99, -1, -1, 102, 103, 104, 105, -1,
7284 -1, -1, -1, 110, 111, 112, 113, 114, 115, 116,
7285 117, 118, -1, -1, -1, -1, 3, 4, 5, -1,
7286 7, -1, -1, -1, 11, 12, -1, -1, -1, 16,
7287 -1, 18, 19, 20, 21, 22, 23, 24, -1, -1,
7288 147, 148, 149, 30, 31, 32, 33, 34, 35, 36,
7289 -1, -1, 39, -1, -1, -1, -1, -1, -1, 46,
7290 -1, -1, 49, 50, 51, 52, 53, 54, 55, 56,
7291 57, -1, 59, 60, 61, 62, 63, 64, 65, -1,
7292 -1, -1, -1, -1, -1, -1, -1, -1, -1, 76,
7293 77, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7294 -1, -1, -1, -1, 91, 92, -1, -1, -1, -1,
7295 -1, -1, 99, -1, -1, 102, 103, 104, 105, -1,
7296 -1, -1, -1, 110, 111, 112, 113, 114, 115, 116,
7297 117, 118, -1, -1, -1, -1, 3, 4, 5, -1,
7298 7, -1, -1, -1, 11, 12, -1, -1, -1, 16,
7299 -1, 18, 19, 20, 21, 22, 23, 24, -1, -1,
7300 147, 148, 149, 30, 31, 32, 33, 34, 35, 36,
7301 -1, -1, 39, -1, -1, -1, -1, -1, -1, 46,
7302 -1, -1, 49, 50, 51, 52, 53, 54, 55, 56,
7303 57, -1, 59, 60, 61, 62, 63, 64, 65, -1,
7304 -1, -1, -1, -1, -1, -1, -1, -1, -1, 76,
7305 77, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7306 -1, -1, -1, -1, 91, 92, -1, -1, -1, -1,
7307 -1, -1, 99, -1, -1, 102, 103, 104, 105, -1,
7308 -1, -1, -1, 110, 111, 112, 113, 114, 115, 116,
7309 117, 118, -1, -1, -1, -1, 3, 4, 5, -1,
7310 7, -1, -1, -1, 11, 12, -1, -1, -1, 16,
7311 -1, 18, 19, 20, 21, 22, 23, 24, -1, -1,
7312 147, 148, 149, 30, 31, 32, 33, 34, 35, 36,
7313 -1, -1, 39, -1, -1, -1, -1, -1, -1, 46,
7314 -1, -1, 49, 50, 51, 52, 53, 54, 55, 56,
7315 57, -1, 59, 60, 61, 62, 63, 64, 65, -1,
7316 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7317 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7318 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7319 -1, -1, 99, -1, -1, 102, 103, 104, 105, -1,
7320 107, -1, -1, 110, 111, 112, 113, 114, 115, 116,
7321 117, 118, -1, -1, 3, 4, 5, -1, 7, -1,
7322 -1, -1, 11, 12, -1, -1, -1, 16, -1, 18,
7323 19, 20, 21, 22, 23, 24, -1, -1, -1, -1,
7324 147, 30, 31, 32, 33, 34, 35, 36, -1, -1,
7325 39, -1, -1, -1, -1, -1, -1, 46, -1, -1,
7326 49, 50, 51, 52, 53, 54, 55, 56, 57, -1,
7327 59, 60, 61, 62, 63, 64, 65, -1, -1, -1,
7328 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7329 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7330 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7331 99, -1, -1, 102, 103, 104, 105, -1, 107, -1,
7332 -1, 110, 111, 112, 113, 114, 115, 116, 117, 118,
7333 -1, -1, 3, 4, 5, -1, 7, -1, -1, -1,
7334 11, 12, -1, -1, -1, 16, -1, 18, 19, 20,
7335 21, 22, 23, 24, -1, -1, -1, -1, 147, 30,
7336 31, 32, 33, 34, 35, 36, -1, -1, 39, -1,
7337 -1, -1, -1, -1, -1, 46, -1, -1, 49, 50,
7338 51, 52, 53, 54, 55, 56, 57, -1, 59, 60,
7339 61, 62, 63, 64, 65, -1, -1, -1, -1, -1,
7340 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7341 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7342 -1, -1, -1, -1, 95, -1, -1, -1, 99, -1,
7343 -1, 102, 103, 104, 105, -1, -1, -1, -1, 110,
7344 111, 112, 113, 114, 115, 116, 117, 118, -1, -1,
7345 3, 4, 5, -1, 7, -1, -1, -1, 11, 12,
7346 -1, -1, -1, 16, -1, 18, 19, 20, 21, 22,
7347 23, 24, -1, -1, -1, -1, 147, 30, 31, 32,
7348 33, 34, 35, 36, -1, -1, 39, -1, -1, -1,
7349 -1, -1, -1, 46, -1, -1, 49, 50, 51, 52,
7350 53, 54, 55, 56, 57, -1, 59, 60, 61, 62,
7351 63, 64, 65, -1, -1, -1, -1, -1, -1, -1,
7352 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7353 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7354 -1, -1, -1, -1, -1, -1, 99, -1, -1, 102,
7355 103, 104, 105, -1, -1, -1, -1, 110, 111, 112,
7356 113, 114, 115, 116, 117, 118, -1, -1, 3, 4,
7357 5, -1, 7, -1, -1, -1, 11, 12, -1, -1,
7358 -1, 16, -1, 18, 19, 20, 21, 22, 23, 24,
7359 -1, -1, -1, -1, 147, 30, 31, 32, 33, 34,
7360 35, 36, -1, -1, 39, -1, -1, -1, -1, -1,
7361 -1, 46, -1, -1, 49, 50, 51, 52, 53, 54,
7362 55, 56, 57, -1, 59, 60, 61, 62, 63, 64,
7363 65, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7364 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7365 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7366 -1, -1, -1, -1, 99, -1, -1, 102, 103, 104,
7367 105, -1, -1, -1, -1, 110, 111, 112, 113, 114,
7368 115, 116, 117, 118, -1, -1, 3, 4, 5, -1,
7369 7, -1, -1, -1, 11, 12, -1, -1, -1, 16,
7370 -1, 18, 19, 20, 21, 22, 23, 24, -1, -1,
7371 -1, -1, 147, 30, 31, 32, 33, 34, 35, 36,
7372 -1, -1, 39, -1, -1, -1, -1, -1, -1, 46,
7373 -1, -1, 49, 50, 51, 52, 53, 54, 55, 56,
7374 57, -1, 59, 60, 61, 62, 63, 64, 65, -1,
7375 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7376 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7377 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7378 -1, -1, 99, -1, -1, 102, 103, 104, 105, -1,
7379 -1, -1, -1, 110, 111, 112, 113, 114, 115, 116,
7380 117, 118, -1, -1, 3, 4, 5, -1, 7, -1,
7381 -1, -1, 11, 12, -1, -1, -1, 16, -1, 18,
7382 19, 20, 21, 22, 23, 24, -1, -1, -1, -1,
7383 147, 30, 31, 32, 33, 34, 35, 36, -1, -1,
7384 39, -1, -1, -1, -1, -1, -1, 46, -1, -1,
7385 49, 50, 51, 52, 53, 54, 55, 56, 57, -1,
7386 59, 60, 61, 62, 63, 64, 65, -1, -1, -1,
7387 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7388 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7389 -1, -1, -1, -1, -1, -1, -1, 52, 53, -1,
7390 99, 56, -1, 102, 103, 104, 105, -1, -1, -1,
7391 -1, 110, 111, 112, 113, 114, 115, 116, 117, 118,
7392 -1, 76, 77, 78, 79, 80, 81, 82, 83, 84,
7393 -1, -1, 87, 88, -1, -1, -1, -1, 93, 94,
7394 95, 96, -1, -1, -1, -1, -1, -1, 147, -1,
7395 -1, -1, 107, 108, -1, -1, -1, -1, -1, -1,
7396 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7397 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7398 -1, -1, 137, 138, 139, 140, 141, 142, 143, 144,
7399 145, 146, -1, 148, 149, 52, 53, -1, -1, 56,
7400 -1, 156, -1, -1, -1, -1, -1, -1, -1, -1,
7401 -1, -1, -1, -1, -1, -1, -1, -1, -1, 76,
7402 77, 78, 79, 80, 81, 82, 83, 84, -1, -1,
7403 87, 88, -1, -1, -1, -1, 93, 94, 95, 96,
7404 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7405 107, 108, -1, -1, -1, -1, -1, -1, -1, -1,
7406 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7407 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7408 137, 138, 139, 140, 141, 142, 143, 144, 145, 146,
7409 -1, 148, 149, 52, 53, -1, -1, 56, -1, 156,
7410 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7411 -1, -1, -1, -1, -1, -1, -1, 76, 77, 78,
7412 79, 80, 81, 82, 83, 84, -1, -1, 87, 88,
7413 -1, -1, -1, -1, 93, 94, 95, 96, -1, -1,
7414 -1, -1, -1, -1, -1, -1, -1, -1, 107, 108,
7415 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7416 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7417 -1, -1, -1, -1, -1, -1, -1, -1, 137, 138,
7418 139, 140, 141, 142, 143, 144, 145, 146, -1, 148,
7419 149, 52, 53, -1, -1, 56, -1, 156, -1, -1,
7420 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7421 -1, -1, -1, -1, -1, 76, 77, 78, 79, 80,
7422 81, 82, 83, 84, -1, -1, 87, 88, -1, -1,
7423 -1, -1, 93, 94, 95, 96, -1, -1, -1, -1,
7424 -1, -1, -1, -1, -1, -1, 107, 108, -1, -1,
7425 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7426 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7427 -1, -1, -1, -1, -1, -1, 137, 138, 139, 140,
7428 141, 142, 143, 144, 145, 146, -1, 148, 149, 52,
7429 53, -1, -1, 56, -1, 156, -1, -1, -1, -1,
7430 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7431 -1, -1, -1, 76, 77, 78, 79, 80, 81, 82,
7432 83, 84, -1, -1, 87, 88, -1, -1, -1, -1,
7433 93, 94, 95, 96, -1, -1, -1, -1, -1, -1,
7434 -1, -1, -1, -1, 107, 108, -1, -1, -1, -1,
7435 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7436 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7437 -1, -1, -1, -1, 137, 138, 139, 140, 141, 142,
7438 143, 144, 145, 146, -1, 148, 149, 52, 53, -1,
7439 -1, 56, -1, 156, -1, -1, -1, -1, -1, -1,
7440 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7441 -1, 76, 77, 78, 79, 80, 81, 82, 83, 84,
7442 -1, -1, 87, 88, -1, -1, -1, -1, 93, 94,
7443 95, 96, -1, -1, -1, -1, -1, -1, -1, -1,
7444 -1, -1, 107, 108, -1, -1, -1, -1, -1, -1,
7445 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7446 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7447 -1, -1, 137, 138, 139, 140, 141, 142, 143, 144,
7448 145, 146, -1, 148, 149, 52, 53, -1, -1, 56,
7449 -1, 156, -1, -1, -1, -1, -1, -1, -1, -1,
7450 -1, -1, -1, -1, -1, -1, -1, -1, -1, 76,
7451 77, 78, 79, 80, 81, 82, 83, 84, -1, -1,
7452 87, 88, -1, -1, -1, -1, 93, 94, 95, 96,
7453 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7454 107, 108, -1, -1, -1, -1, -1, -1, -1, -1,
7455 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7456 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7457 137, 138, 139, 140, 141, 142, 143, 144, 145, 146,
7458 -1, 148, 149, 52, 53, -1, -1, 56, -1, 156,
7459 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7460 -1, -1, -1, -1, -1, -1, -1, 76, 77, 78,
7461 79, 80, 81, 82, 83, 84, -1, -1, 87, 88,
7462 -1, -1, -1, -1, 93, 94, 95, 96, -1, -1,
7463 -1, -1, -1, -1, -1, -1, -1, -1, 107, 108,
7464 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7465 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7466 -1, -1, -1, -1, -1, -1, -1, -1, 137, 138,
7467 139, 140, 141, 142, 143, 144, 145, 146, -1, 148,
7468 149, 52, 53, -1, -1, 56, -1, 156, -1, -1,
7469 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7470 -1, -1, -1, -1, -1, 76, 77, 78, 79, 80,
7471 81, 82, 83, 84, -1, -1, 87, 88, -1, -1,
7472 -1, -1, 93, 94, 95, 96, -1, -1, -1, -1,
7473 -1, -1, -1, -1, -1, -1, 107, 108, -1, -1,
7474 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7475 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7476 -1, -1, -1, -1, -1, -1, 137, 138, 139, 140,
7477 141, 142, 143, 144, 145, 146, -1, 148, 149, 52,
7478 53, -1, -1, 56, -1, 156, -1, -1, -1, -1,
7479 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7480 -1, -1, -1, 76, 77, 78, 79, 80, 81, 82,
7481 83, 84, -1, -1, 87, 88, -1, -1, -1, -1,
7482 93, 94, 95, 96, -1, -1, -1, -1, -1, -1,
7483 -1, -1, -1, -1, 107, 108, -1, -1, -1, -1,
7484 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7485 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7486 -1, -1, -1, -1, 137, 138, 139, 140, 141, 142,
7487 143, 144, 145, 146, -1, 148, 149, 52, 53, -1,
7488 -1, 56, -1, 156, -1, -1, -1, -1, -1, -1,
7489 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7490 -1, 76, 77, 78, 79, 80, 81, 82, 83, 84,
7491 -1, -1, 87, 88, -1, -1, -1, -1, 93, 94,
7492 95, 96, -1, -1, -1, -1, -1, -1, -1, -1,
7493 -1, -1, 107, 108, -1, -1, -1, -1, -1, -1,
7494 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7495 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7496 -1, -1, 137, 138, 139, 140, 141, 142, 143, 144,
7497 145, 146, -1, 148, 149, 52, 53, -1, -1, 56,
7498 -1, 156, -1, -1, -1, -1, -1, -1, -1, -1,
7499 -1, -1, -1, -1, -1, -1, -1, -1, -1, 76,
7500 77, 78, 79, 80, 81, 82, 83, 84, -1, -1,
7501 87, 88, -1, -1, -1, -1, 93, 94, 95, 96,
7502 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7503 107, 108, -1, -1, -1, -1, -1, -1, -1, -1,
7504 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7505 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7506 137, 138, 139, 140, 141, 142, 143, 144, 145, 146,
7507 -1, 148, 149, 52, 53, -1, -1, 56, -1, 156,
7508 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7509 -1, -1, -1, -1, -1, -1, -1, 76, 77, 78,
7510 79, 80, 81, 82, 83, 84, -1, -1, 87, 88,
7511 -1, -1, -1, -1, 93, 94, 95, 96, -1, -1,
7512 -1, -1, -1, -1, -1, -1, -1, -1, 107, 108,
7513 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7514 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7515 -1, -1, -1, -1, -1, -1, -1, -1, 137, 138,
7516 139, 140, 141, 142, 143, 144, 145, 146, -1, 148,
7517 149, 52, 53, -1, -1, 56, -1, 156, -1, -1,
7518 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7519 -1, -1, -1, -1, -1, 76, 77, 78, 79, 80,
7520 81, 82, 83, 84, -1, -1, 87, 88, -1, -1,
7521 -1, -1, 93, 94, 95, 96, -1, -1, -1, -1,
7522 -1, -1, -1, -1, -1, -1, 107, 108, -1, -1,
7523 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7524 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7525 -1, -1, -1, -1, -1, -1, 137, 138, 139, 140,
7526 141, 142, 143, 144, 145, 146, -1, 148, 149, 52,
7527 53, -1, -1, 56, -1, 156, -1, -1, -1, -1,
7528 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7529 -1, -1, -1, 76, 77, 78, 79, 80, 81, 82,
7530 83, 84, -1, -1, 87, 88, -1, -1, -1, -1,
7531 93, 94, 95, 96, -1, -1, -1, -1, -1, -1,
7532 -1, -1, -1, -1, 107, 108, -1, -1, -1, -1,
7533 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7534 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7535 -1, -1, -1, -1, 137, 138, 139, 140, 141, 142,
7536 143, 144, 145, 146, -1, 148, 149, 52, 53, -1,
7537 -1, 56, -1, 156, -1, -1, -1, -1, -1, -1,
7538 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7539 -1, 76, 77, 78, 79, 80, 81, 82, 83, 84,
7540 -1, -1, 87, 88, -1, -1, -1, -1, 93, 94,
7541 95, 96, -1, -1, -1, -1, -1, -1, -1, -1,
7542 -1, -1, 107, 108, -1, -1, -1, -1, -1, -1,
7543 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7544 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
7545 -1, -1, 137, 138, 139, 140, 141, 142, 143, 144,
7546 145, 146, -1, 148, 149, -1, -1, -1, -1, -1,
7552static const yytype_int16 yystos[] =
7554 0, 165, 166, 1, 3, 4, 5, 6, 7, 11,
7555 12, 16, 18, 19, 20, 21, 22, 23, 24, 30,
7556 31, 32, 33, 34, 35, 36, 39, 45, 46, 47,
7557 48, 49, 50, 51, 52, 53, 54, 55, 56, 57,
7558 59, 60, 61, 62, 63, 64, 65, 76, 77, 91,
7559 92, 99, 102, 103, 104, 105, 107, 110, 111, 112,
7560 113, 114, 115, 116, 117, 118, 147, 148, 149, 164,
7561 167, 168, 180, 182, 183, 184, 185, 186, 187, 191,
7562 195, 197, 203, 206, 208, 209, 210, 212, 214, 215,
7563 216, 217, 226, 227, 228, 229, 230, 231, 234, 255,
7564 267, 268, 269, 270, 271, 272, 273, 274, 275, 276,
7565 277, 278, 287, 288, 289, 290, 291, 324, 329, 330,
7566 380, 381, 382, 383, 384, 385, 387, 388, 391, 392,
7567 394, 395, 396, 397, 411, 412, 414, 415, 416, 417,
7568 418, 419, 420, 421, 422, 470, 0, 3, 4, 5,
7569 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
7570 16, 17, 18, 19, 20, 21, 22, 23, 24, 25,
7571 26, 30, 31, 32, 33, 34, 35, 36, 37, 38,
7572 39, 45, 46, 47, 48, 49, 50, 51, 52, 53,
7573 56, 76, 77, 78, 79, 80, 81, 82, 83, 84,
7574 87, 88, 93, 94, 95, 96, 107, 108, 137, 138,
7575 139, 140, 141, 142, 143, 144, 145, 146, 148, 149,
7576 156, 220, 221, 222, 224, 225, 411, 179, 179, 179,
7577 157, 242, 247, 248, 154, 157, 189, 54, 221, 189,
7578 151, 169, 170, 235, 470, 21, 22, 32, 39, 99,
7579 102, 148, 195, 197, 208, 217, 227, 268, 287, 291,
7580 418, 419, 421, 422, 227, 227, 227, 56, 47, 102,
7581 171, 176, 177, 182, 211, 212, 470, 171, 58, 107,
7582 108, 112, 227, 238, 239, 240, 251, 252, 457, 458,
7583 470, 239, 456, 457, 470, 46, 99, 147, 155, 195,
7584 197, 216, 255, 268, 418, 419, 422, 322, 220, 400,
7585 413, 417, 400, 401, 402, 161, 386, 386, 386, 386,
7586 416, 203, 227, 268, 227, 154, 160, 163, 468, 469,
7587 179, 40, 41, 42, 43, 44, 37, 38, 157, 425,
7588 426, 427, 428, 470, 425, 427, 26, 151, 242, 248,
7589 279, 331, 28, 280, 328, 134, 155, 102, 107, 214,
7590 134, 25, 78, 79, 80, 81, 82, 83, 84, 85,
7591 86, 87, 88, 89, 90, 95, 96, 101, 135, 137,
7592 138, 139, 140, 141, 142, 143, 144, 145, 146, 233,
7593 233, 69, 97, 98, 153, 462, 463, 256, 1, 191,
7594 198, 199, 199, 200, 202, 202, 163, 199, 469, 99,
7595 210, 217, 268, 296, 418, 419, 422, 52, 56, 95,
7596 99, 218, 219, 268, 418, 419, 422, 219, 33, 34,
7597 35, 36, 49, 50, 51, 52, 56, 157, 194, 220,
7598 420, 452, 453, 454, 109, 187, 209, 245, 246, 249,
7599 251, 457, 246, 246, 157, 248, 98, 462, 463, 331,
7600 383, 100, 100, 155, 92, 244, 246, 251, 437, 457,
7601 470, 246, 189, 191, 464, 191, 54, 64, 65, 181,
7602 157, 235, 236, 164, 56, 425, 425, 134, 98, 153,
7603 462, 100, 100, 100, 178, 211, 158, 163, 469, 464,
7604 257, 239, 239, 239, 400, 101, 159, 155, 189, 467,
7605 155, 467, 152, 467, 189, 56, 416, 213, 214, 426,
7606 155, 98, 153, 462, 319, 66, 119, 121, 122, 403,
7607 119, 119, 403, 67, 403, 161, 389, 398, 393, 399,
7608 78, 98, 462, 160, 168, 151, 199, 199, 199, 199,
7609 235, 237, 191, 191, 52, 54, 55, 56, 57, 58,
7610 78, 92, 102, 107, 108, 109, 141, 144, 301, 367,
7611 429, 430, 431, 432, 433, 434, 436, 437, 438, 439,
7612 440, 441, 442, 443, 444, 445, 446, 447, 448, 449,
7613 450, 134, 265, 436, 134, 266, 332, 333, 106, 207,
7614 334, 335, 335, 235, 211, 155, 216, 155, 235, 193,
7615 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
7616 227, 227, 227, 192, 227, 227, 227, 227, 227, 227,
7617 227, 227, 227, 227, 227, 52, 53, 56, 224, 459,
7618 460, 244, 251, 52, 53, 56, 224, 459, 242, 171,
7619 174, 13, 292, 468, 292, 199, 171, 171, 259, 163,
7620 56, 98, 153, 462, 25, 199, 52, 56, 218, 138,
7621 424, 470, 98, 153, 462, 264, 455, 69, 98, 461,
7622 239, 155, 250, 470, 155, 250, 246, 464, 52, 56,
7623 242, 459, 235, 235, 223, 464, 155, 464, 155, 158,
7624 464, 221, 236, 227, 152, 100, 134, 134, 235, 52,
7625 56, 459, 244, 52, 56, 459, 235, 235, 235, 170,
7626 464, 177, 158, 124, 239, 239, 252, 457, 458, 155,
7627 213, 52, 56, 244, 52, 56, 320, 405, 404, 119,
7628 390, 403, 66, 119, 119, 390, 66, 119, 227, 56,
7629 171, 182, 102, 107, 297, 298, 299, 300, 439, 155,
7630 451, 470, 155, 451, 155, 435, 464, 302, 303, 155,
7631 435, 239, 34, 52, 52, 155, 435, 52, 39, 188,
7632 209, 227, 232, 174, 468, 188, 232, 174, 319, 152,
7633 333, 319, 10, 68, 286, 286, 107, 203, 204, 205,
7634 239, 251, 253, 254, 464, 213, 155, 99, 185, 190,
7635 205, 217, 227, 239, 241, 254, 268, 422, 341, 341,
7636 189, 100, 100, 151, 242, 248, 189, 465, 155, 100,
7637 100, 242, 243, 248, 470, 235, 286, 171, 13, 171,
7638 27, 293, 468, 286, 286, 17, 283, 337, 25, 258,
7639 343, 52, 56, 244, 52, 56, 260, 263, 423, 262,
7640 52, 56, 218, 244, 174, 191, 196, 249, 457, 464,
7641 243, 248, 190, 227, 241, 190, 241, 221, 437, 457,
7642 191, 235, 39, 100, 100, 465, 100, 100, 190, 241,
7643 239, 467, 214, 465, 321, 406, 410, 417, 422, 386,
7644 403, 386, 386, 386, 152, 299, 439, 155, 464, 155,
7645 450, 429, 444, 446, 432, 433, 442, 448, 134, 239,
7646 434, 441, 448, 440, 442, 189, 44, 44, 286, 286,
7647 320, 152, 320, 239, 155, 44, 213, 56, 44, 134,
7648 44, 98, 153, 462, 339, 339, 136, 235, 235, 333,
7649 207, 159, 100, 235, 235, 207, 8, 281, 376, 470,
7650 14, 15, 284, 285, 294, 295, 470, 295, 201, 107,
7651 239, 336, 286, 341, 337, 286, 465, 199, 468, 199,
7652 174, 465, 286, 464, 194, 250, 331, 328, 464, 155,
7653 464, 189, 235, 235, 100, 235, 235, 179, 407, 464,
7654 297, 300, 298, 451, 155, 435, 155, 435, 155, 435,
7655 155, 435, 435, 188, 232, 237, 237, 321, 321, 107,
7656 239, 237, 237, 235, 237, 52, 56, 244, 52, 56,
7657 340, 340, 227, 190, 241, 190, 241, 152, 235, 190,
7658 241, 190, 241, 239, 254, 377, 470, 175, 284, 171,
7659 199, 286, 286, 239, 155, 292, 339, 286, 293, 174,
7660 468, 286, 235, 157, 325, 436, 408, 155, 155, 442,
7661 442, 448, 442, 227, 227, 179, 179, 239, 182, 182,
7662 227, 465, 52, 56, 58, 91, 92, 99, 102, 104,
7663 105, 107, 112, 140, 324, 346, 347, 348, 350, 353,
7664 357, 358, 359, 362, 363, 364, 365, 366, 367, 368,
7665 369, 370, 371, 372, 373, 374, 375, 380, 381, 384,
7666 385, 388, 392, 395, 397, 419, 444, 346, 190, 241,
7667 101, 378, 470, 9, 282, 379, 470, 172, 292, 107,
7668 239, 171, 340, 261, 286, 436, 323, 171, 298, 435,
7669 435, 155, 435, 435, 139, 313, 314, 470, 313, 371,
7670 371, 56, 218, 340, 347, 355, 356, 357, 358, 361,
7671 465, 189, 340, 466, 52, 400, 52, 102, 417, 101,
7672 155, 139, 155, 155, 347, 89, 90, 98, 153, 157,
7673 351, 352, 52, 99, 217, 268, 418, 419, 422, 292,
7674 176, 171, 171, 239, 295, 337, 338, 345, 346, 171,
7675 189, 316, 29, 123, 326, 0, 120, 409, 442, 301,
7676 304, 305, 306, 307, 309, 310, 312, 315, 440, 442,
7677 443, 448, 450, 171, 174, 347, 465, 347, 359, 361,
7678 465, 155, 152, 235, 124, 199, 372, 355, 359, 349,
7679 360, 361, 112, 364, 368, 371, 371, 218, 340, 465,
7680 340, 464, 355, 358, 362, 355, 358, 362, 56, 98,
7681 153, 462, 171, 163, 173, 294, 292, 40, 41, 286,
7682 160, 158, 327, 171, 435, 451, 155, 451, 155, 311,
7683 316, 303, 155, 308, 311, 99, 268, 155, 311, 464,
7684 155, 155, 354, 464, 155, 353, 155, 400, 464, 464,
7685 464, 465, 465, 465, 52, 56, 244, 52, 56, 376,
7686 379, 342, 199, 199, 52, 317, 318, 438, 174, 152,
7687 304, 446, 307, 309, 442, 448, 139, 268, 310, 448,
7688 56, 98, 442, 360, 362, 360, 359, 361, 465, 171,
7689 155, 189, 286, 451, 155, 311, 155, 311, 155, 311,
7690 155, 311, 52, 56, 311, 155, 466, 295, 343, 344,
7691 318, 442, 442, 448, 442, 311, 311, 155, 311, 311,
7696static const yytype_int16 yyr1[] =
7698 0, 162, 165, 163, 163, 164, 166, 167, 167, 167,
7699 168, 168, 169, 170, 171, 172, 173, 174, 175, 174,
7700 176, 176, 176, 177, 178, 177, 179, 180, 181, 182,
7701 182, 182, 182, 182, 182, 182, 182, 182, 182, 182,
7702 182, 182, 183, 182, 182, 182, 182, 182, 184, 185,
7703 186, 186, 186, 186, 186, 186, 186, 186, 185, 187,
7704 187, 185, 188, 188, 189, 189, 188, 190, 190, 190,
7705 191, 191, 191, 191, 191, 192, 191, 193, 191, 191,
7706 194, 195, 196, 197, 198, 199, 199, 200, 201, 202,
7707 203, 203, 204, 205, 206, 206, 207, 208, 208, 208,
7708 209, 209, 209, 209, 209, 209, 209, 209, 209, 209,
7709 209, 209, 210, 210, 211, 211, 212, 212, 212, 213,
7710 213, 212, 212, 212, 212, 212, 212, 212, 214, 214,
7711 215, 215, 216, 216, 216, 216, 216, 216, 216, 216,
7712 216, 217, 217, 217, 217, 217, 217, 217, 217, 217,
7713 218, 218, 219, 219, 219, 220, 220, 220, 220, 220,
7714 221, 221, 222, 223, 222, 224, 224, 224, 224, 224,
7715 224, 224, 224, 224, 224, 224, 224, 224, 224, 224,
7716 224, 224, 224, 224, 224, 224, 224, 224, 224, 224,
7717 224, 224, 224, 224, 224, 225, 225, 225, 225, 225,
7718 225, 225, 225, 225, 225, 225, 225, 225, 225, 225,
7719 225, 225, 225, 225, 225, 225, 225, 225, 225, 225,
7720 225, 225, 225, 225, 225, 225, 225, 225, 225, 225,
7721 225, 225, 225, 225, 225, 225, 226, 227, 228, 228,
7722 228, 228, 228, 228, 228, 228, 227, 229, 229, 229,
7723 229, 229, 229, 227, 227, 227, 227, 227, 227, 227,
7724 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
7725 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
7726 230, 230, 227, 227, 227, 231, 232, 232, 232, 233,
7727 233, 233, 233, 234, 234, 235, 236, 237, 238, 239,
7728 240, 240, 240, 240, 241, 241, 242, 242, 242, 243,
7729 243, 244, 244, 244, 244, 244, 245, 246, 246, 246,
7730 246, 246, 246, 247, 248, 249, 249, 250, 250, 251,
7731 251, 251, 251, 252, 252, 253, 253, 254, 254, 254,
7732 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
7733 255, 256, 255, 257, 255, 255, 255, 255, 255, 255,
7734 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
7735 255, 255, 255, 255, 255, 258, 255, 259, 255, 255,
7736 260, 261, 255, 262, 255, 263, 255, 264, 255, 265,
7737 255, 266, 255, 255, 255, 255, 255, 267, 268, 269,
7738 270, 271, 272, 273, 274, 275, 276, 277, 278, 279,
7739 280, 281, 282, 283, 284, 285, 286, 286, 287, 288,
7740 289, 290, 291, 292, 292, 292, 293, 293, 294, 294,
7741 295, 295, 296, 296, 297, 297, 298, 298, 299, 299,
7742 299, 299, 299, 300, 300, 301, 301, 302, 303, 304,
7743 304, 305, 305, 306, 306, 306, 306, 307, 308, 309,
7744 310, 310, 311, 311, 312, 312, 312, 312, 312, 312,
7745 312, 312, 312, 312, 312, 312, 312, 312, 312, 313,
7746 313, 314, 315, 315, 316, 316, 317, 317, 318, 318,
7747 319, 320, 321, 322, 323, 324, 325, 325, 326, 327,
7748 326, 328, 329, 329, 329, 329, 329, 330, 330, 330,
7749 330, 330, 330, 330, 330, 331, 331, 332, 333, 334,
7750 335, 336, 336, 336, 336, 337, 338, 338, 339, 340,
7751 341, 342, 343, 344, 344, 345, 345, 345, 346, 346,
7752 346, 346, 346, 346, 347, 348, 348, 349, 350, 350,
7753 351, 352, 353, 353, 353, 353, 353, 353, 353, 353,
7754 353, 353, 353, 353, 353, 354, 353, 353, 353, 355,
7755 355, 355, 355, 355, 355, 356, 356, 357, 357, 358,
7756 359, 359, 360, 360, 361, 362, 362, 362, 362, 363,
7757 363, 364, 364, 365, 365, 366, 366, 367, 368, 368,
7758 369, 370, 370, 370, 370, 370, 370, 369, 369, 369,
7759 369, 371, 371, 371, 371, 371, 371, 371, 371, 371,
7760 371, 372, 373, 373, 374, 375, 375, 375, 376, 376,
7761 377, 377, 377, 378, 378, 379, 379, 380, 380, 381,
7762 382, 382, 382, 383, 384, 385, 386, 386, 387, 388,
7763 389, 389, 390, 390, 391, 392, 393, 393, 394, 395,
7764 396, 397, 398, 398, 399, 399, 400, 400, 401, 401,
7765 402, 402, 403, 404, 403, 405, 406, 407, 408, 403,
7766 409, 409, 410, 410, 411, 411, 412, 413, 413, 414,
7767 415, 415, 416, 416, 416, 416, 417, 417, 417, 418,
7768 418, 418, 419, 419, 419, 419, 419, 419, 419, 420,
7769 420, 421, 421, 422, 422, 423, 424, 424, 425, 425,
7770 426, 427, 428, 427, 429, 429, 430, 430, 431, 431,
7771 431, 431, 432, 432, 433, 434, 434, 435, 435, 436,
7772 436, 436, 436, 436, 436, 436, 436, 436, 436, 436,
7773 436, 436, 436, 436, 437, 438, 438, 438, 438, 439,
7774 439, 440, 441, 441, 442, 442, 443, 444, 444, 445,
7775 446, 446, 447, 447, 448, 448, 449, 449, 450, 450,
7776 451, 451, 452, 453, 454, 455, 454, 456, 456, 457,
7777 457, 458, 458, 458, 458, 458, 458, 459, 459, 459,
7778 459, 460, 460, 460, 461, 461, 462, 462, 463, 463,
7779 464, 465, 466, 467, 467, 468, 468, 469, 469, 470
7783static const yytype_int8 yyr2[] =
7785 0, 2, 0, 0, 1, 2, 2, 1, 1, 3,
7786 1, 2, 1, 3, 2, 0, 0, 8, 0, 5,
7787 1, 1, 3, 1, 0, 3, 0, 2, 0, 4,
7788 3, 3, 3, 2, 3, 3, 3, 3, 4, 5,
7789 1, 4, 4, 1, 7, 4, 1, 1, 4, 1,
7790 4, 7, 6, 6, 6, 6, 5, 4, 1, 4,
7791 4, 1, 1, 4, 0, 1, 3, 1, 4, 1,
7792 1, 3, 3, 3, 2, 0, 7, 0, 7, 1,
7793 1, 2, 0, 5, 1, 1, 1, 0, 0, 4,
7794 1, 1, 1, 1, 1, 4, 3, 1, 1, 1,
7795 2, 3, 4, 5, 4, 5, 6, 2, 2, 2,
7796 2, 2, 1, 3, 1, 3, 1, 2, 3, 1,
7797 3, 5, 2, 4, 2, 4, 1, 3, 1, 3,
7798 2, 3, 1, 1, 4, 3, 3, 3, 3, 2,
7799 1, 1, 1, 4, 3, 3, 3, 3, 2, 1,
7800 1, 1, 2, 1, 3, 1, 1, 1, 1, 1,
7801 1, 1, 1, 0, 4, 1, 1, 1, 1, 1,
7802 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
7803 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
7804 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
7805 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
7806 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
7807 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
7808 1, 1, 1, 1, 1, 1, 4, 1, 4, 7,
7809 6, 6, 6, 6, 5, 4, 1, 3, 3, 2,
7810 2, 2, 2, 1, 3, 3, 3, 3, 3, 3,
7811 4, 2, 2, 3, 3, 3, 3, 1, 3, 3,
7812 3, 3, 3, 2, 2, 3, 3, 3, 3, 4,
7813 4, 4, 1, 1, 1, 6, 1, 4, 3, 1,
7814 1, 1, 1, 3, 3, 1, 1, 1, 1, 1,
7815 1, 2, 4, 2, 1, 4, 3, 5, 3, 1,
7816 1, 1, 1, 2, 4, 2, 1, 1, 1, 2,
7817 2, 4, 1, 0, 2, 2, 1, 2, 1, 1,
7818 1, 3, 3, 2, 1, 1, 1, 3, 4, 2,
7819 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
7820 1, 0, 4, 0, 4, 3, 3, 2, 3, 3,
7821 1, 4, 3, 1, 6, 4, 3, 2, 1, 2,
7822 1, 6, 6, 4, 4, 0, 6, 0, 5, 5,
7823 0, 0, 9, 0, 6, 0, 7, 0, 5, 0,
7824 5, 0, 5, 1, 1, 1, 1, 1, 1, 1,
7825 1, 1, 2, 2, 1, 2, 1, 1, 1, 1,
7826 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
7827 1, 1, 1, 1, 1, 2, 1, 1, 1, 5,
7828 1, 2, 1, 1, 1, 3, 1, 3, 1, 3,
7829 5, 1, 3, 2, 1, 1, 1, 0, 2, 2,
7830 1, 1, 3, 4, 2, 2, 1, 1, 1, 3,
7831 1, 3, 2, 0, 6, 8, 4, 6, 4, 2,
7832 6, 2, 4, 6, 2, 4, 2, 4, 1, 1,
7833 1, 4, 0, 1, 1, 4, 1, 3, 1, 1,
7834 0, 0, 0, 0, 0, 9, 4, 1, 3, 0,
7835 4, 3, 2, 4, 5, 5, 3, 2, 4, 4,
7836 3, 3, 2, 1, 4, 3, 3, 0, 7, 0,
7837 7, 1, 2, 3, 4, 5, 1, 1, 0, 0,
7838 0, 0, 9, 1, 1, 1, 3, 3, 1, 2,
7839 3, 1, 1, 1, 1, 3, 1, 0, 4, 1,
7840 2, 2, 1, 1, 4, 4, 4, 3, 4, 4,
7841 4, 3, 3, 3, 2, 0, 6, 2, 4, 1,
7842 1, 2, 2, 4, 1, 2, 3, 1, 3, 5,
7843 2, 1, 1, 3, 1, 3, 1, 2, 1, 1,
7844 3, 2, 1, 1, 3, 2, 1, 2, 1, 1,
7845 1, 3, 3, 2, 2, 2, 2, 1, 1, 1,
7846 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
7847 1, 1, 2, 2, 4, 2, 3, 1, 6, 1,
7848 1, 1, 1, 2, 1, 3, 1, 1, 1, 1,
7849 1, 1, 2, 3, 3, 3, 1, 2, 4, 1,
7850 0, 3, 1, 2, 4, 1, 0, 3, 4, 1,
7851 4, 1, 0, 3, 0, 3, 0, 2, 0, 2,
7852 0, 2, 1, 0, 3, 0, 0, 0, 0, 7,
7853 1, 1, 1, 1, 1, 1, 2, 1, 1, 3,
7854 1, 2, 1, 1, 1, 1, 1, 1, 1, 1,
7855 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
7856 1, 1, 1, 1, 1, 0, 4, 1, 1, 1,
7857 3, 1, 0, 3, 2, 1, 1, 3, 4, 2,
7858 2, 1, 1, 1, 3, 1, 3, 2, 0, 6,
7859 8, 4, 6, 4, 6, 2, 4, 6, 2, 4,
7860 2, 4, 1, 0, 1, 1, 1, 1, 1, 1,
7861 1, 1, 1, 3, 1, 3, 1, 1, 1, 1,
7862 2, 1, 1, 1, 2, 1, 1, 1, 2, 1,
7863 2, 1, 1, 1, 1, 0, 4, 1, 2, 1,
7864 3, 3, 2, 1, 4, 2, 1, 1, 1, 1,
7865 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
7866 2, 2, 2, 1, 1, 1, 1, 1, 2, 0
7870enum { YYENOMEM = -2 };
7872#define yyerrok (yyerrstatus = 0)
7873#define yyclearin (yychar = YYEMPTY)
7875#define YYACCEPT goto yyacceptlab
7876#define YYABORT goto yyabortlab
7877#define YYERROR goto yyerrorlab
7878#define YYNOMEM goto yyexhaustedlab
7881#define YYRECOVERING() (!!yyerrstatus)
7883#define YYBACKUP(Token, Value) \
7885 if (yychar == YYEMPTY) \
7889 YYPOPSTACK (yylen); \
7895 yyerror (&yylloc, p, YY_("syntax error: cannot back up")); \
7902#define YYERRCODE YYUNDEF
7908#ifndef YYLLOC_DEFAULT
7909# define YYLLOC_DEFAULT(Current, Rhs, N) \
7913 (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \
7914 (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \
7915 (Current).last_line = YYRHSLOC (Rhs, N).last_line; \
7916 (Current).last_column = YYRHSLOC (Rhs, N).last_column; \
7920 (Current).first_line = (Current).last_line = \
7921 YYRHSLOC (Rhs, 0).last_line; \
7922 (Current).first_column = (Current).last_column = \
7923 YYRHSLOC (Rhs, 0).last_column; \
7928#define YYRHSLOC(Rhs, K) ((Rhs)[K])
7936# define YYFPRINTF fprintf
7939# define YYDPRINTF(Args) \
7950# ifndef YYLOCATION_PRINT
7952# if defined YY_LOCATION_PRINT
7956# define YYLOCATION_PRINT(File, Loc, p) YY_LOCATION_PRINT(File, *(Loc), p)
7958# elif defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL
7964yy_location_print_ (FILE *yyo, YYLTYPE
const *
const yylocp)
7967 int end_col = 0 != yylocp->last_column ? yylocp->last_column - 1 : 0;
7968 if (0 <= yylocp->first_line)
7970 res += YYFPRINTF (yyo,
"%d", yylocp->first_line);
7971 if (0 <= yylocp->first_column)
7972 res += YYFPRINTF (yyo,
".%d", yylocp->first_column);
7974 if (0 <= yylocp->last_line)
7976 if (yylocp->first_line < yylocp->last_line)
7978 res += YYFPRINTF (yyo,
"-%d", yylocp->last_line);
7980 res += YYFPRINTF (yyo,
".%d", end_col);
7982 else if (0 <= end_col && yylocp->first_column < end_col)
7983 res += YYFPRINTF (yyo,
"-%d", end_col);
7988# define YYLOCATION_PRINT yy_location_print_
7992# define YY_LOCATION_PRINT(File, Loc, p) YYLOCATION_PRINT(File, &(Loc), p)
7996# define YYLOCATION_PRINT(File, Loc, p) ((void) 0)
7999# define YY_LOCATION_PRINT YYLOCATION_PRINT
8005# define YY_SYMBOL_PRINT(Title, Kind, Value, Location, p) \
8009 YYFPRINTF (stderr, "%s ", Title); \
8010 yy_symbol_print (stderr, \
8011 Kind, Value, Location, p); \
8012 YYFPRINTF (stderr, "\n"); \
8022yy_symbol_value_print (FILE *yyo,
8023 yysymbol_kind_t yykind,
YYSTYPE const *
const yyvaluep, YYLTYPE
const *
const yylocationp,
struct parser_params *p)
8025 FILE *yyoutput = yyo;
8027 YY_USE (yylocationp);
8031 YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
8034 case YYSYMBOL_keyword_class:
8037 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8042 case YYSYMBOL_keyword_module:
8045 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8050 case YYSYMBOL_keyword_def:
8053 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8058 case YYSYMBOL_keyword_undef:
8061 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8066 case YYSYMBOL_keyword_begin:
8069 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8074 case YYSYMBOL_keyword_rescue:
8077 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8082 case YYSYMBOL_keyword_ensure:
8085 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8090 case YYSYMBOL_keyword_end:
8093 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8098 case YYSYMBOL_keyword_if:
8101 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8106 case YYSYMBOL_keyword_unless:
8109 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8114 case YYSYMBOL_keyword_then:
8117 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8122 case YYSYMBOL_keyword_elsif:
8125 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8130 case YYSYMBOL_keyword_else:
8133 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8138 case YYSYMBOL_keyword_case:
8141 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8146 case YYSYMBOL_keyword_when:
8149 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8154 case YYSYMBOL_keyword_while:
8157 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8162 case YYSYMBOL_keyword_until:
8165 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8170 case YYSYMBOL_keyword_for:
8173 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8178 case YYSYMBOL_keyword_break:
8181 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8186 case YYSYMBOL_keyword_next:
8189 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8194 case YYSYMBOL_keyword_redo:
8197 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8202 case YYSYMBOL_keyword_retry:
8205 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8210 case YYSYMBOL_keyword_in:
8213 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8218 case YYSYMBOL_keyword_do:
8221 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8226 case YYSYMBOL_keyword_do_cond:
8229 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8234 case YYSYMBOL_keyword_do_block:
8237 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8242 case YYSYMBOL_keyword_do_LAMBDA:
8245 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8250 case YYSYMBOL_keyword_return:
8253 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8258 case YYSYMBOL_keyword_yield:
8261 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8266 case YYSYMBOL_keyword_super:
8269 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8274 case YYSYMBOL_keyword_self:
8277 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8282 case YYSYMBOL_keyword_nil:
8285 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8290 case YYSYMBOL_keyword_true:
8293 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8298 case YYSYMBOL_keyword_false:
8301 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8306 case YYSYMBOL_keyword_and:
8309 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8314 case YYSYMBOL_keyword_or:
8317 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8322 case YYSYMBOL_keyword_not:
8325 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8330 case YYSYMBOL_modifier_if:
8333 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8338 case YYSYMBOL_modifier_unless:
8341 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8346 case YYSYMBOL_modifier_while:
8349 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8354 case YYSYMBOL_modifier_until:
8357 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8362 case YYSYMBOL_modifier_rescue:
8365 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8370 case YYSYMBOL_keyword_alias:
8373 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8378 case YYSYMBOL_keyword_defined:
8381 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8386 case YYSYMBOL_keyword_BEGIN:
8389 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8394 case YYSYMBOL_keyword_END:
8397 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8402 case YYSYMBOL_keyword__LINE__:
8405 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8410 case YYSYMBOL_keyword__FILE__:
8413 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8418 case YYSYMBOL_keyword__ENCODING__:
8421 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8426 case YYSYMBOL_tIDENTIFIER:
8429 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8437 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8442 case YYSYMBOL_tGVAR:
8445 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8450 case YYSYMBOL_tIVAR:
8453 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8458 case YYSYMBOL_tCONSTANT:
8461 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8466 case YYSYMBOL_tCVAR:
8469 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8474 case YYSYMBOL_tLABEL:
8477 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8482 case YYSYMBOL_tINTEGER:
8485 switch (nd_type(RNODE(((*yyvaluep).node)))) {
8487 rb_parser_printf(p,
"%+"PRIsVALUE, rb_node_integer_literal_val(((*yyvaluep).node)));
8490 rb_parser_printf(p,
"%+"PRIsVALUE, rb_node_float_literal_val(((*yyvaluep).node)));
8493 rb_parser_printf(p,
"%+"PRIsVALUE, rb_node_rational_literal_val(((*yyvaluep).node)));
8495 case NODE_IMAGINARY:
8496 rb_parser_printf(p,
"%+"PRIsVALUE, rb_node_imaginary_literal_val(((*yyvaluep).node)));
8505 case YYSYMBOL_tFLOAT:
8508 switch (nd_type(RNODE(((*yyvaluep).node)))) {
8510 rb_parser_printf(p,
"%+"PRIsVALUE, rb_node_integer_literal_val(((*yyvaluep).node)));
8513 rb_parser_printf(p,
"%+"PRIsVALUE, rb_node_float_literal_val(((*yyvaluep).node)));
8516 rb_parser_printf(p,
"%+"PRIsVALUE, rb_node_rational_literal_val(((*yyvaluep).node)));
8518 case NODE_IMAGINARY:
8519 rb_parser_printf(p,
"%+"PRIsVALUE, rb_node_imaginary_literal_val(((*yyvaluep).node)));
8528 case YYSYMBOL_tRATIONAL:
8531 switch (nd_type(RNODE(((*yyvaluep).node)))) {
8533 rb_parser_printf(p,
"%+"PRIsVALUE, rb_node_integer_literal_val(((*yyvaluep).node)));
8536 rb_parser_printf(p,
"%+"PRIsVALUE, rb_node_float_literal_val(((*yyvaluep).node)));
8539 rb_parser_printf(p,
"%+"PRIsVALUE, rb_node_rational_literal_val(((*yyvaluep).node)));
8541 case NODE_IMAGINARY:
8542 rb_parser_printf(p,
"%+"PRIsVALUE, rb_node_imaginary_literal_val(((*yyvaluep).node)));
8551 case YYSYMBOL_tIMAGINARY:
8554 switch (nd_type(RNODE(((*yyvaluep).node)))) {
8556 rb_parser_printf(p,
"%+"PRIsVALUE, rb_node_integer_literal_val(((*yyvaluep).node)));
8559 rb_parser_printf(p,
"%+"PRIsVALUE, rb_node_float_literal_val(((*yyvaluep).node)));
8562 rb_parser_printf(p,
"%+"PRIsVALUE, rb_node_rational_literal_val(((*yyvaluep).node)));
8564 case NODE_IMAGINARY:
8565 rb_parser_printf(p,
"%+"PRIsVALUE, rb_node_imaginary_literal_val(((*yyvaluep).node)));
8574 case YYSYMBOL_tCHAR:
8577 switch (nd_type(RNODE(((*yyvaluep).node)))) {
8579 rb_parser_printf(p,
"%+"PRIsVALUE, rb_node_integer_literal_val(((*yyvaluep).node)));
8582 rb_parser_printf(p,
"%+"PRIsVALUE, rb_node_float_literal_val(((*yyvaluep).node)));
8585 rb_parser_printf(p,
"%+"PRIsVALUE, rb_node_rational_literal_val(((*yyvaluep).node)));
8587 case NODE_IMAGINARY:
8588 rb_parser_printf(p,
"%+"PRIsVALUE, rb_node_imaginary_literal_val(((*yyvaluep).node)));
8597 case YYSYMBOL_tNTH_REF:
8600 rb_parser_printf(p,
"$%ld", RNODE_NTH_REF(((*yyvaluep).node))->nd_nth);
8605 case YYSYMBOL_tBACK_REF:
8608 rb_parser_printf(p,
"$%c", (
int)RNODE_BACK_REF(((*yyvaluep).node))->nd_nth);
8613 case YYSYMBOL_tSTRING_CONTENT:
8616 switch (nd_type(RNODE(((*yyvaluep).node)))) {
8618 rb_parser_printf(p,
"%+"PRIsVALUE, rb_node_integer_literal_val(((*yyvaluep).node)));
8621 rb_parser_printf(p,
"%+"PRIsVALUE, rb_node_float_literal_val(((*yyvaluep).node)));
8624 rb_parser_printf(p,
"%+"PRIsVALUE, rb_node_rational_literal_val(((*yyvaluep).node)));
8626 case NODE_IMAGINARY:
8627 rb_parser_printf(p,
"%+"PRIsVALUE, rb_node_imaginary_literal_val(((*yyvaluep).node)));
8639 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8644 case YYSYMBOL_70_backslash_:
8647 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8652 case YYSYMBOL_72_escaped_horizontal_tab_:
8655 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8660 case YYSYMBOL_73_escaped_form_feed_:
8663 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8668 case YYSYMBOL_74_escaped_carriage_return_:
8671 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8676 case YYSYMBOL_75_escaped_vertical_tab_:
8679 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8684 case YYSYMBOL_tANDDOT:
8687 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8692 case YYSYMBOL_tCOLON2:
8695 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8700 case YYSYMBOL_tOP_ASGN:
8703 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8708 case YYSYMBOL_compstmt_top_stmts:
8711 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
8712 rb_parser_printf(p,
"NODE_SPECIAL");
8714 else if (((*yyvaluep).node)) {
8715 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
8721 case YYSYMBOL_top_stmts:
8724 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
8725 rb_parser_printf(p,
"NODE_SPECIAL");
8727 else if (((*yyvaluep).node)) {
8728 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
8734 case YYSYMBOL_top_stmt:
8737 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
8738 rb_parser_printf(p,
"NODE_SPECIAL");
8740 else if (((*yyvaluep).node)) {
8741 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
8747 case YYSYMBOL_block_open:
8750 if ((NODE *)((*yyvaluep).node_exits) == (NODE *)-1) {
8751 rb_parser_printf(p,
"NODE_SPECIAL");
8753 else if (((*yyvaluep).node_exits)) {
8754 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node_exits)))));
8760 case YYSYMBOL_begin_block:
8763 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
8764 rb_parser_printf(p,
"NODE_SPECIAL");
8766 else if (((*yyvaluep).node)) {
8767 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
8773 case YYSYMBOL_compstmt_stmts:
8776 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
8777 rb_parser_printf(p,
"NODE_SPECIAL");
8779 else if (((*yyvaluep).node)) {
8780 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
8786 case YYSYMBOL_bodystmt:
8789 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
8790 rb_parser_printf(p,
"NODE_SPECIAL");
8792 else if (((*yyvaluep).node)) {
8793 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
8799 case YYSYMBOL_stmts:
8802 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
8803 rb_parser_printf(p,
"NODE_SPECIAL");
8805 else if (((*yyvaluep).node)) {
8806 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
8812 case YYSYMBOL_stmt_or_begin:
8815 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
8816 rb_parser_printf(p,
"NODE_SPECIAL");
8818 else if (((*yyvaluep).node)) {
8819 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
8825 case YYSYMBOL_allow_exits:
8828 if ((NODE *)((*yyvaluep).node_exits) == (NODE *)-1) {
8829 rb_parser_printf(p,
"NODE_SPECIAL");
8831 else if (((*yyvaluep).node_exits)) {
8832 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node_exits)))));
8841 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
8842 rb_parser_printf(p,
"NODE_SPECIAL");
8844 else if (((*yyvaluep).node)) {
8845 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
8851 case YYSYMBOL_asgn_mrhs:
8854 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
8855 rb_parser_printf(p,
"NODE_SPECIAL");
8857 else if (((*yyvaluep).node)) {
8858 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
8864 case YYSYMBOL_asgn_command_rhs:
8867 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
8868 rb_parser_printf(p,
"NODE_SPECIAL");
8870 else if (((*yyvaluep).node)) {
8871 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
8877 case YYSYMBOL_command_asgn:
8880 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
8881 rb_parser_printf(p,
"NODE_SPECIAL");
8883 else if (((*yyvaluep).node)) {
8884 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
8890 case YYSYMBOL_op_asgn_command_rhs:
8893 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
8894 rb_parser_printf(p,
"NODE_SPECIAL");
8896 else if (((*yyvaluep).node)) {
8897 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
8903 case YYSYMBOL_def_endless_method_endless_command:
8906 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
8907 rb_parser_printf(p,
"NODE_SPECIAL");
8909 else if (((*yyvaluep).node)) {
8910 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
8916 case YYSYMBOL_endless_command:
8919 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
8920 rb_parser_printf(p,
"NODE_SPECIAL");
8922 else if (((*yyvaluep).node)) {
8923 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
8929 case YYSYMBOL_command_rhs:
8932 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
8933 rb_parser_printf(p,
"NODE_SPECIAL");
8935 else if (((*yyvaluep).node)) {
8936 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
8945 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
8946 rb_parser_printf(p,
"NODE_SPECIAL");
8948 else if (((*yyvaluep).node)) {
8949 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
8955 case YYSYMBOL_def_name:
8958 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
8963 case YYSYMBOL_defn_head:
8966 if ((NODE *)((*yyvaluep).node_def_temp) == (NODE *)-1) {
8967 rb_parser_printf(p,
"NODE_SPECIAL");
8969 else if (((*yyvaluep).node_def_temp)) {
8970 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node_def_temp)))));
8976 case YYSYMBOL_defs_head:
8979 if ((NODE *)((*yyvaluep).node_def_temp) == (NODE *)-1) {
8980 rb_parser_printf(p,
"NODE_SPECIAL");
8982 else if (((*yyvaluep).node_def_temp)) {
8983 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node_def_temp)))));
8989 case YYSYMBOL_value_expr_expr:
8992 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
8993 rb_parser_printf(p,
"NODE_SPECIAL");
8995 else if (((*yyvaluep).node)) {
8996 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
9002 case YYSYMBOL_expr_value:
9005 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
9006 rb_parser_printf(p,
"NODE_SPECIAL");
9008 else if (((*yyvaluep).node)) {
9009 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
9015 case YYSYMBOL_expr_value_do:
9018 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
9019 rb_parser_printf(p,
"NODE_SPECIAL");
9021 else if (((*yyvaluep).node)) {
9022 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
9028 case YYSYMBOL_command_call:
9031 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
9032 rb_parser_printf(p,
"NODE_SPECIAL");
9034 else if (((*yyvaluep).node)) {
9035 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
9041 case YYSYMBOL_value_expr_command_call:
9044 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
9045 rb_parser_printf(p,
"NODE_SPECIAL");
9047 else if (((*yyvaluep).node)) {
9048 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
9054 case YYSYMBOL_command_call_value:
9057 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
9058 rb_parser_printf(p,
"NODE_SPECIAL");
9060 else if (((*yyvaluep).node)) {
9061 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
9067 case YYSYMBOL_block_command:
9070 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
9071 rb_parser_printf(p,
"NODE_SPECIAL");
9073 else if (((*yyvaluep).node)) {
9074 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
9080 case YYSYMBOL_cmd_brace_block:
9083 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
9084 rb_parser_printf(p,
"NODE_SPECIAL");
9086 else if (((*yyvaluep).node)) {
9087 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
9093 case YYSYMBOL_fcall:
9096 if ((NODE *)((*yyvaluep).node_fcall) == (NODE *)-1) {
9097 rb_parser_printf(p,
"NODE_SPECIAL");
9099 else if (((*yyvaluep).node_fcall)) {
9100 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node_fcall)))));
9106 case YYSYMBOL_command:
9109 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
9110 rb_parser_printf(p,
"NODE_SPECIAL");
9112 else if (((*yyvaluep).node)) {
9113 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
9122 if ((NODE *)((*yyvaluep).node_masgn) == (NODE *)-1) {
9123 rb_parser_printf(p,
"NODE_SPECIAL");
9125 else if (((*yyvaluep).node_masgn)) {
9126 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node_masgn)))));
9132 case YYSYMBOL_mlhs_inner:
9135 if ((NODE *)((*yyvaluep).node_masgn) == (NODE *)-1) {
9136 rb_parser_printf(p,
"NODE_SPECIAL");
9138 else if (((*yyvaluep).node_masgn)) {
9139 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node_masgn)))));
9145 case YYSYMBOL_mlhs_basic:
9148 if ((NODE *)((*yyvaluep).node_masgn) == (NODE *)-1) {
9149 rb_parser_printf(p,
"NODE_SPECIAL");
9151 else if (((*yyvaluep).node_masgn)) {
9152 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node_masgn)))));
9158 case YYSYMBOL_mlhs_items_mlhs_item:
9161 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
9162 rb_parser_printf(p,
"NODE_SPECIAL");
9164 else if (((*yyvaluep).node)) {
9165 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
9171 case YYSYMBOL_mlhs_item:
9174 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
9175 rb_parser_printf(p,
"NODE_SPECIAL");
9177 else if (((*yyvaluep).node)) {
9178 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
9184 case YYSYMBOL_mlhs_head:
9187 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
9188 rb_parser_printf(p,
"NODE_SPECIAL");
9190 else if (((*yyvaluep).node)) {
9191 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
9197 case YYSYMBOL_mlhs_node:
9200 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
9201 rb_parser_printf(p,
"NODE_SPECIAL");
9203 else if (((*yyvaluep).node)) {
9204 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
9213 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
9214 rb_parser_printf(p,
"NODE_SPECIAL");
9216 else if (((*yyvaluep).node)) {
9217 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
9223 case YYSYMBOL_cname:
9226 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
9231 case YYSYMBOL_cpath:
9234 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
9235 rb_parser_printf(p,
"NODE_SPECIAL");
9237 else if (((*yyvaluep).node)) {
9238 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
9244 case YYSYMBOL_fname:
9247 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
9252 case YYSYMBOL_fitem:
9255 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
9256 rb_parser_printf(p,
"NODE_SPECIAL");
9258 else if (((*yyvaluep).node)) {
9259 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
9265 case YYSYMBOL_undef_list:
9268 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
9269 rb_parser_printf(p,
"NODE_SPECIAL");
9271 else if (((*yyvaluep).node)) {
9272 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
9281 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
9286 case YYSYMBOL_reswords:
9289 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
9294 case YYSYMBOL_asgn_arg_rhs:
9297 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
9298 rb_parser_printf(p,
"NODE_SPECIAL");
9300 else if (((*yyvaluep).node)) {
9301 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
9310 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
9311 rb_parser_printf(p,
"NODE_SPECIAL");
9313 else if (((*yyvaluep).node)) {
9314 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
9320 case YYSYMBOL_op_asgn_arg_rhs:
9323 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
9324 rb_parser_printf(p,
"NODE_SPECIAL");
9326 else if (((*yyvaluep).node)) {
9327 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
9333 case YYSYMBOL_range_expr_arg:
9336 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
9337 rb_parser_printf(p,
"NODE_SPECIAL");
9339 else if (((*yyvaluep).node)) {
9340 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
9346 case YYSYMBOL_def_endless_method_endless_arg:
9349 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
9350 rb_parser_printf(p,
"NODE_SPECIAL");
9352 else if (((*yyvaluep).node)) {
9353 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
9359 case YYSYMBOL_ternary:
9362 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
9363 rb_parser_printf(p,
"NODE_SPECIAL");
9365 else if (((*yyvaluep).node)) {
9366 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
9372 case YYSYMBOL_endless_arg:
9375 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
9376 rb_parser_printf(p,
"NODE_SPECIAL");
9378 else if (((*yyvaluep).node)) {
9379 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
9385 case YYSYMBOL_relop:
9388 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
9393 case YYSYMBOL_rel_expr:
9396 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
9397 rb_parser_printf(p,
"NODE_SPECIAL");
9399 else if (((*yyvaluep).node)) {
9400 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
9406 case YYSYMBOL_value_expr_arg:
9409 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
9410 rb_parser_printf(p,
"NODE_SPECIAL");
9412 else if (((*yyvaluep).node)) {
9413 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
9419 case YYSYMBOL_arg_value:
9422 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
9423 rb_parser_printf(p,
"NODE_SPECIAL");
9425 else if (((*yyvaluep).node)) {
9426 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
9432 case YYSYMBOL_aref_args:
9435 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
9436 rb_parser_printf(p,
"NODE_SPECIAL");
9438 else if (((*yyvaluep).node)) {
9439 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
9445 case YYSYMBOL_arg_rhs:
9448 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
9449 rb_parser_printf(p,
"NODE_SPECIAL");
9451 else if (((*yyvaluep).node)) {
9452 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
9458 case YYSYMBOL_paren_args:
9461 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
9462 rb_parser_printf(p,
"NODE_SPECIAL");
9464 else if (((*yyvaluep).node)) {
9465 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
9471 case YYSYMBOL_opt_paren_args:
9474 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
9475 rb_parser_printf(p,
"NODE_SPECIAL");
9477 else if (((*yyvaluep).node)) {
9478 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
9484 case YYSYMBOL_opt_call_args:
9487 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
9488 rb_parser_printf(p,
"NODE_SPECIAL");
9490 else if (((*yyvaluep).node)) {
9491 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
9497 case YYSYMBOL_value_expr_command:
9500 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
9501 rb_parser_printf(p,
"NODE_SPECIAL");
9503 else if (((*yyvaluep).node)) {
9504 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
9510 case YYSYMBOL_call_args:
9513 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
9514 rb_parser_printf(p,
"NODE_SPECIAL");
9516 else if (((*yyvaluep).node)) {
9517 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
9523 case YYSYMBOL_command_args:
9526 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
9527 rb_parser_printf(p,
"NODE_SPECIAL");
9529 else if (((*yyvaluep).node)) {
9530 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
9536 case YYSYMBOL_block_arg:
9539 if ((NODE *)((*yyvaluep).node_block_pass) == (NODE *)-1) {
9540 rb_parser_printf(p,
"NODE_SPECIAL");
9542 else if (((*yyvaluep).node_block_pass)) {
9543 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node_block_pass)))));
9549 case YYSYMBOL_opt_block_arg:
9552 if ((NODE *)((*yyvaluep).node_block_pass) == (NODE *)-1) {
9553 rb_parser_printf(p,
"NODE_SPECIAL");
9555 else if (((*yyvaluep).node_block_pass)) {
9556 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node_block_pass)))));
9565 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
9566 rb_parser_printf(p,
"NODE_SPECIAL");
9568 else if (((*yyvaluep).node)) {
9569 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
9575 case YYSYMBOL_arg_splat:
9578 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
9579 rb_parser_printf(p,
"NODE_SPECIAL");
9581 else if (((*yyvaluep).node)) {
9582 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
9588 case YYSYMBOL_mrhs_arg:
9591 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
9592 rb_parser_printf(p,
"NODE_SPECIAL");
9594 else if (((*yyvaluep).node)) {
9595 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
9604 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
9605 rb_parser_printf(p,
"NODE_SPECIAL");
9607 else if (((*yyvaluep).node)) {
9608 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
9614 case YYSYMBOL_primary:
9617 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
9618 rb_parser_printf(p,
"NODE_SPECIAL");
9620 else if (((*yyvaluep).node)) {
9621 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
9627 case YYSYMBOL_value_expr_primary:
9630 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
9631 rb_parser_printf(p,
"NODE_SPECIAL");
9633 else if (((*yyvaluep).node)) {
9634 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
9640 case YYSYMBOL_primary_value:
9643 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
9644 rb_parser_printf(p,
"NODE_SPECIAL");
9646 else if (((*yyvaluep).node)) {
9647 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
9653 case YYSYMBOL_k_while:
9656 if ((NODE *)((*yyvaluep).node_exits) == (NODE *)-1) {
9657 rb_parser_printf(p,
"NODE_SPECIAL");
9659 else if (((*yyvaluep).node_exits)) {
9660 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node_exits)))));
9666 case YYSYMBOL_k_until:
9669 if ((NODE *)((*yyvaluep).node_exits) == (NODE *)-1) {
9670 rb_parser_printf(p,
"NODE_SPECIAL");
9672 else if (((*yyvaluep).node_exits)) {
9673 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node_exits)))));
9679 case YYSYMBOL_k_for:
9682 if ((NODE *)((*yyvaluep).node_exits) == (NODE *)-1) {
9683 rb_parser_printf(p,
"NODE_SPECIAL");
9685 else if (((*yyvaluep).node_exits)) {
9686 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node_exits)))));
9692 case YYSYMBOL_k_def:
9695 if ((NODE *)((*yyvaluep).node_def_temp) == (NODE *)-1) {
9696 rb_parser_printf(p,
"NODE_SPECIAL");
9698 else if (((*yyvaluep).node_def_temp)) {
9699 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node_def_temp)))));
9708 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
9713 case YYSYMBOL_if_tail:
9716 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
9717 rb_parser_printf(p,
"NODE_SPECIAL");
9719 else if (((*yyvaluep).node)) {
9720 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
9726 case YYSYMBOL_opt_else:
9729 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
9730 rb_parser_printf(p,
"NODE_SPECIAL");
9732 else if (((*yyvaluep).node)) {
9733 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
9739 case YYSYMBOL_for_var:
9742 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
9743 rb_parser_printf(p,
"NODE_SPECIAL");
9745 else if (((*yyvaluep).node)) {
9746 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
9752 case YYSYMBOL_f_marg:
9755 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
9756 rb_parser_printf(p,
"NODE_SPECIAL");
9758 else if (((*yyvaluep).node)) {
9759 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
9765 case YYSYMBOL_mlhs_items_f_marg:
9768 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
9769 rb_parser_printf(p,
"NODE_SPECIAL");
9771 else if (((*yyvaluep).node)) {
9772 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
9778 case YYSYMBOL_f_margs:
9781 if ((NODE *)((*yyvaluep).node_masgn) == (NODE *)-1) {
9782 rb_parser_printf(p,
"NODE_SPECIAL");
9784 else if (((*yyvaluep).node_masgn)) {
9785 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node_masgn)))));
9791 case YYSYMBOL_f_rest_marg:
9794 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
9795 rb_parser_printf(p,
"NODE_SPECIAL");
9797 else if (((*yyvaluep).node)) {
9798 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
9804 case YYSYMBOL_f_any_kwrest:
9807 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
9812 case YYSYMBOL_f_kw_primary_value:
9815 if ((NODE *)((*yyvaluep).node_kw_arg) == (NODE *)-1) {
9816 rb_parser_printf(p,
"NODE_SPECIAL");
9818 else if (((*yyvaluep).node_kw_arg)) {
9819 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node_kw_arg)))));
9825 case YYSYMBOL_f_kwarg_primary_value:
9828 if ((NODE *)((*yyvaluep).node_kw_arg) == (NODE *)-1) {
9829 rb_parser_printf(p,
"NODE_SPECIAL");
9831 else if (((*yyvaluep).node_kw_arg)) {
9832 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node_kw_arg)))));
9838 case YYSYMBOL_args_tail_basic_primary_value:
9841 if ((NODE *)((*yyvaluep).node_args) == (NODE *)-1) {
9842 rb_parser_printf(p,
"NODE_SPECIAL");
9844 else if (((*yyvaluep).node_args)) {
9845 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node_args)))));
9851 case YYSYMBOL_block_args_tail:
9854 if ((NODE *)((*yyvaluep).node_args) == (NODE *)-1) {
9855 rb_parser_printf(p,
"NODE_SPECIAL");
9857 else if (((*yyvaluep).node_args)) {
9858 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node_args)))));
9864 case YYSYMBOL_excessed_comma:
9867 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
9872 case YYSYMBOL_f_opt_primary_value:
9875 if ((NODE *)((*yyvaluep).node_opt_arg) == (NODE *)-1) {
9876 rb_parser_printf(p,
"NODE_SPECIAL");
9878 else if (((*yyvaluep).node_opt_arg)) {
9879 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node_opt_arg)))));
9885 case YYSYMBOL_f_opt_arg_primary_value:
9888 if ((NODE *)((*yyvaluep).node_opt_arg) == (NODE *)-1) {
9889 rb_parser_printf(p,
"NODE_SPECIAL");
9891 else if (((*yyvaluep).node_opt_arg)) {
9892 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node_opt_arg)))));
9898 case YYSYMBOL_opt_args_tail_block_args_tail:
9901 if ((NODE *)((*yyvaluep).node_args) == (NODE *)-1) {
9902 rb_parser_printf(p,
"NODE_SPECIAL");
9904 else if (((*yyvaluep).node_args)) {
9905 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node_args)))));
9911 case YYSYMBOL_block_param:
9914 if ((NODE *)((*yyvaluep).node_args) == (NODE *)-1) {
9915 rb_parser_printf(p,
"NODE_SPECIAL");
9917 else if (((*yyvaluep).node_args)) {
9918 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node_args)))));
9924 case YYSYMBOL_opt_block_param_def:
9927 if ((NODE *)((*yyvaluep).node_args) == (NODE *)-1) {
9928 rb_parser_printf(p,
"NODE_SPECIAL");
9930 else if (((*yyvaluep).node_args)) {
9931 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node_args)))));
9937 case YYSYMBOL_block_param_def:
9940 if ((NODE *)((*yyvaluep).node_args) == (NODE *)-1) {
9941 rb_parser_printf(p,
"NODE_SPECIAL");
9943 else if (((*yyvaluep).node_args)) {
9944 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node_args)))));
9950 case YYSYMBOL_opt_block_param:
9953 if ((NODE *)((*yyvaluep).node_args) == (NODE *)-1) {
9954 rb_parser_printf(p,
"NODE_SPECIAL");
9956 else if (((*yyvaluep).node_args)) {
9957 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node_args)))));
9963 case YYSYMBOL_opt_bv_decl:
9966 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
9971 case YYSYMBOL_bv_decls:
9974 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
9982 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
9987 case YYSYMBOL_numparam:
9990 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
9991 rb_parser_printf(p,
"NODE_SPECIAL");
9993 else if (((*yyvaluep).node)) {
9994 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10000 case YYSYMBOL_it_id:
10001#line 2636 "parse.y"
10003 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
10005#line 10006 "parse.c"
10008 case YYSYMBOL_lambda:
10009#line 2627 "parse.y"
10011 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10012 rb_parser_printf(p,
"NODE_SPECIAL");
10014 else if (((*yyvaluep).node)) {
10015 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10018#line 10019 "parse.c"
10021 case YYSYMBOL_f_larglist:
10022#line 2627 "parse.y"
10024 if ((NODE *)((*yyvaluep).node_args) == (NODE *)-1) {
10025 rb_parser_printf(p,
"NODE_SPECIAL");
10027 else if (((*yyvaluep).node_args)) {
10028 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node_args)))));
10031#line 10032 "parse.c"
10034 case YYSYMBOL_do_block:
10035#line 2627 "parse.y"
10037 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10038 rb_parser_printf(p,
"NODE_SPECIAL");
10040 else if (((*yyvaluep).node)) {
10041 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10044#line 10045 "parse.c"
10047 case YYSYMBOL_block_call:
10048#line 2627 "parse.y"
10050 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10051 rb_parser_printf(p,
"NODE_SPECIAL");
10053 else if (((*yyvaluep).node)) {
10054 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10057#line 10058 "parse.c"
10060 case YYSYMBOL_method_call:
10061#line 2627 "parse.y"
10063 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10064 rb_parser_printf(p,
"NODE_SPECIAL");
10066 else if (((*yyvaluep).node)) {
10067 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10070#line 10071 "parse.c"
10073 case YYSYMBOL_brace_block:
10074#line 2627 "parse.y"
10076 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10077 rb_parser_printf(p,
"NODE_SPECIAL");
10079 else if (((*yyvaluep).node)) {
10080 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10083#line 10084 "parse.c"
10086 case YYSYMBOL_brace_body:
10087#line 2627 "parse.y"
10089 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10090 rb_parser_printf(p,
"NODE_SPECIAL");
10092 else if (((*yyvaluep).node)) {
10093 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10096#line 10097 "parse.c"
10099 case YYSYMBOL_do_body:
10100#line 2627 "parse.y"
10102 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10103 rb_parser_printf(p,
"NODE_SPECIAL");
10105 else if (((*yyvaluep).node)) {
10106 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10109#line 10110 "parse.c"
10112 case YYSYMBOL_case_args:
10113#line 2627 "parse.y"
10115 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10116 rb_parser_printf(p,
"NODE_SPECIAL");
10118 else if (((*yyvaluep).node)) {
10119 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10122#line 10123 "parse.c"
10125 case YYSYMBOL_case_body:
10126#line 2627 "parse.y"
10128 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10129 rb_parser_printf(p,
"NODE_SPECIAL");
10131 else if (((*yyvaluep).node)) {
10132 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10135#line 10136 "parse.c"
10138 case YYSYMBOL_cases:
10139#line 2627 "parse.y"
10141 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10142 rb_parser_printf(p,
"NODE_SPECIAL");
10144 else if (((*yyvaluep).node)) {
10145 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10148#line 10149 "parse.c"
10151 case YYSYMBOL_p_case_body:
10152#line 2627 "parse.y"
10154 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10155 rb_parser_printf(p,
"NODE_SPECIAL");
10157 else if (((*yyvaluep).node)) {
10158 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10161#line 10162 "parse.c"
10164 case YYSYMBOL_p_cases:
10165#line 2627 "parse.y"
10167 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10168 rb_parser_printf(p,
"NODE_SPECIAL");
10170 else if (((*yyvaluep).node)) {
10171 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10174#line 10175 "parse.c"
10177 case YYSYMBOL_p_top_expr:
10178#line 2627 "parse.y"
10180 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10181 rb_parser_printf(p,
"NODE_SPECIAL");
10183 else if (((*yyvaluep).node)) {
10184 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10187#line 10188 "parse.c"
10190 case YYSYMBOL_p_top_expr_body:
10191#line 2627 "parse.y"
10193 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10194 rb_parser_printf(p,
"NODE_SPECIAL");
10196 else if (((*yyvaluep).node)) {
10197 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10200#line 10201 "parse.c"
10203 case YYSYMBOL_p_expr:
10204#line 2627 "parse.y"
10206 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10207 rb_parser_printf(p,
"NODE_SPECIAL");
10209 else if (((*yyvaluep).node)) {
10210 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10213#line 10214 "parse.c"
10216 case YYSYMBOL_p_as:
10217#line 2627 "parse.y"
10219 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10220 rb_parser_printf(p,
"NODE_SPECIAL");
10222 else if (((*yyvaluep).node)) {
10223 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10226#line 10227 "parse.c"
10229 case YYSYMBOL_p_alt:
10230#line 2627 "parse.y"
10232 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10233 rb_parser_printf(p,
"NODE_SPECIAL");
10235 else if (((*yyvaluep).node)) {
10236 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10239#line 10240 "parse.c"
10242 case YYSYMBOL_p_expr_basic:
10243#line 2627 "parse.y"
10245 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10246 rb_parser_printf(p,
"NODE_SPECIAL");
10248 else if (((*yyvaluep).node)) {
10249 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10252#line 10253 "parse.c"
10255 case YYSYMBOL_p_args:
10256#line 2627 "parse.y"
10258 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10259 rb_parser_printf(p,
"NODE_SPECIAL");
10261 else if (((*yyvaluep).node)) {
10262 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10265#line 10266 "parse.c"
10268 case YYSYMBOL_p_args_head:
10269#line 2627 "parse.y"
10271 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10272 rb_parser_printf(p,
"NODE_SPECIAL");
10274 else if (((*yyvaluep).node)) {
10275 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10278#line 10279 "parse.c"
10281 case YYSYMBOL_p_args_tail:
10282#line 2627 "parse.y"
10284 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10285 rb_parser_printf(p,
"NODE_SPECIAL");
10287 else if (((*yyvaluep).node)) {
10288 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10291#line 10292 "parse.c"
10294 case YYSYMBOL_p_find:
10295#line 2627 "parse.y"
10297 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10298 rb_parser_printf(p,
"NODE_SPECIAL");
10300 else if (((*yyvaluep).node)) {
10301 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10304#line 10305 "parse.c"
10307 case YYSYMBOL_p_rest:
10308#line 2627 "parse.y"
10310 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10311 rb_parser_printf(p,
"NODE_SPECIAL");
10313 else if (((*yyvaluep).node)) {
10314 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10317#line 10318 "parse.c"
10320 case YYSYMBOL_p_args_post:
10321#line 2627 "parse.y"
10323 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10324 rb_parser_printf(p,
"NODE_SPECIAL");
10326 else if (((*yyvaluep).node)) {
10327 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10330#line 10331 "parse.c"
10333 case YYSYMBOL_p_arg:
10334#line 2627 "parse.y"
10336 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10337 rb_parser_printf(p,
"NODE_SPECIAL");
10339 else if (((*yyvaluep).node)) {
10340 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10343#line 10344 "parse.c"
10346 case YYSYMBOL_p_kwargs:
10347#line 2627 "parse.y"
10349 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10350 rb_parser_printf(p,
"NODE_SPECIAL");
10352 else if (((*yyvaluep).node)) {
10353 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10356#line 10357 "parse.c"
10359 case YYSYMBOL_p_kwarg:
10360#line 2627 "parse.y"
10362 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10363 rb_parser_printf(p,
"NODE_SPECIAL");
10365 else if (((*yyvaluep).node)) {
10366 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10369#line 10370 "parse.c"
10372 case YYSYMBOL_p_kw:
10373#line 2627 "parse.y"
10375 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10376 rb_parser_printf(p,
"NODE_SPECIAL");
10378 else if (((*yyvaluep).node)) {
10379 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10382#line 10383 "parse.c"
10385 case YYSYMBOL_p_kw_label:
10386#line 2636 "parse.y"
10388 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
10390#line 10391 "parse.c"
10393 case YYSYMBOL_p_kwrest:
10394#line 2636 "parse.y"
10396 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
10398#line 10399 "parse.c"
10401 case YYSYMBOL_p_kwnorest:
10402#line 2636 "parse.y"
10404 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
10406#line 10407 "parse.c"
10409 case YYSYMBOL_p_any_kwrest:
10410#line 2636 "parse.y"
10412 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
10414#line 10415 "parse.c"
10417 case YYSYMBOL_p_value:
10418#line 2627 "parse.y"
10420 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10421 rb_parser_printf(p,
"NODE_SPECIAL");
10423 else if (((*yyvaluep).node)) {
10424 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10427#line 10428 "parse.c"
10430 case YYSYMBOL_range_expr_p_primitive:
10431#line 2627 "parse.y"
10433 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10434 rb_parser_printf(p,
"NODE_SPECIAL");
10436 else if (((*yyvaluep).node)) {
10437 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10440#line 10441 "parse.c"
10443 case YYSYMBOL_p_primitive:
10444#line 2627 "parse.y"
10446 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10447 rb_parser_printf(p,
"NODE_SPECIAL");
10449 else if (((*yyvaluep).node)) {
10450 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10453#line 10454 "parse.c"
10456 case YYSYMBOL_p_variable:
10457#line 2627 "parse.y"
10459 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10460 rb_parser_printf(p,
"NODE_SPECIAL");
10462 else if (((*yyvaluep).node)) {
10463 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10466#line 10467 "parse.c"
10469 case YYSYMBOL_p_var_ref:
10470#line 2627 "parse.y"
10472 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10473 rb_parser_printf(p,
"NODE_SPECIAL");
10475 else if (((*yyvaluep).node)) {
10476 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10479#line 10480 "parse.c"
10482 case YYSYMBOL_p_expr_ref:
10483#line 2627 "parse.y"
10485 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10486 rb_parser_printf(p,
"NODE_SPECIAL");
10488 else if (((*yyvaluep).node)) {
10489 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10492#line 10493 "parse.c"
10495 case YYSYMBOL_p_const:
10496#line 2627 "parse.y"
10498 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10499 rb_parser_printf(p,
"NODE_SPECIAL");
10501 else if (((*yyvaluep).node)) {
10502 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10505#line 10506 "parse.c"
10508 case YYSYMBOL_opt_rescue:
10509#line 2627 "parse.y"
10511 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10512 rb_parser_printf(p,
"NODE_SPECIAL");
10514 else if (((*yyvaluep).node)) {
10515 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10518#line 10519 "parse.c"
10521 case YYSYMBOL_exc_list:
10522#line 2627 "parse.y"
10524 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10525 rb_parser_printf(p,
"NODE_SPECIAL");
10527 else if (((*yyvaluep).node)) {
10528 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10531#line 10532 "parse.c"
10534 case YYSYMBOL_exc_var:
10535#line 2627 "parse.y"
10537 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10538 rb_parser_printf(p,
"NODE_SPECIAL");
10540 else if (((*yyvaluep).node)) {
10541 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10544#line 10545 "parse.c"
10547 case YYSYMBOL_opt_ensure:
10548#line 2627 "parse.y"
10550 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10551 rb_parser_printf(p,
"NODE_SPECIAL");
10553 else if (((*yyvaluep).node)) {
10554 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10557#line 10558 "parse.c"
10560 case YYSYMBOL_literal:
10561#line 2627 "parse.y"
10563 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10564 rb_parser_printf(p,
"NODE_SPECIAL");
10566 else if (((*yyvaluep).node)) {
10567 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10570#line 10571 "parse.c"
10573 case YYSYMBOL_strings:
10574#line 2627 "parse.y"
10576 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10577 rb_parser_printf(p,
"NODE_SPECIAL");
10579 else if (((*yyvaluep).node)) {
10580 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10583#line 10584 "parse.c"
10586 case YYSYMBOL_string:
10587#line 2627 "parse.y"
10589 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10590 rb_parser_printf(p,
"NODE_SPECIAL");
10592 else if (((*yyvaluep).node)) {
10593 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10596#line 10597 "parse.c"
10599 case YYSYMBOL_string1:
10600#line 2627 "parse.y"
10602 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10603 rb_parser_printf(p,
"NODE_SPECIAL");
10605 else if (((*yyvaluep).node)) {
10606 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10609#line 10610 "parse.c"
10612 case YYSYMBOL_xstring:
10613#line 2627 "parse.y"
10615 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10616 rb_parser_printf(p,
"NODE_SPECIAL");
10618 else if (((*yyvaluep).node)) {
10619 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10622#line 10623 "parse.c"
10625 case YYSYMBOL_regexp:
10626#line 2627 "parse.y"
10628 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10629 rb_parser_printf(p,
"NODE_SPECIAL");
10631 else if (((*yyvaluep).node)) {
10632 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10635#line 10636 "parse.c"
10638 case YYSYMBOL_words_tWORDS_BEG_word_list:
10639#line 2627 "parse.y"
10641 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10642 rb_parser_printf(p,
"NODE_SPECIAL");
10644 else if (((*yyvaluep).node)) {
10645 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10648#line 10649 "parse.c"
10651 case YYSYMBOL_words:
10652#line 2627 "parse.y"
10654 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10655 rb_parser_printf(p,
"NODE_SPECIAL");
10657 else if (((*yyvaluep).node)) {
10658 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10661#line 10662 "parse.c"
10664 case YYSYMBOL_word_list:
10665#line 2627 "parse.y"
10667 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10668 rb_parser_printf(p,
"NODE_SPECIAL");
10670 else if (((*yyvaluep).node)) {
10671 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10674#line 10675 "parse.c"
10677 case YYSYMBOL_word:
10678#line 2627 "parse.y"
10680 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10681 rb_parser_printf(p,
"NODE_SPECIAL");
10683 else if (((*yyvaluep).node)) {
10684 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10687#line 10688 "parse.c"
10690 case YYSYMBOL_words_tSYMBOLS_BEG_symbol_list:
10691#line 2627 "parse.y"
10693 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10694 rb_parser_printf(p,
"NODE_SPECIAL");
10696 else if (((*yyvaluep).node)) {
10697 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10700#line 10701 "parse.c"
10703 case YYSYMBOL_symbols:
10704#line 2627 "parse.y"
10706 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10707 rb_parser_printf(p,
"NODE_SPECIAL");
10709 else if (((*yyvaluep).node)) {
10710 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10713#line 10714 "parse.c"
10716 case YYSYMBOL_symbol_list:
10717#line 2627 "parse.y"
10719 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10720 rb_parser_printf(p,
"NODE_SPECIAL");
10722 else if (((*yyvaluep).node)) {
10723 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10726#line 10727 "parse.c"
10729 case YYSYMBOL_words_tQWORDS_BEG_qword_list:
10730#line 2627 "parse.y"
10732 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10733 rb_parser_printf(p,
"NODE_SPECIAL");
10735 else if (((*yyvaluep).node)) {
10736 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10739#line 10740 "parse.c"
10742 case YYSYMBOL_qwords:
10743#line 2627 "parse.y"
10745 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10746 rb_parser_printf(p,
"NODE_SPECIAL");
10748 else if (((*yyvaluep).node)) {
10749 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10752#line 10753 "parse.c"
10755 case YYSYMBOL_words_tQSYMBOLS_BEG_qsym_list:
10756#line 2627 "parse.y"
10758 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10759 rb_parser_printf(p,
"NODE_SPECIAL");
10761 else if (((*yyvaluep).node)) {
10762 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10765#line 10766 "parse.c"
10768 case YYSYMBOL_qsymbols:
10769#line 2627 "parse.y"
10771 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10772 rb_parser_printf(p,
"NODE_SPECIAL");
10774 else if (((*yyvaluep).node)) {
10775 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10778#line 10779 "parse.c"
10781 case YYSYMBOL_qword_list:
10782#line 2627 "parse.y"
10784 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10785 rb_parser_printf(p,
"NODE_SPECIAL");
10787 else if (((*yyvaluep).node)) {
10788 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10791#line 10792 "parse.c"
10794 case YYSYMBOL_qsym_list:
10795#line 2627 "parse.y"
10797 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10798 rb_parser_printf(p,
"NODE_SPECIAL");
10800 else if (((*yyvaluep).node)) {
10801 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10804#line 10805 "parse.c"
10807 case YYSYMBOL_string_contents:
10808#line 2627 "parse.y"
10810 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10811 rb_parser_printf(p,
"NODE_SPECIAL");
10813 else if (((*yyvaluep).node)) {
10814 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10817#line 10818 "parse.c"
10820 case YYSYMBOL_xstring_contents:
10821#line 2627 "parse.y"
10823 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10824 rb_parser_printf(p,
"NODE_SPECIAL");
10826 else if (((*yyvaluep).node)) {
10827 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10830#line 10831 "parse.c"
10833 case YYSYMBOL_regexp_contents:
10834#line 2627 "parse.y"
10836 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10837 rb_parser_printf(p,
"NODE_SPECIAL");
10839 else if (((*yyvaluep).node)) {
10840 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10843#line 10844 "parse.c"
10846 case YYSYMBOL_string_content:
10847#line 2627 "parse.y"
10849 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10850 rb_parser_printf(p,
"NODE_SPECIAL");
10852 else if (((*yyvaluep).node)) {
10853 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10856#line 10857 "parse.c"
10859 case YYSYMBOL_string_dvar:
10860#line 2627 "parse.y"
10862 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10863 rb_parser_printf(p,
"NODE_SPECIAL");
10865 else if (((*yyvaluep).node)) {
10866 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10869#line 10870 "parse.c"
10872 case YYSYMBOL_symbol:
10873#line 2627 "parse.y"
10875 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10876 rb_parser_printf(p,
"NODE_SPECIAL");
10878 else if (((*yyvaluep).node)) {
10879 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10882#line 10883 "parse.c"
10885 case YYSYMBOL_ssym:
10886#line 2627 "parse.y"
10888 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10889 rb_parser_printf(p,
"NODE_SPECIAL");
10891 else if (((*yyvaluep).node)) {
10892 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10895#line 10896 "parse.c"
10899#line 2636 "parse.y"
10901 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
10903#line 10904 "parse.c"
10906 case YYSYMBOL_dsym:
10907#line 2627 "parse.y"
10909 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10910 rb_parser_printf(p,
"NODE_SPECIAL");
10912 else if (((*yyvaluep).node)) {
10913 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10916#line 10917 "parse.c"
10919 case YYSYMBOL_numeric:
10920#line 2627 "parse.y"
10922 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10923 rb_parser_printf(p,
"NODE_SPECIAL");
10925 else if (((*yyvaluep).node)) {
10926 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10929#line 10930 "parse.c"
10932 case YYSYMBOL_simple_numeric:
10933#line 2627 "parse.y"
10935 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10936 rb_parser_printf(p,
"NODE_SPECIAL");
10938 else if (((*yyvaluep).node)) {
10939 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10942#line 10943 "parse.c"
10945 case YYSYMBOL_nonlocal_var:
10946#line 2636 "parse.y"
10948 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
10950#line 10951 "parse.c"
10953 case YYSYMBOL_user_variable:
10954#line 2636 "parse.y"
10956 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
10958#line 10959 "parse.c"
10961 case YYSYMBOL_keyword_variable:
10962#line 2636 "parse.y"
10964 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
10966#line 10967 "parse.c"
10969 case YYSYMBOL_var_ref:
10970#line 2627 "parse.y"
10972 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10973 rb_parser_printf(p,
"NODE_SPECIAL");
10975 else if (((*yyvaluep).node)) {
10976 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10979#line 10980 "parse.c"
10982 case YYSYMBOL_var_lhs:
10983#line 2627 "parse.y"
10985 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10986 rb_parser_printf(p,
"NODE_SPECIAL");
10988 else if (((*yyvaluep).node)) {
10989 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
10992#line 10993 "parse.c"
10995 case YYSYMBOL_backref:
10996#line 2627 "parse.y"
10998 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
10999 rb_parser_printf(p,
"NODE_SPECIAL");
11001 else if (((*yyvaluep).node)) {
11002 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
11005#line 11006 "parse.c"
11008 case YYSYMBOL_superclass:
11009#line 2627 "parse.y"
11011 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
11012 rb_parser_printf(p,
"NODE_SPECIAL");
11014 else if (((*yyvaluep).node)) {
11015 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
11018#line 11019 "parse.c"
11021 case YYSYMBOL_f_opt_paren_args:
11022#line 2627 "parse.y"
11024 if ((NODE *)((*yyvaluep).node_args) == (NODE *)-1) {
11025 rb_parser_printf(p,
"NODE_SPECIAL");
11027 else if (((*yyvaluep).node_args)) {
11028 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node_args)))));
11031#line 11032 "parse.c"
11034 case YYSYMBOL_f_paren_args:
11035#line 2627 "parse.y"
11037 if ((NODE *)((*yyvaluep).node_args) == (NODE *)-1) {
11038 rb_parser_printf(p,
"NODE_SPECIAL");
11040 else if (((*yyvaluep).node_args)) {
11041 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node_args)))));
11044#line 11045 "parse.c"
11047 case YYSYMBOL_f_arglist:
11048#line 2627 "parse.y"
11050 if ((NODE *)((*yyvaluep).node_args) == (NODE *)-1) {
11051 rb_parser_printf(p,
"NODE_SPECIAL");
11053 else if (((*yyvaluep).node_args)) {
11054 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node_args)))));
11057#line 11058 "parse.c"
11060 case YYSYMBOL_f_kw_arg_value:
11061#line 2627 "parse.y"
11063 if ((NODE *)((*yyvaluep).node_kw_arg) == (NODE *)-1) {
11064 rb_parser_printf(p,
"NODE_SPECIAL");
11066 else if (((*yyvaluep).node_kw_arg)) {
11067 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node_kw_arg)))));
11070#line 11071 "parse.c"
11073 case YYSYMBOL_f_kwarg_arg_value:
11074#line 2627 "parse.y"
11076 if ((NODE *)((*yyvaluep).node_kw_arg) == (NODE *)-1) {
11077 rb_parser_printf(p,
"NODE_SPECIAL");
11079 else if (((*yyvaluep).node_kw_arg)) {
11080 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node_kw_arg)))));
11083#line 11084 "parse.c"
11086 case YYSYMBOL_args_tail_basic_arg_value:
11087#line 2627 "parse.y"
11089 if ((NODE *)((*yyvaluep).node_args) == (NODE *)-1) {
11090 rb_parser_printf(p,
"NODE_SPECIAL");
11092 else if (((*yyvaluep).node_args)) {
11093 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node_args)))));
11096#line 11097 "parse.c"
11099 case YYSYMBOL_args_tail:
11100#line 2627 "parse.y"
11102 if ((NODE *)((*yyvaluep).node_args) == (NODE *)-1) {
11103 rb_parser_printf(p,
"NODE_SPECIAL");
11105 else if (((*yyvaluep).node_args)) {
11106 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node_args)))));
11109#line 11110 "parse.c"
11112 case YYSYMBOL_f_opt_arg_value:
11113#line 2627 "parse.y"
11115 if ((NODE *)((*yyvaluep).node_opt_arg) == (NODE *)-1) {
11116 rb_parser_printf(p,
"NODE_SPECIAL");
11118 else if (((*yyvaluep).node_opt_arg)) {
11119 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node_opt_arg)))));
11122#line 11123 "parse.c"
11125 case YYSYMBOL_f_opt_arg_arg_value:
11126#line 2627 "parse.y"
11128 if ((NODE *)((*yyvaluep).node_opt_arg) == (NODE *)-1) {
11129 rb_parser_printf(p,
"NODE_SPECIAL");
11131 else if (((*yyvaluep).node_opt_arg)) {
11132 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node_opt_arg)))));
11135#line 11136 "parse.c"
11138 case YYSYMBOL_opt_args_tail_args_tail:
11139#line 2627 "parse.y"
11141 if ((NODE *)((*yyvaluep).node_args) == (NODE *)-1) {
11142 rb_parser_printf(p,
"NODE_SPECIAL");
11144 else if (((*yyvaluep).node_args)) {
11145 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node_args)))));
11148#line 11149 "parse.c"
11151 case YYSYMBOL_f_args:
11152#line 2627 "parse.y"
11154 if ((NODE *)((*yyvaluep).node_args) == (NODE *)-1) {
11155 rb_parser_printf(p,
"NODE_SPECIAL");
11157 else if (((*yyvaluep).node_args)) {
11158 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node_args)))));
11161#line 11162 "parse.c"
11164 case YYSYMBOL_args_forward:
11165#line 2636 "parse.y"
11167 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
11169#line 11170 "parse.c"
11172 case YYSYMBOL_f_bad_arg:
11173#line 2636 "parse.y"
11175 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
11177#line 11178 "parse.c"
11180 case YYSYMBOL_f_norm_arg:
11181#line 2636 "parse.y"
11183 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
11185#line 11186 "parse.c"
11188 case YYSYMBOL_f_arg_asgn:
11189#line 2636 "parse.y"
11191 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
11193#line 11194 "parse.c"
11196 case YYSYMBOL_f_arg_item:
11197#line 2627 "parse.y"
11199 if ((NODE *)((*yyvaluep).node_args_aux) == (NODE *)-1) {
11200 rb_parser_printf(p,
"NODE_SPECIAL");
11202 else if (((*yyvaluep).node_args_aux)) {
11203 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node_args_aux)))));
11206#line 11207 "parse.c"
11209 case YYSYMBOL_f_arg:
11210#line 2627 "parse.y"
11212 if ((NODE *)((*yyvaluep).node_args_aux) == (NODE *)-1) {
11213 rb_parser_printf(p,
"NODE_SPECIAL");
11215 else if (((*yyvaluep).node_args_aux)) {
11216 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node_args_aux)))));
11219#line 11220 "parse.c"
11222 case YYSYMBOL_f_label:
11223#line 2636 "parse.y"
11225 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
11227#line 11228 "parse.c"
11230 case YYSYMBOL_f_no_kwarg:
11231#line 2636 "parse.y"
11233 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
11235#line 11236 "parse.c"
11238 case YYSYMBOL_f_kwrest:
11239#line 2636 "parse.y"
11241 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
11243#line 11244 "parse.c"
11246 case YYSYMBOL_f_rest_arg:
11247#line 2636 "parse.y"
11249 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
11251#line 11252 "parse.c"
11254 case YYSYMBOL_f_block_arg:
11255#line 2636 "parse.y"
11257 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
11259#line 11260 "parse.c"
11262 case YYSYMBOL_opt_f_block_arg:
11263#line 2636 "parse.y"
11265 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
11267#line 11268 "parse.c"
11270 case YYSYMBOL_value_expr_singleton_expr:
11271#line 2627 "parse.y"
11273 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
11274 rb_parser_printf(p,
"NODE_SPECIAL");
11276 else if (((*yyvaluep).node)) {
11277 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
11280#line 11281 "parse.c"
11283 case YYSYMBOL_singleton:
11284#line 2627 "parse.y"
11286 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
11287 rb_parser_printf(p,
"NODE_SPECIAL");
11289 else if (((*yyvaluep).node)) {
11290 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
11293#line 11294 "parse.c"
11296 case YYSYMBOL_singleton_expr:
11297#line 2627 "parse.y"
11299 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
11300 rb_parser_printf(p,
"NODE_SPECIAL");
11302 else if (((*yyvaluep).node)) {
11303 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
11306#line 11307 "parse.c"
11309 case YYSYMBOL_assoc_list:
11310#line 2627 "parse.y"
11312 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
11313 rb_parser_printf(p,
"NODE_SPECIAL");
11315 else if (((*yyvaluep).node)) {
11316 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
11319#line 11320 "parse.c"
11322 case YYSYMBOL_assocs:
11323#line 2627 "parse.y"
11325 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
11326 rb_parser_printf(p,
"NODE_SPECIAL");
11328 else if (((*yyvaluep).node)) {
11329 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
11332#line 11333 "parse.c"
11335 case YYSYMBOL_assoc:
11336#line 2627 "parse.y"
11338 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
11339 rb_parser_printf(p,
"NODE_SPECIAL");
11341 else if (((*yyvaluep).node)) {
11342 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
11345#line 11346 "parse.c"
11348 case YYSYMBOL_operation2:
11349#line 2636 "parse.y"
11351 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
11353#line 11354 "parse.c"
11356 case YYSYMBOL_operation3:
11357#line 2636 "parse.y"
11359 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
11361#line 11362 "parse.c"
11364 case YYSYMBOL_dot_or_colon:
11365#line 2636 "parse.y"
11367 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
11369#line 11370 "parse.c"
11372 case YYSYMBOL_call_op:
11373#line 2636 "parse.y"
11375 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
11377#line 11378 "parse.c"
11380 case YYSYMBOL_call_op2:
11381#line 2636 "parse.y"
11383 rb_parser_printf(p,
"%"PRIsVALUE, rb_id2str(((*yyvaluep).id)));
11385#line 11386 "parse.c"
11388 case YYSYMBOL_none:
11389#line 2627 "parse.y"
11391 if ((NODE *)((*yyvaluep).node) == (NODE *)-1) {
11392 rb_parser_printf(p,
"NODE_SPECIAL");
11394 else if (((*yyvaluep).node)) {
11395 rb_parser_printf(p,
"%s", parser_node_name(nd_type(RNODE(((*yyvaluep).node)))));
11398#line 11399 "parse.c"
11404 YY_IGNORE_MAYBE_UNINITIALIZED_END
11413yy_symbol_print (FILE *yyo,
11414 yysymbol_kind_t yykind,
YYSTYPE const *
const yyvaluep, YYLTYPE
const *
const yylocationp,
struct parser_params *p)
11416 YYFPRINTF (yyo,
"%s %s (",
11417 yykind < YYNTOKENS ?
"token" :
"nterm", yysymbol_name (yykind));
11419 YYLOCATION_PRINT (yyo, yylocationp, p);
11420 YYFPRINTF (yyo,
": ");
11421 yy_symbol_value_print (yyo, yykind, yyvaluep, yylocationp, p);
11422 YYFPRINTF (yyo,
")");
11431yy_stack_print (yy_state_t *yybottom, yy_state_t *yytop,
struct parser_params *p)
11433 YYFPRINTF (stderr,
"Stack now");
11434 for (; yybottom <= yytop; yybottom++)
11436 int yybot = *yybottom;
11437 YYFPRINTF (stderr,
" %d", yybot);
11439 YYFPRINTF (stderr,
"\n");
11442# define YY_STACK_PRINT(Bottom, Top, p) \
11445 yy_stack_print ((Bottom), (Top), p); \
11454yy_reduce_print (yy_state_t *yyssp,
YYSTYPE *yyvsp, YYLTYPE *yylsp,
11457 int yylno = yyrline[yyrule];
11458 int yynrhs = yyr2[yyrule];
11460 YYFPRINTF (stderr,
"Reducing stack by rule %d (line %d):\n",
11461 yyrule - 1, yylno);
11463 for (yyi = 0; yyi < yynrhs; yyi++)
11465 YYFPRINTF (stderr,
" $%d = ", yyi + 1);
11466 yy_symbol_print (stderr,
11467 YY_ACCESSING_SYMBOL (+yyssp[yyi + 1 - yynrhs]),
11468 &yyvsp[(yyi + 1) - (yynrhs)],
11469 &(yylsp[(yyi + 1) - (yynrhs)]), p);
11470 YYFPRINTF (stderr,
"\n");
11474# define YY_REDUCE_PRINT(Rule, p) \
11477 yy_reduce_print (yyssp, yyvsp, yylsp, Rule, p); \
11486# define YYDPRINTF(Args) ((void) 0)
11487# define YY_SYMBOL_PRINT(Title, Kind, Value, Location, p)
11488# define YY_STACK_PRINT(Bottom, Top, p)
11489# define YY_REDUCE_PRINT(Rule, p)
11495# define YYINITDEPTH 200
11506# define YYMAXDEPTH 10000
11514 yysymbol_kind_t yytoken;
11526 yysymbol_kind_t yyarg[],
int yyargn)
11530 int yyn = yypact[+*yyctx->yyssp];
11531 if (!yypact_value_is_default (yyn))
11536 int yyxbegin = yyn < 0 ? -yyn : 0;
11538 int yychecklim = YYLAST - yyn + 1;
11539 int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
11541 for (yyx = yyxbegin; yyx < yyxend; ++yyx)
11542 if (yycheck[yyx + yyn] == yyx && yyx != YYSYMBOL_YYerror
11543 && !yytable_value_is_error (yytable[yyx + yyn]))
11547 else if (yycount == yyargn)
11550 yyarg[yycount++] = YY_CAST (yysymbol_kind_t, yyx);
11553 if (yyarg && yycount == 0 && 0 < yyargn)
11554 yyarg[0] = YYSYMBOL_YYEMPTY;
11562# if defined __GLIBC__ && defined _STRING_H
11563# define yystrlen(S) (YY_CAST (YYPTRDIFF_T, strlen (S)))
11567yystrlen (
const char *yystr)
11570 for (yylen = 0; yystr[yylen]; yylen++)
11578# if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
11579# define yystpcpy stpcpy
11584yystpcpy (
char *yydest,
const char *yysrc)
11586 char *yyd = yydest;
11587 const char *yys = yysrc;
11589 while ((*yyd++ = *yys++) !=
'\0')
11606yytnamerr (
char *yyres,
const char *yystr)
11610 YYPTRDIFF_T yyn = 0;
11611 char const *yyp = yystr;
11617 goto do_not_strip_quotes;
11620 if (*++yyp !=
'\\')
11621 goto do_not_strip_quotes;
11637 do_not_strip_quotes: ;
11641 return yystpcpy (yyres, yystr) - yyres;
11643 return yystrlen (yystr);
11650 yysymbol_kind_t yyarg[],
int yyargn)
11677 if (yyctx->yytoken != YYSYMBOL_YYEMPTY)
11681 yyarg[yycount] = yyctx->yytoken;
11683 yyn = yypcontext_expected_tokens (yyctx,
11684 yyarg ? yyarg + 1 : yyarg, yyargn - 1);
11685 if (yyn == YYENOMEM)
11702yysyntax_error (YYPTRDIFF_T *yymsg_alloc,
char **yymsg,
11705 enum { YYARGS_MAX = 5 };
11707 const char *yyformat = YY_NULLPTR;
11710 yysymbol_kind_t yyarg[YYARGS_MAX];
11712 YYPTRDIFF_T yysize = 0;
11715 int yycount = yy_syntax_error_arguments (yyctx, yyarg, YYARGS_MAX);
11716 if (yycount == YYENOMEM)
11721#define YYCASE_(N, S) \
11726 YYCASE_(0, YY_(
"syntax error"));
11727 YYCASE_(1, YY_(
"syntax error, unexpected %s"));
11728 YYCASE_(2, YY_(
"syntax error, unexpected %s, expecting %s"));
11729 YYCASE_(3, YY_(
"syntax error, unexpected %s, expecting %s or %s"));
11730 YYCASE_(4, YY_(
"syntax error, unexpected %s, expecting %s or %s or %s"));
11731 YYCASE_(5, YY_(
"syntax error, unexpected %s, expecting %s or %s or %s or %s"));
11737 yysize = yystrlen (yyformat) - 2 * yycount + 1;
11740 for (yyi = 0; yyi < yycount; ++yyi)
11742 YYPTRDIFF_T yysize1
11743 = yysize + yytnamerr (YY_NULLPTR, yytname[yyarg[yyi]]);
11744 if (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)
11751 if (*yymsg_alloc < yysize)
11753 *yymsg_alloc = 2 * yysize;
11754 if (! (yysize <= *yymsg_alloc
11755 && *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM))
11756 *yymsg_alloc = YYSTACK_ALLOC_MAXIMUM;
11764 char *yyp = *yymsg;
11766 while ((*yyp = *yyformat) !=
'\0')
11767 if (*yyp ==
'%' && yyformat[1] ==
's' && yyi < yycount)
11769 yyp += yytnamerr (yyp, yytname[yyarg[yyi++]]);
11787yydestruct (
const char *yymsg,
11791 YY_USE (yylocationp);
11794 yymsg =
"Deleting";
11795 YY_SYMBOL_PRINT (yymsg, yykind, yyvaluep, yylocationp, p);
11797 YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
11800 case YYSYMBOL_258_16:
11801#line 2664 "parse.y"
11803 if (CASE_LABELS_ENABLED_P(((*yyvaluep).labels))) st_free_table(((*yyvaluep).labels));
11805#line 11806 "parse.c"
11808 case YYSYMBOL_259_17:
11809#line 2664 "parse.y"
11811 if (CASE_LABELS_ENABLED_P(((*yyvaluep).labels))) st_free_table(((*yyvaluep).labels));
11813#line 11814 "parse.c"
11819 YY_IGNORE_MAYBE_UNINITIALIZED_END
11842static const YYSTYPE yyval_default = {};
11843(void) yyval_default;
11845YY_INITIAL_VALUE (
static const YYSTYPE yyval_default;)
11847YYSTYPE yylval YY_INITIAL_VALUE (= yyval_default);
11850static const YYLTYPE yyloc_default
11851# if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL
11855YYLTYPE yylloc = yyloc_default;
11861 yy_state_fast_t yystate = 0;
11863 int yyerrstatus = 0;
11869 YYPTRDIFF_T yystacksize = YYINITDEPTH;
11872 yy_state_t yyssa[YYINITDEPTH];
11873 yy_state_t *yyss = yyssa;
11874 yy_state_t *yyssp = yyss;
11882 YYLTYPE yylsa[YYINITDEPTH];
11883 YYLTYPE *yyls = yylsa;
11884 YYLTYPE *yylsp = yyls;
11890 yysymbol_kind_t yytoken = YYSYMBOL_YYEMPTY;
11897 YYLTYPE yyerror_range[3];
11900 char yymsgbuf[128];
11901 char *yymsg = yymsgbuf;
11902 YYPTRDIFF_T yymsg_alloc =
sizeof yymsgbuf;
11904#define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N), yylsp -= (N))
11910 YYDPRINTF ((stderr,
"Starting parse\n"));
11916#line 2671 "parse.y"
11918 RUBY_SET_YYLLOC_OF_NONE(yylloc);
11921#line 11922 "parse.c"
11940 YYDPRINTF ((stderr,
"Entering state %d\n", yystate));
11941 YY_ASSERT (0 <= yystate && yystate < YYNSTATES);
11942 YY_IGNORE_USELESS_CAST_BEGIN
11943 *yyssp = YY_CAST (yy_state_t, yystate);
11944 YY_IGNORE_USELESS_CAST_END
11945 YY_STACK_PRINT (yyss, yyssp, p);
11947 if (yyss + yystacksize - 1 <= yyssp)
11948#if !defined yyoverflow && !defined YYSTACK_RELOCATE
11953 YYPTRDIFF_T yysize = yyssp - yyss + 1;
11955# if defined yyoverflow
11960 yy_state_t *yyss1 = yyss;
11962 YYLTYPE *yyls1 = yyls;
11968 yyoverflow (YY_(
"memory exhausted"),
11969 &yyss1, yysize * YYSIZEOF (*yyssp),
11970 &yyvs1, yysize * YYSIZEOF (*yyvsp),
11971 &yyls1, yysize * YYSIZEOF (*yylsp),
11979 if (YYMAXDEPTH <= yystacksize)
11982 if (YYMAXDEPTH < yystacksize)
11983 yystacksize = YYMAXDEPTH;
11986 yy_state_t *yyss1 = yyss;
11987 union yyalloc *yyptr =
11988 YY_CAST (
union yyalloc *,
11989 YYSTACK_ALLOC (YY_CAST (YYSIZE_T, YYSTACK_BYTES (yystacksize))));
11992 YYSTACK_RELOCATE (yyss_alloc, yyss);
11993 YYSTACK_RELOCATE (yyvs_alloc, yyvs);
11994 YYSTACK_RELOCATE (yyls_alloc, yyls);
11995# undef YYSTACK_RELOCATE
11996 if (yyss1 != yyssa)
11997 YYSTACK_FREE (yyss1);
12001 yyssp = yyss + yysize - 1;
12002 yyvsp = yyvs + yysize - 1;
12003 yylsp = yyls + yysize - 1;
12005 YY_IGNORE_USELESS_CAST_BEGIN
12006 YYDPRINTF ((stderr,
"Stack size increased to %ld\n",
12007 YY_CAST (
long, yystacksize)));
12008 YY_IGNORE_USELESS_CAST_END
12010 if (yyss + yystacksize - 1 <= yyssp)
12016 if (yystate == YYFINAL)
12030 yyn = yypact[yystate];
12031 if (yypact_value_is_default (yyn))
12037 if (yychar == YYEMPTY)
12039 YYDPRINTF ((stderr,
"Reading a token\n"));
12040 yychar = yylex (&yylval, &yylloc, p);
12043 if (yychar <= END_OF_INPUT)
12045 yychar = END_OF_INPUT;
12046 yytoken = YYSYMBOL_YYEOF;
12047 YYDPRINTF ((stderr,
"Now at end of input.\n"));
12049 else if (yychar == YYerror)
12056 yytoken = YYSYMBOL_YYerror;
12057 yyerror_range[1] = yylloc;
12062 yytoken = YYTRANSLATE (yychar);
12063 YY_SYMBOL_PRINT (
"Next token is", yytoken, &yylval, &yylloc, p);
12069 if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
12071 yyn = yytable[yyn];
12074 if (yytable_value_is_error (yyn))
12086 YY_SYMBOL_PRINT (
"Shifting", yytoken, &yylval, &yylloc, p);
12088 YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
12090 YY_IGNORE_MAYBE_UNINITIALIZED_END
12093#line 2674 "parse.y"
12095#line 12096 "parse.c"
12107 yyn = yydefact[yystate];
12128 yyval = yyvsp[1-yylen];
12130#line 2675 "parse.y"
12131 {before_reduce(yylen, p);}
12132#line 12133 "parse.c"
12136 YYLLOC_DEFAULT (yyloc, (yylsp - yylen), yylen);
12137 yyerror_range[1] = yyloc;
12138 YY_REDUCE_PRINT (yyn, p);
12142#line 3170 "parse.y"
12144 SET_LEX_STATE(EXPR_BEG);
12145 local_push(p, ifndef_ripper(1)+0);
12147 if (!ifndef_ripper(p->do_loop) + 0) init_block_exit(p);
12149#line 12150 "parse.c"
12153#line 2985 "parse.y"
12155 void_stmts(p, (yyval.node) = (yyvsp[-1].node));
12157#line 12158 "parse.c"
12161#line 3177 "parse.y"
12163 if ((yyvsp[0].node) && !compile_for_eval) {
12164 NODE *node = (yyvsp[0].node);
12166 if (nd_type_p(node, NODE_BLOCK)) {
12167 while (RNODE_BLOCK(node)->nd_next) {
12168 node = RNODE_BLOCK(node)->nd_next;
12170 node = RNODE_BLOCK(node)->nd_head;
12172 node = remove_begin(node);
12173 void_expr(p, node);
12175 p->eval_tree = NEW_SCOPE(0, block_append(p, p->eval_tree, (yyvsp[0].node)), NULL, &(yyloc));
12179#line 12180 "parse.c"
12183#line 3197 "parse.y"
12185 (yyval.node) = NEW_BEGIN(0, &(yyloc));
12188#line 12189 "parse.c"
12192#line 3202 "parse.y"
12194 (yyval.node) = newline_node((yyvsp[0].node));
12197#line 12198 "parse.c"
12201#line 3207 "parse.y"
12203 (yyval.node) = block_append(p, (yyvsp[-2].node), newline_node((yyvsp[0].node)));
12206#line 12207 "parse.c"
12210#line 3214 "parse.y"
12212 clear_block_exit(p,
true);
12213 (yyval.node) = (yyvsp[0].node);
12215#line 12216 "parse.c"
12219#line 3219 "parse.y"
12221 (yyval.node) = (yyvsp[0].node);
12224#line 12225 "parse.c"
12228#line 3225 "parse.y"
12229 {(yyval.node_exits) = init_block_exit(p);}
12230#line 12231 "parse.c"
12234#line 3228 "parse.y"
12236 restore_block_exit(p, (yyvsp[-2].node_exits));
12237 p->eval_tree_begin = block_append(p, p->eval_tree_begin,
12238 NEW_BEGIN((yyvsp[-1].node), &(yyloc)));
12239 (yyval.node) = NEW_BEGIN(0, &(yyloc));
12242#line 12243 "parse.c"
12246#line 2985 "parse.y"
12248 void_stmts(p, (yyval.node) = (yyvsp[-1].node));
12250#line 12251 "parse.c"
12254#line 3241 "parse.y"
12256 if (!(yyvsp[-1].node)) yyerror1(&(yylsp[0]),
"else without rescue is useless");
12257 next_rescue_context(&p->ctxt, &(yyvsp[-2].ctxt), after_else);
12259#line 12260 "parse.c"
12263#line 3246 "parse.y"
12265 next_rescue_context(&p->ctxt, &(yyvsp[-4].ctxt), after_ensure);
12267#line 12268 "parse.c"
12271#line 3250 "parse.y"
12273 (yyval.node) = new_bodystmt(p, (yyvsp[-7].node), (yyvsp[-5].node), (yyvsp[-2].node), (yyvsp[0].node), &(yyloc));
12276#line 12277 "parse.c"
12280#line 3257 "parse.y"
12282 next_rescue_context(&p->ctxt, &(yyvsp[-1].ctxt), after_ensure);
12284#line 12285 "parse.c"
12288#line 3261 "parse.y"
12290 (yyval.node) = new_bodystmt(p, (yyvsp[-4].node), (yyvsp[-2].node), 0, (yyvsp[0].node), &(yyloc));
12293#line 12294 "parse.c"
12297#line 3268 "parse.y"
12299 (yyval.node) = NEW_BEGIN(0, &(yyloc));
12302#line 12303 "parse.c"
12306#line 3273 "parse.y"
12308 (yyval.node) = newline_node((yyvsp[0].node));
12311#line 12312 "parse.c"
12315#line 3278 "parse.y"
12317 (yyval.node) = block_append(p, (yyvsp[-2].node), newline_node((yyvsp[0].node)));
12320#line 12321 "parse.c"
12324#line 3286 "parse.y"
12326 yyerror1(&(yylsp[0]),
"BEGIN is permitted only at toplevel");
12328#line 12329 "parse.c"
12332#line 3290 "parse.y"
12334 (yyval.node) = (yyvsp[0].node);
12336#line 12337 "parse.c"
12340#line 3295 "parse.y"
12341 {(yyval.node_exits) = allow_block_exit(p);}
12342#line 12343 "parse.c"
12346#line 3298 "parse.y"
12348 (yyval.ctxt) = (yyvsp[0].ctxt);
12349 p->ctxt.in_rescue = before_rescue;
12352#line 12353 "parse.c"
12356#line 3304 "parse.y"
12357 {SET_LEX_STATE(EXPR_FNAME|EXPR_FITEM);}
12358#line 12359 "parse.c"
12362#line 3305 "parse.y"
12364 (yyval.node) = NEW_ALIAS((yyvsp[-2].node), (yyvsp[0].node), &(yyloc), &(yylsp[-3]));
12367#line 12368 "parse.c"
12371#line 3310 "parse.y"
12373 (yyval.node) = NEW_VALIAS((yyvsp[-1].
id), (yyvsp[0].
id), &(yyloc), &(yylsp[-2]));
12376#line 12377 "parse.c"
12380#line 3315 "parse.y"
12384 buf[1] = (char)RNODE_BACK_REF((yyvsp[0].node))->nd_nth;
12385 (yyval.node) = NEW_VALIAS((yyvsp[-1].
id), rb_intern2(buf, 2), &(yyloc), &(yylsp[-2]));
12388#line 12389 "parse.c"
12392#line 3323 "parse.y"
12394 static const char mesg[] =
"can't make alias for the number variables";
12396 yyerror1(&(yylsp[0]), mesg);
12398 (yyval.node) = NEW_ERROR(&(yyloc));
12401#line 12402 "parse.c"
12405#line 3332 "parse.y"
12407 nd_set_first_loc((yyvsp[0].node), (yylsp[-1]).beg_pos);
12408 RNODE_UNDEF((yyvsp[0].node))->keyword_loc = (yylsp[-1]);
12409 (yyval.node) = (yyvsp[0].node);
12412#line 12413 "parse.c"
12416#line 3339 "parse.y"
12418 (yyval.node) = new_if(p, (yyvsp[0].node), remove_begin((yyvsp[-2].node)), 0, &(yyloc), &(yylsp[-1]), &NULL_LOC, &NULL_LOC);
12419 fixpos((yyval.node), (yyvsp[0].node));
12422#line 12423 "parse.c"
12426#line 3345 "parse.y"
12428 (yyval.node) = new_unless(p, (yyvsp[0].node), remove_begin((yyvsp[-2].node)), 0, &(yyloc), &(yylsp[-1]), &NULL_LOC, &NULL_LOC);
12429 fixpos((yyval.node), (yyvsp[0].node));
12432#line 12433 "parse.c"
12436#line 3351 "parse.y"
12438 clear_block_exit(p,
false);
12439 if ((yyvsp[-2].node) && nd_type_p((yyvsp[-2].node), NODE_BEGIN)) {
12440 (yyval.node) = NEW_WHILE(cond(p, (yyvsp[0].node), &(yylsp[0])), RNODE_BEGIN((yyvsp[-2].node))->nd_body, 0, &(yyloc), &(yylsp[-1]), &NULL_LOC);
12443 (yyval.node) = NEW_WHILE(cond(p, (yyvsp[0].node), &(yylsp[0])), (yyvsp[-2].node), 1, &(yyloc), &(yylsp[-1]), &NULL_LOC);
12447#line 12448 "parse.c"
12451#line 3362 "parse.y"
12453 clear_block_exit(p,
false);
12454 if ((yyvsp[-2].node) && nd_type_p((yyvsp[-2].node), NODE_BEGIN)) {
12455 (yyval.node) = NEW_UNTIL(cond(p, (yyvsp[0].node), &(yylsp[0])), RNODE_BEGIN((yyvsp[-2].node))->nd_body, 0, &(yyloc), &(yylsp[-1]), &NULL_LOC);
12458 (yyval.node) = NEW_UNTIL(cond(p, (yyvsp[0].node), &(yylsp[0])), (yyvsp[-2].node), 1, &(yyloc), &(yylsp[-1]), &NULL_LOC);
12462#line 12463 "parse.c"
12466#line 3373 "parse.y"
12468 p->ctxt.in_rescue = (yyvsp[-1].ctxt).in_rescue;
12470 YYLTYPE loc = code_loc_gen(&(yylsp[-2]), &(yylsp[0]));
12471 resq = NEW_RESBODY(0, 0, remove_begin((yyvsp[0].node)), 0, &loc);
12472 (yyval.node) = NEW_RESCUE(remove_begin((yyvsp[-3].node)), resq, 0, &(yyloc));
12475#line 12476 "parse.c"
12479#line 3382 "parse.y"
12481 if (p->ctxt.in_def) {
12482 rb_warn0(
"END in method; use at_exit");
12484 restore_block_exit(p, (yyvsp[-3].node_exits));
12485 p->ctxt = (yyvsp[-4].ctxt);
12487 NODE *scope = NEW_SCOPE2(0 , 0 , (yyvsp[-1].node) , NULL , &(yyloc));
12488 (yyval.node) = NEW_POSTEXE(scope, &(yyloc), &(yylsp[-4]), &(yylsp[-2]), &(yylsp[0]));
12489 RNODE_SCOPE(scope)->nd_parent = (yyval.node);
12493#line 12494 "parse.c"
12497#line 3397 "parse.y"
12499 (yyval.node) = node_assign(p, (NODE *)(yyvsp[-3].node_masgn), (yyvsp[0].node), (yyvsp[-1].ctxt), &(yyloc));
12502#line 12503 "parse.c"
12506#line 2929 "parse.y"
12508 (yyval.node) = node_assign(p, (NODE *)(yyvsp[-3].node), (yyvsp[0].node), (yyvsp[-1].ctxt), &(yyloc));
12511#line 12512 "parse.c"
12515#line 3404 "parse.y"
12517 p->ctxt.in_rescue = (yyvsp[-4].ctxt).in_rescue;
12518 YYLTYPE loc = code_loc_gen(&(yylsp[-2]), &(yylsp[0]));
12519 (yyvsp[0].node) = NEW_RESBODY(0, 0, remove_begin((yyvsp[0].node)), 0, &loc);
12520 loc.beg_pos = (yylsp[-3]).beg_pos;
12521 (yyvsp[-3].node) = NEW_RESCUE((yyvsp[-3].node), (yyvsp[0].node), 0, &loc);
12522 (yyval.node) = node_assign(p, (NODE *)(yyvsp[-6].node_masgn), (yyvsp[-3].node), (yyvsp[-4].ctxt), &(yyloc));
12525#line 12526 "parse.c"
12529#line 3414 "parse.y"
12531 (yyval.node) = node_assign(p, (NODE *)(yyvsp[-3].node_masgn), (yyvsp[0].node), (yyvsp[-1].ctxt), &(yyloc));
12534#line 12535 "parse.c"
12538#line 3420 "parse.y"
12541 (yyval.node) = NEW_ERROR(&(yyloc));
12543#line 12544 "parse.c"
12547#line 2929 "parse.y"
12549 (yyval.node) = node_assign(p, (NODE *)(yyvsp[-3].node), (yyvsp[0].node), (yyvsp[-1].ctxt), &(yyloc));
12552#line 12553 "parse.c"
12556#line 3055 "parse.y"
12558 (yyval.node) = new_op_assign(p, (yyvsp[-3].node), (yyvsp[-2].
id), (yyvsp[0].node), (yyvsp[-1].ctxt), &(yyloc));
12561#line 12562 "parse.c"
12565#line 3060 "parse.y"
12567 (yyval.node) = new_ary_op_assign(p, (yyvsp[-6].node), (yyvsp[-4].node), (yyvsp[-2].
id), (yyvsp[0].node), &(yylsp[-4]), &(yyloc), &NULL_LOC, &(yylsp[-5]), &(yylsp[-3]), &(yylsp[-2]));
12570#line 12571 "parse.c"
12574#line 3065 "parse.y"
12576 (yyval.node) = new_attr_op_assign(p, (yyvsp[-5].node), (yyvsp[-4].
id), (yyvsp[-3].
id), (yyvsp[-2].
id), (yyvsp[0].node), &(yyloc), &(yylsp[-4]), &(yylsp[-3]), &(yylsp[-2]));
12579#line 12580 "parse.c"
12583#line 3070 "parse.y"
12585 (yyval.node) = new_attr_op_assign(p, (yyvsp[-5].node), (yyvsp[-4].
id), (yyvsp[-3].
id), (yyvsp[-2].
id), (yyvsp[0].node), &(yyloc), &(yylsp[-4]), &(yylsp[-3]), &(yylsp[-2]));
12588#line 12589 "parse.c"
12592#line 3075 "parse.y"
12594 (yyval.node) = new_attr_op_assign(p, (yyvsp[-5].node), idCOLON2, (yyvsp[-3].
id), (yyvsp[-2].
id), (yyvsp[0].node), &(yyloc), &(yylsp[-4]), &(yylsp[-3]), &(yylsp[-2]));
12597#line 12598 "parse.c"
12601#line 3080 "parse.y"
12603 YYLTYPE loc = code_loc_gen(&(yylsp[-5]), &(yylsp[-3]));
12604 (yyval.node) = new_const_op_assign(p, NEW_COLON2((yyvsp[-5].node), (yyvsp[-3].
id), &loc, &(yylsp[-4]), &(yylsp[-3])), (yyvsp[-2].
id), (yyvsp[0].node), (yyvsp[-1].ctxt), &(yyloc));
12607#line 12608 "parse.c"
12611#line 3086 "parse.y"
12613 YYLTYPE loc = code_loc_gen(&(yylsp[-4]), &(yylsp[-3]));
12614 (yyval.node) = new_const_op_assign(p, NEW_COLON3((yyvsp[-3].
id), &loc, &(yylsp[-4]), &(yylsp[-3])), (yyvsp[-2].
id), (yyvsp[0].node), (yyvsp[-1].ctxt), &(yyloc));
12617#line 12618 "parse.c"
12621#line 3092 "parse.y"
12623 VALUE MAYBE_UNUSED(e) = rb_backref_error(p, (yyvsp[-3].node));
12624 (yyval.node) = NEW_ERROR(&(yyloc));
12627#line 12628 "parse.c"
12631#line 2960 "parse.y"
12633 endless_method_name(p, (yyvsp[-3].node_def_temp)->nd_mid, &(yylsp[-3]));
12634 restore_defun(p, (yyvsp[-3].node_def_temp));
12635 ((yyval.node) = (yyvsp[-3].node_def_temp)->nd_def)->nd_loc = (yyloc);
12636 (yyvsp[0].node) = new_scope_body(p, (yyvsp[-2].node_args), (yyvsp[0].node), (yyval.node), &(yyloc));
12637 RNODE_DEFN((yyval.node))->nd_defn = (yyvsp[0].node);
12642#line 12643 "parse.c"
12646#line 2971 "parse.y"
12648 endless_method_name(p, (yyvsp[-3].node_def_temp)->nd_mid, &(yylsp[-3]));
12649 restore_defun(p, (yyvsp[-3].node_def_temp));
12650 ((yyval.node) = (yyvsp[-3].node_def_temp)->nd_def)->nd_loc = (yyloc);
12651 (yyvsp[0].node) = new_scope_body(p, (yyvsp[-2].node_args), (yyvsp[0].node), (yyval.node), &(yyloc));
12652 RNODE_DEFS((yyval.node))->nd_defn = (yyvsp[0].node);
12657#line 12658 "parse.c"
12661#line 3433 "parse.y"
12663 p->ctxt.in_rescue = (yyvsp[-1].ctxt).in_rescue;
12664 (yyval.node) = rescued_expr(p, (yyvsp[-3].node), (yyvsp[0].node), &(yylsp[-3]), &(yylsp[-2]), &(yylsp[0]));
12667#line 12668 "parse.c"
12671#line 3439 "parse.y"
12673 (yyval.node) = call_uni_op(p, method_cond(p, (yyvsp[0].node), &(yylsp[0])), METHOD_NOT, &(yylsp[-2]), &(yyloc));
12676#line 12677 "parse.c"
12680#line 3447 "parse.y"
12682 p->ctxt.in_rescue = (yyvsp[-1].ctxt).in_rescue;
12683 YYLTYPE loc = code_loc_gen(&(yylsp[-2]), &(yylsp[0]));
12684 (yyval.node) = NEW_RESCUE((yyvsp[-3].node), NEW_RESBODY(0, 0, remove_begin((yyvsp[0].node)), 0, &loc), 0, &(yyloc));
12687#line 12688 "parse.c"
12691#line 3458 "parse.y"
12693 (yyval.node) = logop(p, idAND, (yyvsp[-2].node), (yyvsp[0].node), &(yylsp[-1]), &(yyloc));
12696#line 12697 "parse.c"
12700#line 3463 "parse.y"
12702 (yyval.node) = logop(p, idOR, (yyvsp[-2].node), (yyvsp[0].node), &(yylsp[-1]), &(yyloc));
12705#line 12706 "parse.c"
12709#line 3468 "parse.y"
12711 (yyval.node) = call_uni_op(p, method_cond(p, (yyvsp[0].node), &(yylsp[0])), METHOD_NOT, &(yylsp[-2]), &(yyloc));
12714#line 12715 "parse.c"
12718#line 3473 "parse.y"
12720 (yyval.node) = call_uni_op(p, method_cond(p, (yyvsp[0].node), &(yylsp[0])),
'!', &(yylsp[-1]), &(yyloc));
12723#line 12724 "parse.c"
12727#line 3478 "parse.y"
12729 value_expr(p, (yyvsp[-1].node));
12731#line 12732 "parse.c"
12735#line 3483 "parse.y"
12737 pop_pktbl(p, (yyvsp[-1].tbl));
12738 pop_pvtbl(p, (yyvsp[-2].tbl));
12739 p->ctxt.in_kwarg = (yyvsp[-3].ctxt).in_kwarg;
12740 p->ctxt.in_alt_pattern = (yyvsp[-3].ctxt).in_alt_pattern;
12741 p->ctxt.capture_in_pattern = (yyvsp[-3].ctxt).capture_in_pattern;
12742 (yyval.node) = NEW_CASE3((yyvsp[-6].node), NEW_IN((yyvsp[0].node), 0, 0, &(yylsp[0]), &NULL_LOC, &NULL_LOC, &(yylsp[-5])), &(yyloc), &NULL_LOC, &NULL_LOC);
12745#line 12746 "parse.c"
12749#line 3493 "parse.y"
12751 value_expr(p, (yyvsp[-1].node));
12753#line 12754 "parse.c"
12757#line 3498 "parse.y"
12759 pop_pktbl(p, (yyvsp[-1].tbl));
12760 pop_pvtbl(p, (yyvsp[-2].tbl));
12761 p->ctxt.in_kwarg = (yyvsp[-3].ctxt).in_kwarg;
12762 p->ctxt.in_alt_pattern = (yyvsp[-3].ctxt).in_alt_pattern;
12763 p->ctxt.capture_in_pattern = (yyvsp[-3].ctxt).capture_in_pattern;
12764 (yyval.node) = NEW_CASE3((yyvsp[-6].node), NEW_IN((yyvsp[0].node), NEW_TRUE(&(yylsp[0])), NEW_FALSE(&(yylsp[0])), &(yylsp[0]), &(yylsp[-5]), &NULL_LOC, &NULL_LOC), &(yyloc), &NULL_LOC, &NULL_LOC);
12767#line 12768 "parse.c"
12771#line 3511 "parse.y"
12773 numparam_name(p, (yyvsp[0].
id));
12775 p->ctxt.in_def = 1;
12776 p->ctxt.in_rescue = before_rescue;
12777 p->ctxt.cant_return = 0;
12778 (yyval.id) = (yyvsp[0].
id);
12780#line 12781 "parse.c"
12784#line 3522 "parse.y"
12786 (yyval.node_def_temp) = def_head_save(p, (yyvsp[-1].node_def_temp));
12787 (yyval.node_def_temp)->nd_mid = (yyvsp[0].
id);
12788 (yyval.node_def_temp)->nd_def = NEW_DEFN((yyvsp[0].
id), 0, &(yyloc));
12791#line 12792 "parse.c"
12795#line 3531 "parse.y"
12797 SET_LEX_STATE(EXPR_FNAME);
12799#line 12800 "parse.c"
12803#line 3535 "parse.y"
12805 SET_LEX_STATE(EXPR_ENDFN|EXPR_LABEL);
12806 (yyval.node_def_temp) = def_head_save(p, (yyvsp[-4].node_def_temp));
12807 (yyval.node_def_temp)->nd_mid = (yyvsp[0].
id);
12808 (yyval.node_def_temp)->nd_def = NEW_DEFS((yyvsp[-3].node), (yyvsp[0].
id), 0, &(yyloc));
12811#line 12812 "parse.c"
12815#line 3155 "parse.y"
12817 value_expr(p, (yyvsp[0].node));
12818 (yyval.node) = (yyvsp[0].node);
12820#line 12821 "parse.c"
12824#line 3546 "parse.y"
12826 (yyval.node) = NEW_ERROR(&(yyloc));
12828#line 12829 "parse.c"
12832#line 3551 "parse.y"
12834#line 12835 "parse.c"
12838#line 3551 "parse.y"
12840#line 12841 "parse.c"
12844#line 3552 "parse.y"
12846 (yyval.node) = (yyvsp[-2].node);
12849#line 12850 "parse.c"
12853#line 3155 "parse.y"
12855 value_expr(p, (yyvsp[0].node));
12856 (yyval.node) = (yyvsp[0].node);
12858#line 12859 "parse.c"
12862#line 3567 "parse.y"
12864 (yyval.node) = new_qcall(p, (yyvsp[-2].
id), (yyvsp[-3].node), (yyvsp[-1].
id), (yyvsp[0].node), &(yylsp[-1]), &(yyloc));
12867#line 12868 "parse.c"
12871#line 3574 "parse.y"
12873 (yyval.node) = (yyvsp[-1].node);
12874 set_embraced_location((yyval.node), &(yylsp[-2]), &(yylsp[0]));
12877#line 12878 "parse.c"
12881#line 3582 "parse.y"
12883 (yyval.node_fcall) = NEW_FCALL((yyvsp[0].
id), 0, &(yyloc));
12886#line 12887 "parse.c"
12890#line 3582 "parse.y"
12892 (yyval.node_fcall) = NEW_FCALL((yyvsp[0].
id), 0, &(yyloc));
12895#line 12896 "parse.c"
12899#line 3582 "parse.y"
12901 (yyval.node_fcall) = NEW_FCALL((yyvsp[0].
id), 0, &(yyloc));
12904#line 12905 "parse.c"
12908#line 3589 "parse.y"
12910 (yyvsp[-1].node_fcall)->nd_args = (yyvsp[0].node);
12911 nd_set_last_loc((yyvsp[-1].node_fcall), (yylsp[0]).end_pos);
12912 (yyval.node) = (NODE *)(yyvsp[-1].node_fcall);
12915#line 12916 "parse.c"
12919#line 3596 "parse.y"
12921 block_dup_check(p, (yyvsp[-1].node), (yyvsp[0].node));
12922 (yyvsp[-2].node_fcall)->nd_args = (yyvsp[-1].node);
12923 (yyval.node) = method_add_block(p, (NODE *)(yyvsp[-2].node_fcall), (yyvsp[0].node), &(yyloc));
12924 fixpos((yyval.node), RNODE((yyvsp[-2].node_fcall)));
12925 nd_set_last_loc((yyvsp[-2].node_fcall), (yylsp[-1]).end_pos);
12928#line 12929 "parse.c"
12932#line 3605 "parse.y"
12934 (yyval.node) = new_command_qcall(p, (yyvsp[-2].
id), (yyvsp[-3].node), (yyvsp[-1].
id), (yyvsp[0].node), 0, &(yylsp[-1]), &(yyloc));
12937#line 12938 "parse.c"
12941#line 3610 "parse.y"
12943 (yyval.node) = new_command_qcall(p, (yyvsp[-3].
id), (yyvsp[-4].node), (yyvsp[-2].
id), (yyvsp[-1].node), (yyvsp[0].node), &(yylsp[-2]), &(yyloc));
12946#line 12947 "parse.c"
12950#line 3615 "parse.y"
12952 (yyval.node) = new_command_qcall(p, idCOLON2, (yyvsp[-3].node), (yyvsp[-1].
id), (yyvsp[0].node), 0, &(yylsp[-1]), &(yyloc));
12955#line 12956 "parse.c"
12959#line 3620 "parse.y"
12961 (yyval.node) = new_command_qcall(p, idCOLON2, (yyvsp[-4].node), (yyvsp[-2].
id), (yyvsp[-1].node), (yyvsp[0].node), &(yylsp[-2]), &(yyloc));
12964#line 12965 "parse.c"
12968#line 3625 "parse.y"
12970 set_embraced_location((yyvsp[-1].node), &(yylsp[-2]), &(yylsp[0]));
12971 (yyval.node) = new_command_qcall(p, idCOLON2, (yyvsp[-5].node), (yyvsp[-3].
id), 0, (yyvsp[-1].node), &(yylsp[-3]), &(yyloc));
12974#line 12975 "parse.c"
12978#line 3631 "parse.y"
12980 (yyval.node) = NEW_SUPER((yyvsp[0].node), &(yyloc), &(yylsp[-1]), &NULL_LOC, &NULL_LOC);
12981 fixpos((yyval.node), (yyvsp[0].node));
12984#line 12985 "parse.c"
12988#line 3637 "parse.y"
12990 (yyval.node) = NEW_YIELD((yyvsp[0].node), &(yyloc), &(yylsp[-1]), &NULL_LOC, &NULL_LOC);
12991 fixpos((yyval.node), (yyvsp[0].node));
12994#line 12995 "parse.c"
12998#line 3643 "parse.y"
13001 (yyval.node) = NEW_RETURN(ret_args(p, (yyvsp[0].node)), &(yyloc), &(yylsp[-1]));
13004#line 13005 "parse.c"
13008#line 3649 "parse.y"
13012 args = ret_args(p, (yyvsp[0].node));
13013 (yyval.node) = add_block_exit(p, NEW_BREAK(args, &(yyloc), &(yylsp[-1])));
13016#line 13017 "parse.c"
13020#line 3657 "parse.y"
13024 args = ret_args(p, (yyvsp[0].node));
13025 (yyval.node) = add_block_exit(p, NEW_NEXT(args, &(yyloc), &(yylsp[-1])));
13028#line 13029 "parse.c"
13032#line 3668 "parse.y"
13034 (yyval.node_masgn) = (yyvsp[-1].node_masgn);
13037#line 13038 "parse.c"
13041#line 3676 "parse.y"
13043 (yyval.node_masgn) = NEW_MASGN(NEW_LIST((NODE *)(yyvsp[-1].node_masgn), &(yyloc)), 0, &(yyloc));
13046#line 13047 "parse.c"
13050#line 3683 "parse.y"
13052 (yyval.node_masgn) = NEW_MASGN((yyvsp[0].node), 0, &(yyloc));
13055#line 13056 "parse.c"
13059#line 3688 "parse.y"
13061 (yyval.node_masgn) = NEW_MASGN(list_append(p, (yyvsp[-1].node), (yyvsp[0].node)), 0, &(yyloc));
13064#line 13065 "parse.c"
13068#line 3693 "parse.y"
13070 (yyval.node_masgn) = NEW_MASGN((yyvsp[-2].node), (yyvsp[0].node), &(yyloc));
13073#line 13074 "parse.c"
13077#line 3042 "parse.y"
13079 (yyval.node) = NEW_LIST((yyvsp[0].node), &(yyloc));
13082#line 13083 "parse.c"
13086#line 3047 "parse.y"
13088 (yyval.node) = list_append(p, (yyvsp[-2].node), (yyvsp[0].node));
13091#line 13092 "parse.c"
13095#line 3698 "parse.y"
13097 (yyval.node_masgn) = NEW_MASGN((yyvsp[-4].node), NEW_POSTARG((yyvsp[-2].node),(yyvsp[0].node),&(yyloc)), &(yyloc));
13100#line 13101 "parse.c"
13104#line 3703 "parse.y"
13106 (yyval.node_masgn) = NEW_MASGN((yyvsp[-1].node), NODE_SPECIAL_NO_NAME_REST, &(yyloc));
13109#line 13110 "parse.c"
13113#line 3708 "parse.y"
13115 (yyval.node_masgn) = NEW_MASGN((yyvsp[-3].node), NEW_POSTARG(NODE_SPECIAL_NO_NAME_REST, (yyvsp[0].node), &(yyloc)), &(yyloc));
13118#line 13119 "parse.c"
13122#line 3713 "parse.y"
13124 (yyval.node_masgn) = NEW_MASGN(0, (yyvsp[0].node), &(yyloc));
13127#line 13128 "parse.c"
13131#line 3718 "parse.y"
13133 (yyval.node_masgn) = NEW_MASGN(0, NEW_POSTARG((yyvsp[-2].node),(yyvsp[0].node),&(yyloc)), &(yyloc));
13136#line 13137 "parse.c"
13140#line 3723 "parse.y"
13142 (yyval.node_masgn) = NEW_MASGN(0, NODE_SPECIAL_NO_NAME_REST, &(yyloc));
13145#line 13146 "parse.c"
13149#line 3728 "parse.y"
13151 (yyval.node_masgn) = NEW_MASGN(0, NEW_POSTARG(NODE_SPECIAL_NO_NAME_REST, (yyvsp[0].node), &(yyloc)), &(yyloc));
13154#line 13155 "parse.c"
13158#line 3736 "parse.y"
13160 (yyval.node) = (NODE *)(yyvsp[-1].node_masgn);
13163#line 13164 "parse.c"
13167#line 3743 "parse.y"
13169 (yyval.node) = NEW_LIST((yyvsp[-1].node), &(yylsp[-1]));
13172#line 13173 "parse.c"
13176#line 3748 "parse.y"
13178 (yyval.node) = list_append(p, (yyvsp[-2].node), (yyvsp[-1].node));
13181#line 13182 "parse.c"
13185#line 3756 "parse.y"
13188 (yyval.node) = assignable(p, (yyvsp[0].
id), 0, &(yyloc));
13190#line 13191 "parse.c"
13194#line 3756 "parse.y"
13197 (yyval.node) = assignable(p, (yyvsp[0].
id), 0, &(yyloc));
13199#line 13200 "parse.c"
13203#line 3761 "parse.y"
13205 (yyval.node) = aryset(p, (yyvsp[-3].node), (yyvsp[-1].node), &(yyloc));
13208#line 13209 "parse.c"
13212#line 3766 "parse.y"
13214 anddot_multiple_assignment_check(p, &(yylsp[-1]), (yyvsp[-1].
id));
13215 (yyval.node) = attrset(p, (yyvsp[-2].node), (yyvsp[-1].
id), (yyvsp[0].
id), &(yyloc));
13218#line 13219 "parse.c"
13222#line 3766 "parse.y"
13224 anddot_multiple_assignment_check(p, &(yylsp[-1]), (yyvsp[-1].
id));
13225 (yyval.node) = attrset(p, (yyvsp[-2].node), (yyvsp[-1].
id), (yyvsp[0].
id), &(yyloc));
13228#line 13229 "parse.c"
13232#line 3772 "parse.y"
13234 (yyval.node) = attrset(p, (yyvsp[-2].node), idCOLON2, (yyvsp[0].
id), &(yyloc));
13237#line 13238 "parse.c"
13241#line 3777 "parse.y"
13244 (yyval.node) = const_decl(p, NEW_COLON2((yyvsp[-2].node), (yyvsp[0].
id), &(yyloc), &(yylsp[-1]), &(yylsp[0])), &(yyloc));
13246#line 13247 "parse.c"
13250#line 3782 "parse.y"
13253 (yyval.node) = const_decl(p, NEW_COLON3((yyvsp[0].
id), &(yyloc), &(yylsp[-1]), &(yylsp[0])), &(yyloc));
13255#line 13256 "parse.c"
13259#line 3787 "parse.y"
13261 VALUE MAYBE_UNUSED(e) = rb_backref_error(p, (yyvsp[0].node));
13262 (yyval.node) = NEW_ERROR(&(yyloc));
13265#line 13266 "parse.c"
13269#line 3795 "parse.y"
13272 (yyval.node) = assignable(p, (yyvsp[0].
id), 0, &(yyloc));
13274#line 13275 "parse.c"
13278#line 3795 "parse.y"
13281 (yyval.node) = assignable(p, (yyvsp[0].
id), 0, &(yyloc));
13283#line 13284 "parse.c"
13287#line 3800 "parse.y"
13289 (yyval.node) = aryset(p, (yyvsp[-3].node), (yyvsp[-1].node), &(yyloc));
13292#line 13293 "parse.c"
13296#line 3805 "parse.y"
13298 (yyval.node) = attrset(p, (yyvsp[-2].node), (yyvsp[-1].
id), (yyvsp[0].
id), &(yyloc));
13301#line 13302 "parse.c"
13305#line 3805 "parse.y"
13307 (yyval.node) = attrset(p, (yyvsp[-2].node), (yyvsp[-1].
id), (yyvsp[0].
id), &(yyloc));
13310#line 13311 "parse.c"
13314#line 3810 "parse.y"
13316 (yyval.node) = attrset(p, (yyvsp[-2].node), idCOLON2, (yyvsp[0].
id), &(yyloc));
13319#line 13320 "parse.c"
13323#line 3815 "parse.y"
13326 (yyval.node) = const_decl(p, NEW_COLON2((yyvsp[-2].node), (yyvsp[0].
id), &(yyloc), &(yylsp[-1]), &(yylsp[0])), &(yyloc));
13328#line 13329 "parse.c"
13332#line 3820 "parse.y"
13335 (yyval.node) = const_decl(p, NEW_COLON3((yyvsp[0].
id), &(yyloc), &(yylsp[-1]), &(yylsp[0])), &(yyloc));
13337#line 13338 "parse.c"
13341#line 3825 "parse.y"
13343 VALUE MAYBE_UNUSED(e) = rb_backref_error(p, (yyvsp[0].node));
13344 (yyval.node) = NEW_ERROR(&(yyloc));
13347#line 13348 "parse.c"
13351#line 3833 "parse.y"
13353 static const char mesg[] =
"class/module name must be CONSTANT";
13355 yyerror1(&(yylsp[0]), mesg);
13359#line 13360 "parse.c"
13363#line 3844 "parse.y"
13365 (yyval.node) = NEW_COLON3((yyvsp[0].
id), &(yyloc), &(yylsp[-1]), &(yylsp[0]));
13368#line 13369 "parse.c"
13372#line 3849 "parse.y"
13374 (yyval.node) = NEW_COLON2(0, (yyvsp[0].
id), &(yyloc), &NULL_LOC, &(yylsp[0]));
13377#line 13378 "parse.c"
13381#line 3854 "parse.y"
13383 (yyval.node) = NEW_COLON2((yyvsp[-2].node), (yyvsp[0].
id), &(yyloc), &(yylsp[-1]), &(yylsp[0]));
13386#line 13387 "parse.c"
13390#line 3862 "parse.y"
13392 SET_LEX_STATE(EXPR_ENDFN);
13393 (yyval.id) = (yyvsp[0].
id);
13395#line 13396 "parse.c"
13399#line 3870 "parse.y"
13401 (yyval.node) = NEW_SYM(rb_id2str((yyvsp[0].
id)), &(yyloc));
13404#line 13405 "parse.c"
13408#line 3878 "parse.y"
13410 (yyval.node) = NEW_UNDEF((yyvsp[0].node), &(yyloc));
13413#line 13414 "parse.c"
13417#line 3882 "parse.y"
13418 {SET_LEX_STATE(EXPR_FNAME|EXPR_FITEM);}
13419#line 13420 "parse.c"
13423#line 3883 "parse.y"
13425 nd_set_last_loc((yyvsp[-3].node), (yylsp[0]).end_pos);
13426 rb_parser_ary_push_node(p, RNODE_UNDEF((yyvsp[-3].node))->nd_undefs, (yyvsp[0].node));
13429#line 13430 "parse.c"
13433#line 3890 "parse.y"
13434 { (yyval.id) =
'|'; }
13435#line 13436 "parse.c"
13439#line 3891 "parse.y"
13440 { (yyval.id) =
'^'; }
13441#line 13442 "parse.c"
13445#line 3892 "parse.y"
13446 { (yyval.id) =
'&'; }
13447#line 13448 "parse.c"
13451#line 3893 "parse.y"
13452 { (yyval.id) = tCMP; }
13453#line 13454 "parse.c"
13457#line 3894 "parse.y"
13458 { (yyval.id) = tEQ; }
13459#line 13460 "parse.c"
13463#line 3895 "parse.y"
13464 { (yyval.id) = tEQQ; }
13465#line 13466 "parse.c"
13469#line 3896 "parse.y"
13470 { (yyval.id) = tMATCH; }
13471#line 13472 "parse.c"
13475#line 3897 "parse.y"
13476 { (yyval.id) = tNMATCH; }
13477#line 13478 "parse.c"
13481#line 3898 "parse.y"
13482 { (yyval.id) =
'>'; }
13483#line 13484 "parse.c"
13487#line 3899 "parse.y"
13488 { (yyval.id) = tGEQ; }
13489#line 13490 "parse.c"
13493#line 3900 "parse.y"
13494 { (yyval.id) =
'<'; }
13495#line 13496 "parse.c"
13499#line 3901 "parse.y"
13500 { (yyval.id) = tLEQ; }
13501#line 13502 "parse.c"
13505#line 3902 "parse.y"
13506 { (yyval.id) = tNEQ; }
13507#line 13508 "parse.c"
13511#line 3903 "parse.y"
13512 { (yyval.id) = tLSHFT; }
13513#line 13514 "parse.c"
13517#line 3904 "parse.y"
13518 { (yyval.id) = tRSHFT; }
13519#line 13520 "parse.c"
13523#line 3905 "parse.y"
13524 { (yyval.id) =
'+'; }
13525#line 13526 "parse.c"
13529#line 3906 "parse.y"
13530 { (yyval.id) =
'-'; }
13531#line 13532 "parse.c"
13535#line 3907 "parse.y"
13536 { (yyval.id) =
'*'; }
13537#line 13538 "parse.c"
13541#line 3908 "parse.y"
13542 { (yyval.id) =
'*'; }
13543#line 13544 "parse.c"
13547#line 3909 "parse.y"
13548 { (yyval.id) =
'/'; }
13549#line 13550 "parse.c"
13553#line 3910 "parse.y"
13554 { (yyval.id) =
'%'; }
13555#line 13556 "parse.c"
13559#line 3911 "parse.y"
13560 { (yyval.id) = tPOW; }
13561#line 13562 "parse.c"
13565#line 3912 "parse.y"
13566 { (yyval.id) = tDSTAR; }
13567#line 13568 "parse.c"
13571#line 3913 "parse.y"
13572 { (yyval.id) =
'!'; }
13573#line 13574 "parse.c"
13577#line 3914 "parse.y"
13578 { (yyval.id) =
'~'; }
13579#line 13580 "parse.c"
13583#line 3915 "parse.y"
13584 { (yyval.id) = tUPLUS; }
13585#line 13586 "parse.c"
13589#line 3916 "parse.y"
13590 { (yyval.id) = tUMINUS; }
13591#line 13592 "parse.c"
13595#line 3917 "parse.y"
13596 { (yyval.id) = tAREF; }
13597#line 13598 "parse.c"
13601#line 3918 "parse.y"
13602 { (yyval.id) = tASET; }
13603#line 13604 "parse.c"
13607#line 3919 "parse.y"
13608 { (yyval.id) =
'`'; }
13609#line 13610 "parse.c"
13613#line 2929 "parse.y"
13615 (yyval.node) = node_assign(p, (NODE *)(yyvsp[-3].node), (yyvsp[0].node), (yyvsp[-1].ctxt), &(yyloc));
13618#line 13619 "parse.c"
13622#line 3055 "parse.y"
13624 (yyval.node) = new_op_assign(p, (yyvsp[-3].node), (yyvsp[-2].
id), (yyvsp[0].node), (yyvsp[-1].ctxt), &(yyloc));
13627#line 13628 "parse.c"
13631#line 3060 "parse.y"
13633 (yyval.node) = new_ary_op_assign(p, (yyvsp[-6].node), (yyvsp[-4].node), (yyvsp[-2].
id), (yyvsp[0].node), &(yylsp[-4]), &(yyloc), &NULL_LOC, &(yylsp[-5]), &(yylsp[-3]), &(yylsp[-2]));
13636#line 13637 "parse.c"
13640#line 3065 "parse.y"
13642 (yyval.node) = new_attr_op_assign(p, (yyvsp[-5].node), (yyvsp[-4].
id), (yyvsp[-3].
id), (yyvsp[-2].
id), (yyvsp[0].node), &(yyloc), &(yylsp[-4]), &(yylsp[-3]), &(yylsp[-2]));
13645#line 13646 "parse.c"
13649#line 3070 "parse.y"
13651 (yyval.node) = new_attr_op_assign(p, (yyvsp[-5].node), (yyvsp[-4].
id), (yyvsp[-3].
id), (yyvsp[-2].
id), (yyvsp[0].node), &(yyloc), &(yylsp[-4]), &(yylsp[-3]), &(yylsp[-2]));
13654#line 13655 "parse.c"
13658#line 3075 "parse.y"
13660 (yyval.node) = new_attr_op_assign(p, (yyvsp[-5].node), idCOLON2, (yyvsp[-3].
id), (yyvsp[-2].
id), (yyvsp[0].node), &(yyloc), &(yylsp[-4]), &(yylsp[-3]), &(yylsp[-2]));
13663#line 13664 "parse.c"
13667#line 3080 "parse.y"
13669 YYLTYPE loc = code_loc_gen(&(yylsp[-5]), &(yylsp[-3]));
13670 (yyval.node) = new_const_op_assign(p, NEW_COLON2((yyvsp[-5].node), (yyvsp[-3].
id), &loc, &(yylsp[-4]), &(yylsp[-3])), (yyvsp[-2].
id), (yyvsp[0].node), (yyvsp[-1].ctxt), &(yyloc));
13673#line 13674 "parse.c"
13677#line 3086 "parse.y"
13679 YYLTYPE loc = code_loc_gen(&(yylsp[-4]), &(yylsp[-3]));
13680 (yyval.node) = new_const_op_assign(p, NEW_COLON3((yyvsp[-3].
id), &loc, &(yylsp[-4]), &(yylsp[-3])), (yyvsp[-2].
id), (yyvsp[0].node), (yyvsp[-1].ctxt), &(yyloc));
13683#line 13684 "parse.c"
13687#line 3092 "parse.y"
13689 VALUE MAYBE_UNUSED(e) = rb_backref_error(p, (yyvsp[-3].node));
13690 (yyval.node) = NEW_ERROR(&(yyloc));
13693#line 13694 "parse.c"
13697#line 3114 "parse.y"
13699 value_expr(p, (yyvsp[-2].node));
13700 value_expr(p, (yyvsp[0].node));
13701 (yyval.node) = NEW_DOT2((yyvsp[-2].node), (yyvsp[0].node), &(yyloc), &(yylsp[-1]));
13704#line 13705 "parse.c"
13708#line 3121 "parse.y"
13710 value_expr(p, (yyvsp[-2].node));
13711 value_expr(p, (yyvsp[0].node));
13712 (yyval.node) = NEW_DOT3((yyvsp[-2].node), (yyvsp[0].node), &(yyloc), &(yylsp[-1]));
13715#line 13716 "parse.c"
13719#line 3128 "parse.y"
13721 value_expr(p, (yyvsp[-1].node));
13722 (yyval.node) = NEW_DOT2((yyvsp[-1].node), new_nil_at(p, &(yylsp[0]).end_pos), &(yyloc), &(yylsp[0]));
13725#line 13726 "parse.c"
13729#line 3134 "parse.y"
13731 value_expr(p, (yyvsp[-1].node));
13732 (yyval.node) = NEW_DOT3((yyvsp[-1].node), new_nil_at(p, &(yylsp[0]).end_pos), &(yyloc), &(yylsp[0]));
13735#line 13736 "parse.c"
13739#line 3140 "parse.y"
13741 value_expr(p, (yyvsp[0].node));
13742 (yyval.node) = NEW_DOT2(new_nil_at(p, &(yylsp[-1]).beg_pos), (yyvsp[0].node), &(yyloc), &(yylsp[-1]));
13745#line 13746 "parse.c"
13749#line 3146 "parse.y"
13751 value_expr(p, (yyvsp[0].node));
13752 (yyval.node) = NEW_DOT3(new_nil_at(p, &(yylsp[-1]).beg_pos), (yyvsp[0].node), &(yyloc), &(yylsp[-1]));
13755#line 13756 "parse.c"
13759#line 3940 "parse.y"
13761 (yyval.node) = call_bin_op(p, (yyvsp[-2].node),
'+', (yyvsp[0].node), &(yylsp[-1]), &(yyloc));
13764#line 13765 "parse.c"
13768#line 3945 "parse.y"
13770 (yyval.node) = call_bin_op(p, (yyvsp[-2].node),
'-', (yyvsp[0].node), &(yylsp[-1]), &(yyloc));
13773#line 13774 "parse.c"
13777#line 3950 "parse.y"
13779 (yyval.node) = call_bin_op(p, (yyvsp[-2].node),
'*', (yyvsp[0].node), &(yylsp[-1]), &(yyloc));
13782#line 13783 "parse.c"
13786#line 3955 "parse.y"
13788 (yyval.node) = call_bin_op(p, (yyvsp[-2].node),
'/', (yyvsp[0].node), &(yylsp[-1]), &(yyloc));
13791#line 13792 "parse.c"
13795#line 3960 "parse.y"
13797 (yyval.node) = call_bin_op(p, (yyvsp[-2].node),
'%', (yyvsp[0].node), &(yylsp[-1]), &(yyloc));
13800#line 13801 "parse.c"
13804#line 3965 "parse.y"
13806 (yyval.node) = call_bin_op(p, (yyvsp[-2].node), idPow, (yyvsp[0].node), &(yylsp[-1]), &(yyloc));
13809#line 13810 "parse.c"
13813#line 3970 "parse.y"
13815 (yyval.node) = call_uni_op(p, call_bin_op(p, (yyvsp[-2].node), idPow, (yyvsp[0].node), &(yylsp[-2]), &(yyloc)), idUMinus, &(yylsp[-3]), &(yyloc));
13818#line 13819 "parse.c"
13822#line 3975 "parse.y"
13824 (yyval.node) = call_uni_op(p, (yyvsp[0].node), idUPlus, &(yylsp[-1]), &(yyloc));
13827#line 13828 "parse.c"
13831#line 3980 "parse.y"
13833 (yyval.node) = call_uni_op(p, (yyvsp[0].node), idUMinus, &(yylsp[-1]), &(yyloc));
13836#line 13837 "parse.c"
13840#line 3985 "parse.y"
13842 (yyval.node) = call_bin_op(p, (yyvsp[-2].node),
'|', (yyvsp[0].node), &(yylsp[-1]), &(yyloc));
13845#line 13846 "parse.c"
13849#line 3990 "parse.y"
13851 (yyval.node) = call_bin_op(p, (yyvsp[-2].node),
'^', (yyvsp[0].node), &(yylsp[-1]), &(yyloc));
13854#line 13855 "parse.c"
13858#line 3995 "parse.y"
13860 (yyval.node) = call_bin_op(p, (yyvsp[-2].node),
'&', (yyvsp[0].node), &(yylsp[-1]), &(yyloc));
13863#line 13864 "parse.c"
13867#line 4000 "parse.y"
13869 (yyval.node) = call_bin_op(p, (yyvsp[-2].node), idCmp, (yyvsp[0].node), &(yylsp[-1]), &(yyloc));
13872#line 13873 "parse.c"
13876#line 4006 "parse.y"
13878 (yyval.node) = call_bin_op(p, (yyvsp[-2].node), idEq, (yyvsp[0].node), &(yylsp[-1]), &(yyloc));
13881#line 13882 "parse.c"
13885#line 4011 "parse.y"
13887 (yyval.node) = call_bin_op(p, (yyvsp[-2].node), idEqq, (yyvsp[0].node), &(yylsp[-1]), &(yyloc));
13890#line 13891 "parse.c"
13894#line 4016 "parse.y"
13896 (yyval.node) = call_bin_op(p, (yyvsp[-2].node), idNeq, (yyvsp[0].node), &(yylsp[-1]), &(yyloc));
13899#line 13900 "parse.c"
13903#line 4021 "parse.y"
13905 (yyval.node) = match_op(p, (yyvsp[-2].node), (yyvsp[0].node), &(yylsp[-1]), &(yyloc));
13908#line 13909 "parse.c"
13912#line 4026 "parse.y"
13914 (yyval.node) = call_bin_op(p, (yyvsp[-2].node), idNeqTilde, (yyvsp[0].node), &(yylsp[-1]), &(yyloc));
13917#line 13918 "parse.c"
13921#line 4031 "parse.y"
13923 (yyval.node) = call_uni_op(p, method_cond(p, (yyvsp[0].node), &(yylsp[0])),
'!', &(yylsp[-1]), &(yyloc));
13926#line 13927 "parse.c"
13930#line 4036 "parse.y"
13932 (yyval.node) = call_uni_op(p, (yyvsp[0].node),
'~', &(yylsp[-1]), &(yyloc));
13935#line 13936 "parse.c"
13939#line 4041 "parse.y"
13941 (yyval.node) = call_bin_op(p, (yyvsp[-2].node), idLTLT, (yyvsp[0].node), &(yylsp[-1]), &(yyloc));
13944#line 13945 "parse.c"
13948#line 4046 "parse.y"
13950 (yyval.node) = call_bin_op(p, (yyvsp[-2].node), idGTGT, (yyvsp[0].node), &(yylsp[-1]), &(yyloc));
13953#line 13954 "parse.c"
13957#line 4051 "parse.y"
13959 (yyval.node) = logop(p, idANDOP, (yyvsp[-2].node), (yyvsp[0].node), &(yylsp[-1]), &(yyloc));
13962#line 13963 "parse.c"
13966#line 4056 "parse.y"
13968 (yyval.node) = logop(p, idOROP, (yyvsp[-2].node), (yyvsp[0].node), &(yylsp[-1]), &(yyloc));
13971#line 13972 "parse.c"
13975#line 4061 "parse.y"
13977 p->ctxt.in_defined = (yyvsp[-1].ctxt).in_defined;
13978 (yyval.node) = new_defined(p, (yyvsp[0].node), &(yyloc), &(yylsp[-3]));
13979 p->ctxt.has_trailing_semicolon = (yyvsp[-1].ctxt).has_trailing_semicolon;
13982#line 13983 "parse.c"
13986#line 2960 "parse.y"
13988 endless_method_name(p, (yyvsp[-3].node_def_temp)->nd_mid, &(yylsp[-3]));
13989 restore_defun(p, (yyvsp[-3].node_def_temp));
13990 ((yyval.node) = (yyvsp[-3].node_def_temp)->nd_def)->nd_loc = (yyloc);
13991 (yyvsp[0].node) = new_scope_body(p, (yyvsp[-2].node_args), (yyvsp[0].node), (yyval.node), &(yyloc));
13992 RNODE_DEFN((yyval.node))->nd_defn = (yyvsp[0].node);
13997#line 13998 "parse.c"
14001#line 2971 "parse.y"
14003 endless_method_name(p, (yyvsp[-3].node_def_temp)->nd_mid, &(yylsp[-3]));
14004 restore_defun(p, (yyvsp[-3].node_def_temp));
14005 ((yyval.node) = (yyvsp[-3].node_def_temp)->nd_def)->nd_loc = (yyloc);
14006 (yyvsp[0].node) = new_scope_body(p, (yyvsp[-2].node_args), (yyvsp[0].node), (yyval.node), &(yyloc));
14007 RNODE_DEFS((yyval.node))->nd_defn = (yyvsp[0].node);
14012#line 14013 "parse.c"
14016#line 4073 "parse.y"
14018 value_expr(p, (yyvsp[-5].node));
14019 (yyval.node) = new_if(p, (yyvsp[-5].node), (yyvsp[-3].node), (yyvsp[0].node), &(yyloc), &NULL_LOC, &(yylsp[-1]), &NULL_LOC);
14020 fixpos((yyval.node), (yyvsp[-5].node));
14023#line 14024 "parse.c"
14027#line 4083 "parse.y"
14029 p->ctxt.in_rescue = (yyvsp[-1].ctxt).in_rescue;
14030 (yyval.node) = rescued_expr(p, (yyvsp[-3].node), (yyvsp[0].node), &(yylsp[-3]), &(yylsp[-2]), &(yylsp[0]));
14033#line 14034 "parse.c"
14037#line 4089 "parse.y"
14039 (yyval.node) = call_uni_op(p, method_cond(p, (yyvsp[0].node), &(yylsp[0])), METHOD_NOT, &(yylsp[-2]), &(yyloc));
14042#line 14043 "parse.c"
14046#line 4095 "parse.y"
14047 {(yyval.id) =
'>';}
14048#line 14049 "parse.c"
14052#line 4096 "parse.y"
14053 {(yyval.id) =
'<';}
14054#line 14055 "parse.c"
14058#line 4097 "parse.y"
14059 {(yyval.id) = idGE;}
14060#line 14061 "parse.c"
14064#line 4098 "parse.y"
14065 {(yyval.id) = idLE;}
14066#line 14067 "parse.c"
14070#line 4102 "parse.y"
14072 (yyval.node) = call_bin_op(p, (yyvsp[-2].node), (yyvsp[-1].
id), (yyvsp[0].node), &(yylsp[-1]), &(yyloc));
14075#line 14076 "parse.c"
14079#line 4107 "parse.y"
14081 rb_warning1(
"comparison '%s' after comparison", WARN_ID((yyvsp[-1].
id)));
14082 (yyval.node) = call_bin_op(p, (yyvsp[-2].node), (yyvsp[-1].
id), (yyvsp[0].node), &(yylsp[-1]), &(yyloc));
14085#line 14086 "parse.c"
14089#line 4115 "parse.y"
14091 (yyval.ctxt) = p->ctxt;
14093#line 14094 "parse.c"
14097#line 4121 "parse.y"
14099 p->ctxt.in_defined = 1;
14100 (yyval.ctxt) = (yyvsp[0].ctxt);
14102#line 14103 "parse.c"
14106#line 4128 "parse.y"
14108 p->ctxt.in_rescue = after_rescue;
14109 (yyval.ctxt) = (yyvsp[0].ctxt);
14111#line 14112 "parse.c"
14115#line 3155 "parse.y"
14117 value_expr(p, (yyvsp[0].node));
14118 (yyval.node) = (yyvsp[0].node);
14120#line 14121 "parse.c"
14124#line 4140 "parse.y"
14126 (yyval.node) = (yyvsp[-1].node) ? arg_append(p, (yyvsp[-3].node), new_hash(p, (yyvsp[-1].node), &(yylsp[-1])), &(yyloc)) : (yyvsp[-3].node);
14129#line 14130 "parse.c"
14133#line 4145 "parse.y"
14135 (yyval.node) = (yyvsp[-1].node) ? NEW_LIST(new_hash(p, (yyvsp[-1].node), &(yylsp[-1])), &(yyloc)) : 0;
14138#line 14139 "parse.c"
14142#line 4152 "parse.y"
14144 value_expr(p, (yyvsp[0].node));
14145 (yyval.node) = (yyvsp[0].node);
14147#line 14148 "parse.c"
14151#line 4157 "parse.y"
14153 p->ctxt.in_rescue = (yyvsp[-1].ctxt).in_rescue;
14154 value_expr(p, (yyvsp[-3].node));
14155 (yyval.node) = rescued_expr(p, (yyvsp[-3].node), (yyvsp[0].node), &(yylsp[-3]), &(yylsp[-2]), &(yylsp[0]));
14158#line 14159 "parse.c"
14162#line 4166 "parse.y"
14164 (yyval.node) = (yyvsp[-1].node);
14167#line 14168 "parse.c"
14171#line 4171 "parse.y"
14173 if (!check_forwarding_args(p)) {
14177 (yyval.node) = new_args_forward_call(p, (yyvsp[-3].node), &(yylsp[-1]), &(yyloc));
14181#line 14182 "parse.c"
14185#line 4181 "parse.y"
14187 if (!check_forwarding_args(p)) {
14191 (yyval.node) = new_args_forward_call(p, 0, &(yylsp[-1]), &(yyloc));
14195#line 14196 "parse.c"
14199#line 4194 "parse.y"
14201 (yyval.node) = (yyvsp[0].node) ? (yyvsp[0].node) : NODE_SPECIAL_EMPTY_ARGS;
14203#line 14204 "parse.c"
14207#line 4203 "parse.y"
14209 (yyval.node) = (yyvsp[-1].node) ? arg_append(p, (yyvsp[-3].node), new_hash(p, (yyvsp[-1].node), &(yylsp[-1])), &(yyloc)) : (yyvsp[-3].node);
14212#line 14213 "parse.c"
14216#line 4208 "parse.y"
14218 (yyval.node) = (yyvsp[-1].node) ? NEW_LIST(new_hash(p, (yyvsp[-1].node), &(yylsp[-1])), &(yylsp[-1])) : 0;
14221#line 14222 "parse.c"
14225#line 3155 "parse.y"
14227 value_expr(p, (yyvsp[0].node));
14228 (yyval.node) = (yyvsp[0].node);
14230#line 14231 "parse.c"
14234#line 4215 "parse.y"
14236 (yyval.node) = NEW_LIST((yyvsp[0].node), &(yyloc));
14239#line 14240 "parse.c"
14243#line 4220 "parse.y"
14245 (yyval.node) = NEW_LIST((yyvsp[0].node), &(yyloc));
14248#line 14249 "parse.c"
14252#line 4225 "parse.y"
14254 (yyval.node) = arg_blk_pass((yyvsp[-1].node), (yyvsp[0].node_block_pass));
14257#line 14258 "parse.c"
14261#line 4230 "parse.y"
14263 (yyval.node) = (yyvsp[-1].node) ? NEW_LIST(new_hash(p, (yyvsp[-1].node), &(yylsp[-1])), &(yylsp[-1])) : 0;
14264 (yyval.node) = arg_blk_pass((yyval.node), (yyvsp[0].node_block_pass));
14267#line 14268 "parse.c"
14271#line 4236 "parse.y"
14273 (yyval.node) = (yyvsp[-1].node) ? arg_append(p, (yyvsp[-3].node), new_hash(p, (yyvsp[-1].node), &(yylsp[-1])), &(yyloc)) : (yyvsp[-3].node);
14274 (yyval.node) = arg_blk_pass((yyval.node), (yyvsp[0].node_block_pass));
14277#line 14278 "parse.c"
14281#line 4245 "parse.y"
14292 case '(':
case tLPAREN:
case tLPAREN_ARG:
case '[':
case tLBRACK:
14295 if (lookahead) CMDARG_POP();
14297 if (lookahead) CMDARG_PUSH(0);
14299#line 14300 "parse.c"
14303#line 4263 "parse.y"
14316 if (lookahead) CMDARG_POP();
14318 if (lookahead) CMDARG_PUSH(0);
14319 (yyval.node) = (yyvsp[0].node);
14322#line 14323 "parse.c"
14326#line 4284 "parse.y"
14328 (yyval.node_block_pass) = NEW_BLOCK_PASS((yyvsp[0].node), &(yyloc), &(yylsp[-1]));
14331#line 14332 "parse.c"
14335#line 4289 "parse.y"
14337 forwarding_arg_check(p, idFWD_BLOCK, idFWD_ALL,
"block");
14338 (yyval.node_block_pass) = NEW_BLOCK_PASS(NEW_LVAR(idFWD_BLOCK, &(yylsp[0])), &(yyloc), &(yylsp[0]));
14341#line 14342 "parse.c"
14345#line 4297 "parse.y"
14347 (yyval.node_block_pass) = (yyvsp[0].node_block_pass);
14350#line 14351 "parse.c"
14354#line 4302 "parse.y"
14356 (yyval.node_block_pass) = 0;
14359#line 14360 "parse.c"
14363#line 4310 "parse.y"
14365 (yyval.node) = NEW_LIST((yyvsp[0].node), &(yyloc));
14368#line 14369 "parse.c"
14372#line 4315 "parse.y"
14374 (yyval.node) = (yyvsp[0].node);
14377#line 14378 "parse.c"
14381#line 4320 "parse.y"
14383 (yyval.node) = last_arg_append(p, (yyvsp[-2].node), (yyvsp[0].node), &(yyloc));
14386#line 14387 "parse.c"
14390#line 4325 "parse.y"
14392 (yyval.node) = rest_arg_append(p, (yyvsp[-2].node), RNODE_SPLAT((yyvsp[0].node))->nd_head, &(yyloc));
14395#line 14396 "parse.c"
14399#line 4333 "parse.y"
14401 (yyval.node) = NEW_SPLAT((yyvsp[0].node), &(yyloc), &(yylsp[-1]));
14404#line 14405 "parse.c"
14408#line 4338 "parse.y"
14410 forwarding_arg_check(p, idFWD_REST, idFWD_ALL,
"rest");
14411 (yyval.node) = NEW_SPLAT(NEW_LVAR(idFWD_REST, &(yylsp[0])), &(yyloc), &(yylsp[0]));
14414#line 14415 "parse.c"
14418#line 4352 "parse.y"
14420 (yyval.node) = last_arg_append(p, (yyvsp[-2].node), (yyvsp[0].node), &(yyloc));
14423#line 14424 "parse.c"
14427#line 4357 "parse.y"
14429 (yyval.node) = rest_arg_append(p, (yyvsp[-3].node), (yyvsp[0].node), &(yyloc));
14432#line 14433 "parse.c"
14436#line 4362 "parse.y"
14438 (yyval.node) = NEW_SPLAT((yyvsp[0].node), &(yyloc), &(yylsp[-1]));
14441#line 14442 "parse.c"
14445#line 4383 "parse.y"
14447 (yyval.node) = (NODE *)NEW_FCALL((yyvsp[0].
id), 0, &(yyloc));
14450#line 14451 "parse.c"
14454#line 4388 "parse.y"
14458#line 14459 "parse.c"
14462#line 4393 "parse.y"
14465 set_line_body((yyvsp[-1].node), (yylsp[-3]).end_pos.lineno);
14466 (yyval.node) = NEW_BEGIN((yyvsp[-1].node), &(yyloc));
14467 nd_set_line((yyval.node), (yylsp[-3]).end_pos.lineno);
14470#line 14471 "parse.c"
14474#line 4400 "parse.y"
14475 {SET_LEX_STATE(EXPR_ENDARG);}
14476#line 14477 "parse.c"
14480#line 4401 "parse.y"
14482 if (nd_type_p((yyvsp[-2].node), NODE_SELF)) RNODE_SELF((yyvsp[-2].node))->nd_state = 0;
14483 (yyval.node) = (yyvsp[-2].node);
14486#line 14487 "parse.c"
14490#line 4407 "parse.y"
14492 if (nd_type_p((yyvsp[-1].node), NODE_SELF)) RNODE_SELF((yyvsp[-1].node))->nd_state = 0;
14493 (yyval.node) = NEW_BLOCK((yyvsp[-1].node), &(yyloc));
14496#line 14497 "parse.c"
14500#line 4413 "parse.y"
14502 (yyval.node) = NEW_COLON2((yyvsp[-2].node), (yyvsp[0].
id), &(yyloc), &(yylsp[-1]), &(yylsp[0]));
14505#line 14506 "parse.c"
14509#line 4418 "parse.y"
14511 (yyval.node) = NEW_COLON3((yyvsp[0].
id), &(yyloc), &(yylsp[-1]), &(yylsp[0]));
14514#line 14515 "parse.c"
14518#line 4423 "parse.y"
14520 (yyval.node) = make_list((yyvsp[-1].node), &(yyloc));
14523#line 14524 "parse.c"
14527#line 4428 "parse.y"
14529 (yyval.node) = new_hash(p, (yyvsp[-1].node), &(yyloc));
14530 RNODE_HASH((yyval.node))->nd_brace = TRUE;
14533#line 14534 "parse.c"
14537#line 4434 "parse.y"
14539 (yyval.node) = NEW_RETURN(0, &(yyloc), &(yylsp[0]));
14542#line 14543 "parse.c"
14546#line 4439 "parse.y"
14548 (yyval.node) = NEW_YIELD((yyvsp[-1].node), &(yyloc), &(yylsp[-3]), &(yylsp[-2]), &(yylsp[0]));
14551#line 14552 "parse.c"
14555#line 4444 "parse.y"
14557 (yyval.node) = NEW_YIELD(0, &(yyloc), &(yylsp[-2]), &(yylsp[-1]), &(yylsp[0]));
14560#line 14561 "parse.c"
14564#line 4449 "parse.y"
14566 (yyval.node) = NEW_YIELD(0, &(yyloc), &(yylsp[0]), &NULL_LOC, &NULL_LOC);
14569#line 14570 "parse.c"
14573#line 4454 "parse.y"
14575 p->ctxt.in_defined = (yyvsp[-2].ctxt).in_defined;
14576 (yyval.node) = new_defined(p, (yyvsp[-1].node), &(yyloc), &(yylsp[-5]));
14577 p->ctxt.has_trailing_semicolon = (yyvsp[-2].ctxt).has_trailing_semicolon;
14580#line 14581 "parse.c"
14584#line 4461 "parse.y"
14586 (yyval.node) = call_uni_op(p, method_cond(p, (yyvsp[-1].node), &(yylsp[-1])), METHOD_NOT, &(yylsp[-3]), &(yyloc));
14589#line 14590 "parse.c"
14593#line 4466 "parse.y"
14595 (yyval.node) = call_uni_op(p, method_cond(p, NEW_NIL(&(yylsp[-1])), &(yylsp[-1])), METHOD_NOT, &(yylsp[-2]), &(yyloc));
14598#line 14599 "parse.c"
14602#line 4471 "parse.y"
14604 (yyval.node) = method_add_block(p, (NODE *)(yyvsp[-1].node_fcall), (yyvsp[0].node), &(yyloc));
14607#line 14608 "parse.c"
14611#line 4477 "parse.y"
14613 block_dup_check(p, get_nd_args(p, (yyvsp[-1].node)), (yyvsp[0].node));
14614 (yyval.node) = method_add_block(p, (yyvsp[-1].node), (yyvsp[0].node), &(yyloc));
14617#line 14618 "parse.c"
14621#line 4487 "parse.y"
14623 if ((yyvsp[-1].node) && nd_type_p((yyvsp[-1].node), NODE_IF))
14624 RNODE_IF((yyvsp[-1].node))->end_keyword_loc = (yylsp[0]);
14626 (yyval.node) = new_if(p, (yyvsp[-4].node), (yyvsp[-2].node), (yyvsp[-1].node), &(yyloc), &(yylsp[-5]), &(yylsp[-3]), &(yylsp[0]));
14627 fixpos((yyval.node), (yyvsp[-4].node));
14630#line 14631 "parse.c"
14634#line 4499 "parse.y"
14636 (yyval.node) = new_unless(p, (yyvsp[-4].node), (yyvsp[-2].node), (yyvsp[-1].node), &(yyloc), &(yylsp[-5]), &(yylsp[-3]), &(yylsp[0]));
14637 fixpos((yyval.node), (yyvsp[-4].node));
14640#line 14641 "parse.c"
14644#line 4507 "parse.y"
14646 restore_block_exit(p, (yyvsp[-3].node_exits));
14647 (yyval.node) = NEW_WHILE(cond(p, (yyvsp[-2].node), &(yylsp[-2])), (yyvsp[-1].node), 1, &(yyloc), &(yylsp[-3]), &(yylsp[0]));
14648 fixpos((yyval.node), (yyvsp[-2].node));
14651#line 14652 "parse.c"
14655#line 4516 "parse.y"
14657 restore_block_exit(p, (yyvsp[-3].node_exits));
14658 (yyval.node) = NEW_UNTIL(cond(p, (yyvsp[-2].node), &(yylsp[-2])), (yyvsp[-1].node), 1, &(yyloc), &(yylsp[-3]), &(yylsp[0]));
14659 fixpos((yyval.node), (yyvsp[-2].node));
14662#line 14663 "parse.c"
14666#line 4523 "parse.y"
14668 (yyval.labels) = p->case_labels;
14669 p->case_labels = CHECK_LITERAL_WHEN;
14671#line 14672 "parse.c"
14675#line 4529 "parse.y"
14677 if (CASE_LABELS_ENABLED_P(p->case_labels)) st_free_table(p->case_labels);
14678 p->case_labels = (yyvsp[-2].labels);
14679 (yyval.node) = NEW_CASE((yyvsp[-4].node), (yyvsp[-1].node), &(yyloc), &(yylsp[-5]), &(yylsp[0]));
14680 fixpos((yyval.node), (yyvsp[-4].node));
14683#line 14684 "parse.c"
14687#line 4537 "parse.y"
14689 (yyval.labels) = p->case_labels;
14690 p->case_labels = 0;
14692#line 14693 "parse.c"
14696#line 4543 "parse.y"
14698 if (CASE_LABELS_ENABLED_P(p->case_labels)) st_free_table(p->case_labels);
14699 p->case_labels = (yyvsp[-2].labels);
14700 (yyval.node) = NEW_CASE2((yyvsp[-1].node), &(yyloc), &(yylsp[-4]), &(yylsp[0]));
14703#line 14704 "parse.c"
14707#line 4552 "parse.y"
14709 (yyval.node) = NEW_CASE3((yyvsp[-3].node), (yyvsp[-1].node), &(yyloc), &(yylsp[-4]), &(yylsp[0]));
14712#line 14713 "parse.c"
14716#line 4557 "parse.y"
14718#line 14719 "parse.c"
14722#line 4557 "parse.y"
14724#line 14725 "parse.c"
14728#line 4560 "parse.y"
14730 restore_block_exit(p, (yyvsp[-8].node_exits));
14740 ID id = internal_id(p);
14741 rb_node_args_aux_t *m = NEW_ARGS_AUX(0, 0, &NULL_LOC);
14742 rb_node_args_t *args;
14743 NODE *scope, *internal_var = NEW_DVAR(
id, &(yylsp[-7]));
14744 rb_ast_id_table_t *tbl = rb_ast_new_local_table(p->ast, 1);
14747 switch (nd_type((yyvsp[-7].node))) {
14750 set_nd_value(p, (yyvsp[-7].node), internal_var);
14753 m->nd_next = (yyvsp[-7].node);
14756 m->nd_next = node_assign(p, (yyvsp[-7].node), NEW_FOR_MASGN(internal_var, &(yylsp[-7])), NO_LEX_CTXT, &(yylsp[-7]));
14759 m->nd_next = node_assign(p, (NODE *)NEW_MASGN(NEW_LIST((yyvsp[-7].node), &(yylsp[-7])), 0, &(yylsp[-7])), internal_var, NO_LEX_CTXT, &(yylsp[-7]));
14762 args = new_args(p, m, 0,
id, 0, new_args_tail(p, 0, 0, 0, &(yylsp[-7])), &(yylsp[-7]));
14763 scope = NEW_SCOPE2(tbl, args, (yyvsp[-1].node), NULL, &(yyloc));
14764 YYLTYPE do_keyword_loc = (yyvsp[-3].id) == keyword_do_cond ? (yylsp[-3]) : NULL_LOC;
14765 (yyval.node) = NEW_FOR((yyvsp[-4].node), scope, &(yyloc), &(yylsp[-8]), &(yylsp[-6]), &do_keyword_loc, &(yylsp[0]));
14766 RNODE_SCOPE(scope)->nd_parent = (yyval.node);
14767 fixpos((yyval.node), (yyvsp[-7].node));
14770#line 14771 "parse.c"
14774#line 4602 "parse.y"
14776 begin_definition(
"class", &(yylsp[-2]), &(yylsp[-1]));
14778#line 14779 "parse.c"
14782#line 4607 "parse.y"
14784 YYLTYPE inheritance_operator_loc = NULL_LOC;
14785 if ((yyvsp[-3].node)) {
14786 inheritance_operator_loc = (yylsp[-3]);
14787 inheritance_operator_loc.end_pos.column = inheritance_operator_loc.beg_pos.column + 1;
14789 (yyval.node) = NEW_CLASS((yyvsp[-4].node), (yyvsp[-1].node), (yyvsp[-3].node), &(yyloc), &(yylsp[-5]), &inheritance_operator_loc, &(yylsp[0]));
14790 nd_set_line(RNODE_CLASS((yyval.node))->nd_body, (yylsp[0]).end_pos.lineno);
14791 set_line_body((yyvsp[-1].node), (yylsp[-3]).end_pos.lineno);
14792 nd_set_line((yyval.node), (yylsp[-3]).end_pos.lineno);
14795 p->ctxt.in_class = (yyvsp[-5].ctxt).in_class;
14796 p->ctxt.cant_return = (yyvsp[-5].ctxt).cant_return;
14797 p->ctxt.shareable_constant_value = (yyvsp[-5].ctxt).shareable_constant_value;
14798 p->ctxt.in_rescue = (yyvsp[-5].ctxt).in_rescue;
14800#line 14801 "parse.c"
14804#line 4625 "parse.y"
14806 begin_definition(
"", &(yylsp[-2]), &(yylsp[-1]));
14808#line 14809 "parse.c"
14812#line 4631 "parse.y"
14814 (yyval.node) = NEW_SCLASS((yyvsp[-4].node), (yyvsp[-1].node), &(yyloc), &(yylsp[-6]), &(yylsp[-5]), &(yylsp[0]));
14815 nd_set_line(RNODE_SCLASS((yyval.node))->nd_body, (yylsp[0]).end_pos.lineno);
14816 set_line_body((yyvsp[-1].node), nd_line((yyvsp[-4].node)));
14817 fixpos((yyval.node), (yyvsp[-4].node));
14820 p->ctxt.in_def = (yyvsp[-6].ctxt).in_def;
14821 p->ctxt.in_class = (yyvsp[-6].ctxt).in_class;
14822 p->ctxt.cant_return = (yyvsp[-6].ctxt).cant_return;
14823 p->ctxt.shareable_constant_value = (yyvsp[-6].ctxt).shareable_constant_value;
14824 p->ctxt.in_rescue = (yyvsp[-6].ctxt).in_rescue;
14826#line 14827 "parse.c"
14830#line 4645 "parse.y"
14832 begin_definition(
"module", &(yylsp[-1]), &(yylsp[0]));
14834#line 14835 "parse.c"
14838#line 4650 "parse.y"
14840 (yyval.node) = NEW_MODULE((yyvsp[-3].node), (yyvsp[-1].node), &(yyloc), &(yylsp[-4]), &(yylsp[0]));
14841 nd_set_line(RNODE_MODULE((yyval.node))->nd_body, (yylsp[0]).end_pos.lineno);
14842 set_line_body((yyvsp[-1].node), (yylsp[-3]).end_pos.lineno);
14843 nd_set_line((yyval.node), (yylsp[-3]).end_pos.lineno);
14846 p->ctxt.in_class = (yyvsp[-4].ctxt).in_class;
14847 p->ctxt.cant_return = (yyvsp[-4].ctxt).cant_return;
14848 p->ctxt.shareable_constant_value = (yyvsp[-4].ctxt).shareable_constant_value;
14849 p->ctxt.in_rescue = (yyvsp[-4].ctxt).in_rescue;
14851#line 14852 "parse.c"
14855#line 4664 "parse.y"
14857 push_end_expect_token_locations(p, &(yylsp[-1]).beg_pos);
14859#line 14860 "parse.c"
14863#line 4669 "parse.y"
14865 restore_defun(p, (yyvsp[-4].node_def_temp));
14866 ((yyval.node) = (yyvsp[-4].node_def_temp)->nd_def)->nd_loc = (yyloc);
14867 (yyvsp[-1].node) = new_scope_body(p, (yyvsp[-3].node_args), (yyvsp[-1].node), (yyval.node), &(yyloc));
14868 RNODE_DEFN((yyval.node))->nd_defn = (yyvsp[-1].node);
14872#line 14873 "parse.c"
14876#line 4679 "parse.y"
14878 push_end_expect_token_locations(p, &(yylsp[-1]).beg_pos);
14880#line 14881 "parse.c"
14884#line 4684 "parse.y"
14886 restore_defun(p, (yyvsp[-4].node_def_temp));
14887 ((yyval.node) = (yyvsp[-4].node_def_temp)->nd_def)->nd_loc = (yyloc);
14888 (yyvsp[-1].node) = new_scope_body(p, (yyvsp[-3].node_args), (yyvsp[-1].node), (yyval.node), &(yyloc));
14889 RNODE_DEFS((yyval.node))->nd_defn = (yyvsp[-1].node);
14893#line 14894 "parse.c"
14897#line 4693 "parse.y"
14899 (yyval.node) = add_block_exit(p, NEW_BREAK(0, &(yyloc), &(yylsp[0])));
14902#line 14903 "parse.c"
14906#line 4698 "parse.y"
14908 (yyval.node) = add_block_exit(p, NEW_NEXT(0, &(yyloc), &(yylsp[0])));
14911#line 14912 "parse.c"
14915#line 4703 "parse.y"
14917 (yyval.node) = add_block_exit(p, NEW_REDO(&(yyloc), &(yylsp[0])));
14920#line 14921 "parse.c"
14924#line 4708 "parse.y"
14926 if (!p->ctxt.in_defined) {
14927 switch (p->ctxt.in_rescue) {
14928 case before_rescue: yyerror1(&(yylsp[0]),
"Invalid retry without rescue");
break;
14929 case after_rescue:
break;
14930 case after_else: yyerror1(&(yylsp[0]),
"Invalid retry after else");
break;
14931 case after_ensure: yyerror1(&(yylsp[0]),
"Invalid retry after ensure");
break;
14934 (yyval.node) = NEW_RETRY(&(yyloc));
14937#line 14938 "parse.c"
14941#line 3155 "parse.y"
14943 value_expr(p, (yyvsp[0].node));
14944 (yyval.node) = (yyvsp[0].node);
14946#line 14947 "parse.c"
14950#line 4726 "parse.y"
14952 token_info_push(p,
"begin", &(yyloc));
14953 push_end_expect_token_locations(p, &(yylsp[0]).beg_pos);
14955#line 14956 "parse.c"
14959#line 4733 "parse.y"
14962 token_info_push(p,
"if", &(yyloc));
14963 if (p->token_info && p->token_info->nonspc &&
14964 p->token_info->next && !strcmp(p->token_info->next->token,
"else")) {
14966 const char *beg = p->lex.pbeg + p->token_info->next->beg.column;
14968 while (beg < tok &&
ISSPACE(*beg)) beg++;
14970 p->token_info->nonspc = 0;
14973 push_end_expect_token_locations(p, &(yylsp[0]).beg_pos);
14975#line 14976 "parse.c"
14979#line 4751 "parse.y"
14981 token_info_push(p,
"unless", &(yyloc));
14982 push_end_expect_token_locations(p, &(yylsp[0]).beg_pos);
14984#line 14985 "parse.c"
14988#line 4758 "parse.y"
14990 (yyval.node_exits) = (yyvsp[0].node_exits);
14991 token_info_push(p,
"while", &(yyloc));
14992 push_end_expect_token_locations(p, &(yylsp[-1]).beg_pos);
14994#line 14995 "parse.c"
14998#line 4766 "parse.y"
15000 (yyval.node_exits) = (yyvsp[0].node_exits);
15001 token_info_push(p,
"until", &(yyloc));
15002 push_end_expect_token_locations(p, &(yylsp[-1]).beg_pos);
15004#line 15005 "parse.c"
15008#line 4774 "parse.y"
15010 token_info_push(p,
"case", &(yyloc));
15011 push_end_expect_token_locations(p, &(yylsp[0]).beg_pos);
15013#line 15014 "parse.c"
15017#line 4781 "parse.y"
15019 (yyval.node_exits) = (yyvsp[0].node_exits);
15020 token_info_push(p,
"for", &(yyloc));
15021 push_end_expect_token_locations(p, &(yylsp[-1]).beg_pos);
15023#line 15024 "parse.c"
15027#line 4789 "parse.y"
15029 token_info_push(p,
"class", &(yyloc));
15030 (yyval.ctxt) = p->ctxt;
15031 p->ctxt.in_rescue = before_rescue;
15032 push_end_expect_token_locations(p, &(yylsp[0]).beg_pos);
15034#line 15035 "parse.c"
15038#line 4798 "parse.y"
15040 token_info_push(p,
"module", &(yyloc));
15041 (yyval.ctxt) = p->ctxt;
15042 p->ctxt.in_rescue = before_rescue;
15043 push_end_expect_token_locations(p, &(yylsp[0]).beg_pos);
15045#line 15046 "parse.c"
15049#line 4807 "parse.y"
15051 token_info_push(p,
"def", &(yyloc));
15052 (yyval.node_def_temp) = NEW_DEF_TEMP(&(yyloc));
15053 p->ctxt.in_argdef = 1;
15055#line 15056 "parse.c"
15059#line 4815 "parse.y"
15061 token_info_push(p,
"do", &(yyloc));
15062 push_end_expect_token_locations(p, &(yylsp[0]).beg_pos);
15064#line 15065 "parse.c"
15068#line 4822 "parse.y"
15070 token_info_push(p,
"do", &(yyloc));
15071 push_end_expect_token_locations(p, &(yylsp[0]).beg_pos);
15073#line 15074 "parse.c"
15077#line 4829 "parse.y"
15079 token_info_warn(p,
"rescue", p->token_info, 1, &(yyloc));
15080 (yyval.ctxt) = p->ctxt;
15081 p->ctxt.in_rescue = after_rescue;
15083#line 15084 "parse.c"
15087#line 4837 "parse.y"
15089 token_info_warn(p,
"ensure", p->token_info, 1, &(yyloc));
15090 (yyval.ctxt) = p->ctxt;
15092#line 15093 "parse.c"
15096#line 4844 "parse.y"
15098 token_info_warn(p,
"when", p->token_info, 0, &(yyloc));
15100#line 15101 "parse.c"
15104#line 4850 "parse.y"
15107 int same = ptinfo_beg && strcmp(ptinfo_beg->token,
"case") != 0;
15108 token_info_warn(p,
"else", p->token_info, same, &(yyloc));
15111 e.next = ptinfo_beg->next;
15113 token_info_setup(&e, p->lex.pbeg, &(yyloc));
15114 if (!e.nonspc) *ptinfo_beg = e;
15117#line 15118 "parse.c"
15121#line 4865 "parse.y"
15124 token_info_warn(p,
"elsif", p->token_info, 1, &(yyloc));
15126#line 15127 "parse.c"
15130#line 4872 "parse.y"
15132 token_info_pop(p,
"end", &(yyloc));
15133 pop_end_expect_token_locations(p);
15135#line 15136 "parse.c"
15139#line 4877 "parse.y"
15141 compile_error(p,
"syntax error, unexpected end-of-input");
15143#line 15144 "parse.c"
15147#line 4883 "parse.y"
15149 if (p->ctxt.cant_return && !dyna_in_block(p))
15150 yyerror1(&(yylsp[0]),
"Invalid return in class/module body");
15152#line 15153 "parse.c"
15156#line 4890 "parse.y"
15160#line 15161 "parse.c"
15164#line 4896 "parse.y"
15168#line 15169 "parse.c"
15172#line 4902 "parse.y"
15176#line 15177 "parse.c"
15180#line 4908 "parse.y"
15182 if (!p->ctxt.in_defined && !p->ctxt.in_def && !compile_for_eval)
15183 yyerror1(&(yylsp[0]),
"Invalid yield");
15185#line 15186 "parse.c"
15189#line 4920 "parse.y"
15190 { (yyval.id) = keyword_do_cond; }
15191#line 15192 "parse.c"
15195#line 4927 "parse.y"
15197 (yyval.node) = new_if(p, (yyvsp[-3].node), (yyvsp[-1].node), (yyvsp[0].node), &(yyloc), &(yylsp[-4]), &(yylsp[-2]), &NULL_LOC);
15198 fixpos((yyval.node), (yyvsp[-3].node));
15201#line 15202 "parse.c"
15205#line 4936 "parse.y"
15207 (yyval.node) = (yyvsp[0].node);
15210#line 15211 "parse.c"
15214#line 4947 "parse.y"
15216 (yyval.node) = assignable(p, (yyvsp[0].
id), 0, &(yyloc));
15217 mark_lvar_used(p, (yyval.node));
15219#line 15220 "parse.c"
15223#line 4952 "parse.y"
15225 (yyval.node) = (NODE *)(yyvsp[-1].node_masgn);
15228#line 15229 "parse.c"
15232#line 3042 "parse.y"
15234 (yyval.node) = NEW_LIST((yyvsp[0].node), &(yyloc));
15237#line 15238 "parse.c"
15241#line 3047 "parse.y"
15243 (yyval.node) = list_append(p, (yyvsp[-2].node), (yyvsp[0].node));
15246#line 15247 "parse.c"
15250#line 4960 "parse.y"
15252 (yyval.node_masgn) = NEW_MASGN((yyvsp[0].node), 0, &(yyloc));
15255#line 15256 "parse.c"
15259#line 4965 "parse.y"
15261 (yyval.node_masgn) = NEW_MASGN((yyvsp[-2].node), (yyvsp[0].node), &(yyloc));
15264#line 15265 "parse.c"
15268#line 4970 "parse.y"
15270 (yyval.node_masgn) = NEW_MASGN((yyvsp[-4].node), NEW_POSTARG((yyvsp[-2].node), (yyvsp[0].node), &(yyloc)), &(yyloc));
15273#line 15274 "parse.c"
15277#line 4975 "parse.y"
15279 (yyval.node_masgn) = NEW_MASGN(0, (yyvsp[0].node), &(yyloc));
15282#line 15283 "parse.c"
15286#line 4980 "parse.y"
15288 (yyval.node_masgn) = NEW_MASGN(0, NEW_POSTARG((yyvsp[-2].node), (yyvsp[0].node), &(yyloc)), &(yyloc));
15291#line 15292 "parse.c"
15295#line 4987 "parse.y"
15298 (yyval.node) = assignable(p, (yyvsp[0].
id), 0, &(yyloc));
15299 mark_lvar_used(p, (yyval.node));
15301#line 15302 "parse.c"
15305#line 4993 "parse.y"
15307 (yyval.node) = NODE_SPECIAL_NO_NAME_REST;
15310#line 15311 "parse.c"
15314#line 5001 "parse.y"
15316 (yyval.id) = idNil;
15319#line 15320 "parse.c"
15323#line 5007 "parse.y"
15324 {p->ctxt.in_argdef = 0;}
15325#line 15326 "parse.c"
15329#line 3014 "parse.y"
15331 p->ctxt.in_argdef = 1;
15332 (yyval.node_kw_arg) = new_kw_arg(p, assignable(p, (yyvsp[-1].
id), (yyvsp[0].node), &(yyloc)), &(yyloc));
15335#line 15336 "parse.c"
15339#line 3020 "parse.y"
15341 p->ctxt.in_argdef = 1;
15342 (yyval.node_kw_arg) = new_kw_arg(p, assignable(p, (yyvsp[0].
id), NODE_SPECIAL_REQUIRED_KEYWORD, &(yyloc)), &(yyloc));
15345#line 15346 "parse.c"
15349#line 3029 "parse.y"
15351 (yyval.node_kw_arg) = (yyvsp[0].node_kw_arg);
15354#line 15355 "parse.c"
15358#line 3034 "parse.y"
15360 (yyval.node_kw_arg) = kwd_append((yyvsp[-2].node_kw_arg), (yyvsp[0].node_kw_arg));
15363#line 15364 "parse.c"
15367#line 2937 "parse.y"
15369 (yyval.node_args) = new_args_tail(p, (yyvsp[-3].node_kw_arg), (yyvsp[-1].
id), (yyvsp[0].
id), &(yylsp[-1]));
15372#line 15373 "parse.c"
15376#line 2942 "parse.y"
15378 (yyval.node_args) = new_args_tail(p, (yyvsp[-1].node_kw_arg), 0, (yyvsp[0].
id), &(yylsp[-1]));
15381#line 15382 "parse.c"
15385#line 2947 "parse.y"
15387 (yyval.node_args) = new_args_tail(p, 0, (yyvsp[-1].
id), (yyvsp[0].
id), &(yylsp[-1]));
15390#line 15391 "parse.c"
15394#line 2952 "parse.y"
15396 (yyval.node_args) = new_args_tail(p, 0, 0, (yyvsp[0].
id), &(yylsp[0]));
15399#line 15400 "parse.c"
15403#line 5013 "parse.y"
15406 (yyval.id) = NODE_SPECIAL_EXCESSIVE_COMMA;
15409#line 15410 "parse.c"
15413#line 2992 "parse.y"
15415 p->ctxt.in_argdef = 1;
15416 (yyval.node_opt_arg) = NEW_OPT_ARG(assignable(p, (yyvsp[-2].
id), (yyvsp[0].node), &(yyloc)), &(yyloc));
15419#line 15420 "parse.c"
15423#line 3001 "parse.y"
15425 (yyval.node_opt_arg) = (yyvsp[0].node_opt_arg);
15428#line 15429 "parse.c"
15432#line 3006 "parse.y"
15434 (yyval.node_opt_arg) = opt_arg_append((yyvsp[-2].node_opt_arg), (yyvsp[0].node_opt_arg));
15437#line 15438 "parse.c"
15441#line 3101 "parse.y"
15443 (yyval.node_args) = (yyvsp[0].node_args);
15446#line 15447 "parse.c"
15450#line 3106 "parse.y"
15452 (yyval.node_args) = new_args_tail(p, 0, 0, 0, &(yylsp[0]));
15455#line 15456 "parse.c"
15459#line 5021 "parse.y"
15461 (yyval.node_args) = new_args(p, (yyvsp[-5].node_args_aux), (yyvsp[-3].node_opt_arg), (yyvsp[-1].
id), 0, (yyvsp[0].node_args), &(yyloc));
15464#line 15465 "parse.c"
15468#line 5026 "parse.y"
15470 (yyval.node_args) = new_args(p, (yyvsp[-7].node_args_aux), (yyvsp[-5].node_opt_arg), (yyvsp[-3].
id), (yyvsp[-1].node_args_aux), (yyvsp[0].node_args), &(yyloc));
15473#line 15474 "parse.c"
15477#line 5031 "parse.y"
15479 (yyval.node_args) = new_args(p, (yyvsp[-3].node_args_aux), (yyvsp[-1].node_opt_arg), 0, 0, (yyvsp[0].node_args), &(yyloc));
15482#line 15483 "parse.c"
15486#line 5036 "parse.y"
15488 (yyval.node_args) = new_args(p, (yyvsp[-5].node_args_aux), (yyvsp[-3].node_opt_arg), 0, (yyvsp[-1].node_args_aux), (yyvsp[0].node_args), &(yyloc));
15491#line 15492 "parse.c"
15495#line 5041 "parse.y"
15497 (yyval.node_args) = new_args(p, (yyvsp[-3].node_args_aux), 0, (yyvsp[-1].
id), 0, (yyvsp[0].node_args), &(yyloc));
15500#line 15501 "parse.c"
15504#line 5046 "parse.y"
15506 (yyval.node_args) = new_args_tail(p, 0, 0, 0, &(yylsp[0]));
15507 (yyval.node_args) = new_args(p, (yyvsp[-1].node_args_aux), 0, (yyvsp[0].
id), 0, (yyval.node_args), &(yyloc));
15510#line 15511 "parse.c"
15514#line 5052 "parse.y"
15516 (yyval.node_args) = new_args(p, (yyvsp[-5].node_args_aux), 0, (yyvsp[-3].
id), (yyvsp[-1].node_args_aux), (yyvsp[0].node_args), &(yyloc));
15519#line 15520 "parse.c"
15523#line 5057 "parse.y"
15525 (yyval.node_args) = new_args(p, (yyvsp[-1].node_args_aux), 0, 0, 0, (yyvsp[0].node_args), &(yyloc));
15528#line 15529 "parse.c"
15532#line 5062 "parse.y"
15534 (yyval.node_args) = new_args(p, 0, (yyvsp[-3].node_opt_arg), (yyvsp[-1].
id), 0, (yyvsp[0].node_args), &(yyloc));
15537#line 15538 "parse.c"
15541#line 5067 "parse.y"
15543 (yyval.node_args) = new_args(p, 0, (yyvsp[-5].node_opt_arg), (yyvsp[-3].
id), (yyvsp[-1].node_args_aux), (yyvsp[0].node_args), &(yyloc));
15546#line 15547 "parse.c"
15550#line 5072 "parse.y"
15552 (yyval.node_args) = new_args(p, 0, (yyvsp[-1].node_opt_arg), 0, 0, (yyvsp[0].node_args), &(yyloc));
15555#line 15556 "parse.c"
15559#line 5077 "parse.y"
15561 (yyval.node_args) = new_args(p, 0, (yyvsp[-3].node_opt_arg), 0, (yyvsp[-1].node_args_aux), (yyvsp[0].node_args), &(yyloc));
15564#line 15565 "parse.c"
15568#line 5082 "parse.y"
15570 (yyval.node_args) = new_args(p, 0, 0, (yyvsp[-1].
id), 0, (yyvsp[0].node_args), &(yyloc));
15573#line 15574 "parse.c"
15577#line 5087 "parse.y"
15579 (yyval.node_args) = new_args(p, 0, 0, (yyvsp[-3].
id), (yyvsp[-1].node_args_aux), (yyvsp[0].node_args), &(yyloc));
15582#line 15583 "parse.c"
15586#line 5092 "parse.y"
15588 (yyval.node_args) = new_args(p, 0, 0, 0, 0, (yyvsp[0].node_args), &(yyloc));
15591#line 15592 "parse.c"
15595#line 5100 "parse.y"
15597 p->command_start = TRUE;
15599#line 15600 "parse.c"
15603#line 5106 "parse.y"
15605 p->max_numparam = ORDINAL_PARAM;
15606 p->ctxt.in_argdef = 0;
15607 (yyval.node_args) = (yyvsp[-2].node_args);
15610#line 15611 "parse.c"
15614#line 5115 "parse.y"
15616 (yyval.node_args) = 0;
15619#line 15620 "parse.c"
15623#line 5123 "parse.y"
15628#line 15629 "parse.c"
15632#line 5128 "parse.y"
15637#line 15638 "parse.c"
15641#line 5141 "parse.y"
15643 new_bv(p, (yyvsp[0].
id));
15646#line 15647 "parse.c"
15650#line 5148 "parse.y"
15652 (yyval.num) = p->max_numparam;
15653 p->max_numparam = 0;
15655#line 15656 "parse.c"
15659#line 5154 "parse.y"
15661 (yyval.node) = numparam_push(p);
15663#line 15664 "parse.c"
15667#line 5159 "parse.y"
15669 (yyval.id) = p->it_id;
15672#line 15673 "parse.c"
15676#line 5166 "parse.y"
15678 token_info_push(p,
"->", &(yylsp[0]));
15679 (yyval.vars) = dyna_push(p);
15681#line 15682 "parse.c"
15685#line 5172 "parse.y"
15689#line 15690 "parse.c"
15693#line 5176 "parse.y"
15695 int max_numparam = p->max_numparam;
15696 ID it_id = p->it_id;
15697 p->lex.lpar_beg = (yyvsp[-8].num);
15698 p->max_numparam = (yyvsp[-6].num);
15699 p->it_id = (yyvsp[-4].id);
15700 restore_block_exit(p, (yyvsp[-3].node_exits));
15702 (yyvsp[-2].node_args) = args_with_numbered(p, (yyvsp[-2].node_args), max_numparam, it_id);
15704 YYLTYPE loc = code_loc_gen(&(yylsp[-2]), &(yylsp[0]));
15705 (yyval.node) = NEW_LAMBDA((yyvsp[-2].node_args), (yyvsp[0].locations_lambda_body)->node, &loc, &(yylsp[-8]), &(yyvsp[0].locations_lambda_body)->opening_loc, &(yyvsp[0].locations_lambda_body)->closing_loc);
15706 nd_set_line(RNODE_LAMBDA((yyval.node))->nd_body, (yylsp[0]).end_pos.lineno);
15707 nd_set_line((yyval.node), (yylsp[-2]).end_pos.lineno);
15708 nd_set_first_loc((yyval.node), (yylsp[-8]).beg_pos);
15709 xfree((yyvsp[0].locations_lambda_body));
15712 numparam_pop(p, (yyvsp[-5].node));
15713 dyna_pop(p, (yyvsp[-7].vars));
15715#line 15716 "parse.c"
15719#line 5200 "parse.y"
15721 p->ctxt.in_argdef = 0;
15722 (yyval.node_args) = (yyvsp[-2].node_args);
15723 p->max_numparam = ORDINAL_PARAM;
15726#line 15727 "parse.c"
15730#line 5207 "parse.y"
15732 p->ctxt.in_argdef = 0;
15733 if (!args_info_empty_p(&(yyvsp[0].node_args)->nd_ainfo))
15734 p->max_numparam = ORDINAL_PARAM;
15735 (yyval.node_args) = (yyvsp[0].node_args);
15737#line 15738 "parse.c"
15741#line 5216 "parse.y"
15743 token_info_pop(p,
"}", &(yylsp[0]));
15744 (yyval.locations_lambda_body) = new_locations_lambda_body(p, (yyvsp[-1].node), &(yylsp[-1]), &(yylsp[-2]), &(yylsp[0]));
15747#line 15748 "parse.c"
15751#line 5222 "parse.y"
15753 push_end_expect_token_locations(p, &(yylsp[0]).beg_pos);
15755#line 15756 "parse.c"
15759#line 5226 "parse.y"
15761 (yyval.locations_lambda_body) = new_locations_lambda_body(p, (yyvsp[-1].node), &(yylsp[-1]), &(yylsp[-3]), &(yylsp[0]));
15764#line 15765 "parse.c"
15768#line 5233 "parse.y"
15770 (yyval.node) = (yyvsp[-1].node);
15771 set_embraced_location((yyval.node), &(yylsp[-2]), &(yylsp[0]));
15774#line 15775 "parse.c"
15778#line 5241 "parse.y"
15780 (yyval.node) = command_add_block(p, (yyvsp[-1].node), (yyvsp[0].node), &(yyloc));
15781 fixpos((yyval.node), (yyvsp[-1].node));
15784#line 15785 "parse.c"
15788#line 5247 "parse.y"
15790 bool has_args = (yyvsp[0].node) != 0;
15791 if (NODE_EMPTY_ARGS_P((yyvsp[0].node))) (yyvsp[0].node) = 0;
15792 (yyval.node) = new_qcall(p, (yyvsp[-2].
id), (yyvsp[-3].node), (yyvsp[-1].
id), (yyvsp[0].node), &(yylsp[-1]), &(yyloc));
15798#line 15799 "parse.c"
15802#line 5257 "parse.y"
15804 if (NODE_EMPTY_ARGS_P((yyvsp[-1].node))) (yyvsp[-1].node) = 0;
15805 (yyval.node) = new_command_qcall(p, (yyvsp[-3].
id), (yyvsp[-4].node), (yyvsp[-2].
id), (yyvsp[-1].node), (yyvsp[0].node), &(yylsp[-2]), &(yyloc));
15808#line 15809 "parse.c"
15812#line 5263 "parse.y"
15814 (yyval.node) = new_command_qcall(p, (yyvsp[-3].
id), (yyvsp[-4].node), (yyvsp[-2].
id), (yyvsp[-1].node), (yyvsp[0].node), &(yylsp[-2]), &(yyloc));
15817#line 15818 "parse.c"
15821#line 5268 "parse.y"
15823 (yyval.node) = new_qcall(p, (yyvsp[-1].
id), (yyvsp[-2].node), idCall, (yyvsp[0].node), &(yylsp[-1]), &(yyloc));
15824 nd_set_line((yyval.node), (yylsp[-1]).end_pos.lineno);
15827#line 15828 "parse.c"
15831#line 5276 "parse.y"
15833 (yyvsp[-1].node_fcall)->nd_args = (yyvsp[0].node);
15834 (yyval.node) = (NODE *)(yyvsp[-1].node_fcall);
15835 nd_set_last_loc((yyvsp[-1].node_fcall), (yylsp[0]).end_pos);
15838#line 15839 "parse.c"
15842#line 5283 "parse.y"
15844 bool has_args = (yyvsp[0].node) != 0;
15845 if (NODE_EMPTY_ARGS_P((yyvsp[0].node))) (yyvsp[0].node) = 0;
15846 (yyval.node) = new_qcall(p, (yyvsp[-2].
id), (yyvsp[-3].node), (yyvsp[-1].
id), (yyvsp[0].node), &(yylsp[-1]), &(yyloc));
15847 nd_set_line((yyval.node), (yylsp[-1]).end_pos.lineno);
15853#line 15854 "parse.c"
15857#line 5294 "parse.y"
15859 (yyval.node) = new_qcall(p, idCOLON2, (yyvsp[-3].node), (yyvsp[-1].
id), (yyvsp[0].node), &(yylsp[-1]), &(yyloc));
15860 nd_set_line((yyval.node), (yylsp[-1]).end_pos.lineno);
15863#line 15864 "parse.c"
15867#line 5300 "parse.y"
15869 (yyval.node) = new_qcall(p, idCOLON2, (yyvsp[-2].node), (yyvsp[0].
id), 0, &(yylsp[0]), &(yyloc));
15872#line 15873 "parse.c"
15876#line 5305 "parse.y"
15878 (yyval.node) = new_qcall(p, (yyvsp[-1].
id), (yyvsp[-2].node), idCall, (yyvsp[0].node), &(yylsp[-1]), &(yyloc));
15879 nd_set_line((yyval.node), (yylsp[-1]).end_pos.lineno);
15882#line 15883 "parse.c"
15886#line 5311 "parse.y"
15888 rb_code_location_t lparen_loc = (yylsp[0]);
15889 rb_code_location_t rparen_loc = (yylsp[0]);
15890 lparen_loc.end_pos.column = lparen_loc.beg_pos.column + 1;
15891 rparen_loc.beg_pos.column = rparen_loc.end_pos.column - 1;
15893 (yyval.node) = NEW_SUPER((yyvsp[0].node), &(yyloc), &(yylsp[-1]), &lparen_loc, &rparen_loc);
15896#line 15897 "parse.c"
15900#line 5321 "parse.y"
15902 (yyval.node) = NEW_ZSUPER(&(yyloc));
15905#line 15906 "parse.c"
15909#line 5326 "parse.y"
15911 (yyval.node) = NEW_CALL((yyvsp[-3].node), tAREF, (yyvsp[-1].node), &(yyloc));
15912 fixpos((yyval.node), (yyvsp[-3].node));
15915#line 15916 "parse.c"
15919#line 5334 "parse.y"
15921 (yyval.node) = (yyvsp[-1].node);
15922 set_embraced_location((yyval.node), &(yylsp[-2]), &(yylsp[0]));
15925#line 15926 "parse.c"
15929#line 5340 "parse.y"
15931 (yyval.node) = (yyvsp[-1].node);
15932 set_embraced_location((yyval.node), &(yylsp[-2]), &(yylsp[0]));
15935#line 15936 "parse.c"
15939#line 5347 "parse.y"
15940 {(yyval.vars) = dyna_push(p);}
15941#line 15942 "parse.c"
15945#line 5350 "parse.y"
15947 int max_numparam = p->max_numparam;
15948 ID it_id = p->it_id;
15949 p->max_numparam = (yyvsp[-5].num);
15950 p->it_id = (yyvsp[-3].id);
15951 (yyvsp[-1].node_args) = args_with_numbered(p, (yyvsp[-1].node_args), max_numparam, it_id);
15952 (yyval.node) = NEW_ITER((yyvsp[-1].node_args), (yyvsp[0].node), &(yyloc));
15954 restore_block_exit(p, (yyvsp[-2].node_exits));
15955 numparam_pop(p, (yyvsp[-4].node));
15956 dyna_pop(p, (yyvsp[-6].vars));
15958#line 15959 "parse.c"
15962#line 5364 "parse.y"
15964 (yyval.vars) = dyna_push(p);
15967#line 15968 "parse.c"
15971#line 5370 "parse.y"
15973 int max_numparam = p->max_numparam;
15974 ID it_id = p->it_id;
15975 p->max_numparam = (yyvsp[-5].num);
15976 p->it_id = (yyvsp[-3].id);
15977 (yyvsp[-1].node_args) = args_with_numbered(p, (yyvsp[-1].node_args), max_numparam, it_id);
15978 (yyval.node) = NEW_ITER((yyvsp[-1].node_args), (yyvsp[0].node), &(yyloc));
15981 restore_block_exit(p, (yyvsp[-2].node_exits));
15982 numparam_pop(p, (yyvsp[-4].node));
15983 dyna_pop(p, (yyvsp[-6].vars));
15985#line 15986 "parse.c"
15989#line 5386 "parse.y"
15991 check_literal_when(p, (yyvsp[0].node), &(yylsp[0]));
15992 (yyval.node) = NEW_LIST((yyvsp[0].node), &(yyloc));
15995#line 15996 "parse.c"
15999#line 5392 "parse.y"
16001 (yyval.node) = NEW_SPLAT((yyvsp[0].node), &(yyloc), &(yylsp[-1]));
16004#line 16005 "parse.c"
16008#line 5397 "parse.y"
16010 check_literal_when(p, (yyvsp[0].node), &(yylsp[0]));
16011 (yyval.node) = last_arg_append(p, (yyvsp[-2].node), (yyvsp[0].node), &(yyloc));
16014#line 16015 "parse.c"
16018#line 5403 "parse.y"
16020 (yyval.node) = rest_arg_append(p, (yyvsp[-3].node), (yyvsp[0].node), &(yyloc));
16023#line 16024 "parse.c"
16027#line 5412 "parse.y"
16029 (yyval.node) = NEW_WHEN((yyvsp[-3].node), (yyvsp[-1].node), (yyvsp[0].node), &(yyloc), &(yylsp[-4]), &(yylsp[-2]));
16030 fixpos((yyval.node), (yyvsp[-3].node));
16033#line 16034 "parse.c"
16037#line 5423 "parse.y"
16038 {(yyval.tbl) = p->pvtbl; p->pvtbl = st_init_numtable();}
16039#line 16040 "parse.c"
16043#line 5424 "parse.y"
16044 {(yyval.tbl) = p->pktbl; p->pktbl = 0;}
16045#line 16046 "parse.c"
16049#line 5426 "parse.y"
16051 (yyval.ctxt) = p->ctxt;
16052 SET_LEX_STATE(EXPR_BEG|EXPR_LABEL);
16053 p->command_start = FALSE;
16054 p->ctxt.in_kwarg = 1;
16055 p->ctxt.in_alt_pattern = 0;
16056 p->ctxt.capture_in_pattern = 0;
16058#line 16059 "parse.c"
16062#line 5439 "parse.y"
16064 pop_pktbl(p, (yyvsp[-2].tbl));
16065 pop_pvtbl(p, (yyvsp[-3].tbl));
16066 p->ctxt.in_kwarg = (yyvsp[-4].ctxt).in_kwarg;
16067 p->ctxt.in_alt_pattern = (yyvsp[-4].ctxt).in_alt_pattern;
16068 p->ctxt.capture_in_pattern = (yyvsp[-4].ctxt).capture_in_pattern;
16070#line 16071 "parse.c"
16074#line 5448 "parse.y"
16076 (yyval.node) = NEW_IN((yyvsp[-4].node), (yyvsp[-1].node), (yyvsp[0].node), &(yyloc), &(yylsp[-8]), &(yylsp[-3]), &NULL_LOC);
16079#line 16080 "parse.c"
16083#line 5460 "parse.y"
16085 (yyval.node) = new_if(p, (yyvsp[0].node), (yyvsp[-2].node), 0, &(yyloc), &(yylsp[-1]), &NULL_LOC, &NULL_LOC);
16086 fixpos((yyval.node), (yyvsp[0].node));
16089#line 16090 "parse.c"
16093#line 5466 "parse.y"
16095 (yyval.node) = new_unless(p, (yyvsp[0].node), (yyvsp[-2].node), 0, &(yyloc), &(yylsp[-1]), &NULL_LOC, &NULL_LOC);
16096 fixpos((yyval.node), (yyvsp[0].node));
16099#line 16100 "parse.c"
16103#line 5475 "parse.y"
16105 (yyval.node) = new_array_pattern_tail(p, 0, 1, 0, 0, &(yyloc));
16106 (yyval.node) = new_array_pattern(p, 0, (yyvsp[-1].node), (yyval.node), &(yyloc));
16109#line 16110 "parse.c"
16113#line 5481 "parse.y"
16115 (yyval.node) = new_array_pattern(p, 0, (yyvsp[-2].node), (yyvsp[0].node), &(yyloc));
16116 nd_set_first_loc((yyval.node), (yylsp[-2]).beg_pos);
16119#line 16120 "parse.c"
16123#line 5487 "parse.y"
16125 (yyval.node) = new_find_pattern(p, 0, (yyvsp[0].node), &(yyloc));
16128#line 16129 "parse.c"
16132#line 5492 "parse.y"
16134 (yyval.node) = new_array_pattern(p, 0, 0, (yyvsp[0].node), &(yyloc));
16137#line 16138 "parse.c"
16141#line 5497 "parse.y"
16143 (yyval.node) = new_hash_pattern(p, 0, (yyvsp[0].node), &(yyloc));
16146#line 16147 "parse.c"
16150#line 5507 "parse.y"
16152 NODE *n = NEW_LIST((yyvsp[-2].node), &(yyloc));
16153 n = list_append(p, n, (yyvsp[0].node));
16154 (yyval.node) = new_hash(p, n, &(yyloc));
16157#line 16158 "parse.c"
16161#line 5517 "parse.y"
16163 p->ctxt.in_alt_pattern = 1;
16165#line 16166 "parse.c"
16169#line 5521 "parse.y"
16171 if (p->ctxt.capture_in_pattern) {
16172 yyerror1(&(yylsp[-2]),
"alternative pattern after variable capture");
16174 p->ctxt.in_alt_pattern = 0;
16175 (yyval.node) = NEW_OR((yyvsp[-3].node), (yyvsp[0].node), &(yyloc), &(yylsp[-2]));
16178#line 16179 "parse.c"
16182#line 5533 "parse.y"
16184 (yyval.tbl) = (yyvsp[0].tbl);
16187#line 16188 "parse.c"
16191#line 5540 "parse.y"
16193 (yyval.tbl) = (yyvsp[0].tbl);
16196#line 16197 "parse.c"
16200#line 5549 "parse.y"
16202 pop_pktbl(p, (yyvsp[-2].tbl));
16203 (yyval.node) = new_array_pattern(p, (yyvsp[-3].node), 0, (yyvsp[-1].node), &(yyloc));
16204 nd_set_first_loc((yyval.node), (yylsp[-3]).beg_pos);
16207#line 16208 "parse.c"
16211#line 5556 "parse.y"
16213 pop_pktbl(p, (yyvsp[-2].tbl));
16214 (yyval.node) = new_find_pattern(p, (yyvsp[-3].node), (yyvsp[-1].node), &(yyloc));
16215 nd_set_first_loc((yyval.node), (yylsp[-3]).beg_pos);
16218#line 16219 "parse.c"
16222#line 5563 "parse.y"
16224 pop_pktbl(p, (yyvsp[-2].tbl));
16225 (yyval.node) = new_hash_pattern(p, (yyvsp[-3].node), (yyvsp[-1].node), &(yyloc));
16226 nd_set_first_loc((yyval.node), (yylsp[-3]).beg_pos);
16229#line 16230 "parse.c"
16233#line 5570 "parse.y"
16235 (yyval.node) = new_array_pattern_tail(p, 0, 0, 0, 0, &(yyloc));
16236 (yyval.node) = new_array_pattern(p, (yyvsp[-2].node), 0, (yyval.node), &(yyloc));
16239#line 16240 "parse.c"
16243#line 5576 "parse.y"
16245 pop_pktbl(p, (yyvsp[-2].tbl));
16246 (yyval.node) = new_array_pattern(p, (yyvsp[-3].node), 0, (yyvsp[-1].node), &(yyloc));
16247 nd_set_first_loc((yyval.node), (yylsp[-3]).beg_pos);
16250#line 16251 "parse.c"
16254#line 5583 "parse.y"
16256 pop_pktbl(p, (yyvsp[-2].tbl));
16257 (yyval.node) = new_find_pattern(p, (yyvsp[-3].node), (yyvsp[-1].node), &(yyloc));
16258 nd_set_first_loc((yyval.node), (yylsp[-3]).beg_pos);
16261#line 16262 "parse.c"
16265#line 5590 "parse.y"
16267 pop_pktbl(p, (yyvsp[-2].tbl));
16268 (yyval.node) = new_hash_pattern(p, (yyvsp[-3].node), (yyvsp[-1].node), &(yyloc));
16269 nd_set_first_loc((yyval.node), (yylsp[-3]).beg_pos);
16272#line 16273 "parse.c"
16276#line 5597 "parse.y"
16278 (yyval.node) = new_array_pattern_tail(p, 0, 0, 0, 0, &(yyloc));
16279 (yyval.node) = new_array_pattern(p, (yyvsp[-2].node), 0, (yyval.node), &(yyloc));
16282#line 16283 "parse.c"
16286#line 5603 "parse.y"
16288 (yyval.node) = new_array_pattern(p, 0, 0, (yyvsp[-1].node), &(yyloc));
16291#line 16292 "parse.c"
16295#line 5608 "parse.y"
16297 (yyval.node) = new_find_pattern(p, 0, (yyvsp[-1].node), &(yyloc));
16300#line 16301 "parse.c"
16304#line 5613 "parse.y"
16306 (yyval.node) = new_array_pattern_tail(p, 0, 0, 0, 0, &(yyloc));
16307 (yyval.node) = new_array_pattern(p, 0, 0, (yyval.node), &(yyloc));
16310#line 16311 "parse.c"
16314#line 5619 "parse.y"
16316 p->ctxt.in_kwarg = 0;
16318#line 16319 "parse.c"
16322#line 5623 "parse.y"
16324 pop_pktbl(p, (yyvsp[-4].tbl));
16325 p->ctxt.in_kwarg = (yyvsp[-3].ctxt).in_kwarg;
16326 (yyval.node) = new_hash_pattern(p, 0, (yyvsp[-1].node), &(yyloc));
16329#line 16330 "parse.c"
16333#line 5630 "parse.y"
16335 (yyval.node) = new_hash_pattern_tail(p, 0, 0, &(yyloc));
16336 (yyval.node) = new_hash_pattern(p, 0, (yyval.node), &(yyloc));
16339#line 16340 "parse.c"
16343#line 5636 "parse.y"
16345 pop_pktbl(p, (yyvsp[-2].tbl));
16346 (yyval.node) = (yyvsp[-1].node);
16349#line 16350 "parse.c"
16353#line 5644 "parse.y"
16355 NODE *pre_args = NEW_LIST((yyvsp[0].node), &(yyloc));
16356 (yyval.node) = new_array_pattern_tail(p, pre_args, 0, 0, 0, &(yyloc));
16359#line 16360 "parse.c"
16363#line 5650 "parse.y"
16365 (yyval.node) = new_array_pattern_tail(p, (yyvsp[0].node), 1, 0, 0, &(yyloc));
16368#line 16369 "parse.c"
16372#line 5655 "parse.y"
16374 (yyval.node) = new_array_pattern_tail(p, list_concat((yyvsp[-1].node), (yyvsp[0].node)), 0, 0, 0, &(yyloc));
16377#line 16378 "parse.c"
16381#line 5660 "parse.y"
16383 (yyval.node) = new_array_pattern_tail(p, (yyvsp[-1].node), 1, (yyvsp[0].node), 0, &(yyloc));
16386#line 16387 "parse.c"
16390#line 5665 "parse.y"
16392 (yyval.node) = new_array_pattern_tail(p, (yyvsp[-3].node), 1, (yyvsp[-2].node), (yyvsp[0].node), &(yyloc));
16395#line 16396 "parse.c"
16399#line 5674 "parse.y"
16401 (yyval.node) = list_concat((yyvsp[-2].node), (yyvsp[-1].node));
16404#line 16405 "parse.c"
16408#line 5681 "parse.y"
16410 (yyval.node) = new_array_pattern_tail(p, 0, 1, (yyvsp[0].node), 0, &(yyloc));
16413#line 16414 "parse.c"
16417#line 5686 "parse.y"
16419 (yyval.node) = new_array_pattern_tail(p, 0, 1, (yyvsp[-2].node), (yyvsp[0].node), &(yyloc));
16422#line 16423 "parse.c"
16426#line 5693 "parse.y"
16428 (yyval.node) = new_find_pattern_tail(p, (yyvsp[-4].node), (yyvsp[-2].node), (yyvsp[0].node), &(yyloc));
16431#line 16432 "parse.c"
16435#line 5701 "parse.y"
16437 error_duplicate_pattern_variable(p, (yyvsp[0].
id), &(yylsp[0]));
16439 (yyval.node) = assignable(p, (yyvsp[0].
id), 0, &(yyloc));
16441#line 16442 "parse.c"
16445#line 5707 "parse.y"
16450#line 16451 "parse.c"
16454#line 5715 "parse.y"
16456 (yyval.node) = list_concat((yyvsp[-2].node), (yyvsp[0].node));
16459#line 16460 "parse.c"
16463#line 5722 "parse.y"
16465 (yyval.node) = NEW_LIST((yyvsp[0].node), &(yyloc));
16468#line 16469 "parse.c"
16472#line 5729 "parse.y"
16474 (yyval.node) = new_hash_pattern_tail(p, new_unique_key_hash(p, (yyvsp[-2].node), &(yyloc)), (yyvsp[0].
id), &(yyloc));
16477#line 16478 "parse.c"
16481#line 5734 "parse.y"
16483 (yyval.node) = new_hash_pattern_tail(p, new_unique_key_hash(p, (yyvsp[0].node), &(yyloc)), 0, &(yyloc));
16486#line 16487 "parse.c"
16490#line 5739 "parse.y"
16492 (yyval.node) = new_hash_pattern_tail(p, new_unique_key_hash(p, (yyvsp[-1].node), &(yyloc)), 0, &(yyloc));
16495#line 16496 "parse.c"
16499#line 5744 "parse.y"
16501 (yyval.node) = new_hash_pattern_tail(p, new_hash(p, 0, &(yyloc)), (yyvsp[0].
id), &(yyloc));
16504#line 16505 "parse.c"
16508#line 5753 "parse.y"
16510 (yyval.node) = list_concat((yyvsp[-2].node), (yyvsp[0].node));
16513#line 16514 "parse.c"
16517#line 5760 "parse.y"
16519 error_duplicate_pattern_key(p, (yyvsp[-1].
id), &(yylsp[-1]));
16520 (yyval.node) = list_append(p, NEW_LIST(NEW_SYM(rb_id2str((yyvsp[-1].
id)), &(yylsp[-1])), &(yyloc)), (yyvsp[0].node));
16523#line 16524 "parse.c"
16527#line 5766 "parse.y"
16529 error_duplicate_pattern_key(p, (yyvsp[0].
id), &(yylsp[0]));
16530 if ((yyvsp[0].
id) && !is_local_id((yyvsp[0].
id))) {
16531 yyerror1(&(yylsp[0]),
"key must be valid as local variables");
16533 error_duplicate_pattern_variable(p, (yyvsp[0].
id), &(yylsp[0]));
16534 (yyval.node) = list_append(p, NEW_LIST(NEW_SYM(rb_id2str((yyvsp[0].
id)), &(yyloc)), &(yyloc)), assignable(p, (yyvsp[0].
id), 0, &(yyloc)));
16537#line 16538 "parse.c"
16541#line 5779 "parse.y"
16543 YYLTYPE loc = code_loc_gen(&(yylsp[-2]), &(yylsp[0]));
16544 if (!(yyvsp[-1].node) || nd_type_p((yyvsp[-1].node), NODE_STR)) {
16545 NODE *node = dsym_node(p, (yyvsp[-1].node), &loc);
16546 (yyval.id) =
rb_sym2id(rb_node_sym_string_val(node));
16549 yyerror1(&loc,
"symbol literal with interpolation is not allowed");
16550 (yyval.id) = rb_intern_str(STR_NEW0());
16554#line 16555 "parse.c"
16558#line 5794 "parse.y"
16560 (yyval.id) = (yyvsp[0].
id);
16563#line 16564 "parse.c"
16567#line 5799 "parse.y"
16572#line 16573 "parse.c"
16576#line 5806 "parse.y"
16580#line 16581 "parse.c"
16584#line 5813 "parse.y"
16586 (yyval.id) = idNil;
16589#line 16590 "parse.c"
16593#line 3114 "parse.y"
16595 value_expr(p, (yyvsp[-2].node));
16596 value_expr(p, (yyvsp[0].node));
16597 (yyval.node) = NEW_DOT2((yyvsp[-2].node), (yyvsp[0].node), &(yyloc), &(yylsp[-1]));
16600#line 16601 "parse.c"
16604#line 3121 "parse.y"
16606 value_expr(p, (yyvsp[-2].node));
16607 value_expr(p, (yyvsp[0].node));
16608 (yyval.node) = NEW_DOT3((yyvsp[-2].node), (yyvsp[0].node), &(yyloc), &(yylsp[-1]));
16611#line 16612 "parse.c"
16615#line 3128 "parse.y"
16617 value_expr(p, (yyvsp[-1].node));
16618 (yyval.node) = NEW_DOT2((yyvsp[-1].node), new_nil_at(p, &(yylsp[0]).end_pos), &(yyloc), &(yylsp[0]));
16621#line 16622 "parse.c"
16625#line 3134 "parse.y"
16627 value_expr(p, (yyvsp[-1].node));
16628 (yyval.node) = NEW_DOT3((yyvsp[-1].node), new_nil_at(p, &(yylsp[0]).end_pos), &(yyloc), &(yylsp[0]));
16631#line 16632 "parse.c"
16635#line 3140 "parse.y"
16637 value_expr(p, (yyvsp[0].node));
16638 (yyval.node) = NEW_DOT2(new_nil_at(p, &(yylsp[-1]).beg_pos), (yyvsp[0].node), &(yyloc), &(yylsp[-1]));
16641#line 16642 "parse.c"
16645#line 3146 "parse.y"
16647 value_expr(p, (yyvsp[0].node));
16648 (yyval.node) = NEW_DOT3(new_nil_at(p, &(yylsp[-1]).beg_pos), (yyvsp[0].node), &(yyloc), &(yylsp[-1]));
16651#line 16652 "parse.c"
16655#line 5828 "parse.y"
16657 if (!((yyval.node) = gettable(p, (yyvsp[0].
id), &(yyloc)))) (yyval.node) = NEW_ERROR(&(yyloc));
16660#line 16661 "parse.c"
16664#line 5836 "parse.y"
16666 error_duplicate_pattern_variable(p, (yyvsp[0].
id), &(yylsp[0]));
16668 (yyval.node) = assignable(p, (yyvsp[0].
id), 0, &(yyloc));
16670#line 16671 "parse.c"
16674#line 5844 "parse.y"
16676 NODE *n = gettable(p, (yyvsp[0].
id), &(yyloc));
16678 n = NEW_ERROR(&(yyloc));
16680 else if (!(nd_type_p(n, NODE_LVAR) || nd_type_p(n, NODE_DVAR))) {
16681 compile_error(p,
"%"PRIsVALUE
": no such local variable", rb_id2str((yyvsp[0].
id)));
16686#line 16687 "parse.c"
16690#line 5856 "parse.y"
16692 if (!((yyval.node) = gettable(p, (yyvsp[0].
id), &(yyloc)))) (yyval.node) = NEW_ERROR(&(yyloc));
16695#line 16696 "parse.c"
16699#line 5863 "parse.y"
16701 (yyval.node) = NEW_BLOCK((yyvsp[-1].node), &(yyloc));
16704#line 16705 "parse.c"
16708#line 5870 "parse.y"
16710 (yyval.node) = NEW_COLON3((yyvsp[0].
id), &(yyloc), &(yylsp[-1]), &(yylsp[0]));
16713#line 16714 "parse.c"
16717#line 5875 "parse.y"
16719 (yyval.node) = NEW_COLON2((yyvsp[-2].node), (yyvsp[0].
id), &(yyloc), &(yylsp[-1]), &(yylsp[0]));
16722#line 16723 "parse.c"
16726#line 5880 "parse.y"
16728 (yyval.node) = gettable(p, (yyvsp[0].
id), &(yyloc));
16731#line 16732 "parse.c"
16735#line 5889 "parse.y"
16737 NODE *err = (yyvsp[-3].node);
16738 if ((yyvsp[-3].node)) {
16739 err = NEW_ERRINFO(&(yylsp[-3]));
16740 err = node_assign(p, (yyvsp[-3].node), err, NO_LEX_CTXT, &(yylsp[-3]));
16742 (yyval.node) = NEW_RESBODY((yyvsp[-4].node), (yyvsp[-3].node), (yyvsp[-1].node), (yyvsp[0].node), &(yyloc));
16743 if ((yyvsp[-4].node)) {
16744 fixpos((yyval.node), (yyvsp[-4].node));
16746 else if ((yyvsp[-3].node)) {
16747 fixpos((yyval.node), (yyvsp[-3].node));
16750 fixpos((yyval.node), (yyvsp[-1].node));
16754#line 16755 "parse.c"
16758#line 5911 "parse.y"
16760 (yyval.node) = NEW_LIST((yyvsp[0].node), &(yyloc));
16763#line 16764 "parse.c"
16767#line 5916 "parse.y"
16769 if (!((yyval.node) = splat_array((yyvsp[0].node)))) (yyval.node) = (yyvsp[0].node);
16771#line 16772 "parse.c"
16775#line 5923 "parse.y"
16777 (yyval.node) = (yyvsp[0].node);
16780#line 16781 "parse.c"
16784#line 5931 "parse.y"
16786 p->ctxt.in_rescue = (yyvsp[-2].ctxt).in_rescue;
16787 (yyval.node) = (yyvsp[-1].node);
16788 void_expr(p, void_stmts(p, (yyval.node)));
16791#line 16792 "parse.c"
16795#line 5945 "parse.y"
16797 if (!(yyvsp[0].node)) {
16798 (yyval.node) = NEW_STR(STRING_NEW0(), &(yyloc));
16801 (yyval.node) = evstr2dstr(p, (yyvsp[0].node));
16805#line 16806 "parse.c"
16809#line 5959 "parse.y"
16811 (yyval.node) = literal_concat(p, (yyvsp[-1].node), (yyvsp[0].node), &(yyloc));
16814#line 16815 "parse.c"
16818#line 5966 "parse.y"
16820 (yyval.node) = heredoc_dedent(p, (yyvsp[-1].node));
16821 if ((yyval.node)) nd_set_loc((yyval.node), &(yyloc));
16823 if (p->heredoc_indent > 0) {
16825 p->heredoc_indent = 0;
16829#line 16830 "parse.c"
16833#line 5979 "parse.y"
16835 (yyval.node) = new_xstring(p, heredoc_dedent(p, (yyvsp[-1].node)), &(yyloc));
16837 if (p->heredoc_indent > 0) {
16839 p->heredoc_indent = 0;
16843#line 16844 "parse.c"
16847#line 5991 "parse.y"
16849 (yyval.node) = new_regexp(p, (yyvsp[-1].node), (yyvsp[0].num), &(yyloc), &(yylsp[-2]), &(yylsp[-1]), &(yylsp[0]));
16852#line 16853 "parse.c"
16856#line 3163 "parse.y"
16858 (yyval.node) = make_list((yyvsp[-1].node), &(yyloc));
16861#line 16862 "parse.c"
16865#line 6001 "parse.y"
16870#line 16871 "parse.c"
16874#line 6006 "parse.y"
16876 (yyval.node) = list_append(p, (yyvsp[-2].node), evstr2dstr(p, (yyvsp[-1].node)));
16879#line 16880 "parse.c"
16883#line 6015 "parse.y"
16885 (yyval.node) = literal_concat(p, (yyvsp[-1].node), (yyvsp[0].node), &(yyloc));
16888#line 16889 "parse.c"
16892#line 3163 "parse.y"
16894 (yyval.node) = make_list((yyvsp[-1].node), &(yyloc));
16897#line 16898 "parse.c"
16901#line 6025 "parse.y"
16906#line 16907 "parse.c"
16910#line 6030 "parse.y"
16912 (yyval.node) = symbol_append(p, (yyvsp[-2].node), evstr2dstr(p, (yyvsp[-1].node)));
16915#line 16916 "parse.c"
16919#line 3163 "parse.y"
16921 (yyval.node) = make_list((yyvsp[-1].node), &(yyloc));
16924#line 16925 "parse.c"
16928#line 3163 "parse.y"
16930 (yyval.node) = make_list((yyvsp[-1].node), &(yyloc));
16933#line 16934 "parse.c"
16937#line 6043 "parse.y"
16942#line 16943 "parse.c"
16946#line 6048 "parse.y"
16948 (yyval.node) = list_append(p, (yyvsp[-2].node), (yyvsp[-1].node));
16951#line 16952 "parse.c"
16955#line 6055 "parse.y"
16960#line 16961 "parse.c"
16964#line 6060 "parse.y"
16966 (yyval.node) = symbol_append(p, (yyvsp[-2].node), (yyvsp[-1].node));
16969#line 16970 "parse.c"
16973#line 6067 "parse.y"
16978#line 16979 "parse.c"
16982#line 6072 "parse.y"
16984 (yyval.node) = literal_concat(p, (yyvsp[-1].node), (yyvsp[0].node), &(yyloc));
16987#line 16988 "parse.c"
16991#line 6079 "parse.y"
16996#line 16997 "parse.c"
17000#line 6084 "parse.y"
17002 (yyval.node) = literal_concat(p, (yyvsp[-1].node), (yyvsp[0].node), &(yyloc));
17005#line 17006 "parse.c"
17009#line 6091 "parse.y"
17014#line 17015 "parse.c"
17018#line 6096 "parse.y"
17020 NODE *head = (yyvsp[-1].node), *tail = (yyvsp[0].node);
17022 (yyval.node) = tail;
17025 (yyval.node) = head;
17028 switch (nd_type(head)) {
17030 head = str2dstr(p, head);
17035 head = list_append(p, NEW_DSTR(0, &(yyloc)), head);
17038 (yyval.node) = list_append(p, head, tail);
17042#line 17043 "parse.c"
17046#line 6124 "parse.y"
17049 (yyval.strterm) = p->lex.strterm;
17050 p->lex.strterm = 0;
17051 SET_LEX_STATE(EXPR_BEG);
17053#line 17054 "parse.c"
17057#line 6131 "parse.y"
17059 p->lex.strterm = (yyvsp[-1].strterm);
17060 (yyval.node) = NEW_EVSTR((yyvsp[0].node), &(yyloc), &(yylsp[-2]), &NULL_LOC);
17061 nd_set_line((yyval.node), (yylsp[0]).end_pos.lineno);
17064#line 17065 "parse.c"
17068#line 6138 "parse.y"
17073 (yyval.strterm) = p->lex.strterm;
17074 p->lex.strterm = 0;
17075 SET_LEX_STATE(EXPR_BEG);
17077#line 17078 "parse.c"
17081#line 6146 "parse.y"
17083 (yyval.num) = p->lex.brace_nest;
17084 p->lex.brace_nest = 0;
17086#line 17087 "parse.c"
17090#line 6150 "parse.y"
17092 (yyval.num) = p->lex.lpar_beg;
17093 p->lex.lpar_beg = -1;
17095#line 17096 "parse.c"
17099#line 6154 "parse.y"
17101 (yyval.num) = p->heredoc_indent;
17102 p->heredoc_indent = 0;
17104#line 17105 "parse.c"
17108#line 6159 "parse.y"
17112 p->lex.strterm = (yyvsp[-5].strterm);
17113 SET_LEX_STATE((yyvsp[-6].state));
17114 p->lex.brace_nest = (yyvsp[-4].num);
17115 p->lex.lpar_beg = (yyvsp[-3].num);
17116 p->heredoc_indent = (yyvsp[-2].num);
17117 p->heredoc_line_indent = -1;
17118 if ((yyvsp[-1].node)) nd_unset_fl_newline((yyvsp[-1].node));
17119 (yyval.node) = new_evstr(p, (yyvsp[-1].node), &(yyloc), &(yylsp[-6]), &(yylsp[0]));
17122#line 17123 "parse.c"
17126#line 6179 "parse.y"
17128 if (!((yyval.node) = gettable(p, (yyvsp[0].
id), &(yyloc)))) (yyval.node) = NEW_ERROR(&(yyloc));
17131#line 17132 "parse.c"
17135#line 6191 "parse.y"
17137 SET_LEX_STATE(EXPR_END);
17138 VALUE str = rb_id2str((yyvsp[0].
id));
17145 if (!str) str = STR_NEW0();
17146 (yyval.node) = NEW_SYM(str, &(yyloc));
17149#line 17150 "parse.c"
17153#line 6211 "parse.y"
17155 SET_LEX_STATE(EXPR_END);
17156 (yyval.node) = dsym_node(p, (yyvsp[-1].node), &(yyloc));
17159#line 17160 "parse.c"
17163#line 6220 "parse.y"
17165 (yyval.node) = (yyvsp[0].node);
17166 negate_lit(p, (yyval.node), &(yyloc));
17169#line 17170 "parse.c"
17173#line 6242 "parse.y"
17174 {(yyval.id) = KWD2EID(nil, (yyvsp[0].
id));}
17175#line 17176 "parse.c"
17179#line 6243 "parse.y"
17180 {(yyval.id) = KWD2EID(self, (yyvsp[0].
id));}
17181#line 17182 "parse.c"
17185#line 6244 "parse.y"
17186 {(yyval.id) = KWD2EID(
true, (yyvsp[0].
id));}
17187#line 17188 "parse.c"
17191#line 6245 "parse.y"
17192 {(yyval.id) = KWD2EID(
false, (yyvsp[0].
id));}
17193#line 17194 "parse.c"
17197#line 6246 "parse.y"
17198 {(yyval.id) = KWD2EID(_FILE__, (yyvsp[0].
id));}
17199#line 17200 "parse.c"
17203#line 6247 "parse.y"
17204 {(yyval.id) = KWD2EID(_LINE__, (yyvsp[0].
id));}
17205#line 17206 "parse.c"
17209#line 6248 "parse.y"
17210 {(yyval.id) = KWD2EID(_ENCODING__, (yyvsp[0].
id));}
17211#line 17212 "parse.c"
17215#line 6252 "parse.y"
17217 if (!((yyval.node) = gettable(p, (yyvsp[0].
id), &(yyloc)))) (yyval.node) = NEW_ERROR(&(yyloc));
17218 if (ifdef_ripper(id_is_var(p, (yyvsp[0].
id)),
false)) {
17225#line 17226 "parse.c"
17229#line 6262 "parse.y"
17231 if (!((yyval.node) = gettable(p, (yyvsp[0].
id), &(yyloc)))) (yyval.node) = NEW_ERROR(&(yyloc));
17234#line 17235 "parse.c"
17238#line 6269 "parse.y"
17241 (yyval.node) = assignable(p, (yyvsp[0].
id), 0, &(yyloc));
17243#line 17244 "parse.c"
17247#line 6269 "parse.y"
17250 (yyval.node) = assignable(p, (yyvsp[0].
id), 0, &(yyloc));
17252#line 17253 "parse.c"
17256#line 6280 "parse.y"
17258 SET_LEX_STATE(EXPR_BEG);
17259 p->command_start = TRUE;
17261#line 17262 "parse.c"
17265#line 6285 "parse.y"
17267 (yyval.node) = (yyvsp[-1].node);
17270#line 17271 "parse.c"
17274#line 6294 "parse.y"
17276 p->ctxt.in_argdef = 0;
17277 (yyval.node_args) = new_args_tail(p, 0, 0, 0, &(yylsp[-1]));
17278 (yyval.node_args) = new_args(p, 0, 0, 0, 0, (yyval.node_args), &(yylsp[-1]));
17281#line 17282 "parse.c"
17285#line 6303 "parse.y"
17287 (yyval.node_args) = (yyvsp[-1].node_args);
17289 SET_LEX_STATE(EXPR_BEG);
17290 p->command_start = TRUE;
17291 p->ctxt.in_argdef = 0;
17293#line 17294 "parse.c"
17297#line 6313 "parse.y"
17299 (yyval.ctxt) = p->ctxt;
17300 p->ctxt.in_kwarg = 1;
17301 p->ctxt.in_argdef = 1;
17302 SET_LEX_STATE(p->lex.state|EXPR_LABEL);
17304#line 17305 "parse.c"
17308#line 6320 "parse.y"
17310 p->ctxt.in_kwarg = (yyvsp[-2].ctxt).in_kwarg;
17311 p->ctxt.in_argdef = 0;
17312 (yyval.node_args) = (yyvsp[-1].node_args);
17313 SET_LEX_STATE(EXPR_BEG);
17314 p->command_start = TRUE;
17317#line 17318 "parse.c"
17321#line 3014 "parse.y"
17323 p->ctxt.in_argdef = 1;
17324 (yyval.node_kw_arg) = new_kw_arg(p, assignable(p, (yyvsp[-1].
id), (yyvsp[0].node), &(yyloc)), &(yyloc));
17327#line 17328 "parse.c"
17331#line 3020 "parse.y"
17333 p->ctxt.in_argdef = 1;
17334 (yyval.node_kw_arg) = new_kw_arg(p, assignable(p, (yyvsp[0].
id), NODE_SPECIAL_REQUIRED_KEYWORD, &(yyloc)), &(yyloc));
17337#line 17338 "parse.c"
17341#line 3029 "parse.y"
17343 (yyval.node_kw_arg) = (yyvsp[0].node_kw_arg);
17346#line 17347 "parse.c"
17350#line 3034 "parse.y"
17352 (yyval.node_kw_arg) = kwd_append((yyvsp[-2].node_kw_arg), (yyvsp[0].node_kw_arg));
17355#line 17356 "parse.c"
17359#line 2937 "parse.y"
17361 (yyval.node_args) = new_args_tail(p, (yyvsp[-3].node_kw_arg), (yyvsp[-1].
id), (yyvsp[0].
id), &(yylsp[-1]));
17364#line 17365 "parse.c"
17368#line 2942 "parse.y"
17370 (yyval.node_args) = new_args_tail(p, (yyvsp[-1].node_kw_arg), 0, (yyvsp[0].
id), &(yylsp[-1]));
17373#line 17374 "parse.c"
17377#line 2947 "parse.y"
17379 (yyval.node_args) = new_args_tail(p, 0, (yyvsp[-1].
id), (yyvsp[0].
id), &(yylsp[-1]));
17382#line 17383 "parse.c"
17386#line 2952 "parse.y"
17388 (yyval.node_args) = new_args_tail(p, 0, 0, (yyvsp[0].
id), &(yylsp[0]));
17391#line 17392 "parse.c"
17395#line 6332 "parse.y"
17397 ID fwd = (yyvsp[0].id);
17398 if (lambda_beginning_p() ||
17399 (p->lex.lpar_beg >= 0 && p->lex.lpar_beg+1 == p->lex.paren_nest)) {
17400 yyerror0(
"unexpected ... in lambda argument");
17404 add_forwarding_args(p);
17406 (yyval.node_args) = new_args_tail(p, 0, fwd, arg_FWD_BLOCK, &(yylsp[0]));
17407 (yyval.node_args)->nd_ainfo.forwarding = 1;
17410#line 17411 "parse.c"
17414#line 2992 "parse.y"
17416 p->ctxt.in_argdef = 1;
17417 (yyval.node_opt_arg) = NEW_OPT_ARG(assignable(p, (yyvsp[-2].
id), (yyvsp[0].node), &(yyloc)), &(yyloc));
17420#line 17421 "parse.c"
17424#line 3001 "parse.y"
17426 (yyval.node_opt_arg) = (yyvsp[0].node_opt_arg);
17429#line 17430 "parse.c"
17433#line 3006 "parse.y"
17435 (yyval.node_opt_arg) = opt_arg_append((yyvsp[-2].node_opt_arg), (yyvsp[0].node_opt_arg));
17438#line 17439 "parse.c"
17442#line 3101 "parse.y"
17444 (yyval.node_args) = (yyvsp[0].node_args);
17447#line 17448 "parse.c"
17451#line 3106 "parse.y"
17453 (yyval.node_args) = new_args_tail(p, 0, 0, 0, &(yylsp[0]));
17456#line 17457 "parse.c"
17460#line 6349 "parse.y"
17462 (yyval.node_args) = new_args(p, (yyvsp[-5].node_args_aux), (yyvsp[-3].node_opt_arg), (yyvsp[-1].
id), 0, (yyvsp[0].node_args), &(yyloc));
17465#line 17466 "parse.c"
17469#line 6354 "parse.y"
17471 (yyval.node_args) = new_args(p, (yyvsp[-7].node_args_aux), (yyvsp[-5].node_opt_arg), (yyvsp[-3].
id), (yyvsp[-1].node_args_aux), (yyvsp[0].node_args), &(yyloc));
17474#line 17475 "parse.c"
17478#line 6359 "parse.y"
17480 (yyval.node_args) = new_args(p, (yyvsp[-3].node_args_aux), (yyvsp[-1].node_opt_arg), 0, 0, (yyvsp[0].node_args), &(yyloc));
17483#line 17484 "parse.c"
17487#line 6364 "parse.y"
17489 (yyval.node_args) = new_args(p, (yyvsp[-5].node_args_aux), (yyvsp[-3].node_opt_arg), 0, (yyvsp[-1].node_args_aux), (yyvsp[0].node_args), &(yyloc));
17492#line 17493 "parse.c"
17496#line 6369 "parse.y"
17498 (yyval.node_args) = new_args(p, (yyvsp[-3].node_args_aux), 0, (yyvsp[-1].
id), 0, (yyvsp[0].node_args), &(yyloc));
17501#line 17502 "parse.c"
17505#line 6374 "parse.y"
17507 (yyval.node_args) = new_args(p, (yyvsp[-5].node_args_aux), 0, (yyvsp[-3].
id), (yyvsp[-1].node_args_aux), (yyvsp[0].node_args), &(yyloc));
17510#line 17511 "parse.c"
17514#line 6379 "parse.y"
17516 (yyval.node_args) = new_args(p, (yyvsp[-1].node_args_aux), 0, 0, 0, (yyvsp[0].node_args), &(yyloc));
17519#line 17520 "parse.c"
17523#line 6384 "parse.y"
17525 (yyval.node_args) = new_args(p, 0, (yyvsp[-3].node_opt_arg), (yyvsp[-1].
id), 0, (yyvsp[0].node_args), &(yyloc));
17528#line 17529 "parse.c"
17532#line 6389 "parse.y"
17534 (yyval.node_args) = new_args(p, 0, (yyvsp[-5].node_opt_arg), (yyvsp[-3].
id), (yyvsp[-1].node_args_aux), (yyvsp[0].node_args), &(yyloc));
17537#line 17538 "parse.c"
17541#line 6394 "parse.y"
17543 (yyval.node_args) = new_args(p, 0, (yyvsp[-1].node_opt_arg), 0, 0, (yyvsp[0].node_args), &(yyloc));
17546#line 17547 "parse.c"
17550#line 6399 "parse.y"
17552 (yyval.node_args) = new_args(p, 0, (yyvsp[-3].node_opt_arg), 0, (yyvsp[-1].node_args_aux), (yyvsp[0].node_args), &(yyloc));
17555#line 17556 "parse.c"
17559#line 6404 "parse.y"
17561 (yyval.node_args) = new_args(p, 0, 0, (yyvsp[-1].
id), 0, (yyvsp[0].node_args), &(yyloc));
17564#line 17565 "parse.c"
17568#line 6409 "parse.y"
17570 (yyval.node_args) = new_args(p, 0, 0, (yyvsp[-3].
id), (yyvsp[-1].node_args_aux), (yyvsp[0].node_args), &(yyloc));
17573#line 17574 "parse.c"
17577#line 6414 "parse.y"
17579 (yyval.node_args) = new_args(p, 0, 0, 0, 0, (yyvsp[0].node_args), &(yyloc));
17582#line 17583 "parse.c"
17586#line 6419 "parse.y"
17588 (yyval.node_args) = new_args_tail(p, 0, 0, 0, &(yylsp[0]));
17589 (yyval.node_args) = new_args(p, 0, 0, 0, 0, (yyval.node_args), &(yylsp[0]));
17592#line 17593 "parse.c"
17596#line 6427 "parse.y"
17598 (yyval.id) = idFWD_KWREST;
17601#line 17602 "parse.c"
17605#line 6434 "parse.y"
17607 static const char mesg[] =
"formal argument cannot be a constant";
17609 yyerror1(&(yylsp[0]), mesg);
17614#line 17615 "parse.c"
17618#line 6443 "parse.y"
17620 static const char mesg[] =
"formal argument cannot be an instance variable";
17622 yyerror1(&(yylsp[0]), mesg);
17627#line 17628 "parse.c"
17631#line 6452 "parse.y"
17633 static const char mesg[] =
"formal argument cannot be a global variable";
17635 yyerror1(&(yylsp[0]), mesg);
17640#line 17641 "parse.c"
17644#line 6461 "parse.y"
17646 static const char mesg[] =
"formal argument cannot be a class variable";
17648 yyerror1(&(yylsp[0]), mesg);
17653#line 17654 "parse.c"
17657#line 6473 "parse.y"
17659 VALUE e = formal_argument_error(p, (yyval.id) = (yyvsp[0].id));
17663 p->max_numparam = ORDINAL_PARAM;
17665#line 17666 "parse.c"
17669#line 6483 "parse.y"
17671 arg_var(p, (yyvsp[0].
id));
17672 (yyval.id) = (yyvsp[0].
id);
17674#line 17675 "parse.c"
17678#line 6490 "parse.y"
17680 (yyval.node_args_aux) = NEW_ARGS_AUX((yyvsp[0].
id), 1, &NULL_LOC);
17683#line 17684 "parse.c"
17687#line 6495 "parse.y"
17689 ID tid = internal_id(p);
17691 loc.beg_pos = (yylsp[-1]).beg_pos;
17692 loc.end_pos = (yylsp[-1]).beg_pos;
17694 if (dyna_in_block(p)) {
17695 (yyvsp[-1].node_masgn)->nd_value = NEW_DVAR(tid, &loc);
17698 (yyvsp[-1].node_masgn)->nd_value = NEW_LVAR(tid, &loc);
17700 (yyval.node_args_aux) = NEW_ARGS_AUX(tid, 1, &NULL_LOC);
17701 (yyval.node_args_aux)->nd_next = (NODE *)(yyvsp[-1].node_masgn);
17704#line 17705 "parse.c"
17708#line 6516 "parse.y"
17710 (yyval.node_args_aux) = (yyvsp[-2].node_args_aux);
17711 (yyval.node_args_aux)->nd_plen++;
17712 (yyval.node_args_aux)->nd_next = block_append(p, (yyval.node_args_aux)->nd_next, (yyvsp[0].node_args_aux)->nd_next);
17713 rb_discard_node(p, (NODE *)(yyvsp[0].node_args_aux));
17716#line 17717 "parse.c"
17720#line 6527 "parse.y"
17722 VALUE e = formal_argument_error(p, (yyval.id) = (yyvsp[0].id));
17733 arg_var(p, ifdef_ripper(0, (yyvsp[0].
id)));
17735 p->max_numparam = ORDINAL_PARAM;
17736 p->ctxt.in_argdef = 0;
17738#line 17739 "parse.c"
17742#line 6551 "parse.y"
17746#line 17747 "parse.c"
17750#line 6557 "parse.y"
17752 arg_var(p, shadowing_lvar(p, (yyvsp[0].
id)));
17753 (yyval.id) = (yyvsp[0].
id);
17756#line 17757 "parse.c"
17760#line 6563 "parse.y"
17762 arg_var(p, idFWD_KWREST);
17763 (yyval.id) = idFWD_KWREST;
17766#line 17767 "parse.c"
17770#line 6575 "parse.y"
17772 arg_var(p, shadowing_lvar(p, (yyvsp[0].
id)));
17773 (yyval.id) = (yyvsp[0].
id);
17776#line 17777 "parse.c"
17780#line 6581 "parse.y"
17782 arg_var(p, idFWD_REST);
17783 (yyval.id) = idFWD_REST;
17786#line 17787 "parse.c"
17790#line 6593 "parse.y"
17792 arg_var(p, shadowing_lvar(p, (yyvsp[0].
id)));
17793 (yyval.id) = (yyvsp[0].
id);
17796#line 17797 "parse.c"
17800#line 6599 "parse.y"
17802 arg_var(p, idFWD_BLOCK);
17803 (yyval.id) = idFWD_BLOCK;
17806#line 17807 "parse.c"
17810#line 6607 "parse.y"
17812 (yyval.id) = (yyvsp[0].
id);
17815#line 17816 "parse.c"
17819#line 3155 "parse.y"
17821 value_expr(p, (yyvsp[0].node));
17822 (yyval.node) = (yyvsp[0].node);
17824#line 17825 "parse.c"
17828#line 6616 "parse.y"
17830 NODE *expr = last_expr_node((yyvsp[0].node));
17831 switch (nd_type(expr)) {
17841 case NODE_ENCODING:
17844 case NODE_RATIONAL:
17845 case NODE_IMAGINARY:
17849 yyerror1(&expr->nd_loc,
"can't define singleton method for literals");
17854 (yyval.node) = (yyvsp[0].node);
17856#line 17857 "parse.c"
17860#line 6647 "parse.y"
17862 SET_LEX_STATE(EXPR_BEG);
17863 p->ctxt.in_argdef = 0;
17865#line 17866 "parse.c"
17869#line 6652 "parse.y"
17871 p->ctxt.in_argdef = 1;
17872 (yyval.node) = (yyvsp[-1].node);
17875#line 17876 "parse.c"
17879#line 6661 "parse.y"
17881 (yyval.node) = (yyvsp[-1].node);
17884#line 17885 "parse.c"
17888#line 6670 "parse.y"
17890 NODE *assocs = (yyvsp[-2].node);
17891 NODE *tail = (yyvsp[0].node);
17896 NODE *n = RNODE_LIST(tail)->nd_next;
17897 if (!RNODE_LIST(tail)->nd_head && nd_type_p(n, NODE_LIST) &&
17898 nd_type_p((n = RNODE_LIST(n)->nd_head), NODE_HASH)) {
17900 tail = RNODE_HASH(n)->nd_head;
17903 assocs = list_concat(assocs, tail);
17906 (yyval.node) = assocs;
17909#line 17910 "parse.c"
17913#line 6693 "parse.y"
17915 (yyval.node) = list_append(p, NEW_LIST((yyvsp[-2].node), &(yyloc)), (yyvsp[0].node));
17918#line 17919 "parse.c"
17922#line 6698 "parse.y"
17924 (yyval.node) = list_append(p, NEW_LIST(NEW_SYM(rb_id2str((yyvsp[-1].
id)), &(yylsp[-1])), &(yyloc)), (yyvsp[0].node));
17927#line 17928 "parse.c"
17931#line 6703 "parse.y"
17933 NODE *val = gettable(p, (yyvsp[0].
id), &(yyloc));
17934 if (!val) val = NEW_ERROR(&(yyloc));
17935 (yyval.node) = list_append(p, NEW_LIST(NEW_SYM(rb_id2str((yyvsp[0].
id)), &(yylsp[0])), &(yyloc)), val);
17938#line 17939 "parse.c"
17942#line 6710 "parse.y"
17944 YYLTYPE loc = code_loc_gen(&(yylsp[-3]), &(yylsp[-1]));
17945 (yyval.node) = list_append(p, NEW_LIST(dsym_node(p, (yyvsp[-2].node), &loc), &loc), (yyvsp[0].node));
17948#line 17949 "parse.c"
17952#line 6716 "parse.y"
17954 (yyval.node) = list_append(p, NEW_LIST(0, &(yyloc)), (yyvsp[0].node));
17957#line 17958 "parse.c"
17961#line 6721 "parse.y"
17963 forwarding_arg_check(p, idFWD_KWREST, idFWD_ALL,
"keyword rest");
17964 (yyval.node) = list_append(p, NEW_LIST(0, &(yyloc)),
17965 NEW_LVAR(idFWD_KWREST, &(yyloc)));
17968#line 17969 "parse.c"
17972#line 6768 "parse.y"
17976 if (p->ctxt.in_defined) {
17977 p->ctxt.has_trailing_semicolon = 1;
17980#line 17981 "parse.c"
17984#line 6776 "parse.y"
17986 (yyloc).end_pos = (yyloc).beg_pos;
17989#line 17990 "parse.c"
17993#line 6783 "parse.y"
17995#line 17996 "parse.c"
17999#line 6787 "parse.y"
18004#line 18005 "parse.c"
18008#line 18009 "parse.c"
18023 YY_SYMBOL_PRINT (
"-> $$ =", YY_CAST (yysymbol_kind_t, yyr1[yyn]), &yyval, &yyloc, p);
18025 YYPOPSTACK (yylen);
18027#line 2676 "parse.y"
18028 {after_reduce(yylen, p);}
18029#line 18030 "parse.c"
18040 const int yylhs = yyr1[yyn] - YYNTOKENS;
18041 const int yyi = yypgoto[yylhs] + *yyssp;
18042 yystate = (0 <= yyi && yyi <= YYLAST && yycheck[yyi] == *yyssp
18044 : yydefgoto[yylhs]);
18056 yytoken = yychar == YYEMPTY ? YYSYMBOL_YYEMPTY : YYTRANSLATE (yychar);
18063 = {yyssp, yytoken, &yylloc};
18064 char const *yymsgp = YY_(
"syntax error");
18065 int yysyntax_error_status;
18066 yysyntax_error_status = yysyntax_error (&yymsg_alloc, &yymsg, &yyctx, p);
18067 if (yysyntax_error_status == 0)
18069 else if (yysyntax_error_status == -1)
18071 if (yymsg != yymsgbuf)
18072 YYSTACK_FREE (yymsg);
18073 yymsg = YY_CAST (
char *,
18074 YYSTACK_ALLOC (YY_CAST (YYSIZE_T, yymsg_alloc)));
18077 yysyntax_error_status
18078 = yysyntax_error (&yymsg_alloc, &yymsg, &yyctx, p);
18084 yymsg_alloc =
sizeof yymsgbuf;
18085 yysyntax_error_status = YYENOMEM;
18088 yyerror (&yylloc, p, yymsgp);
18089 if (yysyntax_error_status == YYENOMEM)
18094 yyerror_range[1] = yylloc;
18095 if (yyerrstatus == 3)
18100 if (yychar <= END_OF_INPUT)
18103 if (yychar == END_OF_INPUT)
18108 yydestruct (
"Error: discarding",
18109 yytoken, &yylval, &yylloc, p);
18131 YYPOPSTACK (yylen);
18133#line 2678 "parse.y"
18134 {after_pop_stack(yylen, p);}
18135#line 18136 "parse.c"
18138 YY_STACK_PRINT (yyss, yyssp, p);
18152 yyn = yypact[yystate];
18153 if (!yypact_value_is_default (yyn))
18155 yyn += YYSYMBOL_YYerror;
18156 if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror)
18158 yyn = yytable[yyn];
18168 yyerror_range[1] = *yylsp;
18169 yydestruct (
"Error: popping",
18170 YY_ACCESSING_SYMBOL (yystate), yyvsp, yylsp, p);
18173#line 2678 "parse.y"
18174 {after_pop_stack(1, p);}
18175#line 18176 "parse.c"
18178 YY_STACK_PRINT (yyss, yyssp, p);
18181 YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
18183 YY_IGNORE_MAYBE_UNINITIALIZED_END
18185 yyerror_range[2] = yylloc;
18187 YYLLOC_DEFAULT (*yylsp, yyerror_range, 2);
18190 YY_SYMBOL_PRINT (
"Shifting", YY_ACCESSING_SYMBOL (yyn), yyvsp, yylsp, p);
18192#line 2677 "parse.y"
18193 {after_shift_error_token(p);}
18194#line 18195 "parse.c"
18221 yyerror (&yylloc, p, YY_(
"memory exhausted"));
18230 if (yychar != YYEMPTY)
18234 yytoken = YYTRANSLATE (yychar);
18235 yydestruct (
"Cleanup: discarding lookahead",
18236 yytoken, &yylval, &yylloc, p);
18240 YYPOPSTACK (yylen);
18241 YY_STACK_PRINT (yyss, yyssp, p);
18242 while (yyssp != yyss)
18244 yydestruct (
"Cleanup: popping",
18245 YY_ACCESSING_SYMBOL (+*yyssp), yyvsp, yylsp, p);
18250 YYSTACK_FREE (yyss);
18252 if (yymsg != yymsgbuf)
18253 YYSTACK_FREE (yymsg);
18257#line 6792 "parse.y"
18262# define yylval (*p->lval)
18265static int tokadd_string(
struct parser_params*,
int,
int,
int,
long*,rb_encoding**,rb_encoding**);
18266static void tokaddmbc(
struct parser_params *p,
int c, rb_encoding *enc);
18267static enum yytokentype parse_string(
struct parser_params*,rb_strterm_literal_t*);
18268static enum yytokentype here_document(
struct parser_params*,rb_strterm_heredoc_t*);
18270#define set_parser_s_value(x) (ifdef_ripper(p->s_value = (x), (void)0))
18272# define set_yylval_node(x) { \
18273 YYLTYPE _cur_loc; \
18274 rb_parser_set_location(p, &_cur_loc); \
18275 yylval.node = (x); \
18276 set_parser_s_value(STR_NEW(p->lex.ptok, p->lex.pcur-p->lex.ptok)); \
18278# define set_yylval_str(x) \
18280 set_yylval_node(NEW_STR(x, &_cur_loc)); \
18281 set_parser_s_value(rb_str_new_mutable_parser_string(x)); \
18283# define set_yylval_num(x) { \
18284 yylval.num = (x); \
18285 set_parser_s_value(x); \
18287# define set_yylval_id(x) (yylval.id = (x))
18288# define set_yylval_name(x) { \
18289 (yylval.id = (x)); \
18290 set_parser_s_value(ID2SYM(x)); \
18292# define yylval_id() (yylval.id)
18294#define set_yylval_noname() set_yylval_id(keyword_nil)
18295#define has_delayed_token(p) (p->delayed.token != NULL)
18298#define literal_flush(p, ptr) ((p)->lex.ptok = (ptr))
18299#define dispatch_scan_event(p, t) parser_dispatch_scan_event(p, t, __LINE__)
18304 const char *
const pcur = p->lex.pcur;
18305 const char *
const ptok = p->lex.ptok;
18306 if (p->keep_tokens && (pcur < ptok)) {
18307 rb_bug(
"lex.pcur < lex.ptok. (line: %d) %"PRIdPTRDIFF
"|%"PRIdPTRDIFF
"|%"PRIdPTRDIFF
"",
18308 p->ruby_sourceline, ptok - p->lex.pbeg, pcur - ptok, p->lex.pend - pcur);
18310 return pcur > ptok;
18317 case '"':
return "\\\"";
18318 case '\\':
return "\\\\";
18319 case '\0':
return "\\0";
18320 case '\n':
return "\\n";
18321 case '\r':
return "\\r";
18322 case '\t':
return "\\t";
18323 case '\f':
return "\\f";
18324 case '\013':
return "\\v";
18325 case '\010':
return "\\b";
18326 case '\007':
return "\\a";
18327 case '\033':
return "\\e";
18328 case '\x7f':
return "\\c?";
18333static rb_parser_string_t *
18334rb_parser_str_escape(
struct parser_params *p, rb_parser_string_t *str)
18336 rb_encoding *enc = p->enc;
18337 const char *
ptr = str->ptr;
18338 const char *pend =
ptr + str->len;
18339 const char *prev =
ptr;
18340 char charbuf[5] = {
'\\',
'x', 0, 0, 0};
18341 rb_parser_string_t * result = rb_parser_string_new(p, 0, 0);
18343 while (
ptr < pend) {
18346 int n = rb_enc_precise_mbclen(
ptr, pend, enc);
18348 if (
ptr > prev) parser_str_cat(result, prev,
ptr - prev);
18349 n = rb_enc_mbminlen(enc);
18350 if (pend <
ptr + n)
18351 n = (int)(pend -
ptr);
18353 c = *
ptr & 0xf0 >> 4;
18354 charbuf[2] = (c < 10) ?
'0' + c :
'A' + c - 10;
18356 charbuf[3] = (c < 10) ?
'0' + c :
'A' + c - 10;
18357 parser_str_cat(result, charbuf, 4);
18363 c = rb_enc_mbc_to_codepoint(
ptr, pend, enc);
18365 cc = escaped_char(c);
18367 if (
ptr - n > prev) parser_str_cat(result, prev,
ptr - n - prev);
18368 parser_str_cat_cstr(result, cc);
18371 else if (rb_enc_isascii(c, enc) &&
ISPRINT(c)) {
18374 if (
ptr - n > prev) {
18375 parser_str_cat(result, prev,
ptr - n - prev);
18378 parser_str_cat(result, prev,
ptr - prev);
18382 if (
ptr > prev) parser_str_cat(result, prev,
ptr - prev);
18388parser_append_tokens(
struct parser_params *p, rb_parser_string_t *str,
enum yytokentype t,
int line)
18390 rb_parser_ast_token_t *token =
xcalloc(1,
sizeof(rb_parser_ast_token_t));
18391 token->id = p->token_id;
18392 token->type_name = parser_token2char(p, t);
18394 token->loc.beg_pos = p->yylloc->beg_pos;
18395 token->loc.end_pos = p->yylloc->end_pos;
18396 rb_parser_ary_push_ast_token(p, p->tokens, token);
18400 rb_parser_string_t *str_escaped = rb_parser_str_escape(p, str);
18401 rb_parser_printf(p,
"Append tokens (line: %d) [%d, :%s, \"%s\", [%d, %d, %d, %d]]\n",
18402 line, token->id, token->type_name, str_escaped->ptr,
18403 token->loc.beg_pos.lineno, token->loc.beg_pos.column,
18404 token->loc.end_pos.lineno, token->loc.end_pos.column);
18405 rb_parser_string_free(p, str_escaped);
18410parser_dispatch_scan_event(
struct parser_params *p,
enum yytokentype t,
int line)
18412 debug_token_line(p,
"parser_dispatch_scan_event", line);
18414 if (!parser_has_token(p))
return;
18416 RUBY_SET_YYLLOC(*p->yylloc);
18418 if (p->keep_tokens) {
18419 rb_parser_string_t *str = rb_parser_encoding_string_new(p, p->lex.ptok, p->lex.pcur - p->lex.ptok, p->enc);
18420 parser_append_tokens(p, str, t, line);
18426#define dispatch_delayed_token(p, t) parser_dispatch_delayed_token(p, t, __LINE__)
18428parser_dispatch_delayed_token(
struct parser_params *p,
enum yytokentype t,
int line)
18430 debug_token_line(p,
"parser_dispatch_delayed_token", line);
18432 if (!has_delayed_token(p))
return;
18434 RUBY_SET_YYLLOC_OF_DELAYED_TOKEN(*p->yylloc);
18436 if (p->keep_tokens) {
18438 parser_append_tokens(p, p->delayed.token, t, line);
18441 rb_parser_string_free(p, p->delayed.token);
18444 p->delayed.token = NULL;
18447#define literal_flush(p, ptr) ((void)(ptr))
18452 if (p->lex.pcur < p->lex.ptok) rb_raise(
rb_eRuntimeError,
"lex.pcur < lex.ptok");
18453 return p->lex.pcur > p->lex.ptok;
18457ripper_scan_event_val(
struct parser_params *p,
enum yytokentype t)
18459 VALUE str = STR_NEW(p->lex.ptok, p->lex.pcur - p->lex.ptok);
18460 VALUE rval = ripper_dispatch1(p, ripper_token2eventid(t), str);
18461 RUBY_SET_YYLLOC(*p->yylloc);
18467ripper_dispatch_scan_event(
struct parser_params *p,
enum yytokentype t)
18469 if (!ripper_has_scan_event(p))
return;
18471 set_parser_s_value(ripper_scan_event_val(p, t));
18473#define dispatch_scan_event(p, t) ripper_dispatch_scan_event(p, t)
18476ripper_dispatch_delayed_token(
struct parser_params *p,
enum yytokentype t)
18479 int saved_line = p->ruby_sourceline;
18480 const char *saved_tokp = p->lex.ptok;
18481 VALUE s_value, str;
18483 if (!has_delayed_token(p))
return;
18484 p->ruby_sourceline = p->delayed.beg_line;
18485 p->lex.ptok = p->lex.pbeg + p->delayed.beg_col;
18486 str = rb_str_new_mutable_parser_string(p->delayed.token);
18487 rb_parser_string_free(p, p->delayed.token);
18488 s_value = ripper_dispatch1(p, ripper_token2eventid(t), str);
18489 set_parser_s_value(s_value);
18490 p->delayed.token = NULL;
18491 p->ruby_sourceline = saved_line;
18492 p->lex.ptok = saved_tokp;
18494#define dispatch_delayed_token(p, t) ripper_dispatch_delayed_token(p, t)
18498is_identchar(
struct parser_params *p,
const char *
ptr,
const char *MAYBE_UNUSED(ptr_end), rb_encoding *enc)
18500 return rb_enc_isalnum((
unsigned char)*
ptr, enc) || *
ptr ==
'_' || !ISASCII(*
ptr);
18506 const char *
ptr = p->lex.pcur + at;
18507 if (lex_eol_ptr_n_p(p,
ptr,
len-1))
return false;
18508 if (memcmp(
ptr, str,
len))
return false;
18509 if (lex_eol_ptr_n_p(p,
ptr,
len))
return true;
18511 case '!':
case '?':
return false;
18513 return !is_identchar(p,
ptr+
len, p->lex.pend, p->enc);
18519 return !(p)->eofp && is_identchar(p, p->lex.pcur-1, p->lex.pend, p->enc);
18525 return ISASCII(*(p->lex.pcur-1));
18529token_info_setup(
token_info *ptinfo,
const char *
ptr,
const rb_code_location_t *loc)
18531 int column = 1, nonspc = 0, i;
18532 for (i = 0; i < loc->beg_pos.column; i++,
ptr++) {
18533 if (*
ptr ==
'\t') {
18534 column = (((column - 1) / TAB_WIDTH) + 1) * TAB_WIDTH;
18537 if (*
ptr !=
' ' && *
ptr !=
'\t') {
18542 ptinfo->beg = loc->beg_pos;
18543 ptinfo->indent = column;
18544 ptinfo->nonspc = nonspc;
18548token_info_push(
struct parser_params *p,
const char *token,
const rb_code_location_t *loc)
18552 if (!p->token_info_enabled)
return;
18554 ptinfo->token = token;
18555 ptinfo->next = p->token_info;
18556 token_info_setup(ptinfo, p->lex.pbeg, loc);
18558 p->token_info = ptinfo;
18562token_info_pop(
struct parser_params *p,
const char *token,
const rb_code_location_t *loc)
18566 if (!ptinfo_beg)
return;
18569 token_info_warn(p, token, ptinfo_beg, 1, loc);
18571 p->token_info = ptinfo_beg->next;
18572 ruby_sized_xfree(ptinfo_beg,
sizeof(*ptinfo_beg));
18576token_info_drop(
struct parser_params *p,
const char *token, rb_code_position_t beg_pos)
18580 if (!ptinfo_beg)
return;
18581 p->token_info = ptinfo_beg->next;
18583 if (ptinfo_beg->beg.lineno != beg_pos.lineno ||
18584 ptinfo_beg->beg.column != beg_pos.column ||
18585 strcmp(ptinfo_beg->token, token)) {
18586 compile_error(p,
"token position mismatch: %d:%d:%s expected but %d:%d:%s",
18587 beg_pos.lineno, beg_pos.column, token,
18588 ptinfo_beg->beg.lineno, ptinfo_beg->beg.column,
18589 ptinfo_beg->token);
18592 ruby_sized_xfree(ptinfo_beg,
sizeof(*ptinfo_beg));
18596token_info_warn(
struct parser_params *p,
const char *token,
token_info *ptinfo_beg,
int same,
const rb_code_location_t *loc)
18598 token_info ptinfo_end_body, *ptinfo_end = &ptinfo_end_body;
18599 if (!p->token_info_enabled)
return;
18600 if (!ptinfo_beg)
return;
18601 token_info_setup(ptinfo_end, p->lex.pbeg, loc);
18602 if (ptinfo_beg->beg.lineno == ptinfo_end->beg.lineno)
return;
18603 if (ptinfo_beg->nonspc || ptinfo_end->nonspc)
return;
18604 if (ptinfo_beg->indent == ptinfo_end->indent)
return;
18605 if (!same && ptinfo_beg->indent < ptinfo_end->indent)
return;
18606 rb_warn3L(ptinfo_end->beg.lineno,
18607 "mismatched indentations at '%s' with '%s' at %d",
18608 WARN_S(token), WARN_S(ptinfo_beg->token), WARN_I(ptinfo_beg->beg.lineno));
18614 int len = rb_enc_precise_mbclen(
ptr, p->lex.pend, p->enc);
18616 compile_error(p,
"invalid multibyte char (%s)", rb_enc_name(p->enc));
18624parser_show_error_line(
struct parser_params *p,
const YYLTYPE *yylloc)
18626 rb_parser_string_t *str;
18627 int lineno = p->ruby_sourceline;
18631 else if (yylloc->beg_pos.lineno == lineno) {
18632 str = p->lex.lastline;
18637 ruby_show_error_line(p, p->error_buffer, yylloc, lineno, str);
18641parser_yyerror(
struct parser_params *p,
const rb_code_location_t *yylloc,
const char *msg)
18647 yylloc = RUBY_SET_YYLLOC(current);
18649 else if ((p->ruby_sourceline != yylloc->beg_pos.lineno &&
18650 p->ruby_sourceline != yylloc->end_pos.lineno)) {
18654 parser_compile_error(p, yylloc,
"%s", msg);
18655 parser_show_error_line(p, yylloc);
18663 return parser_yyerror(p, RUBY_SET_YYLLOC(current), msg);
18667ruby_show_error_line(
struct parser_params *p,
VALUE errbuf,
const YYLTYPE *yylloc,
int lineno, rb_parser_string_t *str)
18670 const int max_line_margin = 30;
18671 const char *
ptr, *ptr_end, *pt, *pb;
18672 const char *pre =
"", *post =
"", *pend;
18673 const char *code =
"", *caret =
"";
18675 const char *
const pbeg = PARSER_STRING_PTR(str);
18680 if (!yylloc)
return;
18681 pend = rb_parser_string_end(str);
18682 if (pend > pbeg && pend[-1] ==
'\n') {
18683 if (--pend > pbeg && pend[-1] ==
'\r') --pend;
18687 if (lineno == yylloc->end_pos.lineno &&
18688 (pend - pbeg) > yylloc->end_pos.column) {
18689 pt = pbeg + yylloc->end_pos.column;
18692 ptr = ptr_end = pt;
18693 lim =
ptr - pbeg > max_line_margin ?
ptr - max_line_margin : pbeg;
18694 while ((lim <
ptr) && (*(
ptr-1) !=
'\n'))
ptr--;
18696 lim = pend - ptr_end > max_line_margin ? ptr_end + max_line_margin : pend;
18697 while ((ptr_end < lim) && (*ptr_end !=
'\n') && (*ptr_end !=
'\r')) ptr_end++;
18702 ptr = rb_enc_prev_char(pbeg,
ptr, pt, rb_parser_str_get_encoding(str));
18703 if (
ptr > pbeg) pre =
"...";
18705 if (ptr_end < pend) {
18706 ptr_end = rb_enc_prev_char(pt, ptr_end, pend, rb_parser_str_get_encoding(str));
18707 if (ptr_end < pend) post =
"...";
18711 if (lineno == yylloc->beg_pos.lineno) {
18712 pb += yylloc->beg_pos.column;
18713 if (pb > pt) pb = pt;
18719 if (
RTEST(errbuf)) {
18720 mesg = rb_attr_get(errbuf, idMesg);
18721 if (char_at_end(p, mesg,
'\n') !=
'\n')
18725 mesg = rb_enc_str_new(0, 0, rb_parser_str_get_encoding(str));
18727 if (!errbuf && rb_stderr_tty_p()) {
18728#define CSI_BEGIN "\033["
18731 CSI_BEGIN
""CSI_SGR
"%s"
18732 CSI_BEGIN
"1"CSI_SGR
"%.*s"
18733 CSI_BEGIN
"1;4"CSI_SGR
"%.*s"
18734 CSI_BEGIN
";1"CSI_SGR
"%.*s"
18735 CSI_BEGIN
""CSI_SGR
"%s"
18739 (
int)(pt - pb), pb,
18740 (
int)(ptr_end - pt), pt,
18747 lim = pt < pend ? pt : pend;
18748 i = (int)(lim -
ptr);
18754 *p2++ = *
ptr++ ==
'\t' ?
'\t' :
' ';
18760 memset(p2,
'~', (lim -
ptr));
18764 rb_str_catf(mesg,
"%s%.*s%s\n""%s%s\n",
18765 pre, (
int)
len, code, post,
18768 if (!errbuf) rb_write_error_str(mesg);
18773parser_yyerror(
struct parser_params *p,
const YYLTYPE *yylloc,
const char *msg)
18775 const char *pcur = 0, *ptok = 0;
18776 if (p->ruby_sourceline == yylloc->beg_pos.lineno &&
18777 p->ruby_sourceline == yylloc->end_pos.lineno) {
18778 pcur = p->lex.pcur;
18779 ptok = p->lex.ptok;
18780 p->lex.ptok = p->lex.pbeg + yylloc->beg_pos.column;
18781 p->lex.pcur = p->lex.pbeg + yylloc->end_pos.column;
18783 parser_yyerror0(p, msg);
18785 p->lex.ptok = ptok;
18786 p->lex.pcur = pcur;
18794 dispatch1(parse_error, STR_NEW2(msg));
18800parser_show_error_line(
struct parser_params *p,
const YYLTYPE *yylloc)
18806vtable_size(
const struct vtable *tbl)
18808 if (!DVARS_TERMINAL_P(tbl)) {
18826 rb_parser_printf(p,
"vtable_alloc:%d: %p\n", line, (
void *)tbl);
18831#define vtable_alloc(prev) vtable_alloc_gen(p, __LINE__, prev)
18834vtable_free_gen(
struct parser_params *p,
int line,
const char *name,
18839 rb_parser_printf(p,
"vtable_free:%d: %s(%p)\n", line, name, (
void *)tbl);
18842 if (!DVARS_TERMINAL_P(tbl)) {
18844 ruby_sized_xfree(tbl->tbl, tbl->capa *
sizeof(
ID));
18846 ruby_sized_xfree(tbl,
sizeof(*tbl));
18849#define vtable_free(tbl) vtable_free_gen(p, __LINE__, #tbl, tbl)
18852vtable_add_gen(
struct parser_params *p,
int line,
const char *name,
18857 rb_parser_printf(p,
"vtable_add:%d: %s(%p), %s\n",
18858 line, name, (
void *)tbl, rb_id2name(
id));
18861 if (DVARS_TERMINAL_P(tbl)) {
18862 rb_parser_fatal(p,
"vtable_add: vtable is not allocated (%p)", (
void *)tbl);
18865 if (tbl->pos == tbl->capa) {
18866 tbl->capa = tbl->capa * 2;
18867 SIZED_REALLOC_N(tbl->tbl,
ID, tbl->capa, tbl->pos);
18869 tbl->tbl[tbl->pos++] = id;
18871#define vtable_add(tbl, id) vtable_add_gen(p, __LINE__, #tbl, tbl, id)
18874vtable_pop_gen(
struct parser_params *p,
int line,
const char *name,
18875 struct vtable *tbl,
int n)
18878 rb_parser_printf(p,
"vtable_pop:%d: %s(%p), %d\n",
18879 line, name, (
void *)tbl, n);
18881 if (tbl->pos < n) {
18882 rb_parser_fatal(p,
"vtable_pop: unreachable (%d < %d)", tbl->pos, n);
18887#define vtable_pop(tbl, n) vtable_pop_gen(p, __LINE__, #tbl, tbl, n)
18890vtable_included(
const struct vtable * tbl,
ID id)
18894 if (!DVARS_TERMINAL_P(tbl)) {
18895 for (i = 0; i < tbl->pos; i++) {
18896 if (tbl->tbl[i] ==
id) {
18909 return strcmp(p->ruby_sourcefile,
"-e") == 0;
18913static NODE *parser_append_options(
struct parser_params *p, NODE *node);
18916yycompile0(
VALUE arg)
18923 if (!compile_for_eval && !
NIL_P(p->ruby_sourcefile_string) && !e_option_supplied(p)) {
18927 if (p->debug_lines) {
18928 p->ast->body.script_lines = p->debug_lines;
18932#define RUBY_DTRACE_PARSE_HOOK(name) \
18933 if (RUBY_DTRACE_PARSE_##name##_ENABLED()) { \
18934 RUBY_DTRACE_PARSE_##name(p->ruby_sourcefile, p->ruby_sourceline); \
18936 RUBY_DTRACE_PARSE_HOOK(BEGIN);
18938 RUBY_DTRACE_PARSE_HOOK(END);
18940 p->debug_lines = 0;
18942 xfree(p->lex.strterm);
18943 p->lex.strterm = 0;
18944 p->lex.pcur = p->lex.pbeg = p->lex.pend = 0;
18945 if (n || p->error_p) {
18946 VALUE mesg = p->error_buffer;
18948 mesg = syntax_error_new();
18950 if (!p->error_tolerant) {
18951 rb_set_errinfo(mesg);
18955 tree = p->eval_tree;
18957 tree = NEW_NIL(&NULL_LOC);
18960 rb_parser_ary_t *tokens = p->tokens;
18962 NODE *body = parser_append_options(p, RNODE_SCOPE(tree)->nd_body);
18963 prelude = block_append(p, p->eval_tree_begin, body);
18964 RNODE_SCOPE(tree)->nd_body = prelude;
18965 p->ast->body.frozen_string_literal = p->frozen_string_literal;
18966 p->ast->body.coverage_enabled = cov;
18967 if (p->keep_tokens) {
18968 p->ast->node_buffer->tokens = tokens;
18972 p->ast->body.root = tree;
18973 p->ast->body.line_count = p->line_count;
18981 if (
NIL_P(fname)) {
18982 p->ruby_sourcefile_string =
Qnil;
18983 p->ruby_sourcefile =
"(none)";
18986 p->ruby_sourcefile_string = rb_str_to_interned_str(fname);
18989 p->ruby_sourceline = line - 1;
18993 p->ast = ast = rb_ast_new();
18994 compile_callback(yycompile0, (
VALUE)p);
19005static rb_encoding *
19006must_be_ascii_compatible(
struct parser_params *p, rb_parser_string_t *s)
19008 rb_encoding *enc = rb_parser_str_get_encoding(s);
19009 if (!rb_enc_asciicompat(enc)) {
19010 rb_raise(rb_eArgError,
"invalid source encoding");
19015static rb_parser_string_t *
19018 rb_parser_string_t *line = (*p->lex.gets)(p, p->lex.input, p->line_count);
19019 if (!line)
return 0;
19021 string_buffer_append(p, line);
19022 must_be_ascii_compatible(p, line);
19028rb_parser_compile(rb_parser_t *p, rb_parser_lex_gets_func *gets,
VALUE fname, rb_parser_input_data input,
int line)
19030 p->lex.gets = gets;
19031 p->lex.input = input;
19032 p->lex.pbeg = p->lex.pcur = p->lex.pend = 0;
19034 return yycompile(p, fname, line);
19038#define STR_FUNC_ESCAPE 0x01
19039#define STR_FUNC_EXPAND 0x02
19040#define STR_FUNC_REGEXP 0x04
19041#define STR_FUNC_QWORDS 0x08
19042#define STR_FUNC_SYMBOL 0x10
19043#define STR_FUNC_INDENT 0x20
19044#define STR_FUNC_LABEL 0x40
19045#define STR_FUNC_LIST 0x4000
19046#define STR_FUNC_TERM 0x8000
19049 str_label = STR_FUNC_LABEL,
19051 str_dquote = (STR_FUNC_EXPAND),
19052 str_xquote = (STR_FUNC_EXPAND),
19053 str_regexp = (STR_FUNC_REGEXP|STR_FUNC_ESCAPE|STR_FUNC_EXPAND),
19054 str_sword = (STR_FUNC_QWORDS|STR_FUNC_LIST),
19055 str_dword = (STR_FUNC_QWORDS|STR_FUNC_EXPAND|STR_FUNC_LIST),
19056 str_ssym = (STR_FUNC_SYMBOL),
19057 str_dsym = (STR_FUNC_SYMBOL|STR_FUNC_EXPAND)
19060static rb_parser_string_t *
19061parser_str_new(
struct parser_params *p,
const char *
ptr,
long len, rb_encoding *enc,
int func, rb_encoding *enc0)
19063 rb_parser_string_t *pstr;
19065 pstr = rb_parser_encoding_string_new(p,
ptr,
len, enc);
19067 if (!(func & STR_FUNC_REGEXP)) {
19068 if (rb_parser_is_ascii_string(p, pstr)) {
19070 else if (rb_is_usascii_enc((
void *)enc0) && enc != rb_utf8_encoding()) {
19072 enc = rb_ascii8bit_encoding();
19073 PARSER_ENCODING_CODERANGE_SET(pstr, enc, RB_PARSER_ENC_CODERANGE_VALID);
19081strterm_is_heredoc(rb_strterm_t *strterm)
19083 return strterm->heredoc;
19086static rb_strterm_t *
19087new_strterm(
struct parser_params *p,
int func,
int term,
int paren)
19089 rb_strterm_t *strterm =
ZALLOC(rb_strterm_t);
19090 strterm->u.literal.func = func;
19091 strterm->u.literal.term = term;
19092 strterm->u.literal.paren = paren;
19096static rb_strterm_t *
19099 rb_strterm_t *strterm =
ZALLOC(rb_strterm_t);
19100 strterm->heredoc =
true;
19104#define peek(p,c) peek_n(p, (c), 0)
19105#define peek_n(p,c,n) (!lex_eol_n_p(p, n) && (c) == (unsigned char)(p)->lex.pcur[n])
19106#define peekc(p) peekc_n(p, 0)
19107#define peekc_n(p,n) (lex_eol_n_p(p, n) ? -1 : (unsigned char)(p)->lex.pcur[n])
19109#define add_delayed_token(p, tok, end) parser_add_delayed_token(p, tok, end, __LINE__)
19111parser_add_delayed_token(
struct parser_params *p,
const char *tok,
const char *end,
int line)
19113 debug_token_line(p,
"add_delayed_token", line);
19116 if (has_delayed_token(p)) {
19117 bool next_line = parser_string_char_at_end(p, p->delayed.token, 0) ==
'\n';
19118 int end_line = (next_line ? 1 : 0) + p->delayed.end_line;
19119 int end_col = (next_line ? 0 : p->delayed.end_col);
19120 if (end_line != p->ruby_sourceline || end_col != tok - p->lex.pbeg) {
19121 dispatch_delayed_token(p, tSTRING_CONTENT);
19124 if (!has_delayed_token(p)) {
19125 p->delayed.token = rb_parser_string_new(p, 0, 0);
19126 rb_parser_enc_associate(p, p->delayed.token, p->enc);
19127 p->delayed.beg_line = p->ruby_sourceline;
19128 p->delayed.beg_col =
rb_long2int(tok - p->lex.pbeg);
19130 parser_str_cat(p->delayed.token, tok, end - tok);
19131 p->delayed.end_line = p->ruby_sourceline;
19132 p->delayed.end_col =
rb_long2int(end - p->lex.pbeg);
19138set_lastline(
struct parser_params *p, rb_parser_string_t *str)
19140 p->lex.pbeg = p->lex.pcur = PARSER_STRING_PTR(str);
19141 p->lex.pend = p->lex.pcur + PARSER_STRING_LEN(str);
19142 p->lex.lastline = str;
19148 rb_parser_string_t *str = p->lex.nextline;
19149 p->lex.nextline = 0;
19154 if (!lex_eol_ptr_p(p, p->lex.pbeg) && *(p->lex.pend-1) !=
'\n') {
19158 if (!p->lex.input || !(str = lex_getline(p))) {
19165 if (p->debug_lines) {
19166 if (set_encoding) rb_parser_enc_associate(p, str, p->enc);
19167 rb_parser_string_t *copy = rb_parser_string_deep_copy(p, str);
19168 rb_parser_ary_push_script_line(p, p->debug_lines, copy);
19171 p->cr_seen = FALSE;
19173 else if (str == AFTER_HEREDOC_WITHOUT_TERMINATOR) {
19177 add_delayed_token(p, p->lex.ptok, p->lex.pend);
19178 if (p->heredoc_end > 0) {
19179 p->ruby_sourceline = p->heredoc_end;
19180 p->heredoc_end = 0;
19182 p->ruby_sourceline++;
19183 set_lastline(p, str);
19191 if (peek(p,
'\n')) {
19203 if (UNLIKELY(lex_eol_p(p) || p->eofp || p->lex.nextline > AFTER_HEREDOC_WITHOUT_TERMINATOR)) {
19204 if (nextline(p, set_encoding))
return -1;
19206 c = (
unsigned char)*p->lex.pcur++;
19207 if (UNLIKELY(c ==
'\r')) {
19208 c = parser_cr(p, c);
19213#define nextc(p) nextc0(p, TRUE)
19218 if (c == -1)
return;
19221 if (p->lex.pcur > p->lex.pbeg && p->lex.pcur[0] ==
'\n' && p->lex.pcur[-1] ==
'\r') {
19226#define was_bol(p) ((p)->lex.pcur == (p)->lex.pbeg + 1)
19228#define tokfix(p) ((p)->tokenbuf[(p)->tokidx]='\0')
19229#define tok(p) (p)->tokenbuf
19230#define toklen(p) (p)->tokidx
19235 const char *
ptr = p->lex.pcur;
19236 while (!lex_eol_ptr_p(p,
ptr)) {
19237 int c = (
unsigned char)*
ptr++;
19238 int eol = (c ==
'\n' || c ==
'#');
19250 if (!p->tokenbuf) {
19252 p->tokenbuf =
ALLOC_N(
char, 60);
19254 if (p->toksiz > 4096) {
19258 return p->tokenbuf;
19266 if (p->tokidx >= p->toksiz) {
19267 do {p->toksiz *= 2;}
while (p->toksiz <= p->tokidx);
19268 REALLOC_N(p->tokenbuf,
char, p->toksiz);
19270 return &p->tokenbuf[p->tokidx-n];
19276 p->tokenbuf[p->tokidx++] = (char)c;
19277 if (p->tokidx >= p->toksiz) {
19279 REALLOC_N(p->tokenbuf,
char, p->toksiz);
19288 c = (int)ruby_scan_hex(p->lex.pcur, 2, numlen);
19291 yyerror0(
"invalid hex escape");
19292 dispatch_scan_event(p, tSTRING_CONTENT);
19295 p->lex.pcur += *numlen;
19299#define tokcopy(p, n) memcpy(tokspace(p, n), (p)->lex.pcur - (n), (n))
19302escaped_control_code(
int c)
19328#define WARN_SPACE_CHAR(c, prefix) \
19329 rb_warn1("invalid character syntax; use "prefix"\\%c", WARN_I(c))
19332tokadd_codepoint(
struct parser_params *p, rb_encoding **encp,
19333 int regexp_literal,
const char *begin)
19335 const int wide = !begin;
19337 int codepoint = (int)ruby_scan_hex(p->lex.pcur, wide ? p->lex.pend - p->lex.pcur : 4, &numlen);
19339 p->lex.pcur += numlen;
19340 if (p->lex.strterm == NULL ||
19341 strterm_is_heredoc(p->lex.strterm) ||
19342 (p->lex.strterm->u.literal.func != str_regexp)) {
19343 if (!begin) begin = p->lex.pcur;
19344 if (wide ? (numlen == 0 || numlen > 6) : (numlen < 4)) {
19345 flush_string_content(p, rb_utf8_encoding(), p->lex.pcur - begin);
19346 yyerror0(
"invalid Unicode escape");
19347 dispatch_scan_event(p, tSTRING_CONTENT);
19348 return wide && numlen > 0;
19350 if (codepoint > 0x10ffff) {
19351 flush_string_content(p, rb_utf8_encoding(), p->lex.pcur - begin);
19352 yyerror0(
"invalid Unicode codepoint (too large)");
19353 dispatch_scan_event(p, tSTRING_CONTENT);
19356 if ((codepoint & 0xfffff800) == 0xd800) {
19357 flush_string_content(p, rb_utf8_encoding(), p->lex.pcur - begin);
19358 yyerror0(
"invalid Unicode codepoint");
19359 dispatch_scan_event(p, tSTRING_CONTENT);
19363 if (regexp_literal) {
19364 tokcopy(p, (
int)numlen);
19366 else if (codepoint >= 0x80) {
19367 rb_encoding *utf8 = rb_utf8_encoding();
19368 if (*encp && utf8 != *encp) {
19369 YYLTYPE loc = RUBY_INIT_YYLLOC();
19370 compile_error(p,
"UTF-8 mixed within %s source", rb_enc_name(*encp));
19371 parser_show_error_line(p, &loc);
19375 tokaddmbc(p, codepoint, *encp);
19378 tokadd(p, codepoint);
19388 int len = parser_precise_mbclen(p, p->lex.pcur-1);
19390 p->lex.pcur +=
len - 1;
19398 int term,
int symbol_literal,
int regexp_literal)
19405 static const char multiple_codepoints[] =
"Multiple codepoints at single character literal";
19407 const int open_brace =
'{', close_brace =
'}';
19409 if (regexp_literal) { tokadd(p,
'\\'); tokadd(p,
'u'); }
19411 if (peek(p, open_brace)) {
19412 if (regexp_literal && p->lex.strterm->u.literal.func == str_regexp) {
19419 tokadd(p, open_brace);
19420 while (!lex_eol_ptr_p(p, ++p->lex.pcur)) {
19422 if (c == close_brace) {
19427 else if (c == term) {
19430 if (c ==
'\\' && !lex_eol_n_p(p, 1)) {
19432 c = *++p->lex.pcur;
19434 tokadd_mbchar(p, c);
19438 const char *second = NULL;
19439 int c, last = nextc(p);
19440 if (lex_eol_p(p))
goto unterminated;
19441 while (
ISSPACE(c = peekc(p)) && !lex_eol_ptr_p(p, ++p->lex.pcur));
19442 while (c != close_brace) {
19443 if (c == term)
goto unterminated;
19444 if (second == multiple_codepoints)
19445 second = p->lex.pcur;
19446 if (regexp_literal) tokadd(p, last);
19447 if (!tokadd_codepoint(p, encp, regexp_literal, NULL)) {
19450 while (
ISSPACE(c = peekc(p))) {
19451 if (lex_eol_ptr_p(p, ++p->lex.pcur))
goto unterminated;
19454 if (term == -1 && !second)
19455 second = multiple_codepoints;
19458 if (c != close_brace) {
19460 flush_string_content(p, rb_utf8_encoding(), 0);
19461 yyerror0(
"unterminated Unicode escape");
19462 dispatch_scan_event(p, tSTRING_CONTENT);
19465 if (second && second != multiple_codepoints) {
19466 const char *pcur = p->lex.pcur;
19467 p->lex.pcur = second;
19468 dispatch_scan_event(p, tSTRING_CONTENT);
19470 p->lex.pcur = pcur;
19471 yyerror0(multiple_codepoints);
19475 if (regexp_literal) tokadd(p, close_brace);
19480 if (!tokadd_codepoint(p, encp, regexp_literal, p->lex.pcur -
rb_strlen_lit(
"\\u"))) {
19487#define ESCAPE_CONTROL 1
19488#define ESCAPE_META 2
19491read_escape(
struct parser_params *p,
int flags,
const char *begin)
19496 switch (c = nextc(p)) {
19521 case '0':
case '1':
case '2':
case '3':
19522 case '4':
case '5':
case '6':
case '7':
19524 c = (int)ruby_scan_oct(p->lex.pcur, 3, &numlen);
19525 p->lex.pcur += numlen;
19529 c = tok_hex(p, &numlen);
19530 if (numlen == 0)
return 0;
19540 if (flags & ESCAPE_META)
goto eof;
19541 if ((c = nextc(p)) !=
'-') {
19544 if ((c = nextc(p)) ==
'\\') {
19545 switch (peekc(p)) {
19546 case 'u':
case 'U':
19550 return read_escape(p, flags|ESCAPE_META, begin) | 0x80;
19552 else if (c == -1)
goto eof;
19553 else if (!ISASCII(c)) {
19558 int c2 = escaped_control_code(c);
19560 if (
ISCNTRL(c) || !(flags & ESCAPE_CONTROL)) {
19561 WARN_SPACE_CHAR(c2,
"\\M-");
19564 WARN_SPACE_CHAR(c2,
"\\C-\\M-");
19567 else if (
ISCNTRL(c))
goto eof;
19568 return ((c & 0xff) | 0x80);
19572 if ((c = nextc(p)) !=
'-') {
19576 if (flags & ESCAPE_CONTROL)
goto eof;
19577 if ((c = nextc(p))==
'\\') {
19578 switch (peekc(p)) {
19579 case 'u':
case 'U':
19583 c = read_escape(p, flags|ESCAPE_CONTROL, begin);
19587 else if (c == -1)
goto eof;
19588 else if (!ISASCII(c)) {
19593 int c2 = escaped_control_code(c);
19596 if (flags & ESCAPE_META) {
19597 WARN_SPACE_CHAR(c2,
"\\M-");
19600 WARN_SPACE_CHAR(c2,
"");
19604 if (flags & ESCAPE_META) {
19605 WARN_SPACE_CHAR(c2,
"\\M-\\C-");
19608 WARN_SPACE_CHAR(c2,
"\\C-");
19612 else if (
ISCNTRL(c))
goto eof;
19618 flush_string_content(p, p->enc, p->lex.pcur - begin);
19619 yyerror0(
"Invalid escape character syntax");
19620 dispatch_scan_event(p, tSTRING_CONTENT);
19635 int len = rb_enc_codelen(c, enc);
19636 rb_enc_mbcput(c, tokspace(p,
len), enc);
19644 const char *begin = p->lex.pcur;
19646 switch (c = nextc(p)) {
19650 case '0':
case '1':
case '2':
case '3':
19651 case '4':
case '5':
case '6':
case '7':
19653 ruby_scan_oct(--p->lex.pcur, 3, &numlen);
19654 if (numlen == 0)
goto eof;
19655 p->lex.pcur += numlen;
19656 tokcopy(p, (
int)numlen + 1);
19662 tok_hex(p, &numlen);
19663 if (numlen == 0)
return -1;
19664 tokcopy(p, (
int)numlen + 2);
19670 flush_string_content(p, p->enc, p->lex.pcur - begin);
19671 yyerror0(
"Invalid escape character syntax");
19683char_to_option(
int c)
19689 val = RE_ONIG_OPTION_IGNORECASE;
19692 val = RE_ONIG_OPTION_EXTEND;
19695 val = RE_ONIG_OPTION_MULTILINE;
19704#define ARG_ENCODING_FIXED 16
19705#define ARG_ENCODING_NONE 32
19706#define ENC_ASCII8BIT 1
19707#define ENC_EUC_JP 2
19708#define ENC_Windows_31J 3
19712char_to_option_kcode(
int c,
int *option,
int *kcode)
19718 *kcode = ENC_ASCII8BIT;
19719 return (*option = ARG_ENCODING_NONE);
19721 *kcode = ENC_EUC_JP;
19724 *kcode = ENC_Windows_31J;
19731 return (*option = char_to_option(c));
19733 *option = ARG_ENCODING_FIXED;
19746 while (c = nextc(p),
ISALPHA(c)) {
19748 options |= RE_OPTION_ONCE;
19750 else if (char_to_option_kcode(c, &opt, &kc)) {
19752 if (kc != ENC_ASCII8BIT) kcode = c;
19766 YYLTYPE loc = RUBY_INIT_YYLLOC();
19768 compile_error(p,
"unknown regexp option%s - %*s",
19769 toklen(p) > 1 ?
"s" :
"", toklen(p), tok(p));
19770 parser_show_error_line(p, &loc);
19772 return options | RE_OPTION_ENCODING(kcode);
19778 int len = parser_precise_mbclen(p, p->lex.pcur-1);
19779 if (
len < 0)
return -1;
19781 p->lex.pcur += --
len;
19782 if (
len > 0) tokcopy(p,
len);
19787simple_re_meta(
int c)
19790 case '$':
case '*':
case '+':
case '.':
19791 case '?':
case '^':
case '|':
19792 case ')':
case ']':
case '}':
case '>':
19800parser_update_heredoc_indent(
struct parser_params *p,
int c)
19802 if (p->heredoc_line_indent == -1) {
19803 if (c ==
'\n') p->heredoc_line_indent = 0;
19807 p->heredoc_line_indent++;
19810 else if (c ==
'\t') {
19811 int w = (p->heredoc_line_indent / TAB_WIDTH) + 1;
19812 p->heredoc_line_indent = w * TAB_WIDTH;
19815 else if (c !=
'\n') {
19816 if (p->heredoc_indent > p->heredoc_line_indent) {
19817 p->heredoc_indent = p->heredoc_line_indent;
19819 p->heredoc_line_indent = -1;
19823 p->heredoc_line_indent = 0;
19830parser_mixed_error(
struct parser_params *p, rb_encoding *enc1, rb_encoding *enc2)
19832 YYLTYPE loc = RUBY_INIT_YYLLOC();
19833 const char *n1 = rb_enc_name(enc1), *n2 = rb_enc_name(enc2);
19834 compile_error(p,
"%s mixed within %s source", n1, n2);
19835 parser_show_error_line(p, &loc);
19839parser_mixed_escape(
struct parser_params *p,
const char *beg, rb_encoding *enc1, rb_encoding *enc2)
19841 const char *pos = p->lex.pcur;
19843 parser_mixed_error(p, enc1, enc2);
19848nibble_char_upper(
unsigned int c)
19851 return c + (c < 10 ?
'0' :
'A' - 10);
19856 int func,
int term,
int paren,
long *nest,
19857 rb_encoding **encp, rb_encoding **enc)
19860 bool erred =
false;
19862 const int heredoc_end = (p->heredoc_end ? p->heredoc_end + 1 : 0);
19863 int top_of_line = FALSE;
19866#define mixed_error(enc1, enc2) \
19867 (void)(erred || (parser_mixed_error(p, enc1, enc2), erred = true))
19868#define mixed_escape(beg, enc1, enc2) \
19869 (void)(erred || (parser_mixed_escape(p, beg, enc1, enc2), erred = true))
19871 while ((c = nextc(p)) != -1) {
19872 if (p->heredoc_indent > 0) {
19873 parser_update_heredoc_indent(p, c);
19876 if (top_of_line && heredoc_end == p->ruby_sourceline) {
19882 if (paren && c == paren) {
19885 else if (c == term) {
19886 if (!nest || !*nest) {
19892 else if ((func & STR_FUNC_EXPAND) && c ==
'#' && !lex_eol_p(p)) {
19893 unsigned char c2 = *p->lex.pcur;
19894 if (c2 ==
'$' || c2 ==
'@' || c2 ==
'{') {
19899 else if (c ==
'\\') {
19903 if (func & STR_FUNC_QWORDS)
break;
19904 if (func & STR_FUNC_EXPAND) {
19905 if (!(func & STR_FUNC_INDENT) || (p->heredoc_indent < 0))
19916 if (func & STR_FUNC_ESCAPE) tokadd(p, c);
19920 if ((func & STR_FUNC_EXPAND) == 0) {
19924 tokadd_utf8(p, enc, term,
19925 func & STR_FUNC_SYMBOL,
19926 func & STR_FUNC_REGEXP);
19930 if (c == -1)
return -1;
19932 if ((func & STR_FUNC_EXPAND) == 0) tokadd(p,
'\\');
19935 if (func & STR_FUNC_REGEXP) {
19941 c = read_escape(p, 0, p->lex.pcur - 1);
19946 *t++ = nibble_char_upper(c >> 4);
19947 *t++ = nibble_char_upper(c);
19952 if (c == term && !simple_re_meta(c)) {
19957 if ((c = tokadd_escape(p)) < 0)
19959 if (*enc && *enc != *encp) {
19960 mixed_escape(p->lex.ptok+2, *enc, *encp);
19964 else if (func & STR_FUNC_EXPAND) {
19966 if (func & STR_FUNC_ESCAPE) tokadd(p,
'\\');
19967 c = read_escape(p, 0, p->lex.pcur - 1);
19969 else if ((func & STR_FUNC_QWORDS) &&
ISSPACE(c)) {
19972 else if (c != term && !(paren && c == paren)) {
19979 else if (!parser_isascii(p)) {
19984 else if (*enc != *encp) {
19985 mixed_error(*enc, *encp);
19988 if (tokadd_mbchar(p, c) == -1)
return -1;
19991 else if ((func & STR_FUNC_QWORDS) &&
ISSPACE(c)) {
19999 else if (*enc != *encp) {
20000 mixed_error(*enc, *encp);
20006 top_of_line = (c ==
'\n');
20010 if (*enc) *encp = *enc;
20014#define NEW_STRTERM(func, term, paren) new_strterm(p, func, term, paren)
20017flush_string_content(
struct parser_params *p, rb_encoding *enc,
size_t back)
20019 p->lex.pcur -= back;
20020 if (has_delayed_token(p)) {
20021 ptrdiff_t
len = p->lex.pcur - p->lex.ptok;
20023 rb_parser_enc_str_buf_cat(p, p->delayed.token, p->lex.ptok,
len, enc);
20024 p->delayed.end_line = p->ruby_sourceline;
20025 p->delayed.end_col =
rb_long2int(p->lex.pcur - p->lex.pbeg);
20027 dispatch_delayed_token(p, tSTRING_CONTENT);
20028 p->lex.ptok = p->lex.pcur;
20030 dispatch_scan_event(p, tSTRING_CONTENT);
20031 p->lex.pcur += back;
20037#define BIT(c, idx) (((c) / 32 - 1 == idx) ? (1U << ((c) % 32)) : 0)
20038#define SPECIAL_PUNCT(idx) ( \
20039 BIT('~', idx) | BIT('*', idx) | BIT('$', idx) | BIT('?', idx) | \
20040 BIT('!', idx) | BIT('@', idx) | BIT('/', idx) | BIT('\\', idx) | \
20041 BIT(';', idx) | BIT(',', idx) | BIT('.', idx) | BIT('=', idx) | \
20042 BIT(':', idx) | BIT('<', idx) | BIT('>', idx) | BIT('\"', idx) | \
20043 BIT('&', idx) | BIT('`', idx) | BIT('\'', idx) | BIT('+', idx) | \
20045const uint_least32_t ruby_global_name_punct_bits[] = {
20051#undef SPECIAL_PUNCT
20054static enum yytokentype
20055parser_peek_variable_name(struct parser_params *p)
20058 const char *ptr = p->lex.pcur;
20060 if (lex_eol_ptr_n_p(p, ptr, 1)) return 0;
20064 if ((c = *ptr) == '-') {
20065 if (lex_eol_ptr_p(p, ++ptr)) return 0;
20068 else if (is_global_name_punct(c) || ISDIGIT(c)) {
20069 return tSTRING_DVAR;
20073 if ((c = *ptr) == '@') {
20074 if (lex_eol_ptr_p(p, ++ptr)) return 0;
20080 p->command_start = TRUE;
20081 yylval.state = p->lex.state;
20082 return tSTRING_DBEG;
20086 if (!ISASCII(c) || c == '_' || ISALPHA(c))
20087 return tSTRING_DVAR;
20091#define IS_ARG() IS_lex_state(EXPR_ARG_ANY)
20092#define IS_END() IS_lex_state(EXPR_END_ANY)
20093#define IS_BEG() (IS_lex_state(EXPR_BEG_ANY) || IS_lex_state_all(EXPR_ARG|EXPR_LABELED))
20094#define IS_SPCARG(c) (IS_ARG() && space_seen && !ISSPACE(c))
20095#define IS_LABEL_POSSIBLE() (\
20096 (IS_lex_state(EXPR_LABEL|EXPR_ENDFN) && !cmd_state) || \
20098#define IS_LABEL_SUFFIX(n) (peek_n(p, ':',(n)) && !peek_n(p, ':', (n)+1))
20099#define IS_AFTER_OPERATOR() IS_lex_state(EXPR_FNAME | EXPR_DOT)
20101static inline enum yytokentype
20102parser_string_term(struct parser_params *p, int func)
20104 xfree(p->lex.strterm);
20105 p->lex.strterm = 0;
20106 if (func & STR_FUNC_REGEXP) {
20107 set_yylval_num(regx_options(p));
20108 dispatch_scan_event(p, tREGEXP_END);
20109 SET_LEX_STATE(EXPR_END);
20110 return tREGEXP_END;
20112 if ((func & STR_FUNC_LABEL) && IS_LABEL_SUFFIX(0)) {
20114 SET_LEX_STATE(EXPR_ARG|EXPR_LABELED);
20117 SET_LEX_STATE(EXPR_END);
20118 return tSTRING_END;
20121static enum yytokentype
20122parse_string(struct parser_params *p, rb_strterm_literal_t *quote)
20124 int func = quote->func;
20125 int term = quote->term;
20126 int paren = quote->paren;
20128 rb_encoding *enc = p->enc;
20129 rb_encoding *base_enc = 0;
20130 rb_parser_string_t *lit;
20132 if (func & STR_FUNC_TERM) {
20133 if (func & STR_FUNC_QWORDS) nextc(p); /* delayed term */
20134 SET_LEX_STATE(EXPR_END);
20135 xfree(p->lex.strterm);
20136 p->lex.strterm = 0;
20137 return func & STR_FUNC_REGEXP ? tREGEXP_END : tSTRING_END;
20140 if ((func & STR_FUNC_QWORDS) && ISSPACE(c)) {
20141 while (c != '\n' && ISSPACE(c = nextc(p)));
20144 if (func & STR_FUNC_LIST) {
20145 quote->func &= ~STR_FUNC_LIST;
20148 if (c == term && !quote->nest) {
20149 if (func & STR_FUNC_QWORDS) {
20150 quote->func |= STR_FUNC_TERM;
20151 pushback(p, c); /* dispatch the term at tSTRING_END */
20152 add_delayed_token(p, p->lex.ptok, p->lex.pcur);
20155 return parser_string_term(p, func);
20158 if (!ISSPACE(c)) pushback(p, c);
20159 add_delayed_token(p, p->lex.ptok, p->lex.pcur);
20163 if ((func & STR_FUNC_EXPAND) && c == '#') {
20164 enum yytokentype t = parser_peek_variable_name(p);
20170 if (tokadd_string(p, func, term, paren, "e->nest,
20171 &enc, &base_enc) == -1) {
20174# define unterminated_literal(mesg) yyerror0(mesg)
20176# define unterminated_literal(mesg) compile_error(p, mesg)
20178 literal_flush(p, p->lex.pcur);
20179 if (func & STR_FUNC_QWORDS) {
20180 /* no content to add, bailing out here */
20181 unterminated_literal("unterminated list meets end of file");
20182 xfree(p->lex.strterm);
20183 p->lex.strterm = 0;
20184 return tSTRING_END;
20186 if (func & STR_FUNC_REGEXP) {
20187 unterminated_literal("unterminated regexp meets end of file");
20190 unterminated_literal("unterminated string meets end of file");
20192 quote->func |= STR_FUNC_TERM;
20197 lit = STR_NEW3(tok(p), toklen(p), enc, func);
20198 set_yylval_str(lit);
20199 flush_string_content(p, enc, 0);
20201 return tSTRING_CONTENT;
20204static enum yytokentype
20205heredoc_identifier(struct parser_params *p)
20208 * term_len is length of `<<"END"` except `END`,
20209 * in this case term_len is 4 (<, <, " and ").
20211 long len, offset = p->lex.pcur - p->lex.pbeg;
20212 int c = nextc(p), term, func = 0, quote = 0;
20213 enum yytokentype token = tSTRING_BEG;
20218 func = STR_FUNC_INDENT;
20221 else if (c == '~') {
20223 func = STR_FUNC_INDENT;
20229 func |= str_squote; goto quoted;
20231 func |= str_dquote;
goto quoted;
20233 token = tXSTRING_BEG;
20234 func |= str_xquote;
goto quoted;
20241 while ((c = nextc(p)) != term) {
20242 if (c == -1 || c ==
'\r' || c ==
'\n') {
20243 yyerror0(
"unterminated here document identifier");
20250 if (!parser_is_identchar(p)) {
20252 if (func & STR_FUNC_INDENT) {
20253 pushback(p, indent > 0 ?
'~' :
'-');
20257 func |= str_dquote;
20259 int n = parser_precise_mbclen(p, p->lex.pcur-1);
20260 if (n < 0)
return 0;
20261 p->lex.pcur += --n;
20262 }
while ((c = nextc(p)) != -1 && parser_is_identchar(p));
20267 len = p->lex.pcur - (p->lex.pbeg + offset) - quote;
20268 if ((
unsigned long)
len >= HERETERM_LENGTH_MAX)
20269 yyerror0(
"too long here document identifier");
20270 dispatch_scan_event(p, tHEREDOC_BEG);
20273 p->lex.strterm = new_heredoc(p);
20274 rb_strterm_heredoc_t *here = &p->lex.strterm->u.heredoc;
20275 here->offset = offset;
20276 here->sourceline = p->ruby_sourceline;
20277 here->length = (unsigned)
len;
20278 here->quote = quote;
20280 here->lastline = p->lex.lastline;
20283 p->heredoc_indent = indent;
20284 p->heredoc_line_indent = 0;
20289heredoc_restore(
struct parser_params *p, rb_strterm_heredoc_t *here)
20291 rb_parser_string_t *line;
20292 rb_strterm_t *term = p->lex.strterm;
20294 p->lex.strterm = 0;
20295 line = here->lastline;
20296 p->lex.lastline = line;
20297 p->lex.pbeg = PARSER_STRING_PTR(line);
20298 p->lex.pend = p->lex.pbeg + PARSER_STRING_LEN(line);
20299 p->lex.pcur = p->lex.pbeg + here->offset + here->length + here->quote;
20300 p->lex.ptok = p->lex.pbeg + here->offset - here->quote;
20301 p->heredoc_end = p->ruby_sourceline;
20302 p->ruby_sourceline = (int)here->sourceline;
20303 if (p->eofp) p->lex.nextline = AFTER_HEREDOC_WITHOUT_TERMINATOR;
20309dedent_string_column(
const char *str,
long len,
int width)
20313 for (i = 0; i <
len && col < width; i++) {
20314 if (str[i] ==
' ') {
20317 else if (str[i] ==
'\t') {
20318 int n = TAB_WIDTH * (col / TAB_WIDTH + 1);
20319 if (n > width)
break;
20331dedent_string(
struct parser_params *p, rb_parser_string_t *
string,
int width)
20337 len = PARSER_STRING_LEN(
string);
20338 str = PARSER_STRING_PTR(
string);
20340 i = dedent_string_column(str,
len, width);
20343 rb_parser_str_modify(
string);
20344 str = PARSER_STRING_PTR(
string);
20345 if (PARSER_STRING_LEN(
string) !=
len)
20346 rb_fatal(
"literal string changed: %s", PARSER_STRING_PTR(
string));
20348 rb_parser_str_set_len(p,
string,
len - i);
20355 NODE *node, *str_node, *prev_node;
20356 int indent = p->heredoc_indent;
20357 rb_parser_string_t *prev_lit = 0;
20359 if (indent <= 0)
return root;
20360 if (!root)
return root;
20362 prev_node = node = str_node = root;
20363 if (nd_type_p(root, NODE_LIST)) str_node = RNODE_LIST(root)->nd_head;
20366 rb_parser_string_t *lit = RNODE_STR(str_node)->string;
20367 if (nd_fl_newline(str_node)) {
20368 dedent_string(p, lit, indent);
20373 else if (!literal_concat0(p, prev_lit, lit)) {
20377 NODE *end = RNODE_LIST(node)->as.nd_end;
20378 node = RNODE_LIST(prev_node)->nd_next = RNODE_LIST(node)->nd_next;
20380 if (nd_type_p(prev_node, NODE_DSTR))
20381 nd_set_type(prev_node, NODE_STR);
20384 RNODE_LIST(node)->as.nd_end = end;
20389 while ((nd_type_p(node, NODE_LIST) || nd_type_p(node, NODE_DSTR)) && (node = RNODE_LIST(prev_node = node)->nd_next) != 0) {
20391 if (!nd_type_p(node, NODE_LIST))
break;
20392 if ((str_node = RNODE_LIST(node)->nd_head) != 0) {
20393 enum node_type
type = nd_type(str_node);
20394 if (
type == NODE_STR ||
type == NODE_DSTR)
break;
20404whole_match_p(
struct parser_params *p,
const char *eos,
long len,
int indent)
20406 const char *beg = p->lex.pbeg;
20407 const char *
ptr = p->lex.pend;
20409 if (
ptr - beg <
len)
return FALSE;
20410 if (
ptr > beg &&
ptr[-1] ==
'\n') {
20411 if (--
ptr > beg &&
ptr[-1] ==
'\r') --
ptr;
20412 if (
ptr - beg <
len)
return FALSE;
20414 if (strncmp(eos,
ptr -=
len,
len))
return FALSE;
20424 if (strncmp(p->lex.pcur, word,
len))
return 0;
20425 if (lex_eol_n_p(p,
len))
return 1;
20426 int c = (
unsigned char)p->lex.pcur[
len];
20429 case '\0':
case '\004':
case '\032':
return 1;
20434#define NUM_SUFFIX_R (1<<0)
20435#define NUM_SUFFIX_I (1<<1)
20436#define NUM_SUFFIX_ALL 3
20442 const char *lastp = p->lex.pcur;
20444 while ((c = nextc(p)) != -1) {
20445 if ((mask & NUM_SUFFIX_I) && c ==
'i') {
20446 result |= (mask & NUM_SUFFIX_I);
20447 mask &= ~NUM_SUFFIX_I;
20449 mask &= ~NUM_SUFFIX_R;
20452 if ((mask & NUM_SUFFIX_R) && c ==
'r') {
20453 result |= (mask & NUM_SUFFIX_R);
20454 mask &= ~NUM_SUFFIX_R;
20457 if (!ISASCII(c) ||
ISALPHA(c) || c ==
'_') {
20458 p->lex.pcur = lastp;
20467static enum yytokentype
20468set_number_literal(
struct parser_params *p,
enum yytokentype
type,
int suffix,
int base,
int seen_point)
20470 enum rb_numeric_type numeric_type = integer_literal;
20472 if (
type == tFLOAT) {
20473 numeric_type = float_literal;
20476 if (suffix & NUM_SUFFIX_R) {
20478 numeric_type = rational_literal;
20480 if (suffix & NUM_SUFFIX_I) {
20486 set_yylval_node(NEW_INTEGER(
strdup(tok(p)), base, &_cur_loc));
20489 set_yylval_node(NEW_FLOAT(
strdup(tok(p)), &_cur_loc));
20492 set_yylval_node(NEW_RATIONAL(
strdup(tok(p)), base, seen_point, &_cur_loc));
20495 set_yylval_node(NEW_IMAGINARY(
strdup(tok(p)), base, seen_point, numeric_type, &_cur_loc));
20496 (void)numeric_type;
20499 rb_bug(
"unexpected token: %d",
type);
20501 SET_LEX_STATE(EXPR_END);
20505#define dispatch_heredoc_end(p) parser_dispatch_heredoc_end(p, __LINE__)
20507parser_dispatch_heredoc_end(
struct parser_params *p,
int line)
20509 if (has_delayed_token(p))
20510 dispatch_delayed_token(p, tSTRING_CONTENT);
20513 VALUE str = STR_NEW(p->lex.ptok, p->lex.pend - p->lex.ptok);
20514 ripper_dispatch1(p, ripper_token2eventid(tHEREDOC_END), str);
20516 if (p->keep_tokens) {
20517 rb_parser_string_t *str = rb_parser_encoding_string_new(p, p->lex.ptok, p->lex.pend - p->lex.ptok, p->enc);
20518 RUBY_SET_YYLLOC_OF_HEREDOC_END(*p->yylloc);
20519 parser_append_tokens(p, str, tHEREDOC_END, line);
20523 RUBY_SET_YYLLOC_FROM_STRTERM_HEREDOC(*p->yylloc);
20528static enum yytokentype
20529here_document(
struct parser_params *p, rb_strterm_heredoc_t *here)
20531 int c, func, indent = 0;
20532 const char *eos, *
ptr, *ptr_end;
20534 rb_parser_string_t *str = 0;
20535 rb_encoding *enc = p->enc;
20536 rb_encoding *base_enc = 0;
20542 eos = PARSER_STRING_PTR(here->lastline) + here->offset;
20543 len = here->length;
20544 indent = (func = here->func) & STR_FUNC_INDENT;
20546 if ((c = nextc(p)) == -1) {
20549 if (!has_delayed_token(p)) {
20550 dispatch_scan_event(p, tSTRING_CONTENT);
20552 else if (p->delayed.end_line + 1 == p->ruby_sourceline) {
20553 if ((
len = p->lex.pcur - p->lex.ptok) > 0) {
20554 if (!(func & STR_FUNC_REGEXP)) {
20556 rb_str_coderange_scan_restartable(p->lex.ptok, p->lex.pcur, enc, &cr);
20558 rb_is_usascii_enc(p->enc) &&
20559 enc != rb_utf8_encoding()) {
20560 enc = rb_ascii8bit_encoding();
20563 rb_parser_enc_str_buf_cat(p, p->delayed.token, p->lex.ptok,
len, enc);
20565 dispatch_delayed_token(p, tSTRING_CONTENT);
20568 dispatch_delayed_token(p, tSTRING_CONTENT);
20569 dispatch_scan_event(p, tSTRING_CONTENT);
20573 heredoc_restore(p, &p->lex.strterm->u.heredoc);
20574 compile_error(p,
"can't find string \"%.*s\" anywhere before EOF",
20577 SET_LEX_STATE(EXPR_END);
20578 return tSTRING_END;
20584 else if (p->heredoc_line_indent == -1) {
20589 p->heredoc_line_indent = 0;
20591 else if (whole_match_p(p, eos,
len, indent)) {
20592 dispatch_heredoc_end(p);
20594 heredoc_restore(p, &p->lex.strterm->u.heredoc);
20596 SET_LEX_STATE(EXPR_END);
20597 return tSTRING_END;
20600 if (!(func & STR_FUNC_EXPAND)) {
20602 ptr = PARSER_STRING_PTR(p->lex.lastline);
20603 ptr_end = p->lex.pend;
20604 if (ptr_end >
ptr) {
20605 switch (ptr_end[-1]) {
20607 if (--ptr_end ==
ptr || ptr_end[-1] !=
'\r') {
20616 if (p->heredoc_indent > 0) {
20618 while (
ptr + i < ptr_end && parser_update_heredoc_indent(p,
ptr[i]))
20620 p->heredoc_line_indent = 0;
20624 parser_str_cat(str,
ptr, ptr_end -
ptr);
20626 str = rb_parser_encoding_string_new(p,
ptr, ptr_end -
ptr, enc);
20627 if (!lex_eol_ptr_p(p, ptr_end)) parser_str_cat_cstr(str,
"\n");
20629 if (p->heredoc_indent > 0) {
20632 if (nextc(p) == -1) {
20634 rb_parser_string_free(p, str);
20639 }
while (!whole_match_p(p, eos,
len, indent));
20645 enum yytokentype t = parser_peek_variable_name(p);
20646 if (p->heredoc_line_indent != -1) {
20647 if (p->heredoc_indent > p->heredoc_line_indent) {
20648 p->heredoc_indent = p->heredoc_line_indent;
20650 p->heredoc_line_indent = -1;
20659 if ((c = tokadd_string(p, func,
'\n', 0, NULL, &enc, &base_enc)) == -1) {
20660 if (p->eofp)
goto error;
20664 if (c ==
'\\') p->heredoc_line_indent = -1;
20666 str = STR_NEW3(tok(p), toklen(p), enc, func);
20668 set_yylval_str(str);
20670 if (bol) nd_set_fl_newline(yylval.node);
20672 flush_string_content(p, enc, 0);
20673 return tSTRING_CONTENT;
20675 tokadd(p, nextc(p));
20676 if (p->heredoc_indent > 0) {
20681 if ((c = nextc(p)) == -1)
goto error;
20682 }
while (!whole_match_p(p, eos,
len, indent));
20683 str = STR_NEW3(tok(p), toklen(p), enc, func);
20685 dispatch_heredoc_end(p);
20686 heredoc_restore(p, &p->lex.strterm->u.heredoc);
20688 p->lex.strterm = NEW_STRTERM(func | STR_FUNC_TERM, 0, 0);
20691 s_value = p->s_value;
20693 set_yylval_str(str);
20695 set_parser_s_value(s_value);
20699 if (bol) nd_set_fl_newline(yylval.node);
20701 return tSTRING_CONTENT;
20711 rb_warning1(
"ambiguity between regexp and two divisions: wrap regexp in parentheses or add a space after '%c' operator", WARN_I(c));
20714 rb_warning1(
"ambiguous first argument; put parentheses or a space even after '%c' operator", WARN_I(c));
20727 switch (id_type(
id)) {
20731# define ERR(mesg) (yyerror0(mesg), Qtrue)
20733# define ERR(mesg) WARN_S(mesg)
20736 return ERR(
"formal argument cannot be a constant");
20738 return ERR(
"formal argument cannot be an instance variable");
20740 return ERR(
"formal argument cannot be a global variable");
20742 return ERR(
"formal argument cannot be a class variable");
20744 return ERR(
"formal argument must be local variable");
20747 shadowing_lvar(p,
id);
20755 return (dyna_in_block(p) && dvar_defined(p,
id)) || local_id(p,
id);
20764 if (
len > 5 && name[nlen =
len - 5] ==
'-') {
20765 if (rb_memcicmp(name + nlen + 1,
"unix", 4) == 0)
20768 if (
len > 4 && name[nlen =
len - 4] ==
'-') {
20769 if (rb_memcicmp(name + nlen + 1,
"dos", 3) == 0)
20771 if (rb_memcicmp(name + nlen + 1,
"mac", 3) == 0 &&
20772 !(
len == 8 && rb_memcicmp(name,
"utf8-mac",
len) == 0))
20780parser_set_encode(
struct parser_params *p,
const char *name)
20786 const char *wrong = 0;
20788 case 'e':
case 'E': wrong =
"external";
break;
20789 case 'i':
case 'I': wrong =
"internal";
break;
20790 case 'f':
case 'F': wrong =
"filesystem";
break;
20791 case 'l':
case 'L': wrong =
"locale";
break;
20793 if (wrong &&
STRCASECMP(name, wrong) == 0)
goto unknown;
20794 idx = rb_enc_find_index(name);
20797 excargs[1] = rb_sprintf(
"unknown encoding name: %s", name);
20799 excargs[0] = rb_eArgError;
20800 excargs[2] = rb_make_backtrace();
20801 rb_ary_unshift(excargs[2], rb_sprintf(
"%"PRIsVALUE
":%d", p->ruby_sourcefile_string, p->ruby_sourceline));
20802 VALUE exc = rb_make_exception(3, excargs);
20803 ruby_show_error_line(p, exc, &(YYLTYPE)RUBY_INIT_YYLLOC(), p->ruby_sourceline, p->lex.lastline);
20805 rb_ast_free(p->ast);
20810 enc = rb_enc_from_index(idx);
20811 if (!rb_enc_asciicompat(enc)) {
20812 excargs[1] = rb_sprintf(
"%s is not ASCII compatible", rb_enc_name(enc));
20817 if (p->debug_lines) {
20819 for (i = 0; i < p->debug_lines->len; i++) {
20820 rb_parser_enc_associate(p, p->debug_lines->data[i], enc);
20829 if (p->token_seen)
return false;
20830 return (p->line_count == (p->has_shebang ? 2 : 1));
20833typedef long (*rb_magic_comment_length_t)(
struct parser_params *p,
const char *name,
long len);
20834typedef void (*rb_magic_comment_setter_t)(
struct parser_params *p,
const char *name,
const char *val);
20836static int parser_invalid_pragma_value(
struct parser_params *p,
const char *name,
const char *val);
20839magic_comment_encoding(
struct parser_params *p,
const char *name,
const char *val)
20841 if (!comment_at_top(p)) {
20844 parser_set_encode(p, val);
20848parser_get_bool(
struct parser_params *p,
const char *name,
const char *val)
20851 case 't':
case 'T':
20856 case 'f':
case 'F':
20862 return parser_invalid_pragma_value(p, name, val);
20866parser_invalid_pragma_value(
struct parser_params *p,
const char *name,
const char *val)
20868 rb_warning2(
"invalid value for %s: %s", WARN_S(name), WARN_S(val));
20873parser_set_token_info(
struct parser_params *p,
const char *name,
const char *val)
20875 int b = parser_get_bool(p, name, val);
20876 if (b >= 0) p->token_info_enabled = b;
20880parser_set_frozen_string_literal(
struct parser_params *p,
const char *name,
const char *val)
20884 if (p->token_seen) {
20885 rb_warning1(
"'%s' is ignored after any tokens", WARN_S(name));
20889 b = parser_get_bool(p, name, val);
20892 p->frozen_string_literal = b;
20896parser_set_shareable_constant_value(
struct parser_params *p,
const char *name,
const char *val)
20898 for (
const char *s = p->lex.pbeg, *e = p->lex.pcur; s < e; ++s) {
20899 if (*s ==
' ' || *s ==
'\t')
continue;
20900 if (*s ==
'#')
break;
20901 rb_warning1(
"'%s' is ignored unless in comment-only line", WARN_S(name));
20906 case 'n':
case 'N':
20908 p->ctxt.shareable_constant_value = rb_parser_shareable_none;
20912 case 'l':
case 'L':
20914 p->ctxt.shareable_constant_value = rb_parser_shareable_literal;
20918 case 'e':
case 'E':
20919 if (
STRCASECMP(val,
"experimental_copy") == 0) {
20920 p->ctxt.shareable_constant_value = rb_parser_shareable_copy;
20923 if (
STRCASECMP(val,
"experimental_everything") == 0) {
20924 p->ctxt.shareable_constant_value = rb_parser_shareable_everything;
20929 parser_invalid_pragma_value(p, name, val);
20932# if WARN_PAST_SCOPE
20934parser_set_past_scope(
struct parser_params *p,
const char *name,
const char *val)
20936 int b = parser_get_bool(p, name, val);
20937 if (b >= 0) p->past_scope_enabled = b;
20943 rb_magic_comment_setter_t func;
20944 rb_magic_comment_length_t length;
20948 {
"coding", magic_comment_encoding, parser_encode_length},
20949 {
"encoding", magic_comment_encoding, parser_encode_length},
20950 {
"frozen_string_literal", parser_set_frozen_string_literal},
20951 {
"shareable_constant_value", parser_set_shareable_constant_value},
20952 {
"warn_indent", parser_set_token_info},
20953# if WARN_PAST_SCOPE
20954 {
"warn_past_scope", parser_set_past_scope},
20959magic_comment_marker(
const char *str,
long len)
20966 if (str[i-1] ==
'*' && str[i-2] ==
'-') {
20967 return str + i + 1;
20972 if (i + 1 >=
len)
return 0;
20973 if (str[i+1] !=
'-') {
20976 else if (str[i-1] !=
'-') {
20980 return str + i + 2;
20995 VALUE name = 0, val = 0;
20996 const char *beg, *end, *vbeg, *vend;
20997#define str_copy(_s, _p, _n) ((_s) \
20998 ? (void)(rb_str_resize((_s), (_n)), \
20999 MEMCPY(RSTRING_PTR(_s), (_p), char, (_n)), (_s)) \
21000 : (void)((_s) = STR_NEW((_p), (_n))))
21002 if (
len <= 7)
return FALSE;
21003 if (!!(beg = magic_comment_marker(str,
len))) {
21004 if (!(end = magic_comment_marker(beg, str +
len - beg)))
21008 len = end - beg - 3;
21018 for (;
len > 0 && *str; str++, --
len) {
21020 case '\'':
case '"':
case ':':
case ';':
21025 for (beg = str;
len > 0; str++, --
len) {
21027 case '\'':
case '"':
case ':':
case ';':
21038 if (!indicator)
return FALSE;
21042 do str++;
while (--
len > 0 &&
ISSPACE(*str));
21044 const char *tok_beg = str;
21046 for (vbeg = ++str; --
len > 0 && *str !=
'"'; str++) {
21047 if (*str ==
'\\') {
21059 for (vbeg = str;
len > 0 && *str !=
'"' && *str !=
';' && !
ISSPACE(*str); --
len, str++);
21062 const char *tok_end = str;
21064 while (
len > 0 && (*str ==
';' ||
ISSPACE(*str))) --
len, str++;
21068 if (
len)
return FALSE;
21072 str_copy(name, beg, n);
21073 s = RSTRING_PTR(name);
21074 for (i = 0; i < n; ++i) {
21075 if (s[i] ==
'-') s[i] =
'_';
21078 if (
STRNCASECMP(mc->name, s, n) == 0 && !mc->name[n]) {
21081 n = (*mc->length)(p, vbeg, n);
21083 str_copy(val, vbeg, n);
21084 p->lex.ptok = tok_beg;
21085 p->lex.pcur = tok_end;
21086 (*mc->func)(p, mc->name, RSTRING_PTR(val));
21089 }
while (++mc < magic_comments + numberof(magic_comments));
21091 str_copy(val, vbeg, vend - vbeg);
21100set_file_encoding(
struct parser_params *p,
const char *str,
const char *send)
21103 const char *beg = str;
21107 if (send - str <= 6)
return;
21109 case 'C':
case 'c': str += 6;
continue;
21110 case 'O':
case 'o': str += 5;
continue;
21111 case 'D':
case 'd': str += 4;
continue;
21112 case 'I':
case 'i': str += 3;
continue;
21113 case 'N':
case 'n': str += 2;
continue;
21114 case 'G':
case 'g': str += 1;
continue;
21115 case '=':
case ':':
21129 if (++str >= send)
return;
21132 if (*str !=
'=' && *str !=
':')
return;
21137 while ((*str ==
'-' || *str ==
'_' ||
ISALNUM(*str)) && ++str < send);
21138 s =
rb_str_new(beg, parser_encode_length(p, beg, str - beg));
21141 parser_set_encode(p, RSTRING_PTR(s));
21142 rb_str_resize(s, 0);
21148 int c = nextc0(p, FALSE);
21152 if (peek(p,
'!')) p->has_shebang = 1;
21155 if (!lex_eol_n_p(p, 2) &&
21156 (
unsigned char)p->lex.pcur[0] == 0xbb &&
21157 (
unsigned char)p->lex.pcur[1] == 0xbf) {
21158 p->enc = rb_utf8_encoding();
21161 if (p->debug_lines) {
21162 rb_parser_string_set_encoding(p->lex.lastline, p->enc);
21165 p->lex.pbeg = p->lex.pcur;
21174 p->enc = rb_parser_str_get_encoding(p->lex.lastline);
21178#define ambiguous_operator(tok, op, syn) ( \
21179 rb_warning0("'"op"' after local variable or literal is interpreted as binary operator"), \
21180 rb_warning0("even though it seems like "syn""))
21182#define ambiguous_operator(tok, op, syn) \
21183 dispatch2(operator_ambiguous, TOKEN2VAL(tok), rb_str_new_cstr(syn))
21185#define warn_balanced(tok, op, syn) ((void) \
21186 (!IS_lex_state_for(last_state, EXPR_CLASS|EXPR_DOT|EXPR_FNAME|EXPR_ENDFN) && \
21187 space_seen && !ISSPACE(c) && \
21188 (ambiguous_operator(tok, op, syn), 0)), \
21189 (enum yytokentype)(tok))
21191static enum yytokentype
21194 yyerror0(
"numeric literal without digits");
21195 if (peek(p,
'_')) nextc(p);
21197 return set_number_literal(p, tINTEGER, 0, 10, 0);
21200static enum yytokentype
21203 int is_float, seen_point, seen_e, nondigit;
21206 is_float = seen_point = seen_e = nondigit = 0;
21207 SET_LEX_STATE(EXPR_END);
21209 if (c ==
'-' || c ==
'+') {
21214 int start = toklen(p);
21216 if (c ==
'x' || c ==
'X') {
21222 if (nondigit)
break;
21229 }
while ((c = nextc(p)) != -1);
21233 if (toklen(p) == start) {
21234 return no_digits(p);
21236 else if (nondigit)
goto trailing_uc;
21237 suffix = number_literal_suffix(p, NUM_SUFFIX_ALL);
21238 return set_number_literal(p, tINTEGER, suffix, 16, 0);
21240 if (c ==
'b' || c ==
'B') {
21243 if (c ==
'0' || c ==
'1') {
21246 if (nondigit)
break;
21250 if (c !=
'0' && c !=
'1')
break;
21253 }
while ((c = nextc(p)) != -1);
21257 if (toklen(p) == start) {
21258 return no_digits(p);
21260 else if (nondigit)
goto trailing_uc;
21261 suffix = number_literal_suffix(p, NUM_SUFFIX_ALL);
21262 return set_number_literal(p, tINTEGER, suffix, 2, 0);
21264 if (c ==
'd' || c ==
'D') {
21270 if (nondigit)
break;
21277 }
while ((c = nextc(p)) != -1);
21281 if (toklen(p) == start) {
21282 return no_digits(p);
21284 else if (nondigit)
goto trailing_uc;
21285 suffix = number_literal_suffix(p, NUM_SUFFIX_ALL);
21286 return set_number_literal(p, tINTEGER, suffix, 10, 0);
21292 if (c ==
'o' || c ==
'O') {
21295 if (c == -1 || c ==
'_' || !
ISDIGIT(c)) {
21297 return no_digits(p);
21300 if (c >=
'0' && c <=
'7') {
21305 if (nondigit)
break;
21309 if (c <
'0' || c >
'9')
break;
21310 if (c >
'7')
goto invalid_octal;
21313 }
while ((c = nextc(p)) != -1);
21314 if (toklen(p) > start) {
21317 if (nondigit)
goto trailing_uc;
21318 suffix = number_literal_suffix(p, NUM_SUFFIX_ALL);
21319 return set_number_literal(p, tINTEGER, suffix, 8, 0);
21326 if (c >
'7' && c <=
'9') {
21328 yyerror0(
"Invalid octal digit");
21330 else if (c ==
'.' || c ==
'e' || c ==
'E') {
21336 suffix = number_literal_suffix(p, NUM_SUFFIX_ALL);
21337 return set_number_literal(p, tINTEGER, suffix, 10, 0);
21343 case '0':
case '1':
case '2':
case '3':
case '4':
21344 case '5':
case '6':
case '7':
case '8':
case '9':
21350 if (nondigit)
goto trailing_uc;
21351 if (seen_point || seen_e) {
21356 if (c0 == -1 || !
ISDIGIT(c0)) {
21362 seen_point = toklen(p);
21381 if (c !=
'-' && c !=
'+' && !
ISDIGIT(c)) {
21387 tokadd(p, nondigit);
21391 nondigit = (c ==
'-' || c ==
'+') ? c : 0;
21395 if (nondigit)
goto decode_num;
21409 literal_flush(p, p->lex.pcur - 1);
21410 YYLTYPE loc = RUBY_INIT_YYLLOC();
21411 compile_error(p,
"trailing '%c' in number", nondigit);
21412 parser_show_error_line(p, &loc);
21416 enum yytokentype
type = tFLOAT;
21418 suffix = number_literal_suffix(p, seen_e ? NUM_SUFFIX_I : NUM_SUFFIX_ALL);
21419 if (suffix & NUM_SUFFIX_R) {
21424 if (
errno == ERANGE) {
21425 rb_warning1(
"Float %s out of range", WARN_S(tok(p)));
21429 return set_number_literal(p,
type, suffix, 0, seen_point);
21431 suffix = number_literal_suffix(p, NUM_SUFFIX_ALL);
21432 return set_number_literal(p, tINTEGER, suffix, 10, 0);
21435static enum yytokentype
21440 rb_parser_string_t *lit;
21441 const char *start = p->lex.pcur;
21444 SET_LEX_STATE(EXPR_VALUE);
21449 compile_error(p,
"incomplete character syntax");
21452 if (rb_enc_isspace(c, p->enc)) {
21454 int c2 = escaped_control_code(c);
21456 WARN_SPACE_CHAR(c2,
"?");
21461 SET_LEX_STATE(EXPR_VALUE);
21466 int w = parser_precise_mbclen(p, start);
21467 if (is_identchar(p, start, p->lex.pend, p->enc) &&
21468 !(lex_eol_ptr_n_p(p, start, w) || !is_identchar(p, start + w, p->lex.pend, p->enc))) {
21470 const char *
ptr = start;
21472 int n = parser_precise_mbclen(p,
ptr);
21473 if (n < 0)
return -1;
21475 }
while (!lex_eol_ptr_p(p,
ptr) && is_identchar(p,
ptr, p->lex.pend, p->enc));
21476 rb_warn2(
"'?' just followed by '%.*s' is interpreted as" \
21477 " a conditional operator, put a space after '?'",
21478 WARN_I((
int)(
ptr - start)), WARN_S_L(start, (
ptr - start)));
21482 else if (c ==
'\\') {
21483 if (peek(p,
'u')) {
21485 enc = rb_utf8_encoding();
21486 tokadd_utf8(p, &enc, -1, 0, 0);
21488 else if (!ISASCII(c = peekc(p)) && c != -1) {
21490 if (tokadd_mbchar(p, c) == -1)
return 0;
21498 if (tokadd_mbchar(p, c) == -1)
return 0;
21501 lit = STR_NEW3(tok(p), toklen(p), enc, 0);
21502 set_yylval_str(lit);
21503 SET_LEX_STATE(EXPR_END);
21507static enum yytokentype
21508parse_percent(
struct parser_params *p,
const int space_seen,
const enum lex_state_e last_state)
21511 const char *ptok = p->lex.pcur;
21519 if (c == -1)
goto unterminated;
21522 if (!ISASCII(c))
goto unknown;
21527 if (rb_enc_isalnum(term, p->enc) || !parser_isascii(p)) {
21530 c = parser_precise_mbclen(p, p->lex.pcur);
21531 if (c < 0)
return 0;
21533 yyerror0(
"unknown type of %string");
21539 compile_error(p,
"unterminated quoted string meets end of file");
21543 if (term ==
'(') term =
')';
21544 else if (term ==
'[') term =
']';
21545 else if (term ==
'{') term =
'}';
21546 else if (term ==
'<') term =
'>';
21549 p->lex.ptok = ptok-1;
21552 p->lex.strterm = NEW_STRTERM(str_dquote, term, paren);
21553 return tSTRING_BEG;
21556 p->lex.strterm = NEW_STRTERM(str_squote, term, paren);
21557 return tSTRING_BEG;
21560 p->lex.strterm = NEW_STRTERM(str_dword, term, paren);
21564 p->lex.strterm = NEW_STRTERM(str_sword, term, paren);
21565 return tQWORDS_BEG;
21568 p->lex.strterm = NEW_STRTERM(str_dword, term, paren);
21569 return tSYMBOLS_BEG;
21572 p->lex.strterm = NEW_STRTERM(str_sword, term, paren);
21573 return tQSYMBOLS_BEG;
21576 p->lex.strterm = NEW_STRTERM(str_xquote, term, paren);
21577 return tXSTRING_BEG;
21580 p->lex.strterm = NEW_STRTERM(str_regexp, term, paren);
21581 return tREGEXP_BEG;
21584 p->lex.strterm = NEW_STRTERM(str_ssym, term, paren);
21585 SET_LEX_STATE(EXPR_FNAME|EXPR_FITEM);
21589 yyerror0(
"unknown type of %string");
21593 if ((c = nextc(p)) ==
'=') {
21594 set_yylval_id(
'%');
21595 SET_LEX_STATE(EXPR_BEG);
21598 if (IS_SPCARG(c) || (IS_lex_state(EXPR_FITEM) && c ==
's')) {
21601 SET_LEX_STATE(IS_AFTER_OPERATOR() ? EXPR_ARG : EXPR_BEG);
21603 return warn_balanced(
'%',
"%%",
"string literal");
21610 if (tokadd_mbchar(p, c) == -1)
return -1;
21612 }
while (parser_is_identchar(p));
21620 ID ident = TOK_INTERN();
21622 set_yylval_name(ident);
21632 unsigned long n = ruby_scan_digits(tok(p)+1, toklen(p)-1, 10, &
len, &overflow);
21633 const unsigned long nth_ref_max =
21638 if (overflow || n > nth_ref_max) {
21640 rb_warn1(
"'%s' is too big for a number variable, always nil", WARN_S(tok(p)));
21648static enum yytokentype
21649parse_gvar(
struct parser_params *p,
const enum lex_state_e last_state)
21651 const char *
ptr = p->lex.pcur;
21654 SET_LEX_STATE(EXPR_END);
21655 p->lex.ptok =
ptr - 1;
21661 if (parser_is_identchar(p)) {
21693 if (parser_is_identchar(p)) {
21694 if (tokadd_mbchar(p, c) == -1)
return 0;
21709 if (IS_lex_state_for(last_state, EXPR_FNAME)) {
21714 set_yylval_node(NEW_BACK_REF(c, &_cur_loc));
21717 case '1':
case '2':
case '3':
21718 case '4':
case '5':
case '6':
21719 case '7':
case '8':
case '9':
21724 }
while (c != -1 &&
ISDIGIT(c));
21726 if (IS_lex_state_for(last_state, EXPR_FNAME))
goto gvar;
21728 c = parse_numvar(p);
21729 set_yylval_node(NEW_NTH_REF(c, &_cur_loc));
21733 if (!parser_is_identchar(p)) {
21734 YYLTYPE loc = RUBY_INIT_YYLLOC();
21736 compile_error(p,
"'$' without identifiers is not allowed as a global variable name");
21740 compile_error(p,
"'$%c' is not allowed as a global variable name", c);
21742 parser_show_error_line(p, &loc);
21743 set_yylval_noname();
21751 if (tokadd_ident(p, c))
return 0;
21752 SET_LEX_STATE(EXPR_END);
21753 if (VALID_SYMNAME_P(tok(p), toklen(p), p->enc, ID_GLOBAL)) {
21757 compile_error(p,
"'%.*s' is not allowed as a global variable name", toklen(p), tok(p));
21758 set_yylval_noname();
21766 if (n < 0)
return false;
21768 if (DVARS_TERMINAL_P(p->lvtbl->args) || DVARS_TERMINAL_P(p->lvtbl->args->prev)) {
21771 if (p->max_numparam == ORDINAL_PARAM) {
21772 compile_error(p,
"ordinary parameter is defined");
21775 struct vtable *args = p->lvtbl->args;
21776 if (p->max_numparam < n) {
21777 p->max_numparam = n;
21779 while (n > args->pos) {
21780 vtable_add(args, NUMPARAM_IDX_TO_ID(args->pos+1));
21785static enum yytokentype
21786parse_atmark(
struct parser_params *p,
const enum lex_state_e last_state)
21788 const char *
ptr = p->lex.pcur;
21789 enum yytokentype result = tIVAR;
21790 register int c = nextc(p);
21793 p->lex.ptok =
ptr - 1;
21801 SET_LEX_STATE(IS_lex_state_for(last_state, EXPR_FNAME) ? EXPR_ENDFN : EXPR_END);
21802 if (c == -1 || !parser_is_identchar(p)) {
21804 RUBY_SET_YYLLOC(loc);
21805 if (result == tIVAR) {
21806 compile_error(p,
"'@' without identifiers is not allowed as an instance variable name");
21809 compile_error(p,
"'@@' without identifiers is not allowed as a class variable name");
21811 parser_show_error_line(p, &loc);
21812 set_yylval_noname();
21813 SET_LEX_STATE(EXPR_END);
21818 RUBY_SET_YYLLOC(loc);
21819 if (result == tIVAR) {
21820 compile_error(p,
"'@%c' is not allowed as an instance variable name", c);
21823 compile_error(p,
"'@@%c' is not allowed as a class variable name", c);
21825 parser_show_error_line(p, &loc);
21826 set_yylval_noname();
21827 SET_LEX_STATE(EXPR_END);
21831 if (tokadd_ident(p, c))
return 0;
21836static enum yytokentype
21839 enum yytokentype result;
21840 bool is_ascii =
true;
21841 const enum lex_state_e last_state = p->lex.state;
21843 int enforce_keyword_end = 0;
21846 if (!ISASCII(c)) is_ascii =
false;
21847 if (tokadd_mbchar(p, c) == -1)
return 0;
21849 }
while (parser_is_identchar(p));
21850 if ((c ==
'!' || c ==
'?') && !peek(p,
'=')) {
21854 else if (c ==
'=' && IS_lex_state(EXPR_FNAME) &&
21855 (!peek(p,
'~') && !peek(p,
'>') && (!peek(p,
'=') || (peek_n(p,
'>', 1))))) {
21856 result = tIDENTIFIER;
21860 result = tCONSTANT;
21865 if (IS_LABEL_POSSIBLE()) {
21866 if (IS_LABEL_SUFFIX(0)) {
21867 SET_LEX_STATE(EXPR_ARG|EXPR_LABELED);
21875 if (peek_end_expect_token_locations(p)) {
21876 const rb_code_position_t *end_pos;
21877 int lineno, column;
21878 int beg_pos = parser_column(p->lex.ptok - p->lex.pbeg);
21880 end_pos = peek_end_expect_token_locations(p)->pos;
21881 lineno = end_pos->lineno;
21882 column = end_pos->column;
21885 rb_parser_printf(p,
"enforce_keyword_end check. current: (%d, %d), peek: (%d, %d)\n",
21886 p->ruby_sourceline, beg_pos, lineno, column);
21889 if ((p->ruby_sourceline > lineno) && (beg_pos <= column)) {
21892 if ((IS_lex_state(EXPR_DOT)) && (kw = rb_reserved_word(tok(p), toklen(p))) && (kw && kw->id[0] == keyword_end)) {
21893 if (p->debug) rb_parser_printf(p,
"enforce_keyword_end is enabled\n");
21894 enforce_keyword_end = 1;
21900 if (is_ascii && (!IS_lex_state(EXPR_DOT) || enforce_keyword_end)) {
21904 kw = rb_reserved_word(tok(p), toklen(p));
21906 enum lex_state_e state = p->lex.state;
21907 if (IS_lex_state_for(state, EXPR_FNAME)) {
21908 SET_LEX_STATE(EXPR_ENDFN);
21909 set_yylval_name(rb_intern2(tok(p), toklen(p)));
21912 SET_LEX_STATE(kw->state);
21913 if (IS_lex_state(EXPR_BEG)) {
21914 p->command_start = TRUE;
21916 if (kw->id[0] == keyword_do) {
21917 if (lambda_beginning_p()) {
21918 p->lex.lpar_beg = -1;
21919 return keyword_do_LAMBDA;
21921 if (COND_P())
return keyword_do_cond;
21922 if (CMDARG_P() && !IS_lex_state_for(state, EXPR_CMDARG))
21923 return keyword_do_block;
21926 if (IS_lex_state_for(state, (EXPR_BEG | EXPR_LABELED | EXPR_CLASS)))
21929 if (kw->id[0] != kw->id[1])
21930 SET_LEX_STATE(EXPR_BEG | EXPR_LABEL);
21936 if (IS_lex_state(EXPR_BEG_ANY | EXPR_ARG_ANY | EXPR_DOT)) {
21938 SET_LEX_STATE(EXPR_CMDARG);
21941 SET_LEX_STATE(EXPR_ARG);
21944 else if (p->lex.state == EXPR_FNAME) {
21945 SET_LEX_STATE(EXPR_ENDFN);
21948 SET_LEX_STATE(EXPR_END);
21951 ident = tokenize_ident(p);
21952 if (result == tCONSTANT && is_local_id(ident)) result = tIDENTIFIER;
21953 if (!IS_lex_state_for(last_state, EXPR_DOT|EXPR_FNAME) &&
21954 (result == tIDENTIFIER) &&
21955 (lvar_defined(p, ident) || NUMPARAM_ID_P(ident))) {
21956 SET_LEX_STATE(EXPR_END|EXPR_LABEL);
21967 rb_warn0(
"encountered \\r in middle of line, treated as a mere space");
21971static enum yytokentype
21975 int space_seen = 0;
21978 enum lex_state_e last_state;
21979 int fallthru = FALSE;
21980 int token_seen = p->token_seen;
21982 if (p->lex.strterm) {
21983 if (strterm_is_heredoc(p->lex.strterm)) {
21985 return here_document(p, &p->lex.strterm->u.heredoc);
21989 return parse_string(p, &p->lex.strterm->u.literal);
21992 cmd_state = p->command_start;
21993 p->command_start = FALSE;
21994 p->token_seen = TRUE;
21999 last_state = p->lex.state;
22000 switch (c = nextc(p)) {
22007 if (p->end_expect_token_locations) {
22008 pop_end_expect_token_locations(p);
22009 RUBY_SET_YYLLOC_OF_DUMMY_END(*p->yylloc);
22014 RUBY_SET_YYLLOC(*p->yylloc);
22015 return END_OF_INPUT;
22021 case ' ':
case '\t':
case '\f':
22024 while ((c = nextc(p))) {
22029 case ' ':
case '\t':
case '\f':
22038 dispatch_scan_event(p, tSP);
22045 p->token_seen = token_seen;
22046 const char *
const pcur = p->lex.pcur, *
const ptok = p->lex.ptok;
22048 if (!parser_magic_comment(p, p->lex.pcur, p->lex.pend - p->lex.pcur)) {
22049 if (comment_at_top(p)) {
22050 set_file_encoding(p, p->lex.pcur, p->lex.pend);
22053 p->lex.pcur = pcur, p->lex.ptok = ptok;
22055 dispatch_scan_event(p, tCOMMENT);
22059 p->token_seen = token_seen;
22060 rb_parser_string_t *prevline = p->lex.lastline;
22061 c = (IS_lex_state(EXPR_BEG|EXPR_CLASS|EXPR_FNAME|EXPR_DOT) &&
22062 !IS_lex_state(EXPR_LABELED));
22063 if (c || IS_lex_state_all(EXPR_ARG|EXPR_LABELED)) {
22065 dispatch_scan_event(p, tIGNORED_NL);
22068 if (!c && p->ctxt.in_kwarg) {
22069 goto normal_newline;
22074 switch (c = nextc(p)) {
22075 case ' ':
case '\t':
case '\f':
case '\r':
22082 dispatch_scan_event(p, tSP);
22087 if (peek_word_at(p,
"nd", 2, 0))
goto leading_logical;
22090 if (peek_word_at(p,
"r", 1, 0))
goto leading_logical;
22093 if (peek(p,
'|') && !peek_n(p,
'=', 1))
goto leading_logical;
22096 if (peek(p,
'&') && !peek_n(p,
'=', 1)) {
22099 dispatch_delayed_token(p, tIGNORED_NL);
22105 dispatch_delayed_token(p, tIGNORED_NL);
22106 if (peek(p,
'.') == (c ==
'&')) {
22108 dispatch_scan_event(p, tSP);
22114 p->ruby_sourceline--;
22115 p->lex.nextline = p->lex.lastline;
22116 set_lastline(p, prevline);
22118 if (c == -1 && space_seen) {
22119 dispatch_scan_event(p, tSP);
22124 RUBY_SET_YYLLOC(*p->yylloc);
22126 goto normal_newline;
22130 p->command_start = TRUE;
22131 SET_LEX_STATE(EXPR_BEG);
22135 if ((c = nextc(p)) ==
'*') {
22136 if ((c = nextc(p)) ==
'=') {
22137 set_yylval_id(idPow);
22138 SET_LEX_STATE(EXPR_BEG);
22142 if (IS_SPCARG(c)) {
22143 rb_warning0(
"'**' interpreted as argument prefix");
22146 else if (IS_BEG()) {
22150 c = warn_balanced((
enum ruby_method_ids)tPOW,
"**",
"argument prefix");
22155 set_yylval_id(
'*');
22156 SET_LEX_STATE(EXPR_BEG);
22160 if (IS_SPCARG(c)) {
22161 rb_warning0(
"'*' interpreted as argument prefix");
22164 else if (IS_BEG()) {
22168 c = warn_balanced(
'*',
"*",
"argument prefix");
22171 SET_LEX_STATE(IS_AFTER_OPERATOR() ? EXPR_ARG : EXPR_BEG);
22176 if (IS_AFTER_OPERATOR()) {
22177 SET_LEX_STATE(EXPR_ARG);
22183 SET_LEX_STATE(EXPR_BEG);
22197 if (word_match_p(p,
"begin", 5)) {
22198 int first_p = TRUE;
22201 dispatch_scan_event(p, tEMBDOC_BEG);
22205 dispatch_scan_event(p, tEMBDOC);
22210 compile_error(p,
"embedded document meets end of file");
22211 return END_OF_INPUT;
22213 if (c ==
'=' && word_match_p(p,
"end", 3)) {
22219 dispatch_scan_event(p, tEMBDOC_END);
22224 SET_LEX_STATE(IS_AFTER_OPERATOR() ? EXPR_ARG : EXPR_BEG);
22225 if ((c = nextc(p)) ==
'=') {
22226 if ((c = nextc(p)) ==
'=') {
22235 else if (c ==
'>') {
22244 !IS_lex_state(EXPR_DOT | EXPR_CLASS) &&
22246 (!IS_ARG() || IS_lex_state(EXPR_LABELED) || space_seen)) {
22247 enum yytokentype token = heredoc_identifier(p);
22248 if (token)
return token < 0 ? 0 : token;
22250 if (IS_AFTER_OPERATOR()) {
22251 SET_LEX_STATE(EXPR_ARG);
22254 if (IS_lex_state(EXPR_CLASS))
22255 p->command_start = TRUE;
22256 SET_LEX_STATE(EXPR_BEG);
22259 if ((c = nextc(p)) ==
'>') {
22266 if ((c = nextc(p)) ==
'=') {
22267 set_yylval_id(idLTLT);
22268 SET_LEX_STATE(EXPR_BEG);
22272 return warn_balanced((
enum ruby_method_ids)tLSHFT,
"<<",
"here document");
22278 SET_LEX_STATE(IS_AFTER_OPERATOR() ? EXPR_ARG : EXPR_BEG);
22279 if ((c = nextc(p)) ==
'=') {
22283 if ((c = nextc(p)) ==
'=') {
22284 set_yylval_id(idGTGT);
22285 SET_LEX_STATE(EXPR_BEG);
22295 label = (IS_LABEL_POSSIBLE() ? str_label : 0);
22296 p->lex.strterm = NEW_STRTERM(str_dquote | label,
'"', 0);
22297 p->lex.ptok = p->lex.pcur-1;
22298 return tSTRING_BEG;
22301 if (IS_lex_state(EXPR_FNAME)) {
22302 SET_LEX_STATE(EXPR_ENDFN);
22305 if (IS_lex_state(EXPR_DOT)) {
22307 SET_LEX_STATE(EXPR_CMDARG);
22309 SET_LEX_STATE(EXPR_ARG);
22312 p->lex.strterm = NEW_STRTERM(str_xquote,
'`', 0);
22313 return tXSTRING_BEG;
22316 label = (IS_LABEL_POSSIBLE() ? str_label : 0);
22317 p->lex.strterm = NEW_STRTERM(str_squote | label,
'\'', 0);
22318 p->lex.ptok = p->lex.pcur-1;
22319 return tSTRING_BEG;
22322 return parse_qmark(p, space_seen);
22325 if ((c = nextc(p)) ==
'&') {
22326 SET_LEX_STATE(EXPR_BEG);
22327 if ((c = nextc(p)) ==
'=') {
22328 set_yylval_id(idANDOP);
22329 SET_LEX_STATE(EXPR_BEG);
22335 else if (c ==
'=') {
22336 set_yylval_id(
'&');
22337 SET_LEX_STATE(EXPR_BEG);
22340 else if (c ==
'.') {
22341 set_yylval_id(idANDDOT);
22342 SET_LEX_STATE(EXPR_DOT);
22346 if (IS_SPCARG(c)) {
22348 (c = peekc_n(p, 1)) == -1 ||
22349 !(c ==
'\'' || c ==
'"' ||
22350 is_identchar(p, (p->lex.pcur+1), p->lex.pend, p->enc))) {
22351 rb_warning0(
"'&' interpreted as argument prefix");
22355 else if (IS_BEG()) {
22359 c = warn_balanced(
'&',
"&",
"argument prefix");
22361 SET_LEX_STATE(IS_AFTER_OPERATOR() ? EXPR_ARG : EXPR_BEG);
22365 if ((c = nextc(p)) ==
'|') {
22366 SET_LEX_STATE(EXPR_BEG);
22367 if ((c = nextc(p)) ==
'=') {
22368 set_yylval_id(idOROP);
22369 SET_LEX_STATE(EXPR_BEG);
22373 if (IS_lex_state_for(last_state, EXPR_BEG)) {
22381 set_yylval_id(
'|');
22382 SET_LEX_STATE(EXPR_BEG);
22385 SET_LEX_STATE(IS_AFTER_OPERATOR() ? EXPR_ARG : EXPR_BEG|EXPR_LABEL);
22391 if (IS_AFTER_OPERATOR()) {
22392 SET_LEX_STATE(EXPR_ARG);
22400 set_yylval_id(
'+');
22401 SET_LEX_STATE(EXPR_BEG);
22404 if (IS_BEG() || (IS_SPCARG(c) && arg_ambiguous(p,
'+'))) {
22405 SET_LEX_STATE(EXPR_BEG);
22408 return parse_numeric(p,
'+');
22412 SET_LEX_STATE(EXPR_BEG);
22414 return warn_balanced(
'+',
"+",
"unary operator");
22418 if (IS_AFTER_OPERATOR()) {
22419 SET_LEX_STATE(EXPR_ARG);
22427 set_yylval_id(
'-');
22428 SET_LEX_STATE(EXPR_BEG);
22432 SET_LEX_STATE(EXPR_ENDFN);
22433 yylval.num = p->lex.lpar_beg;
22434 p->lex.lpar_beg = p->lex.paren_nest;
22437 if (IS_BEG() || (IS_SPCARG(c) && arg_ambiguous(p,
'-'))) {
22438 SET_LEX_STATE(EXPR_BEG);
22441 return tUMINUS_NUM;
22445 SET_LEX_STATE(EXPR_BEG);
22447 return warn_balanced(
'-',
"-",
"unary operator");
22450 int is_beg = IS_BEG();
22451 SET_LEX_STATE(EXPR_BEG);
22452 if ((c = nextc(p)) ==
'.') {
22453 if ((c = nextc(p)) ==
'.') {
22454 if (p->ctxt.in_argdef || IS_LABEL_POSSIBLE()) {
22455 SET_LEX_STATE(EXPR_ENDARG);
22458 if (p->lex.paren_nest == 0 && looking_at_eol_p(p)) {
22459 rb_warn0(
"... at EOL, should be parenthesized?");
22461 return is_beg ? tBDOT3 : tDOT3;
22464 return is_beg ? tBDOT2 : tDOT2;
22468 char prev = p->lex.pcur-1 > p->lex.pbeg ? *(p->lex.pcur-2) : 0;
22469 parse_numeric(p,
'.');
22471 yyerror0(
"unexpected fraction part after numeric literal");
22474 yyerror0(
"no .<digit> floating literal anymore; put 0 before dot");
22476 set_yylval_id(idNULL);
22477 SET_LEX_STATE(EXPR_END);
22478 p->lex.ptok = p->lex.pcur;
22481 set_yylval_id(
'.');
22482 SET_LEX_STATE(EXPR_DOT);
22486 case '0':
case '1':
case '2':
case '3':
case '4':
22487 case '5':
case '6':
case '7':
case '8':
case '9':
22488 return parse_numeric(p, c);
22493 SET_LEX_STATE(EXPR_ENDFN);
22494 p->lex.paren_nest--;
22500 SET_LEX_STATE(EXPR_END);
22501 p->lex.paren_nest--;
22506 if (!p->lex.brace_nest--)
return tSTRING_DEND;
22509 SET_LEX_STATE(EXPR_END);
22510 p->lex.paren_nest--;
22516 if (IS_BEG() || IS_lex_state(EXPR_CLASS) || IS_SPCARG(-1)) {
22517 SET_LEX_STATE(EXPR_BEG);
22520 set_yylval_id(idCOLON2);
22521 SET_LEX_STATE(EXPR_DOT);
22524 if (IS_END() ||
ISSPACE(c) || c ==
'#') {
22526 c = warn_balanced(
':',
":",
"symbol literal");
22527 SET_LEX_STATE(EXPR_BEG);
22532 p->lex.strterm = NEW_STRTERM(str_ssym, c, 0);
22535 p->lex.strterm = NEW_STRTERM(str_dsym, c, 0);
22541 SET_LEX_STATE(EXPR_FNAME);
22546 p->lex.strterm = NEW_STRTERM(str_regexp,
'/', 0);
22547 return tREGEXP_BEG;
22549 if ((c = nextc(p)) ==
'=') {
22550 set_yylval_id(
'/');
22551 SET_LEX_STATE(EXPR_BEG);
22555 if (IS_SPCARG(c)) {
22556 arg_ambiguous(p,
'/');
22557 p->lex.strterm = NEW_STRTERM(str_regexp,
'/', 0);
22558 return tREGEXP_BEG;
22560 SET_LEX_STATE(IS_AFTER_OPERATOR() ? EXPR_ARG : EXPR_BEG);
22561 return warn_balanced(
'/',
"/",
"regexp literal");
22564 if ((c = nextc(p)) ==
'=') {
22565 set_yylval_id(
'^');
22566 SET_LEX_STATE(EXPR_BEG);
22569 SET_LEX_STATE(IS_AFTER_OPERATOR() ? EXPR_ARG : EXPR_BEG);
22574 SET_LEX_STATE(EXPR_BEG);
22575 p->command_start = TRUE;
22579 SET_LEX_STATE(EXPR_BEG|EXPR_LABEL);
22583 if (IS_AFTER_OPERATOR()) {
22584 if ((c = nextc(p)) !=
'@') {
22587 SET_LEX_STATE(EXPR_ARG);
22590 SET_LEX_STATE(EXPR_BEG);
22598 else if (!space_seen) {
22601 else if (IS_ARG() || IS_lex_state_all(EXPR_END|EXPR_LABEL)) {
22604 else if (IS_lex_state(EXPR_ENDFN) && !lambda_beginning_p()) {
22605 rb_warning0(
"parentheses after method name is interpreted as "
22606 "an argument list, not a decomposed argument");
22608 p->lex.paren_nest++;
22611 SET_LEX_STATE(EXPR_BEG|EXPR_LABEL);
22615 p->lex.paren_nest++;
22616 if (IS_AFTER_OPERATOR()) {
22617 if ((c = nextc(p)) ==
']') {
22618 p->lex.paren_nest--;
22619 SET_LEX_STATE(EXPR_ARG);
22620 if ((c = nextc(p)) ==
'=') {
22627 SET_LEX_STATE(EXPR_ARG|EXPR_LABEL);
22630 else if (IS_BEG()) {
22633 else if (IS_ARG() && (space_seen || IS_lex_state(EXPR_LABELED))) {
22636 SET_LEX_STATE(EXPR_BEG|EXPR_LABEL);
22642 ++p->lex.brace_nest;
22643 if (lambda_beginning_p())
22645 else if (IS_lex_state(EXPR_LABELED))
22647 else if (IS_lex_state(EXPR_ARG_ANY | EXPR_END | EXPR_ENDFN))
22649 else if (IS_lex_state(EXPR_ENDARG))
22653 if (c != tLBRACE) {
22654 p->command_start = TRUE;
22655 SET_LEX_STATE(EXPR_BEG);
22658 SET_LEX_STATE(EXPR_BEG|EXPR_LABEL);
22660 ++p->lex.paren_nest;
22669 dispatch_scan_event(p, tSP);
22672 if (c ==
' ')
return tSP;
22678 return parse_percent(p, space_seen, last_state);
22681 return parse_gvar(p, last_state);
22684 return parse_atmark(p, last_state);
22687 if (was_bol(p) && whole_match_p(p,
"__END__", 7, 0)) {
22688 p->ruby__end__seen = 1;
22692 dispatch_scan_event(p, k__END__);
22694 return END_OF_INPUT;
22700 if (!parser_is_identchar(p)) {
22701 compile_error(p,
"Invalid char '\\x%02X' in expression", c);
22710 return parse_ident(p, c, cmd_state);
22713static enum yytokentype
22716 enum yytokentype t;
22720 p->yylloc = yylloc;
22722 t = parser_yylex(p);
22724 if (has_delayed_token(p))
22725 dispatch_delayed_token(p, t);
22726 else if (t != END_OF_INPUT)
22727 dispatch_scan_event(p, t);
22732#define LVAR_USED ((ID)1 << (sizeof(ID) * CHAR_BIT - 1))
22735node_new_internal(
struct parser_params *p,
enum node_type
type,
size_t size,
size_t alignment)
22737 NODE *n = rb_ast_newnode(p->ast,
type, size, alignment);
22739 rb_node_init(n,
type);
22744nd_set_loc(NODE *nd,
const YYLTYPE *loc)
22747 nd_set_line(nd, loc->beg_pos.lineno);
22752node_newnode(
struct parser_params *p,
enum node_type
type,
size_t size,
size_t alignment,
const rb_code_location_t *loc)
22754 NODE *n = node_new_internal(p,
type, size, alignment);
22756 nd_set_loc(n, loc);
22757 nd_set_node_id(n, parser_get_node_id(p));
22761#define NODE_NEWNODE(node_type, type, loc) (type *)(node_newnode(p, node_type, sizeof(type), RUBY_ALIGNOF(type), loc))
22763static rb_node_scope_t *
22764rb_node_scope_new(
struct parser_params *p, rb_node_args_t *nd_args, NODE *nd_body, NODE *nd_parent,
const YYLTYPE *loc)
22766 rb_ast_id_table_t *nd_tbl;
22767 nd_tbl = local_tbl(p);
22768 rb_node_scope_t *n = NODE_NEWNODE(NODE_SCOPE, rb_node_scope_t, loc);
22769 n->nd_tbl = nd_tbl;
22770 n->nd_body = nd_body;
22771 n->nd_parent = nd_parent;
22772 n->nd_args = nd_args;
22777static rb_node_scope_t *
22778rb_node_scope_new2(
struct parser_params *p, rb_ast_id_table_t *nd_tbl, rb_node_args_t *nd_args, NODE *nd_body, NODE *nd_parent,
const YYLTYPE *loc)
22780 rb_node_scope_t *n = NODE_NEWNODE(NODE_SCOPE, rb_node_scope_t, loc);
22781 n->nd_tbl = nd_tbl;
22782 n->nd_body = nd_body;
22783 n->nd_parent = nd_parent;
22784 n->nd_args = nd_args;
22789static rb_node_defn_t *
22790rb_node_defn_new(
struct parser_params *p,
ID nd_mid, NODE *nd_defn,
const YYLTYPE *loc)
22792 rb_node_defn_t *n = NODE_NEWNODE(NODE_DEFN, rb_node_defn_t, loc);
22793 n->nd_mid = nd_mid;
22794 n->nd_defn = nd_defn;
22799static rb_node_defs_t *
22800rb_node_defs_new(
struct parser_params *p, NODE *nd_recv,
ID nd_mid, NODE *nd_defn,
const YYLTYPE *loc)
22802 rb_node_defs_t *n = NODE_NEWNODE(NODE_DEFS, rb_node_defs_t, loc);
22803 n->nd_recv = nd_recv;
22804 n->nd_mid = nd_mid;
22805 n->nd_defn = nd_defn;
22810static rb_node_block_t *
22811rb_node_block_new(
struct parser_params *p, NODE *nd_head,
const YYLTYPE *loc)
22813 rb_node_block_t *n = NODE_NEWNODE(NODE_BLOCK, rb_node_block_t, loc);
22814 n->nd_head = nd_head;
22815 n->nd_end = (NODE *)n;
22821static rb_node_for_t *
22822rb_node_for_new(
struct parser_params *p, NODE *nd_iter, NODE *nd_body,
const YYLTYPE *loc,
const YYLTYPE *for_keyword_loc,
const YYLTYPE *in_keyword_loc,
const YYLTYPE *do_keyword_loc,
const YYLTYPE *end_keyword_loc)
22824 rb_node_for_t *n = NODE_NEWNODE(NODE_FOR, rb_node_for_t, loc);
22825 n->nd_body = nd_body;
22826 n->nd_iter = nd_iter;
22827 n->for_keyword_loc = *for_keyword_loc;
22828 n->in_keyword_loc = *in_keyword_loc;
22829 n->do_keyword_loc = *do_keyword_loc;
22830 n->end_keyword_loc = *end_keyword_loc;
22835static rb_node_for_masgn_t *
22836rb_node_for_masgn_new(
struct parser_params *p, NODE *nd_var,
const YYLTYPE *loc)
22838 rb_node_for_masgn_t *n = NODE_NEWNODE(NODE_FOR_MASGN, rb_node_for_masgn_t, loc);
22839 n->nd_var = nd_var;
22844static rb_node_retry_t *
22845rb_node_retry_new(
struct parser_params *p,
const YYLTYPE *loc)
22847 rb_node_retry_t *n = NODE_NEWNODE(NODE_RETRY, rb_node_retry_t, loc);
22852static rb_node_begin_t *
22853rb_node_begin_new(
struct parser_params *p, NODE *nd_body,
const YYLTYPE *loc)
22855 rb_node_begin_t *n = NODE_NEWNODE(NODE_BEGIN, rb_node_begin_t, loc);
22856 n->nd_body = nd_body;
22861static rb_node_rescue_t *
22862rb_node_rescue_new(
struct parser_params *p, NODE *nd_head, NODE *nd_resq, NODE *nd_else,
const YYLTYPE *loc)
22864 rb_node_rescue_t *n = NODE_NEWNODE(NODE_RESCUE, rb_node_rescue_t, loc);
22865 n->nd_head = nd_head;
22866 n->nd_resq = nd_resq;
22867 n->nd_else = nd_else;
22872static rb_node_resbody_t *
22873rb_node_resbody_new(
struct parser_params *p, NODE *nd_args, NODE *nd_exc_var, NODE *nd_body, NODE *nd_next,
const YYLTYPE *loc)
22875 rb_node_resbody_t *n = NODE_NEWNODE(NODE_RESBODY, rb_node_resbody_t, loc);
22876 n->nd_args = nd_args;
22877 n->nd_exc_var = nd_exc_var;
22878 n->nd_body = nd_body;
22879 n->nd_next = nd_next;
22884static rb_node_ensure_t *
22885rb_node_ensure_new(
struct parser_params *p, NODE *nd_head, NODE *nd_ensr,
const YYLTYPE *loc)
22887 rb_node_ensure_t *n = NODE_NEWNODE(NODE_ENSURE, rb_node_ensure_t, loc);
22888 n->nd_head = nd_head;
22889 n->nd_ensr = nd_ensr;
22895rb_node_and_new(
struct parser_params *p, NODE *nd_1st, NODE *nd_2nd,
const YYLTYPE *loc,
const YYLTYPE *operator_loc)
22898 n->nd_1st = nd_1st;
22899 n->nd_2nd = nd_2nd;
22900 n->operator_loc = *operator_loc;
22905static rb_node_or_t *
22906rb_node_or_new(
struct parser_params *p, NODE *nd_1st, NODE *nd_2nd,
const YYLTYPE *loc,
const YYLTYPE *operator_loc)
22908 rb_node_or_t *n = NODE_NEWNODE(NODE_OR, rb_node_or_t, loc);
22909 n->nd_1st = nd_1st;
22910 n->nd_2nd = nd_2nd;
22911 n->operator_loc = *operator_loc;
22916static rb_node_return_t *
22917rb_node_return_new(
struct parser_params *p, NODE *nd_stts,
const YYLTYPE *loc,
const YYLTYPE *keyword_loc)
22919 rb_node_return_t *n = NODE_NEWNODE(NODE_RETURN, rb_node_return_t, loc);
22920 n->nd_stts = nd_stts;
22921 n->keyword_loc = *keyword_loc;
22925static rb_node_yield_t *
22926rb_node_yield_new(
struct parser_params *p, NODE *nd_head,
const YYLTYPE *loc,
const YYLTYPE *keyword_loc,
const YYLTYPE *lparen_loc,
const YYLTYPE *rparen_loc)
22928 if (nd_head) no_blockarg(p, nd_head);
22930 rb_node_yield_t *n = NODE_NEWNODE(NODE_YIELD, rb_node_yield_t, loc);
22931 n->nd_head = nd_head;
22932 n->keyword_loc = *keyword_loc;
22933 n->lparen_loc = *lparen_loc;
22934 n->rparen_loc = *rparen_loc;
22939static rb_node_if_t *
22940rb_node_if_new(
struct parser_params *p, NODE *nd_cond, NODE *nd_body, NODE *nd_else,
const YYLTYPE *loc,
const YYLTYPE* if_keyword_loc,
const YYLTYPE* then_keyword_loc,
const YYLTYPE* end_keyword_loc)
22942 rb_node_if_t *n = NODE_NEWNODE(NODE_IF, rb_node_if_t, loc);
22943 n->nd_cond = nd_cond;
22944 n->nd_body = nd_body;
22945 n->nd_else = nd_else;
22946 n->if_keyword_loc = *if_keyword_loc;
22947 n->then_keyword_loc = *then_keyword_loc;
22948 n->end_keyword_loc = *end_keyword_loc;
22953static rb_node_unless_t *
22954rb_node_unless_new(
struct parser_params *p, NODE *nd_cond, NODE *nd_body, NODE *nd_else,
const YYLTYPE *loc,
const YYLTYPE *keyword_loc,
const YYLTYPE *then_keyword_loc,
const YYLTYPE *end_keyword_loc)
22956 rb_node_unless_t *n = NODE_NEWNODE(NODE_UNLESS, rb_node_unless_t, loc);
22957 n->nd_cond = nd_cond;
22958 n->nd_body = nd_body;
22959 n->nd_else = nd_else;
22960 n->keyword_loc = *keyword_loc;
22961 n->then_keyword_loc = *then_keyword_loc;
22962 n->end_keyword_loc = *end_keyword_loc;
22967static rb_node_class_t *
22968rb_node_class_new(
struct parser_params *p, NODE *nd_cpath, NODE *nd_body, NODE *nd_super,
const YYLTYPE *loc,
const YYLTYPE *class_keyword_loc,
const YYLTYPE *inheritance_operator_loc,
const YYLTYPE *end_keyword_loc)
22971 NODE *scope = NEW_SCOPE(0, nd_body, NULL, loc);
22972 rb_node_class_t *n = NODE_NEWNODE(NODE_CLASS, rb_node_class_t, loc);
22973 RNODE_SCOPE(scope)->nd_parent = &n->node;
22974 n->nd_cpath = nd_cpath;
22975 n->nd_body = scope;
22976 n->nd_super = nd_super;
22977 n->class_keyword_loc = *class_keyword_loc;
22978 n->inheritance_operator_loc = *inheritance_operator_loc;
22979 n->end_keyword_loc = *end_keyword_loc;
22984static rb_node_sclass_t *
22985rb_node_sclass_new(
struct parser_params *p, NODE *nd_recv, NODE *nd_body,
const YYLTYPE *loc,
const YYLTYPE *class_keyword_loc,
const YYLTYPE *operator_loc,
const YYLTYPE *end_keyword_loc)
22988 NODE *scope = NEW_SCOPE(0, nd_body, NULL, loc);
22989 rb_node_sclass_t *n = NODE_NEWNODE(NODE_SCLASS, rb_node_sclass_t, loc);
22990 RNODE_SCOPE(scope)->nd_parent = &n->node;
22991 n->nd_recv = nd_recv;
22992 n->nd_body = scope;
22993 n->class_keyword_loc = *class_keyword_loc;
22994 n->operator_loc = *operator_loc;
22995 n->end_keyword_loc = *end_keyword_loc;
23000static rb_node_module_t *
23001rb_node_module_new(
struct parser_params *p, NODE *nd_cpath, NODE *nd_body,
const YYLTYPE *loc,
const YYLTYPE *module_keyword_loc,
const YYLTYPE *end_keyword_loc)
23004 NODE *scope = NEW_SCOPE(0, nd_body, NULL, loc);
23005 rb_node_module_t *n = NODE_NEWNODE(NODE_MODULE, rb_node_module_t, loc);
23006 RNODE_SCOPE(scope)->nd_parent = &n->node;
23007 n->nd_cpath = nd_cpath;
23008 n->nd_body = scope;
23009 n->module_keyword_loc = *module_keyword_loc;
23010 n->end_keyword_loc = *end_keyword_loc;
23015static rb_node_iter_t *
23016rb_node_iter_new(
struct parser_params *p, rb_node_args_t *nd_args, NODE *nd_body,
const YYLTYPE *loc)
23019 NODE *scope = NEW_SCOPE(nd_args, nd_body, NULL, loc);
23020 rb_node_iter_t *n = NODE_NEWNODE(NODE_ITER, rb_node_iter_t, loc);
23021 RNODE_SCOPE(scope)->nd_parent = &n->node;
23022 n->nd_body = scope;
23028static rb_node_lambda_t *
23029rb_node_lambda_new(
struct parser_params *p, rb_node_args_t *nd_args, NODE *nd_body,
const YYLTYPE *loc,
const YYLTYPE *operator_loc,
const YYLTYPE *opening_loc,
const YYLTYPE *closing_loc)
23032 NODE *scope = NEW_SCOPE(nd_args, nd_body, NULL, loc);
23033 YYLTYPE lambda_loc = code_loc_gen(operator_loc, closing_loc);
23034 rb_node_lambda_t *n = NODE_NEWNODE(NODE_LAMBDA, rb_node_lambda_t, &lambda_loc);
23035 RNODE_SCOPE(scope)->nd_parent = &n->node;
23036 n->nd_body = scope;
23037 n->operator_loc = *operator_loc;
23038 n->opening_loc = *opening_loc;
23039 n->closing_loc = *closing_loc;
23044static rb_node_case_t *
23045rb_node_case_new(
struct parser_params *p, NODE *nd_head, NODE *nd_body,
const YYLTYPE *loc,
const YYLTYPE *case_keyword_loc,
const YYLTYPE *end_keyword_loc)
23047 rb_node_case_t *n = NODE_NEWNODE(NODE_CASE, rb_node_case_t, loc);
23048 n->nd_head = nd_head;
23049 n->nd_body = nd_body;
23050 n->case_keyword_loc = *case_keyword_loc;
23051 n->end_keyword_loc = *end_keyword_loc;
23056static rb_node_case2_t *
23057rb_node_case2_new(
struct parser_params *p, NODE *nd_body,
const YYLTYPE *loc,
const YYLTYPE *case_keyword_loc,
const YYLTYPE *end_keyword_loc)
23059 rb_node_case2_t *n = NODE_NEWNODE(NODE_CASE2, rb_node_case2_t, loc);
23061 n->nd_body = nd_body;
23062 n->case_keyword_loc = *case_keyword_loc;
23063 n->end_keyword_loc = *end_keyword_loc;
23068static rb_node_case3_t *
23069rb_node_case3_new(
struct parser_params *p, NODE *nd_head, NODE *nd_body,
const YYLTYPE *loc,
const YYLTYPE *case_keyword_loc,
const YYLTYPE *end_keyword_loc)
23071 rb_node_case3_t *n = NODE_NEWNODE(NODE_CASE3, rb_node_case3_t, loc);
23072 n->nd_head = nd_head;
23073 n->nd_body = nd_body;
23074 n->case_keyword_loc = *case_keyword_loc;
23075 n->end_keyword_loc = *end_keyword_loc;
23080static rb_node_when_t *
23081rb_node_when_new(
struct parser_params *p, NODE *nd_head, NODE *nd_body, NODE *nd_next,
const YYLTYPE *loc,
const YYLTYPE *keyword_loc,
const YYLTYPE *then_keyword_loc)
23083 rb_node_when_t *n = NODE_NEWNODE(NODE_WHEN, rb_node_when_t, loc);
23084 n->nd_head = nd_head;
23085 n->nd_body = nd_body;
23086 n->nd_next = nd_next;
23087 n->keyword_loc = *keyword_loc;
23088 n->then_keyword_loc = *then_keyword_loc;
23093static rb_node_in_t *
23094rb_node_in_new(
struct parser_params *p, NODE *nd_head, NODE *nd_body, NODE *nd_next,
const YYLTYPE *loc,
const YYLTYPE *in_keyword_loc,
const YYLTYPE *then_keyword_loc,
const YYLTYPE *operator_loc)
23096 rb_node_in_t *n = NODE_NEWNODE(NODE_IN, rb_node_in_t, loc);
23097 n->nd_head = nd_head;
23098 n->nd_body = nd_body;
23099 n->nd_next = nd_next;
23100 n->in_keyword_loc = *in_keyword_loc;
23101 n->then_keyword_loc = *then_keyword_loc;
23102 n->operator_loc = *operator_loc;
23107static rb_node_while_t *
23108rb_node_while_new(
struct parser_params *p, NODE *nd_cond, NODE *nd_body,
long nd_state,
const YYLTYPE *loc,
const YYLTYPE *keyword_loc,
const YYLTYPE *closing_loc)
23110 rb_node_while_t *n = NODE_NEWNODE(NODE_WHILE, rb_node_while_t, loc);
23111 n->nd_cond = nd_cond;
23112 n->nd_body = nd_body;
23113 n->nd_state = nd_state;
23114 n->keyword_loc = *keyword_loc;
23115 n->closing_loc = *closing_loc;
23120static rb_node_until_t *
23121rb_node_until_new(
struct parser_params *p, NODE *nd_cond, NODE *nd_body,
long nd_state,
const YYLTYPE *loc,
const YYLTYPE *keyword_loc,
const YYLTYPE *closing_loc)
23123 rb_node_until_t *n = NODE_NEWNODE(NODE_UNTIL, rb_node_until_t, loc);
23124 n->nd_cond = nd_cond;
23125 n->nd_body = nd_body;
23126 n->nd_state = nd_state;
23127 n->keyword_loc = *keyword_loc;
23128 n->closing_loc = *closing_loc;
23133static rb_node_colon2_t *
23134rb_node_colon2_new(
struct parser_params *p, NODE *nd_head,
ID nd_mid,
const YYLTYPE *loc,
const YYLTYPE *delimiter_loc,
const YYLTYPE *name_loc)
23136 rb_node_colon2_t *n = NODE_NEWNODE(NODE_COLON2, rb_node_colon2_t, loc);
23137 n->nd_head = nd_head;
23138 n->nd_mid = nd_mid;
23139 n->delimiter_loc = *delimiter_loc;
23140 n->name_loc = *name_loc;
23145static rb_node_colon3_t *
23146rb_node_colon3_new(
struct parser_params *p,
ID nd_mid,
const YYLTYPE *loc,
const YYLTYPE *delimiter_loc,
const YYLTYPE *name_loc)
23148 rb_node_colon3_t *n = NODE_NEWNODE(NODE_COLON3, rb_node_colon3_t, loc);
23149 n->nd_mid = nd_mid;
23150 n->delimiter_loc = *delimiter_loc;
23151 n->name_loc = *name_loc;
23156static rb_node_dot2_t *
23157rb_node_dot2_new(
struct parser_params *p, NODE *nd_beg, NODE *nd_end,
const YYLTYPE *loc,
const YYLTYPE *operator_loc)
23159 rb_node_dot2_t *n = NODE_NEWNODE(NODE_DOT2, rb_node_dot2_t, loc);
23160 n->nd_beg = nd_beg;
23161 n->nd_end = nd_end;
23162 n->operator_loc = *operator_loc;
23167static rb_node_dot3_t *
23168rb_node_dot3_new(
struct parser_params *p, NODE *nd_beg, NODE *nd_end,
const YYLTYPE *loc,
const YYLTYPE *operator_loc)
23170 rb_node_dot3_t *n = NODE_NEWNODE(NODE_DOT3, rb_node_dot3_t, loc);
23171 n->nd_beg = nd_beg;
23172 n->nd_end = nd_end;
23173 n->operator_loc = *operator_loc;
23178static rb_node_self_t *
23179rb_node_self_new(
struct parser_params *p,
const YYLTYPE *loc)
23181 rb_node_self_t *n = NODE_NEWNODE(NODE_SELF, rb_node_self_t, loc);
23187static rb_node_nil_t *
23188rb_node_nil_new(
struct parser_params *p,
const YYLTYPE *loc)
23190 rb_node_nil_t *n = NODE_NEWNODE(NODE_NIL, rb_node_nil_t, loc);
23195static rb_node_true_t *
23196rb_node_true_new(
struct parser_params *p,
const YYLTYPE *loc)
23198 rb_node_true_t *n = NODE_NEWNODE(NODE_TRUE, rb_node_true_t, loc);
23203static rb_node_false_t *
23204rb_node_false_new(
struct parser_params *p,
const YYLTYPE *loc)
23206 rb_node_false_t *n = NODE_NEWNODE(NODE_FALSE, rb_node_false_t, loc);
23211static rb_node_super_t *
23212rb_node_super_new(
struct parser_params *p, NODE *nd_args,
const YYLTYPE *loc,
23213 const YYLTYPE *keyword_loc,
const YYLTYPE *lparen_loc,
const YYLTYPE *rparen_loc)
23215 rb_node_super_t *n = NODE_NEWNODE(NODE_SUPER, rb_node_super_t, loc);
23216 n->nd_args = nd_args;
23217 n->keyword_loc = *keyword_loc;
23218 n->lparen_loc = *lparen_loc;
23219 n->rparen_loc = *rparen_loc;
23224static rb_node_zsuper_t *
23225rb_node_zsuper_new(
struct parser_params *p,
const YYLTYPE *loc)
23227 rb_node_zsuper_t *n = NODE_NEWNODE(NODE_ZSUPER, rb_node_zsuper_t, loc);
23232static rb_node_match2_t *
23233rb_node_match2_new(
struct parser_params *p, NODE *nd_recv, NODE *nd_value,
const YYLTYPE *loc)
23235 rb_node_match2_t *n = NODE_NEWNODE(NODE_MATCH2, rb_node_match2_t, loc);
23236 n->nd_recv = nd_recv;
23237 n->nd_value = nd_value;
23243static rb_node_match3_t *
23244rb_node_match3_new(
struct parser_params *p, NODE *nd_recv, NODE *nd_value,
const YYLTYPE *loc)
23246 rb_node_match3_t *n = NODE_NEWNODE(NODE_MATCH3, rb_node_match3_t, loc);
23247 n->nd_recv = nd_recv;
23248 n->nd_value = nd_value;
23254static rb_node_list_t *
23255rb_node_list_new(
struct parser_params *p, NODE *nd_head,
const YYLTYPE *loc)
23257 rb_node_list_t *n = NODE_NEWNODE(NODE_LIST, rb_node_list_t, loc);
23258 n->nd_head = nd_head;
23265static rb_node_list_t *
23266rb_node_list_new2(
struct parser_params *p, NODE *nd_head,
long nd_alen, NODE *nd_next,
const YYLTYPE *loc)
23268 rb_node_list_t *n = NODE_NEWNODE(NODE_LIST, rb_node_list_t, loc);
23269 n->nd_head = nd_head;
23270 n->as.nd_alen = nd_alen;
23271 n->nd_next = nd_next;
23276static rb_node_zlist_t *
23277rb_node_zlist_new(
struct parser_params *p,
const YYLTYPE *loc)
23279 rb_node_zlist_t *n = NODE_NEWNODE(NODE_ZLIST, rb_node_zlist_t, loc);
23284static rb_node_hash_t *
23285rb_node_hash_new(
struct parser_params *p, NODE *nd_head,
const YYLTYPE *loc)
23287 rb_node_hash_t *n = NODE_NEWNODE(NODE_HASH, rb_node_hash_t, loc);
23288 n->nd_head = nd_head;
23294static rb_node_masgn_t *
23295rb_node_masgn_new(
struct parser_params *p, NODE *nd_head, NODE *nd_args,
const YYLTYPE *loc)
23297 rb_node_masgn_t *n = NODE_NEWNODE(NODE_MASGN, rb_node_masgn_t, loc);
23298 n->nd_head = nd_head;
23300 n->nd_args = nd_args;
23305static rb_node_gasgn_t *
23306rb_node_gasgn_new(
struct parser_params *p,
ID nd_vid, NODE *nd_value,
const YYLTYPE *loc)
23308 rb_node_gasgn_t *n = NODE_NEWNODE(NODE_GASGN, rb_node_gasgn_t, loc);
23309 n->nd_vid = nd_vid;
23310 n->nd_value = nd_value;
23315static rb_node_lasgn_t *
23316rb_node_lasgn_new(
struct parser_params *p,
ID nd_vid, NODE *nd_value,
const YYLTYPE *loc)
23318 rb_node_lasgn_t *n = NODE_NEWNODE(NODE_LASGN, rb_node_lasgn_t, loc);
23319 n->nd_vid = nd_vid;
23320 n->nd_value = nd_value;
23325static rb_node_dasgn_t *
23326rb_node_dasgn_new(
struct parser_params *p,
ID nd_vid, NODE *nd_value,
const YYLTYPE *loc)
23328 rb_node_dasgn_t *n = NODE_NEWNODE(NODE_DASGN, rb_node_dasgn_t, loc);
23329 n->nd_vid = nd_vid;
23330 n->nd_value = nd_value;
23335static rb_node_iasgn_t *
23336rb_node_iasgn_new(
struct parser_params *p,
ID nd_vid, NODE *nd_value,
const YYLTYPE *loc)
23338 rb_node_iasgn_t *n = NODE_NEWNODE(NODE_IASGN, rb_node_iasgn_t, loc);
23339 n->nd_vid = nd_vid;
23340 n->nd_value = nd_value;
23345static rb_node_cvasgn_t *
23346rb_node_cvasgn_new(
struct parser_params *p,
ID nd_vid, NODE *nd_value,
const YYLTYPE *loc)
23348 rb_node_cvasgn_t *n = NODE_NEWNODE(NODE_CVASGN, rb_node_cvasgn_t, loc);
23349 n->nd_vid = nd_vid;
23350 n->nd_value = nd_value;
23355static rb_node_op_asgn1_t *
23356rb_node_op_asgn1_new(
struct parser_params *p, NODE *nd_recv,
ID nd_mid, NODE *index, NODE *rvalue,
const YYLTYPE *loc,
const YYLTYPE *call_operator_loc,
const YYLTYPE *opening_loc,
const YYLTYPE *closing_loc,
const YYLTYPE *binary_operator_loc)
23358 rb_node_op_asgn1_t *n = NODE_NEWNODE(NODE_OP_ASGN1, rb_node_op_asgn1_t, loc);
23359 n->nd_recv = nd_recv;
23360 n->nd_mid = nd_mid;
23361 n->nd_index = index;
23362 n->nd_rvalue = rvalue;
23363 n->call_operator_loc = *call_operator_loc;
23364 n->opening_loc = *opening_loc;
23365 n->closing_loc = *closing_loc;
23366 n->binary_operator_loc = *binary_operator_loc;
23371static rb_node_op_asgn2_t *
23372rb_node_op_asgn2_new(
struct parser_params *p, NODE *nd_recv, NODE *nd_value,
ID nd_vid,
ID nd_mid,
bool nd_aid,
const YYLTYPE *loc,
const YYLTYPE *call_operator_loc,
const YYLTYPE *message_loc,
const YYLTYPE *binary_operator_loc)
23374 rb_node_op_asgn2_t *n = NODE_NEWNODE(NODE_OP_ASGN2, rb_node_op_asgn2_t, loc);
23375 n->nd_recv = nd_recv;
23376 n->nd_value = nd_value;
23377 n->nd_vid = nd_vid;
23378 n->nd_mid = nd_mid;
23379 n->nd_aid = nd_aid;
23380 n->call_operator_loc = *call_operator_loc;
23381 n->message_loc = *message_loc;
23382 n->binary_operator_loc = *binary_operator_loc;
23387static rb_node_op_asgn_or_t *
23388rb_node_op_asgn_or_new(
struct parser_params *p, NODE *nd_head, NODE *nd_value,
const YYLTYPE *loc)
23390 rb_node_op_asgn_or_t *n = NODE_NEWNODE(NODE_OP_ASGN_OR, rb_node_op_asgn_or_t, loc);
23391 n->nd_head = nd_head;
23392 n->nd_value = nd_value;
23397static rb_node_op_asgn_and_t *
23398rb_node_op_asgn_and_new(
struct parser_params *p, NODE *nd_head, NODE *nd_value,
const YYLTYPE *loc)
23400 rb_node_op_asgn_and_t *n = NODE_NEWNODE(NODE_OP_ASGN_AND, rb_node_op_asgn_and_t, loc);
23401 n->nd_head = nd_head;
23402 n->nd_value = nd_value;
23407static rb_node_gvar_t *
23408rb_node_gvar_new(
struct parser_params *p,
ID nd_vid,
const YYLTYPE *loc)
23410 rb_node_gvar_t *n = NODE_NEWNODE(NODE_GVAR, rb_node_gvar_t, loc);
23411 n->nd_vid = nd_vid;
23416static rb_node_lvar_t *
23417rb_node_lvar_new(
struct parser_params *p,
ID nd_vid,
const YYLTYPE *loc)
23419 rb_node_lvar_t *n = NODE_NEWNODE(NODE_LVAR, rb_node_lvar_t, loc);
23420 n->nd_vid = nd_vid;
23425static rb_node_dvar_t *
23426rb_node_dvar_new(
struct parser_params *p,
ID nd_vid,
const YYLTYPE *loc)
23428 rb_node_dvar_t *n = NODE_NEWNODE(NODE_DVAR, rb_node_dvar_t, loc);
23429 n->nd_vid = nd_vid;
23434static rb_node_ivar_t *
23435rb_node_ivar_new(
struct parser_params *p,
ID nd_vid,
const YYLTYPE *loc)
23437 rb_node_ivar_t *n = NODE_NEWNODE(NODE_IVAR, rb_node_ivar_t, loc);
23438 n->nd_vid = nd_vid;
23443static rb_node_const_t *
23444rb_node_const_new(
struct parser_params *p,
ID nd_vid,
const YYLTYPE *loc)
23446 rb_node_const_t *n = NODE_NEWNODE(NODE_CONST, rb_node_const_t, loc);
23447 n->nd_vid = nd_vid;
23452static rb_node_cvar_t *
23453rb_node_cvar_new(
struct parser_params *p,
ID nd_vid,
const YYLTYPE *loc)
23455 rb_node_cvar_t *n = NODE_NEWNODE(NODE_CVAR, rb_node_cvar_t, loc);
23456 n->nd_vid = nd_vid;
23461static rb_node_nth_ref_t *
23462rb_node_nth_ref_new(
struct parser_params *p,
long nd_nth,
const YYLTYPE *loc)
23464 rb_node_nth_ref_t *n = NODE_NEWNODE(NODE_NTH_REF, rb_node_nth_ref_t, loc);
23465 n->nd_nth = nd_nth;
23470static rb_node_back_ref_t *
23471rb_node_back_ref_new(
struct parser_params *p,
long nd_nth,
const YYLTYPE *loc)
23473 rb_node_back_ref_t *n = NODE_NEWNODE(NODE_BACK_REF, rb_node_back_ref_t, loc);
23474 n->nd_nth = nd_nth;
23479static rb_node_integer_t *
23480rb_node_integer_new(
struct parser_params *p,
char* val,
int base,
const YYLTYPE *loc)
23482 rb_node_integer_t *n = NODE_NEWNODE(NODE_INTEGER, rb_node_integer_t, loc);
23490static rb_node_float_t *
23491rb_node_float_new(
struct parser_params *p,
char* val,
const YYLTYPE *loc)
23493 rb_node_float_t *n = NODE_NEWNODE(NODE_FLOAT, rb_node_float_t, loc);
23500static rb_node_rational_t *
23501rb_node_rational_new(
struct parser_params *p,
char* val,
int base,
int seen_point,
const YYLTYPE *loc)
23503 rb_node_rational_t *n = NODE_NEWNODE(NODE_RATIONAL, rb_node_rational_t, loc);
23507 n->seen_point = seen_point;
23512static rb_node_imaginary_t *
23513rb_node_imaginary_new(
struct parser_params *p,
char* val,
int base,
int seen_point,
enum rb_numeric_type numeric_type,
const YYLTYPE *loc)
23515 rb_node_imaginary_t *n = NODE_NEWNODE(NODE_IMAGINARY, rb_node_imaginary_t, loc);
23519 n->seen_point = seen_point;
23520 n->type = numeric_type;
23525static rb_node_str_t *
23526rb_node_str_new(
struct parser_params *p, rb_parser_string_t *
string,
const YYLTYPE *loc)
23528 rb_node_str_t *n = NODE_NEWNODE(NODE_STR, rb_node_str_t, loc);
23529 n->string = string;
23535static rb_node_dstr_t *
23536rb_node_dstr_new0(
struct parser_params *p, rb_parser_string_t *
string,
long nd_alen, NODE *nd_next,
const YYLTYPE *loc)
23538 rb_node_dstr_t *n = NODE_NEWNODE(NODE_DSTR, rb_node_dstr_t, loc);
23539 n->string = string;
23540 n->as.nd_alen = nd_alen;
23541 n->nd_next = (rb_node_list_t *)nd_next;
23546static rb_node_dstr_t *
23547rb_node_dstr_new(
struct parser_params *p, rb_parser_string_t *
string,
const YYLTYPE *loc)
23549 return rb_node_dstr_new0(p,
string, 1, 0, loc);
23552static rb_node_xstr_t *
23553rb_node_xstr_new(
struct parser_params *p, rb_parser_string_t *
string,
const YYLTYPE *loc)
23555 rb_node_xstr_t *n = NODE_NEWNODE(NODE_XSTR, rb_node_xstr_t, loc);
23556 n->string = string;
23561static rb_node_dxstr_t *
23562rb_node_dxstr_new(
struct parser_params *p, rb_parser_string_t *
string,
long nd_alen, NODE *nd_next,
const YYLTYPE *loc)
23564 rb_node_dxstr_t *n = NODE_NEWNODE(NODE_DXSTR, rb_node_dxstr_t, loc);
23565 n->string = string;
23566 n->as.nd_alen = nd_alen;
23567 n->nd_next = (rb_node_list_t *)nd_next;
23572static rb_node_sym_t *
23575 rb_node_sym_t *n = NODE_NEWNODE(NODE_SYM, rb_node_sym_t, loc);
23576 n->string = rb_str_to_parser_string(p, str);
23581static rb_node_dsym_t *
23582rb_node_dsym_new(
struct parser_params *p, rb_parser_string_t *
string,
long nd_alen, NODE *nd_next,
const YYLTYPE *loc)
23584 rb_node_dsym_t *n = NODE_NEWNODE(NODE_DSYM, rb_node_dsym_t, loc);
23585 n->string = string;
23586 n->as.nd_alen = nd_alen;
23587 n->nd_next = (rb_node_list_t *)nd_next;
23592static rb_node_evstr_t *
23593rb_node_evstr_new(
struct parser_params *p, NODE *nd_body,
const YYLTYPE *loc,
const YYLTYPE *opening_loc,
const YYLTYPE *closing_loc)
23595 rb_node_evstr_t *n = NODE_NEWNODE(NODE_EVSTR, rb_node_evstr_t, loc);
23596 n->nd_body = nd_body;
23597 n->opening_loc = *opening_loc;
23598 n->closing_loc = *closing_loc;
23603static rb_node_regx_t *
23604rb_node_regx_new(
struct parser_params *p, rb_parser_string_t *
string,
int options,
const YYLTYPE *loc,
const YYLTYPE *opening_loc,
const YYLTYPE *content_loc,
const YYLTYPE *closing_loc)
23606 rb_node_regx_t *n = NODE_NEWNODE(NODE_REGX, rb_node_regx_t, loc);
23607 n->string = string;
23608 n->options = options & RE_OPTION_MASK;
23609 n->opening_loc = *opening_loc;
23610 n->content_loc = *content_loc;
23611 n->closing_loc = *closing_loc;
23616static rb_node_call_t *
23617rb_node_call_new(
struct parser_params *p, NODE *nd_recv,
ID nd_mid, NODE *nd_args,
const YYLTYPE *loc)
23619 rb_node_call_t *n = NODE_NEWNODE(NODE_CALL, rb_node_call_t, loc);
23620 n->nd_recv = nd_recv;
23621 n->nd_mid = nd_mid;
23622 n->nd_args = nd_args;
23627static rb_node_opcall_t *
23628rb_node_opcall_new(
struct parser_params *p, NODE *nd_recv,
ID nd_mid, NODE *nd_args,
const YYLTYPE *loc)
23630 rb_node_opcall_t *n = NODE_NEWNODE(NODE_OPCALL, rb_node_opcall_t, loc);
23631 n->nd_recv = nd_recv;
23632 n->nd_mid = nd_mid;
23633 n->nd_args = nd_args;
23638static rb_node_fcall_t *
23639rb_node_fcall_new(
struct parser_params *p,
ID nd_mid, NODE *nd_args,
const YYLTYPE *loc)
23641 rb_node_fcall_t *n = NODE_NEWNODE(NODE_FCALL, rb_node_fcall_t, loc);
23642 n->nd_mid = nd_mid;
23643 n->nd_args = nd_args;
23648static rb_node_qcall_t *
23649rb_node_qcall_new(
struct parser_params *p, NODE *nd_recv,
ID nd_mid, NODE *nd_args,
const YYLTYPE *loc)
23651 rb_node_qcall_t *n = NODE_NEWNODE(NODE_QCALL, rb_node_qcall_t, loc);
23652 n->nd_recv = nd_recv;
23653 n->nd_mid = nd_mid;
23654 n->nd_args = nd_args;
23659static rb_node_vcall_t *
23660rb_node_vcall_new(
struct parser_params *p,
ID nd_mid,
const YYLTYPE *loc)
23662 rb_node_vcall_t *n = NODE_NEWNODE(NODE_VCALL, rb_node_vcall_t, loc);
23663 n->nd_mid = nd_mid;
23668static rb_node_once_t *
23669rb_node_once_new(
struct parser_params *p, NODE *nd_body,
const YYLTYPE *loc)
23671 rb_node_once_t *n = NODE_NEWNODE(NODE_ONCE, rb_node_once_t, loc);
23672 n->nd_body = nd_body;
23677static rb_node_args_t *
23678rb_node_args_new(
struct parser_params *p,
const YYLTYPE *loc)
23680 rb_node_args_t *n = NODE_NEWNODE(NODE_ARGS, rb_node_args_t, loc);
23686static rb_node_args_aux_t *
23687rb_node_args_aux_new(
struct parser_params *p,
ID nd_pid,
int nd_plen,
const YYLTYPE *loc)
23689 rb_node_args_aux_t *n = NODE_NEWNODE(NODE_ARGS_AUX, rb_node_args_aux_t, loc);
23690 n->nd_pid = nd_pid;
23691 n->nd_plen = nd_plen;
23697static rb_node_opt_arg_t *
23698rb_node_opt_arg_new(
struct parser_params *p, NODE *nd_body,
const YYLTYPE *loc)
23700 rb_node_opt_arg_t *n = NODE_NEWNODE(NODE_OPT_ARG, rb_node_opt_arg_t, loc);
23701 n->nd_body = nd_body;
23707static rb_node_kw_arg_t *
23708rb_node_kw_arg_new(
struct parser_params *p, NODE *nd_body,
const YYLTYPE *loc)
23710 rb_node_kw_arg_t *n = NODE_NEWNODE(NODE_KW_ARG, rb_node_kw_arg_t, loc);
23711 n->nd_body = nd_body;
23717static rb_node_postarg_t *
23718rb_node_postarg_new(
struct parser_params *p, NODE *nd_1st, NODE *nd_2nd,
const YYLTYPE *loc)
23720 rb_node_postarg_t *n = NODE_NEWNODE(NODE_POSTARG, rb_node_postarg_t, loc);
23721 n->nd_1st = nd_1st;
23722 n->nd_2nd = nd_2nd;
23727static rb_node_argscat_t *
23728rb_node_argscat_new(
struct parser_params *p, NODE *nd_head, NODE *nd_body,
const YYLTYPE *loc)
23730 rb_node_argscat_t *n = NODE_NEWNODE(NODE_ARGSCAT, rb_node_argscat_t, loc);
23731 n->nd_head = nd_head;
23732 n->nd_body = nd_body;
23737static rb_node_argspush_t *
23738rb_node_argspush_new(
struct parser_params *p, NODE *nd_head, NODE *nd_body,
const YYLTYPE *loc)
23740 rb_node_argspush_t *n = NODE_NEWNODE(NODE_ARGSPUSH, rb_node_argspush_t, loc);
23741 n->nd_head = nd_head;
23742 n->nd_body = nd_body;
23747static rb_node_splat_t *
23748rb_node_splat_new(
struct parser_params *p, NODE *nd_head,
const YYLTYPE *loc,
const YYLTYPE *operator_loc)
23750 rb_node_splat_t *n = NODE_NEWNODE(NODE_SPLAT, rb_node_splat_t, loc);
23751 n->nd_head = nd_head;
23752 n->operator_loc = *operator_loc;
23757static rb_node_block_pass_t *
23758rb_node_block_pass_new(
struct parser_params *p, NODE *nd_body,
const YYLTYPE *loc,
const YYLTYPE *operator_loc)
23760 rb_node_block_pass_t *n = NODE_NEWNODE(NODE_BLOCK_PASS, rb_node_block_pass_t, loc);
23763 n->nd_body = nd_body;
23764 n->operator_loc = *operator_loc;
23769static rb_node_alias_t *
23770rb_node_alias_new(
struct parser_params *p, NODE *nd_1st, NODE *nd_2nd,
const YYLTYPE *loc,
const YYLTYPE *keyword_loc)
23772 rb_node_alias_t *n = NODE_NEWNODE(NODE_ALIAS, rb_node_alias_t, loc);
23773 n->nd_1st = nd_1st;
23774 n->nd_2nd = nd_2nd;
23775 n->keyword_loc = *keyword_loc;
23780static rb_node_valias_t *
23781rb_node_valias_new(
struct parser_params *p,
ID nd_alias,
ID nd_orig,
const YYLTYPE *loc,
const YYLTYPE *keyword_loc)
23783 rb_node_valias_t *n = NODE_NEWNODE(NODE_VALIAS, rb_node_valias_t, loc);
23784 n->nd_alias = nd_alias;
23785 n->nd_orig = nd_orig;
23786 n->keyword_loc = *keyword_loc;
23791static rb_node_undef_t *
23792rb_node_undef_new(
struct parser_params *p, NODE *nd_undef,
const YYLTYPE *loc)
23794 rb_node_undef_t *n = NODE_NEWNODE(NODE_UNDEF, rb_node_undef_t, loc);
23795 n->nd_undefs = rb_parser_ary_new_capa_for_node(p, 1);
23796 n->keyword_loc = NULL_LOC;
23797 rb_parser_ary_push_node(p, n->nd_undefs, nd_undef);
23802static rb_node_errinfo_t *
23803rb_node_errinfo_new(
struct parser_params *p,
const YYLTYPE *loc)
23805 rb_node_errinfo_t *n = NODE_NEWNODE(NODE_ERRINFO, rb_node_errinfo_t, loc);
23810static rb_node_defined_t *
23811rb_node_defined_new(
struct parser_params *p, NODE *nd_head,
const YYLTYPE *loc,
const YYLTYPE *keyword_loc)
23813 rb_node_defined_t *n = NODE_NEWNODE(NODE_DEFINED, rb_node_defined_t, loc);
23814 n->nd_head = nd_head;
23815 n->keyword_loc = *keyword_loc;
23820static rb_node_postexe_t *
23821rb_node_postexe_new(
struct parser_params *p, NODE *nd_body,
const YYLTYPE *loc,
const YYLTYPE *keyword_loc,
const YYLTYPE *opening_loc,
const YYLTYPE *closing_loc)
23823 rb_node_postexe_t *n = NODE_NEWNODE(NODE_POSTEXE, rb_node_postexe_t, loc);
23824 n->nd_body = nd_body;
23825 n->keyword_loc = *keyword_loc;
23826 n->opening_loc = *opening_loc;
23827 n->closing_loc = *closing_loc;
23832static rb_node_attrasgn_t *
23833rb_node_attrasgn_new(
struct parser_params *p, NODE *nd_recv,
ID nd_mid, NODE *nd_args,
const YYLTYPE *loc)
23835 rb_node_attrasgn_t *n = NODE_NEWNODE(NODE_ATTRASGN, rb_node_attrasgn_t, loc);
23836 n->nd_recv = nd_recv;
23837 n->nd_mid = nd_mid;
23838 n->nd_args = nd_args;
23843static rb_node_aryptn_t *
23844rb_node_aryptn_new(
struct parser_params *p, NODE *pre_args, NODE *rest_arg, NODE *post_args,
const YYLTYPE *loc)
23846 rb_node_aryptn_t *n = NODE_NEWNODE(NODE_ARYPTN, rb_node_aryptn_t, loc);
23848 n->pre_args = pre_args;
23849 n->rest_arg = rest_arg;
23850 n->post_args = post_args;
23855static rb_node_hshptn_t *
23856rb_node_hshptn_new(
struct parser_params *p, NODE *nd_pconst, NODE *nd_pkwargs, NODE *nd_pkwrestarg,
const YYLTYPE *loc)
23858 rb_node_hshptn_t *n = NODE_NEWNODE(NODE_HSHPTN, rb_node_hshptn_t, loc);
23859 n->nd_pconst = nd_pconst;
23860 n->nd_pkwargs = nd_pkwargs;
23861 n->nd_pkwrestarg = nd_pkwrestarg;
23866static rb_node_fndptn_t *
23867rb_node_fndptn_new(
struct parser_params *p, NODE *pre_rest_arg, NODE *args, NODE *post_rest_arg,
const YYLTYPE *loc)
23869 rb_node_fndptn_t *n = NODE_NEWNODE(NODE_FNDPTN, rb_node_fndptn_t, loc);
23871 n->pre_rest_arg = pre_rest_arg;
23873 n->post_rest_arg = post_rest_arg;
23878static rb_node_line_t *
23879rb_node_line_new(
struct parser_params *p,
const YYLTYPE *loc)
23881 rb_node_line_t *n = NODE_NEWNODE(NODE_LINE, rb_node_line_t, loc);
23886static rb_node_file_t *
23889 rb_node_file_t *n = NODE_NEWNODE(NODE_FILE, rb_node_file_t, loc);
23890 n->path = rb_str_to_parser_string(p, str);
23895static rb_node_encoding_t *
23896rb_node_encoding_new(
struct parser_params *p,
const YYLTYPE *loc)
23898 rb_node_encoding_t *n = NODE_NEWNODE(NODE_ENCODING, rb_node_encoding_t, loc);
23904static rb_node_cdecl_t *
23905rb_node_cdecl_new(
struct parser_params *p,
ID nd_vid, NODE *nd_value, NODE *nd_else,
enum rb_parser_shareability shareability,
const YYLTYPE *loc)
23907 rb_node_cdecl_t *n = NODE_NEWNODE(NODE_CDECL, rb_node_cdecl_t, loc);
23908 n->nd_vid = nd_vid;
23909 n->nd_value = nd_value;
23910 n->nd_else = nd_else;
23911 n->shareability = shareability;
23916static rb_node_op_cdecl_t *
23917rb_node_op_cdecl_new(
struct parser_params *p, NODE *nd_head, NODE *nd_value,
ID nd_aid,
enum rb_parser_shareability shareability,
const YYLTYPE *loc)
23919 rb_node_op_cdecl_t *n = NODE_NEWNODE(NODE_OP_CDECL, rb_node_op_cdecl_t, loc);
23920 n->nd_head = nd_head;
23921 n->nd_value = nd_value;
23922 n->nd_aid = nd_aid;
23923 n->shareability = shareability;
23928static rb_node_error_t *
23929rb_node_error_new(
struct parser_params *p,
const YYLTYPE *loc)
23931 rb_node_error_t *n = NODE_NEWNODE(NODE_ERROR, rb_node_error_t, loc);
23936static rb_node_break_t *
23937rb_node_break_new(
struct parser_params *p, NODE *nd_stts,
const YYLTYPE *loc,
const YYLTYPE *keyword_loc)
23939 rb_node_break_t *n = NODE_NEWNODE(NODE_BREAK, rb_node_break_t, loc);
23940 n->nd_stts = nd_stts;
23942 n->keyword_loc = *keyword_loc;
23947static rb_node_next_t *
23948rb_node_next_new(
struct parser_params *p, NODE *nd_stts,
const YYLTYPE *loc,
const YYLTYPE *keyword_loc)
23950 rb_node_next_t *n = NODE_NEWNODE(NODE_NEXT, rb_node_next_t, loc);
23951 n->nd_stts = nd_stts;
23953 n->keyword_loc = *keyword_loc;
23958static rb_node_redo_t *
23959rb_node_redo_new(
struct parser_params *p,
const YYLTYPE *loc,
const YYLTYPE *keyword_loc)
23961 rb_node_redo_t *n = NODE_NEWNODE(NODE_REDO, rb_node_redo_t, loc);
23963 n->keyword_loc = *keyword_loc;
23968static rb_node_def_temp_t *
23969rb_node_def_temp_new(
struct parser_params *p,
const YYLTYPE *loc)
23971 rb_node_def_temp_t *n = NODE_NEWNODE((
enum node_type)NODE_DEF_TEMP, rb_node_def_temp_t, loc);
23972 n->save.numparam_save = 0;
23973 n->save.max_numparam = 0;
23974 n->save.ctxt = p->ctxt;
23981static rb_node_def_temp_t *
23982def_head_save(
struct parser_params *p, rb_node_def_temp_t *n)
23984 n->save.numparam_save = numparam_push(p);
23985 n->save.max_numparam = p->max_numparam;
23990static enum node_type
23991nodetype(NODE *node)
23993 return (
enum node_type)nd_type(node);
23997nodeline(NODE *node)
23999 return nd_line(node);
24004newline_node(NODE *node)
24007 node = remove_begin(node);
24008 nd_set_fl_newline(node);
24014fixpos(NODE *node, NODE *orig)
24018 nd_set_line(node, nd_line(orig));
24022block_append(
struct parser_params *p, NODE *head, NODE *tail)
24024 NODE *end, *h = head, *nd;
24026 if (tail == 0)
return head;
24028 if (h == 0)
return tail;
24029 switch (nd_type(h)) {
24031 h = end = NEW_BLOCK(head, &head->nd_loc);
24035 end = RNODE_BLOCK(h)->nd_end;
24039 nd = RNODE_BLOCK(end)->nd_head;
24040 switch (nd_type(nd)) {
24046 rb_warning0L(nd_line(tail),
"statement not reached");
24053 if (!nd_type_p(tail, NODE_BLOCK)) {
24054 tail = NEW_BLOCK(tail, &tail->nd_loc);
24056 RNODE_BLOCK(end)->nd_next = tail;
24057 RNODE_BLOCK(h)->nd_end = RNODE_BLOCK(tail)->nd_end;
24058 nd_set_last_loc(head, nd_last_loc(tail));
24064list_append(
struct parser_params *p, NODE *list, NODE *item)
24068 if (list == 0)
return NEW_LIST(item, &item->nd_loc);
24069 if (RNODE_LIST(list)->nd_next) {
24070 last = RNODE_LIST(RNODE_LIST(list)->nd_next)->as.nd_end;
24076 RNODE_LIST(list)->as.nd_alen += 1;
24077 RNODE_LIST(last)->nd_next = NEW_LIST(item, &item->nd_loc);
24078 RNODE_LIST(RNODE_LIST(list)->nd_next)->as.nd_end = RNODE_LIST(last)->nd_next;
24080 nd_set_last_loc(list, nd_last_loc(item));
24087list_concat(NODE *head, NODE *tail)
24091 if (RNODE_LIST(head)->nd_next) {
24092 last = RNODE_LIST(RNODE_LIST(head)->nd_next)->as.nd_end;
24098 RNODE_LIST(head)->as.nd_alen += RNODE_LIST(tail)->as.nd_alen;
24099 RNODE_LIST(last)->nd_next = tail;
24100 if (RNODE_LIST(tail)->nd_next) {
24101 RNODE_LIST(RNODE_LIST(head)->nd_next)->as.nd_end = RNODE_LIST(RNODE_LIST(tail)->nd_next)->as.nd_end;
24104 RNODE_LIST(RNODE_LIST(head)->nd_next)->as.nd_end = tail;
24107 nd_set_last_loc(head, nd_last_loc(tail));
24113literal_concat0(
struct parser_params *p, rb_parser_string_t *head, rb_parser_string_t *tail)
24115 if (!tail)
return 1;
24116 if (!rb_parser_enc_compatible(p, head, tail)) {
24117 compile_error(p,
"string literal encodings differ (%s / %s)",
24118 rb_enc_name(rb_parser_str_get_encoding(head)),
24119 rb_enc_name(rb_parser_str_get_encoding(tail)));
24120 rb_parser_str_resize(p, head, 0);
24121 rb_parser_str_resize(p, tail, 0);
24124 rb_parser_str_buf_append(p, head, tail);
24128static rb_parser_string_t *
24129string_literal_head(
struct parser_params *p,
enum node_type htype, NODE *head)
24131 if (htype != NODE_DSTR)
return NULL;
24132 if (RNODE_DSTR(head)->nd_next) {
24133 head = RNODE_LIST(RNODE_LIST(RNODE_DSTR(head)->nd_next)->as.nd_end)->nd_head;
24134 if (!head || !nd_type_p(head, NODE_STR))
return NULL;
24136 rb_parser_string_t *lit = RNODE_DSTR(head)->string;
24142static rb_parser_string_t *
24143rb_parser_string_deep_copy(
struct parser_params *p,
const rb_parser_string_t *orig)
24145 rb_parser_string_t *copy;
24146 if (!orig)
return NULL;
24147 copy = rb_parser_string_new(p, PARSER_STRING_PTR(orig), PARSER_STRING_LEN(orig));
24148 copy->coderange = orig->coderange;
24149 copy->enc = orig->enc;
24156literal_concat(
struct parser_params *p, NODE *head, NODE *tail,
const YYLTYPE *loc)
24158 enum node_type htype;
24159 rb_parser_string_t *lit;
24161 if (!head)
return tail;
24162 if (!tail)
return head;
24164 htype = nd_type(head);
24165 if (htype == NODE_EVSTR) {
24166 head = new_dstr(p, head, loc);
24169 if (p->heredoc_indent > 0) {
24172 head = str2dstr(p, head);
24174 return list_append(p, head, tail);
24179 switch (nd_type(tail)) {
24181 if ((lit = string_literal_head(p, htype, head)) !=
false) {
24185 lit = RNODE_DSTR(head)->string;
24187 if (htype == NODE_STR) {
24188 if (!literal_concat0(p, lit, RNODE_STR(tail)->
string)) {
24190 rb_discard_node(p, head);
24191 rb_discard_node(p, tail);
24194 rb_discard_node(p, tail);
24197 list_append(p, head, tail);
24202 if (htype == NODE_STR) {
24203 if (!literal_concat0(p, RNODE_STR(head)->
string, RNODE_DSTR(tail)->
string))
24205 rb_parser_string_free(p, RNODE_DSTR(tail)->
string);
24206 RNODE_DSTR(tail)->string = RNODE_STR(head)->string;
24207 RNODE_STR(head)->string = NULL;
24208 rb_discard_node(p, head);
24211 else if (!RNODE_DSTR(tail)->
string) {
24213 RNODE_DSTR(head)->as.nd_alen += RNODE_DSTR(tail)->as.nd_alen - 1;
24214 if (!RNODE_DSTR(head)->nd_next) {
24215 RNODE_DSTR(head)->nd_next = RNODE_DSTR(tail)->nd_next;
24217 else if (RNODE_DSTR(tail)->nd_next) {
24218 RNODE_DSTR(RNODE_DSTR(RNODE_DSTR(head)->nd_next)->as.nd_end)->nd_next = RNODE_DSTR(tail)->nd_next;
24219 RNODE_DSTR(RNODE_DSTR(head)->nd_next)->as.nd_end = RNODE_DSTR(RNODE_DSTR(tail)->nd_next)->as.nd_end;
24221 rb_discard_node(p, tail);
24223 else if ((lit = string_literal_head(p, htype, head)) !=
false) {
24224 if (!literal_concat0(p, lit, RNODE_DSTR(tail)->
string))
24226 rb_parser_string_free(p, RNODE_DSTR(tail)->
string);
24227 RNODE_DSTR(tail)->string = 0;
24231 list_concat(head, NEW_LIST2(NEW_STR(RNODE_DSTR(tail)->
string, loc), RNODE_DSTR(tail)->as.nd_alen, (NODE *)RNODE_DSTR(tail)->nd_next, loc));
24232 RNODE_DSTR(tail)->string = 0;
24237 if (htype == NODE_STR) {
24238 head = str2dstr(p, head);
24239 RNODE_DSTR(head)->as.nd_alen = 1;
24241 list_append(p, head, tail);
24248nd_copy_flag(NODE *new_node, NODE *old_node)
24250 if (nd_fl_newline(old_node)) nd_set_fl_newline(new_node);
24251 nd_set_line(new_node, nd_line(old_node));
24252 new_node->nd_loc = old_node->nd_loc;
24253 new_node->node_id = old_node->node_id;
24259 NODE *new_node = (NODE *)NODE_NEW_INTERNAL(NODE_DSTR, rb_node_dstr_t);
24260 nd_copy_flag(new_node, node);
24261 RNODE_DSTR(new_node)->string = RNODE_STR(node)->string;
24262 RNODE_DSTR(new_node)->as.nd_alen = 0;
24263 RNODE_DSTR(new_node)->nd_next = 0;
24264 RNODE_STR(node)->string = 0;
24270str2regx(
struct parser_params *p, NODE *node,
int options,
const YYLTYPE *loc,
const YYLTYPE *opening_loc,
const YYLTYPE *content_loc,
const YYLTYPE *closing_loc)
24272 NODE *new_node = (NODE *)NODE_NEW_INTERNAL(NODE_REGX, rb_node_regx_t);
24273 nd_copy_flag(new_node, node);
24274 RNODE_REGX(new_node)->string = RNODE_STR(node)->string;
24275 RNODE_REGX(new_node)->options = options;
24276 nd_set_loc(new_node, loc);
24277 RNODE_REGX(new_node)->opening_loc = *opening_loc;
24278 RNODE_REGX(new_node)->content_loc = *content_loc;
24279 RNODE_REGX(new_node)->closing_loc = *closing_loc;
24280 RNODE_STR(node)->string = 0;
24288 if (nd_type_p(node, NODE_EVSTR)) {
24289 node = new_dstr(p, node, &node->nd_loc);
24295new_evstr(
struct parser_params *p, NODE *node,
const YYLTYPE *loc,
const YYLTYPE *opening_loc,
const YYLTYPE *closing_loc)
24300 switch (nd_type(node)) {
24302 return str2dstr(p, node);
24309 return NEW_EVSTR(head, loc, opening_loc, closing_loc);
24313new_dstr(
struct parser_params *p, NODE *node,
const YYLTYPE *loc)
24315 NODE *dstr = NEW_DSTR(STRING_NEW0(), loc);
24316 return list_append(p, dstr, node);
24321 const YYLTYPE *op_loc,
const YYLTYPE *loc)
24324 value_expr(p, recv);
24325 value_expr(p, arg1);
24326 expr = NEW_OPCALL(recv,
id, NEW_LIST(arg1, &arg1->nd_loc), loc);
24327 nd_set_line(expr, op_loc->beg_pos.lineno);
24332call_uni_op(
struct parser_params *p, NODE *recv,
ID id,
const YYLTYPE *op_loc,
const YYLTYPE *loc)
24335 value_expr(p, recv);
24336 opcall = NEW_OPCALL(recv,
id, 0, loc);
24337 nd_set_line(opcall, op_loc->beg_pos.lineno);
24342new_qcall(
struct parser_params* p,
ID atype, NODE *recv,
ID mid, NODE *args,
const YYLTYPE *op_loc,
const YYLTYPE *loc)
24344 NODE *qcall = NEW_QCALL(atype, recv, mid, args, loc);
24345 nd_set_line(qcall, op_loc->beg_pos.lineno);
24350new_command_qcall(
struct parser_params* p,
ID atype, NODE *recv,
ID mid, NODE *args, NODE *block,
const YYLTYPE *op_loc,
const YYLTYPE *loc)
24353 if (block) block_dup_check(p, args, block);
24354 ret = new_qcall(p, atype, recv, mid, args, op_loc, loc);
24355 if (block) ret = method_add_block(p, ret, block, loc);
24361new_locations_lambda_body(
struct parser_params* p, NODE *node,
const YYLTYPE *loc,
const YYLTYPE *opening_loc,
const YYLTYPE *closing_loc)
24365 body->opening_loc = *opening_loc;
24366 body->closing_loc = *closing_loc;
24371command_add_block(
struct parser_params*p, NODE *m, NODE *b,
const YYLTYPE *loc)
24374 enum node_type
type = nd_type(m);
24377 compile_error(p,
"block given to yield");
24380 body = &RNODE_RETURN(m)->nd_stts;
24384 body = &RNODE_EXITS(m)->nd_stts;
24387 compile_error(p,
"command_add_block: unexpected node: NODE_REDO");
24390 compile_error(p,
"command_add_block: unexpected node: NODE_RETRY");
24393 block_dup_check(p, get_nd_args(p, m), b);
24394 return method_add_block(p, m, b, loc);
24396 RUBY_ASSERT(*body,
"no argument %s with do_block", parser_node_name(
type));
24397 YYLTYPE b_loc = code_loc_gen(&(*body)->nd_loc, loc);
24398 *body = command_add_block(p, *body, b, &b_loc);
24399 m->nd_loc.end_pos = loc->end_pos;
24403#define nd_once_body(node) (nd_type_p((node), NODE_ONCE) ? RNODE_ONCE(node)->nd_body : node)
24406last_expr_once_body(NODE *node)
24408 if (!node)
return 0;
24409 return nd_once_body(node);
24413match_op(
struct parser_params *p, NODE *node1, NODE *node2,
const YYLTYPE *op_loc,
const YYLTYPE *loc)
24416 int line = op_loc->beg_pos.lineno;
24418 value_expr(p, node1);
24419 value_expr(p, node2);
24421 if ((n = last_expr_once_body(node1)) != 0) {
24422 switch (nd_type(n)) {
24425 NODE *match = NEW_MATCH2(node1, node2, loc);
24426 nd_set_line(match, line);
24432 const VALUE lit = rb_node_regx_string_val(n);
24434 NODE *match = NEW_MATCH2(node1, node2, loc);
24435 RNODE_MATCH2(match)->nd_args = reg_named_capture_assign(p, lit, loc, assignable);
24436 nd_set_line(match, line);
24443 if ((n = last_expr_once_body(node2)) != 0) {
24446 switch (nd_type(n)) {
24448 match3 = NEW_MATCH3(node2, node1, loc);
24453 n = NEW_CALL(node1, tMATCH, NEW_LIST(node2, &node2->nd_loc), loc);
24454 nd_set_line(n, line);
24458# if WARN_PAST_SCOPE
24462 struct vtable *past = p->lvtbl->past;
24464 if (vtable_included(past,
id))
return 1;
24475 NODE *outer = local->numparam.outer;
24476 NODE *inner = local->numparam.inner;
24477 if (outer || inner) {
24478 NODE *used = outer ? outer : inner;
24479 compile_error(p,
"numbered parameter is already used in %s block\n"
24480 "%s:%d: numbered parameter is already used here",
24481 outer ?
"outer" :
"inner",
24482 p->ruby_sourcefile, nd_line(used));
24483 parser_show_error_line(p, &used->nd_loc);
24492 NODE *numparam = p->lvtbl->numparam.current;
24494 compile_error(p,
"'it' is not allowed when a numbered parameter is already used\n"
24495 "%s:%d: numbered parameter is already used here",
24496 p->ruby_sourcefile, nd_line(numparam));
24497 parser_show_error_line(p, &numparam->nd_loc);
24506 NODE *it = p->lvtbl->it;
24508 compile_error(p,
"numbered parameters are not allowed when 'it' is already used\n"
24509 "%s:%d: 'it' is already used here",
24510 p->ruby_sourcefile, nd_line(it));
24511 parser_show_error_line(p, &it->nd_loc);
24524 return NEW_SELF(loc);
24526 return NEW_NIL(loc);
24528 return NEW_TRUE(loc);
24529 case keyword_false:
24530 return NEW_FALSE(loc);
24531 case keyword__FILE__:
24533 VALUE file = p->ruby_sourcefile_string;
24536 node = NEW_FILE(file, loc);
24539 case keyword__LINE__:
24540 return NEW_LINE(loc);
24541 case keyword__ENCODING__:
24542 return NEW_ENCODING(loc);
24545 switch (id_type(
id)) {
24547 if (dyna_in_block(p) && dvar_defined_ref(p,
id, &vidp)) {
24548 if (NUMPARAM_ID_P(
id) && (numparam_nested_p(p) || it_used_p(p)))
return 0;
24549 if (vidp) *vidp |= LVAR_USED;
24550 node = NEW_DVAR(
id, loc);
24553 if (local_id_ref(p,
id, &vidp)) {
24554 if (vidp) *vidp |= LVAR_USED;
24555 node = NEW_LVAR(
id, loc);
24558 if (dyna_in_block(p) && NUMPARAM_ID_P(
id) &&
24559 parser_numbered_param(p, NUMPARAM_ID_TO_IDX(
id))) {
24560 if (numparam_nested_p(p) || it_used_p(p))
return 0;
24561 node = NEW_DVAR(
id, loc);
24563 if (!local->numparam.current) local->numparam.current = node;
24566# if WARN_PAST_SCOPE
24568 rb_warning1(
"possible reference to past scope - %"PRIsWARN, rb_id2str(
id));
24572 if (dyna_in_block(p) &&
id == idIt && !(DVARS_TERMINAL_P(p->lvtbl->args) || DVARS_TERMINAL_P(p->lvtbl->args->prev))) {
24573 if (numparam_used_p(p))
return 0;
24574 if (p->max_numparam == ORDINAL_PARAM) {
24575 compile_error(p,
"ordinary parameter is defined");
24579 p->it_id = idItImplicit;
24580 vtable_add(p->lvtbl->args, p->it_id);
24582 NODE *node = NEW_DVAR(p->it_id, loc);
24583 if (!p->lvtbl->it) p->lvtbl->it = node;
24586 return NEW_VCALL(
id, loc);
24588 return NEW_GVAR(
id, loc);
24590 return NEW_IVAR(
id, loc);
24592 return NEW_CONST(
id, loc);
24594 return NEW_CVAR(
id, loc);
24596 compile_error(p,
"identifier %"PRIsVALUE
" is not valid to get", rb_id2str(
id));
24600static rb_node_opt_arg_t *
24601opt_arg_append(rb_node_opt_arg_t *opt_list, rb_node_opt_arg_t *opt)
24603 rb_node_opt_arg_t *opts = opt_list;
24604 RNODE(opts)->nd_loc.end_pos = RNODE(opt)->nd_loc.end_pos;
24606 while (opts->nd_next) {
24607 opts = opts->nd_next;
24608 RNODE(opts)->nd_loc.end_pos = RNODE(opt)->nd_loc.end_pos;
24610 opts->nd_next = opt;
24615static rb_node_kw_arg_t *
24616kwd_append(rb_node_kw_arg_t *kwlist, rb_node_kw_arg_t *kw)
24620 opt_arg_append(RNODE_OPT_ARG(kwlist), RNODE_OPT_ARG(kw));
24626new_defined(
struct parser_params *p, NODE *expr,
const YYLTYPE *loc,
const YYLTYPE *keyword_loc)
24628 int had_trailing_semicolon = p->ctxt.has_trailing_semicolon;
24629 p->ctxt.has_trailing_semicolon = 0;
24633 if (nd_type_p(n, NODE_BEGIN)) {
24634 n = RNODE_BEGIN(n)->nd_body;
24636 else if (nd_type_p(n, NODE_BLOCK) && RNODE_BLOCK(n)->nd_end == n) {
24637 n = RNODE_BLOCK(n)->nd_head;
24644 if (had_trailing_semicolon && !nd_type_p(expr, NODE_BLOCK)) {
24645 NODE *block = NEW_BLOCK(expr, loc);
24646 return NEW_DEFINED(block, loc, keyword_loc);
24649 return NEW_DEFINED(n, loc, keyword_loc);
24653str_to_sym_node(
struct parser_params *p, NODE *node,
const YYLTYPE *loc)
24656 rb_parser_string_t *str = RNODE_STR(node)->string;
24657 if (rb_parser_enc_str_coderange(p, str) == RB_PARSER_ENC_CODERANGE_BROKEN) {
24658 yyerror1(loc,
"invalid symbol");
24662 lit = rb_str_new_parser_string(str);
24664 return NEW_SYM(lit, loc);
24668symbol_append(
struct parser_params *p, NODE *symbols, NODE *symbol)
24670 enum node_type
type = nd_type(symbol);
24673 nd_set_type(symbol, NODE_DSYM);
24676 symbol = str_to_sym_node(p, symbol, &RNODE(symbol)->nd_loc);
24679 compile_error(p,
"unexpected node as symbol: %s", parser_node_name(
type));
24681 return list_append(p, symbols, symbol);
24685dregex_fragment_setenc(
struct parser_params *p, rb_node_dregx_t *
const dreg,
int options)
24687 if (dreg->string) {
24688 reg_fragment_setenc(p, dreg->string, options);
24690 for (
struct RNode_LIST *list = dreg->nd_next; list; list = RNODE_LIST(list->nd_next)) {
24691 NODE *frag = list->nd_head;
24692 if (nd_type_p(frag, NODE_STR)) {
24693 reg_fragment_setenc(p, RNODE_STR(frag)->
string, options);
24695 else if (nd_type_p(frag, NODE_DSTR)) {
24696 dregex_fragment_setenc(p, RNODE_DSTR(frag), options);
24702new_regexp(
struct parser_params *p, NODE *node,
int options,
const YYLTYPE *loc,
const YYLTYPE *opening_loc,
const YYLTYPE *content_loc,
const YYLTYPE *closing_loc)
24706 rb_parser_string_t *str = STRING_NEW0();
24707 reg_compile(p, str, options);
24708 node = NEW_REGX(str, options, loc, opening_loc, content_loc, closing_loc);
24711 switch (nd_type(node)) {
24715 reg_compile(p, RNODE_STR(node)->
string, options);
24716 node = str2regx(p, node, options, loc, opening_loc, content_loc, closing_loc);
24720 node = NEW_DSTR0(STRING_NEW0(), 1, NEW_LIST(node, loc), loc);
24723 nd_set_type(node, NODE_DREGX);
24724 nd_set_loc(node, loc);
24725 rb_node_dregx_t *
const dreg = RNODE_DREGX(node);
24726 dreg->as.nd_cflag = options & RE_OPTION_MASK;
24727 if (dreg->nd_next) {
24728 dregex_fragment_setenc(p, dreg, options);
24730 if (options & RE_OPTION_ONCE) {
24731 node = NEW_ONCE(node, loc);
24738static rb_node_kw_arg_t *
24739new_kw_arg(
struct parser_params *p, NODE *k,
const YYLTYPE *loc)
24742 return NEW_KW_ARG((k), loc);
24746new_xstring(
struct parser_params *p, NODE *node,
const YYLTYPE *loc)
24749 NODE *xstr = NEW_XSTR(STRING_NEW0(), loc);
24752 switch (nd_type(node)) {
24754 nd_set_type(node, NODE_XSTR);
24755 nd_set_loc(node, loc);
24758 nd_set_type(node, NODE_DXSTR);
24759 nd_set_loc(node, loc);
24762 node = NEW_DXSTR(0, 1, NEW_LIST(node, loc), loc);
24769struct st_hash_type literal_type = {
24774static int nd_type_st_key_enable_p(NODE *node);
24777check_literal_when(
struct parser_params *p, NODE *arg,
const YYLTYPE *loc)
24780 if (!arg || !p->case_labels)
return;
24781 if (!nd_type_st_key_enable_p(arg))
return;
24783 if (p->case_labels == CHECK_LITERAL_WHEN) {
24784 p->case_labels = st_init_table(&literal_type);
24788 if (st_lookup(p->case_labels, (st_data_t)arg, &line)) {
24789 rb_warning2(
"'when' clause on line %d duplicates 'when' clause on line %d and is ignored",
24790 WARN_I((
int)nd_line(arg)), WARN_I((
int)line));
24794 st_insert(p->case_labels, (st_data_t)arg, (st_data_t)p->ruby_sourceline);
24801 if (is_notop_id(
id)) {
24802 switch (
id & ID_SCOPE_MASK) {
24803 case ID_GLOBAL:
case ID_INSTANCE:
case ID_CONST:
case ID_CLASS:
24806 if (dyna_in_block(p)) {
24807 if (NUMPARAM_ID_P(
id) || dvar_defined(p,
id))
return 1;
24809 if (local_id(p,
id))
return 1;
24814 compile_error(p,
"identifier %"PRIsVALUE
" is not valid to get", rb_id2str(
id));
24819static inline enum lex_state_e
24820parser_set_lex_state(
struct parser_params *p,
enum lex_state_e ls,
int line)
24823 ls = rb_parser_trace_lex_state(p, p->lex.state, ls, line);
24825 return p->lex.state = ls;
24832 VALUE mesg = p->debug_buffer;
24834 if (!
NIL_P(mesg) && RSTRING_LEN(mesg)) {
24835 p->debug_buffer =
Qnil;
24836 rb_io_puts(1, &mesg, out);
24838 if (!
NIL_P(str) && RSTRING_LEN(str)) {
24839 rb_io_write(p->debug_output, str);
24843static const char rb_parser_lex_state_names[][8] = {
24844 "BEG",
"END",
"ENDARG",
"ENDFN",
"ARG",
24845 "CMDARG",
"MID",
"FNAME",
"DOT",
"CLASS",
24846 "LABEL",
"LABELED",
"FITEM",
24853 unsigned int mask = 1;
24854 static const char none[] =
"NONE";
24856 for (i = 0; i < EXPR_MAX_STATE; ++i, mask <<= 1) {
24857 if ((
unsigned)state & mask) {
24872rb_parser_trace_lex_state(
struct parser_params *p,
enum lex_state_e from,
24873 enum lex_state_e to,
int line)
24877 append_lex_state_name(p, from, mesg);
24879 append_lex_state_name(p, to, mesg);
24880 rb_str_catf(mesg,
" at line %d\n", line);
24881 flush_debug_buffer(p, p->debug_output, mesg);
24886rb_parser_lex_state_name(
struct parser_params *p,
enum lex_state_e state)
24888 return rb_str_to_interned_str(append_lex_state_name(p, state,
rb_str_new(0, 0)));
24898 stack_type mask = (stack_type)1U << (CHAR_BIT *
sizeof(stack_type) - 1);
24899 for (; mask && !(stack & mask); mask >>= 1)
continue;
24900 for (; mask; mask >>= 1)
rb_str_cat(mesg, stack & mask ?
"1" :
"0", 1);
24905rb_parser_show_bitstack(
struct parser_params *p, stack_type stack,
24906 const char *name,
int line)
24908 VALUE mesg = rb_sprintf(
"%s: ", name);
24909 append_bitstack_value(p, stack, mesg);
24910 rb_str_catf(mesg,
" at line %d\n", line);
24911 flush_debug_buffer(p, p->debug_output, mesg);
24915rb_parser_fatal(
struct parser_params *p,
const char *fmt, ...)
24921 rb_str_vcatf(mesg, fmt, ap);
24923 yyerror0(RSTRING_PTR(mesg));
24927 append_lex_state_name(p, p->lex.state, mesg);
24928 compile_error(p,
"lex.state: %"PRIsVALUE, mesg);
24929 rb_str_resize(mesg, 0);
24930 append_bitstack_value(p, p->cond_stack, mesg);
24931 compile_error(p,
"cond_stack: %"PRIsVALUE, mesg);
24932 rb_str_resize(mesg, 0);
24933 append_bitstack_value(p, p->cmdarg_stack, mesg);
24934 compile_error(p,
"cmdarg_stack: %"PRIsVALUE, mesg);
24935 if (p->debug_output == rb_ractor_stdout())
24936 p->debug_output = rb_ractor_stderr();
24941rb_parser_set_pos(YYLTYPE *yylloc,
int sourceline,
int beg_pos,
int end_pos)
24943 yylloc->beg_pos.lineno = sourceline;
24944 yylloc->beg_pos.column = beg_pos;
24945 yylloc->end_pos.lineno = sourceline;
24946 yylloc->end_pos.column = end_pos;
24951rb_parser_set_location_from_strterm_heredoc(
struct parser_params *p, rb_strterm_heredoc_t *here, YYLTYPE *yylloc)
24953 int sourceline = here->sourceline;
24954 int beg_pos = parser_column(here->offset - here->quote
24955 - (
rb_strlen_lit(
"<<-") - !(here->func & STR_FUNC_INDENT)));
24956 int end_pos = parser_column(here->offset + here->length + here->quote);
24958 return rb_parser_set_pos(yylloc, sourceline, beg_pos, end_pos);
24962rb_parser_set_location_of_delayed_token(
struct parser_params *p, YYLTYPE *yylloc)
24964 yylloc->beg_pos.lineno = p->delayed.beg_line;
24965 yylloc->beg_pos.column = p->delayed.beg_col;
24966 yylloc->end_pos.lineno = p->delayed.end_line;
24967 yylloc->end_pos.column = p->delayed.end_col;
24973rb_parser_set_location_of_heredoc_end(
struct parser_params *p, YYLTYPE *yylloc)
24975 int sourceline = p->ruby_sourceline;
24976 int beg_pos = parser_column(p->lex.ptok - p->lex.pbeg);
24977 int end_pos = parser_column(p->lex.pend - p->lex.pbeg);
24978 return rb_parser_set_pos(yylloc, sourceline, beg_pos, end_pos);
24982rb_parser_set_location_of_dummy_end(
struct parser_params *p, YYLTYPE *yylloc)
24984 yylloc->end_pos = yylloc->beg_pos;
24990rb_parser_set_location_of_none(
struct parser_params *p, YYLTYPE *yylloc)
24992 int sourceline = p->ruby_sourceline;
24993 int beg_pos = parser_column(p->lex.ptok - p->lex.pbeg);
24994 int end_pos = parser_column(p->lex.ptok - p->lex.pbeg);
24995 return rb_parser_set_pos(yylloc, sourceline, beg_pos, end_pos);
24999rb_parser_set_location(
struct parser_params *p, YYLTYPE *yylloc)
25001 int sourceline = p->ruby_sourceline;
25002 int beg_pos = parser_column(p->lex.ptok - p->lex.pbeg);
25003 int end_pos = parser_column(p->lex.pcur - p->lex.pbeg);
25004 return rb_parser_set_pos(yylloc, sourceline, beg_pos, end_pos);
25011 if (!
id)
return -1;
25014 *err =
"Can't change the value of self";
25017 *err =
"Can't assign to nil";
25020 *err =
"Can't assign to true";
25022 case keyword_false:
25023 *err =
"Can't assign to false";
25025 case keyword__FILE__:
25026 *err =
"Can't assign to __FILE__";
25028 case keyword__LINE__:
25029 *err =
"Can't assign to __LINE__";
25031 case keyword__ENCODING__:
25032 *err =
"Can't assign to __ENCODING__";
25035 switch (id_type(
id)) {
25037 if (dyna_in_block(p)) {
25038 if (p->max_numparam > NO_PARAM && NUMPARAM_ID_P(
id)) {
25039 compile_error(p,
"Can't assign to numbered parameter _%d",
25040 NUMPARAM_ID_TO_IDX(
id));
25043 if (dvar_curr(p,
id))
return NODE_DASGN;
25044 if (dvar_defined(p,
id))
return NODE_DASGN;
25045 if (local_id(p,
id))
return NODE_LASGN;
25050 if (!local_id(p,
id)) local_var(p,
id);
25054 case ID_GLOBAL:
return NODE_GASGN;
25055 case ID_INSTANCE:
return NODE_IASGN;
25057 if (!p->ctxt.in_def)
return NODE_CDECL;
25058 *err =
"dynamic constant assignment";
25060 case ID_CLASS:
return NODE_CVASGN;
25062 compile_error(p,
"identifier %"PRIsVALUE
" is not valid to set", rb_id2str(
id));
25068assignable(
struct parser_params *p,
ID id, NODE *val,
const YYLTYPE *loc)
25070 const char *err = 0;
25071 int node_type = assignable0(p,
id, &err);
25072 switch (node_type) {
25073 case NODE_DASGN:
return NEW_DASGN(
id, val, loc);
25074 case NODE_LASGN:
return NEW_LASGN(
id, val, loc);
25075 case NODE_GASGN:
return NEW_GASGN(
id, val, loc);
25076 case NODE_IASGN:
return NEW_IASGN(
id, val, loc);
25077 case NODE_CDECL:
return NEW_CDECL(
id, val, 0, p->ctxt.shareable_constant_value, loc);
25078 case NODE_CVASGN:
return NEW_CVASGN(
id, val, loc);
25082 if (err) yyerror1(loc, err);
25084 if (err) set_value(assign_error(p, err, p->s_lvalue));
25086 return NEW_ERROR(loc);
25093 if (name == idUScore)
return 1;
25094 if (!is_local_id(name))
return 0;
25095 s = rb_id2str(name);
25097 return RSTRING_PTR(s)[0] ==
'_';
25103 if (dyna_in_block(p)) {
25104 if (dvar_curr(p, name)) {
25105 if (is_private_local_id(p, name))
return 1;
25106 yyerror0(
"duplicated argument name");
25108 else if (dvar_defined(p, name) || local_id(p, name)) {
25109 vtable_add(p->lvtbl->vars, name);
25110 if (p->lvtbl->used) {
25111 vtable_add(p->lvtbl->used, (
ID)p->ruby_sourceline | LVAR_USED);
25117 if (local_id(p, name)) {
25118 if (is_private_local_id(p, name))
return 1;
25119 yyerror0(
"duplicated argument name");
25128 shadowing_lvar_0(p, name);
25136 if (!is_local_id(name)) {
25137 compile_error(p,
"invalid local variable - %"PRIsVALUE,
25141 if (!shadowing_lvar_0(p, name))
return;
25144 if (dvar_defined_ref(p, name, &vidp)) {
25145 if (vidp) *vidp |= LVAR_USED;
25152 NODE *block = 0, *kwds = 0;
25153 if (args && nd_type_p(args, NODE_BLOCK_PASS)) {
25154 block = RNODE_BLOCK_PASS(args)->nd_body;
25155 args = RNODE_BLOCK_PASS(args)->nd_head;
25157 if (args && nd_type_p(args, NODE_ARGSCAT)) {
25158 args = RNODE_ARGSCAT(args)->nd_body;
25160 if (args && nd_type_p(args, NODE_ARGSPUSH)) {
25161 kwds = RNODE_ARGSPUSH(args)->nd_body;
25164 for (NODE *next = args; next && nd_type_p(next, NODE_LIST);
25165 next = RNODE_LIST(next)->nd_next) {
25166 kwds = RNODE_LIST(next)->nd_head;
25169 if (kwds && nd_type_p(kwds, NODE_HASH) && !RNODE_HASH(kwds)->nd_brace) {
25170 yyerror1(&kwds->nd_loc,
"keyword arg given in index assignment");
25173 yyerror1(&block->nd_loc,
"block arg given in index assignment");
25178aryset(
struct parser_params *p, NODE *recv, NODE *idx,
const YYLTYPE *loc)
25180 aryset_check(p, idx);
25181 return NEW_ATTRASGN(recv, tASET, idx, loc);
25185block_dup_check(
struct parser_params *p, NODE *node1, NODE *node2)
25187 if (node2 && node1 && nd_type_p(node1, NODE_BLOCK_PASS)) {
25188 compile_error(p,
"both block arg and actual block given");
25193attrset(
struct parser_params *p, NODE *recv,
ID atype,
ID id,
const YYLTYPE *loc)
25195 if (!CALL_Q_P(atype))
id = rb_id_attrset(
id);
25196 return NEW_ATTRASGN(recv,
id, 0, loc);
25203# define ERR(...) (compile_error(p, __VA_ARGS__), Qtrue)
25205# define ERR(...) rb_sprintf(__VA_ARGS__)
25207 switch (nd_type(node)) {
25209 return ERR(
"Can't set variable $%ld", RNODE_NTH_REF(node)->nd_nth);
25210 case NODE_BACK_REF:
25211 return ERR(
"Can't set variable $%c", (
int)RNODE_BACK_REF(node)->nd_nth);
25218arg_append(
struct parser_params *p, NODE *node1, NODE *node2,
const YYLTYPE *loc)
25220 if (!node1)
return NEW_LIST(node2, &node2->nd_loc);
25221 switch (nd_type(node1)) {
25223 return list_append(p, node1, node2);
25224 case NODE_BLOCK_PASS:
25225 RNODE_BLOCK_PASS(node1)->nd_head = arg_append(p, RNODE_BLOCK_PASS(node1)->nd_head, node2, loc);
25226 node1->nd_loc.end_pos = RNODE_BLOCK_PASS(node1)->nd_head->nd_loc.end_pos;
25228 case NODE_ARGSPUSH:
25229 RNODE_ARGSPUSH(node1)->nd_body = list_append(p, NEW_LIST(RNODE_ARGSPUSH(node1)->nd_body, &RNODE_ARGSPUSH(node1)->nd_body->nd_loc), node2);
25230 node1->nd_loc.end_pos = RNODE_ARGSPUSH(node1)->nd_body->nd_loc.end_pos;
25231 nd_set_type(node1, NODE_ARGSCAT);
25234 if (!nd_type_p(RNODE_ARGSCAT(node1)->nd_body, NODE_LIST))
break;
25235 RNODE_ARGSCAT(node1)->nd_body = list_append(p, RNODE_ARGSCAT(node1)->nd_body, node2);
25236 node1->nd_loc.end_pos = RNODE_ARGSCAT(node1)->nd_body->nd_loc.end_pos;
25239 return NEW_ARGSPUSH(node1, node2, loc);
25243arg_concat(
struct parser_params *p, NODE *node1, NODE *node2,
const YYLTYPE *loc)
25245 if (!node2)
return node1;
25246 switch (nd_type(node1)) {
25247 case NODE_BLOCK_PASS:
25248 if (RNODE_BLOCK_PASS(node1)->nd_head)
25249 RNODE_BLOCK_PASS(node1)->nd_head = arg_concat(p, RNODE_BLOCK_PASS(node1)->nd_head, node2, loc);
25251 RNODE_LIST(node1)->nd_head = NEW_LIST(node2, loc);
25253 case NODE_ARGSPUSH:
25254 if (!nd_type_p(node2, NODE_LIST))
break;
25255 RNODE_ARGSPUSH(node1)->nd_body = list_concat(NEW_LIST(RNODE_ARGSPUSH(node1)->nd_body, loc), node2);
25256 nd_set_type(node1, NODE_ARGSCAT);
25259 if (!nd_type_p(node2, NODE_LIST) ||
25260 !nd_type_p(RNODE_ARGSCAT(node1)->nd_body, NODE_LIST))
break;
25261 RNODE_ARGSCAT(node1)->nd_body = list_concat(RNODE_ARGSCAT(node1)->nd_body, node2);
25264 return NEW_ARGSCAT(node1, node2, loc);
25268last_arg_append(
struct parser_params *p, NODE *args, NODE *last_arg,
const YYLTYPE *loc)
25271 if ((n1 = splat_array(args)) != 0) {
25272 return list_append(p, n1, last_arg);
25274 return arg_append(p, args, last_arg, loc);
25278rest_arg_append(
struct parser_params *p, NODE *args, NODE *rest_arg,
const YYLTYPE *loc)
25281 if ((nd_type_p(rest_arg, NODE_LIST)) && (n1 = splat_array(args)) != 0) {
25282 return list_concat(n1, rest_arg);
25284 return arg_concat(p, args, rest_arg, loc);
25288splat_array(NODE* node)
25290 if (nd_type_p(node, NODE_SPLAT)) node = RNODE_SPLAT(node)->nd_head;
25291 if (nd_type_p(node, NODE_LIST))
return node;
25300 switch (nd_type(rhs)) {
25302 if (local_id_ref(p, RNODE_LASGN(rhs)->nd_vid, &vidp)) {
25303 if (vidp) *vidp |= LVAR_USED;
25307 if (dvar_defined_ref(p, RNODE_DASGN(rhs)->nd_vid, &vidp)) {
25308 if (vidp) *vidp |= LVAR_USED;
25313 for (rhs = rhs->nd_head; rhs; rhs = rhs->nd_next) {
25314 mark_lvar_used(p, rhs->nd_head);
25321static int is_static_content(NODE *node);
25326 if (!lhs)
return 0;
25328 switch (nd_type(lhs)) {
25336 set_nd_value(p, lhs, rhs);
25337 nd_set_loc(lhs, loc);
25340 case NODE_ATTRASGN:
25341 RNODE_ATTRASGN(lhs)->nd_args = arg_append(p, RNODE_ATTRASGN(lhs)->nd_args, rhs, loc);
25342 nd_set_loc(lhs, loc);
25356 NODE *void_node = 0, *vn;
25359 rb_warning0(
"empty expression");
25362 switch (nd_type(node)) {
25364 vn = RNODE_ENSURE(node)->nd_head;
25365 node = RNODE_ENSURE(node)->nd_ensr;
25367 if (vn && (vn = value_expr_check(p, vn))) {
25374 vn = RNODE_RESCUE(node)->nd_head;
25375 if (!vn || !(vn = value_expr_check(p, vn)))
return NULL;
25376 if (!void_node) void_node = vn;
25377 for (NODE *r = RNODE_RESCUE(node)->nd_resq; r; r = RNODE_RESBODY(r)->nd_next) {
25378 if (!nd_type_p(r, NODE_RESBODY)) {
25379 compile_error(p,
"unexpected node");
25382 if (!(vn = value_expr_check(p, RNODE_RESBODY(r)->nd_body))) {
25386 if (!void_node) void_node = vn;
25388 node = RNODE_RESCUE(node)->nd_else;
25389 if (!node)
return void_node;
25400 if (!RNODE_CASE3(node)->nd_body || !nd_type_p(RNODE_CASE3(node)->nd_body, NODE_IN)) {
25401 compile_error(p,
"unexpected node");
25404 if (RNODE_IN(RNODE_CASE3(node)->nd_body)->nd_body) {
25411 while (RNODE_BLOCK(node)->nd_next) {
25412 node = RNODE_BLOCK(node)->nd_next;
25414 node = RNODE_BLOCK(node)->nd_head;
25418 node = RNODE_BEGIN(node)->nd_body;
25423 if (!RNODE_IF(node)->nd_body) {
25426 else if (!RNODE_IF(node)->nd_else) {
25429 vn = value_expr_check(p, RNODE_IF(node)->nd_body);
25430 if (!vn)
return NULL;
25431 if (!void_node) void_node = vn;
25432 node = RNODE_IF(node)->nd_else;
25437 node = RNODE_AND(node)->nd_1st;
25443 mark_lvar_used(p, node);
25455 return void_node ? void_node : node;
25461 NODE *void_node = value_expr_check(p, node);
25463 yyerror1(&void_node->nd_loc,
"void value expression");
25473 const char *useless = 0;
25477 if (!node || !(node = nd_once_body(node)))
return;
25478 switch (nd_type(node)) {
25480 switch (RNODE_OPCALL(node)->nd_mid) {
25499 useless = rb_id2name(RNODE_OPCALL(node)->nd_mid);
25510 case NODE_BACK_REF:
25511 useless =
"a variable";
25514 useless =
"a constant";
25519 case NODE_ENCODING:
25522 case NODE_RATIONAL:
25523 case NODE_IMAGINARY:
25528 useless =
"a literal";
25553 useless =
"defined?";
25558 rb_warn1L(nd_line(node),
"possibly useless use of %s in void context", WARN_S(useless));
25566 NODE *
const n = node;
25568 if (!node)
return n;
25569 if (!nd_type_p(node, NODE_BLOCK))
return n;
25571 while (RNODE_BLOCK(node)->nd_next) {
25572 void_expr(p, RNODE_BLOCK(node)->nd_head);
25573 node = RNODE_BLOCK(node)->nd_next;
25575 return RNODE_BLOCK(node)->nd_head;
25579remove_begin(NODE *node)
25581 NODE **n = &node, *n1 = node;
25582 while (n1 && nd_type_p(n1, NODE_BEGIN) && RNODE_BEGIN(n1)->nd_body) {
25583 *n = n1 = RNODE_BEGIN(n1)->nd_body;
25591 NODE *node = *body;
25594 *body = NEW_NIL(&NULL_LOC);
25597#define subnodes(type, n1, n2) \
25598 ((!type(node)->n1) ? (type(node)->n2 ? (body = &type(node)->n2, 1) : 0) : \
25599 (!type(node)->n2) ? (body = &type(node)->n1, 1) : \
25600 (reduce_nodes(p, &type(node)->n1), body = &type(node)->n2, 1))
25603 int newline = (int)nd_fl_newline(node);
25604 switch (nd_type(node)) {
25610 *body = node = RNODE_BEGIN(node)->nd_body;
25611 if (newline && node) nd_set_fl_newline(node);
25614 body = &RNODE_BLOCK(RNODE_BLOCK(node)->nd_end)->nd_head;
25618 if (subnodes(RNODE_IF, nd_body, nd_else))
break;
25621 body = &RNODE_CASE(node)->nd_body;
25624 if (!subnodes(RNODE_WHEN, nd_body, nd_next))
goto end;
25627 body = &RNODE_ENSURE(node)->nd_head;
25631 if (RNODE_RESCUE(node)->nd_else) {
25632 body = &RNODE_RESCUE(node)->nd_resq;
25635 if (!subnodes(RNODE_RESCUE, nd_head, nd_resq))
goto end;
25641 if (newline && node) nd_set_fl_newline(node);
25648is_static_content(NODE *node)
25650 if (!node)
return 1;
25651 switch (nd_type(node)) {
25653 if (!(node = RNODE_HASH(node)->nd_head))
break;
25656 if (!is_static_content(RNODE_LIST(node)->nd_head))
return 0;
25657 }
while ((node = RNODE_LIST(node)->nd_next) != 0);
25662 case NODE_ENCODING:
25665 case NODE_RATIONAL:
25666 case NODE_IMAGINARY:
25682 switch (nd_type(node)) {
25696 if (!get_nd_value(p, node))
return 1;
25697 if (is_static_content(get_nd_value(p, node))) {
25699 rb_warn0L(nd_line(get_nd_value(p, node)),
"found '= literal' in conditional, should be ==");
25710#define SWITCH_BY_COND_TYPE(t, w, arg) do { \
25712 case COND_IN_OP: break; \
25713 case COND_IN_COND: rb_##w##0(arg "literal in condition"); break; \
25714 case COND_IN_FF: rb_##w##0(arg "literal in flip-flop"); break; \
25718static NODE *cond0(
struct parser_params*,NODE*,
enum cond_type,
const YYLTYPE*,
bool);
25721range_op(
struct parser_params *p, NODE *node,
const YYLTYPE *loc)
25723 enum node_type
type;
25725 if (node == 0)
return 0;
25727 type = nd_type(node);
25728 value_expr(p, node);
25729 if (
type == NODE_INTEGER) {
25730 if (!e_option_supplied(p)) rb_warn0L(nd_line(node),
"integer literal in flip-flop");
25731 ID lineno = rb_intern(
"$.");
25732 return NEW_CALL(node, tEQ, NEW_LIST(NEW_GVAR(lineno, loc), loc), loc);
25734 return cond0(p, node, COND_IN_FF, loc,
true);
25738cond0(
struct parser_params *p, NODE *node,
enum cond_type
type,
const YYLTYPE *loc,
bool top)
25740 if (node == 0)
return 0;
25741 if (!(node = nd_once_body(node)))
return 0;
25742 assign_in_cond(p, node);
25744 switch (nd_type(node)) {
25746 RNODE_BEGIN(node)->nd_body = cond0(p, RNODE_BEGIN(node)->nd_body,
type, loc, top);
25753 SWITCH_BY_COND_TYPE(
type, warn,
"string ");
25757 if (!e_option_supplied(p)) SWITCH_BY_COND_TYPE(
type, warn,
"regex ");
25758 nd_set_type(node, NODE_MATCH);
25762 if (!e_option_supplied(p)) SWITCH_BY_COND_TYPE(
type, warning,
"regex ");
25764 return NEW_MATCH2(node, NEW_GVAR(idLASTLINE, loc), loc);
25768 NODE *end = RNODE_BLOCK(node)->nd_end;
25769 NODE **expr = &RNODE_BLOCK(end)->nd_head;
25770 if (top) top = node == end;
25771 *expr = cond0(p, *expr,
type, loc, top);
25777 RNODE_AND(node)->nd_1st = cond0(p, RNODE_AND(node)->nd_1st, COND_IN_COND, loc,
true);
25778 RNODE_AND(node)->nd_2nd = cond0(p, RNODE_AND(node)->nd_2nd, COND_IN_COND, loc,
true);
25784 RNODE_DOT2(node)->nd_beg = range_op(p, RNODE_DOT2(node)->nd_beg, loc);
25785 RNODE_DOT2(node)->nd_end = range_op(p, RNODE_DOT2(node)->nd_end, loc);
25786 switch (nd_type(node)) {
25788 nd_set_type(node,NODE_FLIP2);
25789 rb_node_flip2_t *flip2 = RNODE_FLIP2(node);
25793 nd_set_type(node, NODE_FLIP3);
25794 rb_node_flip3_t *flip3 = RNODE_FLIP3(node);
25802 SWITCH_BY_COND_TYPE(
type, warning,
"symbol ");
25806 case NODE_ENCODING:
25809 case NODE_RATIONAL:
25810 case NODE_IMAGINARY:
25811 SWITCH_BY_COND_TYPE(
type, warning,
"");
25821cond(
struct parser_params *p, NODE *node,
const YYLTYPE *loc)
25823 if (node == 0)
return 0;
25824 return cond0(p, node, COND_IN_COND, loc,
true);
25828method_cond(
struct parser_params *p, NODE *node,
const YYLTYPE *loc)
25830 if (node == 0)
return 0;
25831 return cond0(p, node, COND_IN_OP, loc,
true);
25835new_nil_at(
struct parser_params *p,
const rb_code_position_t *pos)
25837 YYLTYPE loc = {*pos, *pos};
25838 return NEW_NIL(&loc);
25842new_if(
struct parser_params *p, NODE *cc, NODE *left, NODE *right,
const YYLTYPE *loc,
const YYLTYPE* if_keyword_loc,
const YYLTYPE* then_keyword_loc,
const YYLTYPE* end_keyword_loc)
25844 if (!cc)
return right;
25845 cc = cond0(p, cc, COND_IN_COND, loc,
true);
25846 return newline_node(NEW_IF(cc, left, right, loc, if_keyword_loc, then_keyword_loc, end_keyword_loc));
25850new_unless(
struct parser_params *p, NODE *cc, NODE *left, NODE *right,
const YYLTYPE *loc,
const YYLTYPE *keyword_loc,
const YYLTYPE *then_keyword_loc,
const YYLTYPE *end_keyword_loc)
25852 if (!cc)
return right;
25853 cc = cond0(p, cc, COND_IN_COND, loc,
true);
25854 return newline_node(NEW_UNLESS(cc, left, right, loc, keyword_loc, then_keyword_loc, end_keyword_loc));
25857#define NEW_AND_OR(type, f, s, loc, op_loc) (type == NODE_AND ? NEW_AND(f,s,loc,op_loc) : NEW_OR(f,s,loc,op_loc))
25861 const YYLTYPE *op_loc,
const YYLTYPE *loc)
25863 enum node_type
type =
id == idAND ||
id == idANDOP ? NODE_AND : NODE_OR;
25865 value_expr(p, left);
25866 if (left && nd_type_p(left,
type)) {
25867 NODE *node = left, *second;
25868 while ((second = RNODE_AND(node)->nd_2nd) != 0 && nd_type_p(second,
type)) {
25871 RNODE_AND(node)->nd_2nd = NEW_AND_OR(
type, second, right, loc, op_loc);
25872 nd_set_line(RNODE_AND(node)->nd_2nd, op_loc->beg_pos.lineno);
25873 left->nd_loc.end_pos = loc->end_pos;
25876 op = NEW_AND_OR(
type, left, right, loc, op_loc);
25877 nd_set_line(op, op_loc->beg_pos.lineno);
25886 if (nd_type_p(node, NODE_BLOCK_PASS)) {
25887 compile_error(p,
"block argument should not be given");
25895 no_blockarg(p, node);
25896 if (nd_type_p(node, NODE_LIST) && !RNODE_LIST(node)->nd_next) {
25897 node = RNODE_LIST(node)->nd_head;
25904negate_lit(
struct parser_params *p, NODE* node,
const YYLTYPE *loc)
25906 switch (nd_type(node)) {
25908 RNODE_INTEGER(node)->minus = TRUE;
25911 RNODE_FLOAT(node)->minus = TRUE;
25913 case NODE_RATIONAL:
25914 RNODE_RATIONAL(node)->minus = TRUE;
25916 case NODE_IMAGINARY:
25917 RNODE_IMAGINARY(node)->minus = TRUE;
25920 node->nd_loc = *loc;
25925arg_blk_pass(NODE *node1, rb_node_block_pass_t *node2)
25928 if (!node1)
return (NODE *)node2;
25929 node2->nd_head = node1;
25930 nd_set_first_lineno(node2, nd_first_lineno(node1));
25931 nd_set_first_column(node2, nd_first_column(node1));
25932 return (NODE *)node2;
25940 if (args->pre_args_num)
return false;
25941 if (args->post_args_num)
return false;
25942 if (args->rest_arg)
return false;
25943 if (args->opt_args)
return false;
25944 if (args->block_arg)
return false;
25945 if (args->kw_args)
return false;
25946 if (args->kw_rest_arg)
return false;
25950static rb_node_args_t *
25951new_args(
struct parser_params *p, rb_node_args_aux_t *pre_args, rb_node_opt_arg_t *opt_args,
ID rest_arg, rb_node_args_aux_t *post_args, rb_node_args_t *tail,
const YYLTYPE *loc)
25955 if (args->forwarding) {
25957 yyerror1(&RNODE(tail)->nd_loc,
"... after rest argument");
25960 rest_arg = idFWD_REST;
25963 args->pre_args_num = pre_args ? pre_args->nd_plen : 0;
25964 args->pre_init = pre_args ? pre_args->nd_next : 0;
25966 args->post_args_num = post_args ? post_args->nd_plen : 0;
25967 args->post_init = post_args ? post_args->nd_next : 0;
25968 args->first_post_arg = post_args ? post_args->nd_pid : 0;
25970 args->rest_arg = rest_arg;
25972 args->opt_args = opt_args;
25974 nd_set_loc(RNODE(tail), loc);
25979static rb_node_args_t *
25980new_args_tail(
struct parser_params *p, rb_node_kw_arg_t *kw_args,
ID kw_rest_arg,
ID block,
const YYLTYPE *kw_rest_loc)
25982 rb_node_args_t *node = NEW_ARGS(&NULL_LOC);
25984 if (p->error_p)
return node;
25986 args->block_arg = block;
25987 args->kw_args = kw_args;
25996 ID kw_bits = internal_id(p), *required_kw_vars, *kw_vars;
25997 struct vtable *vtargs = p->lvtbl->args;
25998 rb_node_kw_arg_t *kwn = kw_args;
26000 if (block) block = vtargs->tbl[vtargs->pos-1];
26001 vtable_pop(vtargs, !!block + !!kw_rest_arg);
26002 required_kw_vars = kw_vars = &vtargs->tbl[vtargs->pos];
26004 if (!NODE_REQUIRED_KEYWORD_P(get_nd_value(p, kwn->nd_body)))
26006 --required_kw_vars;
26007 kwn = kwn->nd_next;
26010 for (kwn = kw_args; kwn; kwn = kwn->nd_next) {
26011 ID vid = get_nd_vid(p, kwn->nd_body);
26012 if (NODE_REQUIRED_KEYWORD_P(get_nd_value(p, kwn->nd_body))) {
26013 *required_kw_vars++ = vid;
26020 arg_var(p, kw_bits);
26021 if (kw_rest_arg) arg_var(p, kw_rest_arg);
26022 if (block) arg_var(p, block);
26024 args->kw_rest_arg = NEW_DVAR(kw_rest_arg, kw_rest_loc);
26026 else if (kw_rest_arg == idNil) {
26027 args->no_kwarg = 1;
26029 else if (kw_rest_arg) {
26030 args->kw_rest_arg = NEW_DVAR(kw_rest_arg, kw_rest_loc);
26036static rb_node_args_t *
26037args_with_numbered(
struct parser_params *p, rb_node_args_t *args,
int max_numparam,
ID it_id)
26039 if (max_numparam > NO_PARAM || it_id) {
26041 YYLTYPE loc = RUBY_INIT_YYLLOC();
26042 args = new_args_tail(p, 0, 0, 0, 0);
26043 nd_set_loc(RNODE(args), &loc);
26045 args->nd_ainfo.pre_args_num = it_id ? 1 : max_numparam;
26051new_array_pattern(
struct parser_params *p, NODE *constant, NODE *pre_arg, NODE *aryptn,
const YYLTYPE *loc)
26053 RNODE_ARYPTN(aryptn)->nd_pconst = constant;
26056 NODE *pre_args = NEW_LIST(pre_arg, loc);
26057 if (RNODE_ARYPTN(aryptn)->pre_args) {
26058 RNODE_ARYPTN(aryptn)->pre_args = list_concat(pre_args, RNODE_ARYPTN(aryptn)->pre_args);
26061 RNODE_ARYPTN(aryptn)->pre_args = pre_args;
26068new_array_pattern_tail(
struct parser_params *p, NODE *pre_args,
int has_rest, NODE *rest_arg, NODE *post_args,
const YYLTYPE *loc)
26071 rest_arg = rest_arg ? rest_arg : NODE_SPECIAL_NO_NAME_REST;
26076 NODE *node = NEW_ARYPTN(pre_args, rest_arg, post_args, loc);
26082new_find_pattern(
struct parser_params *p, NODE *constant, NODE *fndptn,
const YYLTYPE *loc)
26084 RNODE_FNDPTN(fndptn)->nd_pconst = constant;
26090new_find_pattern_tail(
struct parser_params *p, NODE *pre_rest_arg, NODE *args, NODE *post_rest_arg,
const YYLTYPE *loc)
26092 pre_rest_arg = pre_rest_arg ? pre_rest_arg : NODE_SPECIAL_NO_NAME_REST;
26093 post_rest_arg = post_rest_arg ? post_rest_arg : NODE_SPECIAL_NO_NAME_REST;
26094 NODE *node = NEW_FNDPTN(pre_rest_arg, args, post_rest_arg, loc);
26100new_hash_pattern(
struct parser_params *p, NODE *constant, NODE *hshptn,
const YYLTYPE *loc)
26102 RNODE_HSHPTN(hshptn)->nd_pconst = constant;
26107new_hash_pattern_tail(
struct parser_params *p, NODE *kw_args,
ID kw_rest_arg,
const YYLTYPE *loc)
26109 NODE *node, *kw_rest_arg_node;
26111 if (kw_rest_arg == idNil) {
26112 kw_rest_arg_node = NODE_SPECIAL_NO_REST_KEYWORD;
26114 else if (kw_rest_arg) {
26115 kw_rest_arg_node = assignable(p, kw_rest_arg, 0, loc);
26118 kw_rest_arg_node = NULL;
26121 node = NEW_HSHPTN(0, kw_args, kw_rest_arg_node, loc);
26127dsym_node(
struct parser_params *p, NODE *node,
const YYLTYPE *loc)
26130 return NEW_SYM(STR_NEW0(), loc);
26133 switch (nd_type(node)) {
26135 nd_set_type(node, NODE_DSYM);
26136 nd_set_loc(node, loc);
26139 node = str_to_sym_node(p, node, loc);
26142 node = NEW_DSYM(0, 1, NEW_LIST(node, loc), loc);
26149nd_type_st_key_enable_p(NODE *node)
26151 switch (nd_type(node)) {
26154 case NODE_RATIONAL:
26155 case NODE_IMAGINARY:
26161 case NODE_ENCODING:
26171 switch (nd_type(node)) {
26173 return rb_node_str_string_val(node);
26175 return rb_node_integer_literal_val(node);
26177 return rb_node_float_literal_val(node);
26178 case NODE_RATIONAL:
26179 return rb_node_rational_literal_val(node);
26180 case NODE_IMAGINARY:
26181 return rb_node_imaginary_literal_val(node);
26183 return rb_node_sym_string_val(node);
26185 return rb_node_regx_string_val(node);
26187 return rb_node_line_lineno_val(node);
26188 case NODE_ENCODING:
26189 return rb_node_encoding_val(node);
26191 return rb_node_file_path_val(node);
26193 rb_bug(
"unexpected node: %s", ruby_node_name(nd_type(node)));
26202 p->warn_duplicate_keys_table = st_init_table_with_size(&literal_type, RNODE_LIST(hash)->as.nd_alen / 2);
26203 while (hash && RNODE_LIST(hash)->nd_next) {
26204 NODE *head = RNODE_LIST(hash)->nd_head;
26205 NODE *value = RNODE_LIST(hash)->nd_next;
26206 NODE *next = RNODE_LIST(value)->nd_next;
26215 if (nd_type_st_key_enable_p(head)) {
26216 key = (st_data_t)head;
26218 if (st_delete(p->warn_duplicate_keys_table, &key, &data)) {
26219 rb_warn2L(nd_line((NODE *)data),
26220 "key %+"PRIsWARN
" is duplicated and overwritten on line %d",
26221 nd_value(p, head), WARN_I(nd_line(head)));
26223 st_insert(p->warn_duplicate_keys_table, (st_data_t)key, (st_data_t)hash);
26227 st_free_table(p->warn_duplicate_keys_table);
26228 p->warn_duplicate_keys_table = NULL;
26232new_hash(
struct parser_params *p, NODE *hash,
const YYLTYPE *loc)
26234 if (hash) warn_duplicate_keys(p, hash);
26235 return NEW_HASH(hash, loc);
26239error_duplicate_pattern_variable(
struct parser_params *p,
ID id,
const YYLTYPE *loc)
26241 if (is_private_local_id(p,
id)) {
26244 if (st_is_member(p->pvtbl,
id)) {
26245 yyerror1(loc,
"duplicated variable name");
26247 else if (p->ctxt.in_alt_pattern &&
id) {
26248 yyerror1(loc,
"variable capture in alternative pattern");
26251 p->ctxt.capture_in_pattern = 1;
26252 st_insert(p->pvtbl, (st_data_t)
id, 0);
26260 p->pktbl = st_init_numtable();
26262 else if (st_is_member(p->pktbl, key)) {
26263 yyerror1(loc,
"duplicated key name");
26266 st_insert(p->pktbl, (st_data_t)key, 0);
26270new_unique_key_hash(
struct parser_params *p, NODE *hash,
const YYLTYPE *loc)
26272 return NEW_HASH(hash, loc);
26281 ID vid = get_nd_vid(p, lhs);
26282 YYLTYPE lhs_loc = lhs->nd_loc;
26284 set_nd_value(p, lhs, rhs);
26285 nd_set_loc(lhs, loc);
26286 asgn = NEW_OP_ASGN_OR(gettable(p, vid, &lhs_loc), lhs, loc);
26288 else if (op == tANDOP) {
26289 set_nd_value(p, lhs, rhs);
26290 nd_set_loc(lhs, loc);
26291 asgn = NEW_OP_ASGN_AND(gettable(p, vid, &lhs_loc), lhs, loc);
26295 rhs = NEW_CALL(gettable(p, vid, &lhs_loc), op, NEW_LIST(rhs, &rhs->nd_loc), loc);
26296 set_nd_value(p, asgn, rhs);
26297 nd_set_loc(asgn, loc);
26301 asgn = NEW_ERROR(loc);
26308 NODE *args,
ID op, NODE *rhs,
const YYLTYPE *args_loc,
const YYLTYPE *loc,
26309 const YYLTYPE *call_operator_loc,
const YYLTYPE *opening_loc,
const YYLTYPE *closing_loc,
const YYLTYPE *binary_operator_loc)
26313 aryset_check(p, args);
26314 args = make_list(args, args_loc);
26315 asgn = NEW_OP_ASGN1(ary, op, args, rhs, loc, call_operator_loc, opening_loc, closing_loc, binary_operator_loc);
26322 ID atype,
ID attr,
ID op, NODE *rhs,
const YYLTYPE *loc,
26323 const YYLTYPE *call_operator_loc,
const YYLTYPE *message_loc,
const YYLTYPE *binary_operator_loc)
26327 asgn = NEW_OP_ASGN2(lhs, CALL_Q_P(atype), attr, op, rhs, loc, call_operator_loc, message_loc, binary_operator_loc);
26338 asgn = NEW_OP_CDECL(lhs, op, rhs, ctxt.shareable_constant_value, loc);
26341 asgn = NEW_ERROR(loc);
26348const_decl(
struct parser_params *p, NODE *path,
const YYLTYPE *loc)
26350 if (p->ctxt.in_def) {
26352 yyerror1(loc,
"dynamic constant assignment");
26354 set_value(assign_error(p,
"dynamic constant assignment", p->s_lvalue));
26357 return NEW_CDECL(0, 0, (path), p->ctxt.shareable_constant_value, loc);
26364 a = dispatch2(assign_error, ERR_MESG(), a);
26371new_bodystmt(
struct parser_params *p, NODE *head, NODE *rescue, NODE *rescue_else, NODE *ensure,
const YYLTYPE *loc)
26373 NODE *result = head;
26375 NODE *tmp = rescue_else ? rescue_else : rescue;
26376 YYLTYPE rescue_loc = code_loc_gen(&head->nd_loc, &tmp->nd_loc);
26378 result = NEW_RESCUE(head, rescue, rescue_else, &rescue_loc);
26379 nd_set_line(result, rescue->nd_loc.beg_pos.lineno);
26382 result = NEW_ENSURE(result, ensure, loc);
26384 fixpos(result, head);
26393 if (!local->used)
return;
26394 cnt = local->used->pos;
26395 if (cnt != local->vars->pos) {
26396 rb_parser_fatal(p,
"local->used->pos != local->vars->pos");
26399 ID *v = local->vars->tbl;
26400 ID *u = local->used->tbl;
26401 for (
int i = 0; i < cnt; ++i) {
26402 if (!v[i] || (u[i] & LVAR_USED))
continue;
26403 if (is_private_local_id(p, v[i]))
continue;
26404 rb_warn1L((
int)u[i],
"assigned but unused variable - %"PRIsWARN, rb_id2str(v[i]));
26413 int inherits_dvars = toplevel_scope && compile_for_eval;
26417 local->prev = p->lvtbl;
26418 local->args = vtable_alloc(0);
26419 local->vars = vtable_alloc(inherits_dvars ? DVARS_INHERIT : DVARS_TOPSCOPE);
26421 if (toplevel_scope && compile_for_eval) warn_unused_vars = 0;
26422 if (toplevel_scope && e_option_supplied(p)) warn_unused_vars = 0;
26424 local->numparam.outer = 0;
26425 local->numparam.inner = 0;
26426 local->numparam.current = 0;
26428 local->used = warn_unused_vars ? vtable_alloc(0) : 0;
26430# if WARN_PAST_SCOPE
26441 while (!DVARS_TERMINAL_P(table)) {
26442 struct vtable *cur_table = table;
26443 table = cur_table->prev;
26444 vtable_free(cur_table);
26451 vtable_chain_free(p, local->used);
26453# if WARN_PAST_SCOPE
26454 vtable_chain_free(p, local->past);
26457 vtable_chain_free(p, local->args);
26458 vtable_chain_free(p, local->vars);
26460 ruby_sized_xfree(local,
sizeof(
struct local_vars));
26467 if (p->lvtbl->used) {
26468 warn_unused_var(p, p->lvtbl);
26471 local_free(p, p->lvtbl);
26478static rb_ast_id_table_t *
26481 int cnt_args = vtable_size(p->lvtbl->args);
26482 int cnt_vars = vtable_size(p->lvtbl->vars);
26483 int cnt = cnt_args + cnt_vars;
26485 rb_ast_id_table_t *tbl;
26487 if (cnt <= 0)
return 0;
26488 tbl = rb_ast_new_local_table(p->ast, cnt);
26489 MEMCPY(tbl->ids, p->lvtbl->args->tbl,
ID, cnt_args);
26491 for (i = 0, j = cnt_args; i < cnt_vars; ++i) {
26492 ID id = p->lvtbl->vars->tbl[i];
26493 if (!vtable_included(p->lvtbl->args,
id)) {
26494 tbl->ids[j++] = id;
26498 tbl = rb_ast_resize_latest_local_table(p->ast, j);
26507 if (!NUMPARAM_ID_P(
id))
return;
26508 compile_error(p,
"_%d is reserved for numbered parameter",
26509 NUMPARAM_ID_TO_IDX(
id));
26515 numparam_name(p,
id);
26516 vtable_add(p->lvtbl->args,
id);
26522 numparam_name(p,
id);
26523 vtable_add(p->lvtbl->vars,
id);
26524 if (p->lvtbl->used) {
26525 vtable_add(p->lvtbl->used, (
ID)p->ruby_sourceline);
26533 return rb_local_defined(
id, iseq);
26540 struct vtable *vars, *args, *used;
26542 vars = p->lvtbl->vars;
26543 args = p->lvtbl->args;
26544 used = p->lvtbl->used;
26546 while (vars && !DVARS_TERMINAL_P(vars->prev)) {
26549 if (used) used = used->prev;
26552 if (vars && vars->prev == DVARS_INHERIT) {
26553 return rb_parser_local_defined(p,
id, p->parent_iseq);
26555 else if (vtable_included(args,
id)) {
26559 int i = vtable_included(vars,
id);
26560 if (i && used && vidrefp) *vidrefp = &used->tbl[i-1];
26568 return local_id_ref(p,
id, NULL);
26574 if (local_id(p, idFWD_ALL))
return TRUE;
26575 compile_error(p,
"unexpected ...");
26582 arg_var(p, idFWD_REST);
26583 arg_var(p, idFWD_KWREST);
26584 arg_var(p, idFWD_BLOCK);
26585 arg_var(p, idFWD_ALL);
26591 bool conflict =
false;
26593 struct vtable *vars, *args;
26595 vars = p->lvtbl->vars;
26596 args = p->lvtbl->args;
26598 while (vars && !DVARS_TERMINAL_P(vars->prev)) {
26599 conflict |= (vtable_included(args, arg) && !(all && vtable_included(args, all)));
26604 bool found =
false;
26605 if (vars && vars->prev == DVARS_INHERIT && !found) {
26606 found = (rb_parser_local_defined(p, arg, p->parent_iseq) &&
26607 !(all && rb_parser_local_defined(p, all, p->parent_iseq)));
26610 found = (vtable_included(args, arg) &&
26611 !(all && vtable_included(args, all)));
26615 compile_error(p,
"no anonymous %s parameter", var);
26617 else if (conflict) {
26618 compile_error(p,
"anonymous %s parameter is also used within block", var);
26623new_args_forward_call(
struct parser_params *p, NODE *leading,
const YYLTYPE *loc,
const YYLTYPE *argsloc)
26625 NODE *rest = NEW_LVAR(idFWD_REST, loc);
26626 NODE *kwrest = list_append(p, NEW_LIST(0, loc), NEW_LVAR(idFWD_KWREST, loc));
26627 rb_node_block_pass_t *block = NEW_BLOCK_PASS(NEW_LVAR(idFWD_BLOCK, loc), argsloc, &NULL_LOC);
26628 NODE *args = leading ? rest_arg_append(p, leading, rest, argsloc) : NEW_SPLAT(rest, loc, &NULL_LOC);
26629 block->forwarding = TRUE;
26630 args = arg_append(p, args, new_hash(p, kwrest, loc), argsloc);
26631 return arg_blk_pass(args, block);
26638 NODE *inner = local->numparam.inner;
26639 if (!local->numparam.outer) {
26640 local->numparam.outer = local->numparam.current;
26642 local->numparam.inner = 0;
26643 local->numparam.current = 0;
26654 local->numparam.inner = prev_inner;
26656 else if (local->numparam.current) {
26658 local->numparam.inner = local->numparam.current;
26660 if (p->max_numparam > NO_PARAM) {
26662 local->numparam.current = local->numparam.outer;
26663 local->numparam.outer = 0;
26667 local->numparam.current = 0;
26672static const struct vtable *
26675 p->lvtbl->args = vtable_alloc(p->lvtbl->args);
26676 p->lvtbl->vars = vtable_alloc(p->lvtbl->vars);
26677 if (p->lvtbl->used) {
26678 p->lvtbl->used = vtable_alloc(p->lvtbl->used);
26680 return p->lvtbl->args;
26686 struct vtable *tmp = *vtblp;
26687 *vtblp = tmp->prev;
26688# if WARN_PAST_SCOPE
26689 if (p->past_scope_enabled) {
26690 tmp->prev = p->lvtbl->past;
26691 p->lvtbl->past = tmp;
26703 if ((tmp = p->lvtbl->used) != 0) {
26704 warn_unused_var(p, p->lvtbl);
26705 p->lvtbl->used = p->lvtbl->used->prev;
26708 dyna_pop_vtable(p, &p->lvtbl->args);
26709 dyna_pop_vtable(p, &p->lvtbl->vars);
26715 while (p->lvtbl->args != lvargs) {
26717 if (!p->lvtbl->args) {
26719 ruby_sized_xfree(p->lvtbl,
sizeof(*p->lvtbl));
26729 return !DVARS_TERMINAL_P(p->lvtbl->vars) && p->lvtbl->vars->prev != DVARS_TOPSCOPE;
26736 struct vtable *vars, *args, *used;
26739 args = p->lvtbl->args;
26740 vars = p->lvtbl->vars;
26741 used = p->lvtbl->used;
26743 while (!DVARS_TERMINAL_P(vars)) {
26744 if (vtable_included(args,
id)) {
26747 if ((i = vtable_included(vars,
id)) != 0) {
26748 if (used && vidrefp) *vidrefp = &used->tbl[i-1];
26753 if (!vidrefp) used = 0;
26754 if (used) used = used->prev;
26757 if (vars == DVARS_INHERIT && !NUMPARAM_ID_P(
id)) {
26758 return rb_dvar_defined(
id, p->parent_iseq);
26768 return dvar_defined_ref(p,
id, NULL);
26774 return (vtable_included(p->lvtbl->args,
id) ||
26775 vtable_included(p->lvtbl->vars,
id));
26779reg_fragment_enc_error(
struct parser_params* p, rb_parser_string_t *str,
int c)
26782 "regexp encoding option '%c' differs from source encoding '%s'",
26783 c, rb_enc_name(rb_parser_str_get_encoding(str)));
26787static rb_encoding *
26790 int idx = rb_enc_find_index(name);
26792 rb_bug(
"unknown encoding name: %s", name);
26795 return rb_enc_from_index(idx);
26798static rb_encoding *
26804 case ENC_ASCII8BIT:
26805 enc = rb_ascii8bit_encoding();
26808 enc = find_enc(p,
"EUC-JP");
26810 case ENC_Windows_31J:
26811 enc = find_enc(p,
"Windows-31J");
26814 enc = rb_utf8_encoding();
26825rb_reg_fragment_setenc(
struct parser_params* p, rb_parser_string_t *str,
int options)
26827 int c = RE_OPTION_ENCODING_IDX(options);
26833 char_to_option_kcode(c, &opt, &idx);
26834 enc = kcode_to_enc(p, idx);
26835 if (enc != rb_parser_str_get_encoding(str) &&
26836 !rb_parser_is_ascii_string(p, str)) {
26839 rb_parser_string_set_encoding(str, enc);
26841 else if (RE_OPTION_ENCODING_NONE(options)) {
26842 if (!PARSER_ENCODING_IS_ASCII8BIT(p, str) &&
26843 !rb_parser_is_ascii_string(p, str)) {
26847 rb_parser_enc_associate(p, str, rb_ascii8bit_encoding());
26849 else if (rb_is_usascii_enc(p->enc)) {
26850 rb_parser_enc_associate(p, str, rb_ascii8bit_encoding());
26860reg_fragment_setenc(
struct parser_params* p, rb_parser_string_t *str,
int options)
26862 int c = rb_reg_fragment_setenc(p, str, options);
26863 if (c) reg_fragment_enc_error(p, str, c);
26866#ifndef UNIVERSAL_PARSER
26872 rb_parser_assignable_func assignable;
26876reg_named_capture_assign_iter(
const OnigUChar *name,
const OnigUChar *name_end,
26877 int back_num,
int *back_refs, OnigRegex regex,
void *arg0)
26881 rb_encoding *enc = arg->enc;
26882 long len = name_end - name;
26883 const char *s = (
const char *)name;
26885 return rb_reg_named_capture_assign_iter_impl(p, s,
len, enc, &arg->succ_block, arg->loc, arg->assignable);
26889reg_named_capture_assign(
struct parser_params* p,
VALUE regexp,
const YYLTYPE *loc, rb_parser_assignable_func assignable)
26894 arg.enc = rb_enc_get(regexp);
26895 arg.succ_block = 0;
26897 arg.assignable = assignable;
26898 onig_foreach_name(
RREGEXP_PTR(regexp), reg_named_capture_assign_iter, &arg);
26900 if (!arg.succ_block)
return 0;
26901 return RNODE_BLOCK(arg.succ_block)->nd_next;
26907rb_parser_assignable(
struct parser_params *p,
ID id, NODE *val,
const YYLTYPE *loc)
26909 return assignable(p,
id, val, loc);
26913rb_reg_named_capture_assign_iter_impl(
struct parser_params *p,
const char *s,
long len,
26914 rb_encoding *enc, NODE **succ_block,
const rb_code_location_t *loc, rb_parser_assignable_func assignable)
26919 if (!
len)
return ST_CONTINUE;
26921 if (UNLIKELY(p->enc != enc)) {
26923 rb_str_coderange_scan_restartable(s, s +
len, rb_ascii8bit_encoding(), &cr);
26927 if (!VALID_SYMNAME_P(s,
len, enc, ID_LOCAL))
26928 return ST_CONTINUE;
26930 var = intern_cstr(s,
len, enc);
26931 if (
len < MAX_WORD_LENGTH && rb_reserved_word(s, (
int)
len)) {
26932 if (!lvar_defined(p, var))
return ST_CONTINUE;
26934 node = node_assign(p, assignable(p, var, 0, loc), NEW_SYM(rb_id2str(var), loc), NO_LEX_CTXT, loc);
26935 succ = *succ_block;
26936 if (!succ) succ = NEW_ERROR(loc);
26937 succ = block_append(p, succ, node);
26938 *succ_block = succ;
26939 return ST_CONTINUE;
26944parser_reg_compile(
struct parser_params* p, rb_parser_string_t *str,
int options)
26947 reg_fragment_setenc(p, str, options);
26948 str2 = rb_str_new_parser_string(str);
26949 return rb_parser_reg_compile(p, str2, options);
26956 return rb_reg_compile(str, options & RE_OPTION_MASK, p->ruby_sourcefile, p->ruby_sourceline);
26961reg_compile(
struct parser_params* p, rb_parser_string_t *str,
int options)
26966 err = rb_errinfo();
26967 re = parser_reg_compile(p, str, options);
26969 VALUE m = rb_attr_get(rb_errinfo(), idMesg);
26970 rb_set_errinfo(err);
26971 compile_error(p,
"%"PRIsVALUE, m);
26979rb_ruby_parser_set_options(
struct parser_params *p,
int print,
int loop,
int chomp,
int split)
26981 p->do_print = print;
26983 p->do_chomp = chomp;
26984 p->do_split = split;
26990 static const YYLTYPE default_location = {{1, 0}, {1, 0}};
26991 const YYLTYPE *
const LOC = &default_location;
26994 NODE *print = (NODE *)NEW_FCALL(rb_intern(
"print"),
26995 NEW_LIST(NEW_GVAR(idLASTLINE, LOC), LOC),
26997 node = block_append(p, node, print);
27001 NODE *irs = NEW_LIST(NEW_GVAR(rb_intern(
"$/"), LOC), LOC);
27004 ID ifs = rb_intern(
"$;");
27005 ID fields = rb_intern(
"$F");
27006 NODE *args = NEW_LIST(NEW_GVAR(ifs, LOC), LOC);
27007 NODE *split = NEW_GASGN(fields,
27008 NEW_CALL(NEW_GVAR(idLASTLINE, LOC),
27009 rb_intern(
"split"), args, LOC),
27011 node = block_append(p, split, node);
27015 chomp = list_append(p, NEW_LIST(chomp, LOC), NEW_TRUE(LOC));
27016 irs = list_append(p, irs, NEW_HASH(chomp, LOC));
27019 node = NEW_WHILE((NODE *)NEW_FCALL(idGets, irs, LOC), node, 1, LOC, &NULL_LOC, &NULL_LOC);
27036 return rb_make_temporary_id(vtable_size(p->lvtbl->args) + vtable_size(p->lvtbl->vars));
27044 p->command_start = TRUE;
27045 p->ruby_sourcefile_string =
Qnil;
27046 p->lex.lpar_beg = -1;
27047 string_buffer_init(p);
27049 p->delayed.token = NULL;
27050 p->frozen_string_literal = -1;
27052 p->error_buffer =
Qfalse;
27053 p->end_expect_token_locations = NULL;
27058 p->parsing_thread =
Qnil;
27060 p->s_lvalue =
Qnil;
27063 p->debug_buffer =
Qnil;
27064 p->debug_output = rb_ractor_stdout();
27065 p->enc = rb_utf8_encoding();
27070#define rb_ruby_parser_mark ripper_parser_mark
27071#define rb_ruby_parser_free ripper_parser_free
27072#define rb_ruby_parser_memsize ripper_parser_memsize
27076rb_ruby_parser_mark(
void *
ptr)
27080 rb_gc_mark(p->ruby_sourcefile_string);
27082 rb_gc_mark(p->error_buffer);
27084 rb_gc_mark(p->value);
27085 rb_gc_mark(p->result);
27086 rb_gc_mark(p->parsing_thread);
27087 rb_gc_mark(p->s_value);
27088 rb_gc_mark(p->s_lvalue);
27089 rb_gc_mark(p->s_value_stack);
27091 rb_gc_mark(p->debug_buffer);
27092 rb_gc_mark(p->debug_output);
27096rb_ruby_parser_free(
void *
ptr)
27102 rb_ast_free(p->ast);
27105 if (p->warn_duplicate_keys_table) {
27106 st_free_table(p->warn_duplicate_keys_table);
27111 rb_parser_ary_free(p, p->tokens);
27116 ruby_sized_xfree(p->tokenbuf, p->toksiz);
27119 for (local = p->lvtbl; local; local = prev) {
27120 prev = local->prev;
27121 local_free(p, local);
27126 while ((ptinfo = p->token_info) != 0) {
27127 p->token_info = ptinfo->next;
27131 string_buffer_free(p);
27134 st_free_table(p->pvtbl);
27137 if (CASE_LABELS_ENABLED_P(p->case_labels)) {
27138 st_free_table(p->case_labels);
27141 xfree(p->lex.strterm);
27142 p->lex.strterm = 0;
27148rb_ruby_parser_memsize(
const void *
ptr)
27152 size_t size =
sizeof(*p);
27155 for (local = p->lvtbl; local; local = local->prev) {
27156 size +=
sizeof(*local);
27157 if (local->vars) size += local->vars->capa *
sizeof(
ID);
27163#undef rb_reserved_word
27166rb_reserved_word(
const char *str,
unsigned int len)
27168 return reserved_word(str,
len);
27171#ifdef UNIVERSAL_PARSER
27173rb_ruby_parser_allocate(
const rb_parser_config_t *config)
27176 rb_parser_t *p = (rb_parser_t *)config->calloc(1,
sizeof(rb_parser_t));
27177 p->config = config;
27182rb_ruby_parser_new(
const rb_parser_config_t *config)
27185 rb_parser_t *p = rb_ruby_parser_allocate(config);
27186 parser_initialize(p);
27191rb_ruby_parser_allocate(
void)
27194 rb_parser_t *p = (rb_parser_t *)ruby_xcalloc(1,
sizeof(rb_parser_t));
27199rb_ruby_parser_new(
void)
27202 rb_parser_t *p = rb_ruby_parser_allocate();
27203 parser_initialize(p);
27209rb_ruby_parser_set_context(rb_parser_t *p,
const struct rb_iseq_struct *base,
int main)
27212 p->parent_iseq = base;
27217rb_ruby_parser_set_script_lines(rb_parser_t *p)
27219 p->debug_lines = rb_parser_ary_new_capa_for_script_line(p, 10);
27223rb_ruby_parser_error_tolerant(rb_parser_t *p)
27225 p->error_tolerant = 1;
27229rb_ruby_parser_keep_tokens(rb_parser_t *p)
27231 p->keep_tokens = 1;
27232 p->tokens = rb_parser_ary_new_capa_for_ast_token(p, 10);
27236rb_ruby_parser_encoding(rb_parser_t *p)
27242rb_ruby_parser_end_seen_p(rb_parser_t *p)
27244 return p->ruby__end__seen;
27248rb_ruby_parser_set_yydebug(rb_parser_t *p,
int flag)
27257rb_ruby_parser_get_yydebug(rb_parser_t *p)
27263rb_ruby_parser_set_value(rb_parser_t *p,
VALUE value)
27269rb_ruby_parser_error_p(rb_parser_t *p)
27275rb_ruby_parser_debug_output(rb_parser_t *p)
27277 return p->debug_output;
27281rb_ruby_parser_set_debug_output(rb_parser_t *p,
VALUE output)
27283 p->debug_output = output;
27287rb_ruby_parser_parsing_thread(rb_parser_t *p)
27289 return p->parsing_thread;
27293rb_ruby_parser_set_parsing_thread(rb_parser_t *p,
VALUE parsing_thread)
27295 p->parsing_thread = parsing_thread;
27299rb_ruby_parser_ripper_initialize(rb_parser_t *p, rb_parser_lex_gets_func *gets, rb_parser_input_data input,
VALUE sourcefile_string,
const char *sourcefile,
int sourceline)
27301 p->lex.gets = gets;
27302 p->lex.input = input;
27304 p->ruby_sourcefile_string = sourcefile_string;
27305 p->ruby_sourcefile = sourcefile;
27306 p->ruby_sourceline = sourceline;
27310rb_ruby_parser_result(rb_parser_t *p)
27316rb_ruby_parser_enc(rb_parser_t *p)
27322rb_ruby_parser_ruby_sourcefile_string(rb_parser_t *p)
27324 return p->ruby_sourcefile_string;
27328rb_ruby_parser_ruby_sourceline(rb_parser_t *p)
27330 return p->ruby_sourceline;
27334rb_ruby_parser_lex_state(rb_parser_t *p)
27336 return p->lex.state;
27340rb_ruby_ripper_parse0(rb_parser_t *p)
27343 p->ast = rb_ast_new();
27344 ripper_yyparse((
void*)p);
27345 rb_ast_free(p->ast);
27348 p->eval_tree_begin = 0;
27352rb_ruby_ripper_dedent_string(rb_parser_t *p, rb_parser_string_t *
string,
int width)
27354 return dedent_string(p,
string, width);
27358rb_ruby_ripper_initialized_p(rb_parser_t *p)
27360 return p->lex.input != 0;
27364rb_ruby_ripper_parser_initialize(rb_parser_t *p)
27366 parser_initialize(p);
27370rb_ruby_ripper_column(rb_parser_t *p)
27372 return p->lex.ptok - p->lex.pbeg;
27376rb_ruby_ripper_token_len(rb_parser_t *p)
27378 return p->lex.pcur - p->lex.ptok;
27381rb_parser_string_t *
27382rb_ruby_ripper_lex_lastline(rb_parser_t *p)
27384 return p->lex.lastline;
27388rb_ruby_ripper_lex_state_name(
struct parser_params *p,
int state)
27390 return rb_parser_lex_state_name(p, (
enum lex_state_e)state);
27393#ifdef UNIVERSAL_PARSER
27395rb_ripper_parser_params_allocate(
const rb_parser_config_t *config)
27397 rb_parser_t *p = (rb_parser_t *)config->calloc(1,
sizeof(rb_parser_t));
27398 p->config = config;
27404rb_ruby_ripper_parser_allocate(
void)
27412rb_parser_printf(
struct parser_params *p,
const char *fmt, ...)
27415 VALUE mesg = p->debug_buffer;
27419 rb_str_vcatf(mesg, fmt, ap);
27421 if (char_at_end(p, mesg, 0) ==
'\n') {
27422 rb_io_write(p->debug_output, mesg);
27423 p->debug_buffer =
Qnil;
27428parser_compile_error(
struct parser_params *p,
const rb_code_location_t *loc,
const char *fmt, ...)
27431 int lineno, column;
27434 lineno = loc->end_pos.lineno;
27435 column = loc->end_pos.column;
27438 lineno = p->ruby_sourceline;
27442 rb_io_flush(p->debug_output);
27446 rb_syntax_error_append(p->error_buffer,
27447 p->ruby_sourcefile_string,
27454count_char(
const char *str,
int c)
27457 while (str[n] == c) ++n;
27468rb_yytnamerr(
struct parser_params *p,
char *yyres,
const char *yystr)
27470 if (*yystr ==
'"') {
27471 size_t yyn = 0, bquote = 0;
27472 const char *yyp = yystr;
27478 bquote = count_char(yyp+1,
'\'') + 1;
27479 if (yyres) memcpy(&yyres[yyn], yyp, bquote);
27485 if (bquote && count_char(yyp+1,
'\'') + 1 == bquote) {
27486 if (yyres) memcpy(yyres + yyn, yyp, bquote);
27492 if (yyp[1] && yyp[1] !=
'\'' && yyp[2] ==
'\'') {
27493 if (yyres) memcpy(yyres + yyn, yyp, 3);
27498 goto do_not_strip_quotes;
27502 goto do_not_strip_quotes;
27505 if (*++yyp !=
'\\')
27506 goto do_not_strip_quotes;
27521 do_not_strip_quotes: ;
27524 if (!yyres)
return strlen(yystr);
27526 return (YYSIZE_T)(yystpcpy(yyres, yystr) - yyres);
27531#define validate(x) (void)(x)
27560 return rb_funcall(p->value, mid, 3, a, b, c);
27570 return rb_funcall(p->value, mid, 4, a, b, c, d);
27581 return rb_funcall(p->value, mid, 5, a, b, c, d, e);
27594 return rb_funcall(p->value, mid, 7, a, b, c, d, e, f, g);
#define RUBY_ASSERT(...)
Asserts that the given expression is truthy if and only if RUBY_DEBUG is truthy.
#define ISSPACE
@old{rb_isspace}
#define ISDIGIT
@old{rb_isdigit}
#define STRCASECMP
@old{st_locale_insensitive_strcasecmp}
#define ISALPHA
@old{rb_isalpha}
#define STRNCASECMP
@old{st_locale_insensitive_strncasecmp}
#define ISPRINT
@old{rb_isprint}
#define ISXDIGIT
@old{rb_isxdigit}
#define ISCNTRL
@old{rb_iscntrl}
#define ISALNUM
@old{rb_isalnum}
#define ENC_CODERANGE_7BIT
Old name of RUBY_ENC_CODERANGE_7BIT.
#define REALLOC_N
Old name of RB_REALLOC_N.
#define ALLOC
Old name of RB_ALLOC.
#define xfree
Old name of ruby_xfree.
#define xrealloc
Old name of ruby_xrealloc.
#define UNREACHABLE_RETURN
Old name of RBIMPL_UNREACHABLE_RETURN.
#define ZALLOC
Old name of RB_ZALLOC.
#define ENC_CODERANGE_UNKNOWN
Old name of RUBY_ENC_CODERANGE_UNKNOWN.
#define xmalloc
Old name of ruby_xmalloc.
#define ASSUME
Old name of RBIMPL_ASSUME.
#define ALLOC_N
Old name of RB_ALLOC_N.
#define MBCLEN_CHARFOUND_LEN(ret)
Old name of ONIGENC_MBCLEN_CHARFOUND_LEN.
#define FIXNUM_MAX
Old name of RUBY_FIXNUM_MAX.
#define Qnil
Old name of RUBY_Qnil.
#define Qfalse
Old name of RUBY_Qfalse.
#define NIL_P
Old name of RB_NIL_P.
#define MBCLEN_CHARFOUND_P(ret)
Old name of ONIGENC_MBCLEN_CHARFOUND_P.
#define xcalloc
Old name of ruby_xcalloc.
void rb_exc_raise(VALUE mesg)
Raises an exception in the current thread.
#define ruby_verbose
This variable controls whether the interpreter is in debug mode.
VALUE rb_eRuntimeError
RuntimeError exception.
VALUE rb_eSyntaxError
SyntaxError exception.
VALUE rb_class_new_instance(int argc, const VALUE *argv, VALUE klass)
Allocates, then initialises an instance of the given class.
VALUE rb_funcall(VALUE recv, ID mid, int n,...)
Calls a method.
VALUE rb_ary_new(void)
Allocates a new, empty array.
VALUE rb_ary_pop(VALUE ary)
Destructively deletes an element from the end of the passed array and returns what was deleted.
VALUE rb_ary_push(VALUE ary, VALUE elem)
Special case of rb_ary_cat() that it adds only one element.
VALUE rb_ary_entry(VALUE ary, long off)
Queries an element of an array.
#define rb_str_new(str, len)
Allocates an instance of rb_cString.
#define rb_usascii_str_new(str, len)
Identical to rb_str_new, except it generates a string of "US ASCII" encoding.
VALUE rb_str_cat(VALUE dst, const char *src, long srclen)
Destructively appends the passed contents to the string.
#define rb_strlen_lit(str)
Length of a string literal.
#define rb_str_cat_cstr(buf, str)
Identical to rb_str_cat(), except it assumes the passed pointer is a pointer to a C string.
#define rb_str_new_cstr(str)
Identical to rb_str_new, except it assumes the passed pointer is a pointer to a C string.
ID rb_sym2id(VALUE obj)
Converts an instance of rb_cSymbol into an ID.
int capa
Designed capacity of the buffer.
char * ptr
Pointer to the underlying memory region, of at least capa bytes.
int off
Offset inside of ptr.
int len
Length of the buffer.
#define strtod(s, e)
Just another name of ruby_strtod.
#define strdup(s)
Just another name of ruby_strdup.
#define rb_long2int
Just another name of rb_long2int_inline.
#define MEMCPY(p1, p2, type, n)
Handy macro to call memcpy.
#define ALLOCA_N(type, n)
#define MEMZERO(p, type, n)
Handy macro to erase a region of memory.
#define RB_GC_GUARD(v)
Prevents premature destruction of local objects.
#define MEMMOVE(p1, p2, type, n)
Handy macro to call memmove.
VALUE type(ANYARGS)
ANYARGS-ed function type.
#define RBIMPL_ATTR_NONNULL(list)
Wraps (or simulates) __attribute__((nonnull)).
#define RREGEXP_PTR(obj)
Convenient accessor macro.
#define StringValueCStr(v)
Identical to StringValuePtr, except it additionally checks for the contents for viability as a C stri...
#define errno
Ractor-aware version of errno.
#define RTEST
This is an old name of RB_TEST.
uintptr_t ID
Type that represents a Ruby identifier such as a variable name.
uintptr_t VALUE
Type that represents a Ruby object.
#define RBIMPL_WARNING_IGNORED(flag)
Suppresses a warning.
#define RBIMPL_WARNING_PUSH()
Pushes compiler warning state.
#define RBIMPL_WARNING_POP()
Pops compiler warning state.