TelluIoT / ThingML

The ThingML modelling language
https://github.com/TelluIoT/ThingML
Apache License 2.0
102 stars 32 forks source link

Priority of modulo operator vs. equality operator is wrong #211

Closed ffleurey closed 6 years ago

ffleurey commented 6 years ago

my_var % 10 == 0 seems to be parsed as my_var % (10 == 0) instead of (my_var % 10) == 0

the workaround is to always use the parenthesis but we should probably fix this at some point. I do not know how many other operators are affected. We should have some tests for this.

brice-morin commented 6 years ago

Duplicate of #178 :-)