By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,427 Members | 1,356 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,427 IT Pros & Developers. It's quick & easy.

parser for math expressions

P: 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
Jul 1 '09 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.