Skip to main content
GameDev.net gamedev.net
🔒 Locked

Equation parser

Started by Venerable Vampire May 12, 2004 at 8:23 PM 0 replies 700+ views
Original Post
Venerable Vampire
Venerable Vampire
I''m looking for a tutorial on parsing a string into an equation, hopefully handling variables (maybe just x) and trigonometric functions. The end goal should also be able to solve for y and graph, but I''m not picky at this point. I''m really interested in finding stuff, but my 2 second google didn''t turn up much . Anybody know anything about this? -------------------------------------------------------- Life would be so much easier if we could just get the source code.
--------------------------------------------------------Life would be so much easier if we could just get the source code.
SiCrane
SiCrane
You might want to look up a tutorial on Yacc or Bison. Or any other kind of parser generator. (However, I find Yacc parsers tutorials to be easier to understand.) Alternately you might look up boost::spirit.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.