1.1.93 • Published 2 years ago
devlang-cli v1.1.93
DevLang
Syntax
Variable Declaration
let id = exp;
if-then-else
if(condition){
// code if condition is true
}
else{
// code if condition is false
}
while, do-while, for
while(condition){
// code while condition is true
}
do{
// code while condition is true
// code will be executed at lest one time
}while(condition);
for(init; condition; update){
// code while condition is true
}
Function Declaration and Function Call
// declaration
fun id(params...){
// code...
}
// call
id(actual params...);
System Calls
run("command");
Specials
print(exp);