Totem-Studios / lotus

Lotus is a type-safe compiled programming languages designed to simplify systems programming, achieving memory safety using RAII.
https://totemstudios.org/lotus
MIT License
4 stars 2 forks source link

Break and continue statements and more operators #38

Closed lucasnorman07 closed 1 week ago

lucasnorman07 commented 3 weeks ago

Implemented break and continue statements inside of for and while loops. Added the following assignment operators:

Added support for using operands of different types with boolean operators like for example:

x := 4;
42 && x > 3 // true
y := false;
11.3 || y // true

All integers and floating points are casted to boolean before the boolean operation is performed.