Crates.io | jBrain |
lib.rs | jBrain |
version | 0.1.2 |
source | src |
created_at | 2020-09-03 22:06:39.065182 |
updated_at | 2020-09-10 12:31:46.221825 |
description | jBrain, a small lang for 🧠people |
homepage | |
repository | |
max_upload_size | |
id | 284401 |
size | 27,896 |
jBrain is a very small hybrid language (such as Java, Kotlin, Scala, Groovy...) programmed entirely in Rust. Here's an example, a hello world program in jBrain:
PUSH 72 //Adding H
PUSH 101 //Adding e
PUSH 108 //Adding l
PUSH 108 //Adding l
PUSH 111 //Adding o
STROUT //Prints Hello
NEWLINE //Prints a new line
MEMFREE //Frees the memory
PUSH 87 //Adding W
PUSH 111 //Adding o
PUSH 114 //Adding r
PUSH 108 //Adding l
PUSH 100 //Adding d
STROUT //Prints World
EXIT //Ends the program
As you see, jBrain is a very wordy language, because it has got (in jBrain v0.1.2) only 36 actions.
If you want to install jBrain, you have 3 options, if you use windows can visit our web (jbrain-lang.top.mx) and get the binaries in the Downloads page.
If you use another OS, you can get the source code as a tarball and build it by cargo build:
wget https://hdb-cloud.netlify.app/archive/jBrain/last/jBrain.tgz
tar xvf jBrain.tgz
cd jBrain-X.X.x/jbrain #Replace X.X.x with jBrain version
cargo build
Or install jBrain via the cargo package manager:
cargo install jBrain
If you liked this repo, you can share it with your friends, this would help us so much 😊.