Parser Generator

closed account (S6k9GNh0)
I've used Boost.Spirit. I'll say that the syntax is heavy but once you're used to it, it's actually rather easy to use. However, I'm looking for something a bit lighter. Would anyone care to share your opinion on what to use?
closed account (S6k9GNh0)
Seriously, you would really think that binary parsing would be a lot more simple than it currently is...
It all depends on what you mean by "lighter".
closed account (S6k9GNh0)
Spirit is heavy. Like, http://www.collegehumor.com/video/3349814/your-mother big. It supposedly can be heavily reduced but I don't like that it's also a play off of C++ syntax. That's fine but it's kinda confusing at times...
How about Yacc/Bison, then? It uses BNF instead of EBNF, plus it's cleaner, since it doesn't sit on top of another syntax.
closed account (S6k9GNh0)
Looks good. I'll perform a benchmark between Spirit and whatever is generated by Bison/Flex. I'll probably also check out ANTLR although I'm not really sure what ANTLR is for quite yet...
Topic archived. No new replies allowed.