# \[ANN\] ruby\_parser 3.0.3 Released

**URL:** <https://rubytalk.org/t/ann-ruby-parser-3-0-3-released/66751>\
**Category:** ruby-talk\
**Created:** [23 November 2012 23:01 UTC](https://rubytalk.org/t/ann-ruby-parser-3-0-3-released/66751 "2012-11-23T23:01:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ryan\_Davis1](https://yyz1.discourse-cdn.com/flex029/user_avatar/rubytalk.org/ryan_davis1/32/1848_2.png) [@Ryan\_Davis1](https://rubytalk.org/u/Ryan_Davis1)\
**Post date:** [23 November 2012 23:01 UTC](https://rubytalk.org/t/ann-ruby-parser-3-0-3-released/66751/1 "2012-11-23T23:01:17Z")

</div>

ruby\_parser version 3.0.3 has been released!

\* bugs: \<[https://github.com/seattlerb/ruby\_parser/issues](https://github.com/seattlerb/ruby_parser/issues)\>  
\* rdoc: \<[http://docs.seattlerb.org/ruby\_parser](http://docs.seattlerb.org/ruby_parser)\>  
\* home: \<[https://github.com/seattlerb/ruby\_parser](https://github.com/seattlerb/ruby_parser)\>

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:

&nbsp;&nbsp;def conditional1 arg1  
&nbsp;&nbsp;&nbsp;&nbsp;return 1 if arg1 == 0  
&nbsp;&nbsp;&nbsp;&nbsp;return 0  
&nbsp;&nbsp;end

becomes:

&nbsp;&nbsp;s(:defn, :conditional1, s(:args, :arg1),  
&nbsp;&nbsp;&nbsp;&nbsp;s(:if,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;s(:call, s(:lvar, :arg1), :==, s(:lit, 0)),  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;s(:return, s(:lit, 1)),  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;nil),  
&nbsp;&nbsp;&nbsp;&nbsp;s(:return, s(:lit, 0)))

Changes:

### 3.0.3 / 2012-11-23

\* 1 minor enhancement:

&nbsp;&nbsp;\* Improved error output on invalid char in expression.

\* 1 bug fix:

&nbsp;&nbsp;\* Fixed lexing of no-name ivars. (whitequark)
