At 16:25 -0500 2002/01/11, Anthony DeRobertis wrote:
>I'm doing a grammar for HyperTalk in bison,

I suggest you to check the Usenet newsgroup comp.compilers or some
list/newsgroup for your language, to check if this is not already available
somewhere.

>which has a command that looks
>takes a list of expressions, seperated by "or". An expression, however, can
>contain "or" (it's an operator).
>Other than writing an expression-without-or copy of expression, which I
>assume would work [haven't tried it yet], is there a way to tell bison to
>reduce, not shift?

You can use the Bison %left command on your "or" operator (see the manual
for calculator example).

  Hans Aberg



_______________________________________________
Freecard-general mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freecard-general

Reply via email to