This is a super mini compiler built using javascript. This compiler can do very very limited stuff (might be useless as well for most of you though great for learning ).
Well, It can convert your LISP function into C function. So it will convert this :
(fn para1 para2)
to
fn(para1,para2)
The first function is in LISP language and the Second one is in C language.
Clone this Repo to Your PC
git clone https://github.com/omraval18/compilerUsingJS.git
Go to the Folder
cd compilerUsingJS
Run index.js of import functions to your file and run it.
node index.js
Use it externally by adding following code to your file.
const {
tokenizer,
parser,
transformer,
codeGenerator,
compiler,
} = require('./index.js');