|if-then-else ambiguity email@example.com (Umm) (1997-04-16)|
|Re: if-then-else ambiguity firstname.lastname@example.org (Duncan Smith) (1997-04-18)|
|Date:||16 Apr 1997 00:04:59 -0400|
|Keywords:||parse, question, comment|
Would it be a correct way, of solving a shift reduce problem in
yacc/bison of the if-then-else by defining a %left precedence (the
biggest one) to the else?? that way, we are sure (we were already but
at least there will not be a warning) that in the presence of the
else, it will be immediately reduced and not shifted, thus making it
belong to the closest if.
Is this correct??
Tiago Umm Pascoal
Return to the
Search the comp.compilers archives again.