https://github.com/aadit3003/compiler-construction
(CS F363) Assignment as part of the Compiler Construction course, under Prof. Vandana Agarwal
https://github.com/aadit3003/compiler-construction
Last synced: 8 months ago
JSON representation
(CS F363) Assignment as part of the Compiler Construction course, under Prof. Vandana Agarwal
- Host: GitHub
- URL: https://github.com/aadit3003/compiler-construction
- Owner: Aadit3003
- Created: 2022-02-27T03:08:52.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-25T09:25:44.000Z (almost 4 years ago)
- Last Synced: 2025-03-18T11:33:40.048Z (over 1 year ago)
- Language: C
- Homepage:
- Size: 999 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Compiler-Construction
This project was done as part of the course CS F363 (Compiler Construction) in the Second Semester of AY 21-22 under the guidance of Prof. Vandana Agarwal, BITS Pilani.
## Brief Description
The Compiler translates a Strongly typed language (Primitive and Complex data types) into equivalent machine code. The compiler was written entirely in the C language. The code was written in 2 stages and includes the following modules:
- Lexical Analyzer
- Syntax Analyzer
- Abstract Syntax Tree, Symbol Table
- Type Checker (Syntax analysis)
- Semantic Analyzer
- Code Generator
## Installation and Use
Simply run the .exe file using the command ./stage2exe testcase.txt (ensure the test cases exist in the same directory). Alternatively, you may use the makefile. Once executed, select one of the 10 options to demonstrate the compiler's capabilities.