Jazz (Unmaintaned, please see https://github.com/jazz-lang/
Jazz is a register-based virtual machine and lightweight programming language
Jazz is heavily inspired by Gravity language
- Clear and simple syntax
- Integration with Rust
- Interfacing with other languages than Rust
- Make VM suitable for object oriented programming
- Write simple book for learning Jazz programming language
- JIT compilation
- Generating bytecode files
func factorial(num) {
if num == 0 {
return 1;
} else {
return num * factorial(num - 1);
}
}
func main() {
print(factorial(5));
return 0;
}
class Vector2 {
var x;
var y;
func init(a,b) {
this.x = a;
this.y = b;
return this;
}
func toString() {
return concat("(",this.x,";",this.y,")");
}
}
func main() {
var vector = Vector2(2,-2);
print(vector.toString());
}