Re: Debugging "$4"
Akim Demaille <[email protected]> Thu, 8 Oct 2020 08:17:44 +0200
| Newsgroups | gmane.comp.parsers.bison.general |
|---|---|
| Message-ID | <[email protected]> |
> Le 7 oct. 2020 à 23:52, Chris verBurg <[email protected]> a écrit : > > > I don’t know if this is helpful, but is there a problem with ambiguity between these parses: > > (IF 1=1 THEN PRINT “3” ) : PRINT “4” > > and > > IF 1=1 THEN (PRINT “3” : PRINT “4”) > > ? Because if the shift/reduce conflict resolved toward the first one, then $4 really only has one statement anyway. Chris might be very right here. Maury, have you looked at your debug traces? https://www.gnu.org/software/bison/manual/html_node/Tracing.html