Sean Blezard wrote:
> Hi,
> 
> Has anyone come across a Ruby mathematical expression parser, capable
> of parsing out token, replacing them with values then executing the
> mathematical formula? Nothing too heavy, A * (44/12) * ... etc. where
> A is can be replaced with a value.
> 
> In Java there are serveral, like JEP, but I'd prefer it we could get a
> Ruby one now we have moved over to Rails, otherwise we will have to
> have some sort of Java calculation web service which would be quite
> faffy.
> 
> Thanks
> 
> Sean

Ridiculous.  You won't need a calculation Web service.  Even if nothing 
exists off the shelf in Ruby, it would be very easy to generate a parser 
with Treetop.

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
[email protected]

-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to