[antlr-interest] Urgent: how to "include" a grammar defined in a
separate file
Rupinder S. Gill
rupigill0 at yahoo.com
Tue Jun 14 20:56:18 PDT 2005
(I posted a query a week ago but didn't receive a satisfactory response.)
I have a grammar for logical-expressions from which I need to build the
following:
- Java lexer and parser
- C# lexer and parser
- Two java tree-walkers
- One C# tree-walkers
The two java tree-walkers are in independent projects; both projects do
depend on the project that defines the grammar (and contains lexer and
parser). C# lexer, parser and tree-walker can be in the same project. I
want to keep only one copy of the common.g file (one containing parser and
lexer sections). How do I this?
Grammar inheritance nor importVocab seem to be up to the task. Or am I
missing something?
Thanks,
R.G.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20050614/dca98f16/attachment.html
More information about the antlr-interest
mailing list