An interpreter written in Racket for a given programming language. This code is developed for CE40364 (Design of Programming Languages) Course Project.
-
Download and install DrRacket based on your platform.(here)
-
Open terminal and insert following command
git clone https://github.com/alirezadaghigh99/PL-Project.git
-
Run interpreter.rkt
Source code is consisted of four parts. Functionality of each part will be explained in this part.
As its name shows, this module does lexical analysis process and then creates parser according to given grammar.
This module defines environment functions to store variables and their values.
This module is used for handling defined operations, such as addition, multiplication, comparison, list operations, etc. Error handling is done in this module too.
This module is main module and combines all other parts to compute value of given program by interpreting input language to Racket.
In this section you can see two codes in given language and their corresponding output in racket.
- GitHub: @nimajam41
- LinkedIn: Nima Jamali
This project is available thanks to all contributors.