SeedV / SeedLang

An embeddable and visualizable scripting engine for .Net and Unity.
https://seedv.github.io/SeedLang/
Apache License 2.0
9 stars 1 forks source link

Compile non-comparison and non-boolean expressions in the boolean expressions #211

Closed codingpotato closed 2 years ago

codingpotato commented 2 years ago

Fix #159

Support following code now:

def is_even(n):
  return n % 2 == 0

for n in range(10):
  if n < 5 and is_even(n):
    print(n)