[ANN] ruby_parser 1.0.0 Released

R

Ryan Davis

ruby_parser version 1.0.0 has been released!

* <http://parsetree.rubyforge.org/>

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.

## FEATURES/PROBLEMS:

* Pure ruby, no compiles.
* Incredibly simple interface.
* Output is 100% equivalent to ParseTree.
* Can utilize PT's SexpProcessor and UnifiedRuby for language
processing.
* Known Issue: Speed sucks currently. 5500 tests currently run in 21
min.
* Known Issue: Code is waaay ugly. Port of a port. Not my fault. Will
fix RSN.
* Known Issue: I don't currently support newline nodes.
* Known Issue: Totally awesome.
* Known Issue: dasgn_curr decls can be out of order from ParseTree's.
* TODO: Add comment nodes.

## SYNOPSIS:

RubyParser.new.parse "1+1"
# => s:)call, s:)lit, 1), :+, s:)array, s:)lit, 1)))

Changes:

## 1.0.0 / 2007-12-20

* 1 major enhancement
* Birthday!

* <http://parsetree.rubyforge.org/>
 
R

Roger Pack

Ryan said:
ruby_parser version 1.0.0 has been released!

* <http://parsetree.rubyforge.org/>

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.

I assume this doesn't work with 1.9 [the racc, at least]?
Thanks!
-R
 
R

Roger Pack

Roger said:
Ryan said:
ruby_parser version 1.0.0 has been released!

* <http://parsetree.rubyforge.org/>

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.

I assume this doesn't work with 1.9 [the racc, at least]?
Thanks!
-R

Answering my own question [in 1.9 SVN HEAD]
/Users/rogerpack/dev/ruby_19_installed/lib/ruby/gems/1.9.0/gems/ruby_parser-1.0.0/lib/ruby_lexer.rb:2617:
[BUG] Bus Error
ruby 1.9.0 (2008-07-23 revision 17865) [i686-darwin9.3.0]

-- control frame ----------
c:0029 p:---- s:0098 b:0098 l:000097 d:000097 CFUNC :method_missing
c:0028 p:---- s:0096 b:0096 l:000095 d:000095 CFUNC :eek:ld_initialize
c:0027 p:0029 s:0092 b:0092 l:000091 d:000091 METHOD
/Users/rogerpack/dev/ruby_19_installed/lib/ruby/gems/1.9.0/gems/ruby_parser-1.0.0/lib/ruby_lexer.rb:2617
c:0026 p:---- s:0088 b:0088 l:000087 d:000087 FINISH :(null)
...

As a note 1.9 does include racc still, as an extension, so I don't think
this is expected.


Guess I'll file it away to the core people.
-R
 
R

Ryan Davis

Ryan said:
ruby_parser version 1.0.0 has been released!

* <http://parsetree.rubyforge.org/>

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.

I assume this doesn't work with 1.9 [the racc, at least]?

nope. it works with 1.9 just fine. why?
 
R

Ryan Davis

Roger said:
Ryan said:
ruby_parser version 1.0.0 has been released!

* <http://parsetree.rubyforge.org/>

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.

I assume this doesn't work with 1.9 [the racc, at least]?
Thanks!
-R

Answering my own question [in 1.9 SVN HEAD]
/Users/rogerpack/dev/ruby_19_installed/lib/ruby/gems/1.9.0/gems/
ruby_parser-1.0.0/lib/ruby_lexer.rb:2617:
[BUG] Bus Error
ruby 1.9.0 (2008-07-23 revision 17865) [i686-darwin9.3.0]

-- control frame ----------
c:0029 p:---- s:0098 b:0098 l:000097 d:000097 CFUNC :method_missing
c:0028 p:---- s:0096 b:0096 l:000095 d:000095 CFUNC :eek:ld_initialize
c:0027 p:0029 s:0092 b:0092 l:000091 d:000091 METHOD
/Users/rogerpack/dev/ruby_19_installed/lib/ruby/gems/1.9.0/gems/
ruby_parser-1.0.0/lib/ruby_lexer.rb:2617
c:0026 p:---- s:0088 b:0088 l:000087 d:000087 FINISH :(null)
...

I get a silent failure on 1.9.0-2, but it worked on 1.9.0-1. I'll look
into it but would appreciate if you filed a bug.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,608
Members
45,242
Latest member
KendrickKo

Latest Threads

Top