Alox is a statically typed, interpreted programming language that aims to balance simplicity and power. It was created with the following principles in mind:
Variables are declared using the var keyword
var: String a = 2;Alox supports two datatypes: Number and String
var: String name = "John"
var: Number age = 30You can use if, else if, and else for conditional branching.
if(condition){
//do something
}
else{
//do something
}Alox offers both for and while loops.
for(var: Number i = 0; i<10; i = i +1 ){
#code block
}while(1){
print 1;
}
# code blockDefine functions using the func keyword. You can specify parameters and return types.
fun add(var: Number x, var: Number y){
return x + y
}Create arrays and lists to store collections of data. Feature currently under development
Feature currently under development
Use try, catch, and throw for exception handling.
Feature currently under development
Import and use external modules and libraries to extend Alox's functionality. Feature currently under development