tron-lang
v1.0.43
Published
An open-source programming language written in Rust
Downloads
30
Readme
Tron Programming Language
An Open Source, Fast and Simple Programming Language written in Rust
Usage/Examples
let name = :in_"Please enter your name: ";
print "Hello " + name;
fn add(a,b){
return a + b;
}
print add(1,5);
let age = :num_"Please enter your age: ";
if age < 18 {
print "minor";
exit;
} else {
print "adult";
run "adultsonly.tron";
}
Acknowledgements
Installation
Before starting the installation, please make sure that you have already installed Rust.
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
If rust is already installed you are free to install Tron in your project:
npm install tron-lang
add the following code in the package.json
:
"scripts": {
"build": "cd node_modules/tron-lang \n chmod + x ./build.sh \n ./build.sh",
"start": "cd node_modules/tron-lang \n cargo run"
}
Run npm run build
and then npm start
in the terminal.
Support
For support, email [email protected]
or [email protected]
.