Myra: An Oberon-inspired language using Zig c++ as its compiler backend

I built a minimal programming language inspired by Oberon. 45 keywords, 9 types, seamless C/C++ interop. It transpiles to C++23, and I use Zig as the compiler backend.

Why Zig? Myra uses zig c++ to compile the generated C++23 to native code via the Zig build system. This gives cross-platform targeting out of the box. No “install MSVC” or “install Xcode” instructions. Just ship Zig and compilation works everywhere.

The whole toolchain ships self-contained: Zig, LLDB, raylib, and a preconfigured VSCodium. Unzip and it works.

The language itself lets you mix C++ inline or in #startcpp / #endcpp blocks. No FFI, no wrappers. Call raylib, ImGui, or std::vector directly.

First public alpha: https://github.com/tinyBigGAMES/Myra

3 Likes

A quick video showing Myra loading and running multiple real projects directly from their own folders using Myra Edit:

• 3D Raylib demo
• SQLite demo
• ImGui + Raylib demo

All of these use C/C++ libraries seamlessly from Myra, with static linking. No wrappers, no glue-code nightmares, just clean interop and native performance. Each C/C++ library folder includes a build.cmd that builds its corresponding static .lib, ready to be consumed directly by Myra.

This is exactly the workflow I’ve been aiming for:
Pascal-inspired clarity, modern systems-level power, and first-class C/C++ integration across platforms.

Myra is shaping up to be the language I’ve always hoped for. :collision: