The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
ruby_parser version 1.0.0 has been released!

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Ryan Davis

Posts: 651
Nickname: zenspider
Registered: Oct, 2004

Ryan Davis is a ruby nerd.
ruby_parser version 1.0.0 has been released! Posted: Dec 22, 2007 10:11 PM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Ryan Davis.
Original Post: ruby_parser version 1.0.0 has been released!
Feed Title: Polishing Ruby
Feed URL: http://blog.zenspider.com/index.rdf
Feed Description: Musings on Ruby and the Ruby Community...
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Ryan Davis
Latest Posts From Polishing Ruby

Advertisement

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

Read: ruby_parser version 1.0.0 has been released!

Topic: Programmers Ad Community: 50 invites for Adroll's private beta Previous Topic   Next Topic Topic: RubyGems 1.0.1

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use