Crabby is a modern High-level, multi-paradigm, functional programming language. With a Pythonic style syntax, it is designed to be readable, ease-to-use for beginners, and powerful enough for advanced users.
As you may notice, Crabby has been through phases of rewrite, and if you're thinking that Crabby is abounded, well... You're Wrong!
Crabby has been officially and well be written in Rust due to it's memory safety and type checkings compared to C.
Here's what changed:
- It has Pythonic-style of Syntax BUT with a functional approach
- It's purely functional (not yet for now)
- JIT compile time
- Runtime & Type checking on the work.
- Error handling on the work
- More parsing and features!
- Git clone:
git clone https://github.com/Kazooki123/crabby.git
- Make sure to have
rust
andcargo
installed
cargo --version
- Build it and Test it for yourself
cargo build
cargo run examples/example.crab
It's default file format is a .crab
or .cb
But for now it's .crab
example.crab:
let x = 42
let y = 314
let message = "Hello, Crabby!"
print(x)
print(y)
print(message)
helloworld.crab:
print("Hello, World!")
math.crab:
// addition
let x1 = 1
let y1 = 2
// multiplication
let x2 = 4
let y2 = 7
// subtraction
let x3 = 10
let y3 = 3
// division
let x4 = 10
let y4 = 3
print(x1 + y1)
print(x2 * y2)
print(x3 - y3)
print(x4 / y4)
ifelse.crab:
// if-else statements
let true = 1
if true: {
print("True!")
} else {
print("Nope!")
}
Note: Crabby supports commenting, use //
to comment out a code or leave a silly ahh message :3
It's in development and I'm still planning how to use in it.
Crabby doesn't support things like import
or export
for now
but well do in the future 😄
Crabby is open to contributions! Feel free to open an issue or a pull request. Make sure to read the contributing guidelines before getting started.
Crabby is licensed under the GNU General Public License v3.0.
Thanks goes to these wonderful people that used to help this project! 👨💻💻:
Mr.Coder 💻 |
Saturo 💻 |
Trnx 💻 |