sam701 / syconf

A simple configuration language that keeps your config files lean
Apache License 2.0
3 stars 1 forks source link

Fix equality operator precedence #13

Open sam701 opened 3 years ago

sam701 commented 3 years ago

Make these expressions parsable:

3 > 2 == true
if true then 3 else 2 == 3 // ambiguous, see comment below
sam701 commented 3 years ago

The expression if true then 3 else 2 == 3 is ambiguous depending on associativity. It can be seen as (if true then 3 else 2) == 3 or if true then 3 else (2 == 3). This case won't be fixed.