[antlr-interest] Treeparser inheritance?
Terence Parr
parrt at cs.usfca.edu
Mon Nov 14 10:30:17 PST 2005
On Nov 14, 2005, at 8:37 AM, Jos Fries wrote:
> Hi,
>
> Last weekend I experimented with grammar inheritance. I
> successfully extended a lexer and a parser. Extending my tree
> parser however failed. My statement "class BTreeWalker extends
> ATreeWalker;" is accepted by ANTLR but compiled to the Java code
> "public class BTreeWalker extends antlr.TreeParser".
>
> Excuse the newbie character of the question, but does the concept
> of grammar inheritance also apply to tree parsers? The
> documentation doesn't state anything about this. I'm using antlr
> 2.7.4.
Hi Jos, it should work as you describe. Are you sure you're doing it
just like in the examples?
Terence
More information about the antlr-interest
mailing list