You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's tedious to parse expressions without associativity attributes.
Left associative = reduce in a shift/reduce conflict
Right associative = shift in a shift/reduce conflict
I don't like ocamlyacc/menhir/happy style associativity lines before non-terminals/productions. I think we should probably use Rust attribute syntax and annotate productions with the associativity attributes. Examples:
We should probably just copy the syntax (and maybe implementation too), but I would prefer avoiding lvl and side argument names. Just #[precedence(2)] #[assoc(left)] should be OK. (Do we need string quotes around 2 and left? I hope not)
It's tedious to parse expressions without associativity attributes.
Left associative = reduce in a shift/reduce conflict
Right associative = shift in a shift/reduce conflict
I don't like ocamlyacc/menhir/happy style associativity lines before non-terminals/productions. I think we should probably use Rust attribute syntax and annotate productions with the associativity attributes. Examples:
The text was updated successfully, but these errors were encountered: