[antlr-interest] HOWTO: define synonyms for a single token??
Francis ANDRE
francis.andre at easynet.fr
Sat Aug 21 05:11:56 PDT 2004
Hi
I would like to use a single token to match more than one literal,
something like
token {
YES = "YES" | "Y" | "YEAP" | "OK";
}
What is the standard way to define such token/synonyms with ANTLR??
(except with a Parser rule!!)
Cheers
FA
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