How to change default outcome of shift/reduce conflict?
From:
Anthony DeRobertis
Subject:
How to change default outcome of shift/reduce conflict?
Date:
Fri, 11 Jan 2002 16:25:40 -0500
I'm doing a grammar for HyperTalk in bison, which has a command that looks
takes a list of expressions, seperated by "or". An expression, however, can
contain "or" (it's an operator). The language isn't spec'd by me, so I don't
have the liberty of changing it.
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? Expression is rather large, so I'd prefer not to
duplicate it.
[cc'd to the project mailing list]