# Introduction to Wave v0.0.5-pre-beta: Add While Features

Hello! I'm LunaStev, the developer of Wave. I'm very excited to release the v0.0.5 pre-beta version. I'm very excited to share the 5th version of Wave.

In this version, we have added a `while` statement.

---

## ✅ Added Features
### 🔁 Loops: Full Support for while Statements

* Basic `while` loops

* Nested `while` loops

* Variable declaration and initialization inside loops

* Loop termination condition handling (supports comparison operators like `<=`, `<`, `==`, etc.)

* print and println functions work inside loops

### 🧨 Control Flow

* Support for `break` statements

* Allows breaking out of loops in the middle

* Works correctly even inside nested loops

* (⏳ Next version: `continue` support planned)

### 🧠 Variable Handling

* Fully correct local variable scoping (e.g., a new `j` is created in each loop)

* Supports `var` declarations (must specify types like `i32`, `u32`, etc.)

* Allows variable reassignment (handles patterns like `i = i + 1`)

---

## Showcase


![Image description](https://cdn.hashnode.com/res/hashnode/image/upload/v1754270128770/d28f4cef-61f7-46ff-8dbd-c4d147a035d2.png)


![Image description](https://cdn.hashnode.com/res/hashnode/image/upload/v1754270129526/99aa66a7-5043-4d10-8740-bfceca299912.png)



---

Thank you for using Wave! Stay tuned for future updates and enhancements.

---

## Installation Guide

### For Linux:

1. **Download and Extract:**
   - Download the `wave-v0.0.5-pre-beta-linux.tar.gz` file from the official source.
   - Use the wget command:
     ```bash
     wget https://github.com/LunaStev/Wave/releases/download/v0.0.5-pre-beta/wave-v0.0.5-pre-beta-linux.tar.gz
     ```
   - Extract the archive:
     ```bash
     sudo tar -xvzf wave-v0.0.5-pre-beta-linux.tar.gz -C /usr/local/bin
     ```

3. Setting up LLVMs
   - Open a terminal and type:
     ```bash
     sudo apt-get update
     sudo apt-get install llvm-14 llvm-14-dev clang-14 libclang-14-dev lld-14 clang
     sudo ln -s /usr/lib/llvm-14/lib/libLLVM-14.so /usr/lib/libllvm-14.so
     export LLVM_SYS_140_PREFIX=/usr/lib/llvm-14
     source ~/.bashrc
     ```

4. **Verify Installation:**
   - Open a terminal and type:
     ```bash
     wave --version
     ```
   - If the version number displays, the installation was successful.


---

# Contributor

@LunaStev | 🇰🇷

---

## Website

[Website](https://wave-lang.dev)
[GitHub](https://github.com/LunaStev/Wave)
