compiler-design-lab
compiler-design-lab copied to clipboard
These are my programs for compiler design lab work in my sixth semester
MY COMPILER DESIGN LAB EXPERIMENTS/PROGRAMS
Requirements
- Python 3.6+
How to Run?
- Install Python 3.6+
- Clone this repository
- 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