Connecting Tech Pros Worldwide Help | Site Map

parser for math expressions

  #1  
Old July 1st, 2009, 10:02 AM
Newbie
 
Join Date: Jul 2009
Posts: 3
I am approaching parsing for the first time and I can't find which solution is best for me.
I need to process command line strings implementing mathematical operations (defined by me) on objects (defined by me), i.e.

Prompt:> ((A*B)->C)+2

A,B,C could be matrixes or more complex objects
*, -> ,+ could be operations which I want to implement

Is there a parser approach most suitable for this?

I have looked at Yapps2, Pyparsing but I can’t figure out what kind of complexity I will have to face and therefore which parser I should go for.

Any hint would be appreciated.

Jacopo
Reply


Similar Threads
Thread Thread Starter Forum Replies Last Post
uCalc Fast Math Parser 2.95 - faster than ever Dancorbier@aol.com answers 0 December 14th, 2007 04:15 AM
boolean logic parser - need help Mad Scientist Jr answers 5 November 22nd, 2005 06:16 PM
Math parser Janiek Buysrogge answers 12 November 17th, 2005 12:57 PM
boolean logic parser - need help Mad Scientist Jr answers 5 July 21st, 2005 10:09 PM