I am building ANTLR3 applications where some of the same grammar rules are likely to be used in different applications. There will be many *.g files but they may, for example, all wish to reference the same version of FLOAT. Are there "import" facilities whereby a *.g can be assembled from other *.g files and if so what are the precedence rules?
This is what I think I am looking for, thanks. I don't think it is mentioned in the ANTLR reference and I assume it's fairly recent from reading the wiki page you mention. Assuming my import strategy is DAG-like it should be tractable.
peter.murray.rust
2009-11-29 20:18:11
Yes, I couldn't find it in my copy of the *ANTLR reference* either, but I stumbled upon this while browsing the ANTLR wiki recently.
Bart Kiers
2009-11-29 20:21:36
... And you're welcome of course.
Bart Kiers
2009-11-29 20:22:08