Vyne Documentation

Version 0.0.2-alpha | Last updated: February 2026

Introduction to Vyne

Vyne is an interpreted programming language where code is executed line by line by an interpreter at runtime, rather than being compiled into machine code beforehand. This allows developers to run and test programs quickly without a separate compilation step. Vyne is best at educational purposes such as data structures and algorithms, and designed for those who want to improve problem-solving skills without writing heavy codes.

Why Vyne?

Vyne was created to support multiple data types, to run fast, and to simplify algorithms in a way that helps people understand them easily. Since Vyne has similar syntax with other well-known languages, it is much easier to write programs and execute without any problem.

Simple Example

Here's what "Hello World!" in Vyne looks like:

main.vy

out("Hello World!")
                        

Output: Hello World!

Note

Vyne uses a minimalistic syntax that reduces boilerplate while maintaining readability. The language is designed to be easy to learn for programmers familiar with C-style languages.

Installation

To build the interpreter from source, clone the repository and compile using your preferred C++ compiler:

bash

git clone https://github.com/t2ncay/vyne.git
cd vyne

./build.bat # For Windows
./build.sh  # For Linux
                        

Built-in Modules

Vyne leverages native C++ modules to handle high-performance tasks that the interpreter shouldn't do alone.

Name Explanation
vcore System-level utilities, sleep timers, and process management.
vglib The "Vyne Graphics Library" — home to the 3D ASCII donut and buffer management (in the future).
vmem Memory management and introspection — track heap usage, inspect raw memory addresses, and monitor variable footprints.

Syntax

Feature Syntax Example Description
Arithmetic (+, -, *, /, <, >, ==) Standard mathematical and comparison operators.
Bitwise (&&, ||) Low-level bit manipulation for flags and binary data.
Functions sub calculate(x) { ... } Defined using the sub keyword with scoped arguments.
Logic Flow if cond { ... } Standard conditional branching.
Loops while cond { ... } Standard iteration for repeated execution logic.
Scoping group Graphics { ... } Encapsulate logic and variables into named namespaces.
Modules module vcore Interfaces with native C++ libraries and system resources.