aboutsummaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-03-29 05:54:14 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-03-29 05:54:14 +0000
commit80a743388d4b9d5a3f88e219eb40a511c0104720 (patch)
tree3eea34539736cd73f0ad5c93104eabea33f443be /parse.y
parent1f3687bb6695f0531133dfd2eeb4a8114b19d4b7 (diff)
downloadruby-80a743388d4b9d5a3f88e219eb40a511c0104720.tar.gz
parse.y: dot_or_colon
* parse.y (dot_or_colon): use the default action without type casts. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y12
1 files changed, 2 insertions, 10 deletions
diff --git a/parse.y b/parse.y
index d0f43156e9..10a6adff1d 100644
--- a/parse.y
+++ b/parse.y
@@ -965,7 +965,7 @@ static void token_info_pop_gen(struct parser_params*, const char *token, size_t
%type <id> f_kwrest f_label f_arg_asgn call_op call_op2
/*%%%*/
/*%
-%type <val> program reswords then do dot_or_colon
+%type <val> program reswords then do
%*/
%token END_OF_INPUT 0 "end-of-input"
%token tUPLUS RUBY_TOKEN(UPLUS) "unary+"
@@ -2897,7 +2897,7 @@ primary : literal
$$ = NEW_DEFS($2, $5, $7, body);
nd_set_line($$, $<num>1);
/*%
- $$ = dispatch5(defs, $2, $3, $5, $7, $8);
+ $$ = dispatch5(defs, $2, $<val>3, $5, $7, $8);
%*/
local_pop();
in_single = $<num>4 & 1;
@@ -4823,15 +4823,7 @@ operation3 : tIDENTIFIER
;
dot_or_colon : '.'
- /*%c%*/
- /*%c
- { $$ = $<val>1; }
- %*/
| tCOLON2
- /*%c%*/
- /*%c
- { $$ = $<val>1; }
- %*/
;
call_op : '.'