Jparsec is now ported to Ruby, with a way lighter syntax than Java.
The following is the ruby version of calculator:
As simple as that!
rparsec can be downloaded at http://rubyforge.org/frs/?group_id=2326
API document is available online
Created by benyu benyu
On Sun Oct 08 14:53:56 CDT 2006