C++ Math Parser

Hello there,

I want to program a graphical calculator with C++/Allegro. Everything works fine, except of the fact that you have to enter your calculation or function in the source code yet. I want to input these things directly into the console, so I googled this a little bit. I found out that I have to use a parser for this, but I could not find a good tutorial on how to write or generate one for my problem.
Could anyone explain how to do this to me or send a tutorial?
What parser library did you pick?

muParser has pretty decent documentation.
LB: it sounds like he was hoping to write one rather than use one. havent used muParser, so i cant comment at that, but if you are looking for an example(that can also double as a good tutorial) i highly recommend Bjarne Stroustrop's calculator example. its taught me quite a lot
Topic archived. No new replies allowed.