This repository contains various programs developed as part of the Compiler Design Lab course. Each program focuses on different aspects of compiler design, including lexical analysis, parsing, and syntax tree generation.
A simple Java program demonstrating basic concepts used in compiler design.
Lexical analyzer specification for recognizing capital letters using Lex.
C program to compute the FIRST sets for a given grammar.
C program to compute both the FIRST and FOLLOW sets for a given grammar.
Java program related to code generation in compiler design.
C program to perform left factoring on a given grammar.
C program to eliminate left recursion from a given grammar.
Lexical analyzer specification for recognizing operators and identifiers using Lex.
C++ program implementing a predictive parser for a given grammar.
Program to create a scanner using regular expressions.
C++ program implementing an SLR parser for a given grammar.
Java program to generate a syntax tree for arithmetic expressions.
To run any of these programs, follow the standard compilation and execution procedures for the respective programming languages (C, C++, Java, and Lex).
Contributions are welcome! Please fork the repository and submit a pull request with your changes.
This project is licensed under the MIT License - see the LICENSE file for details.