Introduction to Wave v0.0.4-pre-beta: If statement completed
Hello! I'm LunaStev, the developer of Wave. I'm excited to release the v0.0.4 pre-beta version. I'm very excited to share the 4th version of Wave.
In this version, we have added an if statement.
✨ Major Updates
⚠️ if
Statement Partially Functional
Basic conditional branching with if
statements is now working, but the implementation is not yet perfect.
While if
and else
blocks are parsed and compiled to LLVM IR, some edge cases or complex conditions may not behave correctly. Improvements are ongoing.
✅ Arithmetic Expression Support
Arithmetic expressions like a + b
and c * d
are now properly represented in the AST and converted into LLVM IR.
BinaryExpression
is now fully supported.
✅ Expression Output in Format Strings
Expressions can now be directly used inside format strings.
Example: println("{}", a + a)
works flawlessly, allowing real-time expression results to be printed.
✅ Expanded Code Generator Structure
Introduced generate_expression_ir() for full recursive processing of expressions. Ready for further expansion to support more complex and diverse expression types.