The classic %left, %right and %nonassoc encode associativity and thus implicitly drive precedence decisions in an otherwise ambiguous grammar, which is to be frowned upon as it does hide some error types. Hence a directprecedence-only specifying instruction is called for. A bit akin to the %prec modifier.
Cf. https://www.gnu.org/software/bison/manual/html_node/Precedence-Decl.html
The classic
%left
,%right
and%nonassoc
encode associativity and thus implicitly drive precedence decisions in an otherwise ambiguous grammar, which is to be frowned upon as it does hide some error types. Hence a direct precedence-only specifying instruction is called for. A bit akin to the%prec
modifier.See also: