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
Instance of 'ParserException': end of input expected (at 1:3)
package:petitparser/src/core/result.dart 56:22 Failure.value
package:expressions/src/expressions.dart 32:62 Expression.parse
I have done some investigations and it seems like this has something to do with the order in which the operators are defined. (best guess is that they are matched in order of definition so the first match, single <, 'wins'.) If I change the order of the elements in the binaryOperations definition is seems to work, but I'm not sure if this breaks something else when the precedence is out of order now:
It looks like binary shift operations are supposed to be supported, but here is a very simple test case that fails:
Here is the eexception I get:
I have done some investigations and it seems like this has something to do with the order in which the operators are defined. (best guess is that they are matched in order of definition so the first match, single <, 'wins'.) If I change the order of the elements in the
binaryOperations
definition is seems to work, but I'm not sure if this breaks something else when the precedence is out of order now:The text was updated successfully, but these errors were encountered: