Hi all,
I'm writing an experimental language, which is very close to pseudocode, for fun and to learn more about C++. One of the problems is that I need to parse some grammar, and my search to find a good C++ grammar parser has been unsuccessful (I couldn't find anything). What I want to accomplish is this:
set a to 4
And I want the parser to return a map containing something similar to:
command = "set"
var = "a"
value = 4
based on a set of rules I give it.
I ultimately would have to roll my own if I don't find anything useful, but I would like to prevent re-inventing the wheel as much as I can.
So, does anyone here know of a good/sane grammar parser that generates C++ code? It's much better if it's widely used.
Thanks!