A minimal statically typed turing complete scripting language.
- Statically typed
- Type inferencing
- turing complete
- Semantic analyzer with Control FLow analysis
- ultra fast
- Clear error messages
- web assembly text code generator ,
eg.
fun get_pi() :float
{
return 3.14;
}
fun abc(test:int,alpha:float):float
{
let b=get_pi(5); // infered to float
let d="this is \"some\" string"+"another";
let a=0.0; // infered as float
let count=0; // infered as int
while a<b // no parenthesis required in condition
{
a=a+1;
//Infinite nesting
while 1
{
count=count+1;
if count>100 //supports if else ladder
{
break; // support break and continue
}
}
}
return a; //return control flow analysis
}
//and so on
- Install Rust Language Compiler, if not already installed.
- Clone the Repo.
- Go to repo and run following command in terminal
cargo run