Crates.io | ocypode-lang |
lib.rs | ocypode-lang |
version | 0.2.3 |
source | src |
created_at | 2023-03-14 20:20:09.053681 |
updated_at | 2023-09-17 08:08:04.002556 |
description | A dynamic programming language written in Rust |
homepage | |
repository | https://github.com/TheAwiteb/ocypode-lang |
max_upload_size | |
id | 810117 |
size | 412,491 |
Ocypode is a dynamically typed language. It is an interpreted language, the interpreter written in Rust. Ocypode is object-oriented, also it has a main function that is the entry point of the program. The grammar is written in Pest is a parser generator for Rust. you can find the grammar file here: grammar.pest.
In general, Ocypode is for educational purposes. I am learning how to write a programming language, and Ocypode is the result of that. Also, Ocypode is good for how want to write a programming language in Rust.
Ocypode will have a book soon. For now, you can read the tests or the grammar file.
You can install the Ocypode interpreter/REPL by running this command:
cargo install ocypode-lang
Then you can run the REPL by running this command: [WIP]
ocypode
Or you can run a file by running this command:
ocypode <file>
You can build Ocypode from the source by running these commands:
git clone https://github.com/TheAwiteb/ocypode-lang.git
cd ocypode
cargo build --release
Then you can find the binary in the target/release
directory.
The contribution is welcome. You can contribute by reporting bugs, fixing bugs, adding features, or improving documentation. You can also contribute by translating the documentation into other languages.
Ocypode is licensed under the GPLv3 license. You can find the license file here: LICENSE.