New answers tagged

1 vote

How to disambiguate CFG with unary/binary minus and binary prefix operator

I'm going to limit myself, at least for now, to the question actually asked here: how to deal with the ambiguity between an operator which could be prefix or infix (such as unary negation) and a ...
user avatar
  • 11.3k
0 votes

How to disambiguate CFG with unary/binary minus and binary prefix operator

I came up with a simple and acceptable solution: the first argument to the binary prefix operator can be any expression with a precedence binding tighter than unary negation. That's almost no ...
user avatar

Top 50 recent answers are included