From 776dbbba7287a44ea789385ef41d59261459031b Mon Sep 17 00:00:00 2001 From: yui-knk Date: Tue, 20 Feb 2024 23:52:23 +0900 Subject: 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. --- parse.y | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'parse.y') 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 string_contents xstring_contents regexp_contents string_content %type words symbols symbol_list qwords qsymbols word_list qword_list qsym_list word %type literal numeric simple_numeric ssym dsym symbol cpath -/*ripper*/ %type defn_head defs_head k_def -/*ripper*/ %type block_open k_while k_until k_for allow_exits +%type defn_head defs_head k_def +%type block_open k_while k_until k_for allow_exits %type top_compstmt top_stmts top_stmt begin_block endless_arg endless_command %type bodystmt compstmt stmts stmt_or_begin stmt expr arg primary command command_call method_call %type 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 lex_ctxt begin_defined k_class k_module k_END k_rescue k_ensure after_rescue %type p_in_kwarg %type p_lparen p_lbracket p_pktbl p_pvtbl -/* ripper */ %type max_numparam -/* ripper */ %type numparam -/* ripper */ %type it_id +%type max_numparam +%type numparam +%type it_id %token END_OF_INPUT 0 "end-of-input" %token '.' -- cgit v1.2.3