3 ms·
> People don't use parser generator tools because you wind up doing more work than needed to integrate it with the rest of your compiler. I don't think you can
by willtim 9y ago
> People don't use parser generator tools because you wind up doing more work than needed to integrate it with the rest of your compiler.
I don't think you can make such a sweeping generalisation. Both JavaCC and Antlr have saved me a lot of time when doing DSLs in the past and both are well documented and easy to use. It would have been much more work for me to write the parsers by hand in Java. Both could also generate my own hand-rolled AST easily and so I do not see why integration would be a problem for most projects. I agree that generators do not scale to large compilers or projects with special needs, but that is not most projects.