DEV Community

bimaghafara8-boop
bimaghafara8-boop

Posted on

I Built a Programming Language on My Phone in a Few Days

I built a programming language called Silly.
Written in C, runs .lol files.

Not on a laptop. On a phone. Oppo A3s. With Termux.

Why?

Because I wanted to. And because programming languages
don't have to be uptight.

Silly is a protest against unnecessary formality.
Even syntax can be weird and still logical.

The Syntax

Variables:
num8 x = 10;
dex pi = 3.14;

Output:
ofs.out: >> "halo dunia" <<;

If/else:
what (x < 10) {
ofs.out: >> "kecil" <<;
} yeah {
ofs.out: >> "gede" <<;
}

Loop:
masturb (x < 100) {
x = 99;
}

onani (num8 i = 0; i < 10; i) {
ofs.out: >> "loop" <<;
}

Functions:
digest sapa[] <<
ofs.out: >> "halo" <<;

sapa[];

Status

Silly v0.1 — early stage. Bugs exist. Features are being added.

Source

github.com/bimaghafara8-boop/silly-lang

Top comments (0)