3 ms·
I've used all of those at different times and for simple stuff they will all work. I'd recommend picking whichever of YACC, Lemon or Antlr builds easily on you
by bayareaguy 17y ago
I've used all of those at different times and for simple stuff they will all work. I'd recommend picking whichever of YACC, Lemon or Antlr builds easily on your platform and is the least displeasing to others you expect may need to trace through the code.
Oh and if for some reason you end up using flex somewhere, don't forget to specify the "-8" option to ensure it generates an 8-bit clean scanner.
- liuliu 17y agoone may stuck me to use yacc is that can yacc make a func like : query_t parse(const char* str) and do the parse part thread-safe?
- bayareaguy 17y agoRecent YACC's such as Bison support pure reentrant parsers. Here's a reference: http://dinosaur.compilertools.net/bison/bison_6.html#SEC56 http://dinosaur.compilertools.net/bison/bison_6.html#SEC56
- flashgordon 17y agomake sure you check the licences... different licences apply to yacc and bison generated parsers...