Skip to content

Latest commit

 

History

History
49 lines (39 loc) · 1.39 KB

README.md

File metadata and controls

49 lines (39 loc) · 1.39 KB

PPL_Assignment_2020

(PUBLIC REPO)

Principles of Programming Languages (CS F301)

Birla Institute of Technology and Science, Pilani, Pilani Campus

Topic: Assignment 1: Language design and type expression computation

Contributors: Yash Raj Singh, Shubham Agarwal, Agrawal Rajat Ramesh, Sahil Kattna

Assignment date: 30 October 2020. Instructor IC: Prof. Vanadana

Steps to Run:

- Do Git Clone ....
- In the console,execute "make" command.
- Execute ./exe <filename>.txt.

Inputs:

- The Grammar of the accepted language is given as input in grammar.txt
- The file to be parsed is given as a console argument and test-cases are present as tX.txt.

Outputs:

  - ERRORS, IF ANY are console logged
  - The Type Expression Table is printed into typeExpressionTable.txt
  - The parseTree is printed into parseTree.txt

Files and their Descriptions:

- parseTree.c
- readGrammar.c
- tokeniseSourceCode.c
- typeExpressionTable.c
- driver.c

        
  and corresponding header file <filename.h> are included.

KINDLY NOTE:

DUE TO MULTIPLE INTER-DEPENDECIES, THE VERSION HAS BEEN SIMPLIFIED AND COMPILES ALL THE FILES THROUGH DRIVER.C ITSELF.

KINDLY AVOID COMPLILING ALL THE INDIVIDUAL FILES.

KINDLY DO MAKE AND THEN EXECUTE ./EXE <FILENAME.TXT>.