Forum: Ruby ruby_parser 3.1.1 Released

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
5a837592409354297424994e8d62f722?d=identicon&s=25 Ryan Davis (Guest)
on 2012-12-20 00:58
(Received via mailing list)
ruby_parser version 3.1.1 has been released!

* home: <>
* rdoc: <>
* bugs: <>

ruby_parser (RP) is a ruby parser written in pure ruby (utilizing
racc--which does by default use a C extension). RP's output is
the same as ParseTree's output: s-expressions using ruby's arrays and
base types.

As an example:

  def conditional1 arg1
    return 1 if arg1 == 0
    return 0


  s(:defn, :conditional1, s(:args, :arg1),
      s(:call, s(:lvar, :arg1), :==, s(:lit, 0)),
      s(:return, s(:lit, 1)),
    s(:return, s(:lit, 0)))


### 3.1.1 / 2012-12-19

* 1 minor enhancement:

  * Added MOVE_TIMEOUT env var for ruby_parse_extract_error to move slow
files to a sibling directory

* 4 bug fixes:

  * 1.9: Fixed lexing of "0o". (whitequark)
  * 1.9: Fixed parsing of unary plus on literals. (whitequark)
  * Added timeout arg to RubyParser#process to pass through to the real
  * Updated Synopsis to reflect new options for running RP.
This topic is locked and can not be replied to.