| Crates.io | stacky |
| lib.rs | stacky |
| version | 0.1.2 |
| created_at | 2025-08-29 08:25:19.141267+00 |
| updated_at | 2025-08-29 10:10:04.177392+00 |
| description | Stacky Programming Language |
| homepage | |
| repository | https://github.com/stacky-language/stacky |
| max_upload_size | |
| id | 1815529 |
| size | 154,697 |
Stacky is a simple stack-oriented programming language.
Stacky is a stack-oriented, minimal programming language designed for learning how stack machines work. It provides a clear syntax based on common stack machine concepts so you can learn the execution model by writing and running code.
You can try Stacky quickly using the web-based Stacky Playground:
You can also install a CLI tool to run a REPL or execute .stacky files via cargo:
$ cargo install stacky-cli
Run the following example:
; hello.stacky
push "hello, world!"
println
In the Stacky Playground, press the Run button to execute the code. From the CLI, run:
stacky hello.stacky
The program should print hello, world!.
Stacky supports a variety of instructions. Here's a slightly more complex example:
; let i = 0
push 0
store i
start:
; i++
load i
push 1
add
store i
; if i == 100 return
load i
push 100
eq
br end
; if i % 15 == 0
load i
push 15
mod
push 0
eq
br fizz_buzz
; if i % 3 == 0
load i
push 3
mod
push 0
eq
br fizz
; if i % 5 == 0
load i
push 5
mod
push 0
eq
br buzz
goto other
fizz_buzz:
println "fizz buzz"
goto start
fizz:
println "fizz"
goto start
buzz:
println "buzz"
goto start
other:
load i
println
goto start
end:
For more detailed documentation, see: https://stacky-language.github.io/
This repository is under the MIT License.