How to Parse 'Mathy' Stuff...

Posted by Rob P. on Stack Overflow See other posts from Stack Overflow or by Rob P.
Published on 2010-06-03T20:34:38Z Indexed on 2010/06/03 20:44 UTC
Read the original article Hit count: 166

Filed under:
|
|

Please forgive my title, I really don't know how to phrase it better.

This isn't a school assignment or anything, but I realize it's a mostly academic question. But, what I've been struggling to do is parse 'math' text and come up with an answer.

For Example - I can figure out how to parse '5 + 5' or '3 * 5' - but I fail when I try to correctly chain operations together.

(5 + 5) * 3

It's mostly just bugging me that I can't figure it out. If anyone can point me in a direction, I'd really appreciate it.

© Stack Overflow or respective owner

Related posts about .NET

Related posts about math