summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryui-knk <spiketeika@gmail.com>2024-02-20 23:52:23 +0900
committerYuichiro Kaneko <spiketeika@gmail.com>2024-02-21 09:16:09 +0900
commit776dbbba7287a44ea789385ef41d59261459031b (patch)
tree637304ee961aa5669b1b0fa5259d61afa080d38d
parente7ab5d891c3272e72caef6879e90ad8ae4e13dea (diff)
Remove hack for ripper.y generation
Before Rearchitect Ripper (89cfc15), parser and ripper used different semantic value data type for same symbols. "ext/ripper/tools/preproc.rb" replaced these types when it generated ripper.y. Starting the line with other than `%token` suppressed the type replacement. However, after Rearchitect Ripper, both parser and ripper use same semantic value data type. Therefore these comments are not needed anymore.
-rw-r--r--parse.y10
1 files changed, 5 insertions, 5 deletions
diff --git a/parse.y b/parse.y
index 9ce631dd35..113d323b5a 100644
--- a/parse.y
+++ b/parse.y
@@ -2795,8 +2795,8 @@ rb_parser_string_hash_cmp(rb_parser_string_t *str1, rb_parser_string_t *str2)
%type <node> string_contents xstring_contents regexp_contents string_content
%type <node> words symbols symbol_list qwords qsymbols word_list qword_list qsym_list word
%type <node> literal numeric simple_numeric ssym dsym symbol cpath
-/*ripper*/ %type <node_def_temp> defn_head defs_head k_def
-/*ripper*/ %type <node_exits> block_open k_while k_until k_for allow_exits
+%type <node_def_temp> defn_head defs_head k_def
+%type <node_exits> block_open k_while k_until k_for allow_exits
%type <node> top_compstmt top_stmts top_stmt begin_block endless_arg endless_command
%type <node> bodystmt compstmt stmts stmt_or_begin stmt expr arg primary command command_call method_call
%type <node> expr_value expr_value_do arg_value primary_value rel_expr
@@ -2839,9 +2839,9 @@ rb_parser_string_hash_cmp(rb_parser_string_t *str1, rb_parser_string_t *str2)
%type <ctxt> lex_ctxt begin_defined k_class k_module k_END k_rescue k_ensure after_rescue
%type <ctxt> p_in_kwarg
%type <tbl> p_lparen p_lbracket p_pktbl p_pvtbl
-/* ripper */ %type <num> max_numparam
-/* ripper */ %type <node> numparam
-/* ripper */ %type <id> it_id
+%type <num> max_numparam
+%type <node> numparam
+%type <id> it_id
%token END_OF_INPUT 0 "end-of-input"
%token <id> '.'