Related articles |
---|
Need help specifying a grammar rule roseberry@bigfoot.com (Michael J. Roseberry) (1998-04-13) |
Re: Need help specifying a grammar rule bje@cygnus.com (Ben Elliston) (1998-04-13) |
From: | "Michael J. Roseberry" <roseberry@bigfoot.com> |
Newsgroups: | comp.compilers |
Date: | 13 Apr 1998 00:47:42 -0400 |
Organization: | All USENET -- http://www.Supernews.com |
Keywords: | yacc, question, comment |
Group:
I am a relative newbie at yacc; please help me express the following
production from Ada95 in a yacc-compatable specification. I am
comfortable with left-recursion, but stumbled upon encountering this
rule. Thanks in advance.
expression ::=
relation { AND relation }
| relation { AND THEN relation }
| relation { OR relation }
| relation { OR ELSE relation }
| relation { XOR relation }
Michael J. Roseberry
Fort Worth, Texas, uSA
[Unless I'm missing something, you should be able to write this pretty
much as is with some precedence rules. -John]
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.