tron-lang

1.0.43 • Public • Published

Logo

Tron Programming Language

An Open Source, Fast and Simple Programming Language written in Rust

MIT License

npm

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";
}

See More

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 tronlang@proton.me or pi_bmi@proton.me.

Authors

Readme

Keywords

none

Package Sidebar

Install

npm i tron-lang

Weekly Downloads

1

Version

1.0.43

License

MIT

Unpacked Size

125 kB

Total Files

22

Last publish

Collaborators

  • error49