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

Implemented if-statements and boolean expressions/operators #27

Closed lucasnorman07 closed 2 months ago

lucasnorman07 commented 2 months ago

Added implementations for if statements and if-else statements with both using curly braces and the ':' syntax. I also added boolean expressions with support for the following operators:

The boolean operators also work with the english words: "not" "or" "and". I also added a temporary way to print strings for testing using the built-in printf function that llvm provides.

pontushenriksson commented 2 months ago

Looks great! :)