A lightweight, high-level language designed for rapid prototyping
A small class-based program demonstrating the basic syntax of this language:
print("Hello, world!")
--- Small test class, helping to describe some features of Jingo
class SomeClass {
--- Creates new [SomeClass] from `x` value
fun new(x) {
let self.x = x
}
--- Multiplies number on record with `y`
fun multiply(self, y) {
return self.x * y
}
}
let multiplied = SomeClass.new(3).multiply(25)
match == multiplied + 10 {
10 => print("Huh? 10?"),
85 => print("This is the number!"),
_ => print("Default case")
}
Jingo follows these rules for syntax:
cargo build --release
/target/release/jingo-cli
Usage: jingo [OPTIONS]
A lightweight, high-level language designed for rapid prototyping
Options:
run [FILE] Compiles & runs a file
build [FILE] Compiles a file
help Shows this help
Advanced options:
lex [FILE] Show lexing output
parse [FILE] Show parsing output