Skip to content

Commit 776dbbb

Browse files
committed
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.
1 parent e7ab5d8 commit 776dbbb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

parse.y

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2795,8 +2795,8 @@ rb_parser_string_hash_cmp(rb_parser_string_t *str1, rb_parser_string_t *str2)
27952795
%type <node> string_contents xstring_contents regexp_contents string_content
27962796
%type <node> words symbols symbol_list qwords qsymbols word_list qword_list qsym_list word
27972797
%type <node> literal numeric simple_numeric ssym dsym symbol cpath
2798-
/*ripper*/ %type <node_def_temp> defn_head defs_head k_def
2799-
/*ripper*/ %type <node_exits> block_open k_while k_until k_for allow_exits
2798+
%type <node_def_temp> defn_head defs_head k_def
2799+
%type <node_exits> block_open k_while k_until k_for allow_exits
28002800
%type <node> top_compstmt top_stmts top_stmt begin_block endless_arg endless_command
28012801
%type <node> bodystmt compstmt stmts stmt_or_begin stmt expr arg primary command command_call method_call
28022802
%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)
28392839
%type <ctxt> lex_ctxt begin_defined k_class k_module k_END k_rescue k_ensure after_rescue
28402840
%type <ctxt> p_in_kwarg
28412841
%type <tbl> p_lparen p_lbracket p_pktbl p_pvtbl
2842-
/* ripper */ %type <num> max_numparam
2843-
/* ripper */ %type <node> numparam
2844-
/* ripper */ %type <id> it_id
2842+
%type <num> max_numparam
2843+
%type <node> numparam
2844+
%type <id> it_id
28452845
%token END_OF_INPUT 0 "end-of-input"
28462846
%token <id> '.'
28472847

0 commit comments

Comments
 (0)