Menu

#8 BUG in parsing boolean expressions (if, while....)

v1.0_(example)
open
nobody
None
5
2023-04-07
2023-04-07
sbettini
No

if 1 = 2 and 2 = 3
print true
else
print false
endif
--->true (BUG)


if (1 = 2) and (2 = 3)
print true
else
print false
endif

--->false (CORRECT)

Unfortunately seem to be a major problem at parser level (_Expression() and descendant tree functions) not so simple to manage, at least for me.

The parens workaround is a little annoing and break the elegance of the syntax, could someone check with some old version (pre 1.16) if the problem was already here maybe from the beginning?

TIA
Stefano

Discussion


Log in to post a comment.