Skip to content

omraval18/compilerUsingJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

CompilerUsingJS

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 ).

What's it's Superpower ?

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.

Use This

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');

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published