TSK PL (Programming language) is superset of JavaScript, adds some syntaxic functionality to existing JavaScript. TSK Complier transplies tsk code into valid JavaScript code and is written in TypeScript. This PL is meant to be compiled relatively fast compared to TypeScript and CoffeeScript PLs and it's bundled compiler to be small (archived by various ways).
- Download and install Git (Skip if already installed).
- Download and install Node (Skip if already installed).
- Download this git repository using
git clone https://github.com/MadProbe/tsk
command. - Go to downloaded code typically using
cd tsk
. - Install dependencies by running
npm install --legacy-peer-deps
(npm i --legacy-peer-deps
does same) - Build project using
npm run build
. - To install compiler write
npm run globalinstall
. - Also recommend to install node-fetch as global module by using
npm i -g node-fetch
command, by that allowing compiler fetching tsk scripts from web.
Build project using npm run build
.
tskc --main=path/to/file --out=path/to/out/dir --pretty
- main - main file to start compilation from (can be passed multiple times if you need to compile several files at one time)
- out - dir where output code is stored
- pretty - If output must be prettified