[antlr-interest] Re: Import vocabulary
Mike Lischke
lists at lischke-online.de
Sun Apr 25 01:20:08 PDT 2004
> ANTLR only supports one import vocabulary per grammar, and
> the last one should win--there is a string variable that is
> set for the option.
Ah, thanks for the hint.
> Supporting more than one import vocab could be done, but
> that would require a scheme for numbering token types so that
> they don't overlap.
> Not a good idea--that would be error prone.
I could imagine a merge feature. Duplicate tokens are just ignored while all others are merged into one large
vocabulary. Not too error prone I think, because I explicitely want this behavior when I specify more than one import
vocabulary.
Mike
--
www.soft-gems.net
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/antlr-interest/
<*> To unsubscribe from this group, send an email to:
antlr-interest-unsubscribe at yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list