Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 984 Bytes

File metadata and controls

32 lines (20 loc) · 984 Bytes

Mini Compiler for JavaScript

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.

What is the project about?

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 replicate this project on your computer

  1. To initalize the project:
git clone git@github.com:Varun487/MiniJavaScriptCompiler.git

cd MiniJavaScriptCompiler

make

  1. To compile and run a program:

./jscompiler < test.js

Project members

All members are from Semester 6 Section E Pes University EC Campus
  1. Varun Seshu - PES2201800074
  2. Sneha Jain A - PES2201800030
  3. Bhavan Naik - PES2201800047