[antlr-interest] Grammar design question
Reid Rivenburgh
reidr at bigfoot.com
Wed Oct 9 10:45:22 PDT 2002
mzukowski writes:
m> No, it's not possible or if possible it's not practical.
m> Recommended practice is to grammatically recognize all of them
m> possibly multiple times. Then afterwards have action code which
m> does your validation and throws a (RecognitionException I think,
m> or is there a SemanticException?) if it's wrong. If need be you
m> can do some bookeeping inside your closure to know, for instance,
m> that the required ones were all there.
Thanks for the replies, Monty and Ter. I figured there wasn't any
magic syntax to handle something that messy. Sorry to hear I was
right! :)
Reid
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list