ruby/ext/ripper
Peter Zhu 407f8b8716 Fix memory leak in Ripper for indented heredocs
The allocated parser string is never freed, which causes a memory leak.

The following code leaks memory:

    Ripper.sexp_raw(DATA.read)

    __END__
    <<~EOF
      a
        #{1}
      a
    EOF
2024-09-25 08:56:14 -04:00
..
lib [Bug #20649] Allow `nil` as 2nd argument of `assign_error` 2024-07-24 22:18:36 +09:00
tools ripper: Introduce `RIPPER_ID` macro instead of `ripper_id_` macros 2024-06-08 13:20:46 +09:00
README Ripper does not depend on Bison [ci skip] 2023-06-03 10:34:24 +09:00
depend ruby tool/update-deps --fix 2024-04-27 21:55:28 +09:00
eventids2.c Verify that events2table.c was generated successfully 2023-12-28 18:07:49 +09:00
eventids2.h [Feature #19719] Universal Parser 2023-06-12 18:23:48 +09:00
extconf.rb Stop creating ripper.h because it's not used 2023-10-20 12:56:04 +09:00
ripper_init.c.tmpl Fix memory leak in Ripper for indented heredocs 2024-09-25 08:56:14 -04:00
ripper_init.h ripper: Remove rb_ripper_none 2024-05-21 13:52:29 +09:00

README

Ripper README
=============

  Ripper is a Ruby script parser.  You can get information
  by event-based style from the parser.

  !! WARNING !!

  Ripper is still early-alpha version.
  I never assure any kind of backward compatibility.

Requirements
------------

  * ruby 1.9 (support CVS HEAD only)

Usage
-----

  See test/ripper/* and sample/ripper/*.

License
-------

  Ruby License.

                                                Minero Aoki
                                        aamine@loveruby.net
                                      http://i.loveruby.net