Ask HN: C/C++ AST generation tools?

1 points by thosakwe ↗ HN
Anybody know of any tools that will generate AST class definitions for you, from a grammar, or another spec? For example, if I'm writing a parser using flex/bison (which in itself is often frustrating), I have to write the AST classes by hand. So all in all, if you're trying to make a compiler or simple analyzer, you can easily pour hours into a step that has long been a solved problem.

I'm aware of ANTLR, and have used it a lot, but am not a fan of v4's C++ generation.

Thanks in advance... If none exists, I might end up writing one.

0 comments

[ 11.0 ms ] story [ 22.4 ms ] thread

No comments yet.