Open tylersmith34 opened 4 years ago
I have been unable to express this statement in BNF syntax so that it parses without breaking other ways to express this logic.
if checkMyValue(x) and x < y { return x }
There are two work arounds.
Reversing the order is parsing correctly
if x < y and checkMyValue(x) { return x }
Or add parentheses around x < y
if checkMyValue(x) and (x < y) { return x }
I have been unable to express this statement in BNF syntax so that it parses without breaking other ways to express this logic.