On Wednesday, 22 May 2013 at 20:39:08 UTC, 1100110 wrote:
Hmmm... Or you could try using pegged (or CTPG or goldie or dparser).I haven't played with it too much, but there's a C grammar, and it mentions the ability to specify semantic actions, so.... That's like 1/3of the way to something usable. https://github.com/PhilippeSigaud/Pegged/wiki/Semantic-Actions
Writing C++ grammar parser in Pegged/Goldie from scratch so that it can produce usable AST... Well, good luck! :)
