From 0bb47998db2dab58d44b6ae918357f0c5be5ec5e Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 4 Oct 2017 05:48:33 +0000 Subject: parse.y: reserved words as * parse.y (reswords): declare reserved words as to remove extra cast. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- parse.y | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/parse.y b/parse.y index 4203fb9440..1782bac173 100644 --- a/parse.y +++ b/parse.y @@ -836,11 +836,7 @@ static void token_info_pop_gen(struct parser_params*, const char *token, size_t const struct vtable *vars; } -/*%%%*/ -%token -/*% -%token -%*/ +%token keyword_class keyword_module keyword_def @@ -920,10 +916,10 @@ static void token_info_pop_gen(struct parser_params*, const char *token, size_t %type mlhs mlhs_head mlhs_basic mlhs_item mlhs_node mlhs_post mlhs_inner %type fsym keyword_variable user_variable sym symbol operation operation2 operation3 %type cname fname op f_rest_arg f_block_arg opt_f_block_arg f_norm_arg f_bad_arg -%type f_kwrest f_label f_arg_asgn call_op call_op2 +%type f_kwrest f_label f_arg_asgn call_op call_op2 reswords /*%%%*/ /*% -%type program reswords then do +%type program then do %*/ %token END_OF_INPUT 0 "end-of-input" %token tUPLUS RUBY_TOKEN(UPLUS) "unary+" @@ -1882,11 +1878,7 @@ fname : tIDENTIFIER | reswords { SET_LEX_STATE(EXPR_ENDFN); - /*%%%*/ - $$ = $1; - /*% $$ = $1; - %*/ } ; -- cgit v1.2.3