[antlr-interest] related question: multiple grammars..
Eitan Suez
eitan.suez at gmail.com
Thu Mar 29 12:53:29 PDT 2007
i looked at the island grammar example.. very nice.
it seems like there might be a more elegant way to deal
with island grammars through the use of fully
qualified rule names, that is rule names qualified with
their grammar names.
perhaps a single grammar like this:
grammar CSS;
...
rule : selector '{' (declaration)+ '}' ;
selector: .....
could be broken up into two grammars like this:
grammar CSS;
...
rule : Selector.start '{' (declaration)+ '}' ;
..
gramar Selector;
start: ...
/ eitan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20070329/fe00d3d8/attachment.html
More information about the antlr-interest
mailing list