[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Debugging "$4"
From: |
Akim Demaille |
Subject: |
Re: Debugging "$4" |
Date: |
Thu, 8 Oct 2020 08:17:44 +0200 |
> Le 7 oct. 2020 à 23:52, Chris verBurg <cheetomonster@gmail.com> 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