[antlr-interest] Parser code is too large(1.68)! (newbie)

Richard Clark rdclark at gmail.com
Sun Jul 15 19:52:08 PDT 2007


If I remember correctly, you have many complex rules in your parser. I
suspect the large file is due to the very large DFAs generated by
these rules.

You could probably shrink your code by breaking your grammar down into
smaller parts. (Just like you often refactor a complex method into
smaller methods.)

 ...Richard


More information about the antlr-interest mailing list