Skip to content

Code for end-to-end implementation of a compiler for Perl Programming Language. Includes code for Lexical Analysis, Semantic Analysis, Intermediate Code Generation and Target Code Generation.

Notifications You must be signed in to change notification settings

Anjalikamath/Compiler-Design

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Compiler-Design

Project Title: Building a mini compiler based on Perl Language

Project Guide : Prof. Preet Kanwal

Project Abstract: The aim of the project is to build a mini compiler based on perl language. It is done by diving the project into phases.

  1. Context free grammar generation
  2. Lexical Analysis
  3. Abstract Syntax Tree and Intermediate Code Generation
  4. Code Optimization
  5. Assembly Code Generation

Code Execution :

For all phases except last phase i.e assembly phase execution is as follows:
lex lexer.l
yacc -d parser.y
gcc y.tab.c
./a.out input.pl

For the Phase5-assembly execution is as follows:
python3 assembly.py

About

Code for end-to-end implementation of a compiler for Perl Programming Language. Includes code for Lexical Analysis, Semantic Analysis, Intermediate Code Generation and Target Code Generation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published