[antlr-interest] rule catch blocks ignored in imported grammars ?

Michael Bedward michael.bedward at gmail.com
Wed Feb 9 20:42:49 PST 2011


Hi folks,

Say I have a parser grammar LittleFoo with a rule that includes a
catch block. If I import LittleFoo into parser grammar BigFoo I get
these generated source files (Java target)...

BigFoo.java - master
BigFoo_LittleFoo.java - delegate
LittleFoo.java - not used at runtime (?)

My catch block is present in LittleFoo.java but not in the delegate
parser BigFoo_LittleFoo.java.  Is there any way in ANTLR 3.3 to force
the catch block into the delegate ?

cheers
Michael


More information about the antlr-interest mailing list