/AST

Transform .tsc file code into a different code using Abstract syntax tree (AST).

Primary LanguageTypeScript

AST

Run the project

1. Clone the project

git clone https://github.com/TomasKukumberg/AST.git

2. Change into folder

cd AST

3. Install typescript globally

npm install -g typescript

4. Install dependencies

npm install

5. Make a new folder in data folder

mkdir data/output

6. Compile the typescript file

tsc main.ts

7. Run the project with Node.js

node ./main.js data/input/ data/output/