Skip to content

Crabby, the new programming language of the modern programming era.

License

Notifications You must be signed in to change notification settings

StarloExolimm/crabby

 
 

Repository files navigation

Crabby: The Modern Programming Language Written in Rust

All Contributors

StarloSearch

GitHub License

Introduction

Logo

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.

What Change?

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:

  1. It has Pythonic-style of Syntax BUT with a functional approach
  2. It's purely functional (not yet for now)
  3. JIT compile time
  4. Runtime & Type checking on the work.
  5. Error handling on the work
  6. More parsing and features!

Installation

  1. Git clone:
git clone https://github.com/Kazooki123/crabby.git
  1. Make sure to have rust and cargo installed
cargo --version
  1. Build it and Test it for yourself
cargo build
cargo run examples/example.crab

Syntax

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

Package Manager when?

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 😄

Contributing

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.

LICENSE

Crabby is licensed under the GNU General Public License v3.0.

Old Contributors ✨

Thanks goes to these wonderful people that used to help this project! 👨‍💻💻:

Mr.Coder
Mr.Coder

💻
Saturo
Saturo

💻
Trnx
Trnx

💻

About

Crabby, the new programming language of the modern programming era.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 100.0%