v1.0
Getting Started with Astra
Astra is a custom programming language implemented in C++17. It compiles source code to bytecode and executes it on a custom Virtual Machine. Designed to be simple yet expressive — with unique features like Chains, Modifiers, and a tri-state boolean system.
💡 Tip: Astra is perfect for learning language design concepts, scripting tasks, and building tools with a clean, readable syntax.
Installation
Download the latest release for your platform:
Windows
Linux / macOS
📦 Download: Get the latest release from the Downloads page.
Hello World
Create a file called hello.astra and write:
Run it:
Output:
Let's try something more interesting:
Interactive REPL
Run Astra without a file to enter the interactive REPL (Read-Eval-Print Loop). Great for experimenting with the language:
💡 Tip: The REPL supports arrow keys for history navigation. Press ↑ to recall previous commands.
Build from Source
Astra is implemented in C++17. To build from source, you need a C++ compiler like g++ or clang++.
Clone the repository
Compile
Run
✅ Next: Learn about Variables & Constants →