Currently being rewritten here: https://github.com/ScriptLineStudios/Chai/tree/complete-rewrite
Compiler for the Chai programming language. Chai is a fast, compiled dynamically typed language.
- Intel x86_64 Linux - Being implemented by ScriptLine
- Intel x86_64 Windows - Being implmented by MousieDev
- WASM
1. git clone https://github.com/ScriptLineStudios/Untitled-Compiler
2. make
3. ./bin/comp.exe examples/strings.uc
let int_var = 10;
let string_var = "Hello World";
let var = "Hello, World!";
stdout(var);
let x = 7;
if (x != 8) {
stdout(90);
}
let foo = 0;
while (foo != 100) {
stdout(foo);
foo = foo + 1;
}
let lst = [1, 2, 3, 4, 5];
let i = 0;
while (i != 5) {
stdout(lst[i]);
i = i + 1;
}
func foo(bar) {
if (bar != 200) {
stdout("The value of bar is not 200!");
}
}
foo(201);