DISCLAIMER: This project is still in development. That means some examples don't work yet.
A simple interpreter for my own programming language called minosrus_lang.
It's inspired by BASIC but also by new languages like Rust. In the future the interpreter will (eventually) be used for an OS. And it's my first project in Rust.
Short Paradigm:
- Imperative
- Procedural
- Structured
- You can simply clone this repository with
git clone https://github.com/Tix3Dev/minosrus_lang. - You need to be able to execute rust code. To install rust have a look at the instructions of the official rust-lang page.
- To build the project execute
cargo build --release. The path to the executable is now<the path where you saved the project>/minosrus_lang/target/release/minosrus_lang.
IMPORTANT: If you decided to try this out, and you get this error: SOMEHOW THIS SHOULDN'T BE PRINTED!, please create a new issue and post your input + the output. Thank you!
Repl:
> PRINT "HELLO WORLD"
Output:
HELLO WORLD
Repl:
> LET COUNTER = 1
> WHILE COUNTER <= 5 START
> PRINT ( "COUNTER: " + STRING_FROM COUNTER )
> LET COUNTER = ( COUNTER + 1 )
> END
Output:
COUNTER: 1
COUNTER: 2
COUNTER: 3
COUNTER: 4
COUNTER: 5
For more examples have a look at the examples folder.
To get a better understanding of the language, you might consider looking at the documentation. Here is the link to the docs.
This is mainly a personal project, so if you want to contribute, please let me know first so we can talk about your desire.
Big thanks to Rosca Alex who is in account for verines and who is a really talented programmer.