Skip to content

PratikSavla/compiler-design-lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MY COMPILER DESIGN LAB EXPERIMENTS/PROGRAMS

Requirements

  1. Python 3.6+

How to Run?

  1. Install Python 3.6+
  2. Clone this repository
  3. In command line type:
python ex[exercise-number].py

Experiments List

  • Ex.1 - Lexical Analyzer
  • Ex.2 - Regular Expression to NFA
  • Ex.3 - Elimination of Left Recursion
  • Ex.4 - Elimination of Left Factoring
  • Ex.5 - Computation of First and Follow sets
  • Ex.6 - Computation of Leading and Trailing sets
  • Ex.7 - Construction of Predictive Parsing Table
  • Ex.8 - Implementation of Shift Reduce Parsing
  • Ex.9 - Computation of LR(0) items
  • Ex.10 - Intermediate Code Generation: Three Address Code, Postfix, Prefix