Skip to content

Marwan-lord/Crimson-lang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Crimson-lang

An interpreted expression-based functional programming language made in rust
inspired mainly by monkey-lang from "Writing An Interpreter Book In Go" book


Syntax

let name = "Marwan"
let sum = fn (a, b) {
   a + b;
};
sum(12, sum(32, 43))
let greet = fn(name) {
   "hello" + name;
};
greet(name)

let fruits = {
    "apples": "Good",
    "grapes": "Awesome",
    "strawberries": "Mid",
}

fruits["apples"]

let array = [1,2,3,4,5];
print(array)

let x = 12;
let y = 32;

if (x > y) {
   print(" x is larger")
} else {
   print(" y is larger")
};

Inspirations

Here

About

An interpreted programming language made in rust

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages