Professional Documents
Culture Documents
21BPS1349 CD Lab7
21BPS1349 CD Lab7
REG.NO: 21BPS1349
COURSE Code: BCSE307P
COURSE Title: Compiler Design
LAB SLOT: L13+L14
DATE: 19-03-2024
LAB-07
Parser generator
Installation and Successful compilation of CUP and parser.cup
Modified and Compiled Parser Generator
After edits:
Modified Parser CUP Source Code:
What is different: a new rule that allows for expressions to be negated using an
exclamationmark, which we will arbitrarily define as a logical negation
operation
1. Add a new terminal for the exclamation mark (logical NOT operator).