Implementing a mini compiler that takes as input a JavaScript program (with focus on the programming construct for loop statements) and produces an optimized intermediate code as an output.
This project uses yacc and lex to generate a mini compiler for JavaScript. A mini compiler performs lexical analysis, symbol table generation and syntax validation. This project intends to manage assignments, datatypes, evaluate expressions and emulate loops in javascript.
- To initalize the project:
git clone [email protected]:Varun487/MiniJavaScriptCompiler.git
cd MiniJavaScriptCompiler
make
- To compile and run a program:
./jscompiler < test.js
- Varun Seshu - PES2201800074
- Sneha Jain A - PES2201800030
- Bhavan Naik - PES2201800047