Skip to content

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.

License

Notifications You must be signed in to change notification settings

Varun487/MiniJavaScriptCompiler

Repository files navigation

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

About

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published