brvm

Crates.iobrvm
lib.rsbrvm
version0.3.1
created_at2025-11-03 02:17:24.5672+00
updated_at2025-11-03 02:24:42.325159+00
descriptionBrainrot language compiler and virtual machine
homepage
repositoryhttps://github.com/Aspenini/BRVM
max_upload_size
id1913786
size60,310
Aspen (Aspenini)

documentation

README

BRVM - Brainrot v3 Virtual Machine

A compiler and virtual machine for the Brainrot v3 programming language, written in Rust.

Installation

cargo install brvm

Or install from source:

git clone https://github.com/yourusername/brvm.git
cd brvm
cargo build --release

Usage

Compiling Brainrot code

brvm compile input.brainrot -o output.brbc

If no output is specified, it defaults to input.brbc in the same directory.

Running bytecode

brvm exec output.brbc

Language Features (v3)

Braincells

Seven global variables: aura, peak, goon, mog, npc, sigma, gyatt

Statements

  • FANUMTAX <cell> FR <expr> - Assign a value to a braincell
  • SAY <expr> - Print a value with newline
  • ONGOD <expr> ... DEADASS - If statement
  • ONGOD <expr> ... NO CAP ... DEADASS - If/else statement
  • SKIBIDI <expr> ... RIZZUP - While loop

Expressions

  • Numbers (f64): 42, 3.14
  • Strings: "hello", "wsg WORLD!"
  • Variables: braincell names
  • Binary operators:
    • 💀 - Addition / String concatenation
    • 😭 - Subtraction
    • 😏 - Multiplication
    • 🚡 - Division
  • Function calls:
    • TOUCHY() - Read input from stdin
    • TOUCHY("prompt: ") - Print prompt and read input

Examples

Hello World

LOCK IN
SAY "wsg WORLD!"
ITS OVER

If/Else

LOCK IN
FANUMTAX sigma FR 0
ONGOD sigma
  SAY "nonzero"
NO CAP
  SAY "zero"
DEADASS
ITS OVER

While Loop

LOCK IN
FANUMTAX gyatt FR 3
SKIBIDI gyatt
  SAY gyatt
  FANUMTAX gyatt FR gyatt 😭 1
RIZZUP
ITS OVER

Output: 3\n2\n1

Interactive Input

LOCK IN
FANUMTAX aura FR TOUCHY("name: ")
ONGOD aura
  SAY "hi " 💀 aura
NO CAP
  SAY "no name provided"
DEADASS
ITS OVER

Truthiness

  • Number(0.0) → false
  • String("") → false
  • Everything else → true

License

Licensed under either of

at your option.

Contributing

Contributions are welcome! Please feel free to submit issues or pull requests.

Commit count: 0

cargo fmt