FerroBASIC

Open source · Pre-alpha

A BASIC compiler
written in Rust.

FerroBASIC is building toward B4X compatibility across desktop, mobile, the web, and microcontrollers. Start today with a single-module BASIC program.

hello.bas
Sub Process_Globals
End Sub

Sub AppStart (Args() As String)
    Log("Hello, world!")
End Sub
ferro run hello.bas
Hello, world!
Save as hello.bas, then run it with ferro.

Available today

What works in pre-alpha

ferro check / run

Check and run BASIC

Type-check a single module and run it with the reference interpreter. The supported core includes lists and maps.

ferro repl

Experiment in a REPL

Try expressions and small snippets in an interactive session that keeps your definitions.

ferro bundle

Build a standalone executable

Bundle a program with the interpreter as an executable for your host platform.

Prefer an editor? Set up the language server for live diagnostics.

Roadmap

Where it’s going

The long-term goal is to build existing B4X projects without source changes.

Read the full roadmap
In development
Classes and events
Planned
JVM and Android, native desktop, iOS, WebAssembly, and microcontrollers